diff --git a/src/pages/raw/handover/returning/index.vue b/src/pages/raw/handover/returning/index.vue index 4872688..f37feb0 100644 --- a/src/pages/raw/handover/returning/index.vue +++ b/src/pages/raw/handover/returning/index.vue @@ -10,7 +10,7 @@ - + {{ $t('message.screen') }} - + @@ -119,7 +119,7 @@ export default class returningDom extends BasePage { // tlName: null, // 退料类型name materialCode: null, // 物料类型code wlName: '', // 物料类型name - wlCode: '', + wlCode: '' as any, totalBackAmount: '0', }; prdOrder: any = []; @@ -151,7 +151,7 @@ export default class returningDom extends BasePage { } LocationChoice(e: any) { console.log('e>>>>>>>>>>>>>>>>>>>>>>>>', e); - this.form.wlCode = e.pickerName.label; + this.wlCode = e.pickerName; this.form.wkposCode = e.pickerName.sendSpot; } // 必须要在onReady生命周期,因为onLoad生命周期组件可能尚未创建完毕 @@ -164,8 +164,7 @@ export default class returningDom extends BasePage { let sendSpot = JSON.parse(localStorage.getItem('sendSpot') as any); if (JSON.parse(sessionStorage.getItem('data') as any)) { this.data = JSON.parse(sessionStorage.getItem('data') as any); - console.log('this.data',this.data) - this.prdOrder = this.data.label; + this.form.prdOrder = this.data.label; this.form.wlName = this.data.value; this.form.sendSpot = this.data.sendSpot; // this.form.amount = this.data.amount; @@ -222,12 +221,13 @@ export default class returningDom extends BasePage { } else { this.$form.validate(async (valid: boolean) => { if (!valid) return; - if (!this.model.orderInInfo.sapFactoryCode) { - this.customToast(this.$t('message.return_Tip2') as string); - } + // if (!this.model.orderInInfo.sapFactoryCode) { + // this.customToast(this.$t('message.return_Tip2') as string); + // } // (this.form.sendSpot as any) = this.model.orderInInfo.sendSpot; (this.form.sapFactoryCode as any) = this.model.orderInInfo.sapFactoryCode; // delete this.form.wlName; + this.form.wlCode = this.wlCode.label await this.model.tluSubmit(this.form); this.$form.resetFields(); this.operatorName = '';