Browse Source

2025-08-25 pda采购、生产入库优化

master
fengyuan_yang 5 months ago
parent
commit
0d5f80dab7
  1. 13
      src/views/modules/production/productionInboundStorage.vue
  2. 6
      src/views/modules/purchase-inbound/inboundStorage.vue

13
src/views/modules/production/productionInboundStorage.vue

@ -247,9 +247,9 @@ export default {
inboundNo: this.inboundNo,
partNo: this.partNo,
warehouseId: getCurrentWarehouse(),
site:localStorage.getItem('site'),
site: localStorage.getItem('site'),
buNo: this.materialInfo.buNo
};
validateLabelWithInbound(params).then(({ data }) => {
if (data && data.code === 0) {
//
@ -323,23 +323,24 @@ export default {
}
const params = {
site:this.materialInfo.site,
site: this.materialInfo.site,
buNo: this.materialInfo.buNo,
inboundNo: this.inboundNo,
partNo: this.partNo,
warehouseId: getCurrentWarehouse(),
locationCode: this.locationCode.trim(),
labels: this.labelList.map(label => ({
labelCode: label.labelCode,
quantity: label.quantity,
batchNo: label.batchNo
batchNo: label.batchNo,
partNo: label.partNo,
}))
};
confirmInboundStorage(params).then(({ data }) => {
if (data && data.code === 0) {
this.$message.success('操作成功');
this.validateAndAddLabel(this.materialInfo.inboundNo);
this.showLocationDialog = false;
this.$router.back();
//this.$router.back();
} else {
this.$message.error(data.msg || '操作失败');
}

6
src/views/modules/purchase-inbound/inboundStorage.vue

@ -248,7 +248,7 @@ export default {
inboundNo: this.inboundNo,
partNo: this.partNo,
warehouseId: getCurrentWarehouse(),
site:localStorage.getItem('site'),
site: localStorage.getItem('site'),
};
validateLabelWithInbound(params).then(({ data }) => {
@ -322,7 +322,6 @@ export default {
this.$message.warning('请输入库位号');
return;
}
const params = {
site:this.materialInfo.site,
buNo: this.materialInfo.buNo,
@ -339,8 +338,9 @@ export default {
confirmInboundStorage(params).then(({ data }) => {
if (data && data.code === 0) {
this.$message.success('操作成功');
this.validateAndAddLabel(this.materialInfo.inboundNo);
this.showLocationDialog = false;
this.$router.back();
//this.$router.back();
} else {
this.$message.error(data.msg || '操作失败');
}

Loading…
Cancel
Save