From f9902f7a3b79d22bde9f199263ac36de26816470 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期五, 08 五月 2026 14:46:10 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/propaganda/Missioncreation.vue |   30 ++++++++++++++++++++++++++++--
 1 files changed, 28 insertions(+), 2 deletions(-)

diff --git a/src/views/patient/propaganda/Missioncreation.vue b/src/views/patient/propaganda/Missioncreation.vue
index cfd57e0..94b8b95 100644
--- a/src/views/patient/propaganda/Missioncreation.vue
+++ b/src/views/patient/propaganda/Missioncreation.vue
@@ -870,6 +870,8 @@
       questionList: [],
       uploadingData: [],
       deptcodesWards: [], //绉戝鏁版嵁
+      deptlist: [],
+      hosplist: [],
       leavehospitaldistrictcodes: [], //鐥呭尯鏁版嵁
       operationcodes: [], //鎵嬫湳鏁版嵁
       illnesscodes: [], //鐤剧梾鏁版嵁
@@ -1041,6 +1043,10 @@
           "鐨勫尰鎶や汉鍛橈紝涓轰簡鏇村ソ鍦颁簡瑙f偍鐨勫悍澶嶆儏鍐碉紝璇锋偍鎶戒竴鐐瑰疂璐垫椂闂达紝瑙傜湅杩欎唤瀹f暀璧勮銆�",
         jsy: "鐢熸椿涓婅鍔抽�哥粨鍚堬紝娉ㄦ剰浼戞伅鍜岃惀鍏伙紝閫傚綋閿荤偧锛屾垝鐑熼檺閰掞紝淇濇寔蹇冩儏鑸掔晠锛屽畾鏈熷璇娿�傞偅鏈瀹f暀鍐呭灏卞埌杩欓噷锛岀鎮ㄨ韩浣撳仴搴凤紒",
       },
+      queryParamsdept: {
+        tempid: "",
+        type: 2,
+      },
       taskoptions: [
         {
           value: "4",
@@ -1147,7 +1153,7 @@
       this.currenttype = this.$route.query.type;
       this.title = "瀹f暀鍐呭鍒楄〃";
       this.tableLabel = this.tableLabelxj;
-      if (this.form.serviceType == 4) {
+      if (this.form.serviceType == 4 || this.form.serviceType == 17) {
         this.checkboxlist = [
           {
             value: "2",
@@ -1362,10 +1368,21 @@
       });
     },
     addStyleToImages(html) {
-      return html.replace(
+      if (!html) return html;
+
+      // 1. 鍏堜慨澶嶈矾寰�
+      let processedHtml = html.replace(
+        /\/aifollowup\/aifollowup\//g,
+        "/aifollowup/"
+      );
+
+      // 2. 鍐嶄慨澶嶆牱寮�
+      processedHtml = processedHtml.replace(
         /<img([^>]*)style=(['"])(?:(?!\2).)*\2([^>]*)>/g,
         '<img$1style="width:100%;height:auto;"$3>'
       );
+
+      return processedHtml;
     },
 
     // 瀛愪换鍔′簩绾у脊妗�
@@ -1635,6 +1652,9 @@
                 this.time1 = this.form.showTimeMorn.split(",");
               }
             }
+            if (this.form.taskid) {
+              this.listDept();
+            }
             if (this.form.showTimeNoon)
               this.time2 = this.form.showTimeNoon.split(",");
             if (this.form.showTimeNight)
@@ -1721,14 +1741,20 @@
       this.leavehospitaldistrictcodes = [];
       this.deptcodesWards = [];
       this.queryParamsdept.taskId = this.form.taskid;
+      console.log(1, this.queryParamsdept);
+
       taskdepthospgetsonlist(this.queryParamsdept).then((res) => {
         if (res.code == 200) {
           let arr = res.rows;
           arr.forEach((item) => {
             if (item.deptType == 1) {
+              console.log(1);
+
               this.deptlist.push(item);
               this.deptcodesWards.push(item.deptCode);
             } else if (item.deptType == 2) {
+              console.log(2, this.hosplist);
+
               this.hosplist.push(item);
               this.leavehospitaldistrictcodes.push(item.deptCode);
             }

--
Gitblit v1.9.3