From f17405af712338af85534d652e543f78b6054e72 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期三, 12 二月 2025 17:33:22 +0800
Subject: [PATCH] 项目状态跟随项目阶段取值

---
 src/views/flowable/task/myProcess/send/index.vue |   31 +++++++++++++++++++++++--------
 1 files changed, 23 insertions(+), 8 deletions(-)

diff --git a/src/views/flowable/task/myProcess/send/index.vue b/src/views/flowable/task/myProcess/send/index.vue
index c24832c..702f003 100644
--- a/src/views/flowable/task/myProcess/send/index.vue
+++ b/src/views/flowable/task/myProcess/send/index.vue
@@ -189,6 +189,7 @@
   props: {},
   data() {
     return {
+      jumpDesc: '', // 璺宠繃璇存槑
       rejectLoading: false, // 椹冲洖鎸夐挳鍔犺浇
       submitLoading: false, // 鎻愪氦鎸夐挳鍔犺浇
       delegationButLoading: false, // 杞姙鎸夐挳鍔犺浇
@@ -276,21 +277,29 @@
   methods: {
     // 璺宠繃浠诲姟
     jumpTask() {
-      this.$confirm('纭畾瑕佽烦杩囨浠诲姟鍚�?', '鎻愮ず', {
+      this.$prompt('澶囨敞璇存槑', '纭畾瑕佽烦杩囨浠诲姟鍚�', {
         confirmButtonText: '纭畾',
         cancelButtonText: '鍙栨秷',
-        type: 'warning'
-      }).then(() => {
+        inputType: 'textarea'
+        // inputPattern: /[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/,
+        // inputErrorMessage: '閭鏍煎紡涓嶆纭�'
+      }).then(({ value }) => {
         let jumpForm = {
           taskId: this.taskId,
           projectId: this.goBackParams.projectId,
-          processInsId: this.procInsId
+          processInsId: this.procInsId,
+          desc: value
         }
         taskJump(jumpForm).then(res => {
           this.$message.success("鎿嶄綔鎴愬姛")
           this.goBack()
         })
-      })
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '宸插彇娑堣烦杩囨搷浣�'
+        });
+      });
     },
     removeDept(dept) {
       let index = this.delegationDeptSelect.indexOf(dept);
@@ -583,15 +592,21 @@
               this.$modal.msgSuccess(res.msg);
               this.submitLoading = false
               this.goBack();
-            })
-          })
+            }).catch((err) => {
+              this.submitLoading = false;
+            });
+          }).catch((err) => {
+            this.submitLoading = false;
+          });
         } else {
           // 娌″叧鑱旇〃鍗曠洿鎺ヤ紶绌�
           completeSubmitFormTask(this.taskId, {}).then(res => {
             this.$modal.msgSuccess(res.msg);
             this.submitLoading = false
             this.goBack();
-          })
+          }).catch((err) => {
+            this.submitLoading = false;
+          });
         }
 
         // let that = this

--
Gitblit v1.8.0