From 2634da447151f2c929a2cf29d406ba65f6069c71 Mon Sep 17 00:00:00 2001 From: Vergil <974548713@qq.com> Date: Fri, 13 Mar 2020 16:37:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=BA=E5=BA=8A=E5=B7=A5=E6=97=B6=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PurchaseSituationSearch.js | 1 + .../ContractDetailsInquiry/index.vue | 12 +- .../MonthEndHourAccounting/index.vue | 9 +- .../OfflineContract/index.vue | 3 +- .../PurchaseSituationSearch/index.vue | 158 +++++++++++------- 5 files changed, 111 insertions(+), 72 deletions(-) diff --git a/src/api/PurchasingCenter/PurchaseSituationSearch.js b/src/api/PurchasingCenter/PurchaseSituationSearch.js index db0c01dc..2d4cbd39 100644 --- a/src/api/PurchasingCenter/PurchaseSituationSearch.js +++ b/src/api/PurchasingCenter/PurchaseSituationSearch.js @@ -87,3 +87,4 @@ export function searchTable2Export(...params) { } }) } + diff --git a/src/views/ManufacturingCenter/ContractDetailsInquiry/index.vue b/src/views/ManufacturingCenter/ContractDetailsInquiry/index.vue index d54fb3a6..f0e24d88 100644 --- a/src/views/ManufacturingCenter/ContractDetailsInquiry/index.vue +++ b/src/views/ManufacturingCenter/ContractDetailsInquiry/index.vue @@ -67,17 +67,17 @@ - + @@ -92,7 +92,7 @@ @@ -188,6 +188,10 @@ export default { 工时比值: Number(response.data.result[i].计划工时) === 0 ? 0 : Math.round(response.data.result[i].扫码工时 / Number(response.data.result[i].计划工时) * 100) / 100.00, 加工日期: response.data.result[i].操作时间, 图号及规格: response.data.result[i].零件图号_零件工艺计划, + 修补工时: response.data.result[i].修补工时, + 修补单件工时: response.data.result[i].修补单件工时, + 完成工时: response.data.result[i].完成工时, + 加工完成时间: response.data.result[i].加工完成时间, 制品名称: response.data.result[i].零件名称 }) } diff --git a/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue b/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue index 66bf3c7a..b4596e77 100644 --- a/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue +++ b/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue @@ -60,9 +60,14 @@ {{ scope.row.修补单件工时 }} - + + + + diff --git a/src/views/PurchasingCenter/OfflineContract/index.vue b/src/views/PurchasingCenter/OfflineContract/index.vue index 58b26e07..343411db 100644 --- a/src/views/PurchasingCenter/OfflineContract/index.vue +++ b/src/views/PurchasingCenter/OfflineContract/index.vue @@ -1062,6 +1062,7 @@ export default { this.supplierName0 ? this.check4 = 1 : this.check4 = 0 this.loading3 = true searchOfflineContract(this.pageCurrent2, this.pageSize2, this.check3, this.offlineContract, this.check4, this.supplierName0).then(response => { + console.log(response.data.rows, 99) this.tableData2 = response.data.rows this.total2 = response.data.total this.loading3 = false @@ -1507,7 +1508,7 @@ export default { for (let j = 0; j < this.tableData3.length; j++) { document.getElementsByClassName('tableData')[j].children[0].innerHTML = j + 1 document.getElementsByClassName('tableData')[j].children[1].innerHTML = this.tableData3[j].物料名称 ? this.tableData3[j].物料名称 : this.tableData3[j].零件名称 - document.getElementsByClassName('tableData')[j].children[2].innerHTML = this.tableData3[j].物料规格 ? this.tableData3[j].物料规格 : this.tableData3[j].规格 + document.getElementsByClassName('tableData')[j].children[2].innerHTML = this.tableData3[j].物料规格 ? this.tableData3[j].物料规格 : this.tableData3[j].规格 ? this.tableData3[j].规格 : '' document.getElementsByClassName('tableData')[j].children[3].innerHTML = this.tableData3[j].物料型号 ? this.tableData3[j].物料型号 : this.tableData3[j].零件图号 document.getElementsByClassName('tableData')[j].children[4].innerHTML = this.tableData3[j].数量 document.getElementsByClassName('tableData')[j].children[5].innerHTML = this.tableData3[j].单价 diff --git a/src/views/PurchasingCenter/PurchaseSituationSearch/index.vue b/src/views/PurchasingCenter/PurchaseSituationSearch/index.vue index 43e65bd2..7ae762cf 100644 --- a/src/views/PurchasingCenter/PurchaseSituationSearch/index.vue +++ b/src/views/PurchasingCenter/PurchaseSituationSearch/index.vue @@ -1,3 +1,4 @@ + - + @@ -154,9 +160,9 @@ @@ -164,7 +170,7 @@ {{ scope.row.机床图号 }} - + @@ -257,10 +263,10 @@ @@ -268,7 +274,7 @@ {{ scope.row.机床图号 }} - + @@ -413,6 +419,26 @@ export default { this.searchTable() }, methods: { + // open2: function (mess) { + // this.$notify({ + // title: '提示', + // message: '您有新的领料单需要备料确认,请及时处理,点击查看', + // onClick: this.message(mess).then((res) => { + // + // // this.message(mess) + // console.log(res, 1111) + // this.$router.push({path: '/PurchasingCenter/PurchaseTaskAllocate'}) + // // this.$router.push({ path: '/Inventory/MaterialOut' }) + // // setTimeout(this.noticeContractKG.close(), 1000) + // }), + // duration: 1000 * 60 + // }) + // }, + // message (mess) { + // return mess + // + // // this.$router.push({path: '/PurchasingCenter/PurchaseTaskAllocate'}) + // }, // 导出采购物料执行情况 exportDetail() { let check1, check2, check3 @@ -574,37 +600,36 @@ export default { this.startTime ? check6 = 1 : (check6 = 0, this.startTime = '') this.loading0 = true searchTable1(check1, this.machineNumberValue, check2, this.groupNumberValue, this.pageCurrent0, this.pageSize0, 1, check3, this.Name, check4, this.spec, check5, this.model, check6, this.startTime[0], this.startTime[1]).then(response => { - console.log(this.tableData0) - if (response.data.rows.length !== 0) { - for (let i = 0; i < response.data.rows.length; i++) { + if (response.data.result !== 0) { + for (let i = 0; i < response.data.result.length; i++) { this.tableData0.push({ - 人员编号: response.data.rows[i].人员编号, - 询价状态编号: response.data.rows[i].询价状态编号, - 采购状态编号: response.data.rows[i].采购状态编号, - 机床图号: response.data.rows[i].机床图号, - 组号: response.data.rows[i].组号, - 物料名称: response.data.rows[i].物料名称, - 物料型号: response.data.rows[i].物料型号, - 物料规格: response.data.rows[i].物料规格, - 供货商: response.data.rows[i].供货商, - 零件数量: response.data.rows[i].零件数量, - 数量: response.data.rows[i].数量, - 离线采购数量: response.data.rows[i].离线采购数量, - 已到货数量: response.data.rows[i].已到货数量, - 离线到货数量: response.data.rows[i].离线到货数量, - 供应商名称: response.data.rows[i].供应商名称, - 离线合同供应商名称: response.data.rows[i].离线合同供应商名称, - 采购合同编号: response.data.rows[i].采购合同编号, - 离线合同编号: response.data.rows[i].离线合同编号, - 备注: response.data.rows[i].备注, - 采购数量: Number(response.data.rows[i].询价状态编号) === 1 && response.data.rows[i].人员编号 !== '' ? '—' : response.data.rows[i].数量 || response.data.rows[i].离线采购数量 || '—', - 到货数量: Number(response.data.rows[i].询价状态编号) === 1 && response.data.rows[i].人员编号 !== '' ? '—' : response.data.rows[i].已到货数量 || response.data.rows[i].离线到货数量 || '—', - 不合格数量: response.data.rows[i].不合格数量, - 操作日期: response.data.rows[i].操作日期 + 人员编号: response.data.result[i].人员编号, + 询价状态编号: response.data.result[i].询价状态编号, + 采购状态编号: response.data.result[i].采购状态编号, + 机床图号: response.data.result[i].机床图号, + 组号: response.data.result[i].组号, + 物料名称: response.data.result[i].物料名称, + 物料型号: response.data.result[i].物料型号, + 物料规格: response.data.result[i].物料规格, + 供货商: response.data.result[i].供货商, + 零件数量: response.data.result[i].零件数量, + 数量: response.data.result[i].数量, + 离线采购数量: response.data.result[i].离线采购数量, + 已到货数量: response.data.result[i].已到货数量, + 离线到货数量: response.data.result[i].离线到货数量, + 供应商名称: response.data.result[i].供应商名称, + 离线合同供应商名称: response.data.result[i].离线合同供应商名称, + 采购合同编号: response.data.result[i].采购合同编号, + 离线合同编号: response.data.result[i].离线合同编号, + 备注: response.data.result[i].备注, + 采购数量: Number(response.data.result[i].询价状态编号) === 1 && response.data.result[i].人员编号 !== '' ? '—' : response.data.result[i].数量 || response.data.result[i].离线采购数量 || '—', + 到货数量: Number(response.data.result[i].询价状态编号) === 1 && response.data.result[i].人员编号 !== '' ? '—' : response.data.result[i].已到货数量 || response.data.result[i].离线到货数量 || '—', + 不合格数量: response.data.result[i].不合格数量, + 操作日期: response.data.result[i].操作日期 }) } } - this.total0 = response.data.total + this.total0 = parseInt(response.data.output[0].ItemCount) this.loading0 = false }).catch(() => { this.loading0 = false @@ -621,33 +646,36 @@ export default { this.startTime ? check6 = 1 : (check6 = 0, this.startTime = '') this.loading1 = true searchTable1(check1, this.machineNumberValue, check2, this.groupNumberValue, this.pageCurrent1, this.pageSize1, 2, check3, this.Name, check4, this.spec, check5, this.model, check6, this.startTime[0], this.startTime[1]).then(response => { - this.total1 = response.data.total - if (response.data.rows.length !== 0) { - for (let i = 0; i < response.data.rows.length; i++) { + console.log(response.data.result.length, 222) + // this.total02 = parseInt(response.data.output[0].ItemCount) + + this.total1 = parseInt(response.data.output[0].ItemCount) + if (response.data.result.length !== 0) { + for (let i = 0; i < response.data.result.length; i++) { this.tableData1.push({ - 人员编号: response.data.rows[i].人员编号, - 询价状态编号: response.data.rows[i].询价状态编号, - 采购状态编号: response.data.rows[i].采购状态编号, - 机床图号: response.data.rows[i].机床图号, - 组号: response.data.rows[i].组号, - 物料名称: response.data.rows[i].物料名称, - 物料型号: response.data.rows[i].物料型号, - 物料规格: response.data.rows[i].物料规格, - 供货商: response.data.rows[i].供货商, - 零件数量: response.data.rows[i].零件数量, - 数量: response.data.rows[i].数量, - 离线采购数量: response.data.rows[i].离线采购数量, - 已到货数量: response.data.rows[i].已到货数量, - 离线到货数量: response.data.rows[i].离线到货数量, - 供应商名称: response.data.rows[i].供应商名称, - 离线合同供应商名称: response.data.rows[i].离线合同供应商名称, - 采购合同编号: response.data.rows[i].采购合同编号, - 离线合同编号: response.data.rows[i].离线合同编号, - 备注: response.data.rows[i].备注, - 采购数量: Number(response.data.rows[i].询价状态编号) === 1 && response.data.rows[i].人员编号 !== '' ? '—' : response.data.rows[i].数量 || response.data.rows[i].离线采购数量 || '—', - 到货数量: Number(response.data.rows[i].询价状态编号) === 1 && response.data.rows[i].人员编号 !== '' ? '—' : response.data.rows[i].已到货数量 || response.data.rows[i].离线到货数量 || '—', - 不合格数量: response.data.rows[i].不合格数量, - 操作日期: response.data.rows[i].操作日期 + 人员编号: response.data.result[i].人员编号, + 询价状态编号: response.data.result[i].询价状态编号, + 采购状态编号: response.data.result[i].采购状态编号, + 机床图号: response.data.result[i].机床图号, + 组号: response.data.result[i].组号, + 物料名称: response.data.result[i].物料名称, + 物料型号: response.data.result[i].物料型号, + 物料规格: response.data.result[i].物料规格, + 供货商: response.data.result[i].供货商, + 零件数量: response.data.result[i].零件数量, + 数量: response.data.result[i].数量, + 离线采购数量: response.data.result[i].离线采购数量, + 已到货数量: response.data.result[i].已到货数量, + 离线到货数量: response.data.result[i].离线到货数量, + 供应商名称: response.data.result[i].供应商名称, + 离线合同供应商名称: response.data.result[i].离线合同供应商名称, + 采购合同编号: response.data.result[i].采购合同编号, + 离线合同编号: response.data.result[i].离线合同编号, + 备注: response.data.result[i].备注, + 采购数量: Number(response.data.result[i].询价状态编号) === 1 && response.data.result[i].人员编号 !== '' ? '—' : response.data.result[i].数量 || response.data.result[i].离线采购数量 || '—', + 到货数量: Number(response.data.result[i].询价状态编号) === 1 && response.data.result[i].人员编号 !== '' ? '—' : response.data.result[i].已到货数量 || response.data.result[i].离线到货数量 || '—', + 不合格数量: response.data.result[i].不合格数量, + 操作日期: response.data.result[i].操作日期 }) } } @@ -667,8 +695,8 @@ export default { this.loading2 = true this.startTime ? check6 = 1 : (check6 = 0, this.startTime = '') searchTable2(check1, this.machineNumberValue, check2, this.groupNumberValue, this.pageCurrent2, this.pageSize2, check3, this.Name, check4, this.spec, check5, this.model, check6, this.startTime[0], this.startTime[1]).then(response => { - this.tableData2 = response.data.rows - this.total2 = response.data.total + this.tableData2 = response.data.result + this.total2 = parseInt(response.data.output[0].ItemCount) this.loading2 = false }).catch(() => { this.loading2 = false