diff --git a/src/views/Assembly/DeliveryConfirmation/index.vue b/src/views/Assembly/DeliveryConfirmation/index.vue index 9d686a44..e48c022c 100644 --- a/src/views/Assembly/DeliveryConfirmation/index.vue +++ b/src/views/Assembly/DeliveryConfirmation/index.vue @@ -147,24 +147,24 @@ stripe size="mini" @row-click="openDialogFormVisible"> - + - + - + - + diff --git a/src/views/Assembly/QualityInspectionInformationInquiry/index.vue b/src/views/Assembly/QualityInspectionInformationInquiry/index.vue index 4ebd6e4f..6c31f007 100644 --- a/src/views/Assembly/QualityInspectionInformationInquiry/index.vue +++ b/src/views/Assembly/QualityInspectionInformationInquiry/index.vue @@ -68,33 +68,33 @@ - + - + - + - + - + - + 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 }) }, diff --git a/src/views/ManufacturingCenter/DiscardedPartsInquiry/index.vue b/src/views/ManufacturingCenter/DiscardedPartsInquiry/index.vue index 308fd21b..8c8f5ae8 100644 --- a/src/views/ManufacturingCenter/DiscardedPartsInquiry/index.vue +++ b/src/views/ManufacturingCenter/DiscardedPartsInquiry/index.vue @@ -54,22 +54,22 @@ highlight-current-row border @row-click="fetchTableData2"> - + - + - + - + diff --git a/src/views/ManufacturingCenter/GroupMatching/index.vue b/src/views/ManufacturingCenter/GroupMatching/index.vue index 54d89aa9..f9b642c4 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 @@ -544,7 +548,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 +616,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 }) }, 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 @@ - - + - + - + - + diff --git a/src/views/MarketingCenter/ComprehensiveInquiryMS/index.vue b/src/views/MarketingCenter/ComprehensiveInquiryMS/index.vue index c8958bf3..68e10aa8 100644 --- a/src/views/MarketingCenter/ComprehensiveInquiryMS/index.vue +++ b/src/views/MarketingCenter/ComprehensiveInquiryMS/index.vue @@ -31,17 +31,17 @@ - + - + - + diff --git a/src/views/MarketingCenter/InvoiceRecord/index.vue b/src/views/MarketingCenter/InvoiceRecord/index.vue index dcbeadd4..db981909 100644 --- a/src/views/MarketingCenter/InvoiceRecord/index.vue +++ b/src/views/MarketingCenter/InvoiceRecord/index.vue @@ -51,18 +51,18 @@ stripe size="mini" @row-click="fetchTableData2"> - + - + - + diff --git a/src/views/Outsourcing/OutsourcingPartsQuery/index.vue b/src/views/Outsourcing/OutsourcingPartsQuery/index.vue index 607ccb49..ee9403d4 100644 --- a/src/views/Outsourcing/OutsourcingPartsQuery/index.vue +++ b/src/views/Outsourcing/OutsourcingPartsQuery/index.vue @@ -26,17 +26,17 @@ 已到货 - + - + - + 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 @@ -