qingyiay
2023-09-21 c234dffcd3adaf7b8d87a5a8301871493c0cadbd
pages/loadUnload-page/loadUnload-detail/loadUnload-detail.vue
@@ -53,7 +53,7 @@
                  @click.stop="loadOrder(item.id)"
                  :loading="loading"
                  loadingText="确认"
                  v-if='item.isPretendDischar===0'></u-button>
                  v-if='!item.ableDischar'></u-button>
            </view>
         </view>
      </view>
@@ -77,7 +77,7 @@
            loading: false,
            id: "",
            coalStatus: ['领取', '预约', '签到', '入场', '称皮', '称毛', '离场', '入磅房', '出磅房', '入煤仓', '出煤仓', '放空', '作废', '入场申请',
               '进入场院', '异常审核中'
               '进入场院', '异常审核中',
            ], // 状态
         }
      },
@@ -93,7 +93,14 @@
            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('加载失败')
               }