yangan
2024-09-26 0eab6dcc163bec041d44bc27c9c89ef9c6ec988d
pages/loadUnload-page/selectTarget/selectTarget.vue
@@ -519,7 +519,7 @@
               '进入场院', '异常审核中', '返回加减吨', '超时', '打印中', '打印中', '填写', '放空确认中', '超最大毛重确认中','补打','入场检查','质检中',
               '离场检查','已打印','装卸','返回加减吨确认中'
            ],
            isCleanFlag:'0',
            isCleanFlag:'1',
            dataForm: {
               firstClass: "",
               secondClass: "",
@@ -597,7 +597,7 @@
         },
         //获取已装卸收发单
         getTodayOrder(){
            this.$reqGet('getTodayConfirmedTaskCoalList',{ bunkerIds:this.dataForm.bunkerIds }).then(res=>{
            this.$reqGet('getTodayConfirmedTaskCoalList',{ bunkerIds:this.dataForm.bunkerIds,productIds:uni.getStorageSync('productIds')}).then(res=>{
             if(res.code === 0){
               this.historyData = res.data;
             }else{
@@ -654,7 +654,7 @@
                 uni.showLoading({
                    title:'加载中'
                })
               this.$reqGet('getTaskCoalListByBunkerId', { bunkerIds:this.dataForm.bunkerIds }).then(res => {
               this.$reqGet('getTaskCoalListByBunkerId', { bunkerIds:this.dataForm.bunkerIds, productIds:uni.getStorageSync('productIds')}).then(res => {
               uni.hideLoading();
               if (res.code === 0) {
                  this.detailData = res.data.map(item=>{
@@ -742,11 +742,8 @@
               this.isClean = true;
               this.isNumOk = false;
                 this.isFlagNum = false;
            }else{
               this.isNumOk = false;
               this.isClean = false;
                 this.isFlagNum = false;
            }
            //聚氯乙烯树脂
             if(parintItem.orderType ==='外销' && (/聚氯乙烯树脂/.test(item.productName) || item.productName === 'PVC')  && (item.packingType === 3 || item.packingType === 4)){
               this.isNumOk = false;
@@ -763,22 +760,31 @@
            }
            //
            //pvc大包自动计算折吨
            if((/聚氯乙烯树脂/.test(item.productName) || item.productName === 'PVC')  && item.packingType === 5){
               this.isNumOk = false;
               this.isClean = false;
                this.isFlagNum = true;
            }
            if(parintItem.orderType === '外购'){
               this.isEmptyCar = '1';
            }else if(parintItem.orderType === '外销' || parintItem.orderType === '外购退'){
               this.isEmptyCar = '0';
            }
            //外销不用 输入折吨
            if(parintItem.orderType ==='外销'){
            if(item.isWeight === 1){
               this.isNumOk = false;
               this.isClean = true;
                this.isFlagNum = false;
            }else{
               this.isNumOk = true;
               this.isClean  = false;
                this.isFlagNum = false;
            }
            if((/聚氯乙烯树脂/.test(item.productName) || item.productName === 'PVC')  && item.packingType === 5){
               this.isNumOk = false;
               this.isClean = false;
                this.isFlagNum = true;
            }
            //外销不用 输入折吨
            // if(parintItem.orderType ==='外销'){
            //    this.isClean  = false;
            // }
         this.enterZx = true;
            
         },
@@ -798,7 +804,7 @@
                });
            console.log(this.activeObj,this.activeObj.productName ==='二氯乙烷(EDC)' && this.activeObj.checkStatus !== 7,'12313')
            if(this.activeObj.productName ==='二氯乙烷(EDC)' && this.activeObj.checkStatus !== 7){
               console.log('触发,’13131')
               this.enterZx = false;
               this.$u.toast(`请检查当前二氯乙烷(EDC)DC订单质检状态后在确认装卸!`);