From b7092c2bf77696eb13fd680cb006211c17b48f5c Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 15 五月 2025 18:00:15 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/medtechnician/SpecializedService.vue |   85 +++++++++++++++++++++++++++++++++---------
 1 files changed, 66 insertions(+), 19 deletions(-)

diff --git a/src/views/patient/medtechnician/SpecializedService.vue b/src/views/patient/medtechnician/SpecializedService.vue
index 093ea18..a5a9493 100644
--- a/src/views/patient/medtechnician/SpecializedService.vue
+++ b/src/views/patient/medtechnician/SpecializedService.vue
@@ -60,18 +60,13 @@
           ></el-input>
         </el-form-item>
         <el-form-item label="鎮h�呰寖鍥�" prop="status">
-          <el-select
-            v-model="topqueryParams.searchscope"
-            placeholder="璇烽�夋嫨鎮h�呰寖鍥�"
-          >
-            <el-option
-              v-for="item in source"
-              :key="item.value"
-              :label="item.label"
-              :value="item.value"
-            >
-            </el-option>
-          </el-select>
+          <el-cascader
+            v-model="topqueryParams.scopetype"
+            placeholder="榛樿鍏ㄩ儴"
+            :options="sourcetype"
+            :props="{ expandTrigger: 'hover' }"
+            @change="handleChange"
+          ></el-cascader>
         </el-form-item>
 
         <el-form-item label="浠诲姟缁勭姸鎬�" prop="status">
@@ -120,7 +115,6 @@
                 icon="el-icon-upload2"
                 size="medium"
                 @click="handleExport"
-                v-hasPermi="['system:user:export']"
                 >瀵煎嚭</el-button
               >
             </div>
@@ -158,7 +152,7 @@
       <el-table
         v-loading="loading"
         :data="userList"
-        height="660"
+        height="808"
         :row-class-name="tableRowClassName"
         @selection-change="handleSelectionChange"
       >
@@ -241,12 +235,12 @@
         <el-table-column
           label="闅忚浜哄憳"
           align="center"
-          key="createBy"
-          prop="createBy"
+          key="updateBy"
+          prop="updateBy"
           width="120"
         />
         <el-table-column
-          label="闅忚鏃堕棿"
+          label="闅忚瀹屾垚鏃堕棿"
           sortable
           align="center"
           prop="finishtime"
@@ -652,6 +646,22 @@
       ruleForm: {
         type: [],
       },
+      sourcetype: [
+        {
+          value: 1,
+          label: "绉戝",
+          children: [],
+        },
+        {
+          value: 2,
+          label: "鐥呭尯",
+          children: [],
+        },
+        {
+          value: 3,
+          label: "鍏ㄩ儴",
+        },
+      ],
       dynamicTags: ["閫夐」涓�", "閫夐」浜�", "閫夐」涓�"], //閫夐」
       inputVisible: false,
       inputValue: "",
@@ -755,7 +765,11 @@
         pageNum: 1,
         pageSize: 10,
         serviceType: 2,
+        sendstate:2,
         searchscope: 2,
+        scopetype: [],
+        leaveldeptcodes: [],
+        leavehospitaldistrictcodes: [],
       },
       propss: { multiple: true },
       options: [],
@@ -806,7 +820,18 @@
   created() {
     this.serviceState = store.getters.serviceState;
     this.checkboxlist = store.getters.checkboxlist;
-
+    this.sourcetype[0].children = store.getters.belongDepts.map((dept) => {
+      return {
+        label: dept.deptName,
+        value: dept.deptCode,
+      };
+    });
+    this.sourcetype[1].children = store.getters.belongWards.map((dept) => {
+      return {
+        label: dept.districtName,
+        value: dept.districtCode,
+      };
+    });
     this.getList();
     this.getConfigKey("sys.user.initPassword").then((response) => {
       this.initPassword = response.msg;
@@ -904,6 +929,25 @@
       this.addalteropen = false;
       this.reset();
     },
+      // 鎮h�呰寖鍥村鐞�
+      handleChange(value) {
+      let type = value[0];
+      let code = value.slice(-1)[0];
+      this.topqueryParams.leavehospitaldistrictcodes = [];
+      this.topqueryParams.leaveldeptcodes = [];
+
+      if (type == 1) {
+        this.topqueryParams.leaveldeptcodes.push(code);
+        this.topqueryParams.leavehospitaldistrictcodes = [];
+        this.topqueryParams.searchscope = 1;
+      } else if (type == 2) {
+        this.topqueryParams.leavehospitaldistrictcodes.push(code);
+        this.topqueryParams.leaveldeptcodes = [];
+        this.topqueryParams.searchscope = 2;
+      } else {
+        this.topqueryParams.searchscope = 3;
+      }
+    },
     // 琛ㄥ崟閲嶇疆
     reset() {
       this.form = {
@@ -954,6 +998,7 @@
         pageSize: 10,
         serviceType: 2,
         searchscope: 2,
+        sendstate:2,
       };
       this.handleQuery();
     },
@@ -1107,8 +1152,10 @@
     },
     /** 瀵煎嚭鎸夐挳鎿嶄綔 */
     handleExport() {
+         this.topqueryParams.pageNum = null;
+      this.topqueryParams.pageSize = null;
       this.download(
-        "system/user/export",
+        "smartor/serviceSubtask/patItemExport",
         {
           ...this.topqueryParams,
         },

--
Gitblit v1.9.3