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 - } } } }