From 95075418735842f54c116c2dc2d18199d4408e50 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 09 一月 2025 16:36:13 +0800
Subject: [PATCH] 无锡提交

---
 src/views/patient/propaganda/QuestionnaireTask.vue |   37 +++++++++++++++++++++++++------------
 1 files changed, 25 insertions(+), 12 deletions(-)

diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue
index a5d2b0a..ed13b14 100644
--- a/src/views/patient/propaganda/QuestionnaireTask.vue
+++ b/src/views/patient/propaganda/QuestionnaireTask.vue
@@ -652,7 +652,7 @@
                     </el-select> </el-form-item
                 ></el-col>
               </el-row>
-              <el-row>
+              <!-- <el-row>
                 <el-col :span="20"
                   ><el-form-item label="閫傜敤鐥呭尯" prop="region">
                     <el-select
@@ -673,7 +673,7 @@
                       </el-option>
                     </el-select> </el-form-item
                 ></el-col>
-              </el-row>
+              </el-row> -->
 
               <div class="xinz-infs">
                 <el-form-item>
@@ -999,6 +999,8 @@
         pageNum: 1, //
         pageSize: 10,
         topica: 1, //0鍏ㄩ儴1绉戝2鐥呭尯
+        leavehospitaldistrictcodes:[],
+        leaveldeptcodes:[],
       },
       topicoptions: [{ children: [{ children: [] }] }],
       showSearch: true, //
@@ -1071,7 +1073,7 @@
         templatename: "",
         templateid: null,
         libtemplateid: null,
-        kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄禉涓尰澶т簩闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瑙傜湅杩欎唤瀹f暀璧勮銆�",
+        kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄棤閿″効绔ュ尰闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瑙傜湅杩欎唤瀹f暀璧勮銆�",
         jsy: "璇锋偍娉ㄦ剰浼戞伅鍜岃惀鍏伙紝鐢熸椿涓婅鍔抽�哥粨鍚堬紝閫傚綋閿荤偧锛屾垝鐑熼檺閰掞紝淇濇寔蹇冩儏鑸掔晠锛屽畾鏈熷璇娿�傞偅鏈瀹f暀鍐呭灏卞埌杩欓噷锛岀鎮ㄨ韩浣撳仴搴凤紒",
       },
       taskoptions: [
@@ -1167,9 +1169,9 @@
         deptcode: [
           { required: true, message: "閫傜敤绉戝涓嶈兘涓虹┖", trigger: "blur" },
         ],
-        leavehospitaldistrictcode: [
-          { required: true, message: "閫傜敤鐥呭尯涓嶈兘涓虹┖", trigger: "blur" },
-        ],
+        // leavehospitaldistrictcode: [
+        //   { required: true, message: "閫傜敤鐥呭尯涓嶈兘涓虹┖", trigger: "blur" },
+        // ],
       },
       // 绉戝闄㈠尯鏌ヨ鍏ュ弬
       queryParamsdept: {
@@ -1258,7 +1260,7 @@
           {
             value: "4",
             label: "鐭俊",
-
+            disabled:true,
           },
           {
             value: "5",
@@ -1275,7 +1277,7 @@
           {
             value: "4",
             label: "鐭俊",
-
+            disabled:true,
           },
           {
             value: "5",
@@ -1308,7 +1310,7 @@
           {
             value: "4",
             label: "鐭俊",
-
+            disabled:true,
           },
           {
             value: "5",
@@ -1332,7 +1334,7 @@
           {
             value: "4",
             label: "鐭俊",
-
+            disabled:true,
           },
           {
             value: "5",
@@ -1696,7 +1698,11 @@
           let indexa = this.overallCase.indexOf(row);
           let indexb = this.form.patTaskRelevances.indexOf(row);
           this.overallCase.splice(indexa, 1);
-          this.form.patTaskRelevances[indexb].isoperation = 3;
+          if (!this.form.taskid) {
+            this.form.patTaskRelevances.splice(indexa, 1);
+          } else {
+            this.form.patTaskRelevances[indexb].isoperation = 3;
+          }
           this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
         });
     },
@@ -1714,6 +1720,13 @@
           store.getters.leavehospitaldistrictcodes;
         this.patientqueryParams.leaveldeptcodes = null;
       }
+      console.log(this.patientqueryParams.leavehospitaldistrictcodes);
+      console.log(this.patientqueryParams.leaveldeptcodes);
+
+      if (!this.patientqueryParams.leavehospitaldistrictcodes||!this.patientqueryParams.leavehospitaldistrictcodes[0])
+        this.patientqueryParams.leavehospitaldistrictcodes = null;
+      if (!this.patientqueryParams.leaveldeptcodes||!this.patientqueryParams.leaveldeptcodes[0])
+        this.patientqueryParams.leaveldeptcodes = null;
       this.handleAddpatient();
     },
     resetQuery() {},
@@ -1747,7 +1760,7 @@
         templatename: "",
         templateid: null,
         libtemplateid: null,
-        kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄禉涓尰澶т簩闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚闂嵎銆�",
+        kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄棤閿″効绔ュ尰闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚闂嵎銆�",
         jsy: "璇锋偍娉ㄦ剰浼戞伅鍜岃惀鍏伙紝鐢熸椿涓婅鍔抽�哥粨鍚堬紝閫傚綋閿荤偧锛屾垝鐑熼檺閰掞紝淇濇寔蹇冩儏鑸掔晠锛屽畾鏈熷璇娿�傞偅鏈鍥炶灏卞埌杩欓噷锛岀鎮ㄨ韩浣撳仴搴凤紒",
       };
 

--
Gitblit v1.9.3