qingyiay
2023-04-10 7406be32979e90a730b5a2ac8d392892f71835d2
pages/driver-page/appointment/appointment.vue
@@ -78,6 +78,8 @@
            uni.hideLoading();
            if (res.code == 0) {
               this.yuYueData = res.data;
            } else {
               this.$u.toast('加载失败');
            }
         });
      },
@@ -96,11 +98,13 @@
         this.$reqPost('yuYue', { takeCoalId: this.yuYuePostParams.takeCoalId, yuYueId: this.yuYuePostParams.yuYueId }, 'params').then(res => {
            if (res.code == 0) {
               this.$u.toast('预约成功!');
               uni.navigateBack({
                  delta: 1
               })
               let timer = setTimeout(() => {
                  uni.navigateBack({
                     delta: 1
                  });
               }, 1000);
            } else {
               this.$u.toast(res.data ? res.data : '预约失败');
               this.$u.toast(res.msg ? res.msg : '预约失败');
            }
            setTimeout(() => {
               this.yuYueList();
@@ -114,7 +118,9 @@
         this.rcsqData.filedId = value.filedId;
         this.$reqPost('saveRCSQ', this.rcsqData, 'json').then(res => {
            if (res.code == 0) {
               this.$u.toast('新建入场申请成功。');
               this.$u.toast('入场申请成功');
            } else {
               this.$u.toast('入场申请失败,请稍后重试');
            }
         });
      }