This commit is contained in:
2024-04-23 09:59:19 +08:00
parent 32588d0060
commit bafbcd541b
6 changed files with 135 additions and 371 deletions

View File

@ -353,6 +353,15 @@ export default {
},
/** 提交按钮 */
submitForm() {
if (this.form.hospitalAgencyId && this.hospitalAgencylist?.length > 0) {
this.form.hospitalAgencyName = this.hospitalAgencylist.find(e => e.id == this.form.hospitalAgencyId)?.agencyName
}
if (this.form.campusAgencyId && this.form_campusAgencylist?.length > 0) {
this.form.campusAgencyName = this.form_campusAgencylist.find(e => e.id == this.form.campusAgencyId)?.agencyName
}
if (this.form.departmentId && this.form_departmentlist?.length > 0) {
this.form.departmentName = this.form_departmentlist.find(e => e.id == this.form.departmentId)?.departmentName
}
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
@ -487,20 +496,12 @@ export default {
if (type) {
this.form.departmentId = null
this.form.wardId = null
this.getAgencyListinfo('HOSPITAL', this.form.hospitalAgencyId, type)
} else {
this.queryParams.departmentId = null
this.queryParams.wardId = null
this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId)
}
this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId, type)
},
//
cleardepartment(type) {
if (type) {
this.form.wardId = null
} else {
this.queryParams.wardId = null
}
this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId, type)
},
//
causegetinfo() {

View File

@ -637,7 +637,7 @@ export default {
if (this.form.departmentId && this.form_departmentlist?.length > 0) {
this.form.departmentName = this.form_departmentlist.find(e => e.id == this.form.departmentId)?.departmentName
}
if (this.form.hospitalAgencyId && this.form_wardlist?.length > 0) {
if (this.form.wardId && this.form_wardlist?.length > 0) {
this.form.wardName = this.form_wardlist.find(e => e.id == this.form.wardId)?.departmentName
}
if (this.form.certificateIssuingDoctorId && this.form_attendingPhysicianlist?.length > 0) {
@ -833,20 +833,22 @@ export default {
if (type) {
this.form.departmentId = null
this.form.wardId = null
this.getAgencyListinfo('HOSPITAL', this.form.hospitalAgencyId, type)
} else {
this.queryParams.departmentId = null
this.queryParams.wardId = null
this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId)
}
this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId, type)
},
//
cleardepartment(type) {
if (type) {
this.form.wardId = null
this.getAgencyListinfo('CAMPUS', this.form.campusAgencyId, type)
} else {
this.queryParams.wardId = null
this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId)
}
this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId, type)
},
/** 下载模板操作 */
importTemplate() {

View File

@ -559,7 +559,7 @@ export default {
})
},
//
getAgencyListinfo(nodeType, id, type) {
getAgencyListinfo(nodeType, id) {
let query = {
nodeType: nodeType,
}
@ -571,15 +571,6 @@ export default {
query.departmentId = id
}
getAgencyList(query).then(res => {
if (type) {
if (nodeType == 'HOSPITAL') {
this.form_campusAgencylist = res.data.campusList
this.form_departmentlist = res.data.departmentList
} else if (nodeType == 'CAMPUS') {
this.form_departmentlist = res.data.departmentList
}
this.form_wardlist = res.data.wardList
} else {
if (nodeType == 'HOSPITAL') {
this.campusAgencylist = res.data.campusList
}
@ -587,100 +578,62 @@ export default {
this.departmentlist = res.data.departmentList
}
this.wardlist = res.data.wardList
}
})
},
//
changehospitalAgency(id, type, typetwo) {
this.getAgencyListinfo('HOSPITAL', id, type)
changehospitalAgency(id) {
this.getAgencyListinfo('HOSPITAL', id)
// let query = {
// agencyStatus: 'ON',
// nodeType: 'CAMPUS',
// parentId: id,
// }
// selectAgencyList(query).then(res => {
if (type) {
if (!typetwo) {
this.form.campusAgencyId = null
this.form.departmentId = null
this.form.wardId = null
this.form.certificateIssuingDoctorId = null
}
} else {
this.queryParams.campusAgencyId = null
this.queryParams.departmentId = null
this.queryParams.wardId = null
this.queryParams.certificateIssuingDoctorId = null
}
// })
},
//
changecampusAgency(id, type, typetwo) {
this.getAgencyListinfo('CAMPUS', id, type)
changecampusAgency(id) {
this.getAgencyListinfo('CAMPUS', id)
// let query = {
// nodeType: 'DEPARTMENT',
// agencyId: id,
// }
// getDepartmentList(query).then(res => {
if (type) {
if (!typetwo) {
this.form.departmentId = null
this.form.wardId = null
}
} else {
this.queryParams.departmentId = null
this.queryParams.wardId = null
}
// })
},
//
changedepartment(id, type, typetwo) {
this.getAgencyListinfo('DEPARTMENT', id, type)
changedepartment(id) {
this.getAgencyListinfo('DEPARTMENT', id)
// let query = {
// nodeType: 'WARD',
// parentDepartmentId: id,
// }
// getDepartmentList(query).then(res => {
if (type) {
if (!typetwo) {
this.form.wardId = null
} else {
this.queryParams.wardId = null
}
}
// })
},
//
clearhospitalAgency(type) {
if (type) {
this.form.campusAgencyId = null
this.form.departmentId = null
this.form.wardId = null
} else {
clearhospitalAgency() {
this.queryParams.campusAgencyId = null
this.queryParams.departmentId = null
this.queryParams.wardId = null
}
},
//
clearcampusAgency(type) {
if (type) {
this.form.departmentId = null
this.form.wardId = null
} else {
clearcampusAgency() {
this.queryParams.departmentId = null
this.queryParams.wardId = null
}
this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId, type)
this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId)
},
//
cleardepartment(type) {
if (type) {
this.form.wardId = null
} else {
cleardepartment() {
this.queryParams.wardId = null
}
this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId, type)
this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId)
},
//
handleContinue(row) {

View File

@ -670,7 +670,7 @@ export default {
if (this.form.departmentId && this.form_departmentlist?.length > 0) {
this.form.departmentName = this.form_departmentlist.find(e => e.id == this.form.departmentId)?.departmentName
}
if (this.form.hospitalAgencyId && this.form_wardlist?.length > 0) {
if (this.form.wardId && this.form_wardlist?.length > 0) {
this.form.wardName = this.form_wardlist.find(e => e.id == this.form.wardId)?.departmentName
}
if (this.form.attendingPhysicianId && this.form_attendingPhysicianlist?.length > 0) {
@ -853,20 +853,22 @@ export default {
if (type) {
this.form.departmentId = null
this.form.wardId = null
this.getAgencyListinfo('HOSPITAL', this.form.hospitalAgencyId, type)
} else {
this.queryParams.departmentId = null
this.queryParams.wardId = null
this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId)
}
this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId, type)
},
//
cleardepartment(type) {
if (type) {
this.form.wardId = null
this.getAgencyListinfo('CAMPUS', this.form.campusAgencyId, type)
} else {
this.queryParams.wardId = null
this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId)
}
this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId, type)
},
/** 下载模板操作 */
importTemplate() {

View File

@ -790,7 +790,7 @@ export default {
if (this.form.departmentId && this.form_departmentlist?.length > 0) {
this.form.departmentName = this.form_departmentlist.find(e => e.id == this.form.departmentId)?.departmentName
}
if (this.form.hospitalAgencyId && this.form_wardlist?.length > 0) {
if (this.form.wardId && this.form_wardlist?.length > 0) {
this.form.wardName = this.form_wardlist.find(e => e.id == this.form.wardId)?.departmentName
}
if (this.form.attendingPhysicianId && this.form_attendingPhysicianlist?.length > 0) {
@ -990,20 +990,22 @@ export default {
if (type) {
this.form.departmentId = null
this.form.wardId = null
this.getAgencyListinfo('HOSPITAL', this.form.hospitalAgencyId, type)
} else {
this.queryParams.departmentId = null
this.queryParams.wardId = null
this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId)
}
this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId, type)
},
//
cleardepartment(type) {
if (type) {
this.form.wardId = null
this.getAgencyListinfo('CAMPUS', this.form.campusAgencyId, type)
} else {
this.queryParams.wardId = null
this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId)
}
this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId, type)
},
/** 下载模板操作 */
importTemplate() {

View File

@ -4,142 +4,49 @@
<el-tab-pane label="未执行" name="UNEXECUTED"></el-tab-pane>
<el-tab-pane label="已执行" name="EXECUTED"></el-tab-pane>
</el-tabs>
<el-form
:model="queryParams"
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
>
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
<el-form-item label="随访时间" prop="startDate">
<el-date-picker
v-model="intentionalTime"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
style="width: 300px"
value-format="yyyy-MM-dd"
end-placeholder="结束日期"
@change="chooseTime"
>
<el-date-picker v-model="intentionalTime" type="daterange" range-separator="" start-placeholder="开始日期"
style="width: 300px" value-format="yyyy-MM-dd" end-placeholder="结束日期" @change="chooseTime">
</el-date-picker>
</el-form-item>
<el-form-item label="姓名" prop="patientName">
<el-input
v-model="queryParams.patientName"
placeholder="请输入姓名"
clearable
@keyup.enter.native="handleQuery"
/>
<el-input v-model="queryParams.patientName" placeholder="请输入姓名" clearable @keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item label="电话" prop="patientPhone">
<el-input
v-model="queryParams.patientPhone"
placeholder="请输入电话"
clearable
@keyup.enter.native="handleQuery"
/>
<el-input v-model="queryParams.patientPhone" placeholder="请输入电话" clearable @keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item label="医院" prop="hospitalAgencyId">
<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"
>
<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">
</el-option>
</el-select>
</el-form-item>
<el-form-item
label="院区"
prop="campusAgencyId"
v-if="queryParams.hospitalAgencyId"
>
<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"
>
<el-form-item label="院区" prop="campusAgencyId" v-if="queryParams.hospitalAgencyId">
<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">
</el-option>
</el-select>
</el-form-item>
<el-form-item
label="科室"
prop="departmentId"
v-if="queryParams.hospitalAgencyId"
>
<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"
>
<el-form-item label="科室" prop="departmentId" v-if="queryParams.hospitalAgencyId">
<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">
</el-option>
</el-select>
</el-form-item>
<el-form-item
label="病区"
prop="wardId"
v-if="queryParams.hospitalAgencyId"
>
<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"
>
<el-form-item label="病区" prop="wardId" v-if="queryParams.hospitalAgencyId">
<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">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="就诊类型" prop="suitRange">
<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-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-option
v-for="dict in dict.type.visit_type"
@ -150,91 +57,41 @@
</el-select>
</el-form-item>
<el-form-item label="就诊流水号" prop="visitSerialNumber">
<el-input
v-model="queryParams.visitSerialNumber"
placeholder="请输入就诊流水号"
clearable
@keyup.enter.native="handleQuery"
/>
<el-input v-model="queryParams.visitSerialNumber" placeholder="请输入就诊流水号" clearable
@keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item label="门诊/出院时间" prop="intentionalTimeStart">
<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 @change="mzchange" v-model="mzTime" type="daterange" range-separator=""
start-placeholder="开始日期" style="width: 300px" value-format="yyyy-MM-dd" end-placeholder="结束日期">
</el-date-picker>
</el-form-item>
<el-form-item label="入院时间" prop="intentionalTimeStart">
<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 v-model="ryTime" type="daterange" range-separator="" start-placeholder="开始日期"
style="width: 300px" value-format="yyyy-MM-dd" end-placeholder="结束日期" @change="rychange">
</el-date-picker>
</el-form-item>
<el-form-item label="诊断" prop="mainDiagnosis">
<el-input
v-model="queryParams.mainDiagnosis"
placeholder="请选择诊断"
clearable
@keyup.enter.native="handleQuery"
/>
<el-input v-model="queryParams.mainDiagnosis" placeholder="请选择诊断" clearable @keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item
label="主治医生"
prop="attendingPhysicianId"
v-if="queryParams.hospitalAgencyId"
>
<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"
>
<el-form-item label="主治医生" prop="attendingPhysicianId" v-if="queryParams.hospitalAgencyId">
<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">
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<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
>
<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>
</el-form-item>
</el-form>
<el-table
v-loading="loading"
:data="taskExecuteRecordList"
@selection-change="handleSelectionChange"
>
<el-table v-loading="loading" :data="taskExecuteRecordList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="姓名" align="center" prop="patientName" />
<el-table-column label="电话" align="center" prop="patientPhone" />
@ -249,62 +106,31 @@
<el-table-column label="科室名称" align="center" prop="departmentName" />
<el-table-column label="病区名称" align="center" prop="wardName" />
<el-table-column
label="门诊/住院号"
align="center"
prop="inHospitalNumber"
width="100"
/>
<el-table-column
label="就诊流水号"
align="center"
prop="visitSerialNumber"
width="100"
/>
<el-table-column label="门诊/住院号" align="center" prop="inHospitalNumber" width="100" />
<el-table-column label="就诊流水号" align="center" prop="visitSerialNumber" width="100" />
<el-table-column label="诊断" align="center" prop="mainDiagnosis" />
<el-table-column label="手术名称" align="center" prop="surgicalName" />
<el-table-column
label="主治医生"
align="center"
prop="attendingPhysicianName"
/>
<el-table-column label="主治医生" align="center" prop="attendingPhysicianName" />
<el-table-column label="就诊类型" align="center" prop="suitRange">
<template slot-scope="scope">
<span
>{{ scope.row.suitRange == "OUTPATIENT_SERVICE" ? "门诊" : "" }}
<span>{{ scope.row.suitRange == "OUTPATIENT_SERVICE" ? "门诊" : "" }}
{{ scope.row.suitRange == "IN_THE_HOSPITAL" ? "在院" : "" }}
{{ scope.row.suitRange == "DISCHARGE" ? "出院" : "" }}
</span>
</template></el-table-column
>
<el-table-column
label="入院时间"
align="center"
prop="admissionTime"
width="180"
>
</template></el-table-column>
<el-table-column label="入院时间" align="center" prop="admissionTime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.admissionTime, "{y}-{m}-{d}") }}</span>
</template>
</el-table-column>
<el-table-column
label="门诊/出院时间"
align="center"
prop="visitOrDischargeTime"
width="180"
>
<el-table-column label="门诊/出院时间" align="center" prop="visitOrDischargeTime" width="180">
<template slot-scope="scope">
<span>{{
parseTime(scope.row.visitOrDischargeTime, "{y}-{m}-{d}")
}}</span>
</template>
</el-table-column>
<el-table-column
label="随访时间"
align="center"
prop="executeTime"
width="180"
>
<el-table-column label="随访时间" align="center" prop="executeTime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.executeTime, "{y}-{m}-{d}") }}</span>
</template>
@ -313,44 +139,22 @@
<el-table-column label="随访模板" align="center" prop="templateName">
</el-table-column>
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
<template slot-scope="scope">
<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
>
<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>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
@pagination="getList" />
</div>
</template>
<script>
<script>
import { manualFollowUpList } from "@/api/system/followup"
import { usergetList } from "@/api/unitconfig/patientConfiguration";
@ -470,18 +274,18 @@ export default {
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
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
this.getList();
},
change(e) {
@ -771,7 +575,7 @@ export default {
age: row.birthDate ? getAge(row.birthDate) : "",
manageRouteId: row.manageRouteId,
manageRouteNodeId: row.manageRouteNodeId,
visitRecordId:row.visitRecordId,
visitRecordId: row.visitRecordId,
departmentId: row.departmentId,
departmentName: row.departmentName,
@ -789,11 +593,11 @@ export default {
patientId: row.patientId,
taskType: row.taskType,
templateId: row.templateId,
manageRouteId:row.manageRouteId,
manageRouteId: row.manageRouteId,
visitRecordId:row.visitRecordId,
taskExecuteRecordId:row.taskExecuteRecordId,
routeHandleRemark:row.routeHandleRemark?row.routeHandleRemark:null,
visitRecordId: row.visitRecordId,
taskExecuteRecordId: row.taskExecuteRecordId,
routeHandleRemark: row.routeHandleRemark ? row.routeHandleRemark : null,
},
});
console.log(row)
@ -857,4 +661,4 @@ export default {
},
},
};
</script>
</script>