修改
This commit is contained in:
parent
e54ba0c68a
commit
b4482a3c51
87
src/api/unitconfig/patientConfiguration.js
Normal file
87
src/api/unitconfig/patientConfiguration.js
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询患者就诊记录基本信息列表
|
||||||
|
export function listVisitRecord(query) {
|
||||||
|
return request({
|
||||||
|
url: '/manage/patientInfo/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询患者就诊记录基本信息详细
|
||||||
|
export function getVisitRecord(id) {
|
||||||
|
return request({
|
||||||
|
url: '/manage/visitRecord/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增患者就诊记录基本信息
|
||||||
|
export function addVisitRecord(data) {
|
||||||
|
return request({
|
||||||
|
url: '/manage/visitRecord',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 保存修改患者就诊记录基本信息
|
||||||
|
export function updateVisitRecord(data) {
|
||||||
|
return request({
|
||||||
|
url: '/manage/visitRecord',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除患者就诊记录基本信息
|
||||||
|
export function delVisitRecord(id) {
|
||||||
|
return request({
|
||||||
|
url: '/manage/visitRecord/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询患者就诊记录基本信息列表
|
||||||
|
export function getList(query) {
|
||||||
|
return request({
|
||||||
|
url: '/manage/visitRecord/getList',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
//点击左侧获取
|
||||||
|
export function visitRecordid(id) {
|
||||||
|
return request({
|
||||||
|
url: `/manage/visitRecord/${id}`,
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
//主治医生
|
||||||
|
export function usergetList(query) {
|
||||||
|
return request({
|
||||||
|
url: `/system/user/getList`,
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function selectAgencyList(query) {
|
||||||
|
return request({
|
||||||
|
url: '/system/agency/selectAgencyList',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
//新增就诊记录
|
||||||
|
export function saveRecord(data) {
|
||||||
|
return request({
|
||||||
|
url: '/manage/visitRecord/saveRecord',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -41,26 +41,54 @@
|
|||||||
<!-- <el-descriptions-item label="出院/门诊时间">{{ list.patientName }}</el-descriptions-item> -->
|
<!-- <el-descriptions-item label="出院/门诊时间">{{ list.patientName }}</el-descriptions-item> -->
|
||||||
<!-- <el-descriptions-item label="注册时间">{{ list.patientName }}</el-descriptions-item> -->
|
<!-- <el-descriptions-item label="注册时间">{{ list.patientName }}</el-descriptions-item> -->
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
|
<el-descriptions title="健康管理师信息" style="padding:20px 30px 10px" class="descriptions">
|
||||||
|
</el-descriptions>
|
||||||
|
<el-form :model="signPackage" :rules="rules" ref="signPackage" label-width="100px" class="demo-ruleForm"
|
||||||
|
:inline="true" style="padding-left:40px">
|
||||||
|
<el-form-item label="健康管理师" prop="healthManageId">
|
||||||
|
<el-input v-model="signPackage.healthManageId"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
<el-descriptions title="服务包信息" style="padding:20px 30px 10px" class="descriptions">
|
<el-descriptions title="服务包信息" style="padding:20px 30px 10px" class="descriptions">
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
<el-form :model="signPackage" :rules="rules" ref="signPackage" label-width="100px" class="demo-ruleForm"
|
<el-form :model="signPackage" :rules="rules" ref="signPackage" label-width="100px" class="demo-ruleForm"
|
||||||
:inline="true" style="padding-left:40px">
|
:inline="true" style="padding-left:40px">
|
||||||
<el-form-item label="选择服务包" prop="packageName">
|
<el-form-item label="选择服务包" prop="packageId">
|
||||||
<el-input v-model="signPackage.packageName" style="width:300px"></el-input>
|
<el-input v-model="signPackage.packageId"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-form :model="signPackage" :rules="rules" ref="signPackage" label-width="80px" class="demo-ruleForm"
|
<el-form :model="signPackage" :rules="rules" ref="signPackage" label-width="80px" class="demo-ruleForm"
|
||||||
:inline="true" style="padding-left:40px">
|
:inline="true" style="padding-left:40px">
|
||||||
<el-form-item label="签约月数(月)" prop="" label-width="100px">
|
<el-form-item label="签约期限" prop="" label-width="100px">
|
||||||
<el-input v-model="signPackage.serviceCycle" style="width:200px"></el-input>
|
<div>
|
||||||
|
<el-input v-model="signPackage.packageTerm" style="width:130px"
|
||||||
|
placeholder="请输入签约周期"></el-input>
|
||||||
|
<el-select v-model="signPackage.packageTermUnit" style="width:110px" placeholder="周期单位">
|
||||||
|
<el-option label="年" value="年">年</el-option>
|
||||||
|
<el-option label="月" value="月">月</el-option>
|
||||||
|
<el-option label="日" value="日">日</el-option>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="服务时长" prop="packageName">
|
<el-form-item label="服务时长" prop="packageName">
|
||||||
<el-input v-model="signPackage.serviceStartTime" style="width:120px"></el-input>
|
<el-date-picker v-model="signPackage.serviceStartTime" :picker-options="pickerOptions" type="date"
|
||||||
|
placeholder="选择日期" style="width:150px">
|
||||||
|
</el-date-picker>
|
||||||
至
|
至
|
||||||
<el-input v-model="signPackage.serviceEndTime" style="width:120px"></el-input>
|
<el-input v-model="signPackage.serviceEndTime" style="width:150px" disabled></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="服务包价格(元)" prop="" label-width="120px">
|
<el-form-item label="服务包价格(元)" prop="" label-width="120px">
|
||||||
<el-input v-model="signPackage.packagePrice" style="width:200px"></el-input>
|
<el-input v-model="signPackage.packagePrice" style="width:100px"
|
||||||
|
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+3)} if(value.length>7){value=value.slice(0,7)}"
|
||||||
|
min="0" placeholder="小数点后两位(元)"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<el-descriptions title="专病管理信息" style="padding:20px 30px 10px" class="descriptions">
|
||||||
|
</el-descriptions>
|
||||||
|
<el-form :model="signPackage" :rules="rules" ref="signPackage" label-width="100px" class="demo-ruleForm"
|
||||||
|
:inline="true" style="padding-left:40px">
|
||||||
|
<el-form-item label="专病管理路径" prop="routeId">
|
||||||
|
<el-input v-model="signPackage.routeId"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-descriptions title="硬件信息" style="padding:20px 30px 10px" class="descriptions">
|
<el-descriptions title="硬件信息" style="padding:20px 30px 10px" class="descriptions">
|
||||||
@ -109,10 +137,21 @@ export default {
|
|||||||
name: "newSigning",
|
name: "newSigning",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
list: {},
|
|
||||||
signPackage: {
|
signPackage: {
|
||||||
packageName: undefined
|
packageName: undefined,
|
||||||
|
packagePrice: undefined,
|
||||||
|
serviceCycle: undefined,
|
||||||
|
serviceStartTime: undefined,
|
||||||
|
serviceEndTime: '',
|
||||||
},
|
},
|
||||||
|
pickerOptions: {
|
||||||
|
disabledDate: (time) => {
|
||||||
|
if (this.signPackage.serviceEndTime != "") {
|
||||||
|
return time.getTime() > new Date(this.signPackage.serviceEndTime).getTime();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
list: {},
|
||||||
form: {
|
form: {
|
||||||
record: {
|
record: {
|
||||||
patientId: undefined,
|
patientId: undefined,
|
||||||
@ -127,7 +166,7 @@ export default {
|
|||||||
informeds: []
|
informeds: []
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
packageName: [
|
packageId: [
|
||||||
{ required: true, message: '请选择服务包', trigger: 'change' }
|
{ required: true, message: '请选择服务包', trigger: 'change' }
|
||||||
],
|
],
|
||||||
devices: {
|
devices: {
|
||||||
@ -170,7 +209,13 @@ export default {
|
|||||||
},
|
},
|
||||||
//续约
|
//续约
|
||||||
signupload() {
|
signupload() {
|
||||||
this.$refs.upload.submit();
|
const files = this.$refs.upload.uploadFiles
|
||||||
|
if (files.length > 0) {
|
||||||
|
this.$refs.upload.submit();
|
||||||
|
} else {
|
||||||
|
this.uploadsave();
|
||||||
|
}
|
||||||
|
console.log(this.signPackage)
|
||||||
},
|
},
|
||||||
//文件上传完成
|
//文件上传完成
|
||||||
handleSuccess(response, file, fileList) {
|
handleSuccess(response, file, fileList) {
|
||||||
@ -179,7 +224,10 @@ export default {
|
|||||||
this.form.informeds.push({
|
this.form.informeds.push({
|
||||||
informedFilePath: e.response.imgUrl,
|
informedFilePath: e.response.imgUrl,
|
||||||
})
|
})
|
||||||
|
this.uploadsave();
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
uploadsave() {
|
||||||
this.form.signPackage = this.signPackage
|
this.form.signPackage = this.signPackage
|
||||||
addsign(this.form).then(res => {
|
addsign(this.form).then(res => {
|
||||||
this.$confirm('签约成功, 是否返回上一页?', '提示', {
|
this.$confirm('签约成功, 是否返回上一页?', '提示', {
|
||||||
|
|||||||
@ -29,12 +29,28 @@
|
|||||||
<!-- <el-descriptions-item label="出院/门诊时间">{{ $route.query.patientName }}</el-descriptions-item> -->
|
<!-- <el-descriptions-item label="出院/门诊时间">{{ $route.query.patientName }}</el-descriptions-item> -->
|
||||||
<!-- <el-descriptions-item label="注册时间">{{ $route.query.patientName }}</el-descriptions-item> -->
|
<!-- <el-descriptions-item label="注册时间">{{ $route.query.patientName }}</el-descriptions-item> -->
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
|
<el-descriptions title="健康管理师信息" style="padding:20px 30px 10px" class="descriptions">
|
||||||
|
</el-descriptions>
|
||||||
|
<el-form :model="signPackage" :rules="rules" ref="signPackage" label-width="100px" class="demo-ruleForm"
|
||||||
|
:inline="true" style="padding-left:40px">
|
||||||
|
<el-form-item label="健康管理师" prop="healthManageId">
|
||||||
|
<el-input v-model="signPackage.healthManageId"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
<el-descriptions title="服务包信息" style="padding:20px 30px 10px" class="descriptions">
|
<el-descriptions title="服务包信息" style="padding:20px 30px 10px" class="descriptions">
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
<el-form :model="signPackage" :rules="rules" ref="signPackage" label-width="100px" class="demo-ruleForm"
|
<el-form :model="signPackage" :rules="rules" ref="signPackage" label-width="100px" class="demo-ruleForm"
|
||||||
:inline="true" style="padding-left:40px">
|
:inline="true" style="padding-left:40px">
|
||||||
<el-form-item label="选择服务包" prop="packageName">
|
<el-form-item label="选择服务包" prop="packageId">
|
||||||
<el-input v-model="signPackage.packageName"></el-input>
|
<el-input v-model="signPackage.packageId"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<el-descriptions title="专病管理信息" style="padding:20px 30px 10px" class="descriptions">
|
||||||
|
</el-descriptions>
|
||||||
|
<el-form :model="signPackage" :rules="rules" ref="signPackage" label-width="100px" class="demo-ruleForm"
|
||||||
|
:inline="true" style="padding-left:40px">
|
||||||
|
<el-form-item label="专病管理路径" prop="routeId">
|
||||||
|
<el-input v-model="signPackage.routeId"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-descriptions title="硬件信息" style="padding:20px 30px 10px" class="descriptions">
|
<el-descriptions title="硬件信息" style="padding:20px 30px 10px" class="descriptions">
|
||||||
@ -96,7 +112,7 @@ export default {
|
|||||||
informeds: []
|
informeds: []
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
packageName: [
|
packageId: [
|
||||||
{ required: true, message: '请选择服务包', trigger: 'change' }
|
{ required: true, message: '请选择服务包', trigger: 'change' }
|
||||||
],
|
],
|
||||||
devices: {
|
devices: {
|
||||||
|
|||||||
331
src/views/unitconfig/PatientConfigurationVisitRecords/index.vue
Normal file
331
src/views/unitconfig/PatientConfigurationVisitRecords/index.vue
Normal file
@ -0,0 +1,331 @@
|
|||||||
|
<template>
|
||||||
|
<div class="header">
|
||||||
|
<div class="header-app">
|
||||||
|
<div class="addbtn">
|
||||||
|
<el-button type="primary" @click="add" size="small">添加就诊记录</el-button>
|
||||||
|
</div>
|
||||||
|
<el-descriptions title="患者信息">
|
||||||
|
<el-descriptions-item label="患者姓名">{{ $route.query.patientName }}</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="性别">{{ $route.query.sex == 'MALE' ? '男' : "" }}
|
||||||
|
{{ $route.query.sex == 'FEMALE' ? '女' : "" }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="年龄">{{ $route.query.age }}</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="电话">{{ $route.query.patientPhone }}</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="pat_id">{{ $route.query.patientId }}</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="身份证号">{{ $route.query.cardNo }}</el-descriptions-item>
|
||||||
|
</el-descriptions>
|
||||||
|
</div>
|
||||||
|
<div class="header-app" style="margin-top: 16px;padding:0">
|
||||||
|
<div class="left">
|
||||||
|
<div class="list">
|
||||||
|
<div class="item" v-for="(item, index) in recodelist" :key="item.id"
|
||||||
|
@click="clickrecord(item, index)" :class="index == recodeindex ? 'tapitem' : ''">
|
||||||
|
<div class="text">入院时间:{{ item.admissionTime }}
|
||||||
|
</div>
|
||||||
|
<div class="text">出院时间:{{ item.dischargeTime }}
|
||||||
|
</div>
|
||||||
|
<div class="text">就诊类型:{{ item.visitType == 'OUTPATIENT_SERVICE' ? '门诊' : "" }}
|
||||||
|
{{ item.visitType == 'BE_HOSPITALIZED' ? '住院' : "" }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="right" v-if="recodeindex >= 0">
|
||||||
|
<el-descriptions :title="form.id ? '就诊信息' : '新增就诊信息'">
|
||||||
|
</el-descriptions>
|
||||||
|
<div class="btns">
|
||||||
|
<el-button type="primary" @click="submitForm" size="small">保 存</el-button>
|
||||||
|
<el-button @click="cancel" size="small">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
<el-form ref="form" :model="form" label-width="120px" :rules="rules">
|
||||||
|
<el-form-item label="就诊方式" prop="visitType">
|
||||||
|
<el-radio-group v-model="form.visitType">
|
||||||
|
<el-radio label="BE_HOSPITALIZED">住院</el-radio>
|
||||||
|
<el-radio label="OUTPATIENT_SERVICE">门诊</el-radio>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px" :inline="true">
|
||||||
|
<el-form-item label="主要诊断" prop="mainDiagnosis">
|
||||||
|
<el-input v-model="form.mainDiagnosis" style="width:300px" placeholder="请输入主要诊断"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="就诊流水号" prop="visitSerialNumber">
|
||||||
|
<el-input v-model="form.visitSerialNumber" style="width:300px"
|
||||||
|
placeholder="请输入就诊流水号"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="科室名称" prop="departmentId">
|
||||||
|
<el-select v-model="form.departmentId" filterable placeholder="请选择科室" style="width:300px"
|
||||||
|
clearable>
|
||||||
|
<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="attendingPhysicianId">
|
||||||
|
<el-select v-model="form.attendingPhysicianId" filterable placeholder="请选择主治医生"
|
||||||
|
style="width:300px" 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 label="入院时间" prop="admissionTime">
|
||||||
|
<el-date-picker style="width:300px" v-model="form.admissionTime" type="datetime"
|
||||||
|
:picker-options="pickerOptions" value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择日期时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="出院时间" prop="dischargeTime">
|
||||||
|
<el-date-picker style="width:300px" v-model="form.dischargeTime" type="datetime"
|
||||||
|
:picker-options="pickerOptionstwo" value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择日期时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="入院病历" prop="inHospitalInfo" v-if="form.visitType == 'BE_HOSPITALIZED'">
|
||||||
|
<el-input type="textarea" v-model="form.inHospitalInfo" style="width:800px"
|
||||||
|
:rows="8"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="门诊病历" prop="inHospitalInfo" v-if="form.visitType == 'OUTPATIENT_SERVICE'">
|
||||||
|
<el-input type="textarea" v-model="form.inHospitalInfo" style="width:800px"
|
||||||
|
:rows="8"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="出院病历" prop="outHospitalInfo" v-if="form.visitType == 'BE_HOSPITALIZED'">
|
||||||
|
<el-input type="textarea" v-model="form.outHospitalInfo" style="width:800px"
|
||||||
|
:rows="8"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { getList, usergetList, updateVisitRecord, saveRecord } from "@/api/unitconfig/patientConfiguration";
|
||||||
|
import { getDepartmentList } from "@/api/manage/selectAgencyList";
|
||||||
|
export default {
|
||||||
|
name: "PatientConfigurationVisitRecords",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
pickerOptions: {
|
||||||
|
disabledDate: (time) => {
|
||||||
|
if (this.form.dischargeTime) {
|
||||||
|
return time.getTime() > new Date(this.form.dischargeTime).getTime();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
pickerOptionstwo: {
|
||||||
|
disabledDate: (time) => {
|
||||||
|
if (this.form.admissionTime) {
|
||||||
|
return time.getTime() < new Date(this.form.admissionTime).getTime();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
departmentlist: [],
|
||||||
|
attendingPhysicianlist: [],
|
||||||
|
form: {},
|
||||||
|
rules: {
|
||||||
|
visitType: [
|
||||||
|
{ required: true, message: "就诊方式不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
mainDiagnosis: [
|
||||||
|
{ required: true, message: "主要诊断不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
visitSerialNumber: [
|
||||||
|
{ required: true, message: "就诊流水号不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
attendingPhysicianId: [
|
||||||
|
{ required: true, message: "主治医生不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
departmentId: [
|
||||||
|
{ required: true, message: "科室名称不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
admissionTime: [
|
||||||
|
{ required: true, message: "入院时间不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
dischargeTime: [
|
||||||
|
{ required: true, message: "出院时间不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
inHospitalInfo: [
|
||||||
|
{ required: true, message: "病历不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
outHospitalInfo: [
|
||||||
|
{ required: true, message: "病历不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
},
|
||||||
|
recodelist: [],
|
||||||
|
recodeindex: undefined,
|
||||||
|
todaytime: '',
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.dateFormat();
|
||||||
|
this.info();
|
||||||
|
this.changecampusAgency();
|
||||||
|
this.usergetListinfo();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
add() {
|
||||||
|
let item = {
|
||||||
|
visitType: '',
|
||||||
|
mainDiagnosis: '',
|
||||||
|
visitSerialNumber: '',
|
||||||
|
departmentId: '',
|
||||||
|
departmentName: '',
|
||||||
|
attendingPhysicianId: '',
|
||||||
|
attendingPhysicianName: '',
|
||||||
|
admissionTime: this.todaytime,
|
||||||
|
dischargeTime: '',
|
||||||
|
inHospitalInfo: '',
|
||||||
|
outHospitalInfo: '',
|
||||||
|
}
|
||||||
|
this.recodelist.unshift(item)
|
||||||
|
this.recodeindex = 0
|
||||||
|
this.form = item
|
||||||
|
},
|
||||||
|
//取消
|
||||||
|
cancel() {
|
||||||
|
this.recodeindex = undefined
|
||||||
|
this.form = {}
|
||||||
|
},
|
||||||
|
// 保存新增
|
||||||
|
submitForm() {
|
||||||
|
if (this.form.departmentId) {
|
||||||
|
this.form.departmentName = this.departmentlist.find(e => e.id == this.form.departmentId).departmentName
|
||||||
|
}
|
||||||
|
if (this.form.attendingPhysicianId) {
|
||||||
|
this.form.attendingPhysicianName = this.attendingPhysicianlist.find(e => e.userId == this.form.attendingPhysicianId).nickName
|
||||||
|
}
|
||||||
|
if (this.form.id) {
|
||||||
|
updateVisitRecord(this.form).then(res => {
|
||||||
|
this.$modal.msgSuccess("保存就诊记录成功");
|
||||||
|
this.info();
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
saveRecord(this.form).then(res => {
|
||||||
|
this.$modal.msgSuccess("新增就诊记录成功");
|
||||||
|
this.info();
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//主治医生
|
||||||
|
usergetListinfo() {
|
||||||
|
usergetList({
|
||||||
|
agencyId: this.$route.query.hospitalAgencyId,
|
||||||
|
postName: 'DOCTOR'
|
||||||
|
}).then(res => {
|
||||||
|
this.attendingPhysicianlist = res.data
|
||||||
|
})
|
||||||
|
},
|
||||||
|
//科室
|
||||||
|
changecampusAgency() {
|
||||||
|
let query = {
|
||||||
|
nodeType: 'DEPARTMENT',
|
||||||
|
agencyId: this.$route.query.hospitalAgencyId,
|
||||||
|
}
|
||||||
|
getDepartmentList(query).then(res => {
|
||||||
|
this.departmentlist = res.data
|
||||||
|
})
|
||||||
|
},
|
||||||
|
//点击左侧
|
||||||
|
clickrecord(item, index) {
|
||||||
|
if (this.recodeindex == index) {
|
||||||
|
this.recodeindex = undefined
|
||||||
|
} else {
|
||||||
|
this.recodeindex = index
|
||||||
|
}
|
||||||
|
this.form = item
|
||||||
|
},
|
||||||
|
//左侧记录列表
|
||||||
|
info() {
|
||||||
|
getList({
|
||||||
|
patientId: this.$route.query.patientId
|
||||||
|
}).then(res => {
|
||||||
|
this.recodeindex = undefined
|
||||||
|
this.recodelist = res.data
|
||||||
|
})
|
||||||
|
},
|
||||||
|
dateFormat() {
|
||||||
|
const daterc = new Date();
|
||||||
|
var date = new Date(daterc);
|
||||||
|
var year = date.getFullYear();
|
||||||
|
/* 在日期格式中,月份是从0开始,11结束,因此要加0
|
||||||
|
* 使用三元表达式在小于10的前面加0,以达到格式统一 如 09:11:05
|
||||||
|
* */
|
||||||
|
var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
|
||||||
|
var day = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
|
||||||
|
var hours = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
|
||||||
|
var minutes = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
|
||||||
|
var seconds = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
|
||||||
|
// 拼接
|
||||||
|
this.todaytime = year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds;
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.header {
|
||||||
|
background-color: #F1F3F5;
|
||||||
|
padding-top: 16px;
|
||||||
|
|
||||||
|
.header-app {
|
||||||
|
width: 98%;
|
||||||
|
padding: 40px;
|
||||||
|
margin: 0 auto;
|
||||||
|
background-color: #fff;
|
||||||
|
display: flex;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.addbtn {
|
||||||
|
position: absolute;
|
||||||
|
right: 40px;
|
||||||
|
top: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left {
|
||||||
|
width: 25%;
|
||||||
|
|
||||||
|
.list {
|
||||||
|
height: 450px;
|
||||||
|
overflow: scroll;
|
||||||
|
// 隐藏表头的滚动条
|
||||||
|
overflow-x: hidden !important;
|
||||||
|
width: 96%;
|
||||||
|
|
||||||
|
.tapitem {
|
||||||
|
background-color: #D2E9FC;
|
||||||
|
border-left: 2px solid #1890ff !important;
|
||||||
|
border-bottom: 1px solid #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item {
|
||||||
|
height: 130px;
|
||||||
|
padding: 10px 10px;
|
||||||
|
position: relative;
|
||||||
|
border-left: 2px solid #D2E9FC;
|
||||||
|
border-bottom: 1px solid #E7E7E7;
|
||||||
|
|
||||||
|
.text {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
height: 38px;
|
||||||
|
line-height: 38px;
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.right {
|
||||||
|
width: 75%;
|
||||||
|
margin-top: 15px;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.btns {
|
||||||
|
position: absolute;
|
||||||
|
right: 20px;
|
||||||
|
top: 0px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
413
src/views/unitconfig/patientConfiguration/index.vue
Normal file
413
src/views/unitconfig/patientConfiguration/index.vue
Normal file
@ -0,0 +1,413 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<!-- <el-form-item label="患者表id" prop="patientId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.patientId"
|
||||||
|
placeholder="请输入患者表id"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="身份证号" prop="cardNo">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.cardNo"
|
||||||
|
placeholder="请输入身份证号"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item> -->
|
||||||
|
<el-form-item label="患者姓名" prop="patientName">
|
||||||
|
<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-form-item>
|
||||||
|
<!-- <el-form-item label="家属电话" prop="familyMemberPhone">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.familyMemberPhone"
|
||||||
|
placeholder="请输入家属电话"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="地址" prop="address">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.address"
|
||||||
|
placeholder="请输入地址"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="出生日期,格式:yyyy-MM-dd" prop="birthDate">
|
||||||
|
<el-date-picker clearable
|
||||||
|
v-model="queryParams.birthDate"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择出生日期,格式:yyyy-MM-dd">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="就诊类型,门诊:OUTPATIENT_SERVICE,住院:BE_HOSPITALIZED" prop="visitType">
|
||||||
|
<el-select v-model="queryParams.visitType" placeholder="请选择就诊类型,门诊:OUTPATIENT_SERVICE,住院:BE_HOSPITALIZED" clearable>
|
||||||
|
<el-option
|
||||||
|
v-for="dict in dict.type.visit_type"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.label"
|
||||||
|
:value="dict.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item> -->
|
||||||
|
<el-form-item label="医院" prop="hospitalAgencyId">
|
||||||
|
<el-select v-model="queryParams.hospitalAgencyId" filterable placeholder="请选择医院" style="width:208px" clearable>
|
||||||
|
<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="所属院区id" prop="campusAgencyId">
|
||||||
|
<el-input v-model="queryParams.campusAgencyId" placeholder="请输入所属院区id" clearable
|
||||||
|
@keyup.enter.native="handleQuery" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="所属科室id" prop="departmentId">
|
||||||
|
<el-input v-model="queryParams.departmentId" placeholder="请输入所属科室id" clearable
|
||||||
|
@keyup.enter.native="handleQuery" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="所属病区id" prop="wardId">
|
||||||
|
<el-input v-model="queryParams.wardId" placeholder="请输入所属病区id" clearable @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="['unitconfig:visitRecord: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="['unitconfig:visitRecord: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="['unitconfig:visitRecord:remove']">删除</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
|
||||||
|
v-hasPermi="['unitconfig:visitRecord:export']">导出</el-button>
|
||||||
|
</el-col> -->
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="visitRecordList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" />
|
||||||
|
<el-table-column label="序号" type="index" width="55" align="center" />
|
||||||
|
<el-table-column label="pat_id" align="center" prop="id" />
|
||||||
|
<el-table-column label="姓名" align="center" prop="patientName" />
|
||||||
|
<el-table-column label="电话" align="center" prop="patientPhone" />
|
||||||
|
<el-table-column label="身份证号" align="center" prop="cardNo" />
|
||||||
|
<!-- <el-table-column label="家属电话" align="center" prop="familyMemberPhone" /> -->
|
||||||
|
<!-- <el-table-column label="地址" align="center" prop="address" /> -->
|
||||||
|
<el-table-column label="性别" align="center" prop="sex">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.sex == 'MALE' ? '男' : '' }}
|
||||||
|
{{ scope.row.sex == 'FEMALE' ? '女' : '' }}
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- <el-table-column label="出生日期,格式:yyyy-MM-dd" align="center" prop="birthDate" width="180">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.birthDate, '{y}-{m}-{d}') }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="就诊类型,门诊:OUTPATIENT_SERVICE,住院:BE_HOSPITALIZED" align="center" prop="visitType">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<dict-tag :options="dict.type.visit_type" :value="scope.row.visitType" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="所属医院名称" align="center" prop="hospitalAgencyName" />
|
||||||
|
<el-table-column label="所属院区名称" align="center" prop="campusAgencyName" />
|
||||||
|
<el-table-column label="所属科室名称" align="center" prop="departmentName" />
|
||||||
|
<el-table-column label="所属病区名称" align="center" prop="wardName" />-->
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button size="mini" type="text" @click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['unitconfig:visitRecord:edit']">编辑</el-button>
|
||||||
|
<el-button size="mini" type="text" @click="goPatientConfigurationVisitRecords(scope.row)">就诊记录</el-button>
|
||||||
|
<!-- <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['unitconfig:visitRecord: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="500px" append-to-body>
|
||||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||||
|
<el-form-item label="患者姓名" prop="patientName">
|
||||||
|
<el-input v-model="form.patientName" placeholder="请输入患者姓名" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="患者电话" prop="patientPhone">
|
||||||
|
<el-input v-model="form.patientPhone" placeholder="请输入患者电话" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="身份证号" prop="cardNo">
|
||||||
|
<el-input v-model="form.cardNo" placeholder="请输入身份证号" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="所属医院" prop="hospitalAgencyId">
|
||||||
|
<el-select v-model="form.hospitalAgencyId" filterable placeholder="请选择所属医院" style="width:380px" clearable>
|
||||||
|
<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="pat_id" prop="patientId">
|
||||||
|
<el-input v-model="form.patientId" placeholder="" disabled />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="地址" prop="address">
|
||||||
|
<el-input v-model="form.address" placeholder="请输入地址" />
|
||||||
|
</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 { listVisitRecord, getVisitRecord, delVisitRecord, addVisitRecord, updateVisitRecord } from "@/api/unitconfig/patientConfiguration";
|
||||||
|
import { selectAgencyList } from "@/api/manage/selectAgencyList";
|
||||||
|
import { getAge } from "@/utils/age";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "patientConfiguration",
|
||||||
|
dicts: ['visit_type'],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 患者就诊记录基本信息表格数据
|
||||||
|
visitRecordList: [],
|
||||||
|
//医院
|
||||||
|
hospitalAgencylist: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
patientId: null,
|
||||||
|
cardNo: null,
|
||||||
|
patientName: null,
|
||||||
|
patientPhone: null,
|
||||||
|
familyMemberPhone: null,
|
||||||
|
address: null,
|
||||||
|
sex: null,
|
||||||
|
birthDate: null,
|
||||||
|
visitType: null,
|
||||||
|
hospitalAgencyId: null,
|
||||||
|
campusAgencyId: null,
|
||||||
|
departmentId: null,
|
||||||
|
wardId: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
hospitalAgencyId: [
|
||||||
|
{ required: true, message: "所属医院不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
patientName: [
|
||||||
|
{ required: true, message: "患者姓名不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
patientPhone: [
|
||||||
|
{ required: true, message: "患者电话不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
cardNo: [
|
||||||
|
{ required: true, message: "身份证号不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
patientId: [
|
||||||
|
{ required: true, message: "患者表id不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
this.selectAgencyinfo();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询患者就诊记录基本信息列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listVisitRecord(this.queryParams).then(response => {
|
||||||
|
this.visitRecordList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//获取医院list
|
||||||
|
selectAgencyinfo() {
|
||||||
|
let query = {
|
||||||
|
agencyStatus: 'ON',
|
||||||
|
nodeType: 'HOSPITAL',
|
||||||
|
}
|
||||||
|
selectAgencyList(query).then(res => {
|
||||||
|
this.hospitalAgencylist = res.data
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
id: null,
|
||||||
|
patientId: null,
|
||||||
|
cardNo: null,
|
||||||
|
patientName: null,
|
||||||
|
patientPhone: null,
|
||||||
|
familyMemberPhone: null,
|
||||||
|
address: null,
|
||||||
|
sex: null,
|
||||||
|
birthDate: null,
|
||||||
|
age: null,
|
||||||
|
nation: null,
|
||||||
|
visitType: null,
|
||||||
|
visitDate: null,
|
||||||
|
visitName: null,
|
||||||
|
hospitalAgencyId: null,
|
||||||
|
hospitalAgencyName: null,
|
||||||
|
campusAgencyId: null,
|
||||||
|
campusAgencyName: null,
|
||||||
|
departmentId: null,
|
||||||
|
departmentName: null,
|
||||||
|
wardId: null,
|
||||||
|
wardName: null,
|
||||||
|
attendingPhysicianId: null,
|
||||||
|
attendingPhysicianName: null,
|
||||||
|
mainDiagnosis: null,
|
||||||
|
marriage: null,
|
||||||
|
medicalHistoryNarrator: null,
|
||||||
|
admissionTime: null,
|
||||||
|
dischargeTime: null,
|
||||||
|
recordTime: null,
|
||||||
|
outpatientVisitInfo: null,
|
||||||
|
hospitalizationDays: null,
|
||||||
|
inHospitalInfo: null,
|
||||||
|
outHospitalInfo: null,
|
||||||
|
visitSerialNumber: null,
|
||||||
|
inHospitalNumber: null,
|
||||||
|
responsibleNurse: null,
|
||||||
|
surgicalName: null,
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: null
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
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
|
||||||
|
getVisitRecord(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) {
|
||||||
|
updateVisitRecord(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addVisitRecord(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 delVisitRecord(ids);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
}).catch(() => { });
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
this.download('manage/visitRecord/export', {
|
||||||
|
...this.queryParams
|
||||||
|
}, `visitRecord_${new Date().getTime()}.xlsx`)
|
||||||
|
},
|
||||||
|
// 跳转就诊记录
|
||||||
|
goPatientConfigurationVisitRecords(row) {
|
||||||
|
this.$router.push({
|
||||||
|
path: "/unitconfig/PatientConfigurationVisitRecords",
|
||||||
|
query: {
|
||||||
|
patientId: row.id,
|
||||||
|
cardNo: row.cardNo,
|
||||||
|
patientName: row.patientName,
|
||||||
|
patientPhone: row.patientPhone,
|
||||||
|
sex: row.sex,
|
||||||
|
age: row.birthDate ? getAge(row.birthDate) : '',
|
||||||
|
hospitalAgencyId: row.hospitalAgencyId
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
Loading…
Reference in New Issue
Block a user