快乐的昕的电脑
2025-12-03 0c8f85d16c97a8fd4ba381dce13ea9f0b051e6c1
components/mold.vue
@@ -210,11 +210,15 @@
            // 新增:刷新按钮处理方法
            async handleRefresh() {
                // 刷新刀具列表和表单数据
                this.fetchTools('');
                if (this.machineNo && this.workOrderNo) {
                    await this.fetchFormData();
                    await this.fetchDefaultToolFromWorkOrder();
                    // 只更新第一行 currentCjNum
                    if (this.toolRecords.length > 0) {
                        const cjNum = await this.fetchCurrentCjNum(this.toolRecords[0].no);
                        this.$set(this.toolRecords[0], 'currentCjNum', cjNum);
                    }
                }
                this.$showMessage('刷新完成');
            },