yangan
2024-07-05 9a0876466b8d98816294f2cae5f564b2e69972ef
pages/loadUnload-page/selectTarget/selectTarget.vue
@@ -115,7 +115,7 @@
               <view class="btnBox"> 
                  <!--   -->
                  <u-button   text='查看'  @click="viewDetail(subItem)"></u-button>
                  <u-button type='primary' text='确认装卸'  v-if="subItem.flag" @click="enterOk(item,subItem)"></u-button>
                  <u-button type='primary' text='确认装卸'  v-if="subItem.flag && isBtnShow(subItem)" @click="enterOk(item,subItem)"></u-button>
                  </view></uni-td>
                  <uni-td align="center">
                     <view>{{ subItem.productName }}</view></uni-td>
@@ -238,6 +238,25 @@
            default: {}
         }
      },
      computed:{
         isBtnShow(){
            return function(item){
               console.log(item,'itemssss')
               if(!item){
                  return false
               }else{
                  if(this.errorStatusList.includes(item.status)){
                     return false
                  }else{
                     return true;
                  }
               }
            }
         }
      },
      watch: {
         loadUnloadData: {
            handler(v) {
@@ -292,6 +311,7 @@
            ],
            isOrderType: '请选择', //磅房类型是否选择了 选择了清空
            cleanIconClick: true, //修改点击清空磅房选择会出现
            errorStatusList:[0,1,6,24,27,26] // 不能点击确认装卸的状态
         };
      },
@@ -389,10 +409,6 @@
         close(){
         },
         open(){},
         enterOk(parintItem,item){
            console.log(parintItem,'priintItem')
@@ -463,11 +479,10 @@
                uni.showLoading({
                    title:'加载中'
                });
            if(this.activeObj.productName ==='EDC'){
               if( this.activeObj.checkStatus !== 7){
                        this.$u.toast(`请检查当前EDC订单质检状态后在确认装卸!`);
                        return
               }
            console.log(this.activeObj,'12313')
            if(this.activeObj.productName ==='EDC' && this.activeObj.checkStatus !== 7){
               this.$u.toast(`请检查当前EDC订单质检状态后在确认装卸!`);
               return
               
            }else if( this.isEmptyCar === null){
               this.$u.toast(`请检查${this.isNumOk ? '计件数量' :'折吨'},以及是否空车出厂项!`);