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 data: data
}) })
} }
// 查询患者信息详细
export function getPatientInfo(id) {
return request({
url: '/manage/visitRecord/' + id,
method: 'get'
})
}

View File

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