| | |
| | | <view class="collection-form"> |
| | | <view class="collection-form-item" |
| | | v-for="(item, index) in detailData" |
| | | @click="faYundetail(item)" |
| | | :key="index"> |
| | | <view class="weigh-item"> |
| | | <view class="item"> |
| | |
| | | shape="circle" |
| | | @click.stop="loadOrder(item.id)" |
| | | :loading="loading" |
| | | loadingText="确认" |
| | | v-if='!item.ableDischar&&item.isContainLoginUser'></u-button> |
| | | loadingText="确认"></u-button> |
| | | </view> |
| | | <!-- 如果有剩余收发单则点击查看更多 --> |
| | | <view class='downIcon' v-if='item.tmTaskCoalList.length'> |
| | |
| | | </view> |
| | | <!-- 剩余收发单 ----多产品 --> |
| | | <view class='subBox' v-if='item.tmTaskCoalList.length && item.checkFlag'> |
| | | <view class='subItem' v-for='subItem,i in item.tmTaskCoalList' :key='i'> |
| | | <view class='subItem' v-for='subItem,i in item.tmTaskCoalList' :key='i' |
| | | @click="faYundetail(subItem)" |
| | | > |
| | | <view class="weigh-item" style="position:static"> |
| | | <view class="item"> |
| | | <view class="concrete" |
| | |
| | | <view class='btnBottom'> |
| | | <u-button plain |
| | | type="primary" |
| | | text="确定装卸" |
| | | :text="subItem.orderTye === '外销' ? '确定卸货' :'确定装货'" |
| | | shape="circle" |
| | | @click.stop="loadOrder(subItem.id,item)" |
| | | :loading="loading" |
| | | v-if='!subItem.ableDischar&&subItem.isContainLoginUser' |
| | | v-if="isBtnShow(subItem)" |
| | | loadingText="确认" |
| | | ></u-button> |
| | | </view> |
| | |
| | | computed: { |
| | | userId() { |
| | | return uni.getStorageSync('userId') |
| | | }, |
| | | isBtnShow(){ |
| | | return function (item){ |
| | | if(item.productName === 'EDC'){ |
| | | if(item.status === 15){ |
| | | return true |
| | | }else{ |
| | | return false |
| | | } |
| | | }else{ |
| | | return true |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | onLoad(params) { |