diff --git a/src/api/PurchasingCenter/ArrivalStateSearch.js b/src/api/PurchasingCenter/ArrivalStateSearch.js
index 49eb1f35..03a7851e 100644
--- a/src/api/PurchasingCenter/ArrivalStateSearch.js
+++ b/src/api/PurchasingCenter/ArrivalStateSearch.js
@@ -7,7 +7,7 @@ export function initArrivalStateContact() {
method: 'post',
data: {
type: '1',
- name: '采购管理_到货情况_查询数据'
+ name: '采购管理_采购请款表_查询数据'
}
})
}
diff --git a/src/views/PurchasingCenter/ArrivalStateSearch/index.vue b/src/views/PurchasingCenter/ArrivalStateSearch/index.vue
index f31b247a..91030159 100644
--- a/src/views/PurchasingCenter/ArrivalStateSearch/index.vue
+++ b/src/views/PurchasingCenter/ArrivalStateSearch/index.vue
@@ -14,9 +14,6 @@
供应商:
- 提前
-
- 天预警
-
+
- {{ scope.row.规定到货时间.split(' ')[0] }}
+ {{ scope.row.交货日期 }}
-
+
{{ scope.row.供应商名称 }}
@@ -60,20 +57,12 @@
{{ scope.row.姓名 }}
-
-
- 全部到货
- 即将拖期
- 已拖期
- 进度正常
-
-
@@ -95,29 +84,29 @@
{{ scope.row.采购合同编号 }}
-
+
- {{ scope.row.物料名称 }}
+ {{ scope.row.物料型号 ? scope.row.物料型号 : scope.row.零件图号 }}
-
+
- {{ scope.row.物料规格 }}
+ {{ scope.row.物料名称 ? scope.row.物料名称 : scope.row.零件名称 }}
-
+
- {{ scope.row.物料型号 }}
+ {{ scope.row.物料规格 ? scope.row.物料规格 : scope.row.规格 }}
- {{ scope.row.数量 }}
+ {{ scope.row.采购总数量 }}
- {{ scope.row.总到货数量 ? scope.row.总到货数量 : 0 }}
+ {{ scope.row.已到货数量 }}
@@ -133,7 +122,6 @@ export default {
name: '', // 项目总价查询
data() {
return {
- warningValue: 3,
check1: 0,
check2: 0,
contractNumValue: '',
@@ -143,10 +131,7 @@ export default {
pageSize1: 10,
pageCurrent1: 1,
total1: 0,
- tableData2: [],
- now: '',
- arrival: [],
- judge: []
+ tableData2: []
}
},
computed: {
@@ -159,6 +144,7 @@ export default {
},
created() {
this.fetchData()
+ this.searchTable1()
},
methods: {
fetchData() {
@@ -173,24 +159,9 @@ export default {
})
},
searchTable1() {
- this.warningValue ? this.warningValue : this.warningValue = 1
- this.arrival = [] // 规定到货时间数组
- this.now = new Date()
this.contractNumValue ? this.check1 = 1 : this.check1 = 0
this.supplierName ? this.check2 = 1 : this.check2 = 0
searchArrivalState(this.pageCurrent1, this.pageSize1, this.check1, this.contractNumValue, this.check2, this.supplierName).then(response => {
- for (let i = 0; i < response.data.rows.length; i++) {
- this.arrival.push(new Date(response.data.rows[i].规定到货时间))
- if (parseInt(response.data.rows[i].合同物料到货总数) === parseInt(response.data.rows[i].合同物料采购总数)) {
- this.judge[i] = 1 // 全部到货
- } else if (parseInt(response.data.rows[i].合同物料到货总数) !== parseInt(response.data.rows[i].合同物料采购总数) && (this.arrival[i] - this.now) > 0 && (this.arrival[i] - this.now) < (86400000 * this.warningValue)) {
- this.judge[i] = 2 // 即将拖期
- } else if (parseInt(response.data.rows[i].合同物料到货总数) !== parseInt(response.data.rows[i].合同物料采购总数) && (this.arrival[i] - this.now) < 0) {
- this.judge[i] = 3 // 已拖期
- } else if (parseInt(response.data.rows[i].合同物料到货总数) !== parseInt(response.data.rows[i].合同物料采购总数) && (this.arrival[i] - this.now) > (86400000 * this.warningValue)) {
- this.judge[i] = 4 // 进度正常
- }
- }
this.tableData1 = response.data.rows
this.total1 = response.data.total
})
diff --git a/src/views/PurchasingCenter/PurchaseContractSearch/exportExcel.js b/src/views/PurchasingCenter/OfflineContract/exportExcel.js
similarity index 100%
rename from src/views/PurchasingCenter/PurchaseContractSearch/exportExcel.js
rename to src/views/PurchasingCenter/OfflineContract/exportExcel.js
diff --git a/src/views/PurchasingCenter/OfflineContract/index.vue b/src/views/PurchasingCenter/OfflineContract/index.vue
index 466c47fd..2fedfc9a 100644
--- a/src/views/PurchasingCenter/OfflineContract/index.vue
+++ b/src/views/PurchasingCenter/OfflineContract/index.vue
@@ -130,11 +130,20 @@
@click="addMateriel">选入物料
-
+
+
+
+
+ {{ scope.row.离线合同备注 }}
+
+
+
+
+
编辑中
- 已采购
- 已作废
+ 已采购
+ 全部到货
@@ -152,7 +161,7 @@
{{ scope.row.供应商名称 }}
-
+
{{ scope.row.采购员 }}
@@ -167,16 +176,11 @@
{{ scope.row.规定到货时间.split(' ')[0] }}
-
-
- {{ scope.row.离线合同备注 }}
-
-
-
+
@@ -414,12 +418,55 @@
@click="submitEditOfflineContract">确定
+
+
+
+
+ | 离线合同 |
+
+
+ | GAOJING |
+ 合同名称 |
+ |
+ 供应商 |
+ |
+ 二维码粘贴处 |
+
+
+ | 合同编号 |
+ |
+ 采购员 |
+ |
+
+
+ | 序号 |
+ 名称 |
+ 规格 |
+ 型号 |
+ 数量 |
+ 单价 |
+ 合计 |
+ 备注 |
+
+
+ | 总计 |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+
+
+