From 88b1ce01ed3b8ed552be7b678029f4dd35d102e3 Mon Sep 17 00:00:00 2001 From: lixin Date: Tue, 27 Nov 2018 17:02:27 +0800 Subject: [PATCH 1/2] lx --- src/views/Inventory/Inboundscanning/index.vue | 24 +++++++++++-------- src/views/Inventory/InventoryCheck/index.vue | 2 +- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/views/Inventory/Inboundscanning/index.vue b/src/views/Inventory/Inboundscanning/index.vue index 84800ca5..b4fa8df1 100644 --- a/src/views/Inventory/Inboundscanning/index.vue +++ b/src/views/Inventory/Inboundscanning/index.vue @@ -219,17 +219,21 @@ export default { this.$message.error('请选择货位') } else { for (let i = 0; i < this.tableData.length; i++) { - if (this.tableData[i].innumber > this.tableData[i].plannumber) { - this.tableData[i].innumber = this.tableData[i].plannumber - } - insertOne(this.tableData[i].工艺计划流水号, this.tableData[i].innumber, this.PeopleNumber, this.tableData[i].capture, this.inventoryNumber, this.locateNumber, this.tableData[i].note).then(response => { - this.$message({ - type: 'success', - message: '零件入库成功!' + if (this.tableData[i].innumber === '0') { + this.$message.error('请输入正确数量') + } else { + if (this.tableData[i].innumber > this.tableData[i].plannumber) { + this.tableData[i].innumber = this.tableData[i].plannumber + } + insertOne(this.tableData[i].工艺计划流水号, this.tableData[i].innumber, this.PeopleNumber, this.tableData[i].capture, this.inventoryNumber, this.locateNumber, this.tableData[i].note).then(response => { + this.$message({ + type: 'success', + message: '零件入库成功!' + }) + }).then(() => { + this.Empty() }) - }).then(() => { - this.Empty() - }) + } } } }).catch(() => { diff --git a/src/views/Inventory/InventoryCheck/index.vue b/src/views/Inventory/InventoryCheck/index.vue index 4a528cc5..341c31d5 100644 --- a/src/views/Inventory/InventoryCheck/index.vue +++ b/src/views/Inventory/InventoryCheck/index.vue @@ -310,7 +310,7 @@ - + Date: Tue, 27 Nov 2018 17:38:59 +0800 Subject: [PATCH 2/2] lx --- src/api/Inventory/SubPartCome.js | 4 ++-- src/views/Inventory/PickingList/index.vue | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/api/Inventory/SubPartCome.js b/src/api/Inventory/SubPartCome.js index 39cd829b..b817862e 100644 --- a/src/api/Inventory/SubPartCome.js +++ b/src/api/Inventory/SubPartCome.js @@ -1,13 +1,13 @@ import request from '@/utils/request' // 替换单查询 -export function searchSubstitutedCard(...params) { +export function searchSubstitutedCard(data1, data2, data3, data4) { return request({ url: '', method: 'post', data: { type: '1', name: '库存管理_替换件_替换单查询', - param: `替换单编号_check=${params[0]}&替换单编号=${params[1]}&替换件名称_check=${params[2]}&替换件名称=${params[3]}` + param: '替换单编号_check=' + data1 + '&替换单编号=' + data2 + '&替换件名称_check=' + data3 + '&替换件名称=' + data4 } }) } diff --git a/src/views/Inventory/PickingList/index.vue b/src/views/Inventory/PickingList/index.vue index f7f49781..e57c3f11 100644 --- a/src/views/Inventory/PickingList/index.vue +++ b/src/views/Inventory/PickingList/index.vue @@ -831,12 +831,13 @@ export default { this.dialogFormVisible = true this.purchaseDetailNum = row.采购合同明细流水号 this.materialLocate = row.物料与货位对照流水号 - this.enableOut = row.货位存量 + this.enableOut = row.货位存量 - row.待出库数量 }, execaddListDetail(formName) { if (this.pickingListNumberx === '') { this.$message.error('请选择领料单') } else if (this.form2.OutNumber === '' || this.form2.OutNumber > this.enableOut) { + console.log(this.enableOut) this.$message.error('请正确输入领用数量') } else { this.$refs[formName].validate((valid) => {