快乐的昕的电脑
2025-12-03 22f79cc9003f5a62873ca144a38e8015da9f2b28
components/mold.vue
@@ -204,11 +204,14 @@
            // 新增:刷新按钮处理方法
            async handleRefresh() {
                // 刷新刀具列表和表单数据
                this.fetchTools('');
                if (this.machineNo && this.workOrderNo) {
                    await this.fetchFormData();
                    await this.fetchDefaultToolFromWorkOrder();
                    // 新增:刷新表格 currentCjNum
                    for (const item of this.toolRecords) {
                        item.currentCjNum = await this.fetchCurrentCjNum(item.no);
                    }
                }
                this.$showMessage('刷新完成');
            },