快乐的昕的电脑
2025-12-03 d445451f06dba9fd29c972450b2991b7bd55a142
进入页面时加载第一行 currentCjNum
已修改1个文件
11 ■■■■ 文件已修改
components/mold.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
components/mold.vue
@@ -675,8 +675,15 @@
            //this.lifeWarnInput = '90';
            if (this.machineNo && this.workOrderNo) {
                this.fetchFormData();
                this.fetchDefaultToolFromWorkOrder();
                this.fetchFormData().then(async () => {
                    // 加载工单刀具信息
                    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);
                    }
                });
            } else {
                console.warn('机台号或工单号为空,无法获取表单数据');
            }