From 8499181e9d717bfc5a689d6a5f61c3b182f2f28e Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期四, 04 九月 2025 20:02:47 +0800
Subject: [PATCH] 提示改为alert

---
 src/views/flowmgr/taskassigntemp.vue  |   17 +++++++++++------
 src/views/flowmgr/taskassign.vue      |   18 ++++++++++++------
 src/views/basesetting/produceplan.vue |   15 +++++++--------
 src/axios.js                          |    5 ++++-
 4 files changed, 34 insertions(+), 21 deletions(-)

diff --git a/src/axios.js b/src/axios.js
index 5285522..4d15f0c 100644
--- a/src/axios.js
+++ b/src/axios.js
@@ -202,13 +202,16 @@
     }
 
     // 濡傛灉璇锋眰涓洪潪200鍒欓粯璁ょ粺涓�澶勭悊
-    if (status !== 200 && status != 2 && status == 400) {
+    if (status !== 200 && status == 400) {
+      
       ElMessage({
         message: message,
         type: 'error',
+        center:true,
         showClose:true,
         duration:0,
       });
+      //this.$alert(message,{confirmButtonText:'鍏抽棴'});
       return Promise.reject(new Error(message));
     }
     return res;
diff --git a/src/views/basesetting/produceplan.vue b/src/views/basesetting/produceplan.vue
index b6b1883..bcd6866 100644
--- a/src/views/basesetting/produceplan.vue
+++ b/src/views/basesetting/produceplan.vue
@@ -249,6 +249,13 @@
                 dialogClickModal: false,
                 column: [
                     {
+                        label: '浜у搧鍨嬪彿',
+                        prop: 'cph',
+                        type: 'input',
+                        display: true,
+                        span: 24,
+                    },
+                    {
                         label: '闆剁粍浠跺彿',
                         prop: 'ljh',
                         type: 'input',
@@ -257,14 +264,6 @@
                         disabled:true,
                         span: 24,
                     },
-                    {
-                        label: '浜у搧鍙�',
-                        prop: 'cph',
-                        type: 'input',
-                        display: true,
-                        span: 24,
-                    },
-					
                     {
                         label: '涓荤宸ヨ壓',
                         prop: 'zggy',
diff --git a/src/views/flowmgr/taskassign.vue b/src/views/flowmgr/taskassign.vue
index 83f95b7..5096daf 100644
--- a/src/views/flowmgr/taskassign.vue
+++ b/src/views/flowmgr/taskassign.vue
@@ -296,12 +296,18 @@
         data: form,
       }).then(
         res => {
-          this.$message({
-            type: 'success',
-            message: '鎿嶄綔鎴愬姛!',
-          });
-          this.$refs.form.resetForm();
-          this.attachForm = this.defaultForm;
+          
+          if(res.data.code == 200){
+            this.$message({
+              type: 'success',
+              message: '鎿嶄綔鎴愬姛!',
+            });
+            this.$refs.form.resetForm();
+            this.attachForm = this.defaultForm;
+            
+          }else{
+            this.$alert(res.data.msg, '鍙戣捣浠诲姟澶辫触',{type:'error',confirmButtonText:'鍏抽棴'});
+          }
           done();
         },
         error => {
diff --git a/src/views/flowmgr/taskassigntemp.vue b/src/views/flowmgr/taskassigntemp.vue
index e0d0c5c..996860e 100644
--- a/src/views/flowmgr/taskassigntemp.vue
+++ b/src/views/flowmgr/taskassigntemp.vue
@@ -271,12 +271,17 @@
         data: form,
       }).then(
         res => {
-          this.$message({
-            type: 'success',
-            message: '鎿嶄綔鎴愬姛!',
-          });
-          this.$refs.form.resetForm();
-          this.attachForm = this.defaultForm;
+          if(res.data.code == 200){
+            this.$message({
+              type: 'success',
+              message: '鎿嶄綔鎴愬姛!',
+            });
+            this.$refs.form.resetForm();
+            this.attachForm = this.defaultForm;
+            
+          }else{
+            this.$alert(res.data.msg, '鍙戣捣浠诲姟澶辫触',{type:'error',confirmButtonText:'鍏抽棴'});
+          }
           done();
         },
         error => {

--
Gitblit v1.9.3