yangan
2024-02-05 fb20d356a9d1415816102a2610af383feaea5d3b
pages/driver-page/driver-index/bill-of-lading-details/punchTheClock/punchTheClock.vue
@@ -36,12 +36,14 @@
         this.punchTheClockObj.tmcoa = params.tmId.toString();
         this.orderPlanId = params.orderPlanId;
         this.coalStatus = params.coalStatus;
         this.yyId = params.yyId;
      },
      data() {
         return {
            nowTime: '',
            coalStatus: 0,
            orderPlanId:'',
            yyId:null,
            coalDetailsData:{},
            punchTheClockObj: {
               tmcoa: null,
@@ -63,6 +65,9 @@
      },
      methods: {
         init(){
            uni.showLoading({
               title: '加载中'
            });
            this.$reqGet('getTakeCoal', { takeCoalId: this.orderPlanId }).then(res => {
               uni.hideLoading();
               if (res.code == 0) {
@@ -129,13 +134,14 @@
                  console.log(res, '签到');
                  if (res.code == 0) {
                     this.$u.toast('签到成功');
                     setTimeout(() => {
                        uni.navigateBack({
                              delta: 1
                           },
                           500
                        );
                     });
                     // 如果是签到后才能更改时间,点签到完成就别返回主界面了,更改完后再返回
                     // setTimeout(() => {
                     //    uni.navigateBack({
                     //          delta: 1
                     //       },
                     //       500
                     //    );
                     // });
                  } else {
                     this.$u.toast(res.msg ? res.msg : '签到失败');
                  }