From 140474608ab84925bf10c51eec13f7a36dbc1d2b Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期六, 11 十月 2025 16:11:29 +0800
Subject: [PATCH] 去除上限保存逻辑+BUG修改

---
 components/mold.vue |   19 ++++++++-----------
 1 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/components/mold.vue b/components/mold.vue
index 5ed5358..6b28b6d 100644
--- a/components/mold.vue
+++ b/components/mold.vue
@@ -260,10 +260,6 @@
 				this.toolName = '';
 				this.toolModel = '';
 			},
-			setUseLimit() {
-				// 淇濆瓨浣跨敤涓婇檺閫昏緫锛屽疄闄呭簲璋冪敤鍚庣鎺ュ彛
-				this.$showMessage('浣跨敤涓婇檺宸蹭繚瀛橈紙绀轰緥锛�');
-			},
 			async fetchFormData() {
                 const res = await this.$post({
                     url: '/MesCutterLedger/GetFormData',
@@ -280,13 +276,14 @@
                 }
             }
 		},
-		mounted() {
-			// 椤甸潰鍔犺浇鏃舵媺鍙栧叏閮ㄥ垁鍏�
-			this.fetchTools('');            
-            this.machineNo = uni.getStorageSync('machineNo') || '';// 璇诲彇鏈湴缂撳瓨鐨勬満鍙扮紪鍙�
-			this.workOrderNo = uni.getStorageSync('daa001') || ''; // 璇诲彇鏈湴缂撳瓨鐨勫伐鍗曠紪鍙�
-            this.fetchFormData(); // 椤甸潰鍔犺浇鏃惰幏鍙栬〃鍗曟暟鎹�
-		}
+        mounted() {
+            this.fetchTools('');
+            this.machineNo = uni.getStorageSync('machineNo') || '';
+            this.workOrderNo = uni.getStorageSync('daa001') || '';
+            if (this.machineNo && this.workOrderNo) {
+                this.fetchFormData();
+            }
+        }
 	};
 </script>
 

--
Gitblit v1.9.3