From 4045a0db9c34b1ddb8f36d5f6747191853c19a55 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Thu, 21 Dec 2023 17:41:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E5=BA=9F=E5=87=BA=E5=BA=93=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/scrap/record/scrapRecord.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pages/scrap/record/scrapRecord.vue b/pages/scrap/record/scrapRecord.vue index 6b54bdbd..9150d69f 100644 --- a/pages/scrap/record/scrapRecord.vue +++ b/pages/scrap/record/scrapRecord.vue @@ -119,7 +119,7 @@ this.tolocationTypeList = res.tolocationTypeList; this.showFromLocationPopup(); } else { - this.$refs.comMessage.showBreakMessage(res.message ); + this.showErrorMessage(res.message) } }); @@ -250,11 +250,12 @@ title: "提交中....", mask: true }); - + var params = this.setParams() + console.log("提交参数", JSON.stringify(params)); scrapRecordSubmit(params).then(res => { uni.hideLoading() if (res.data) { - this.showCommitSuccessMessage("提交成功
生成报废出库记录" + res.data) + this.showCommitSuccessMessage("提交成功
生成报废出库记录
" + res.data) } else { this.showErrorMessage("提交失败[" + res.msg + "]") } @@ -267,6 +268,7 @@ setParams() { var subList = [] + var creator = this.$store.state.user.id this.detailSource.forEach(item => { item.subList.forEach(detail => { if (detail.scaned) { @@ -294,7 +296,10 @@ } }) }) - return subList; + this.dataContent.subList =subList + this.dataContent.creator = creator; + return this.dataContent; + },