| | |
| | | this.submitting = false; |
| | | } |
| | | }, |
| | | // 下刀时传递 xdjs = 当前 downCount |
| | | // 下刀时传递 xdjs = 工单 currentCjNum |
| | | async handleDownTool() { |
| | | if (!this.workOrderNo) { this.$showMessage('工单号不能为空'); return; } |
| | | if (!this.machineNo) { this.$showMessage('机台号不能为空'); return; } |
| | |
| | | const useLimit = Number(this.useLimitInput); |
| | | if (isNaN(useLimit) || useLimit <= 0) { this.$showMessage('请输入有效的使用上限'); return; } |
| | | |
| | | const currentTool = this.toolRecords.find(r => r.no === this.selectedToolNo); |
| | | const xdjs = currentTool && currentTool.downCount != null ? Number(currentTool.downCount) : null; |
| | | // 下刀计数同样取工单最新采集数 |
| | | const xdjs = this.workOrderCurrentCjNum != null ? Number(this.workOrderCurrentCjNum) : null; |
| | | |
| | | const payload = { |
| | | workOrderNo: this.workOrderNo, |