Browse Source

修改采购收货

hella_vue3
lijuncheng 6 months ago
parent
commit
e83e6a4512
  1. 16
      src/pages/purchaseReceipt/job/receiptDetail.vue

16
src/pages/purchaseReceipt/job/receiptDetail.vue

@ -203,6 +203,7 @@
that.jobStatus = res.data.status that.jobStatus = res.data.status
that.jobToLocationCode = that.subList[0].toLocationCode that.jobToLocationCode = that.subList[0].toLocationCode
that.detailSource = getTreeDataSource(that.subList) that.detailSource = getTreeDataSource(that.subList)
that.isAllReceived = false;
} else { } else {
that.showMessage('列表数据为0'); that.showMessage('列表数据为0');
} }
@ -496,13 +497,26 @@
detail.handleQty = detail.qty; detail.handleQty = detail.qty;
detail.toLocationCode = this.toLocationCode; detail.toLocationCode = this.toLocationCode;
detail.labelQty = detail.qty; detail.labelQty = detail.qty;
detail.packList.forEach(pack=>{
pack.scaned = true;
pack.handleQty = Number(pack.qty);
pack.toLocationCode = this.toLocationCode;
})
}) })
}) })
console.log(JSON.stringify(this.detailSource)) console.log(JSON.stringify(this.detailSource))
calcHandleQty(this.detailSource); calcHandleQty(this.detailSource);
} else { } else {
this.getDetail() this.$refs.comMessage.showQuestionMessage("是否要关闭整单收货?", res => {
if (res) {
this.getDetail()
}else {
this.isAllReceived = true;
}
});
} }
}, },

Loading…
Cancel
Save