From 96a7514a08ef3ca978533510ccde309ef9f3bdd8 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期三, 22 十月 2025 10:58:13 +0800
Subject: [PATCH] 调机界面修改

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

diff --git a/components/mold.vue b/components/mold.vue
index 2aff229..01d76e8 100644
--- a/components/mold.vue
+++ b/components/mold.vue
@@ -274,24 +274,19 @@
                         data: JSON.stringify(payload),
                         headers: { 'Content-Type': 'application/json' }
                     });
-                    if (res.data && res.data.outMsg) {
-                        const isRepeat = res.data.outMsg === '閲嶅涓婁笅鍒�';
+                    if (res.data && res.data.outSum === "0") {
                         uni.showToast({
-                            title: res.data.outMsg,
-                            icon: isRepeat ? 'error' : 'none'
-                        });
-                        if (isRepeat) return; // 鎶ラ敊鏃朵笉鍐嶇户缁�
-                    } else if (res.status === 0) {
-                        uni.showToast({
-                            title: '涓嬪垁鎻愪氦鎴愬姛',
-                            icon: 'success'
-                        });
-                    } else {
-                        uni.showToast({
-                            title: res.message || '涓嬪垁鎻愪氦澶辫触',
+                            title: res.data.outMsg || '',
                             icon: 'error'
                         });
+                        return;
+                    } else if (res.data && res.data.outMsg) {
+                        uni.showToast({
+                            title: res.data.outMsg,
+                            icon: 'none'
+                        });
                     }
+                    // 鍚庣画閫昏緫缁х画鎵ц
                     if (res.status === 0) {
                         await this.fetchFormData();
                     }
@@ -329,24 +324,19 @@
                         data: JSON.stringify(payload),
                         headers: { 'Content-Type': 'application/json' }
                     });
-                    if (res.data && res.data.outMsg) {
-                        const isRepeat = res.data.outMsg === '閲嶅涓婁笅鍒�';
+                    if (res.data && res.data.outSum === "0") {
                         uni.showToast({
-                            title: res.data.outMsg,
-                            icon: isRepeat ? 'error' : 'none'
-                        });
-                        if (isRepeat) return; // 鎶ラ敊鏃朵笉鍐嶇户缁�
-                    } else if (res.status === 0) {
-                        uni.showToast({
-                            title: '涓嬪垁鎻愪氦鎴愬姛',
-                            icon: 'success'
-                        });
-                    } else {
-                        uni.showToast({
-                            title: res.message || '涓嬪垁鎻愪氦澶辫触',
+                            title: res.data.outMsg || '',
                             icon: 'error'
                         });
+                        return;
+                    } else if (res.data && res.data.outMsg) {
+                        uni.showToast({
+                            title: res.data.outMsg,
+                            icon: 'none'
+                        });
                     }
+                    // 鍚庣画閫昏緫缁х画鎵ц
                     if (res.status === 0) {
                         await this.fetchFormData();
                     }

--
Gitblit v1.9.3