diff --git a/src/views/modules/other-inout/otherOutboundDetail.vue b/src/views/modules/other-inout/otherOutboundDetail.vue index b0d098e..c739915 100644 --- a/src/views/modules/other-inout/otherOutboundDetail.vue +++ b/src/views/modules/other-inout/otherOutboundDetail.vue @@ -131,7 +131,7 @@
NO.
物料编码
需求数量
-
可用数量
+
出库数量
@@ -209,7 +209,6 @@ export default { site: localStorage.getItem('site'), buNo: this.buNo }; - validateLabelWithOutbound(params).then(({ data }) => { if (data && data.code === 0) { // 检查是否已经扫描过 @@ -218,16 +217,15 @@ export default { this.$message.warning('该标签已扫描,请勿重复扫描'); return; } - // 添加到列表顶部(最后扫描的在最上面) this.labelList.unshift({ id: Date.now(), labelCode: labelCode, partNo: data.data.partNo, quantity: data.data.quantity, - batchNo: data.data.batchNo + batchNo: data.data.batchNo, + locationId: data.data.locationId }); - this.$message.success('操作成功'); } else { this.$message.error(data.msg || '该标签与出库单不符,请检查'); @@ -255,7 +253,6 @@ export default { this.$message.warning('请先扫描标签'); return; } - const params = { site: this.outboundInfo.site, buNo: this.outboundInfo.buNo, @@ -265,10 +262,10 @@ export default { labelCode: label.labelCode, partNo: label.partNo, quantity: label.quantity, - batchNo: label.batchNo + batchNo: label.batchNo, + locationId: label.locationId })) }; - confirmOtherOutbound(params).then(({ data }) => { if (data && data.code === 0) { this.$message.success('出库成功'); diff --git a/src/views/modules/other-inout/otherOutboundList.vue b/src/views/modules/other-inout/otherOutboundList.vue index 46e6343..03952d9 100644 --- a/src/views/modules/other-inout/otherOutboundList.vue +++ b/src/views/modules/other-inout/otherOutboundList.vue @@ -104,14 +104,12 @@ export default { this.$message.error('请先选择仓库'); return; } - this.loading = true; const params = { warehouseId: currentWarehouse, site: localStorage.getItem('site'), status: '待出库', }; - getOtherOutboundList(params).then(({ data }) => { this.loading = false; if (data && data.code === 0) { @@ -133,7 +131,6 @@ export default { this.$message.error('请先选择仓库'); return; } - this.loading = true; const params = { warehouseId: currentWarehouse, @@ -141,7 +138,6 @@ export default { site: localStorage.getItem('site'), status: '待出库' }; - getOtherOutboundList(params).then(({ data }) => { this.loading = false; if (data && data.code === 0) {