From b8da0f7deee9dad8bcb2050fe007100333eaeebc Mon Sep 17 00:00:00 2001 From: lixin Date: Tue, 1 Jan 2019 16:55:28 +0800 Subject: [PATCH] lx --- src/api/Inventory/PartOut.js | 12 +++++ src/views/Inventory/InboundCard/index.vue | 28 ++++++---- src/views/Inventory/InventoryCheck/index.vue | 4 +- src/views/Inventory/OfflinePurchase/index.vue | 1 + src/views/Inventory/PartOut/index.vue | 51 ++++++++++++++++++- 5 files changed, 82 insertions(+), 14 deletions(-) diff --git a/src/api/Inventory/PartOut.js b/src/api/Inventory/PartOut.js index aa7a250f..12adc983 100644 --- a/src/api/Inventory/PartOut.js +++ b/src/api/Inventory/PartOut.js @@ -97,3 +97,15 @@ export function ErrorOut(data1, data2, data3, data4, data5, data6, data7, data8, } }) } +// 交换出库 +export function ExchangePartOut(data1, data2, data3, data4, data5) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_交换件出库_修改数据', + param: '采购合同明细流水号=' + data1 + '&领用者=' + data2 + '&出库数量=' + data3 + '&货位流水号=' + data4 + '&备注=' + data5 + } + }) +} diff --git a/src/views/Inventory/InboundCard/index.vue b/src/views/Inventory/InboundCard/index.vue index 603936c1..b812aef5 100644 --- a/src/views/Inventory/InboundCard/index.vue +++ b/src/views/Inventory/InboundCard/index.vue @@ -794,6 +794,7 @@ export default { } }) }, + // 选中采购部入库记录 handleSelectionChange(val) { this.nameGroup = [] this.modelGroup = [] @@ -810,6 +811,7 @@ export default { this.priceGroup.push(val[i].单价) } }, + // 选中车间采购入库记录 handleSelectionChange2(val) { this.nameGroup = [] this.modelGroup = [] @@ -827,17 +829,21 @@ export default { } }, InboundCardDetail() { - addInboundCardDetail(this.DetailNumber, this.nameGroup, this.modelGroup, this.specificationGroup, this.paintGroup, this.numberGroup, this.priceGroup).then(response => { - if (response.data[0].result === '1') { - this.$message.success('增加成功') - this.dialogVisible1 = false - searchInboundCardDetail(this.DetailNumber).then(response => { - this.tableData4 = response.data - }) - } else { - this.$message.error('增加失败') - } - }) + if (this.DetailNumber === '') { + this.$message.error('请选择入库单') + } else { + addInboundCardDetail(this.DetailNumber, this.nameGroup, this.modelGroup, this.specificationGroup, this.paintGroup, this.numberGroup, this.priceGroup).then(response => { + if (response.data[0].result === '1') { + this.$message.success('增加成功') + this.dialogVisible1 = false + searchInboundCardDetail(this.DetailNumber).then(response => { + this.tableData4 = response.data + }) + } else { + this.$message.error('增加失败') + } + }) + } }, // 修改入库单 editInboundCardInfor(row) { diff --git a/src/views/Inventory/InventoryCheck/index.vue b/src/views/Inventory/InventoryCheck/index.vue index 22da3392..31511db2 100644 --- a/src/views/Inventory/InventoryCheck/index.vue +++ b/src/views/Inventory/InventoryCheck/index.vue @@ -325,10 +325,10 @@ - + - +