| | |
| | | <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] // 不能点击确认装卸的状态 |
| | | |
| | | }; |
| | | }, |