From 922080dde9d9517dbd26668fbbac00a1ccbc248a Mon Sep 17 00:00:00 2001 From: Vergil <974548713@qq.com> Date: Fri, 15 May 2020 09:47:00 +0800 Subject: [PATCH 1/7] a --- src/views/ManufacturingCenter/GroupMatching/index.vue | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/views/ManufacturingCenter/GroupMatching/index.vue b/src/views/ManufacturingCenter/GroupMatching/index.vue index 54d89aa9..0f57d707 100644 --- a/src/views/ManufacturingCenter/GroupMatching/index.vue +++ b/src/views/ManufacturingCenter/GroupMatching/index.vue @@ -544,7 +544,6 @@ export default { this.dialogFormVisible4 = true this.titleaa = row.零件图号 processingStatus(row.工艺计划流水号).then(response => { - console.log(response.data, 1123) for (let i = 0; i < response.data.length; i++) { if (response.data[i].计划日期 !== '' && response.data[i].计划日期 !== null) { response.data[i].计划日期 = response.data[i].计划日期.split(' ')[0] @@ -613,7 +612,6 @@ export default { this.Group ? check2 = 1 : check2 = 0 searchTable02(check1, this.Machine, check2, this.Group, this.pageCurrent02, this.pageSize02).then(response => { this.tableData02 = response.data.rows - console.log(response, 999) this.total02 = response.data.total }) }, From 253675f77d9493a8ae1699c475977fd56b6d234b Mon Sep 17 00:00:00 2001 From: Vergil <974548713@qq.com> Date: Fri, 15 May 2020 14:32:25 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E8=87=AA=E5=88=B6=E4=BB=B6=E5=85=A5?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Inventory/Inboundscanning/index.vue | 93 ++++++++----------- 1 file changed, 39 insertions(+), 54 deletions(-) diff --git a/src/views/Inventory/Inboundscanning/index.vue b/src/views/Inventory/Inboundscanning/index.vue index b30c085c..325dec4b 100644 --- a/src/views/Inventory/Inboundscanning/index.vue +++ b/src/views/Inventory/Inboundscanning/index.vue @@ -204,67 +204,52 @@ export default { this.listLoading = true searchTable(this.partNumber).then(response => { console.log(response.data) - if (response.data.length === 0) { + if (response.data[0].结果 === '成功' || response.data[0].结果 === '自动完成入库') { this.listLoading = false + this.tableData.push({ + plannumber: response.data[0].剩余数量, + innumber: response.data[0].入库数量, + capture: '', + note: '', + 工艺计划流水号: response.data[0].工艺计划流水号, + 项目名称: response.data[0].项目名称, + 机床图号: response.data[0].机床图号, + 零件图号: response.data[0].零件图号 + }) + const hash = {} // 一个新数组,data为你需要去重的数组,newData用于接收去重后的数组, curVal.去重条件 + this.tableDataNum = this.tableData.reduce((preVal, curVal) => { + hash[curVal.工艺计划流水号] ? '' : hash[curVal.工艺计划流水号] = true && preVal.push({ + 工艺计划流水号: curVal.工艺计划流水号, + 项目名称: curVal.项目名称, + 机床图号: curVal.机床图号, + 零件图号: curVal.零件图号, + plannumber: curVal.plannumber, + innumber: curVal.innumber, + capture: '', + note: '' + }) + return preVal + }, []) + } else if (response.data[0].结果 === '未查到') { this.$notify({ title: '警告', - message: '该零件未加工', + message: '跟单号有误', + type: 'warning' + }) + } else if (response.data[0].结果 === '未完成') { + this.$notify({ + title: '警告', + message: '此零件未加工完成', + type: 'warning' + }) + } else if (response.data[0].结果 === '已入库') { + this.$notify({ + title: '警告', + message: '此零件已入库', type: 'warning' }) - } else { - console.log(response.data, 1233) - for (let i = 0; i < response.data.length; i++) { - if (response.data[i].考核状态 === 7) { - this.listLoading = false - this.tableData.push({ - plannumber: response.data[i].剩余数量, - innumber: response.data[i].入库数量, - capture: '', - note: '', - 工艺计划流水号: response.data[i].工艺计划流水号, - 项目名称: response.data[i].项目名称, - 机床图号: response.data[i].机床图号, - 零件图号: response.data[i].零件图号 - }) - const hash = {} // 一个新数组,data为你需要去重的数组,newData用于接收去重后的数组, curVal.去重条件 - this.tableDataNum = this.tableData.reduce((preVal, curVal) => { - hash[curVal.工艺计划流水号] ? '' : hash[curVal.工艺计划流水号] = true && preVal.push({ - 工艺计划流水号: curVal.工艺计划流水号, - 项目名称: curVal.项目名称, - 机床图号: curVal.机床图号, - 零件图号: curVal.零件图号, - plannumber: curVal.plannumber, - innumber: curVal.innumber, - capture: '', - note: '' - }) - return preVal - }, []) - } else if (response.data[i].考核状态 === 6) { - this.$notify({ - title: '警告', - message: 'P' + response.data[i].工艺计划流水号 + '未加工完成', - type: 'warning' - }) - } else if (response.data[i].考核状态 === 8) { - this.$notify({ - title: '警告', - message: 'P' + response.data[i].工艺计划流水号 + '已入库', - type: 'warning' - }) - } else if (response.data[i].考核状态 === 9) { - this.$notify({ - title: '警告', - message: 'P' + response.data[i].工艺计划流水号 + '已出库', - type: 'warning' - }) - } - } } }).then(() => { - // if (this.finishParts.length > 0) { - // this.dialogFormVisible = true - // } this.listLoading = false }) }, From 77ec32a340bcdc352554ff2565c009a01b94ef06 Mon Sep 17 00:00:00 2001 From: Vergil <974548713@qq.com> Date: Fri, 15 May 2020 14:39:38 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E7=BB=84=E4=BB=B6=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ManufacturingCenter/GroupMatching/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/ManufacturingCenter/GroupMatching/index.vue b/src/views/ManufacturingCenter/GroupMatching/index.vue index 0f57d707..0507ad18 100644 --- a/src/views/ManufacturingCenter/GroupMatching/index.vue +++ b/src/views/ManufacturingCenter/GroupMatching/index.vue @@ -22,6 +22,7 @@ 查询 + 组件状态查询 @@ -505,6 +506,9 @@ export default { this.SearchMachine() }, methods: { + turnTo() { + this.$router.push({ path: '/ManufacturingCenter/CompletionOfWorkshopComponents' }) + }, searchData() { this.totalNum = 0 this.loading = true From 4a6dbfda105ab025a286fe7c8b2c1356f42a7156 Mon Sep 17 00:00:00 2001 From: Vergil <974548713@qq.com> Date: Fri, 15 May 2020 14:58:57 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManufacturingCenter/GroupMatching/index.vue | 2 +- .../ProjectPlanningManagementNew/index.vue | 12 ++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/views/ManufacturingCenter/GroupMatching/index.vue b/src/views/ManufacturingCenter/GroupMatching/index.vue index 0507ad18..f9b642c4 100644 --- a/src/views/ManufacturingCenter/GroupMatching/index.vue +++ b/src/views/ManufacturingCenter/GroupMatching/index.vue @@ -22,7 +22,7 @@ 查询 - 组件状态查询 + 组件状态查询 diff --git a/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue b/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue index 03b52e56..6daa59f1 100644 --- a/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue +++ b/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue @@ -2,7 +2,6 @@
- - - 查询 @@ -34,9 +31,8 @@ - - + - + - + - + From 4aad06b9c3d1efc0c56ecdffb0f1e98b17e27e03 Mon Sep 17 00:00:00 2001 From: Vergil <974548713@qq.com> Date: Fri, 15 May 2020 15:53:47 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E9=87=87=E8=B4=AD=E8=AF=A2=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CreateInquirySheet/index.vue | 324 +++--------------- 1 file changed, 42 insertions(+), 282 deletions(-) diff --git a/src/views/PurchasingCenter/CreateInquirySheet/index.vue b/src/views/PurchasingCenter/CreateInquirySheet/index.vue index 43b7287a..0f2df0b4 100644 --- a/src/views/PurchasingCenter/CreateInquirySheet/index.vue +++ b/src/views/PurchasingCenter/CreateInquirySheet/index.vue @@ -39,13 +39,6 @@ - - - - - - - @@ -66,20 +59,9 @@ style="width:250px" start-placeholder="开始日期" end-placeholder="结束日期"/> - - - - - - - - - 查询 导出未询价单 - - - + 物料变更 调整采购任务 - - - - - - - - - - - - - + @select="handleSelection" + @row-click="rowClick"> - - - - - - - - - - - - - - - - - - - - - -
@@ -446,185 +388,6 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -802,7 +565,6 @@ -