From e353f0e17dc46203512dd272c5b559b094e40761 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 25 七月 2025 15:02:36 +0800
Subject: [PATCH] 测试完成
---
src/views/patient/patient/behospitalized.vue | 95 +++++++++++++++++++++++++++++++----------------
1 files changed, 62 insertions(+), 33 deletions(-)
diff --git a/src/views/patient/patient/behospitalized.vue b/src/views/patient/patient/behospitalized.vue
index 7d2a37f..255b527 100644
--- a/src/views/patient/patient/behospitalized.vue
+++ b/src/views/patient/patient/behospitalized.vue
@@ -11,7 +11,7 @@
v-show="showSearch"
label-width="98px"
>
- <el-form-item label="濮撳悕" prop="name">
+ <el-form-item label="鎮h�呭鍚�" prop="name">
<el-input
v-model="queryParams.patname"
placeholder="璇疯緭鍏ュ鍚�"
@@ -19,19 +19,27 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
- <el-form-item label="鎮h�呬綇闄㈠彿" prop="patid">
+ <el-form-item label="鎮h�呮爣绛�" prop="tagname">
+ <el-input
+ v-model="queryParams.tagname"
+ placeholder="杈撳叆杩涜妯$硦鏌ヨ"
+ maxlength="30"
+ @keyup.enter.native="handleQuery"
+ />
+ </el-form-item>
+ <el-form-item label="鎮h�呯紪鍙�" prop="patid">
<el-input
- v-model="queryParams.patid"
+ v-model="queryParams.patno"
placeholder="璇疯緭鍏ユ偅鑰呯紪鍙�"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
- <el-form-item label="鎮h�呮潵婧�" prop="tagId">
+ <el-form-item label="鎮h�呰寖鍥�" prop="tagId">
<el-select
v-model="queryParams.searchscope"
- placeholder="璇烽�夋嫨鎮h�呮潵婧�"
+ placeholder="璇烽�夋嫨鎮h�呰寖鍥�"
>
<el-option
v-for="item in source"
@@ -42,7 +50,7 @@
</el-option>
</el-select>
</el-form-item>
- <el-form-item label=" 鍏ラ櫌鏃ユ湡鑼冨洿 " prop="createTime">
+ <el-form-item label=" 鍏ラ櫌鏃ユ湡 " prop="createTime">
<el-date-picker
v-model="dateRange"
style="width: 240px"
@@ -74,7 +82,7 @@
</el-form>
<el-row :gutter="10" class="mb8">
- <el-col :span="1.5">
+ <!-- <el-col :span="1.5">
<el-button
type="primary"
plain
@@ -84,8 +92,8 @@
v-hasPermi="['system:user:add']"
>鏂板</el-button
>
- </el-col>
- <el-col :span="1.5">
+ </el-col> -->
+ <!-- <el-col :span="1.5">
<el-button
type="success"
plain
@@ -96,7 +104,7 @@
v-hasPermi="['system:user:edit']"
>淇敼</el-button
>
- </el-col>
+ </el-col> -->
<el-col :span="1.5">
<el-button
type="danger"
@@ -115,6 +123,7 @@
<el-table
v-loading="loading"
:data="userList"
+ height="660"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="50" align="center" />
@@ -138,7 +147,7 @@
</el-table-column>
<el-table-column
- label="浣忛櫌鍙�"
+ label="鎮h�呯紪鍙�"
align="center"
key="patno"
prop="patno"
@@ -163,14 +172,20 @@
width="120"
/>
<el-table-column
+ label="鏍囩"
+ align="center"
+ key="tagname"
+ prop="tagname"
+ show-overflow-tooltip
+ width="180"
+ />
+ <el-table-column
label="鑱旂郴鐢佃瘽"
align="center"
key="telcode"
prop="telcode"
width="120"
/>
-
-
<el-table-column
label="鍏ラ櫌璇婃柇"
align="center"
@@ -190,8 +205,8 @@
<el-table-column
label="鐥呭尯"
align="center"
- key="leavehospitaldistrictname"
- prop="leavehospitaldistrictname"
+ key="hospitaldistrictname"
+ prop="hospitaldistrictname"
width="120"
/>
<el-table-column
@@ -201,7 +216,7 @@
prop="bedNo"
width="120"
/>
- <el-table-column
+ <!-- <el-table-column
label="涓绘不鍖荤敓"
align="center"
key="drname"
@@ -214,7 +229,7 @@
key="nurseName"
prop="nurseName"
width="120"
- />
+ /> -->
<el-table-column
label="鎿嶄綔"
@@ -468,6 +483,7 @@
pageNum: 1,
pageSize: 10,
cry: 0,
+ searchscope:2,
idcardno: undefined,
name: undefined,
status: undefined,
@@ -531,7 +547,7 @@
created() {
this.getList();
- this.listDept();
+ // this.listDept();
this.gettabList();
},
methods: {
@@ -539,19 +555,19 @@
getList() {
this.loading = true;
if (this.queryParams.searchscope == 1) {
- this.queryParams.leaveldeptcodes = store.getters.belongDepts.map(
+ this.queryParams.deptcodes = store.getters.belongDepts.map(
(obj) => obj.deptCode
);
- this.queryParams.leavehospitaldistrictcodes=null;
+ this.queryParams.hospitaldistrictcodes=null;
} else if (this.queryParams.searchscope == 2) {
- this.queryParams.leavehospitaldistrictcodes =
+ this.queryParams.hospitaldistrictcodes =
store.getters.belongWards.map((obj) => obj.districtCode);
- this.queryParams.leaveldeptcodes=null;
+ this.queryParams.deptcodes=null;
} else {
- this.queryParams.leaveldeptcodes = store.getters.belongDepts.map(
+ this.queryParams.deptcodes = store.getters.belongDepts.map(
(obj) => obj.deptCode
);
- this.queryParams.leavehospitaldistrictcodes =
+ this.queryParams.hospitaldistrictcodes =
store.getters.belongWards.map((obj) => obj.districtCode);
}
listpatient(this.queryParams).then((response) => {
@@ -561,12 +577,12 @@
this.loading = false;
});
},
- listDept() {
- listDept(this.queryParams).then((res) => {
- this.deptList = res.data;
- console.log(this.deptList, "this.deptList");
- });
- },
+ // listDept() {
+ // listDept(this.queryParams).then((res) => {
+ // this.deptList = res.data;
+ // console.log(this.deptList, "this.deptList");
+ // });
+ // },
/** 鏌ヨ鏍囩鍒楄〃 */
gettabList() {
const tagqueryParams = {
@@ -623,14 +639,27 @@
},
/** 鎼滅储鎸夐挳鎿嶄綔 */
handleQuery() {
+ this.queryParams.startInHospTime = this.dateRange[0];
+ this.queryParams.endInHospTime = this.dateRange[1];
this.queryParams.pageNum = 1;
this.getList();
},
/** 閲嶇疆鎸夐挳鎿嶄綔 */
resetQuery() {
this.dateRange = [];
- this.resetForm("queryForm");
- this.$refs.tree.setCurrentKey(null);
+ this.queryParams= {
+ pageNum: 1,
+ pageSize: 10,
+ cry: 0,
+ searchscope:2,
+ idcardno: undefined,
+ name: undefined,
+ status: undefined,
+ tagIds: undefined,
+ telcode: undefined,
+ };
+ // this.resetForm("queryForm");
+ // this.$refs.tree.setCurrentKey(null);
this.handleQuery();
},
// 澶氶�夋閫変腑鏁版嵁
@@ -716,7 +745,7 @@
/** 涓嬭浇妯℃澘鎿嶄綔 */
importTemplate() {
this.download(
- "system/user/importTemplate",
+ "smartor/import/getImportPatTemplate",
{},
`user_template_${new Date().getTime()}.xlsx`
);
--
Gitblit v1.9.3