From e5a23954bebbe8e69253d1f06b555d831be71ffd Mon Sep 17 00:00:00 2001 From: liushuai Date: Mon, 11 May 2020 18:53:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Inventory/Inboundscanning/index.vue | 184 ++++++------- src/views/Inventory/OfflinePartOut/index.vue | 4 +- .../Inventory/OfflinePartsStorage/index.vue | 2 +- .../Inventory/PickingListApproval/index.vue | 256 ++++++++---------- .../Inventory/PurchasePartsStorage/index.vue | 12 +- .../CreatePreparationBill/index.vue | 12 +- .../MaterialMProcure/index.vue | 4 +- 7 files changed, 214 insertions(+), 260 deletions(-) diff --git a/src/views/Inventory/Inboundscanning/index.vue b/src/views/Inventory/Inboundscanning/index.vue index f981b382..1b6dea08 100644 --- a/src/views/Inventory/Inboundscanning/index.vue +++ b/src/views/Inventory/Inboundscanning/index.vue @@ -2,13 +2,13 @@
- 零件图号 - - 查询 - - 清空 - - + 跟单号 + + 查询 + + + + 入库 @@ -58,16 +58,16 @@ - - - + + + + + + + + + + @@ -108,7 +108,7 @@ export default { ace: 0, a: '', tableData: [], - partNumber: [], + partNumber: '', listLoading: false, craftplannumber: '', radio2: 3, @@ -162,7 +162,7 @@ export default { websocketonmessage(msg) { this.partNumber = msg.data.split('|')[3] this.partNumber = this.partNumber.slice(1) - this.getPaint(this.partNumber) + this.getscantable(this.partNumber) }, // 关闭 websocketclose() { @@ -198,93 +198,73 @@ export default { // 根据流水号查询 getscantable() { // this.tableData = [] - if (this.partNumber.length === 0) { - this.$notify({ - title: '警告', - message: '请输入正确的零件图号', - type: 'warning' - }) - } else { - this.finishParts = [] - this.listLoading = true - searchTable(this.partNumber).then(response => { - console.log(response.data) - if (response.data.length === 0) { - this.listLoading = false - this.$notify({ - title: '警告', - message: '该零件未加工', - type: 'warning' - }) - } else { - for (let i = 0; i < response.data.length; i++) { - if (response.data[i].状态 === '未完成') { - this.$notify({ - title: '警告', - message: 'P' + response.data[i].工艺计划流水号 + '未加工完成', - type: 'warning' - }) - } else if (response.data[i].状态 === '可完成') { - this.finishParts.push({ - plannumber: response.data[i].剩余数量, - innumber: response.data[i].入库数量, + this.finishParts = [] + this.listLoading = true + searchTable(this.partNumber).then(response => { + console.log(response.data) + if (response.data.length === 0) { + this.listLoading = false + 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: '', - 工艺计划流水号: response.data[i].工艺计划流水号, - 项目名称: response.data[i].项目名称, - 机床图号: response.data[i].机床图号, - 零件图号: response.data[i].零件图号 + note: '' }) - } else if (response.data[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].考核状态 === '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' - }) - } - } + 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 - }) - } + } + }).then(() => { + // if (this.finishParts.length > 0) { + // this.dialogFormVisible = true + // } + this.listLoading = false + }) }, FinishPart() { var nums = [] diff --git a/src/views/Inventory/OfflinePartOut/index.vue b/src/views/Inventory/OfflinePartOut/index.vue index dea8eafb..ce1669de 100644 --- a/src/views/Inventory/OfflinePartOut/index.vue +++ b/src/views/Inventory/OfflinePartOut/index.vue @@ -258,6 +258,7 @@ export default { listLoading: '', listLoading1: '', partnumber: '', + outType: '', pageCurrent1: 1, pageSize1: 20, total1: 0, @@ -272,7 +273,8 @@ export default { DirectNotes: [], department111: '', // 部门参数中间变量 DirectNote111: '', // 人员参数中间变量 - 组件零件基本件流水号: '' + 组件零件基本件流水号: '', + 物料与货位对照流水号: '' } }, computed: { diff --git a/src/views/Inventory/OfflinePartsStorage/index.vue b/src/views/Inventory/OfflinePartsStorage/index.vue index 777da7e9..22dc5c81 100644 --- a/src/views/Inventory/OfflinePartsStorage/index.vue +++ b/src/views/Inventory/OfflinePartsStorage/index.vue @@ -53,7 +53,7 @@ -
+
共{{ totallength }}条信息,选择{{ length }}条
仓库名称: diff --git a/src/views/Inventory/PickingListApproval/index.vue b/src/views/Inventory/PickingListApproval/index.vue index f089f363..a389813d 100644 --- a/src/views/Inventory/PickingListApproval/index.vue +++ b/src/views/Inventory/PickingListApproval/index.vue @@ -2,43 +2,91 @@
- 领料单编号: - + + 查询
-

领料单

- - - - - - - - - - - - - - - - - - -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
-

领料单明细:{{ pickingListNumberShow }}

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -