| | |
| | | if (!this.workOrderNo) { this.$showMessage('工单号不能为空'); return; } |
| | | if (!this.machineNo) { this.$showMessage('机台号不能为空'); return; } |
| | | if (!this.selectedToolNo) { this.$showMessage('刀具编号不能为空'); return; } |
| | | //上刀不强制录入使用上限 |
| | | //if (!this.useLimitInput) { this.$showMessage('使用上限不能为空'); return; } |
| | | //上刀强制录入使用上限 |
| | | if (!this.useLimitInput) { this.$showMessage('使用上限不能为空'); return; } |
| | | const useLimit = Number(this.useLimitInput); |
| | | //if (isNaN(useLimit) || useLimit <= 0) { this.$showMessage('请输入有效的使用上限'); return; } |
| | | if (isNaN(useLimit) || useLimit <= 0) { this.$showMessage('请输入有效的使用上限'); return; } |
| | | |
| | | // sdjs 使用工单 currentCjNum |
| | | const sdjs = this.workOrderCurrentCjNum != null ? Number(this.workOrderCurrentCjNum) : null; |
| | |
| | | if (!this.workOrderNo) { this.$showMessage('工单号不能为空'); return; } |
| | | if (!this.machineNo) { this.$showMessage('机台号不能为空'); return; } |
| | | if (!this.selectedToolNo) { this.$showMessage('刀具编号不能为空'); return; } |
| | | if (!this.useLimitInput) { this.$showMessage('使用上限不能为空'); return; } |
| | | //下刀不强制录入使用上限 |
| | | //if (!this.useLimitInput) { this.$showMessage('使用上限不能为空'); return; } |
| | | const useLimit = Number(this.useLimitInput); |
| | | if (isNaN(useLimit) || useLimit <= 0) { this.$showMessage('请输入有效的使用上限'); return; } |
| | | //if (isNaN(useLimit) || useLimit <= 0) { this.$showMessage('请输入有效的使用上限'); return; } |
| | | |
| | | // 下刀计数同样取工单最新采集数 |
| | | const xdjs = this.workOrderCurrentCjNum != null ? Number(this.workOrderCurrentCjNum) : null; |