From eef0168f78d81a6eb8856976c3e04cc1046c32df Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 16 一月 2025 10:38:29 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/propaganda/particty.vue |   89 ++++++++++++++++++++++++++------------------
 1 files changed, 52 insertions(+), 37 deletions(-)

diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue
index 8a7ee96..bc575f6 100644
--- a/src/views/patient/propaganda/particty.vue
+++ b/src/views/patient/propaganda/particty.vue
@@ -398,35 +398,15 @@
                     </el-col>
 
                     <el-col :span="1.5">
-                      <div v-if="form.longTask">
-                        <el-tooltip
-                          class="item"
-                          effect="dark"
-                          content="闀挎湡浠诲姟涓嶆敮鎸佹墜鍔ㄦ坊鍔犳偅鑰咃紒"
-                          placement="top-start"
-                        >
-                          <el-button
-                            type="primary"
-                            plain
-                            disabled
-                            icon="el-icon-plus"
-                            size="medium"
-                            @click="handleQuery"
-                            >鏂板</el-button
-                          >
-                        </el-tooltip>
-                      </div>
-                      <div v-else>
-                        <el-button
-                          type="primary"
-                          plain
-                          icon="el-icon-plus"
-                          size="medium"
-                          :disabled="!patientqueryParams.allhosp"
-                          @click="handleQuery"
-                          >鏂板</el-button
-                        >
-                      </div>
+                      <el-button
+                        type="primary"
+                        plain
+                        icon="el-icon-plus"
+                        size="medium"
+                        :disabled="!patientqueryParams.allhosp"
+                        @click="handleQuery"
+                        >鏂板</el-button
+                      >
                     </el-col>
 
                     <!-- <el-col :span="1.5">
@@ -677,7 +657,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
@@ -686,7 +666,7 @@
                       size="medium"
                       multiple
                       filterable
-                      placeholder="璇烽�夋嫨绉戝"
+                      placeholder="璇烽�夋嫨鐥呭尯"
                     >
                       <el-option
                         class="ruleFormaa"
@@ -698,7 +678,7 @@
                       </el-option>
                     </el-select> </el-form-item
                 ></el-col>
-              </el-row>
+              </el-row> -->
 
               <div class="xinz-infs">
                 <el-form-item>
@@ -1049,6 +1029,8 @@
         pageNum: 1, //
         pageSize: 10,
         topica: 1, //0鍏ㄩ儴1绉戝2鐥呭尯
+        leaveldeptcodes: [],
+        leavehospitaldistrictcodes: [],
       },
       topicoptions: [{ children: [{ children: [] }] }],
       showSearch: true, //
@@ -1121,7 +1103,7 @@
         templatename: "",
         templateid: null,
         libtemplateid: null,
-        kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄禉涓尰澶т簩闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝杩涜鏈鍥炶鏈嶅姟銆�",
+        kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄櫙瀹佷汉姘戝尰闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝杩涜鏈鍥炶鏈嶅姟銆�",
         jsy: "璇锋偍娉ㄦ剰浼戞伅鍜岃惀鍏伙紝鐢熸椿涓婅鍔抽�哥粨鍚堬紝閫傚綋閿荤偧锛屾垝鐑熼檺閰掞紝淇濇寔蹇冩儏鑸掔晠锛屽畾鏈熷璇娿�傞偅鏈鍥炶鍐呭灏卞埌杩欓噷锛岀鎮ㄨ韩浣撳仴搴凤紒",
       },
       taskoptions: [
@@ -1194,7 +1176,6 @@
       ],
       // 绉戝/鐥呭尯
       belongWards: [],
-      belongWards: [],
       deptlist: [],
       hosplist: [],
       tempDetpRelevanceslist: [], //绉戝鏁版嵁
@@ -1214,12 +1195,19 @@
         sendType: [
           { required: true, message: "鍙戦�佽缃笉鑳戒负绌�", trigger: "blur" },
         ],
+        deptcode: [
+          { required: true, message: "閫傜敤绉戝涓嶈兘涓虹┖", trigger: "blur" },
+        ],
+        // leavehospitaldistrictcode: [
+        //   { required: true, message: "閫傜敤鐥呭尯涓嶈兘涓虹┖", trigger: "blur" },
+        // ],
       },
       // 绉戝闄㈠尯鏌ヨ鍏ュ弬
       queryParamsdept: {
         tempid: "",
         type: 2,
       },
+      belongDepts: [],
       quote: false,
       serviceType: null,
     };
@@ -1332,6 +1320,11 @@
             label: "绾歌川",
           },
           {
+            value: "4",
+            label: "鐭俊",
+
+          },
+          {
             value: "5",
             label: "寰俊鍏紬鍙�",
           },
@@ -1345,6 +1338,7 @@
           {
             value: "4",
             label: "鐭俊",
+
           },
           {
             value: "5",
@@ -1377,6 +1371,7 @@
           {
             value: "4",
             label: "鐭俊",
+
           },
           {
             value: "5",
@@ -1400,6 +1395,7 @@
           {
             value: "4",
             label: "鐭俊",
+
           },
           {
             value: "5",
@@ -1517,6 +1513,11 @@
           this.objyl = res.data;
           this.objyl.isoperation = 2;
           this.objyl.taskid = data.taskId;
+          if (!this.objyl.sendDa) {
+            this.objyl.sendDay = "5";
+          }
+          console.log(this.objyl.sendDay, "this.objyl.sendDay");
+
           Taskparticty(this.objyl).then((response) => {
             this.previewtf = false;
             this.form.libtemplateid = this.objyl.id;
@@ -1541,7 +1542,7 @@
           if (res.code == 200) {
             this.objyl = res.data;
             if (this.form.longTask) {
-              this.objyl.longTemp = 5;
+              this.objyl.sendDay = 5;
             }
             this.queryParamsdept.type = 2;
             this.queryParamsdept.tempid = row.id;
@@ -1756,10 +1757,16 @@
       this.$modal
         .confirm('鏄惁纭鍒犻櫎鎮h��"' + row.name + '"鐨勬湇鍔¢」锛�')
         .then(() => {
+          console.log();
+
           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("鍒犻櫎鎴愬姛");
         });
     },
@@ -1777,6 +1784,10 @@
           store.getters.leavehospitaldistrictcodes;
         this.patientqueryParams.leaveldeptcodes = null;
       }
+      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() {},
@@ -1810,7 +1821,7 @@
         templatename: "",
         templateid: null,
         libtemplateid: null,
-        kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄禉涓尰澶т簩闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚銆�",
+        kcb: "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾偍濂斤紒鎴戜滑鏄櫙瀹佷汉姘戝尰闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚銆�",
         jsy: "璇锋偍娉ㄦ剰浼戞伅鍜岃惀鍏伙紝鐢熸椿涓婅鍔抽�哥粨鍚堬紝閫傚綋閿荤偧锛屾垝鐑熼檺閰掞紝淇濇寔蹇冩儏鑸掔晠锛屽畾鏈熷璇娿�傞偅鏈鍥炶灏卞埌杩欓噷锛岀鎮ㄨ韩浣撳仴搴凤紒",
       };
 
@@ -1861,6 +1872,7 @@
     neWaddfn() {
       this.id = null;
       this.form.taskName = "";
+      this.form.sendState = null;
       this.form.taskid = null;
       this.overallCase = [];
       this.form.patTaskRelevances = [];
@@ -1993,6 +2005,9 @@
       if (this.form.id) {
         this.objyl.taskid = this.form.id;
       }
+      if (!this.objyl.sendDay) {
+        this.objyl.sendDay = "5";
+      }
       if (this.form.templateid) {
         deleteTaskparticty(this.form.templateid).then((res) => {
           if (res.code == 200) {

--
Gitblit v1.9.3