From 5211e91aa2a919a9026b1db61bc1740c97d78c51 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期二, 15 十月 2024 09:29:24 +0800 Subject: [PATCH] feat:液氯瓶装同步pvc --- pages/public-page/forward/forward.vue | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/pages/public-page/forward/forward.vue b/pages/public-page/forward/forward.vue index db7585b..8f1759b 100644 --- a/pages/public-page/forward/forward.vue +++ b/pages/public-page/forward/forward.vue @@ -75,7 +75,7 @@ </u-form-item> </u--form> - <view><u-button v-if="/鑱氭隘涔欑儻鏍戣剛/.test(this.productName) && isShow" text="鍒嗛厤鏃ヨ鍒掑惃鏁�" type="primary" :plain="true" @click="todoFenPei(val)"></u-button></view> + <view><u-button v-if="fenpeiFlag " text="鍒嗛厤鏃ヨ鍒掑惃鏁�" type="primary" :plain="true" @click="todoFenPei(val)"></u-button></view> </view> </view> </view> @@ -166,6 +166,7 @@ this.isshow=!reg.test(params.orderType) this.productName = params.productName; this.customerId = params.customerId; + this.packingType = params.packingType; this.pvcPlanMeasure = params.pvcPlanMeasure; // 瀹㈡埛 this.cars2 = Number(params.cars2); @@ -200,6 +201,7 @@ pvcPlanMeasure:'', forwardSurplus: 0, paramsName: {}, + packingType:'', productName:'', customerId:'', huoDaiData: [], @@ -266,6 +268,14 @@ }, text1() { return `宸叉嫢鏈�${this.carNum}寮犳敹鍙戝崟,鍓╀綑${this.carNumSurplusHuodai}寮犳敹鍙戝崟`; + }, + fenpeiFlag(){ + console.log(this.productName,this.packingType,'122222222cumped',/鑱氭隘涔欑儻鏍戣剛/.test(this.productName) || (this.packingType && this.packingType == '1')) + if(/鑱氭隘涔欑儻鏍戣剛/.test(this.productName) || (this.packingType && this.packingType == '1')){ + return true + }else{ + return false + } } }, methods: { @@ -663,7 +673,7 @@ if (res.code === 0) { this.loading = false this.$u.toast('鎻愪氦鎴愬姛'); - if(/鑱氭隘涔欑儻鏍戣剛/.test(this.productName)){ + if(this.fenpeiFlag()){ setTimeout(()=>{ uni .navigateTo({ url: `/subPages/allocaTetonnage/index?orderPlanId=${this.orderPlanId}&customerId=${this.customerId}&status=${1}&pvcPlanMeasure=${this.pvcPlanMeasure}`}); -- Gitblit v1.9.1