postdischarge-ui/src/views/system/followup/index.vue

1055 lines
33 KiB
Vue
Raw Normal View History

2024-04-03 11:12:02 +08:00
<template>
2024-06-14 15:30:24 +08:00
<div class="app-container" ref="layout">
2024-07-19 17:54:42 +08:00
<el-tabs
v-model="queryParams.nodeExecuteStatus"
@tab-click="handleClick"
style="flex: 1"
>
2024-04-10 15:43:06 +08:00
<el-tab-pane label="未执行" name="UNEXECUTED"></el-tab-pane>
<el-tab-pane label="已执行" name="EXECUTED"></el-tab-pane>
</el-tabs>
2024-06-16 15:31:29 +08:00
<div ref="topform" class="form">
2024-07-19 17:54:42 +08:00
<el-form
:model="queryParams"
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
>
2024-07-05 14:59:13 +08:00
<el-form-item label="执行时间" prop="startDate">
2024-07-19 17:54:42 +08:00
<el-date-picker
v-model="intentionalTime"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
style="width: 300px"
value-format="yyyy-MM-dd"
end-placeholder="结束日期"
@change="chooseTime"
>
2024-06-14 15:30:24 +08:00
</el-date-picker>
</el-form-item>
<el-form-item label="姓名" prop="patientName">
2024-07-19 17:54:42 +08:00
<el-input
v-model="queryParams.patientName"
placeholder="请输入姓名"
clearable
@keyup.enter.native="handleQuery"
/>
2024-06-14 15:30:24 +08:00
</el-form-item>
<el-form-item label="电话" prop="patientPhone">
2024-07-19 17:54:42 +08:00
<el-input
v-model="queryParams.patientPhone"
placeholder="请输入电话"
clearable
@keyup.enter.native="handleQuery"
/>
2024-06-14 15:30:24 +08:00
</el-form-item>
<el-form-item label="医院" prop="hospitalAgencyId">
2024-07-19 17:54:42 +08:00
<el-select
v-model="queryParams.hospitalAgencyId"
filterable
placeholder="请选择医院"
style="width: 200px"
clearable
@clear="clearhospitalAgency"
@change="changehospitalAgency"
>
<el-option
v-for="item in hospitalAgencylist"
:key="item.id"
:label="item.agencyName"
:value="item.id"
>
2024-06-14 15:30:24 +08:00
</el-option>
</el-select>
</el-form-item>
2024-07-05 11:26:46 +08:00
<el-form-item label="就诊方式" prop="visitMethod">
2024-07-19 17:54:42 +08:00
<el-select
v-model="queryParams.visitMethod"
placeholder="请选择就诊方式"
clearable
>
<el-option
v-for="dict in dict.type.visit_method"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
2024-07-05 11:26:46 +08:00
</el-select>
</el-form-item>
<!-- <el-form-item label="就诊类型" prop="suitRange">
2024-06-14 15:30:24 +08:00
<el-select v-model="queryParams.suitRange" placeholder="请选择就诊类型" clearable @change="change">
<el-option v-for="item in visitoptions" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</el-select>
2024-07-05 11:26:46 +08:00
</el-form-item> -->
2024-06-14 15:30:24 +08:00
<el-form-item label="就诊流水号" prop="visitSerialNumber">
2024-07-19 17:54:42 +08:00
<el-input
v-model="queryParams.visitSerialNumber"
placeholder="请输入就诊流水号"
clearable
@keyup.enter.native="handleQuery"
/>
2024-06-14 15:30:24 +08:00
</el-form-item>
2024-07-05 11:26:46 +08:00
<!-- <el-form-item label="门诊/出院时间" prop="intentionalTimeStart">
2024-06-14 15:30:24 +08:00
<el-date-picker @change="mzchange" v-model="mzTime" type="daterange" range-separator=""
start-placeholder="开始日期" style="width: 300px" value-format="yyyy-MM-dd" end-placeholder="结束日期">
</el-date-picker>
2024-07-05 11:26:46 +08:00
</el-form-item> -->
<!-- <el-form-item label="入院时间" prop="intentionalTimeStart">
2024-06-14 15:30:24 +08:00
<el-date-picker v-model="ryTime" type="daterange" range-separator="" start-placeholder="开始日期"
style="width: 300px" value-format="yyyy-MM-dd" end-placeholder="结束日期" @change="rychange">
</el-date-picker>
2024-07-05 11:26:46 +08:00
</el-form-item> -->
2024-06-14 15:30:24 +08:00
<el-form-item label="诊断" prop="mainDiagnosis">
2024-07-19 17:54:42 +08:00
<el-input
v-model="queryParams.mainDiagnosis"
placeholder="请选择诊断"
clearable
@keyup.enter.native="handleQuery"
/>
2024-06-14 15:30:24 +08:00
</el-form-item>
2024-07-03 14:56:34 +08:00
<el-form-item label="院区" prop="campusAgencyId">
2024-07-19 17:54:42 +08:00
<el-select
v-model="queryParams.campusAgencyId"
filterable
placeholder="请选择院区"
style="width: 200px"
clearable
@clear="clearcampusAgency"
@change="changecampusAgency"
>
<el-option
v-for="item in campusAgencylist"
:key="item.id"
:label="item.agencyName"
:value="item.id"
>
2024-07-03 14:56:34 +08:00
</el-option>
</el-select>
</el-form-item>
<el-form-item label="科室" prop="departmentId">
2024-07-19 17:54:42 +08:00
<el-select
v-model="queryParams.departmentId"
filterable
placeholder="请选择科室"
style="width: 200px"
clearable
@clear="cleardepartment"
@change="changedepartment"
>
<el-option
v-for="item in departmentlist"
:key="item.id"
:label="item.departmentName"
:value="item.id"
>
2024-07-03 14:56:34 +08:00
</el-option>
</el-select>
</el-form-item>
<el-form-item label="病区" prop="wardId">
2024-07-19 17:54:42 +08:00
<el-select
v-model="queryParams.wardId"
filterable
placeholder="请选择病区"
style="width: 200px"
clearable
>
<el-option
v-for="item in wardlist"
:key="item.id"
:label="item.departmentName"
:value="item.id"
>
2024-07-03 14:56:34 +08:00
</el-option>
</el-select>
</el-form-item>
<el-form-item label="主治医生" prop="attendingPhysicianId">
2024-07-19 17:54:42 +08:00
<el-select
v-model="queryParams.attendingPhysicianId"
style="width: 200px"
filterable
placeholder="请选择主治医生"
clearable
>
<el-option
v-for="item in attendingPhysicianlist"
:key="item.userId"
:label="item.nickName"
:value="item.userId"
>
2024-06-14 15:30:24 +08:00
</el-option>
</el-select>
</el-form-item>
2024-07-05 15:26:02 +08:00
<el-form-item label="任务名称" prop="manageRouteName">
2024-07-19 17:54:42 +08:00
<el-input
v-model="queryParams.manageRouteName"
placeholder="请输入任务名称"
clearable
style="width: 200px"
@keyup.enter.native="handleQuery"
/>
2024-07-05 15:26:02 +08:00
</el-form-item>
2024-07-19 17:54:42 +08:00
<el-form-item
label=""
prop="manageRouteName"
v-if="queryParams.nodeExecuteStatus == 'UNEXECUTED'"
>
<el-switch
v-model="timeSignshow"
active-color="#1890ff"
inactive-color="#DCDFE6"
@change="changeswitch"
/>
</el-form-item>
2024-06-14 15:30:24 +08:00
<el-form-item>
2024-07-19 17:54:42 +08:00
<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
>
2024-06-14 15:30:24 +08:00
</el-form-item>
</el-form>
</div>
<div ref="table">
2024-07-19 17:54:42 +08:00
<el-table
:max-height="maxTableHeight"
v-loading="loading"
:data="taskExecuteRecordList"
@selection-change="handleSelectionChange"
>
2024-06-17 16:14:05 +08:00
<el-table-column type="selection" width="55" align="center" />
2024-07-19 17:54:42 +08:00
<el-table-column
label="姓名"
align="center"
prop="patientName"
width="50"
/>
<el-table-column
label="电话"
align="center"
prop="patientPhone"
width="120"
/>
<el-table-column
label="性别"
align="center"
prop="visitSerialNumber"
width="50"
>
2024-06-14 15:30:24 +08:00
<template slot-scope="scope">
{{ scope.row.sex == "MALE" ? "男" : "" }}
{{ scope.row.sex == "FEMALE" ? "女" : "" }}
</template>
</el-table-column>
2024-07-19 17:54:42 +08:00
<el-table-column
label="医院"
align="center"
prop="hospitalAgencyName"
width="105"
/>
2024-06-14 15:30:24 +08:00
<el-table-column label="院区" align="center" prop="campusAgencyName" />
2024-07-19 17:54:42 +08:00
<el-table-column
label="科室名称"
align="center"
prop="departmentName"
/>
2024-06-14 15:30:24 +08:00
<el-table-column label="病区名称" align="center" prop="wardName" />
2024-07-19 17:54:42 +08:00
<el-table-column
label="门诊/住院号"
align="center"
prop="inHospitalNumber"
width="120"
:show-overflow-tooltip="true"
/>
<el-table-column
label="就诊流水号"
align="center"
prop="visitSerialNumber"
width="120"
:show-overflow-tooltip="true"
/>
<el-table-column
label="诊断"
align="center"
prop="mainDiagnosis"
width="120"
:show-overflow-tooltip="true"
/>
2024-06-14 15:30:24 +08:00
<el-table-column label="手术名称" align="center" prop="surgicalName" />
2024-07-19 17:54:42 +08:00
<el-table-column
label="主治医生"
align="center"
prop="attendingPhysicianName"
width="80"
/>
2024-07-05 11:26:46 +08:00
<el-table-column label="就诊方式" align="center" prop="visitMethod">
<template slot-scope="scope">
2024-07-19 17:54:42 +08:00
<span
>{{ scope.row.visitMethod == "OUTPATIENT_SERVICE" ? "门诊" : "" }}
2024-07-05 11:26:46 +08:00
{{ scope.row.visitMethod == "BE_IN_HOSPITAL" ? "住院" : "" }}
</span>
2024-07-19 17:54:42 +08:00
</template></el-table-column
>
2024-07-05 11:26:46 +08:00
<!-- <el-table-column label="就诊类型" align="center" prop="suitRange" width="80">
2024-06-14 15:30:24 +08:00
<template slot-scope="scope">
2024-07-01 14:09:00 +08:00
<span>
{{ scope.row.suitRange == "OUTPATIENT_SERVICE" ? "门诊" : "" }}
2024-06-14 15:30:24 +08:00
{{ scope.row.suitRange == "IN_THE_HOSPITAL" ? "在院" : "" }}
{{ scope.row.suitRange == "DISCHARGE" ? "出院" : "" }}
</span>
2024-07-05 11:26:46 +08:00
</template></el-table-column> -->
2024-07-19 17:54:42 +08:00
<el-table-column
label="入院时间"
align="center"
prop="admissionTime"
width="100"
>
2024-06-14 15:30:24 +08:00
<template slot-scope="scope">
2024-07-19 17:54:42 +08:00
{{
scope.row.visitMethod == "BE_IN_HOSPITAL"
? parseTime(scope.row.admissionTime, "{y}-{m}-{d}")
: ""
}}
2024-07-05 11:26:46 +08:00
<!-- <span>{{ parseTime(scope.row.admissionTime, "{y}-{m}-{d}") }}</span> -->
2024-06-14 15:30:24 +08:00
</template>
</el-table-column>
2024-07-19 17:54:42 +08:00
<el-table-column
label="门诊/出院时间"
align="center"
prop="visitTime"
width="105"
>
2024-06-14 15:30:24 +08:00
<template slot-scope="scope">
2024-07-01 14:09:00 +08:00
<span>
2024-07-19 17:54:42 +08:00
{{
scope.row.visitMethod == "OUTPATIENT_SERVICE"
? parseTime(scope.row.visitTime, "{y}-{m}-{d}")
: ""
}}
{{
scope.row.visitMethod == "BE_IN_HOSPITAL"
? parseTime(scope.row.dischargeTime, "{y}-{m}-{d}")
: ""
}}
2024-07-01 14:09:00 +08:00
</span>
2024-06-14 15:30:24 +08:00
</template>
</el-table-column>
2024-07-19 17:54:42 +08:00
<el-table-column
label="任务名称"
align="center"
prop="manageRouteName"
width="110"
>
2024-07-05 14:52:44 +08:00
</el-table-column>
2024-07-19 17:54:42 +08:00
<el-table-column
label="任务节点名称"
align="center"
prop="routeNodeName"
width="110"
>
2024-06-14 15:30:24 +08:00
<template slot-scope="scope">
2024-07-19 17:54:42 +08:00
<span v-if="scope.row.routeNodeName == 'AFTER_DISCHARGE'"
>出院后<span v-if="scope.row.routeNodeDay"
>{{ scope.row.routeNodeDay }}</span
></span
>
<span v-if="scope.row.routeNodeName == 'AFTER_ADMISSION'"
>入院后<span v-if="scope.row.routeNodeDay"
>{{ scope.row.routeNodeDay }}</span
></span
>
<span v-if="scope.row.routeNodeName == 'AFTER_CONSULTATION'"
>就诊后<span v-if="scope.row.routeNodeDay"
>{{ scope.row.routeNodeDay }}</span
></span
>
<span v-if="scope.row.routeNodeName == 'AFTER_VISIT_DISCHARGE'"
>就诊/出院后<span v-if="scope.row.routeNodeDay"
>{{ scope.row.routeNodeDay }}</span
></span
>
<span v-if="scope.row.routeNodeName == 'PREOPERATIVE'"
>术前<span v-if="scope.row.routeNodeDay"
>{{ scope.row.routeNodeDay }}</span
></span
>
<span v-if="scope.row.routeNodeName == 'POSTOPERATIVE'"
>术后<span v-if="scope.row.routeNodeDay"
>{{ scope.row.routeNodeDay }}</span
></span
>
2024-07-05 14:52:44 +08:00
</template>
</el-table-column>
2024-07-19 17:54:42 +08:00
<el-table-column
label="任务内容"
align="center"
prop="taskNodeType"
:show-overflow-tooltip="true"
>
2024-07-05 14:52:44 +08:00
<template slot-scope="scope">
<span>
2024-07-11 17:08:32 +08:00
{{ scope.row.taskNodeType == "PHONE_OUTBOUND" ? "电话外呼" : "" }}
2024-07-19 17:54:42 +08:00
{{
scope.row.taskNodeType == "QUESTIONNAIRE_SCALE"
? "问卷量表"
: ""
}}
{{
scope.row.taskNodeType == "PROPAGANDA_ARTICLE" ? "宣教文章" : ""
}}
2024-07-11 17:08:32 +08:00
{{ scope.row.taskNodeType == "TEXT_REMIND" ? "文字提醒" : "" }}
<!-- {{ scope.row.taskType == "ARTIFICIAL_FOLLOW_UP" ? "人工随访" : "" }} -->
2024-07-05 14:52:44 +08:00
</span>
2024-06-14 15:30:24 +08:00
</template>
</el-table-column>
2024-07-19 17:54:42 +08:00
<el-table-column
label="执行时间"
align="center"
prop="executeTime"
width="80"
>
2024-07-05 14:52:44 +08:00
<template slot-scope="scope">
<span>{{ parseTime(scope.row.executeTime, "{y}-{m}-{d}") }}</span>
</template>
2024-06-14 15:30:24 +08:00
</el-table-column>
2024-07-05 14:52:44 +08:00
<!-- <el-table-column label="随访模板" align="center" prop="templateName" width="110">
</el-table-column> -->
2024-07-19 17:54:42 +08:00
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
>
2024-06-14 15:30:24 +08:00
<template slot-scope="scope">
2024-07-19 17:54:42 +08:00
<el-button
v-if="queryParams.nodeExecuteStatus == 'UNEXECUTED'"
size="mini"
type="text"
icon="el-icon-bank-card"
@click="handleUpdate(scope.row)"
>处理</el-button
>
<el-button
v-if="queryParams.nodeExecuteStatus == 'EXECUTED'"
size="mini"
type="text"
icon="el-icon-notebook-2"
@click="handleadtail(scope.row)"
>详情</el-button
>
2024-06-14 15:30:24 +08:00
</template>
</el-table-column>
</el-table>
</div>
2024-06-24 14:42:46 +08:00
<!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize" @pagination="getList" /> -->
2024-07-19 17:54:42 +08:00
<myPagination
v-show="total > 0"
:total="total"
:pageSize="queryParams.pageSize"
:indexFromWrap="queryParams.pageNum"
@updateCPage="updateCPage"
></myPagination>
2024-04-03 11:12:02 +08:00
</div>
</template>
2024-04-23 09:59:19 +08:00
<script>
2024-04-03 11:12:02 +08:00
import { manualFollowUpList } from "@/api/system/followup"
import { usergetList } from "@/api/unitconfig/patientConfiguration";
import { getAge } from "@/utils/age";
import {
selectAgencyList, getAgencyList
} from "@/api/manage/selectAgencyList";
export default {
2024-04-10 15:43:06 +08:00
name: "Followup22",
2024-07-05 11:26:46 +08:00
dicts: ["visit_method"],
2024-04-03 11:12:02 +08:00
data() {
return {
2024-06-14 15:30:24 +08:00
maxTableHeight: undefined,
2024-04-03 11:12:02 +08:00
// 随访时间
intentionalTime: [],
// 门诊
mzTime: [],
// 入院
ryTime: [],
//医院list
hospitalAgencylist: [],
// 院区list
campusAgencylist: [],
//科室list
departmentlist: [],
//病区list
wardlist: [],
// 主治医生
attendingPhysicianlist: [],
// 遮罩层
loading: true,
// 选中数组
ids: [],
// 非单个禁用
single: true,
// 非多个禁用
multiple: true,
// 显示搜索条件
showSearch: true,
// 总条数
total: 0,
// 患者管理任务执行记录表格数据
taskExecuteRecordList: [],
// 弹出层标题
title: "",
// 是否显示弹出层
open: false,
// 查询参数
2024-07-19 17:54:42 +08:00
timeSignshow: true,
2024-04-03 11:12:02 +08:00
queryParams: {
pageNum: 1,
pageSize: 10,
2024-07-19 17:54:42 +08:00
timeSign: 'TODAY',
2024-04-10 15:43:06 +08:00
nodeExecuteStatus: 'UNEXECUTED',
2024-04-03 11:12:02 +08:00
followStartTime: null,
followEndTime: null,
clinicalStartTime: null,
clinicalEndTime: null,
admissionEndTime: null,
admissionStartTime: null,
mainDiagnosis: null,
visitSerialNumber: null,
attendingPhysicianId: null,
patientId: null,
2024-04-15 09:23:04 +08:00
suitRange: null,
2024-04-03 11:12:02 +08:00
manageRouteId: null,
manageRouteNodeId: null,
patientName: null,
startDate: null,
endDate: null,
manageRouteName: null,
manageRouteNodeName: null,
taskContent: null,
executeTime: null,
executePerson: null,
executeType: null,
executeRemark: null,
hospitalAgencyId: null,
campusAgencyId: null,
departmentId: null,
wardId: null,
},
// 表单参数
form: {},
2024-04-09 16:20:00 +08:00
visitoptions: [
{
value: 'IN_THE_HOSPITAL',
label: '在院'
}, {
value: 'OUTPATIENT_SERVICE',
label: '门诊'
}, {
value: 'DISCHARGE',
label: '出院'
},
],
2024-04-03 11:12:02 +08:00
// 表单校验
// rules: {
// patientId: [
// { required: true, message: "患者表id不能为空", trigger: "blur" },
// ],
// },
};
},
created() {
2024-07-01 14:09:00 +08:00
if (localStorage.getItem('followupquery')) {
this.queryParams = JSON.parse(localStorage.getItem('followupquery'))
2024-07-03 14:56:34 +08:00
this.queryParams.hospitalAgencyId = undefined
this.queryParams.campusAgencyId = undefined
this.queryParams.departmentId = undefined
2024-06-28 17:05:57 +08:00
}
2024-04-03 11:12:02 +08:00
this.getList();
this.selectAgencyinfo();
},
2024-06-14 15:30:24 +08:00
mounted() {
this.getMaxTableHeight()
this.screenChange()
},
2024-04-03 11:12:02 +08:00
methods: {
2024-07-19 17:54:42 +08:00
changeswitch(e) {
if (e == true) {
this.queryParams.timeSign = 'TODAY'
this.getList()
} else {
this.queryParams.timeSign = 'WHOLE'
this.getList()
}
},
2024-06-24 14:42:46 +08:00
updateCPage(index, size) {
this.queryParams.pageNum = index
this.queryParams.pageSize = size
this.getList();
},
2024-04-10 15:43:06 +08:00
handleClick(tab, event) {
2024-06-28 17:05:57 +08:00
this.intentionalTime = []
this.mzTime = []
this.ryTime = []
this.queryParams.dischargeStartTime = null
2024-04-23 09:59:19 +08:00
this.queryParams.dischargeEndTime = null
this.queryParams.clinicalStartTime = null
this.queryParams.clinicalEndTime = null
this.queryParams.followStartTime = null
this.queryParams.followEndTime = null
this.queryParams.admissionEndTime = null
this.queryParams.admissionStartTime = null
this.queryParams.mainDiagnosis = null
this.queryParams.visitSerialNumber = null
this.queryParams.attendingPhysicianId = null
this.queryParams.suitRange = null
this.queryParams.patientName = null
this.queryParams.hospitalAgencyId = null
this.queryParams.campusAgencyId = null
this.queryParams.departmentId = null
this.queryParams.wardId = null
this.queryParams.patientPhone = null
2024-07-19 17:54:42 +08:00
if (this.queryParams.nodeExecuteStatus == 'EXECUTED') {
this.queryParams.timeSign = null
} else {
this.queryParams.timeSign = 'TODAY'
}
console.log(this.queryParams.nodeExecuteStatus, 'nodeExecuteStatus')
2024-04-23 09:59:19 +08:00
this.getList();
2024-04-10 15:43:06 +08:00
},
2024-04-09 16:20:00 +08:00
change(e) {
if (e == 'DISCHARGE') {
this.queryParams.clinicalStartTime = null
this.queryParams.clinicalEndTime = null
} else if (e == 'OUTPATIENT_SERVICE') {
this.queryParams.dischargeStartTime = null
this.queryParams.dischargeEndTime = null
2024-04-10 15:43:06 +08:00
} else {
2024-04-09 16:20:00 +08:00
this.queryParams.dischargeStartTime = null
this.queryParams.dischargeEndTime = null
this.queryParams.clinicalStartTime = null
this.queryParams.clinicalEndTime = null
}
},
2024-04-03 11:12:02 +08:00
//主治医生
usergetListinfo() {
usergetList({
2024-04-29 15:03:51 +08:00
hospitalAgencyId: this.queryParams.hospitalAgencyId,
2024-04-03 11:12:02 +08:00
postName: 'DOCTOR'
}).then(res => {
this.attendingPhysicianlist = res.data
})
},
//获取下级单位
getAgencyListinfo(nodeType, id) {
let query = {
nodeType: nodeType,
}
if (nodeType == 'HOSPITAL') {
query.hospitalId = id
} else if (nodeType == 'CAMPUS') {
query.campusId = id
} else if (nodeType == 'DEPARTMENT') {
query.departmentId = id
}
getAgencyList(query).then(res => {
if (nodeType == 'HOSPITAL') {
this.campusAgencylist = res.data.campusList
this.departmentlist = res.data.departmentList
} else if (nodeType == 'CAMPUS') {
this.departmentlist = res.data.departmentList
}
this.wardlist = res.data.wardList
})
},
//选中医院获取院区
changehospitalAgency(id) {
this.getAgencyListinfo('HOSPITAL', id)
this.queryParams.campusAgencyId = null
this.queryParams.departmentId = null
this.queryParams.wardId = null
this.queryParams.attendingPhysicianId = null
// })
//医生
this.usergetListinfo();
2024-07-03 14:56:34 +08:00
this.getMaxTableHeight();
2024-04-03 11:12:02 +08:00
},
//选中院区获取科室
changecampusAgency(id) {
this.getAgencyListinfo('CAMPUS', id)
this.queryParams.departmentId = null
this.queryParams.wardId = null
// })
},
//选中科室获取病区
changedepartment(id) {
this.getAgencyListinfo('DEPARTMENT', id)
// let query = {
// nodeType: 'WARD',
// parentDepartmentId: id,
// }
// getDepartmentList(query).then(res => {
// this.wardlist = res.data
this.queryParams.wardId = null
// })
},
//清空医院
clearhospitalAgency() {
this.queryParams.campusAgencyId = null
this.queryParams.departmentId = null
this.queryParams.wardId = null
this.queryParams.attendingPhysicianId = null
},
//清空院区
clearcampusAgency() {
this.queryParams.departmentId = null
this.queryParams.wardId = null
this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId)
},
//清空科室
cleardepartment() {
this.queryParams.wardId = null
2024-04-23 10:08:30 +08:00
if (this.queryParams.departmentId) {
this.getAgencyListinfo('DEPARTMENT', this.queryParams.departmentId)
} else if (this.queryParams.campusAgencyId) {
this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId)
} else if (this.queryParams.hospitalAgencyId) {
this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId)
}
2024-04-03 11:12:02 +08:00
},
//获取医院list
selectAgencyinfo() {
let query = {
agencyStatus: "ON",
nodeType: "HOSPITAL",
};
selectAgencyList(query).then((res) => {
this.hospitalAgencylist = res.data;
});
},
/** 查询患者管理任务执行记录列表 */
getList() {
this.loading = true;
manualFollowUpList(this.queryParams).then((response) => {
2024-07-01 14:09:00 +08:00
localStorage.setItem('followupquery', JSON.stringify(this.queryParams))
2024-04-03 11:12:02 +08:00
this.taskExecuteRecordList = response.rows;
this.total = response.total;
this.loading = false;
});
},
// 取消按钮
cancel() {
this.open = false;
this.reset();
},
// 表单重置
reset() {
this.form = {
2024-07-19 17:54:42 +08:00
nodeExecuteStatus: '',
2024-04-03 11:12:02 +08:00
id: null,
patientId: null,
manageRouteId: null,
manageRouteNodeId: null,
patientName: null,
manageRouteName: null,
manageRouteNodeName: null,
taskContent: null,
executeTime: null,
executePerson: null,
executeType: null,
executeRemark: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null,
};
this.resetForm("form");
},
// 随访时间
chooseTime() {
if (this.intentionalTime == null) {
this.intentionalTime = [];
this.queryParams.followStartTime = null
this.queryParams.followEndTime = null
} else {
this.queryParams.followStartTime = this.intentionalTime[0]
2024-04-09 16:20:00 +08:00
this.queryParams.followEndTime = this.intentionalTime[1]
2024-04-03 11:12:02 +08:00
}
},
// 门诊
2024-04-09 16:20:00 +08:00
mzchange() {
2024-04-03 11:12:02 +08:00
if (this.mzTime == null) {
this.mzTime = [];
this.queryParams.clinicalStartTime = null
this.queryParams.clinicalEndTime = null
} else {
2024-04-09 16:20:00 +08:00
console.log(this.queryParams, '-----')
2024-04-15 09:23:04 +08:00
if (!this.queryParams.suitRange || this.queryParams.suitRange == 'IN_THE_HOSPITAL') {
2024-04-09 16:20:00 +08:00
this.queryParams.clinicalStartTime = this.mzTime[0]
this.queryParams.clinicalEndTime = this.mzTime[1]
this.queryParams.dischargeStartTime = this.queryParams.clinicalStartTime
this.queryParams.dischargeEndTime = this.queryParams.clinicalEndTime
2024-04-15 09:23:04 +08:00
} else if (this.queryParams.suitRange == 'DISCHARGE') {
2024-04-09 16:20:00 +08:00
this.queryParams.dischargeStartTime = this.mzTime[0]
this.queryParams.dischargeEndTime = this.mzTime[1]
this.queryParams.clinicalStartTime = null
this.queryParams.clinicalEndTime = null
2024-04-15 09:23:04 +08:00
} else if (this.queryParams.suitRange == 'OUTPATIENT_SERVICE') {
2024-04-09 16:20:00 +08:00
this.queryParams.dischargeStartTime = null
this.queryParams.dischargeEndTime = null
this.queryParams.clinicalStartTime = this.mzTime[0]
this.queryParams.clinicalEndTime = this.mzTime[1]
}
2024-04-03 11:12:02 +08:00
}
},
// 入院
2024-04-09 16:20:00 +08:00
rychange() {
2024-04-03 11:12:02 +08:00
if (this.ryTime == null) {
this.ryTime = [];
this.queryParams.admissionStartTime = null
this.queryParams.admissionEndTime = null
} else {
this.queryParams.admissionStartTime = this.ryTime[0]
this.queryParams.admissionEndTime = this.ryTime[1]
}
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
2024-07-19 17:54:42 +08:00
// 未执行
if (this.queryParams.nodeExecuteStatus == 'UNEXECUTED') {
this.queryParams = {
2024-04-03 16:42:11 +08:00
pageNum: 1,
pageSize: 10,
2024-04-10 15:43:06 +08:00
nodeExecuteStatus: 'UNEXECUTED',
2024-07-19 17:54:42 +08:00
timeSign:"today",
2024-04-03 16:42:11 +08:00
followStartTime: null,
followEndTime: null,
clinicalStartTime: null,
clinicalEndTime: null,
admissionEndTime: null,
admissionStartTime: null,
mainDiagnosis: null,
visitSerialNumber: null,
attendingPhysicianId: null,
patientId: null,
2024-04-15 09:23:04 +08:00
suitRange: null,
2024-04-03 16:42:11 +08:00
manageRouteId: null,
manageRouteNodeId: null,
patientName: null,
startDate: null,
endDate: null,
manageRouteName: null,
manageRouteNodeName: null,
taskContent: null,
executeTime: null,
executePerson: null,
executeType: null,
executeRemark: null,
hospitalAgencyId: null,
campusAgencyId: null,
departmentId: null,
wardId: null,
2024-07-01 14:09:00 +08:00
}
2024-07-19 17:54:42 +08:00
this.timeSignshow = true
} else {
this.queryParams = {
pageNum: 1,
pageSize: 10,
nodeExecuteStatus: 'EXECUTED',
followStartTime: null,
followEndTime: null,
clinicalStartTime: null,
clinicalEndTime: null,
admissionEndTime: null,
admissionStartTime: null,
mainDiagnosis: null,
visitSerialNumber: null,
attendingPhysicianId: null,
patientId: null,
suitRange: null,
manageRouteId: null,
manageRouteNodeId: null,
patientName: null,
startDate: null,
endDate: null,
manageRouteName: null,
manageRouteNodeName: null,
taskContent: null,
executeTime: null,
executePerson: null,
executeType: null,
executeRemark: null,
hospitalAgencyId: null,
campusAgencyId: null,
departmentId: null,
wardId: null,
}
// this.timeSignshow=true
// this.queryParams.nodeExecuteStatus = 'EXECUTED'
}
2024-07-01 14:09:00 +08:00
this.handleQuery();
2024-04-03 11:12:02 +08:00
this.intentionalTime = [];
this.mzTime = [];
this.ryTime = [];
},
// 多选框选中数据
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加患者管理任务执行记录";
},
2024-04-10 15:43:06 +08:00
/** 处理按钮操作 */
2024-04-03 11:12:02 +08:00
handleUpdate(row) {
this.$router.push({
path: "/task/followupsee",
query: {
2024-07-01 14:09:00 +08:00
path: "/task/followup",
2024-04-03 11:12:02 +08:00
patientId: row.patientId,
2024-07-11 17:08:32 +08:00
taskNodeType: row.taskNodeType,
2024-04-09 16:20:00 +08:00
templateId: row.templateId,
2024-04-03 11:12:02 +08:00
cardNo: row.cardNo,
patientName: row.patientName,
2024-04-09 16:20:00 +08:00
manageRouteName: row.manageRouteName,
2024-04-10 15:43:06 +08:00
manageRouteNodeName: row.routeNodeName,
2024-04-03 11:12:02 +08:00
patientPhone: row.patientPhone,
sex: row.sex,
birthDate: row.birthDate,
familyMemberPhone: row.familyMemberPhone,
address: row.address,
patientSource: row.patientSource,
createTime: row.createTime,
age: row.birthDate ? getAge(row.birthDate) : "",
2024-04-09 16:20:00 +08:00
manageRouteId: row.manageRouteId,
manageRouteNodeId: row.manageRouteNodeId,
2024-04-23 09:59:19 +08:00
visitRecordId: row.visitRecordId,
2024-04-10 15:43:06 +08:00
departmentId: row.departmentId,
departmentName: row.departmentName,
diseaseTypeId: row.diseaseTypeId ? row.diseaseTypeId : null,
diseaseTypeName: row.diseaseTypeName ? row.diseaseTypeName : null,
2024-07-01 14:09:00 +08:00
followTemplateId: row.followTemplateId ? row.followTemplateId : null,
phoneId: row.phoneId ? row.phoneId : null,
2024-04-03 11:12:02 +08:00
},
});
2024-04-10 15:43:06 +08:00
},
// 详情
2024-04-12 10:49:01 +08:00
handleadtail(row) {
this.$router.push({
path: "/task/followupdetails",
query: {
2024-07-01 14:09:00 +08:00
path: "/task/followup",
2024-04-12 10:49:01 +08:00
patientId: row.patientId,
2024-07-11 17:08:32 +08:00
taskNodeType: row.taskNodeType,
2024-04-12 10:49:01 +08:00
templateId: row.templateId,
2024-04-23 09:59:19 +08:00
manageRouteId: row.manageRouteId,
2024-06-17 18:07:15 +08:00
manageRouteNodeId: row.manageRouteNodeId,
2024-04-23 09:59:19 +08:00
visitRecordId: row.visitRecordId,
taskExecuteRecordId: row.taskExecuteRecordId,
routeHandleRemark: row.routeHandleRemark ? row.routeHandleRemark : null,
2024-04-12 10:49:01 +08:00
},
});
2024-04-03 11:12:02 +08:00
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.id != null) {
updateTaskExecuteRecord(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addTaskExecuteRecord(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal
.confirm(
'是否确认删除患者管理任务执行记录编号为"' + ids + '"的数据项?'
)
.then(function () {
return delTaskExecuteRecord(ids);
})
.then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
})
.catch(() => { });
},
/** 导出按钮操作 */
handleExport() {
this.download(
"system/taskExecuteRecord/export",
{
...this.queryParams,
},
`taskExecuteRecord_${new Date().getTime()}.xlsx`
);
},
2024-06-14 15:30:24 +08:00
// 获取表格最高高度
getMaxTableHeight() {
const windowInnerHeight = window.innerHeight // 屏幕可视高度
const layoutDiv = this.$refs.layout
2024-06-16 15:31:29 +08:00
const formDiv = this.$refs.topform
2024-06-14 15:30:24 +08:00
this.maxTableHeight =
windowInnerHeight - 134 - 54 -
this.getBoxPadding(layoutDiv) -
this.getBoxHeight(formDiv)
},
// 屏幕resize监听
screenChange() {
// 屏幕resize监听事件一旦屏幕宽高发生变化就会执行resize
window.addEventListener('resize', this.getMaxTableHeight, true)
// 将屏幕监听事件移除
// 这步是必须的。离开页面时不移除,再返回,或者进入到别的有相同元素的页面会报错
// 或者将这里的方法直接写在beforeDestroy函数中也可以
this.$once('hook:beforeDestroy', () => {
window.removeEventListener('resize', this.getMaxTableHeight, true)
})
},
2024-04-03 11:12:02 +08:00
},
};
2024-04-23 09:59:19 +08:00
</script>
2024-06-14 15:30:24 +08:00
<style lang="scss" scoped>
::v-deep .el-table {
overflow: auto;
}
.app-container {
padding-top: 0 !important;
}
</style>