From 7b38cbd5c0af64e2f11e02d4d2e0ea6cbb1c09f5 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期一, 09 十一月 2026 17:05:06 +0800
Subject: [PATCH] 测试完成
---
src/views/patient/patient/hospital.vue | 70 ++++++++++++++++++++++++++++------
1 files changed, 57 insertions(+), 13 deletions(-)
diff --git a/src/views/patient/patient/hospital.vue b/src/views/patient/patient/hospital.vue
index 560b7a6..7f12039 100644
--- a/src/views/patient/patient/hospital.vue
+++ b/src/views/patient/patient/hospital.vue
@@ -60,8 +60,8 @@
v-model="queryParams.scopetype"
placeholder="榛樿鍏ㄩ儴绉戝"
:options="sourcetype"
- filterable
- clearable
+ filterable
+ clearable
:props="{ expandTrigger: 'hover' }"
@change="handleChange"
></el-cascader>
@@ -76,6 +76,17 @@
start-placeholder="寮�濮嬫棩鏈�"
end-placeholder="缁撴潫鏃ユ湡"
></el-date-picker>
+ </el-form-item>
+ <el-form-item label="搴婂彿鎺掑簭" prop="bedSort">
+ <el-select
+ v-model="queryParams.bedSort"
+ placeholder="涓嶆寜搴婂彿鎺掑簭"
+ style="width: 160px"
+ >
+ <el-option label="涓嶆寜搴婂彿鎺掑簭" :value="null"></el-option>
+ <el-option label="鎸夊簥鍙锋搴�" :value="1"></el-option>
+ <el-option label="鎸夊簥鍙峰�掑簭" :value="2"></el-option>
+ </el-select>
</el-form-item>
<el-row>
@@ -117,7 +128,7 @@
size="medium"
:disabled="single"
@click="handleUpdate"
- v-hasPermi="['system:user:edit']"
+
>淇敼</el-button
>
</el-col> -->
@@ -205,7 +216,7 @@
scope.row.idcardno,
scope.row.drcode,
scope.row.drname,
- scope.row.patid,
+ scope.row.patid
)
"
><span class="button-textsc">{{
@@ -404,7 +415,11 @@
width="120"
align="center"
/>
- <el-table-column prop="leaveldeptname" label="绉戝" align="center" />
+ <el-table-column
+ prop="leaveldeptname"
+ label="绉戝"
+ align="center"
+ />
<el-table-column
prop="leavehospitaldistrictname"
label="鐥呭尯"
@@ -431,7 +446,7 @@
<el-table
:data="taskList"
border
- height="680"
+ height="680"
style="width: 100%"
size="small"
@current-change="handleTaskSelectionChange"
@@ -485,6 +500,13 @@
</div>
</template>
</el-table>
+ <pagination
+ v-show="taskTotal > 0"
+ :total="taskTotal"
+ :page.sync="taskQueryParams.pageNum"
+ :limit.sync="taskQueryParams.pageSize"
+ @pagination="loadTaskList"
+ />
</div>
</el-col>
</el-row>
@@ -615,7 +637,12 @@
import Treeselect from "@riophae/vue-treeselect";
import { listDept } from "@/api/system/dept";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
-import { query360PatInfo,query360PatInfonh, getTasklist, addSubtask } from "@/api/AiCentre/index";
+import {
+ query360PatInfo,
+ query360PatInfonh,
+ getTasklist,
+ addSubtask,
+} from "@/api/AiCentre/index";
import store from "@/store";
@@ -656,6 +683,11 @@
taskList: [], // 浠诲姟鍒楄〃
selectedTask: null, // 閫変腑鐨勪换鍔�
batchLoading: false, // 鎵归噺鎻愪氦鍔犺浇鐘舵��
+ taskQueryParams: {
+ pageNum: 1,
+ pageSize: 20,
+ },
+ taskTotal: 0,
// 鏃ユ湡鑼冨洿
dateRange: [],
source: [
@@ -785,6 +817,7 @@
pageNum: 1,
pageSize: 10,
cry: 1,
+ bedSort: null,
searchscope: 3,
scopetype: [],
leaveldeptcodes: [],
@@ -899,8 +932,9 @@
// 鏄剧ず寮圭獥
this.batchTaskVisible = true;
- // 鑾峰彇浠诲姟鍒楄〃
- this.loadTaskList(deptcode);
+ // 閲嶇疆浠诲姟鍒嗛〉骞惰幏鍙栦换鍔″垪琛�
+ this.taskQueryParams.pageNum = 1;
+ this.loadTaskList();
},
/** 琛ㄦ牸琛屾牱寮� */
tableRowClassName({ row, rowIndex }) {
@@ -920,17 +954,23 @@
}
},
/** 鍔犺浇浠诲姟鍒楄〃 */
- loadTaskList(deptcode) {
+ loadTaskList() {
this.batchLoading = true;
let topqueryParams = {
- pageNum: 1,
- pageSize: 100, // 璁剧疆杈冨ぇ鐨勫垎椤佃幏鍙栨洿澶氫换鍔�
+ pageNum: this.taskQueryParams.pageNum,
+ pageSize: this.taskQueryParams.pageSize,
type: 2, // 鏍规嵁瀹為檯鎯呭喌璋冩暣
};
-
+ topqueryParams.deptcodes = store.getters.belongDepts.map(
+ (obj) => obj.deptCode
+ );
+ topqueryParams.hospitaldistrictcodes = store.getters.belongWards.map(
+ (obj) => obj.districtCode
+ );
getTasklist(topqueryParams)
.then((response) => {
this.taskList = response.rows;
+ this.taskTotal = response.total;
this.batchLoading = false;
if (this.taskList.length === 0) {
@@ -1015,6 +1055,9 @@
}
this.batchTaskVisible = false;
+ this.$router.push({
+ path: "/followvisit/Continue",
+ });
this.getList(); // 鍒锋柊鎮h�呭垪琛�
} catch (error) {
this.$modal.msgError("鎵归噺娣诲姞浠诲姟杩囩▼涓嚭閿欙細" + error.message);
@@ -1130,6 +1173,7 @@
pageNum: 1,
pageSize: 10,
cry: 1,
+ bedSort: null,
searchscope: 3,
scopetype: [],
leaveldeptcodes: [],
--
Gitblit v1.9.3