From 0c8f85d16c97a8fd4ba381dce13ea9f0b051e6c1 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期三, 03 十二月 2025 15:26:56 +0800
Subject: [PATCH] 只更新第一行 currentCjNum
---
components/mold.vue | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/components/mold.vue b/components/mold.vue
index 356dd86..e49b486 100644
--- a/components/mold.vue
+++ b/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('鍒锋柊瀹屾垚');
},
--
Gitblit v1.9.3