Browse Source

添加组织查询条件

newMaster
1747191978@qq.com 4 months ago
parent
commit
a53376e04e
  1. 2
      acupuncture-后台/src/layout/components/Sidebar/Logo.vue
  2. 31
      acupuncture-后台/src/views/followFile/index.vue
  3. 292
      acupuncture-后台/src/views/followFile/subjects.vue
  4. 37
      acupuncture-后台/src/views/followFile/work.vue
  5. 38
      acupuncture-后台/src/views/medicalFile/index.vue
  6. 29
      acupuncture-后台/src/views/patientFile/index.vue

2
acupuncture-后台/src/layout/components/Sidebar/Logo.vue

@ -104,7 +104,7 @@ export default {
width: 32px; width: 32px;
height: 32px; height: 32px;
vertical-align: middle; vertical-align: middle;
margin-right: 12px; margin-right: 2px;
} }
& .sidebar-title { & .sidebar-title {

31
acupuncture-后台/src/views/followFile/index.vue

@ -16,6 +16,21 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="组织" prop="tenantId">
<el-select
v-model="queryParams.param.tenantId"
placeholder="请选择"
clearable
filterable
>
<el-option
v-for="(item, index) in tenantsListData"
:label="item.name"
:value="item.id"
:key="index"
/>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
@ -127,7 +142,7 @@
/> />
<el-table-column <el-table-column
fixed="right" fixed="right"
label="类型" label="组织"
align="center" align="center"
show-overflow-tooltip show-overflow-tooltip
min-width="130" min-width="130"
@ -282,11 +297,13 @@ import {
followupDel, followupDel,
commonQueue, commonQueue,
} from "@/api/followupFile"; } from "@/api/followupFile";
import { tenantsList } from "@/api/member";
export default { export default {
name: "Notice", name: "Notice",
components: { Crontab }, components: { Crontab },
data() { data() {
return { return {
tenantsListData: [], //
// Cron // Cron
openCron: false, openCron: false,
// //
@ -335,6 +352,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
param: { param: {
tenantId: "", // id
name: "", // name: "", //
}, },
}, },
@ -374,8 +392,18 @@ export default {
}, },
created() { created() {
this.getList(); this.getList();
this.getTenantsList(); //
}, },
methods: { methods: {
//
getTenantsList() {
tenantsList({
pageNum: -1,
param: {},
}).then((res) => {
this.tenantsListData = res.data.list;
});
},
/** cron表达式按钮操作 */ /** cron表达式按钮操作 */
handleShowCron() { handleShowCron() {
this.expression = this.form.cronExpression; this.expression = this.form.cronExpression;
@ -424,6 +452,7 @@ export default {
pageSize: 10, pageSize: 10,
param: { param: {
name: "", name: "",
tenantId: "",
}, },
}; };
this.handleQuery(); this.handleQuery();

292
acupuncture-后台/src/views/followFile/subjects.vue

@ -1,63 +1,175 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" <el-form
label-width="68px"> :model="queryParams"
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="68px"
>
<el-form-item label="随访队列" prop="queueId"> <el-form-item label="随访队列" prop="queueId">
<el-select v-model="queryParams.param.queueId" clearable placeholder="请选择"> <el-select
<el-option v-for="item in followupList" :key="item.id" :label="item.name" :value="item.id"> v-model="queryParams.param.queueId"
clearable
placeholder="请选择"
>
<el-option
v-for="item in followupList"
:key="item.id"
:label="item.name"
:value="item.id"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="组织" prop="tenantId">
<el-select
v-model="queryParams.param.tenantId"
placeholder="请选择"
clearable
filterable
>
<el-option
v-for="(item, index) in tenantsListData"
:label="item.name"
:value="item.id"
:key="index"
/>
</el-select>
</el-form-item>
<el-form-item label="" prop="queueId"> <el-form-item label="" prop="queueId">
<el-checkbox-group v-model="haveQueue"> <el-checkbox-group v-model="haveQueue">
<el-checkbox >未参加队列人员</el-checkbox> <el-checkbox>未参加队列人员</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> <el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">
重置 重置
</el-button> </el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row> </el-row>
<el-table v-loading="loading" :data="listDat" @selection-change="handleSelectionChange" max-height="600"> <el-table
v-loading="loading"
:data="listDat"
@selection-change="handleSelectionChange"
max-height="600"
>
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="姓名" align="center" prop="name" width="100" fixed /> <el-table-column
<el-table-column fixed label="性别" align="center" prop="gender" show-overflow-tooltip min-width="100"> label="姓名"
align="center"
prop="name"
width="100"
fixed
/>
<el-table-column
fixed
label="性别"
align="center"
prop="gender"
show-overflow-tooltip
min-width="100"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.gender == 0"></span> <span v-if="scope.row.gender == 0"></span>
<span v-if="scope.row.gender == 1"></span> <span v-if="scope.row.gender == 1"></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column fixed label="出生日期" align="center" prop="birthDate" show-overflow-tooltip min-width="150"> <el-table-column
fixed
label="出生日期"
align="center"
prop="birthDate"
show-overflow-tooltip
min-width="150"
>
<template slot-scope="scope"> <template slot-scope="scope">
{{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }} {{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="民族" align="center" prop="ethnicity" show-overflow-tooltip min-width="100" /> <el-table-column
<el-table-column label="受教育年限" align="center" prop="educationYears" show-overflow-tooltip min-width="100" /> label="民族"
<el-table-column label="手机号码" align="center" prop="phone" show-overflow-tooltip min-width="150" /> align="center"
<el-table-column label="证件类型" align="center" prop="idCardType" show-overflow-tooltip min-width="200"> prop="ethnicity"
show-overflow-tooltip
min-width="100"
/>
<el-table-column
label="受教育年限"
align="center"
prop="educationYears"
show-overflow-tooltip
min-width="100"
/>
<el-table-column
label="手机号码"
align="center"
prop="phone"
show-overflow-tooltip
min-width="150"
/>
<el-table-column
label="证件类型"
align="center"
prop="idCardType"
show-overflow-tooltip
min-width="200"
>
<template slot-scope="scope"> <template slot-scope="scope">
{{ idCardTypeValue[scope.row.idCardType] }} {{ idCardTypeValue[scope.row.idCardType] }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="证件号码" align="center" prop="idCard" show-overflow-tooltip min-width="180" /> <el-table-column
<el-table-column fixed="right" label="随访队列" align="center" prop="queueList" show-overflow-tooltip label="证件号码"
min-width="180"> align="center"
prop="idCard"
show-overflow-tooltip
min-width="180"
/>
<el-table-column
fixed="right"
label="随访队列"
align="center"
prop="queueList"
show-overflow-tooltip
min-width="180"
>
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.queueList && scope.row.queueList.length"> <div v-if="scope.row.queueList && scope.row.queueList.length">
{{ scope.row.queueList.map((i) => i.queueName).join(",") }} {{ scope.row.queueList.map((i) => i.queueName).join(",") }}
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="创建人/创建时间" align="center" width="140" fixed="right"> <el-table-column
fixed="right"
prop="tenantName"
label="组织"
align="center"
show-overflow-tooltip
min-width="150"
/>
<el-table-column
label="创建人/创建时间"
align="center"
width="140"
fixed="right"
>
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{ scope.row.createBy }}</div> <div>{{ scope.row.createBy }}</div>
<span>{{ <span>{{
@ -69,23 +181,55 @@
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <el-button size="mini" type="text" icon="el-icon-edit" <!-- <el-button size="mini" type="text" icon="el-icon-edit"
@click="handleUpdate(scope.row)">队列管理</el-button> --> @click="handleUpdate(scope.row)">队列管理</el-button> -->
<el-button size="mini" type="text" icon="el-icon-tickets" <el-button
@click="handlePatient(scope.row)">患者档案</el-button> size="mini"
<el-button size="mini" type="text" icon="el-icon-notebook-2" type="text"
@click="handleMedical(scope.row)">诊疗档案</el-button> icon="el-icon-tickets"
@click="handlePatient(scope.row)"
>患者档案</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-notebook-2"
@click="handleMedical(scope.row)"
>诊疗档案</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" <pagination
:limit.sync="queryParams.pageSize" @pagination="getList" /> v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改公告对话框 --> <!-- 添加或修改公告对话框 -->
<el-dialog class="popup" :title="title" :visible.sync="open" width="780px" append-to-body> <el-dialog
<el-form class="formStep" ref="form" :model="form" :rules="rules" label-width="90px"> class="popup"
:title="title"
:visible.sync="open"
width="780px"
append-to-body
>
<el-form
class="formStep"
ref="form"
:model="form"
:rules="rules"
label-width="90px"
>
<el-form-item label="随访队列" prop="queueIdList"> <el-form-item label="随访队列" prop="queueIdList">
<el-select v-model="form.queueIdList" multiple placeholder="请选择"> <el-select v-model="form.queueIdList" multiple placeholder="请选择">
<el-option v-for="item in followupList" :key="item.id" :label="item.name" :value="item.id"> <el-option
v-for="item in followupList"
:key="item.id"
:label="item.name"
:value="item.id"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -99,17 +243,15 @@
</template> </template>
<script> <script>
import { import { queryPatient, followupQuery, updPatient } from "@/api/followupFile";
queryPatient, import { tenantsList } from "@/api/member";
followupQuery, export default {
updPatient
} from "@/api/followupFile";
export default {
name: "Notice", name: "Notice",
data() { data() {
return { return {
fileList: [], fileList: [],
idCardType: [{ idCardType: [
{
label: "身份证", label: "身份证",
value: 0, value: 0,
}, },
@ -147,26 +289,30 @@
title: "", // title: "", //
open: false, // open: false, //
importOpen: false, // importOpen: false, //
tenantsListData: [],
// //
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
param: { param: {
queueId: '' tenantId: "",
queueId: "",
}, },
}, },
haveQueue:'', haveQueue: "",
formDisabled: false, formDisabled: false,
importform: {}, importform: {},
// //
form: {}, form: {},
// //
rules: { rules: {
queueIdList: [{ queueIdList: [
{
required: true, required: true,
message: "随访队列不能为空", message: "随访队列不能为空",
trigger: "change" trigger: "change",
}, ], },
],
}, },
followupList: [], // 访 followupList: [], // 访
}; };
@ -174,21 +320,31 @@
created() { created() {
this.getList(); this.getList();
this.getFollowupQuery(); this.getFollowupQuery();
this.getTenantsList(); //
}, },
methods: { methods: {
//
getTenantsList() {
tenantsList({
pageNum: -1,
param: {},
}).then((res) => {
this.tenantsListData = res.data.list;
});
},
// 访 // 访
getFollowupQuery() { getFollowupQuery() {
followupQuery({ followupQuery({
pageNum: -1, pageNum: -1,
param: { param: {
status: 1 status: 1,
}, },
}).then((res) => { }).then((res) => {
this.followupList = res.data.list; this.followupList = res.data.list;
let commonQueue = JSON.parse(localStorage.getItem('commonQueue')) let commonQueue = JSON.parse(localStorage.getItem("commonQueue"));
commonQueue?.forEach(i => { commonQueue?.forEach((i) => {
this.followupList.unshift(i) this.followupList.unshift(i);
}) });
}); });
}, },
@ -213,9 +369,9 @@
}, },
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {
this.queryParams.param.haveQueue = '' this.queryParams.param.haveQueue = "";
if(this.haveQueue){ if (this.haveQueue) {
this.queryParams.param.haveQueue = 0 this.queryParams.param.haveQueue = 0;
} }
this.queryParams.pageNum = 1; this.queryParams.pageNum = 1;
this.getList(); this.getList();
@ -224,10 +380,11 @@
resetQuery() { resetQuery() {
this.queryParams = { this.queryParams = {
param: { param: {
queueId: '' tenantId: "",
}, queueId: "",
}, },
this.haveQueue = '' };
this.haveQueue = "";
this.handleQuery(); this.handleQuery();
}, },
// //
@ -252,17 +409,17 @@
/** 跳转患者档案 */ /** 跳转患者档案 */
handlePatient(row) { handlePatient(row) {
this.$router.push({ this.$router.push({
path: `/patientFile/index?idCard=${row.idCard}` path: `/patientFile/index?idCard=${row.idCard}`,
}) });
}, },
/** 诊疗档案 */ /** 诊疗档案 */
handleMedical(row) { handleMedical(row) {
this.$router.push({ this.$router.push({
path: `/medicalFile/index?idCard=${row.idCard}` path: `/medicalFile/index?idCard=${row.idCard}`,
}) });
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm: function() { submitForm: function () {
this.$refs["form"].validate((valid) => { this.$refs["form"].validate((valid) => {
if (valid) { if (valid) {
updPatient(this.form).then((response) => { updPatient(this.form).then((response) => {
@ -279,9 +436,9 @@
const idList = row.id ? [row.id] : this.ids; const idList = row.id ? [row.id] : this.ids;
this.$modal this.$modal
.confirm("是否确认删除当前选择的数据?") .confirm("是否确认删除当前选择的数据?")
.then(function() { .then(function () {
return patientDel({ return patientDel({
idList: idList idList: idList,
}); });
}) })
.then(() => { .then(() => {
@ -293,7 +450,8 @@
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download( this.download(
"system/user/export", { "system/user/export",
{
...this.queryParams.params, ...this.queryParams.params,
}, },
`患者档案.xlsx` `患者档案.xlsx`
@ -305,22 +463,22 @@
this.upload.open = true; this.upload.open = true;
}, },
}, },
}; };
</script> </script>
<style scoped src="@/assets/styles/common.css"></style> <style scoped src="@/assets/styles/common.css"></style>
<style scoped> <style scoped>
.form-item-age { .form-item-age {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.form-item-age span { .form-item-age span {
margin: 0 10px; margin: 0 10px;
} }
.form-item-age>>>.el-input { .form-item-age >>> .el-input {
width: 100px; width: 100px;
} }
</style> </style>
<!-- >>> .el-input__inner { <!-- >>> .el-input__inner {
padding: 0 15px !important; padding: 0 15px !important;

37
acupuncture-后台/src/views/followFile/work.vue

@ -33,6 +33,21 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="组织" prop="tenantId">
<el-select
v-model="queryParams.param.tenantId"
placeholder="请选择"
clearable
filterable
>
<el-option
v-for="(item, index) in tenantsListData"
:label="item.name"
:value="item.id"
:key="index"
/>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
@ -167,6 +182,14 @@
}}</span> }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
fixed="right"
prop="tenantName"
label="组织"
align="center"
show-overflow-tooltip
min-width="150"
/>
<el-table-column <el-table-column
v-if="queryParams.param.status == 2" v-if="queryParams.param.status == 2"
label="失访原因" label="失访原因"
@ -312,6 +335,7 @@ import {
followPatient, followPatient,
followStatus, followStatus,
} from "@/api/followupFile"; } from "@/api/followupFile";
import { tenantsList } from "@/api/member";
export default { export default {
name: "Notice", name: "Notice",
data() { data() {
@ -447,8 +471,10 @@ export default {
status: "0", status: "0",
childStatus: "", childStatus: "",
keywords: "", keywords: "",
tenantId: "",
}, },
}, },
tenantsListData: [], //
formDisabled: false, formDisabled: false,
importform: {}, importform: {},
// //
@ -498,8 +524,18 @@ export default {
let idCard = this.$route.query.idCard; let idCard = this.$route.query.idCard;
this.queryParams.param.keywords = idCard || ""; this.queryParams.param.keywords = idCard || "";
this.getList(); this.getList();
this.getTenantsList(); //
}, },
methods: { methods: {
//
getTenantsList() {
tenantsList({
pageNum: -1,
param: {},
}).then((res) => {
this.tenantsListData = res.data.list;
});
},
handleClick(tab, event) { handleClick(tab, event) {
this.queryParams.param.childStatus = ""; this.queryParams.param.childStatus = "";
this.getList(); this.getList();
@ -532,6 +568,7 @@ export default {
resetQuery() { resetQuery() {
this.queryParams.param.keywords = ""; this.queryParams.param.keywords = "";
this.queryParams.param.childStatus = ""; this.queryParams.param.childStatus = "";
this.queryParams.param.tenantId = "";
this.handleQuery(); this.handleQuery();
}, },
// //

38
acupuncture-后台/src/views/medicalFile/index.vue

@ -86,6 +86,21 @@
<el-option label="驳回" :value="3" /> <el-option label="驳回" :value="3" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="建档组织" prop="tenantId">
<el-select
v-model="queryParams.param.tenantId"
placeholder="请选择"
clearable
filterable
>
<el-option
v-for="(item, index) in tenantsListData"
:label="item.name"
:value="item.id"
:key="index"
/>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
@ -296,6 +311,13 @@
show-overflow-tooltip show-overflow-tooltip
min-width="100" min-width="100"
/> />
<el-table-column
prop="tenantName"
label="建档组织"
align="center"
show-overflow-tooltip
min-width="150"
/>
<el-table-column label="建档时间" align="center" min-width="140"> <el-table-column label="建档时间" align="center" min-width="140">
<template slot-scope="scope"> <template slot-scope="scope">
<span> <span>
@ -572,6 +594,7 @@ import {
saveAidRecord, saveAidRecord,
queueAdd, queueAdd,
} from "@/api/medicalFile"; } from "@/api/medicalFile";
import { tenantsList } from "@/api/member";
import { getToken } from "@/utils/auth"; import { getToken } from "@/utils/auth";
import { followupQuery } from "@/api/followupFile"; import { followupQuery } from "@/api/followupFile";
export default { export default {
@ -579,6 +602,7 @@ export default {
dicts: ["sys_normal_disable", "sys_user_sex"], dicts: ["sys_normal_disable", "sys_user_sex"],
data() { data() {
return { return {
tenantsListData: [], //
visitType: { visitType: {
0: "门诊", 0: "门诊",
1: "住院", 1: "住院",
@ -1050,6 +1074,7 @@ export default {
endAge: "", endAge: "",
doctor: "", doctor: "",
status: "", status: "",
tenantId: "",
}, },
}, },
formDisabled: false, formDisabled: false,
@ -1207,9 +1232,19 @@ export default {
let idCard = this.$route.query.idCard; let idCard = this.$route.query.idCard;
this.queryParams.param.keywords = idCard || ""; this.queryParams.param.keywords = idCard || "";
this.getList(); this.getList();
this.getFollowupQuery(); this.getFollowupQuery(); // 访
this.getTenantsList(); //
}, },
methods: { methods: {
//
getTenantsList() {
tenantsList({
pageNum: -1,
param: {},
}).then((res) => {
this.tenantsListData = res.data.list;
});
},
// 访 // 访
getFollowupQuery() { getFollowupQuery() {
followupQuery({ followupQuery({
@ -1291,6 +1326,7 @@ export default {
doctor: "", doctor: "",
status: 0, status: 0,
queueIdList: [], queueIdList: [],
tenantId: "",
}; };
this.resetForm("form"); this.resetForm("form");
}, },

29
acupuncture-后台/src/views/patientFile/index.vue

@ -45,6 +45,21 @@
<el-option label="HIS" :value="2" /> <el-option label="HIS" :value="2" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="建档组织" prop="tenantId">
<el-select
v-model="queryParams.param.tenantId"
placeholder="请选择"
clearable
filterable
>
<el-option
v-for="(item, index) in tenantsListData"
:label="item.name"
:value="item.id"
:key="index"
/>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
@ -375,11 +390,13 @@ import {
patientUpd, patientUpd,
patientDel, patientDel,
} from "@/api/patientFile"; } from "@/api/patientFile";
import { tenantsList } from "@/api/member";
export default { export default {
name: "Notice", name: "Notice",
dicts: ["sys_notice_status", "sys_notice_type"], dicts: ["sys_notice_status", "sys_notice_type"],
data() { data() {
return { return {
tenantsListData: [], //
headers: { headers: {
Authorization: "Bearer " + getToken(), Authorization: "Bearer " + getToken(),
deptId: localStorage.getItem("hospitalId"), deptId: localStorage.getItem("hospitalId"),
@ -540,9 +557,19 @@ export default {
created() { created() {
let idCard = this.$route.query.idCard; let idCard = this.$route.query.idCard;
this.queryParams.param.keywords = idCard || ""; this.queryParams.param.keywords = idCard || "";
this.getList(); this.getList(); //
this.getTenantsList(); //
}, },
methods: { methods: {
//
getTenantsList() {
tenantsList({
pageNum: -1,
param: {},
}).then((res) => {
this.tenantsListData = res.data.list;
});
},
// - pdg // - pdg
handleUploadPdfAdd1(res) { handleUploadPdfAdd1(res) {
if (res.code == 200) { if (res.code == 200) {

Loading…
Cancel
Save