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