| | |
| | | <view>毛重:{{Number(activeObj.hair).toFixed(2) || ''}}</view> |
| | | <view >净重:{{ Number(activeObj.clean).toFixed(2) || ''}}</view> |
| | | </view> |
| | | <view class="queren"> |
| | | <view v-if="/聚氯乙烯树脂/.test(activeObj.productName)"> |
| | | <view>计划量:{{Number(activeObj.planMeasure)}}</view> |
| | | <view >实际量:{{ Number(activeObj.realityMeasure)}}</view> |
| | | </view> |
| | | <view class="queren" v-show="isCleanFlag === '1'"> |
| | | <text>请输入</text>: |
| | | <u--input |
| | | type='digit' |
| | |
| | | v-model="checkNum" |
| | | > |
| | | </u--input> |
| | | <text> {{isNumOk ? '件' : '吨' }}</text> |
| | | <text> {{isNumOk ? activeObj.productUnit : '吨' }}</text> |
| | | </view> |
| | | <!-- 是否输入折吨 --> |
| | | <view style="display:flex;margin-top:20rpx" v-if="isClean">是否需要折吨: <u-radio-group |
| | | v-model="isCleanFlag" |
| | | placement="row" |
| | | @change="isCleanChange" |
| | | iconPlacement="right" |
| | | style="justify-content: space-evenly" |
| | | > |
| | | <u-radio |
| | | :key="1" |
| | | :label="'是'" |
| | | :name="'1'" |
| | | shape="circle" |
| | | iconSize="32" |
| | | label-size="32" |
| | | size="40" |
| | | > |
| | | </u-radio> |
| | | <u-radio |
| | | :key="0" |
| | | :label="'否'" |
| | | :name="'0'" |
| | | shape="circle" |
| | | iconSize="32" |
| | | label-size="32" |
| | | size="40" |
| | | > |
| | | </u-radio> |
| | | </u-radio-group></view> |
| | | <!-- 聚氯乙烯树脂 并且是大包 --> |
| | | <view class="pvcBig" v-if="activeObj.productName === '聚氯乙烯树脂' && activeObj.packingType === 5"> |
| | | |
| | | </view> |
| | | <view v-if="isNumOk && activeObj.productQuantity">当前数量:{{activeObj.productQuantity}}件</view> |
| | | <view v-if="isNumOk && activeObj.productQuantity">当前数量:{{activeObj.productQuantity}}{{ activeObj.productUnit || '件' }}</view> |
| | | <view v-if="activeObj.containerNumber"><span>集装箱号:</span>{{activeObj.containerNumber}}</view> |
| | | |
| | | </view> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | proType:['散装','液氣瓶装','罐装','PVC25','PVC80','PVC1150','PVc1200'], |
| | | proType:['散装','液氯瓶装','罐装','PVC25','PVC80','PVC1150','PVc1200'], |
| | | coalStatus: ['领取', '预约', '签到', '入场', '称皮', '称毛', '离场', '入磅房', '出磅房', '入仓库', '出仓库', '放空', '作废', '入场申请', |
| | | '进入场院', '异常审核中', '返回加减吨', '超时', '打印中', '打印中', '填写', '放空确认中', '超最大毛重确认中','补打','入场检查','质检中', |
| | | '离场检查','已打印','装卸','返回加减吨确认中' |
| | | ], |
| | | isCleanFlag:'1', |
| | | dataForm: { |
| | | firstClass: "", |
| | | secondClass: "", |
| | | orderType: '', |
| | | bunkerIds:"" |
| | | }, |
| | | historyData:[], |
| | | historyData:[], |
| | | messageObj:{ |
| | | carNo:'', |
| | | }, |
| | |
| | | enterZx:false, |
| | | typeText:'', // 确认装卸三种类型 |
| | | isNumOk:false, //计件 |
| | | isClean:false, // 折吨 |
| | | isClean:false, // 折吨 |
| | | isFlagNum:false,// PVCV |
| | | // 场地操作菜单 |
| | | firstClassActionsList: [], |
| | |
| | | }, |
| | | //获取已装卸收发单 |
| | | 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{ |
| | |
| | | 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=>{ |
| | |
| | | close(){ |
| | | |
| | | }, |
| | | isCleanChange(val){ |
| | | console.log(val,'触发') |
| | | if(val === '0'){ |
| | | this.checkNum = ''; |
| | | } |
| | | |
| | | }, |
| | | open(){}, |
| | | enterOk(parintItem,item){ |
| | | console.log(parintItem,'priintItem') |
| | |
| | | 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; |
| | |
| | | } |
| | | // |
| | | //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(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; |
| | | |
| | | }, |
| | |
| | | }); |
| | | 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订单质检状态后在确认装卸!`); |
| | | |