From f4dcb9cf920f2229d5bab5b989f0ed944cffd46d Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 24 四月 2024 18:40:16 +0800
Subject: [PATCH] 测试完成

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

diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue
index db07b76..c44777c 100644
--- a/src/views/patient/propaganda/particty.vue
+++ b/src/views/patient/propaganda/particty.vue
@@ -11,7 +11,7 @@
           ></el-step>
           <el-step
             icon="el-icon-user"
-            title="浠讳富浣�"
+            title="浠诲姟涓讳綋"
             description="鍦ㄦ湰閮ㄩ�夋嫨鏈嶅姟鎮h��"
           ></el-step>
           <el-step icon="el-icon-user" title="妯$増纭"></el-step>
@@ -574,7 +574,7 @@
               <el-form-item label="鎮h�呭悕绉帮細">
                 <el-input v-model="patientqueryParams.name"></el-input>
               </el-form-item>
-              <el-form-item label="鎮h�呮潵婧�" prop="status">
+              <!-- <el-form-item label="鎮h�呮潵婧�" prop="status">
                 <el-select
                   v-model="patientqueryParams.topic"
                   placeholder="璇烽�夋嫨"
@@ -587,36 +587,28 @@
                   >
                   </el-option>
                 </el-select>
-              </el-form-item>
-              <el-form-item label="鍑洪櫌绉戝" prop="status">
+              </el-form-item> -->
+              <el-form-item label="灏辫瘖绉戝" prop="status">
                 <el-select
                   v-model="patientqueryParams.topic"
                   placeholder="璇烽�夋嫨"
                 >
-                  <el-option
-                    v-for="item in topicoptions"
-                    :key="item.value"
-                    :label="item.label"
-                    :value="item.value"
+                  <el-option-group
+                    v-for="group in topicoptions[0].children"
+                    :key="group.deptName"
+                    :label="group.deptName"
                   >
-                  </el-option>
+                    <el-option
+                      v-for="item in group.children"
+                      :key="item.deptId"
+                      :label="item.deptName"
+                      :value="item.deptId"
+                    >
+                    </el-option>
+                  </el-option-group>
                 </el-select>
               </el-form-item>
 
-              <el-form-item label="鍑洪櫌鐥呭尯" prop="status">
-                <el-select
-                  v-model="patientqueryParams.topic"
-                  placeholder="璇烽�夋嫨"
-                >
-                  <el-option
-                    v-for="item in topicoptions"
-                    :key="item.value"
-                    :label="item.label"
-                    :value="item.value"
-                  >
-                  </el-option>
-                </el-select>
-              </el-form-item>
               <el-form-item>
                 <el-button
                   type="primary"
@@ -672,12 +664,13 @@
   getFollowuplist,
   getQtemplatelist,
   getTaskInfo,
-  addhetask,
   gethetaskinfo,
   delhetaskinfo,
   Editsingletask,
   getvFollowup,
 } from "@/api/AiCentre/index";
+import { listDept } from "@/api/system/dept";
+
 import SFtable from "@/components/SFtable"; //琛ㄦ牸缁勪欢
 
 export default {
@@ -694,14 +687,15 @@
       radio: 1,
       checkboxlist: [],
       tableLabel: [],
+      
       // 鎮h�呰〃鍗�
       tableLabelhz: [
         { label: "搴忓彿", width: "", prop: "patid" },
         { label: "鎮h�呭悕绉�", width: "", prop: "name" },
         { label: "鎬у埆", width: "", prop: "sex" },
         { label: "骞撮緞", width: "", prop: "age" },
-        { label: "灏辫瘖绉戝", width: "", prop: "impTemplate" },
-        { label: "鍏ラ櫌鏃ユ湡", width: "", prop: "uploadTime" },
+        { label: "灏辫瘖绉戝", width: "", prop: "deptName" },
+        { label: "鍏ラ櫌鏃ユ湡", width: "", prop: "inhosptime" },
         { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "update_by" },
       ],
       tableLabelxj: [
@@ -767,7 +761,7 @@
         pageNum: 1, //
         pageSize: 10,
       },
-      topicoptions: [],
+      topicoptions: [{ children: [{ children: [] }] }],
       showSearch: true, //
       total: 0, //
       sontotal: 0, //
@@ -853,7 +847,8 @@
 
   created() {
     this.id = this.$route.query.id;
-    this.form.type = this.$route.query.type;
+    this.form.hospType = this.$route.query.type;
+    this.listDept();
     this.Getdetails();
     this.Acquisitiontype();
   },
@@ -951,7 +946,7 @@
     // 淇濆瓨
     submitForm(formName) {
       this.form.serviceform = this.checkList.join(",");
-      this.form.type = this.currenttype;
+      this.form.hospType = this.currenttype;
       const filteredArray = this.variableList.filter(
         (item) =>
           item.name !== "濮撳悕" && item.name !== "鐢佃瘽" && item.name !== "鍦板潃"
@@ -1056,7 +1051,9 @@
       console.log(this.ids);
     },
     getList() {},
-    handleQuery() {},
+    handleQuery() {
+      this.handleAddpatient();
+    },
     resetQuery() {},
     handleClosehz() {
       this.dialogVisiblepatient = false;
@@ -1091,6 +1088,13 @@
         });
       }
     },
+    // 鑾峰彇绉戝鍒楄〃
+    listDept() {
+      listDept().then((res) => {
+        this.topicoptions = this.handleTree(res.data, "deptId");
+        console.log(this.topicoptions, "topicoptions");
+      });
+    },
     // 鏂板娲鹃�佹偅鑰�
     AddDispatchpatients() {
       this.SelectPatientslist.forEach((item) => {

--
Gitblit v1.9.3