From 0eb636595809f5f1c8e39a87a44efdf01b1fe9b9 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Thu, 20 Jun 2024 15:11:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E6=94=B6=E6=96=99=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E6=9F=A5=E8=AF=A2=E7=AE=A1=E7=90=86=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=EF=BC=8C=E5=9C=A8=E5=90=8E=E7=AB=AF=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../job/productionReceiptDetail.vue | 73 +++++++++++-------- 1 file changed, 44 insertions(+), 29 deletions(-) diff --git a/src/pages/productionReceipt/job/productionReceiptDetail.vue b/src/pages/productionReceipt/job/productionReceiptDetail.vue index a2762da0..a65e7ab5 100644 --- a/src/pages/productionReceipt/job/productionReceiptDetail.vue +++ b/src/pages/productionReceipt/job/productionReceiptDetail.vue @@ -428,33 +428,48 @@ title: "提交中....", mask: true }); - var itemCodes = [] - this.detailSource.forEach(item => { - itemCodes.push(item.itemCode) - }) - - getManagementPrecisions(itemCodes, this.toLocationCode, res => { - if (res.success) { - this.managementList = res.list; - var params = this.setParams() - console.log("提交参数", JSON.stringify(params)); - - productionReceiptJobSubmit(params).then(res => { - uni.hideLoading() - if (res.data) { - this.showCommitSuccessMessage("提交成功
生成发料接收记录
" + res.data) - } else { - this.showErrorMessage("提交失败[" + res.msg + "]") - } - }).catch(error => { - uni.hideLoading() - this.showErrorMessage(error) - }) + var params = this.setParams() + console.log("提交参数", JSON.stringify(params)); + productionReceiptJobSubmit(params).then(res => { + uni.hideLoading() + if (res.data) { + this.showCommitSuccessMessage("提交成功
生成发料接收记录
" + res.data) } else { - uni.hideLoading(); - this.showErrorMessage(res.message); + this.showErrorMessage("提交失败[" + res.msg + "]") } - }); + }).catch(error => { + uni.hideLoading() + this.showErrorMessage(error) + }) + + + // var itemCodes = [] + // this.detailSource.forEach(item => { + // itemCodes.push(item.itemCode) + // }) + + // getManagementPrecisions(itemCodes, this.toLocationCode, res => { + // if (res.success) { + // this.managementList = res.list; + // var params = this.setParams() + // console.log("提交参数", JSON.stringify(params)); + + // productionReceiptJobSubmit(params).then(res => { + // uni.hideLoading() + // if (res.data) { + // this.showCommitSuccessMessage("提交成功
生成发料接收记录
" + res.data) + // } else { + // this.showErrorMessage("提交失败[" + res.msg + "]") + // } + // }).catch(error => { + // uni.hideLoading() + // this.showErrorMessage(error) + // }) + // } else { + // uni.hideLoading(); + // this.showErrorMessage(res.message); + // } + // }); }, setParams() { @@ -464,10 +479,10 @@ this.detailSource.forEach(item => { item.subList.forEach(detail => { if (detail.scaned) { - var info = getPackingNumberAndBatch(this.managementList, detail.itemCode, - detail.packingNumber, detail.batch); - detail.toPackingNumber = info.packingNumber; - detail.toBatch = info.batch; + // var info = getPackingNumberAndBatch(this.managementList, detail.itemCode, + // detail.packingNumber, detail.batch); + detail.toPackingNumber = detail.packingNumber; + detail.toBatch = detail.batch; detail.toContainerNumber = ""; detail.toLocationCode = this.toLocationCode; subList.push(detail)