| | |
| | | }, |
| | | computed: { |
| | | // 满足首检不合格重新呼叫条件且当前尚未重新生成送检时间 => 按钮可用 |
| | | canFailResend() { |
| | | return this.statusForm && |
| | | this.statusForm.remark === this.failedRemark && |
| | | !this.maShoutTime; |
| | | } |
| | | canFailResend() { |
| | | return this.statusForm && |
| | | this.statusForm.remark && |
| | | this.statusForm.remark.includes('不合格重新送检') && // 改为包含匹配 |
| | | !this.maShoutTime; |
| | | } |
| | | }, |
| | | created() { |
| | | // 组件创建时自动加载工单数据 |
| | |
| | | break; |
| | | case 1:// 首次送检呼叫 |
| | | this.maShoutTime = this.$getDate('yyyy-mm-dd hh24:mi:ss'); |
| | | this.flag = -1; // 送检呼叫有值后,flag始终为-1 |
| | | //this.flag = -1; // 送检呼叫有值后,flag始终为-1 |
| | | break; |
| | | case 2:// 检验不合格重新送检呼叫 |
| | | this.maShoutTime = this.$getDate('yyyy-mm-dd hh24:mi:ss'); |
| | |
| | | this.maEndTime = res.data.tbBillList.maEndTime; |
| | | }) |
| | | } |
| | | } |
| | | }, |
| | | mounted() { |
| | | // 页面加载时,启动定时器,每隔5分钟自动保存 |
| | | this.autoSaveTimer = setInterval(() => { |
| | | this.save(); // 直接调用已有的保存方法 |
| | | }, 1 * 30 * 1000); // 30秒 |
| | | }, |
| | | beforeDestroy() { |
| | | // 页面卸载时清理定时器 |
| | | clearInterval(this.autoSaveTimer); |
| | | }, |
| | | }; |
| | | </script> |
| | | |