| | |
| | | </view> |
| | | </view> |
| | | <view class="senddate">{{ item.orderCode }}</view> |
| | | <view class="rightBtn"><u-button type='primary' text='一键确认' v-if="item.isWeight === 0 && item.tmTaskCoalList.length >1 && item.packingType !== 1" @click.native.stop="allOkBtn(item)"></u-button></view> |
| | | </view> |
| | | <view class="table"> |
| | | <uni-table border stripe |
| | |
| | | <uni-td align="center"> |
| | | <view class="btnBox"> |
| | | <!-- --> |
| | | <u-button type='primary' text='修改' size='mini' @click="editOrder(subItem)"></u-button> |
| | | <!-- <u-button type='primary' text='修改' size='mini' v-if="subItem.isWeight === 0 || subItem.isWeight === 2 " @click="editOrder(subItem)"></u-button> --> |
| | | <u-button type='primary' text='拼单' size='mini' v-if="isPinShow(item)" @click="pinDan(subItem)"></u-button> |
| | | </view></uni-td> |
| | | <uni-td w align="center"> |
| | |
| | | <text>请输入</text>: |
| | | <u--input |
| | | type='digit' |
| | | :disabled="yelvFlag" |
| | | border="bottom" |
| | | :placeholder="/聚氯乙烯树脂/.test(activeObj.productName) ? '实际吨数' : isNumOk ? '数量' : blend ? '数量' : '折吨'" |
| | | v-model="checkNum" |
| | |
| | | </view> |
| | | |
| | | </view> |
| | | </u-modal> |
| | | <u-modal :show="showConfim" @confirm="confirmEnter" :showCancelButton="true" @cancel="showConfim = false" ref="uModal" :asyncClose="true"> |
| | | <view> 是否确定一键装卸?</view> |
| | | </u-modal> |
| | | <!-- 仓库 --> |
| | | <!-- <u-action-sheet :actions="secondClassActionsList" |
| | |
| | | ], |
| | | isCleanFlag:'1', |
| | | checkNumEdit:'', |
| | | showConfim:false, |
| | | remarkContent:'', |
| | | dataForm: { |
| | | firstClass: "", |
| | | secondClass: "", |
| | | orderType: '', |
| | | bunkerIds:"" |
| | | }, |
| | | historyData:[], |
| | | historyData:[], |
| | | paramsItem:{}, |
| | | messageObj:{ |
| | | carNo:'', |
| | | }, |
| | |
| | | typeText:'', // 确认装卸三种类型 |
| | | isNumOk:false, //计件 |
| | | isClean:false, // 折吨 |
| | | yelvFlag:false, |
| | | isFlagNum:false,// PVCV |
| | | // 场地操作菜单 |
| | | firstClassActionsList: [], |
| | |
| | | |
| | | }, |
| | | open(){}, |
| | | allOkBtn(item){ |
| | | //点击一键确认 |
| | | this.paramsItem = item; |
| | | |
| | | this.showConfim = true; |
| | | |
| | | }, |
| | | enterOk(parintItem,item){ |
| | | this.yelvFlag = false; |
| | | console.log(parintItem,'priintItem') |
| | | // uni.request({ |
| | | // url: `${BaseUrl}/admin/dict/type/tray_weight`, |
| | |
| | | if(item.packingType === 1){ |
| | | this.isNumOk = true; |
| | | this.isClean = false; |
| | | this.yelvFlag = true; |
| | | this.checkNum = item.planMeasure; |
| | | this.blend = false; |
| | | this.isCleanFlag = '1'; |
| | | this.isFlagNum = false; |
| | |
| | | }else if( this.isEmptyCar === null){ |
| | | this.$u.toast(`请检查${this.isNumOk ? '计件数量' :'折吨'},以及是否空车出厂项!`); |
| | | //装卸 为 2 ,但是必须得称重 |
| | | }else if( (this.activeObj.isWeight === 2 || this.activeObj.packingType === 1) && (!this.activeObj.skin && !this.activeObj.hair) ){ |
| | | console.log('》》》》》》》》》》》触发') |
| | | this.enterZx = false; |
| | | this.$u.toast(`请先称重后装卸确认!`); |
| | | } |
| | | else{ |
| | | this.enterZx = false; |
| | |
| | | //判断是否是 三种特殊类型对应弹窗 |
| | | judgeTypeFun(name){ |
| | | |
| | | |
| | | }, |
| | | //确认 |
| | | confirmEnter(){ |
| | | this.$reqPost('oneClickLoading',{tmId:this.paramsItem.id},'params').then((res) => { |
| | | if(res.code == 0){ |
| | | console.log(res,'res') |
| | | this.$u.toast('一键确认成功') |
| | | this.showConfim = false; |
| | | setTimeout(() => { |
| | | this.getDetailData(); |
| | | }, 500); |
| | | }else{ |
| | | this.showConfim = false; |
| | | this.$u.toast(res.msg ? res.msg : '一键确认失败'); |
| | | } |
| | | |
| | | }).catch(err=>{ |
| | | this.$u.toast(err ? err : '操作异常') |
| | | }) |
| | | |
| | | }, |
| | | //查看最近一次的原盐钙镁 |
| | |
| | | width: auto; |
| | | } |
| | | |
| | | } |
| | | .rightBtn{ |
| | | position: absolute; |
| | | right: 100rpx; |
| | | bottom: 5rpx; |
| | | } |
| | | .notice-bar{ |
| | | margin-left: vww(10); |
| | |
| | | } |
| | | } |
| | | .history-information { |
| | | position: relative; |
| | | margin-bottom:30rpx; |
| | | margin-top: 10rpx; |
| | | background: #ffffff; |
| | |
| | | font-size: 30rpx; |
| | | font-weight: 300; |
| | | color: #515151; |
| | | position: relative; |
| | | margin: vww(10) vww(10) 0; |
| | | @include flex; |
| | | |