From ff7f9e4c7ee28a10e6c5c1459f8a8cf1b31b34e1 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期三, 03 十二月 2025 15:32:01 +0800
Subject: [PATCH] 回调

---
 components/mold.vue |   17 +++--------------
 1 files changed, 3 insertions(+), 14 deletions(-)

diff --git a/components/mold.vue b/components/mold.vue
index f63983c..356dd86 100644
--- a/components/mold.vue
+++ b/components/mold.vue
@@ -210,15 +210,11 @@
 
             // 鏂板锛氬埛鏂版寜閽鐞嗘柟娉�
             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('鍒锋柊瀹屾垚');
             },
@@ -675,15 +671,8 @@
             //this.lifeWarnInput = '90';
 
             if (this.machineNo && this.workOrderNo) {
-                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);
-                    }
-                });
+                this.fetchFormData();
+                this.fetchDefaultToolFromWorkOrder();
             } else {
                 console.warn('鏈哄彴鍙锋垨宸ュ崟鍙蜂负绌猴紝鏃犳硶鑾峰彇琛ㄥ崟鏁版嵁');
             }

--
Gitblit v1.9.3