From 68a1318b769f46f87f2a094b40d07e6c3c983697 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期四, 09 十月 2025 14:31:33 +0800
Subject: [PATCH] 查询地址更改

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

diff --git a/components/mold.vue b/components/mold.vue
index d0e0b08..0257f11 100644
--- a/components/mold.vue
+++ b/components/mold.vue
@@ -116,24 +116,22 @@
 			};
 		},
 		methods: {
-			async fetchTools(searchKey) {
-				// 瀹為檯椤圭洰涓鏇挎崲涓轰綘鐨勫悗绔帴鍙e湴鍧�
-				const res = await fetch('/api/QueryTools', {
-					method: 'POST',
-					headers: { 'Content-Type': 'application/json' },
-					body: JSON.stringify(searchKey)
-				});
-				const data = await res.json();
-				if (data.status === 0) {
-					this.filteredTools = data.data.tbBillList.map(t => ({
-						no: t.cutterId || t.no,
-						name: t.cutterName || t.name,
-						model: t.cutterModel || t.model
-					}));
-				} else {
-					this.$showMessage(data.message || '鏌ヨ澶辫触');
-				}
-			},
+            async fetchTools(searchKey) {
+                // 浼犻�掑璞★紝鑰屼笉鏄瓧绗︿覆
+                const res = await this.$post({
+                    url: '/MesCutterLedger/QueryTools',
+                    data:searchKey
+                });
+                if (res.status === 0) {
+                    this.filteredTools = res.data.tbBillList.map(t => ({
+                        no: t.cutterId || t.no,
+                        name: t.cutterName || t.name,
+                        model: t.cutterModel || t.model
+                    }));
+                } else {
+                    this.$showMessage(res.message || '鏌ヨ澶辫触');
+                }
+            },
 			async searchTool() {
 				await this.fetchTools(this.searchKey);
 			},

--
Gitblit v1.9.3