| | |
| | | @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 : '装卸失败') |
| | | } |