| | |
| | | <view class="third-line_text">客户名称:</view> |
| | | <view>{{ item.customerName }}</view> |
| | | </view> |
| | | <view class="third-line" v-if="/聚氯乙烯树脂/.test(item.productName)"> |
| | | <view class="third-line_text">包装类型:</view> |
| | | <view>{{ proType[item.packingType] }}</view> |
| | | </view> |
| | | <view class="third-line" v-if="item.productName === '二氯乙烷(EDC)'"> |
| | | <view class="third-line_text">质检状态:</view> |
| | | <view> <u-tag :text="checkStatusList[item.checkStatus]" plain > </u-tag></view> |
| | |
| | | :showCancelButton="true"> |
| | | <view class="slot-content"> |
| | | 是否确认装卸? |
| | | <view v-if="isNumOk || isClean"> |
| | | <view v-if="isNumOk || isClean||isFlagNum"> |
| | | <text>产品名称:{{activeObj.productName}}</text> |
| | | <view class="queren"> |
| | | <text>请输入</text>: |
| | | <u--input |
| | | type='digit' |
| | | border="bottom" |
| | | :placeholder="isNumOk ? '数量' :'折吨'" |
| | | :placeholder="/聚氯乙烯树脂/.test(activeObj.productName) ? '实际吨数' : isNumOk ? '数量' :'折吨'" |
| | | v-model="checkNum" |
| | | > |
| | | </u--input> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | proType:['散装','液氣瓶装','罐装','PVC25','PVC80','PVC1150','PVc1200'], |
| | | dataForm: { |
| | | firstClass: "", |
| | | secondClass: "", |
| | |
| | | typeText:'', // 确认装卸三种类型 |
| | | isNumOk:false, //计件 |
| | | isClean:false, // 折吨 |
| | | isFlagNum:false,// PVCV |
| | | // 场地操作菜单 |
| | | firstClassActionsList: [], |
| | | firstClassShow: false, |
| | |
| | | if( (parintItem.orderType === '外购' ||parintItem.orderType === '外购退' ) && item.isWeight === 0){ |
| | | this.isNumOk = true; |
| | | this.isClean = false; |
| | | this.isFlagNum = false; |
| | | //回显计数量 |
| | | this.checkNum = item.productQuantity ? item.productQuantity : ''; |
| | | }else if( parintItem.orderType ==='外购' && item.isWeight === 1){ |
| | | 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 = true; |
| | | this.isNumOk = false; |
| | | this.isClean = false; |
| | | this.isFlagNum = true;; |
| | | } |
| | | //瓶装液氯条件 |
| | | //EDC 质检完成方可确认 |
| | | if(item.packingType === 1){ |
| | | this.isNumOk = true; |
| | | this.isClean = false; |
| | | this.isFlagNum = false; |
| | | } |
| | | // |
| | | //pvc大包自动计算折吨 |
| | | if((/聚氯乙烯树脂/.test(item.productName) || item.productName === 'PVC') && item.packingType === 5){ |
| | | this.isNumOk = true; |
| | | this.isClean = false; |
| | | this.isFlagNum = false; |
| | | } |
| | | if(parintItem.orderType === '外购'){ |
| | | this.isEmptyCar = '1'; |
| | |
| | | productQuantity:this.isNumOk ? this.checkNum : '', |
| | | discount:this.isClean ? this.checkNum : null, |
| | | isEmptyCar:this.isEmptyCar, |
| | | isPretendDischar:this.activeObj.isPretendDischar |
| | | isPretendDischar:this.activeObj.isPretendDischar, |
| | | realityMeasure:this.isFlagNum ? this.checkNum : null, |
| | | productId:this.isFlagNum ? this.activeObj.productId : null, |
| | | },'json').then(res=>{ |
| | | uni.hideLoading(); |
| | | console.log(res,'rez') |