From c23b7e763da88e2f16bcb9a96a23348118a66a01 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Wed, 14 Aug 2024 18:30:29 +0800 Subject: [PATCH] =?UTF-8?q?t=20status=20=E4=BF=AE=E6=94=B9=E5=8F=91?= =?UTF-8?q?=E6=96=99=E6=8E=A5=E6=94=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../job/productionReceiptDetail.vue | 80 +++++++++---------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/src/pages/productionReceipt/job/productionReceiptDetail.vue b/src/pages/productionReceipt/job/productionReceiptDetail.vue index 08e9e803..faa85925 100644 --- a/src/pages/productionReceipt/job/productionReceiptDetail.vue +++ b/src/pages/productionReceipt/job/productionReceiptDetail.vue @@ -453,46 +453,46 @@ }); var params = this.setParams() console.log("提交参数", JSON.stringify(params)); - // productionReceiptJobSubmit(params).then(res => { - // uni.hideLoading() - // if (res.data) { - // this.showCommitSuccessMessage("提交成功\n生成发料接收记录\n" + res.data) - // } else { - // 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("提交成功\n生成发料接收记录\n" + res.data) - // } else { - // this.showErrorMessage("提交失败[" + res.msg + "]") - // } - // }).catch(error => { - // uni.hideLoading() - // this.showErrorMessage(error) - // }) - // } else { - // uni.hideLoading(); - // this.showErrorMessage(res.message); - // } - // }); + productionReceiptJobSubmit(params).then(res => { + uni.hideLoading() + if (res.data) { + this.showCommitSuccessMessage("提交成功\n生成发料接收记录\n" + res.data) + } else { + 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("提交成功\n生成发料接收记录\n" + res.data) + } else { + this.showErrorMessage("提交失败[" + res.msg + "]") + } + }).catch(error => { + uni.hideLoading() + this.showErrorMessage(error) + }) + } else { + uni.hideLoading(); + this.showErrorMessage(res.message); + } + }); }, setParams() {