From 898276b3c36a17827de606e83b1d584327f48702 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Wed, 14 Aug 2024 11:31:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=91=E6=96=99=E6=8E=A5?= =?UTF-8?q?=E6=94=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../job/productionReceiptDetail.vue | 25 ++++++++++--------- .../job/productionReceiptJob.vue | 5 ++++ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/src/pages/productionReceipt/job/productionReceiptDetail.vue b/src/pages/productionReceipt/job/productionReceiptDetail.vue index 6270e88e..08e9e803 100644 --- a/src/pages/productionReceipt/job/productionReceiptDetail.vue +++ b/src/pages/productionReceipt/job/productionReceiptDetail.vue @@ -230,7 +230,8 @@ } //数量不相等,提示 if(noCommitInfo){ - this.showQuestionMessage("扫描数量["+noCommitInfo.handleQty+"]任务数量["+noCommitInfo.qty+"]不一致,是否提交?",res=>{ + var handQty =noCommitInfo.handleQty?noCommitInfo.handleQty:0 + this.showQuestionMessage("扫描数量["+handQty+"]任务数量["+noCommitInfo.qty+"]不一致,是否提交?",res=>{ if(res){ this.commit() } @@ -452,17 +453,17 @@ }); 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) - }) + // 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 = [] diff --git a/src/pages/productionReceipt/job/productionReceiptJob.vue b/src/pages/productionReceipt/job/productionReceiptJob.vue index c92ec8f5..fe5f82a4 100644 --- a/src/pages/productionReceipt/job/productionReceiptJob.vue +++ b/src/pages/productionReceipt/job/productionReceiptJob.vue @@ -373,6 +373,11 @@ action: "in", value: result.package.number + "," + result.package.parentNumber }, + { + column: "status", + action: "in", + value: '1,2' + }, { column: "batch", action: "==",