| | |
| | | 客户名称:{{ 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"> |
| | |
| | | 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() { |
| | |
| | | } |
| | | }, |
| | | watch: { |
| | | taskData(val) { |
| | | this.message = this.safeProduce; |
| | | this.getInfo(); |
| | | }, |
| | | num() { |
| | | if (this.num === 30) { |
| | | clearInterval(this.timer); |
| | |
| | | if (this.timer) { |
| | | clearInterval(this.timer); |
| | | } |
| | | if (this.secondTimer) { |
| | | clearInterval(this.secondTimer) |
| | | } |
| | | this.num = 0; |
| | | this.showBtn = 1; |
| | | this.isLoading = false |
| | |
| | | this.secondTimer = null |
| | | this.messageError = '' |
| | | this.resParams = {}; |
| | | if (newVal){ |
| | | if (newVal) { |
| | | this.getTaskList().then(() => { |
| | | const firstData = this.taskList[0] |
| | | const id = firstData?.Procedure?.ID |
| | |
| | | } |
| | | }, err => { |
| | | console.error(err) |
| | | }).finally(() => { |
| | | this.isLoading = false |
| | | }); |
| | | setTimeout(() => { |
| | | this.isLoading = false; |
| | | }, 30000) |
| | | } |
| | | }, |
| | | getCode(res) { |