From 80562e9717cddd049c42434f8904fcafee3343d1 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期三, 11 十二月 2024 14:13:08 +0800 Subject: [PATCH] feat:pvc拼单大于等于40提示 --- subPages/pvcSplicePage/index.vue | 25 ++++++++++++++++++++++--- 1 files changed, 22 insertions(+), 3 deletions(-) diff --git a/subPages/pvcSplicePage/index.vue b/subPages/pvcSplicePage/index.vue index 97955a0..330b502 100644 --- a/subPages/pvcSplicePage/index.vue +++ b/subPages/pvcSplicePage/index.vue @@ -17,7 +17,7 @@ <uni-tr v-for="(item, index) in daiPageList" :key="item.id"> - <uni-td align="center">{{ item.productName || '' }}</uni-td> + <uni-td align="center">{{ item.productName || '' }}</uni-td> <uni-td align="center">{{ item.customerName || '' }}</uni-td> <uni-td align="center"><u-button text="閫夋嫨" type="primary" @@ -200,12 +200,31 @@ if(!this.radioValue){ return this.$u.toast('蹇呴』閫夋嫨瑙勬牸') }else{ + let result = this.yiPageList.reduce((cur,next)=>cur + (next.productQuantity),Number(this.radioValue)); + if(result >= 40){ + uni.showModal({ + title: '鎻愮ず', + content: '鍔犱笂姝ゅ崟绱澶т簬绛変簬40鍚ㄤ簡,杩樿缁х画鎷煎崟鍚楋紵', + cancelText: "鍙栨秷", // 鍙栨秷鎸夐挳鐨勬枃瀛� d + confirmText: "纭", // 纭鎸夐挳鐨勬枃瀛� + showCancel: true, // 鏄惁鏄剧ず鍙栨秷鎸夐挳锛岄粯璁や负 true + confirmColor: '#f55850', + cancelColor: '#39B54A', + success: (res) => { + if(res.confirm) { + console.log('comfirm') //鐐瑰嚮纭畾涔嬪悗鎵ц鐨勪唬鐮� + } else { + console.log('cancel') //鐐瑰嚮鍙栨秷涔嬪悗鎵ц鐨勪唬鐮� + } + } + }) + } if (this.activeObj.tmcCount == '0') { this.qiangDan(this.activeObj.orderPlanId,this.activeObj.fleetId, !this.activeObj.customerId ? '0' : this.activeObj.customerId, !this.activeObj.xsUserId ? '0' : this.activeObj.xsUserId,this.mainTmTaskId); } else { - // this.qiangDanOrderPlanId = value.orderPlanId; - // this.fleetId = value.fleetId; + // this.qiangDanOrderPlanId = value.orderPlanId + // this.fleetId = // this.customerId = !value.customerId ? '0' : value.customerId; // this.xsUserId = !value.xsUserId ? '0' : value.xsUserId; // this.qiangDanShow = true; -- Gitblit v1.9.1