快乐的昕的电脑
2025-10-18 3d745193472cc7e733c5c7ac0a28564d0b18b221
components/mold.vue
@@ -287,7 +287,7 @@
               this.submitting = false;
            }
         },
         // 下刀时传递 xdjs = 当前 downCount
         // 下刀时传递 xdjs = 工单 currentCjNum
         async handleDownTool() {
            if (!this.workOrderNo) { this.$showMessage('工单号不能为空'); return; }
            if (!this.machineNo) { this.$showMessage('机台号不能为空'); return; }
@@ -296,8 +296,8 @@
            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,