From 17edb0e7f229e86804f121d04537f6831ca2145a Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 25 二月 2025 15:27:36 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/propaganda/particty.vue |   44 +++++++++++++++++++++++++++++++-------------
 1 files changed, 31 insertions(+), 13 deletions(-)

diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue
index ad5ab22..e4d7210 100644
--- a/src/views/patient/propaganda/particty.vue
+++ b/src/views/patient/propaganda/particty.vue
@@ -1082,20 +1082,12 @@
           label: "浣撴闅忚",
         },
         {
-          value: 6,
-          label: "婊℃剰搴﹁皟鏌�",
-        },
-        {
-          value: 7,
-          label: "鎮h�呮姤鍛�",
+          value: 11,
+          label: "鍖绘妧闅忚",
         },
         {
           value: 10,
-          label: "涓撶梾闅忚",
-        },
-        {
-          value: 8,
-          label: "鍏朵粬閫氱煡",
+          label: "涓撶闅忚",
         },
       ],
       // 绉戝/鐥呭尯
@@ -1607,6 +1599,9 @@
           item.deptName = item.dept;
           item.admindate = item.inhosptime;
           item.sfzh = item.idcardno;
+          if (this.patientqueryParams.allhosp == 6) {
+            item.patfrom = 1;
+          }
           this.overallCase.push(item);
           this.form.patTaskRelevances.push(item);
         }
@@ -2015,7 +2010,7 @@
           "鍔熻兘鎻愮ず",
           {
             confirmButtonText: "淇濆瓨浠诲姟",
-            cancelButtonText: "鍙栨秷",
+            cancelButtonText: "鏆傚瓨妯℃澘",
             type: "warning",
           }
         )
@@ -2025,11 +2020,34 @@
             }
             this.objyl.templateid = this.objyl.id;
             this.objyl.isoperation = 1;
+            this.objyl.ivrLibaTemplateScriptVOList.forEach((item) => {
+              item.ivrTaskScriptTargetoptionList =
+                item.ivrLibaScriptTargetoptionList;
+            });
+            this.objyl.ivrTaskTemplateScriptVOList =
+              this.objyl.ivrLibaTemplateScriptVOList;
             this.form.ivrTaskTemplateVO = this.objyl;
 
             this.submitForm();
           })
-          .catch(() => {});
+          .catch(() => {
+            if (Array.isArray(this.objyl.suitway)) {
+              this.objyl.suitway = this.objyl.suitway.join(",");
+            }
+            this.objyl.templateid = this.objyl.id;
+            this.objyl.isoperation = 1;
+            this.objyl.ivrLibaTemplateScriptVOList.forEach((item) => {
+              item.ivrTaskScriptTargetoptionList =
+                item.ivrLibaScriptTargetoptionList;
+            });
+            this.objyl.ivrTaskTemplateScriptVOList =
+              this.objyl.ivrLibaTemplateScriptVOList;
+            this.form.ivrTaskTemplateVO = this.objyl;
+            this.form.templatename=this.objyl.templateName;
+            this.$modal.msgSuccess("鏆傚瓨鎴愬姛淇濆瓨浠诲姟鍚庢ā鏉垮け鏁�");
+            this.drawermb=false;
+            this.previewtf=false;
+          });
       } else {
         setTimeout(() => {
           this.previewFn();

--
Gitblit v1.9.3