Browse Source

修改发料list为空

wms3.0_pda
lijuncheng 10 months ago
parent
commit
3027697b62
  1. 4
      pages/issue/job/issueDetail.vue

4
pages/issue/job/issueDetail.vue

@ -266,7 +266,7 @@
issueJobSubmit(params).then(res => { issueJobSubmit(params).then(res => {
uni.hideLoading() uni.hideLoading()
if (res.data) { if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成发记录" + res.data) this.showCommitSuccessMessage("提交成功<br>生成发记录" + res.data)
} else { } else {
this.showErrorMessage("提交失败" + res.msg) this.showErrorMessage("提交失败" + res.msg)
} }
@ -285,6 +285,7 @@
item.Locations.forEach(fromLocation => { item.Locations.forEach(fromLocation => {
fromLocation.Batchs.forEach(batch => { fromLocation.Batchs.forEach(batch => {
let subItem = batch.detail; let subItem = batch.detail;
if(subItem!=undefined){
subItem.recordList = []; subItem.recordList = [];
if (batch.Records.length > 0) { if (batch.Records.length > 0) {
batch.Records.forEach(r => { batch.Records.forEach(r => {
@ -325,6 +326,7 @@
}) })
subList.push(subItem); subList.push(subItem);
} }
}
}) })
}) })
}) })

Loading…
Cancel
Save