修改
This commit is contained in:
parent
18396c1c84
commit
8d4c93d76e
157
src/views/manage/components/signingRecords.vue
Normal file
157
src/views/manage/components/signingRecords.vue
Normal file
@ -0,0 +1,157 @@
|
|||||||
|
<template>
|
||||||
|
<div class="header">
|
||||||
|
<div class="leftheader">
|
||||||
|
<div class="item" v-for="(item, index) in categorylist" :key="item.id" @click="clickcategory(item, index)"
|
||||||
|
:class="index == categoryindex ? 'selectitem' : ''">
|
||||||
|
<div class="time">{{ item.time }}
|
||||||
|
</div>
|
||||||
|
<div class="name">
|
||||||
|
{{ item.name }}
|
||||||
|
</div>
|
||||||
|
<div class="text">
|
||||||
|
{{ item.text }}
|
||||||
|
</div>
|
||||||
|
<el-tag class="type" size="mini">服务中</el-tag>
|
||||||
|
<!-- <el-tag class="type" size="mini" type="success">门诊</el-tag> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="rightheader">
|
||||||
|
<div class="richtext">
|
||||||
|
<el-descriptions title="基本信息" style="margin-top: 20px;">
|
||||||
|
<el-descriptions-item label="医院">kooriookami</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="科室">18100000000</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="签约时诊断">苏州市</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="院区">苏州市</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="病区">苏州市</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="审核后诊断">苏州市</el-descriptions-item>
|
||||||
|
</el-descriptions>
|
||||||
|
<el-descriptions title="签约信息" style="margin-top: 40px;">
|
||||||
|
<el-descriptions-item label="服务包">kooriookami</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="服务包缴费状态">18100000000</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="到期时间">苏州市</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="服务包价格">¥1188</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="服务时间">2024-02-19 00:00:00至2024-03-1823:59:59</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="服务周期">苏州市 1188 号</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="签约时间">2024-02-19 15:43:40</el-descriptions-item>
|
||||||
|
</el-descriptions>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "visitRecords",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
pickerOptions: {
|
||||||
|
disabledDate(time) {
|
||||||
|
return time.getTime() > Date.now(); //禁止选择今天以后的时间
|
||||||
|
},
|
||||||
|
},
|
||||||
|
//选择时间区间
|
||||||
|
datePickerStart: "",
|
||||||
|
datePickerEnd: "",
|
||||||
|
//右侧标题选中
|
||||||
|
recordindex: 0,
|
||||||
|
//左侧类型选中
|
||||||
|
categoryindex: 0,
|
||||||
|
//左侧选中的item
|
||||||
|
categoryItem: {},
|
||||||
|
//左侧list
|
||||||
|
categorylist: [{
|
||||||
|
id: 1,
|
||||||
|
name: '冠状动脉粥样硬化性心脏病',
|
||||||
|
text: '冠状动脉粥样硬化性心脏病',
|
||||||
|
time: '2022-02-02 10:33:00'
|
||||||
|
}, {
|
||||||
|
id: 2,
|
||||||
|
name: '冠状动脉粥样硬化性心脏病',
|
||||||
|
text: '冠状动脉粥样硬化性心脏病',
|
||||||
|
time: '2022-02-02 10:33:00'
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.categoryItem = this.categorylist[0]
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
clickcategory(item, index) {
|
||||||
|
this.categoryindex = index
|
||||||
|
this.categoryItem = item
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.header {
|
||||||
|
background-color: #fff !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
.rightheader {
|
||||||
|
width: 75%;
|
||||||
|
padding-top: 20px;
|
||||||
|
border-left: 3px solid #DFE4ED;
|
||||||
|
|
||||||
|
.richtext {
|
||||||
|
width: 90%;
|
||||||
|
margin: 0 auto;
|
||||||
|
height: 450px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.leftheader {
|
||||||
|
margin-top: 20px;
|
||||||
|
width: 25%;
|
||||||
|
height: 450px;
|
||||||
|
overflow: scroll;
|
||||||
|
// 隐藏表头的滚动条
|
||||||
|
overflow-x: hidden !important;
|
||||||
|
|
||||||
|
.selectitem {
|
||||||
|
background-color: #D2E9FC;
|
||||||
|
border-left: 2px solid #1890ff !important;
|
||||||
|
border-bottom: 1px solid #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item {
|
||||||
|
height: 120px;
|
||||||
|
padding: 25px 10px;
|
||||||
|
position: relative;
|
||||||
|
border-left: 2px solid #fff;
|
||||||
|
border-bottom: 1px solid #E7E7E7;
|
||||||
|
|
||||||
|
.type {
|
||||||
|
position: absolute;
|
||||||
|
right: 10px;
|
||||||
|
top: 20px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text {
|
||||||
|
height: 20px;
|
||||||
|
line-height: 20px;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #999999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.name {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.time {
|
||||||
|
line-height: 20px;
|
||||||
|
height: 20px;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
524
src/views/manage/preHospitalized/index.vue
Normal file
524
src/views/manage/preHospitalized/index.vue
Normal file
@ -0,0 +1,524 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="80px">
|
||||||
|
<el-form-item label="患者姓名" prop="patientName">
|
||||||
|
<el-input v-model="queryParams.patientName" placeholder="请输入患者姓名" clearable @keyup.enter.native="handleQuery"
|
||||||
|
style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="患者电话" prop="patientPhone">
|
||||||
|
<el-input v-model="queryParams.patientPhone" placeholder="请输入患者电话" clearable @keyup.enter.native="handleQuery"
|
||||||
|
style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="预约时间" prop="appointmentDateStart">
|
||||||
|
<el-date-picker v-model="appointmentDate" 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="visitTime">
|
||||||
|
<el-date-picker v-model="queryParams.visitTime" value-format="yyyy-MM-dd" style="width:300px" type="daterange"
|
||||||
|
range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="入院时间" prop="admissionDate">
|
||||||
|
<el-date-picker v-model="queryParams.admissionDate" value-format="yyyy-MM-dd" style="width:300px" type="daterange"
|
||||||
|
range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
|
||||||
|
</el-form-item> -->
|
||||||
|
<!-- ,门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL -->
|
||||||
|
<!-- <el-form-item label="就诊方式" prop="visitMethod">
|
||||||
|
<el-select v-model="queryParams.visitMethod" placeholder="请选择就诊方式" clearable style="width:200px">
|
||||||
|
<el-option v-for="dict in dict.type.visit_method" :key="dict.value" :label="dict.label" :value="dict.value" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item> -->
|
||||||
|
<!-- <el-form-item label="诊断" prop="mainDiagnosis">
|
||||||
|
<el-input v-model="queryParams.mainDiagnosis" placeholder="请选择诊断" clearable style="width:200px"
|
||||||
|
@keyup.enter.native="handleQuery" />
|
||||||
|
</el-form-item> -->
|
||||||
|
<el-form-item label="医院" prop="hospitalAgencyId">
|
||||||
|
<el-input v-model="queryParams.hospitalAgencyId" placeholder="请输入医院名称" clearable style="width:200px"
|
||||||
|
@keyup.enter.native="handleQuery" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="院区" prop="campusAgencyId">
|
||||||
|
<el-input v-model="queryParams.campusAgencyId" placeholder="请输入院区名称" clearable style="width:200px"
|
||||||
|
@keyup.enter.native="handleQuery" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="科室" prop="departmentId">
|
||||||
|
<el-input v-model="queryParams.departmentId" placeholder="请输入科室名称" clearable style="width:200px"
|
||||||
|
@keyup.enter.native="handleQuery" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="病区" prop="wardId">
|
||||||
|
<el-input v-model="queryParams.wardId" placeholder="请输入病区名称" clearable style="width:200px"
|
||||||
|
@keyup.enter.native="handleQuery" />
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="出生日期" prop="birthDate">
|
||||||
|
<el-date-picker clearable v-model="queryParams.birthDate" type="date" value-format="yyyy-MM-dd"
|
||||||
|
style="width:200px" placeholder="请选择出生日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item> -->
|
||||||
|
<!-- 预住院患者:PRE_HOSPITALIZED_PATIENT,在院患者:IN_HOSPITAL_PATIENT,门诊患者:OUTPATIENT,出院患者:DISCHARGED_PATIENT,签约患者:CONTRACTED_PATIENT -->
|
||||||
|
<!-- <el-form-item label="患者类型" prop="patientType">
|
||||||
|
<el-select v-model="queryParams.patientType" placeholder="请选择患者类型" clearable style="width:200px">
|
||||||
|
<el-option v-for="dict in dict.type.patient_type" :key="dict.value" :label="dict.label" :value="dict.value" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item> -->
|
||||||
|
<el-form-item label="开证医生" prop="certificateIssuingDoctor">
|
||||||
|
<el-input v-model="queryParams.certificateIssuingDoctor" placeholder="请输入主治医生" clearable style="width:200px"
|
||||||
|
@keyup.enter.native="handleQuery" />
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="手术名称" prop="surgicalName">
|
||||||
|
<el-input v-model="queryParams.surgicalName" placeholder="请输入手术名称" clearable @keyup.enter.native="handleQuery"
|
||||||
|
style="width:200px" />
|
||||||
|
</el-form-item> -->
|
||||||
|
<!-- ,微信小程序:WE_CHAT_APPLET,微信公众号:WE_CHAT_OFFICIAL_ACCOUNT,管理端:MANAGE_END -->
|
||||||
|
<!-- <el-form-item label="患者来源" prop="patientSource">
|
||||||
|
<el-select v-model="queryParams.patientSource" placeholder="请选择就诊方式" clearable style="width:200px">
|
||||||
|
<el-option v-for="dict in dict.type.patient_source" :key="dict.value" :label="dict.label" :value="dict.value" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item> -->
|
||||||
|
<!-- <el-form-item label="出院方式" prop="dischargeMethod">
|
||||||
|
<el-input v-model="queryParams.dischargeMethod" placeholder="请输入出院方式" clearable style="width:200px"
|
||||||
|
@keyup.enter.native="handleQuery" />
|
||||||
|
</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-form-item>
|
||||||
|
</el-form>
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
|
||||||
|
v-hasPermi="['manage:preHospitalized:add']">新增</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
|
||||||
|
v-hasPermi="['manage:preHospitalized:edit']">编辑</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
|
||||||
|
v-hasPermi="['manage:preHospitalized:remove']">删除</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button type="warning" plain icon="el-icon-upload2" size="mini" @click="handleExport">导入</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
<el-table v-loading="loading" :data="patientInfoList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" />
|
||||||
|
<el-table-column label="患者姓名" align="center" prop="patientName" />
|
||||||
|
<el-table-column label="患者电话" align="center" prop="patientPhone" width='120' />
|
||||||
|
<el-table-column label="性别" align="center" prop="sex">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.sex == 'MALE' ? '男' : '' }}
|
||||||
|
{{ scope.row.sex == 'FEMALE' ? '女' : '' }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="出生日期" align="center" prop="birthDate" width='130' />
|
||||||
|
<el-table-column label="年龄" align="center" prop="age" />
|
||||||
|
<el-table-column label="签约状态" align="center" prop="signStatus">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<dict-tag :options="dict.type.sign_status" :value="scope.row.signStatus" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="签约时间" align="center" prop="signTime" width='130'>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.signTime, '{y}-{m}-{d}') }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="开证医生" align="center" prop="certificateIssuingDoctor" />
|
||||||
|
<el-table-column label="诊断" align="center" prop="mainDiagnosis" />
|
||||||
|
<el-table-column label="就诊时间" align="center" prop="visitTime" width='130'>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.visitTime, '{y}-{m}-{d}') }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="就诊方式" align="center" prop="visitMethod">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<dict-tag :options="dict.type.visit_method" :value="scope.row.visitMethod" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="入院时间" align="center" prop="admissionDate" width='130' />
|
||||||
|
<el-table-column label="医院名称" align="center" prop="hospitalAgencyName" width='130' />
|
||||||
|
<el-table-column label="院区名称" align="center" prop="campusAgencyName" width='130' />
|
||||||
|
<el-table-column label="科室名称" align="center" prop="departmentName" width='130' />
|
||||||
|
<el-table-column label="病区名称" align="center" prop="wardName" width='130' />
|
||||||
|
<el-table-column label="住院号" align="center" prop="admissionNumber" width='130' />
|
||||||
|
<el-table-column label="门诊号" align="center" prop="outpatientNumber" width='130' />
|
||||||
|
<el-table-column label="主治医生" align="center" prop="attendingPhysician" />
|
||||||
|
<el-table-column label="出院方式" align="center" prop="dischargeMethod" />
|
||||||
|
<el-table-column label="患者来源" align="center" prop="patientSource">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<dict-tag :options="dict.type.patient_source" :value="scope.row.patientSource" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="住址" align="center" prop="address" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['manage:preHospitalized:edit']">编辑</el-button>
|
||||||
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['manage:preHospitalized:remove']">删除</el-button>
|
||||||
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleAuthRole(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" />
|
||||||
|
<!-- 添加或修改患者信息对话框 -->
|
||||||
|
<el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
|
||||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px" :inline="true">
|
||||||
|
<el-form-item label="患者姓名" prop="patientName">
|
||||||
|
<el-input v-model="form.patientName" placeholder="请输入患者姓名" style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="患者电话" prop="patientPhone">
|
||||||
|
<el-input v-model="form.patientPhone" placeholder="请输入患者电话" style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="家属电话" prop="familyMemberPhone">
|
||||||
|
<el-input v-model="form.familyMemberPhone" placeholder="请输入家属电话" style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="出生日期" prop="birthDate">
|
||||||
|
<el-date-picker clearable v-model="form.birthDate" style="width:200px" type="date" value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择出生日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="身份证号" prop="cardNo">
|
||||||
|
<el-input v-model="form.cardNo" placeholder="请输入身份证号" style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="住址" prop="address">
|
||||||
|
<el-input v-model="form.address" placeholder="请输入住址" style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="患者类型" prop="patientType">
|
||||||
|
<el-select v-model="form.patientType" placeholder="请选择患者类型" style="width:200px">
|
||||||
|
<el-option v-for="dict in dict.type.patient_type" :key="dict.value" :label="dict.label"
|
||||||
|
:value="dict.value"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="签约状态" prop="signStatus">
|
||||||
|
<el-select v-model="form.signStatus" placeholder="请选择签约状态" style="width:200px">
|
||||||
|
<el-option v-for="dict in dict.type.sign_status" :key="dict.value" :label="dict.label"
|
||||||
|
:value="dict.value"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="签约时间" prop="signTime">
|
||||||
|
<el-date-picker clearable v-model="form.signTime" type="date" value-format="yyyy-MM-dd" placeholder="请选择签约时间"
|
||||||
|
style="width:200px">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="开证医生" prop="certificateIssuingDoctor">
|
||||||
|
<el-input v-model="form.certificateIssuingDoctor" placeholder="请输入开证医生" style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="就诊方式" prop="visitMethod">
|
||||||
|
<el-select v-model="form.visitMethod" placeholder="请选择就诊方式" style="width:200px">
|
||||||
|
<el-option v-for="dict in dict.type.visit_method" :key="dict.value" :label="dict.label"
|
||||||
|
:value="dict.value"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="主要诊断" prop="mainDiagnosis">
|
||||||
|
<el-input v-model="form.mainDiagnosis" placeholder="请输入主要诊断" style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="主治医生" prop="attendingPhysician">
|
||||||
|
<el-input v-model="form.attendingPhysician" placeholder="请输入主治医生" style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="所属医院名称" prop="hospitalAgencyName">
|
||||||
|
<el-input v-model="form.hospitalAgencyName" placeholder="请输入所属医院名称" style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="所属院区名称" prop="campusAgencyName">
|
||||||
|
<el-input v-model="form.campusAgencyName" placeholder="请输入所属院区名称" style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="所属科室名称" prop="departmentName">
|
||||||
|
<el-input v-model="form.departmentName" placeholder="请输入所属科室名称" style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="所属病区名称" prop="wardName">
|
||||||
|
<el-input v-model="form.wardName" placeholder="请输入所属病区名称" style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="住院号" prop="admissionNumber">
|
||||||
|
<el-input v-model="form.admissionNumber" placeholder="请输入住院号" style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="责任护士" prop="responsibleNurse">
|
||||||
|
<el-input v-model="form.responsibleNurse" placeholder="请输入责任护士" style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="就诊流水号" prop="visitSerialNumber">
|
||||||
|
<el-input v-model="form.visitSerialNumber" placeholder="请输入就诊流水号" style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="手术名称" prop="surgicalName">
|
||||||
|
<el-input v-model="form.surgicalName" placeholder="请输入手术名称" style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="入院时间" prop="admissionDate">
|
||||||
|
<el-date-picker clearable v-model="form.admissionDate" type="date" value-format="yyyy-MM-dd" style="width:200px"
|
||||||
|
placeholder="请选择入院时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="出院时间" prop="dischargeDate">
|
||||||
|
<el-date-picker clearable v-model="form.dischargeDate" type="date" value-format="yyyy-MM-dd" style="width:200px"
|
||||||
|
placeholder="请选择出院时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="病历内容">
|
||||||
|
<editor v-model="form.medicalRecordContent" :min-height="192" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="预约资料组" prop="appointmentTreatmentGroup">
|
||||||
|
<el-input v-model="form.appointmentTreatmentGroup" placeholder="请输入预约资料组" style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="登记号" prop="registrationNo">
|
||||||
|
<el-input v-model="form.registrationNo" placeholder="请输入登记号" style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="登记日期" prop="registrationDate">
|
||||||
|
<el-date-picker clearable v-model="form.registrationDate" type="date" value-format="yyyy-MM-dd"
|
||||||
|
style="width:200px" placeholder="请选择登记日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="预约时间" prop="appointmentDate">
|
||||||
|
<el-date-picker clearable v-model="form.appointmentDate" type="date" value-format="yyyy-MM-dd"
|
||||||
|
style="width:200px" placeholder="请选择预约时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="门诊号" prop="outpatientNumber">
|
||||||
|
<el-input v-model="form.outpatientNumber" placeholder="请输入门诊号" style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="就诊时间" prop="visitTime">
|
||||||
|
<el-date-picker clearable v-model="form.visitTime" type="date" value-format="yyyy-MM-dd" placeholder="请选择就诊时间"
|
||||||
|
style="width:200px">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="出院方式" prop="dischargeMethod">
|
||||||
|
<el-input v-model="form.dischargeMethod" placeholder="请输入出院方式" style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="微信openid" prop="openId">
|
||||||
|
<el-input v-model="form.openId" placeholder="请输入微信openid" style="width:200px" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="患者来源" prop="patientSource">
|
||||||
|
<el-select v-model="form.patientSource" placeholder="请选择就诊方式" clearable style="width:200px">
|
||||||
|
<el-option v-for="dict in dict.type.patient_source" :key="dict.value" :label="dict.label"
|
||||||
|
:value="dict.value" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button @click="cancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listPatientInfo, getPatientInfo, delPatientInfo, addPatientInfo, updatePatientInfo } from "@/api/manage/patientInfo";
|
||||||
|
import { getAge } from "@/utils/age";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "PatientInfo",
|
||||||
|
dicts: ['patient_type', 'visit_method', 'sign_status', 'patient_source'],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 患者信息表格数据
|
||||||
|
patientInfoList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
appointmentDate: [],
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
appointmentDateStart: '',
|
||||||
|
appointmentDateEnd: '',
|
||||||
|
patientName: null,
|
||||||
|
patientPhone: null,
|
||||||
|
birthDate: null,
|
||||||
|
patientType: null,
|
||||||
|
visitMethod: null,
|
||||||
|
mainDiagnosis: null,
|
||||||
|
certificateIssuingDoctor: null,
|
||||||
|
hospitalAgencyId: null,
|
||||||
|
hospitalAgencyName: null,
|
||||||
|
campusAgencyId: null,
|
||||||
|
campusAgencyName: null,
|
||||||
|
departmentId: null,
|
||||||
|
departmentName: null,
|
||||||
|
wardId: null,
|
||||||
|
wardName: null,
|
||||||
|
surgicalName: null,
|
||||||
|
admissionDate: null,
|
||||||
|
outpatientNumber: null,
|
||||||
|
visitTime: null,
|
||||||
|
dischargeMethod: null,
|
||||||
|
patientSource: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 详情操作 */
|
||||||
|
handleAuthRole(row) {
|
||||||
|
this.$router.push({
|
||||||
|
path: "/patient/patientdetails",
|
||||||
|
query: {
|
||||||
|
patientId: row.id,
|
||||||
|
cardNo: row.cardNo,
|
||||||
|
patientName: row.patientName,
|
||||||
|
patientPhone: row.patientPhone,
|
||||||
|
sex: row.sex,
|
||||||
|
birthDate: row.birthDate,
|
||||||
|
familyMemberPhone: row.familyMemberPhone,
|
||||||
|
address: row.address,
|
||||||
|
patientSource: row.patientSource,
|
||||||
|
createTime: row.createTime,
|
||||||
|
age: getAge(row.birthDate)
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 查询患者信息列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
this.queryParams.patientType = 'PRE_HOSPITALIZED_PATIENT'
|
||||||
|
console.log(this.queryParams)
|
||||||
|
listPatientInfo(this.queryParams).then(response => {
|
||||||
|
response.rows.forEach(e => {
|
||||||
|
e.age = getAge(e.birthDate)
|
||||||
|
})
|
||||||
|
this.patientInfoList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
patientName: null,
|
||||||
|
patientPhone: null,
|
||||||
|
familyMemberPhone: null,
|
||||||
|
birthDate: null,
|
||||||
|
cardNo: null,
|
||||||
|
sex: null,
|
||||||
|
address: null,
|
||||||
|
patientType: null,
|
||||||
|
signStatus: null,
|
||||||
|
signTime: null,
|
||||||
|
certificateIssuingDoctor: null,
|
||||||
|
visitMethod: null,
|
||||||
|
mainDiagnosis: null,
|
||||||
|
attendingPhysician: null,
|
||||||
|
hospitalAgencyId: null,
|
||||||
|
campusAgencyId: null,
|
||||||
|
departmentId: null,
|
||||||
|
wardId: null,
|
||||||
|
admissionNumber: null,
|
||||||
|
responsibleNurse: null,
|
||||||
|
visitSerialNumber: null,
|
||||||
|
surgicalName: null,
|
||||||
|
admissionDate: null,
|
||||||
|
dischargeDate: null,
|
||||||
|
medicalRecordContent: null,
|
||||||
|
appointmentTreatmentGroup: null,
|
||||||
|
registrationNo: null,
|
||||||
|
registrationDate: null,
|
||||||
|
appointmentDate: null,
|
||||||
|
outpatientNumber: null,
|
||||||
|
visitTime: null,
|
||||||
|
dischargeMethod: null,
|
||||||
|
openId: null,
|
||||||
|
unionId: null,
|
||||||
|
patientSource: null,
|
||||||
|
delFlag: null,
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
if (this.appointmentDate.length > 0) {
|
||||||
|
this.queryParams.appointmentDateStart = this.appointmentDate[0]
|
||||||
|
this.queryParams.appointmentDateEnd = this.appointmentDate[1]
|
||||||
|
}
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.queryParams.appointmentDateEnd = ''
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
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 = "添加患者信息";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const id = row.id || this.ids
|
||||||
|
getPatientInfo(id).then(response => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改患者信息";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.id != null) {
|
||||||
|
updatePatientInfo(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addPatientInfo(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 delPatientInfo(ids);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
}).catch(() => { });
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
this.download('manage/patientInfo/export', {
|
||||||
|
...this.queryParams
|
||||||
|
}, `patientInfo_${new Date().getTime()}.xlsx`)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
Loading…
Reference in New Issue
Block a user