xg
This commit is contained in:
parent
95102affcc
commit
18368ff9ca
44
src/api/manage/preHospitalized.js
Normal file
44
src/api/manage/preHospitalized.js
Normal file
@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询患者信息列表
|
||||
export function listPatientInfo(query) {
|
||||
return request({
|
||||
url: '/manage/preHospital/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询患者信息详细
|
||||
export function getPatientInfo(id) {
|
||||
return request({
|
||||
url: '/manage/preHospital/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增患者信息
|
||||
export function addPatientInfo(data) {
|
||||
return request({
|
||||
url: '/manage/preHospital',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改患者信息
|
||||
export function updatePatientInfo(data) {
|
||||
return request({
|
||||
url: '/manage/preHospital',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除患者信息
|
||||
export function delPatientInfo(id) {
|
||||
return request({
|
||||
url: '/manage/preHospital/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
@ -148,11 +148,11 @@
|
||||
<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="admissionNumber" width='130' /> -->
|
||||
<!-- <el-table-column label="门诊号" align="center" prop="outpatientNumber" width='130' /> -->
|
||||
<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'>
|
||||
<!-- <el-table-column label="就诊时间" align="center" prop="visitTime" width='130'>
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.visitTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
@ -163,13 +163,13 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="入院时间" align="center" prop="admissionDate" 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="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>-->
|
||||
<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">
|
||||
@ -368,7 +368,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listPatientInfo, getPatientInfo, delPatientInfo, addPatientInfo, updatePatientInfo } from "@/api/manage/patientInfo";
|
||||
import { listPatientInfo, getPatientInfo, delPatientInfo, addPatientInfo, updatePatientInfo } from "@/api/manage/preHospitalized";
|
||||
import { getAge } from "@/utils/age";
|
||||
import { selectAgencyList, getDepartmentList, subordinateAgencyList } from "@/api/manage/selectAgencyList";
|
||||
import { getToken } from '@/utils/auth'
|
||||
@ -586,6 +586,18 @@ export default {
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
if (this.form.hospitalAgencyId) {
|
||||
this.form.hospitalAgencyName = this.hospitalAgencylist.find(e => e.id == this.form.hospitalAgencyId).agencyName
|
||||
}
|
||||
if (this.form.campusAgencyId) {
|
||||
this.form.campusAgencyName = this.form_campusAgencylist.find(e => e.id == this.form.campusAgencyId).agencyName
|
||||
}
|
||||
if (this.form.departmentId) {
|
||||
this.form.departmentName = this.form_departmentlist.find(e => e.id == this.form.departmentId).departmentName
|
||||
}
|
||||
if (this.form.hospitalAgencyId) {
|
||||
this.form.wardName = this.form_wardlist.find(e => e.id == this.form.wardId).departmentName
|
||||
}
|
||||
console.log(this.form)
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
|
||||
@ -614,6 +614,18 @@ export default {
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
if (this.form.hospitalAgencyId) {
|
||||
this.form.hospitalAgencyName = this.hospitalAgencylist.find(e => e.id == this.form.hospitalAgencyId).agencyName
|
||||
}
|
||||
if (this.form.campusAgencyId) {
|
||||
this.form.campusAgencyName = this.form_campusAgencylist.find(e => e.id == this.form.campusAgencyId).agencyName
|
||||
}
|
||||
if (this.form.departmentId) {
|
||||
this.form.departmentName = this.form_departmentlist.find(e => e.id == this.form.departmentId).departmentName
|
||||
}
|
||||
if (this.form.hospitalAgencyId) {
|
||||
this.form.wardName = this.form_wardlist.find(e => e.id == this.form.wardId).departmentName
|
||||
}
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
|
||||
@ -652,6 +652,18 @@ export default {
|
||||
} else if (this.form.visitMethod == 'OUTPATIENT_SERVICE') {
|
||||
this.form.patientType = 'OUTPATIENT'
|
||||
}
|
||||
if (this.form.hospitalAgencyId) {
|
||||
this.form.hospitalAgencyName = this.hospitalAgencylist.find(e => e.id == this.form.hospitalAgencyId).agencyName
|
||||
}
|
||||
if (this.form.campusAgencyId) {
|
||||
this.form.campusAgencyName = this.form_campusAgencylist.find(e => e.id == this.form.campusAgencyId).agencyName
|
||||
}
|
||||
if (this.form.departmentId) {
|
||||
this.form.departmentName = this.form_departmentlist.find(e => e.id == this.form.departmentId).departmentName
|
||||
}
|
||||
if (this.form.hospitalAgencyId) {
|
||||
this.form.wardName = this.form_wardlist.find(e => e.id == this.form.wardId).departmentName
|
||||
}
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user