From f37b47903b2df3fb44f06f09ac15364fc1372819 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 01 七月 2025 15:23:34 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/propaganda/QuestionnaireTask.vue |   77 +++++++++-----------------------------
 1 files changed, 19 insertions(+), 58 deletions(-)

diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue
index 2a31d54..c736989 100644
--- a/src/views/patient/propaganda/QuestionnaireTask.vue
+++ b/src/views/patient/propaganda/QuestionnaireTask.vue
@@ -768,17 +768,7 @@
               <el-form-item label="闂嵎鍚嶇О">
                 <el-input v-model="topqueryParams.svyname"></el-input>
               </el-form-item>
-              <!-- <el-form-item label="閫傜敤褰㈠紡" prop="status">
-                <el-select v-model="topqueryParams.topica" placeholder="璇烽�夋嫨">
-                  <el-option
-                    v-for="item in taskoptions"
-                    :key="item.value"
-                    :label="item.label"
-                    :value="item.value"
-                  >
-                  </el-option>
-                </el-select>
-              </el-form-item> -->
+
               <el-form-item>
                 <el-button
                   type="primary"
@@ -1498,9 +1488,7 @@
         this.allpids.push(item.patid);
       });
       if (
-        (this.patientqueryParams.allhosp == 1 &&
-          !this.patientqueryParams.zsallhosp) ||
-        this.patientqueryParams.zsallhosp == 1
+        this.patientqueryParams.allhosp == 1
       ) {
         this.tableLabelhz = [
           // { label: "鍏ラ櫌鏃ユ湡", width: "170", prop: "starttime" },
@@ -1516,8 +1504,7 @@
           { label: "鐥呭尯", width: "150", prop: "leavehospitaldistrictname" },
         ];
       } else if (
-        this.patientqueryParams.allhosp == 4 ||
-        this.patientqueryParams.zsallhosp == 4
+        this.patientqueryParams.allhosp == 4
       ) {
         this.tableLabelhz = [
           { label: "鍏ラ櫌鏃ユ湡", width: "150", prop: "starttime" },
@@ -1540,45 +1527,18 @@
 
       // 绉戝杩樻槸鐥呭尯
 
-      if (this.patientqueryParams.searchscope == 1) {
-        this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
-          (obj) => obj.deptCode
-        );
-        this.patientqueryParams.leavehospitaldistrictcodes = [];
-      } else if (this.patientqueryParams.searchscope == 2) {
-        this.patientqueryParams.leavehospitaldistrictcodes =
-          store.getters.belongWards.map((obj) => obj.districtCode);
-        this.patientqueryParams.leaveldeptcodes = [];
-      } else {
-        this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
-          (obj) => obj.deptCode
-        );
-        this.patientqueryParams.leavehospitaldistrictcodes =
-          store.getters.belongWards.map((obj) => obj.districtCode);
-      }
+
       // 鍑洪櫌杩樻槸鍏ラ櫌
-      if (
-        (this.patientqueryParams.allhosp == 1 &&
-          !this.patientqueryParams.zsallhosp) ||
-        this.patientqueryParams.zsallhosp == 1
-      ) {
-        this.patientqueryParams.cry = 1;
+      if (this.patientqueryParams.allhosp == 1) {
         this.patientqueryParams.hospitaldistrictcodes = [];
         this.patientqueryParams.deptcodes = [];
-        this.patientqueryParams.zsallhosp = "1";
-      } else if (
-        this.patientqueryParams.allhosp == 4 ||
-        this.patientqueryParams.zsallhosp == 4
-      ) {
+      } else if (this.patientqueryParams.allhosp == 4) {
         this.patientqueryParams.deptcodes =
           this.patientqueryParams.leaveldeptcodes;
         this.patientqueryParams.hospitaldistrictcodes =
           this.patientqueryParams.leavehospitaldistrictcodes;
         this.patientqueryParams.leavehospitaldistrictcodes = [];
         this.patientqueryParams.leaveldeptcodes = [];
-        this.patientqueryParams.cry = 0;
-        this.patientqueryParams.allhosp = "1";
-        this.patientqueryParams.zsallhosp = "4";
       }
 
       getTaskpatientQC(this.patientqueryParams).then((response) => {
@@ -1665,25 +1625,27 @@
     getList() {},
     handleQuery() {
       // 鑾峰彇澶栭儴鎮h��
-      console.log(this.patientqueryParams.allhosp, "aaalll");
-
       if (this.patientqueryParams.allhosp == 6) {
         this.Externallist();
         console.log();
 
         return;
       }
-      if (this.patientqueryParams.topica == 0) {
+      if (this.patientqueryParams.searchscope == 1) {
+        this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
+          (obj) => obj.deptCode
+        );
+        this.patientqueryParams.leavehospitaldistrictcodes = [];
+      } else if (this.patientqueryParams.searchscope == 2) {
         this.patientqueryParams.leavehospitaldistrictcodes =
-          store.getters.leavehospitaldistrictcodes;
-        this.patientqueryParams.leaveldeptcodes = store.getters.leaveldeptcodes;
-      } else if (this.patientqueryParams.topica == 1) {
-        this.patientqueryParams.leavehospitaldistrictcodes = null;
-        this.patientqueryParams.leaveldeptcodes = store.getters.leaveldeptcodes;
-      } else if (this.patientqueryParams.topica == 2) {
+          store.getters.belongWards.map((obj) => obj.districtCode);
+        this.patientqueryParams.leaveldeptcodes = [];
+      } else {
+        this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
+          (obj) => obj.deptCode
+        );
         this.patientqueryParams.leavehospitaldistrictcodes =
-          store.getters.leavehospitaldistrictcodes;
-        this.patientqueryParams.leaveldeptcodes = null;
+          store.getters.belongWards.map((obj) => obj.districtCode);
       }
 
       if (
@@ -1696,7 +1658,6 @@
         !this.patientqueryParams.leaveldeptcodes[0]
       )
         this.patientqueryParams.leaveldeptcodes = null;
-      console.log(this.patientqueryParams.allhosp, "bbblll");
       this.handleAddpatient();
     },
     // 鑾峰彇澶栭儴鎮h�呭鍏ュ垪琛�

--
Gitblit v1.9.3