xg
This commit is contained in:
parent
435c34bf28
commit
813bfff9ec
@ -18,4 +18,11 @@ export function updatePatientInfo(data) {
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 查询患者信息详细
|
||||
export function getPatientInfo(id) {
|
||||
return request({
|
||||
url: '/manage/visitRecord/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user