yangan
2024-12-11 80562e9717cddd049c42434f8904fcafee3343d1
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;