qingyiay
2023-06-29 ceeb19ad302df0ae6146895cac263d7bdc38ac31
pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
@@ -212,8 +212,9 @@
               clean: ""
            },
            completeOutSaleShow: false,
            overTmWaixiao: null
            overTmWaixiao: null,
            // 判读网络状态,
            normalCode: null
         };
      },
      onShow() {
@@ -259,7 +260,6 @@
         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) {
@@ -349,24 +349,31 @@
         },
         // 日志查询
         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() {
@@ -703,7 +710,7 @@
      .timeLine {
         height: 40%;
         height: 300rpx;
         min-height: 300rpx;
         margin: vww(20);
         position: relative;