| | |
| | | clean: "" |
| | | }, |
| | | completeOutSaleShow: false, |
| | | overTmWaixiao: null |
| | | |
| | | overTmWaixiao: null, |
| | | // 判读网络状态, |
| | | normalCode: null |
| | | }; |
| | | }, |
| | | onShow() { |
| | |
| | | init() { |
| | | this.$reqGet('coalDayPage', { id: this.orderPlanId }).then(res => { |
| | | if (res.code == 0) { |
| | | // this.dayRZ = res.data; |
| | | this.dayRZ = res.data.map(v => { |
| | | let slicedate = v.taskStatusDes.slice(0, 10); |
| | | if (slicedate == this.currentDate) { |
| | |
| | | }, |
| | | // 日志查询 |
| | | coalDayPage() { |
| | | this.interval = setInterval(() => { |
| | | this.$reqGet('coalDayPage', { id: this.orderPlanId }).then(res => { |
| | | if (res.code == 0) { |
| | | // this.dayRZ = res.data; |
| | | this.dayRZ = res.data.map(v => { |
| | | let slicedate = v.taskStatusDes.slice(0, 10); |
| | | if (slicedate == this.currentDate) { |
| | | return { |
| | | ...v, |
| | | taskStatusDes: v.taskStatusDes.slice(10) |
| | | }; |
| | | } else { |
| | | return { ...v } |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | }, 10000); |
| | | if (this.normalCode) { |
| | | this.interval = setInterval(() => { |
| | | this.$reqGet('coalDayPage', { id: this.orderPlanId }).then(res => { |
| | | if (res.code == 0) { |
| | | this.normalCode = true; |
| | | this.dayRZ = res.data.map(v => { |
| | | let slicedate = v.taskStatusDes.slice(0, 10); |
| | | if (slicedate == this.currentDate) { |
| | | return { |
| | | ...v, |
| | | taskStatusDes: v.taskStatusDes.slice(10) |
| | | }; |
| | | } else { |
| | | return { ...v } |
| | | } |
| | | }); |
| | | } else { |
| | | this.normalCode = false; |
| | | } |
| | | }); |
| | | }, 10000); |
| | | } else { |
| | | clearInterval(this.interval) |
| | | this.$u.toast('服务器错误,请稍后重试') |
| | | } |
| | | }, |
| | | // 展示提煤单详情 |
| | | showCaolPickUpBill() { |
| | |
| | | |
| | | |
| | | .timeLine { |
| | | height: 40%; |
| | | height: 300rpx; |
| | | min-height: 300rpx; |
| | | margin: vww(20); |
| | | position: relative; |