From ec47fecd41a22861c3fc65ca86311225dd28d7ee Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 28 十月 2025 14:02:34 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/propaganda/QuestionnaireTask.vue |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue
index c4318f1..d558652 100644
--- a/src/views/patient/propaganda/QuestionnaireTask.vue
+++ b/src/views/patient/propaganda/QuestionnaireTask.vue
@@ -1203,8 +1203,9 @@
         sendType: [
           { required: true, message: "鍙戦�佽缃笉鑳戒负绌�", trigger: "blur" },
         ],
-        deptcode: [
-          { required: true, message: "閫傜敤绉戝涓嶈兘涓虹┖", trigger: "blur" },
+
+        longTask: [
+          { required: true, message: "璇烽�夋嫨鎵ц鍛ㄦ湡", trigger: "blur" },
         ],
         // leavehospitaldistrictcode: [
         //   { required: true, message: "閫傜敤鐥呭尯涓嶈兘涓虹┖", trigger: "blur" },
@@ -1472,6 +1473,8 @@
           this.form.preachformList = this.selectedOrder;
         } else {
           this.$modal.msgError("璇烽�夋嫨鏈嶅姟绫诲瀷");
+            this.submitLoading = false;
+
           return;
         }
         console.log(this.operationcodes[0]);
@@ -1487,6 +1490,7 @@
         ) {
         } else {
           this.$modal.msgError("璇烽�夋嫨浠诲姟鍏宠仈鏉′欢");
+            this.submitLoading = false;
           return;
         }
         //鏆傚仠浠诲姟鎮h�呴檺鍒�
@@ -1497,6 +1501,8 @@
 
         if (!this.form.templatename && !this.templateor) {
           this.$modal.msgError("鏈�夋嫨妯℃澘");
+            this.submitLoading = false;
+
           return;
         }
 
@@ -1509,6 +1515,7 @@
           this.form.longTask
         ) {
         } else {
+            this.submitLoading = false;
           return this.$modal.msgError("鏃堕棿淇℃伅缂哄け");
         }
         const filteredArray = this.variableList.filter(
@@ -2263,6 +2270,7 @@
               TaskQuestioncomit(this.objyl).then((response) => {
                 this.previewtf = false;
                 this.form.libtemplateid = this.objyl.svyid;
+              this.form.libtemplatename = this.objyl.svyname;
                 this.form.templateid = response.data;
                 this.form.templatename = this.objyl.svyname;
                 this.$modal.msgSuccess("閫夋嫨妯℃澘鎴愬姛");
@@ -2273,6 +2281,7 @@
         TaskQuestioncomit(this.objyl).then((response) => {
           this.previewtf = false;
           this.form.libtemplateid = this.objyl.svyid;
+          this.form.libtemplatename = this.objyl.svyname;
           this.form.templateid = response.data;
           this.form.templatename = this.objyl.svyname;
           this.$modal.msgSuccess("閫夋嫨妯℃澘鎴愬姛");
@@ -2321,9 +2330,9 @@
             this.objyl.templateid = this.objyl.svyid;
             this.form.libtemplateid = this.objyl.svyid;
             this.objyl.isoperation = 1;
-            this.objyl.svyLibTemplateScriptVOS =
+            this.objyl.svyTaskTemplateScriptVOS =
               this.objyl.svyTemplateLibScripts;
-            this.objyl.svyLibTemplateScriptVOS.forEach((item) => {
+            this.objyl.svyTaskTemplateScriptVOS.forEach((item) => {
               item.svyTaskTemplateTargetoptions =
                 item.svyLibTemplateTargetoptions;
             });

--
Gitblit v1.9.3