From 8d80e8c9a3feb6c7e4c3d5dd9aa18f74885d1435 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期四, 07 十一月 2024 10:48:27 +0800 Subject: [PATCH] feat:修改逻辑条件 --- pages/loadUnload-page/selectTarget/selectTarget.vue | 46 ++++++++++++++++++++++++++++++++++------------ 1 files changed, 34 insertions(+), 12 deletions(-) diff --git a/pages/loadUnload-page/selectTarget/selectTarget.vue b/pages/loadUnload-page/selectTarget/selectTarget.vue index f6004da..add4917 100644 --- a/pages/loadUnload-page/selectTarget/selectTarget.vue +++ b/pages/loadUnload-page/selectTarget/selectTarget.vue @@ -130,7 +130,7 @@ <uni-th align="center" width='100'>鏁伴噺</uni-th> --> <uni-th align="center" width='120'>纭閲�</uni-th> <uni-th align="center" width='120'>璁″垝閲�</uni-th> - <uni-th align="center" width='120'>璁¢噸鏂瑰紡</uni-th> + <uni-th align="center" width='150'>璁¢噸鏂瑰紡</uni-th> <!-- <uni-th align="center" width='100'>瀹為檯閲�</uni-th> --> @@ -264,7 +264,7 @@ <uni-th align="center" width='100'>鏁伴噺</uni-th> --> <uni-th align="center" width='120'>纭閲�</uni-th> <uni-th align="center" width='120'>璁″垝閲�</uni-th> - <uni-th align="center" width='120'>璁¢噸鏂瑰紡</uni-th> + <uni-th align="center" width='150'>璁¢噸鏂瑰紡</uni-th> </uni-tr> @@ -348,12 +348,21 @@ <view v-if="activeObj.skin">鐨噸锛歿{activeObj.skin.toFixed(2) || ''}}</view> <view v-if="activeObj.hair">姣涢噸锛歿{activeObj.hair.toFixed(2) || ''}}</view> </view> - <view v-if="/鑱氭隘涔欑儻鏍戣剛/.test(activeObj.productName)"> + <view v-if="activeObj.isContainerNum"><span>闆嗚绠卞彿锛� </span> + <u--input v-model="activeObj.containerNumber" + clearable + style="border: solid 1px #ccc;" + placeholder="杈撳叆闆嗚绠卞彿" + prefixIconStyle="color: #909399"></u--input> + <view><text style="color: red;">璇疯鐪熸牳瀵归泦瑁呯鍙峰啀鎻愪氦锛�</text></view> + </view> + <!-- <view v-if="/鑱氭隘涔欑儻鏍戣剛/.test(activeObj.productName)"> <view>璁″垝閲忥細{{Number(activeObj.planMeasure)}}</view> <view >瀹為檯閲忥細{{ Number(activeObj.productQuantity)}}</view> - </view> + </view> --> <view class="queren" v-show="isCleanFlag === '1'"> - <text>璇疯緭鍏�</text>锛� + <text v-if="isNumOk || isFlagNum">纭閲忥細</text> + <text v-if="isClean || blend">璇疯緭鍏ワ細</text> <u--input type='digit' :disabled="yelvFlag" @@ -362,8 +371,12 @@ v-model="checkNum" > </u--input> - <text> {{isNumOk ? activeObj.productUnit : '鍚�' }}</text> + <text v-if="isNumOk || isFlagNum || blend"> {{isNumOk ? activeObj.productUnit : '浠�' }}</text> + <text v-if="isClean"> {{'鍚�' }}</text> </view> + <!-- v-if="activeObj.containerNumber" --> + + <!-- 鏄惁杈撳叆鎶樺惃 --> <view style="display:flex;margin-top:20rpx" v-if="isClean">鏄惁闇�瑕佹姌鍚細 <u-radio-group v-model="isCleanFlag" @@ -397,8 +410,10 @@ <view class="pvcBig" v-if="activeObj.productName === '鑱氭隘涔欑儻鏍戣剛' && activeObj.packingType === 5"> </view> - <view v-if="isNumOk && activeObj.planMeasure">璁″垝閲忥細{{activeObj.planMeasure}}{{ activeObj.productUnit || '浠�' }}</view> - <view v-if="activeObj.containerNumber"><span>闆嗚绠卞彿锛�</span>{{activeObj.containerNumber}}</view> + + + <view v-if=" activeObj.planMeasure">璁″垝閲忥細{{activeObj.planMeasure}}{{ activeObj.productUnit || '浠�' }}</view> + </view> <view style="display:flex;margin-top:20rpx">鏄惁绌鸿溅鍑哄巶: <u-radio-group @@ -914,6 +929,7 @@ this.blend = true; this.isNumOk = false; this.isClean = false; + this.checkNum = item.productQuantity; // this.isCleanFlag = '0'; this.isFlagNum = false; } @@ -922,11 +938,13 @@ this.isCleanFlag = '1'; this.blend = false; this.isClean = false; + this.checkNum = item.productQuantity; this.isFlagNum = false; } if( (parintItem.orderType === '澶栬喘' ||parintItem.orderType === '澶栬喘閫�' ) && item.isWeight === 0){ this.isNumOk = true; this.isClean = false; + this.checkNum = item.productQuantity; this.blend = false; this.isFlagNum = false; this.isCleanFlag = '1'; @@ -947,14 +965,14 @@ this.isCleanFlag = '1'; this.blend = false; this.isFlagNum = true;; - this.checkNum = item.planMeasure; + this.checkNum = item.productQuantity; } //鐡惰娑叉隘鏉′欢 //EDC 璐ㄦ瀹屾垚鏂瑰彲纭 if(item.packingType === 1){ this.isNumOk = true; this.isClean = false; - this.yelvFlag = true; + // this.yelvFlag = true; this.checkNum = item.productQuantity; this.blend = false; this.isCleanFlag = '1'; @@ -973,6 +991,7 @@ this.isNumOk = false; this.isClean = false; this.blend = false; + this.checkNum = item.productQuantity; this.isFlagNum = true; this.isCleanFlag = '1'; } @@ -1005,8 +1024,6 @@ uni.showLoading({ title:'鍔犺浇涓�' }); - console.log(this.activeObj,(this.activeObj.isWeight === 2 || this.activeObj.packingType === 1) && (this.activeObj.skin || this.activeObj.hair),'activeObj') - console.log(this.activeObj,this.activeObj.productName ==='浜屾隘涔欑兎(EDC)' && this.activeObj.checkStatus !== 7,'12313') if(this.activeObj.productName ==='浜屾隘涔欑兎(EDC)' && this.activeObj.checkStatus !== 7){ this.enterZx = false; this.$u.toast(`璇锋鏌ュ綋鍓嶄簩姘箼鐑�(EDC)DC璁㈠崟璐ㄦ鐘舵�佸悗鍦ㄧ‘璁よ鍗�!`); @@ -1014,6 +1031,10 @@ }else if( this.isEmptyCar === null){ this.$u.toast(`璇锋鏌�${this.isNumOk ? '璁′欢鏁伴噺' :'鎶樺惃'}锛屼互鍙婃槸鍚︾┖杞﹀嚭鍘傞」!`); //瑁呭嵏 涓� 2 锛屼絾鏄繀椤诲緱绉伴噸 + }else if( (this.activeObj.isWeight === 2 ) && (!this.activeObj.skin && !this.activeObj.hair) ){ + console.log('銆嬨�嬨�嬨�嬨�嬨�嬨�嬨�嬨�嬨�嬨�嬭Е鍙�') + this.enterZx = false; + this.$u.toast(`璇峰厛绉伴噸鍚庤鍗哥‘璁わ紒`); } else{ this.enterZx = false; @@ -1026,6 +1047,7 @@ realityMeasure:this.isFlagNum ? this.checkNum : null, productId:this.isFlagNum ? this.activeObj.productId : null, discountJpg:this.discountJpg, + containerNumber:this.activeObj.containerNumber ? this.activeObj.containerNumber : null },'json').then(res=>{ uni.hideLoading(); console.log(res,'rez') -- Gitblit v1.9.1