This commit is contained in:
2024-03-28 16:29:34 +08:00
parent 435c34bf28
commit 813bfff9ec
2 changed files with 12 additions and 3 deletions

View File

@ -18,4 +18,11 @@ export function updatePatientInfo(data) {
data: data
})
}
// 查询患者信息详细
export function getPatientInfo(id) {
return request({
url: '/manage/visitRecord/' + id,
method: 'get'
})
}

View File

@ -383,8 +383,8 @@
<script>
import { usergetList } from "@/api/unitconfig/patientConfiguration";
import { listPatientInfo, getPatientInfo, delPatientInfo } from "@/api/manage/patientInfo";
import { addPatientInfo, updatePatientInfo } from "@/api/manage/visit";
import { listPatientInfo, delPatientInfo } from "@/api/manage/patientInfo";
import { addPatientInfo, updatePatientInfo, getPatientInfo } from "@/api/manage/visit";
import { getAge } from "@/utils/age";
import { selectAgencyList, getDepartmentList, getAgencyList } from "@/api/manage/selectAgencyList";
import { getToken } from '@/utils/auth'
@ -420,6 +420,7 @@ export default {
loading: true,
//
ids: [],
patientVisitRecordIds: [],
//
single: true,
//
@ -599,6 +600,7 @@ export default {
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.patientVisitRecordIds = selection.map(item => item.patientVisitRecordId)
this.single = selection.length !== 1
this.multiple = !selection.length
},
@ -611,7 +613,7 @@ export default {
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
const id = row.patientVisitRecordId || this.patientVisitRecordIds
getPatientInfo(id).then(response => {
this.form = response.data;
if (this.form.hospitalAgencyId) {