2024-02-27 13:15:32 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="app-container">
|
2024-02-27 17:17:09 +08:00
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="90px">
|
2024-02-27 13:15:32 +08:00
|
|
|
|
<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> -->
|
2024-02-27 17:17:09 +08:00
|
|
|
|
<el-form-item label="预约治疗组" prop="appointmentTreatmentGroup">
|
|
|
|
|
|
<el-input v-model="queryParams.appointmentTreatmentGroup" placeholder="请输入预约治疗组" clearable style="width:200px"
|
|
|
|
|
|
@keyup.enter.native="handleQuery" />
|
|
|
|
|
|
</el-form-item>
|
2024-02-27 13:15:32 +08:00
|
|
|
|
<el-form-item label="开证医生" prop="certificateIssuingDoctor">
|
|
|
|
|
|
<el-input v-model="queryParams.certificateIssuingDoctor" placeholder="请输入主治医生" clearable style="width:200px"
|
|
|
|
|
|
@keyup.enter.native="handleQuery" />
|
|
|
|
|
|
</el-form-item>
|
2024-02-27 17:17:09 +08:00
|
|
|
|
<el-form-item label="登记号" prop="registrationNo">
|
|
|
|
|
|
<el-input v-model="queryParams.registrationNo" placeholder="请输入登记号" clearable style="width:200px"
|
|
|
|
|
|
@keyup.enter.native="handleQuery" />
|
|
|
|
|
|
</el-form-item>
|
2024-02-27 13:15:32 +08:00
|
|
|
|
<!-- <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">
|
2024-02-27 17:17:09 +08:00
|
|
|
|
<el-button type="warning" plain icon="el-icon-upload2" size="mini" @click="handleUpload">导入</el-button>
|
2024-02-27 13:15:32 +08:00
|
|
|
|
</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" />
|
2024-02-27 17:17:09 +08:00
|
|
|
|
<el-table-column label="序号" type="index" width="55" align="center" />
|
2024-02-27 13:15:32 +08:00
|
|
|
|
<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>
|
2024-02-27 17:17:09 +08:00
|
|
|
|
<!-- <el-table-column label="出生日期" align="center" prop="birthDate" width='130' /> -->
|
2024-02-27 13:15:32 +08:00
|
|
|
|
<el-table-column label="年龄" align="center" prop="age" />
|
2024-02-27 17:17:09 +08:00
|
|
|
|
<el-table-column label="家属电话" align="center" prop="familyMemberPhone" width='130' />
|
|
|
|
|
|
<!-- <el-table-column label="签约状态" align="center" prop="signStatus">
|
2024-02-27 13:15:32 +08:00
|
|
|
|
<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>
|
2024-02-27 17:17:09 +08:00
|
|
|
|
</el-table-column> -->
|
|
|
|
|
|
<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' />
|
2024-02-27 13:15:32 +08:00
|
|
|
|
<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="attendingPhysician" />
|
2024-02-27 17:17:09 +08:00
|
|
|
|
<!-- <el-table-column label="出院方式" align="center" prop="dischargeMethod" /> -->
|
2024-02-27 13:15:32 +08:00
|
|
|
|
<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">
|
2024-02-27 17:17:09 +08:00
|
|
|
|
<el-button size="mini" type="text" @click="handleAuthRole(scope.row)">详情</el-button>
|
|
|
|
|
|
<el-button size="mini" type="text" @click="handleUpdate(scope.row)"
|
2024-02-27 13:15:32 +08:00
|
|
|
|
v-hasPermi="['manage:preHospitalized:edit']">编辑</el-button>
|
2024-02-27 17:17:09 +08:00
|
|
|
|
<el-button size="mini" type="text" @click="handleDelete(scope.row)"
|
2024-02-27 13:15:32 +08:00
|
|
|
|
v-hasPermi="['manage:preHospitalized:remove']">删除</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">
|
2024-02-27 17:17:09 +08:00
|
|
|
|
<div class="title">基本信息</div>
|
2024-02-27 13:15:32 +08:00
|
|
|
|
<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>
|
2024-02-27 17:17:09 +08:00
|
|
|
|
<el-form-item label="性别" prop="sex">
|
|
|
|
|
|
<el-radio-group v-model="form.sex">
|
|
|
|
|
|
<el-radio label="MALE">男</el-radio>
|
|
|
|
|
|
<el-radio label="FEMALE">女</el-radio>
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<!-- <el-form-item label="年龄" prop="age">
|
|
|
|
|
|
<el-input v-model="form.age" placeholder="请输入年龄" style="width:200px" />
|
|
|
|
|
|
</el-form-item> -->
|
2024-02-27 13:15:32 +08:00
|
|
|
|
<el-form-item label="住址" prop="address">
|
2024-02-27 17:17:09 +08:00
|
|
|
|
<el-input type="textarea" style="width:200px" :rows="2" placeholder="请输入住址" v-model="form.address" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<div class="title" style="margin-top:20px">就诊信息</div>
|
|
|
|
|
|
<el-form-item label="主要诊断" prop="mainDiagnosis">
|
|
|
|
|
|
<el-input v-model="form.mainDiagnosis" placeholder="请输入主要诊断" style="width:200px" />
|
|
|
|
|
|
</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="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="appointmentTreatmentGroup">
|
|
|
|
|
|
<el-input v-model="form.appointmentTreatmentGroup" 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="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="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>
|
2024-02-27 13:15:32 +08:00
|
|
|
|
</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="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="attendingPhysician">
|
|
|
|
|
|
<el-input v-model="form.attendingPhysician" 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="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="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>
|
2024-02-27 17:17:09 +08:00
|
|
|
|
-->
|
2024-02-27 13:15:32 +08:00
|
|
|
|
</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>
|
2024-02-27 17:17:09 +08:00
|
|
|
|
<!-- //导入 -->
|
|
|
|
|
|
<el-dialog title="导入患者信息" :visible.sync="uploadopen" width="400px" append-to-body>
|
|
|
|
|
|
<el-upload drag class="upload-demo" ref="upload" action="https://jsonplaceholder.typicode.com/posts/"
|
|
|
|
|
|
:on-preview="handlePreview" :on-remove="handleRemove" :file-list="fileList" :auto-upload="false">
|
|
|
|
|
|
<i class="el-icon-upload"></i>
|
|
|
|
|
|
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
|
|
|
|
|
<div class="el-upload__tip" slot="tip" style="line-height:25px">
|
|
|
|
|
|
<div>
|
|
|
|
|
|
1. <span style="color:#1890ff">下载导入模板</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div>2.最大支持2MB的xls/xlsx文件</div>
|
|
|
|
|
|
<div>3.一次导入患者数量不能超过5000</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-upload>
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
|
<el-button type="primary" @click="uploadcancel">确 定</el-button>
|
|
|
|
|
|
<el-button @click="uploadcancel">取 消</el-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-dialog>
|
2024-02-27 13:15:32 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
import { listPatientInfo, getPatientInfo, delPatientInfo, addPatientInfo, updatePatientInfo } from "@/api/manage/patientInfo";
|
|
|
|
|
|
import { getAge } from "@/utils/age";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
2024-02-28 17:17:16 +08:00
|
|
|
|
name: "preHospitalized",
|
2024-02-27 13:15:32 +08:00
|
|
|
|
dicts: ['patient_type', 'visit_method', 'sign_status', 'patient_source'],
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2024-02-27 17:17:09 +08:00
|
|
|
|
//导入
|
|
|
|
|
|
fileList: [],
|
2024-02-27 13:15:32 +08:00
|
|
|
|
// 遮罩层
|
|
|
|
|
|
loading: true,
|
|
|
|
|
|
// 选中数组
|
|
|
|
|
|
ids: [],
|
|
|
|
|
|
// 非单个禁用
|
|
|
|
|
|
single: true,
|
|
|
|
|
|
// 非多个禁用
|
|
|
|
|
|
multiple: true,
|
|
|
|
|
|
// 显示搜索条件
|
|
|
|
|
|
showSearch: true,
|
|
|
|
|
|
// 总条数
|
|
|
|
|
|
total: 0,
|
|
|
|
|
|
// 患者信息表格数据
|
|
|
|
|
|
patientInfoList: [],
|
|
|
|
|
|
// 弹出层标题
|
|
|
|
|
|
title: "",
|
|
|
|
|
|
// 是否显示弹出层
|
|
|
|
|
|
open: false,
|
2024-02-27 17:17:09 +08:00
|
|
|
|
uploadopen: false,
|
2024-02-27 13:15:32 +08:00
|
|
|
|
// 查询参数
|
|
|
|
|
|
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) {
|
2024-02-27 17:17:09 +08:00
|
|
|
|
console.log(getAge(row.birthDate))
|
2024-02-27 13:15:32 +08:00
|
|
|
|
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,
|
2024-02-27 17:17:09 +08:00
|
|
|
|
age: row.birthDate ? getAge(row.birthDate) : ''
|
2024-02-27 13:15:32 +08:00
|
|
|
|
},
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 查询患者信息列表 */
|
|
|
|
|
|
getList() {
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
this.queryParams.patientType = 'PRE_HOSPITALIZED_PATIENT'
|
|
|
|
|
|
listPatientInfo(this.queryParams).then(response => {
|
|
|
|
|
|
response.rows.forEach(e => {
|
2024-02-27 17:17:09 +08:00
|
|
|
|
e.birthDate ? e.age = getAge(e.birthDate) : ''
|
2024-02-27 13:15:32 +08:00
|
|
|
|
})
|
|
|
|
|
|
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,
|
2024-02-27 17:17:09 +08:00
|
|
|
|
age: null,
|
2024-02-27 13:15:32 +08:00
|
|
|
|
cardNo: null,
|
|
|
|
|
|
sex: null,
|
|
|
|
|
|
address: null,
|
2024-02-27 17:17:09 +08:00
|
|
|
|
patientType: 'PRE_HOSPITALIZED_PATIENT',
|
2024-02-27 13:15:32 +08:00
|
|
|
|
certificateIssuingDoctor: null,
|
|
|
|
|
|
mainDiagnosis: null,
|
|
|
|
|
|
hospitalAgencyId: null,
|
|
|
|
|
|
campusAgencyId: null,
|
|
|
|
|
|
departmentId: null,
|
|
|
|
|
|
wardId: null,
|
|
|
|
|
|
responsibleNurse: null,
|
|
|
|
|
|
appointmentTreatmentGroup: null,
|
|
|
|
|
|
registrationNo: null,
|
|
|
|
|
|
registrationDate: null,
|
|
|
|
|
|
appointmentDate: null,
|
|
|
|
|
|
patientSource: 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;
|
2024-02-27 17:17:09 +08:00
|
|
|
|
this.$modal.confirm('是否确认删除?').then(function () {
|
2024-02-27 13:15:32 +08:00
|
|
|
|
return delPatientInfo(ids);
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
|
|
}).catch(() => { });
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
|
|
handleExport() {
|
|
|
|
|
|
this.download('manage/patientInfo/export', {
|
|
|
|
|
|
...this.queryParams
|
|
|
|
|
|
}, `patientInfo_${new Date().getTime()}.xlsx`)
|
2024-02-27 17:17:09 +08:00
|
|
|
|
},
|
|
|
|
|
|
//导入相关的方法
|
|
|
|
|
|
submitUpload() {
|
|
|
|
|
|
this.$refs.upload.submit();
|
|
|
|
|
|
},
|
|
|
|
|
|
handleRemove(file, fileList) {
|
|
|
|
|
|
console.log(file, fileList);
|
|
|
|
|
|
},
|
|
|
|
|
|
handlePreview(file) {
|
|
|
|
|
|
console.log(file);
|
|
|
|
|
|
},
|
|
|
|
|
|
//导入
|
|
|
|
|
|
handleUpload() {
|
|
|
|
|
|
this.uploadopen = true
|
|
|
|
|
|
},
|
|
|
|
|
|
//取消导入
|
|
|
|
|
|
uploadcancel() {
|
|
|
|
|
|
this.uploadopen = false
|
|
|
|
|
|
},
|
2024-02-27 13:15:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
</script>
|
2024-02-27 17:17:09 +08:00
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
.title {
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
height: 60px;
|
|
|
|
|
|
margin-left: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|