From 308bf5032884d8c7e0060c5c48db93c77d219d01 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期六, 11 十月 2025 16:41:54 +0800
Subject: [PATCH] bug修改

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

diff --git a/components/mold.vue b/components/mold.vue
index 9bbcbcf..d490fa0 100644
--- a/components/mold.vue
+++ b/components/mold.vue
@@ -261,22 +261,22 @@
 				this.toolModel = '';
 			},
             async fetchFormData() {
-                const payload = {
-                    workOrderNo: this.workOrderNo,
-                    machineNo: this.machineNo,
-                    //useLimit: this.useLimitInput ? Number(this.useLimitInput) : null
-                };
+                const formData = new FormData();
+                formData.append('workOrderNo', this.workOrderNo);
+                formData.append('machineNo', this.machineNo);
+
                 const res = await this.$post({
                     url: '/MesCutterLedger/GetFormData',
-                    data: JSON.stringify(payload),
-                    headers: { 'Content-Type': 'application/json' }
+                    data: formData,
+                    // 涓嶈璁剧疆 Content-Type锛岃娴忚鍣ㄨ嚜鍔ㄨ缃�
                 });
+
                 if (res.status === 0) {
-                    this.toolRecords = res.data; // 鍋囪鍚庣鐩存帴杩斿洖琛ㄦ牸鏁扮粍
+                    this.toolRecords = res.data;
                 } else {
                     this.$showMessage(res.message || '鑾峰彇琛ㄥ崟鏁版嵁澶辫触');
                 }
-            }
+            },
 		},
         mounted() {
             this.fetchTools('');

--
Gitblit v1.9.3