| | |
| | | if (Object.keys(this.taskData).length > 0 && this.taskData.Procedure.ID) { |
| | | this.$refs.control.islook = true; |
| | | } else { |
| | | this.$confirm( "当前设备没有工序!", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => {}) |
| | | .catch(() => {}); |
| | | this.$message.error("当前设备没有工序!"); |
| | | |
| | | } |
| | | }, |
| | | // 右侧完成 |
| | |
| | | } |
| | | }); |
| | | } else { |
| | | this.$confirm( "当前设备没有工序!", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => {}) |
| | | .catch(() => {}); |
| | | this.$message.error("当前设备没有工序!"); |
| | | } |
| | | }, |
| | | getRandomNumber(min, max) { |