From 614aa1e15c8ca6c5a3152716bd303f0bad01682c Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期六, 11 十月 2025 15:55:09 +0800
Subject: [PATCH] 请求刀具表单数据

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

diff --git a/components/mold.vue b/components/mold.vue
index 6545385..8bf22fd 100644
--- a/components/mold.vue
+++ b/components/mold.vue
@@ -265,11 +265,28 @@
 				this.$showMessage('浣跨敤涓婇檺宸蹭繚瀛橈紙绀轰緥锛�');
 			}
 		},
+        methods: {
+            async fetchFormData() {
+                const res = await this.$post({
+                    url: '/MesCutterLedger/GetFormData',
+                    data: JSON.stringify({
+                        workOrderNo: this.workOrderNo,
+                        machineNo: this.machineNo
+                    }),
+                    headers: { 'Content-Type': 'application/json' }
+                });
+                if (res.status === 0) {
+                    this.toolRecords = res.data; // 鍋囪鍚庣鐩存帴杩斿洖琛ㄦ牸鏁扮粍
+                } else {
+                    this.$showMessage(res.message || '鑾峰彇琛ㄥ崟鏁版嵁澶辫触');
+                }
+            },
 		mounted() {
 			// 椤甸潰鍔犺浇鏃舵媺鍙栧叏閮ㄥ垁鍏�
 			this.fetchTools('');            
             this.machineNo = uni.getStorageSync('machineNo') || '';// 璇诲彇鏈湴缂撳瓨鐨勬満鍙扮紪鍙�
-            this.workOrderNo = uni.getStorageSync('daa001') || ''; // 璇诲彇鏈湴缂撳瓨鐨勫伐鍗曠紪鍙�
+			this.workOrderNo = uni.getStorageSync('daa001') || ''; // 璇诲彇鏈湴缂撳瓨鐨勫伐鍗曠紪鍙�
+            this.fetchFormData(); // 椤甸潰鍔犺浇鏃惰幏鍙栬〃鍗曟暟鎹�
 		}
 	};
 </script>

--
Gitblit v1.9.3