Browse Source

修改发料任务提交参数

hella_online_20241205
lijuncheng 2 months ago
parent
commit
b15c8408fc
  1. 11
      src/pages/issue/coms/comScanIssuePack.vue
  2. 1
      src/pages/issue/job/issueDetail.vue

11
src/pages/issue/coms/comScanIssuePack.vue

@ -560,6 +560,11 @@
//details //details
if (fromLocation.Batchs.length > 0) { if (fromLocation.Batchs.length > 0) {
batch.detail = fromLocation.Batchs[0].detail; batch.detail = fromLocation.Batchs[0].detail;
batch.detail.itemName=packageInfo.itemName;
batch.detail.itemDesc1=packageInfo.itemDesc1;
batch.detail.itemDesc2=packageInfo.itemDesc2;
batch.detail.productionLineCode=this.jobContent.detailProductionLineCode;
batch.detail.workStationCode=this.jobContent.detailWorkStationCode;
} }
fromLocation.Batchs.unshift(batch); fromLocation.Batchs.unshift(batch);
this.getfocus(); this.getfocus();
@ -757,6 +762,12 @@
let batch = this.createBatchInfo(label, balance, packageInfo); let batch = this.createBatchInfo(label, balance, packageInfo);
batch.detail = balance; batch.detail = balance;
batch.detail.fromLocationCode = balance.locationCode; batch.detail.fromLocationCode = balance.locationCode;
batch.detail.itemName=packageInfo.itemName,
batch.detail.itemDesc1=packageInfo.itemDesc1,
batch.detail.itemDesc2=packageInfo.itemDesc2,
batch.detail.productionLineCode=this.jobContent.detailProductionLineCode,
batch.detail.workStationCode=this.jobContent.detailWorkStationCode,
location.Batchs.push(batch); location.Batchs.push(batch);
return location; return location;
}, },

1
src/pages/issue/job/issueDetail.vue

@ -304,7 +304,6 @@
this.showErrorMessage("请扫描您需要提交的发料任务") this.showErrorMessage("请扫描您需要提交的发料任务")
return return
} }
console.log("提交参数", JSON.stringify(params));
issueJobSubmit(params).then(res => { issueJobSubmit(params).then(res => {
uni.hideLoading() uni.hideLoading()
if (res.data) { if (res.data) {

Loading…
Cancel
Save