yangfeng
2023-12-11 14101bd42ce17dfb9d951d0738abe9d303fb3fe5
src/components/TaskControlModal.vue
@@ -74,7 +74,7 @@
                  客户名称:{{ currentTaskData.Order.customer || "" }}
                </div>
                <div class="title-item title-item-two">
                  货物描述: {{ currentTaskData.Order.orderAttr || "" }}
                  通道: {{ channelNameConfig[currentTaskData.Channel] || "" }}
                </div>
                <div class="title-item title-item-two">
@@ -228,13 +228,18 @@
      showBtn: 1,
      num: 0,
      timer: null,
      safeProduce:'',
      safeProduce: '',
      message: this.safeProduce,
      messageError: "",
      resParams: {},
      isLoading: false,
      second: 0,
      secondTimer: null,
      // 通道名称配置 Channel 0 对应展示 0, Channel 1 对应展示 A,暂时忽略其余情况
      channelNameConfig: {
        0: '0',
        1: 'A'
      }
    };
  },
  mounted() {
@@ -271,10 +276,6 @@
    }
  },
  watch: {
    taskData(val) {
      this.message = this.safeProduce;
      this.getInfo();
    },
    num() {
      if (this.num === 30) {
        clearInterval(this.timer);
@@ -291,6 +292,9 @@
      if (this.timer) {
        clearInterval(this.timer);
      }
      if (this.secondTimer) {
        clearInterval(this.secondTimer)
      }
      this.num = 0;
      this.showBtn = 1;
      this.isLoading = false
@@ -298,7 +302,7 @@
      this.secondTimer = null
      this.messageError = ''
      this.resParams = {};
      if (newVal){
      if (newVal) {
        this.getTaskList().then(() => {
          const firstData = this.taskList[0]
          const id = firstData?.Procedure?.ID
@@ -470,9 +474,10 @@
          }
        }, err => {
          console.error(err)
        }).finally(() => {
          this.isLoading = false
        });
        setTimeout(() => {
          this.isLoading = false;
        }, 30000)
      }
    },
    getCode(res) {