| | |
| | | </view> |
| | | <view class="info-container"> |
| | | <view class="info-block"> |
| | | <view class="car-num info"> |
| | | <text class="label-text">车牌号:</text>{{item.carNo}} |
| | | </view> |
| | | <view class="order-margin info"> |
| | | <text class="label-text">煤种名称:</text> |
| | | {{item.coalName}} |
| | | </view> |
| | | <view class="order-type info"> |
| | | 订单类型:{{item.orderType}} |
| | | </view> |
| | | <view class="car-num info"> |
| | | 车牌号:{{item.carNo}} |
| | | </view> |
| | | <view class="file-name info"> |
| | | 状态:{{coalStatus[item.status]}} |
| | | </view> |
| | | <view class="order-margin info"> |
| | | 煤种名称:{{item.coalName}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | @click.stop="loadOrder(item.id)" |
| | | :loading="loading" |
| | | loadingText="确认" |
| | | v-if='item.isPretendDischar===0'></u-button> |
| | | v-if='!item.ableDischar'></u-button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | loading: false, |
| | | id: "", |
| | | coalStatus: ['领取', '预约', '签到', '入场', '称皮', '称毛', '离场', '入磅房', '出磅房', '入煤仓', '出煤仓', '放空', '作废', '入场申请', |
| | | '进入场院', '异常审核中' |
| | | '进入场院', '异常审核中', '返回加减吨', '超时', '打印中', '打印中' |
| | | ], // 状态 |
| | | } |
| | | }, |
| | |
| | | this.init() |
| | | }, |
| | | methods: { |
| | | onPullDownRefresh() { |
| | | this.init() |
| | | uni.stopPullDownRefresh(); |
| | | }, |
| | | init() { |
| | | uni.showLoading({ |
| | | title: "加载中" |
| | |
| | | this.$reqGet('getAccordingCoalNameAll', { coalName: this.name }).then(res => { |
| | | uni.hideLoading() |
| | | if (res.code === 0) { |
| | | this.detailData = res.data |
| | | const errorStatusArr = [0, 1, 2, 3, 6, 11, 12, 13]; |
| | | this.detailData = res.data.map(v => { |
| | | return { |
| | | ...v, |
| | | ableDischar: v.skin === v.hair || v.hair === 0 && v.skin === 0 || v |
| | | .isPretendDischar !== 0 || errorStatusArr.indexOf(v.status) !== -1 |
| | | } |
| | | }) |
| | | } else { |
| | | this.$u.toast('加载失败') |
| | | } |
| | |
| | | this.loading = false; |
| | | if (res.code === 0) { |
| | | this.$u.toast('装卸成功') |
| | | this.init() |
| | | setTimeout(() => { |
| | | this.init() |
| | | }, 1000) |
| | | } else { |
| | | this.$u.toast(res.msg ? res.msg : '装卸失败') |
| | | } |
| | |
| | | display: flex; |
| | | justify-content: center; |
| | | flex-wrap: wrap; |
| | | |
| | | .car-num, |
| | | .order-margin { |
| | | color: #FF0000; |
| | | font-weight: 600; |
| | | |
| | | .label-text { |
| | | color: #409eff; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | .info { |