| | |
| | | * 计算完成进度, 任务状态未生产固定为 0% 已完成固定为 100% 生产中则从plc获取 |
| | | */ |
| | | const processingPercent = computed(() => { |
| | | if (task?.value?.Procedure?.Status === 1) { |
| | | return 0 |
| | | } |
| | | // if (task?.value?.Procedure?.Status === 1) { |
| | | // return 0 |
| | | // } |
| | | |
| | | if (task?.value?.Procedure?.Status === 3) { |
| | | return 100 |
| | | } |
| | | // if (task?.value?.Procedure?.Status === 2 || task?.value?.Procedure?.Status === 1) { |
| | | // return calculateProgress(plcStore.plcInfo as Statistics) |
| | | // } |
| | | |
| | | if (task?.value?.Procedure?.Status === 2) { |
| | | return calculateProgress(plcStore.plcInfo as Statistics) |
| | | } |
| | | |
| | | return 0 |
| | | return calculateProgress(plcStore.plcInfo as Statistics) |
| | | }) |
| | | |
| | | /** |