From 17efc8b0fb7d3fa66eb8e22f32b81e3e14bcd7f6 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 06 一月 2026 17:37:57 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/propaganda/particty.vue |   30 ++++++++++++++++++++++++------
 1 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue
index cdb2d0d..255a030 100644
--- a/src/views/patient/propaganda/particty.vue
+++ b/src/views/patient/propaganda/particty.vue
@@ -904,6 +904,7 @@
   getbaseopera,
   getFollowuplist,
   getvFollowup,
+  selectInfoByCondition,
   Taskparticty,
   deleteTaskparticty,
   getTaskInfo,
@@ -999,7 +1000,6 @@
         { label: "鐢佃瘽鍙风爜", width: "180", prop: "telcode" },
         { label: "鎬у埆", width: "", prop: "sex" },
         { label: "骞撮緞", width: "", prop: "age" },
-        { label: "鐢佃瘽", width: "180", prop: "telcode" },
         { label: "鍑洪櫌澶╂暟", width: "", prop: "endDay" },
         { label: "璐d换鎶ゅ+", width: "", prop: "nurseName" },
         { label: "涓绘不鍖荤敓", width: "", prop: "drname" },
@@ -1198,6 +1198,9 @@
         ],
         sendType: [
           { required: true, message: "鍙戦�佽缃笉鑳戒负绌�", trigger: "blur" },
+        ],
+        longTask: [
+          { required: true, message: "璇烽�夋嫨鎵ц鍛ㄦ湡", trigger: "blur" },
         ],
         // deptcode: [
         //   { required: true, message: "閫傜敤绉戝涓嶈兘涓虹┖", trigger: "blur" },
@@ -1479,6 +1482,8 @@
           this.form.preachformList = this.selectedOrder;
         } else {
           this.$modal.msgError("璇烽�夋嫨鏈嶅姟绫诲瀷");
+          this.submitLoading = false;
+
           return;
         }
 
@@ -1492,6 +1497,8 @@
         ) {
         } else {
           this.$modal.msgError("璇烽�夋嫨浠诲姟鍏宠仈鏉′欢");
+          this.submitLoading = false;
+
           return;
         }
         // if (!this.form.patTaskRelevances[0] && !this.form.longTask) {
@@ -1501,6 +1508,8 @@
 
         if (!this.form.templatename && !this.templateor) {
           this.$modal.msgError("鏈�夋嫨妯℃澘");
+          this.submitLoading = false;
+
           return;
         }
 
@@ -1513,6 +1522,8 @@
           this.form.longTask
         ) {
         } else {
+          this.submitLoading = false;
+
           return this.$modal.msgError("鏃堕棿淇℃伅缂哄け");
         }
         const filteredArray = this.variableList.filter(
@@ -1600,13 +1611,18 @@
           // 鐤剧梾
           this.getillness(this.form.libtemplateid);
 
-          getvFollowup({ id: this.form.libtemplateid }).then((res) => {
+          selectInfoByCondition({id:this.form.templateid} ).then((res) => {
             if (res.code == 200) {
               this.previewtf = true;
               this.previewtftype = 1;
-              this.questionList = res.data.ivrLibaTemplateScriptVOList;
-              this.objyl.ivrLibaTemplateScriptVOList =
-                res.data.ivrLibaTemplateScriptVOList;
+              this.questionList = res.data.ivrTaskTemplateScriptVOList;
+              this.questionList.forEach((item) => {
+                item.qremark = [];
+                item.ivrLibaScriptTargetoptionList =
+                  item.ivrTaskScriptTargetoptionList;
+              });
+              this.objyl.ivrLibaScriptTargetoptionList =
+                res.data.ivrTaskScriptTargetoptionList;
             } else {
             }
           });
@@ -1920,7 +1936,7 @@
               ? this.form.patTaskRelevances
               : [];
             this.overallCase = this.form.patTaskRelevances.concat();
-            this.checkList = this.form.preachform.split(",");
+            this.checkList = this.form.preachform.split(",") || [];
             this.selectedOrder = this.form.preachformList;
 
             this.overallCase.forEach((item) => {
@@ -2208,6 +2224,7 @@
             Taskparticty(this.objyl).then((response) => {
               this.previewtf = false;
               this.form.libtemplateid = this.objyl.id;
+              this.form.libtemplatename = this.objyl.templateName;
               this.form.templateid = response.data;
               this.putbelongDepts(response.data);
               this.form.templatename = this.objyl.templateName;
@@ -2228,6 +2245,7 @@
         Taskparticty(this.objyl).then((response) => {
           this.previewtf = false;
           this.form.libtemplateid = this.objyl.id;
+          this.form.libtemplatename = this.objyl.templateName;
           this.form.templateid = response.data;
           this.putbelongDepts(response.data);
           this.form.templatename = this.objyl.templateName;

--
Gitblit v1.9.3