| | |
| | | <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> |
| | |
| | | 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) { |
| | |
| | | ], |
| | | isOrderType: '请选择', //磅房类型是否选择了 选择了清空 |
| | | cleanIconClick: true, //修改点击清空磅房选择会出现 |
| | | errorStatusList:[0,1,6,24,27,26] // 不能点击确认装卸的状态 |
| | | |
| | | }; |
| | | }, |
| | |
| | | close(){ |
| | | |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | open(){}, |
| | | enterOk(parintItem,item){ |
| | | console.log(parintItem,'priintItem') |
| | |
| | | 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 ? '计件数量' :'折吨'},以及是否空车出厂项!`); |