From 48a4ff3409804fc62139a9fa9fc05498cbc0a0ce Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期四, 05 九月 2024 17:41:02 +0800 Subject: [PATCH] feat:库管拼单 --- pages/public-page/forward/forward.vue | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/pages/public-page/forward/forward.vue b/pages/public-page/forward/forward.vue index 24a7af3..1e64080 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 text="鍒嗛厤鏃ヨ鍒掑惃鏁�" type="primary" :plain="true" @click="todoFenPei"></u-button></view> + <view><u-button v-if="/鑱氭隘涔欑儻鏍戣剛/.test(this.productName) && isShow" 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.pvcPlanMeasure = params.pvcPlanMeasure; // 瀹㈡埛 this.cars2 = Number(params.cars2); this.tempcarNumSurplus1 = this.carNumSurplus1 = Number(params.carNumSurplus1 || 0); @@ -196,6 +197,7 @@ data() { return { isshow:false, + pvcPlanMeasure:'', forwardSurplus: 0, paramsName: {}, productName:'', @@ -239,6 +241,7 @@ }], loading: false, //鎻愪氦loading originForwardName: '', //鍘熻浆鍙戝璞� + isShow:false, laterForwardName: '', //鍚庤浆鍙戝璞� errorDataList: [], // 閿欒鏁版嵁 isDirectAdd: false, // 鏄惁鏄湪鍘熸潵鏈夊璞$殑item淇敼 鏄殑涓簍rue @@ -248,6 +251,7 @@ onShow() { this.init(); this.getBuild(); + // this.getOrderPlan(); if (this.roleType == 2) { this.list1.splice(1, 1); this.tabHuoDai = false; @@ -271,6 +275,12 @@ }) this.$reqGet('forwardList', { OrderPlanId: this.orderPlanId }).then(res => { uni.hideLoading() + if(res.data.length){ + this.isShow = true; + }else{ + this.isShow = false; + + } if (res.data.length !== 0 && this.roleType == 1) { this.jhOrderPlanForwardList = res.data.map((item, index) => { return { @@ -487,6 +497,7 @@ // this.selectPopupShow = true; // } // } else { + console.log(this.jhOrderPlanForwardList,item,'jhOrderPlanForwardList') let isableAdd = this.jhOrderPlanForwardList.filter(v => item.name === v.name); if (isableAdd.length > 0) { this.$u.toast('瀛樺湪閲嶅娣诲姞'); @@ -651,7 +662,7 @@ if(/鑱氭隘涔欑儻鏍戣剛/.test(this.productName)){ setTimeout(()=>{ uni - .navigateTo({ url: `/subPages/allocaTetonnage/index?orderPlanId=${this.orderPlanId}&customerId=${this.customerId}&status=${0}`}); + .navigateTo({ url: `/subPages/allocaTetonnage/index?orderPlanId=${this.orderPlanId}&customerId=${this.customerId}&status=${0}&pvcPlanMeasure=${this.pvcPlanMeasure}`}); },500) @@ -678,9 +689,9 @@ this.tabHuoDai = false; } }, - todoFenPei(){ + todoFenPei(val){ uni - .navigateTo({ url: `/subPages/allocaTetonnage/index?orderPlanId=${this.orderPlanId}&customerId=${this.customerId}`}); + .navigateTo({ url: `/subPages/allocaTetonnage/index?orderPlanId=${this.orderPlanId}&customerId=${this.customerId}&fleetId=${val.fleetId}&pvcPlanMeasure=${this.pvcPlanMeasure}`}); } } }; -- Gitblit v1.9.1