From 4b63edeae3d84d09b706338c723ac52a400f7c65 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 13 三月 2025 11:15:38 +0800
Subject: [PATCH] 容缺、跳过理由必填写

---
 src/views/flowable/task/myProcess/send/index.vue |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/src/views/flowable/task/myProcess/send/index.vue b/src/views/flowable/task/myProcess/send/index.vue
index 706f2c2..e50e92b 100644
--- a/src/views/flowable/task/myProcess/send/index.vue
+++ b/src/views/flowable/task/myProcess/send/index.vue
@@ -343,7 +343,14 @@
       this.$prompt('澶囨敞璇存槑', '纭畾瑕佸缂烘浠诲姟鍚�', {
         confirmButtonText: '纭畾',
         cancelButtonText: '鍙栨秷',
-        inputType: 'textarea'
+        inputType: 'textarea',
+        inputValidator: (value) => {
+          if (!value || value.trim() === '') {
+            return "璇峰~鍐欏娉ㄨ鏄�"
+          }
+          return true
+        },
+        inputErrorMessage: '璇峰~鍐欏娉ㄨ鏄�'
       }).then(({ value }) => {
         let waitForm = {
           taskId: this.taskId,
@@ -367,9 +374,14 @@
       this.$prompt('澶囨敞璇存槑', '纭畾瑕佽烦杩囨浠诲姟鍚�', {
         confirmButtonText: '纭畾',
         cancelButtonText: '鍙栨秷',
-        inputType: 'textarea'
-        // inputPattern: /[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/,
-        // inputErrorMessage: '閭鏍煎紡涓嶆纭�'
+        inputType: 'textarea',
+        inputValidator: (value) => {
+          if (!value || value.trim() === '') {
+            return "璇峰~鍐欏娉ㄨ鏄�"
+          }
+          return true
+        },
+        inputErrorMessage: '璇峰~鍐欏娉ㄨ鏄�'
       }).then(({ value }) => {
         let jumpForm = {
           taskId: this.taskId,

--
Gitblit v1.8.0