From 720554fe28ba26095948779da5f8d09bd252586d Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Wed, 25 Sep 2024 16:04:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E5=BA=9F=E5=87=BA=E5=BA=93=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=8E=9F=E5=9B=A0=E8=BE=93=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/scrap/record/scrapRecord.vue | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/src/pages/scrap/record/scrapRecord.vue b/src/pages/scrap/record/scrapRecord.vue index 38c0be01..d515c83f 100644 --- a/src/pages/scrap/record/scrapRecord.vue +++ b/src/pages/scrap/record/scrapRecord.vue @@ -8,11 +8,11 @@ 报废原因 : - - + + + + @@ -102,7 +102,6 @@ businessType: {}, reasonList: [], reasonText: "", - reasonCode:"", }; }, onLoad(option) { @@ -226,10 +225,6 @@ }, commit() { - if(this.reasonText==""){ - this.showErrorMessage("请先选择报废原因") - return; - } //允许部分提交 uni.showLoading({ title: "提交中....", @@ -277,7 +272,7 @@ submitItem.fromLocationCode = detail.locationCode; submitItem.toLocationCode = ""; - submitItem.reason = this.reasonCode; + submitItem.reason = this.reasonText; submitItem.qty = detail.handleQty; submitItem.package =""; subList.push(submitItem) @@ -316,7 +311,6 @@ }) }, clearData(){ - this.reasonCode = ""; this.fromLocationCode = ""; this.reasonText = ""; this.detailSource = []; @@ -333,15 +327,6 @@ this.detailSource.splice(i, 1) } } - }, - reasonChange(e) { - if (e.detail.value.length == 0) { - this.reasonCode = "" - this.reasonText = "" - } else { - this.reasonCode = e.detail.value[0].value - this.reasonText = e.detail.value[0].text - } } } }