这个编辑按钮功能展示的数据为什么会不全,已确认状态下的数据展示不全。
This commit is contained in:
@@ -134,7 +134,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="结束" width="70" align="center">
|
||||
<template #default="scope">
|
||||
<el-checkbox :model-value="scope.row.consultationStatus >= 40" disabled />
|
||||
<el-checkbox :model-value="scope.row.consultationStatus === 40" disabled />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="200" fixed="right" align="center">
|
||||
@@ -387,22 +387,36 @@ const queryParams = reactive({
|
||||
const formData = ref({
|
||||
id: null,
|
||||
consultationId: '',
|
||||
patientId: null,
|
||||
patientName: '',
|
||||
genderEnum: null,
|
||||
age: null,
|
||||
patientBusNo: '',
|
||||
patientIdentifierNo: '',
|
||||
requestingPhysician: '',
|
||||
consultationDate: '',
|
||||
encounterId: null,
|
||||
departmentId: null,
|
||||
department: '',
|
||||
provisionalDiagnosis: '',
|
||||
consultationPurpose: '',
|
||||
requestingPhysicianId: null,
|
||||
requestingPhysician: '',
|
||||
invitedObject: '',
|
||||
consultationDate: '',
|
||||
consultationRequestDate: null,
|
||||
consultationPurpose: '',
|
||||
provisionalDiagnosis: '',
|
||||
consultationActivityId: null,
|
||||
consultationActivityName: '',
|
||||
consultationUrgency: '',
|
||||
consultationStatus: 0,
|
||||
consultationOpinion: '',
|
||||
consultingPhysicians: '',
|
||||
signingPhysicianId: null,
|
||||
signingPhysicianName: '',
|
||||
signingTime: null,
|
||||
invitedPhysiciansText: '',
|
||||
attendingPhysician: '',
|
||||
representDepartment: '',
|
||||
signPhysician: '',
|
||||
signTime: null,
|
||||
consultationRequestDate: null
|
||||
signTime: null
|
||||
})
|
||||
|
||||
const formRules = {
|
||||
@@ -513,15 +527,83 @@ const handleEdit = (row) => {
|
||||
ElMessage.warning('已结束的会诊申请不可编辑')
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
isViewMode.value = false
|
||||
formData.value = { ...row }
|
||||
// 确保所有字段都复制到formData中
|
||||
formData.value = {
|
||||
id: row.id || null,
|
||||
consultationId: row.consultationId || '',
|
||||
patientId: row.patientId || null,
|
||||
patientName: row.patientName || '',
|
||||
genderEnum: row.genderEnum || null,
|
||||
age: row.age || null,
|
||||
patientBusNo: row.patientBusNo || '',
|
||||
patientIdentifierNo: row.patientIdentifierNo || '',
|
||||
encounterId: row.encounterId || null,
|
||||
departmentId: row.departmentId || null,
|
||||
department: row.department || '',
|
||||
requestingPhysicianId: row.requestingPhysicianId || null,
|
||||
requestingPhysician: row.requestingPhysician || '',
|
||||
invitedObject: row.invitedObject || '',
|
||||
consultationDate: row.consultationDate || '',
|
||||
consultationRequestDate: row.consultationRequestDate || null,
|
||||
consultationPurpose: row.consultationPurpose || '',
|
||||
provisionalDiagnosis: row.provisionalDiagnosis || '',
|
||||
consultationActivityId: row.consultationActivityId || null,
|
||||
consultationActivityName: row.consultationActivityName || '',
|
||||
consultationUrgency: row.consultationUrgency || '',
|
||||
consultationStatus: row.consultationStatus || 0,
|
||||
consultationOpinion: row.consultationOpinion || '',
|
||||
consultingPhysicians: row.consultingPhysicians || '',
|
||||
signingPhysicianId: row.signingPhysicianId || null,
|
||||
signingPhysicianName: row.signingPhysicianName || '',
|
||||
signingTime: row.signingTime || null,
|
||||
invitedPhysiciansText: row.invitedPhysiciansText || '',
|
||||
attendingPhysician: row.attendingPhysician || '',
|
||||
representDepartment: row.representDepartment || '',
|
||||
signPhysician: row.signPhysician || '',
|
||||
signTime: row.signTime || null
|
||||
}
|
||||
dialogVisible.value = true
|
||||
}
|
||||
|
||||
const handleView = (row) => {
|
||||
isViewMode.value = true
|
||||
formData.value = { ...row }
|
||||
// 确保所有字段都复制到formData中
|
||||
formData.value = {
|
||||
id: row.id || null,
|
||||
consultationId: row.consultationId || '',
|
||||
patientId: row.patientId || null,
|
||||
patientName: row.patientName || '',
|
||||
genderEnum: row.genderEnum || null,
|
||||
age: row.age || null,
|
||||
patientBusNo: row.patientBusNo || '',
|
||||
patientIdentifierNo: row.patientIdentifierNo || '',
|
||||
encounterId: row.encounterId || null,
|
||||
departmentId: row.departmentId || null,
|
||||
department: row.department || '',
|
||||
requestingPhysicianId: row.requestingPhysicianId || null,
|
||||
requestingPhysician: row.requestingPhysician || '',
|
||||
invitedObject: row.invitedObject || '',
|
||||
consultationDate: row.consultationDate || '',
|
||||
consultationRequestDate: row.consultationRequestDate || null,
|
||||
consultationPurpose: row.consultationPurpose || '',
|
||||
provisionalDiagnosis: row.provisionalDiagnosis || '',
|
||||
consultationActivityId: row.consultationActivityId || null,
|
||||
consultationActivityName: row.consultationActivityName || '',
|
||||
consultationUrgency: row.consultationUrgency || '',
|
||||
consultationStatus: row.consultationStatus || 0,
|
||||
consultationOpinion: row.consultationOpinion || '',
|
||||
consultingPhysicians: row.consultingPhysicians || '',
|
||||
signingPhysicianId: row.signingPhysicianId || null,
|
||||
signingPhysicianName: row.signingPhysicianName || '',
|
||||
signingTime: row.signingTime || null,
|
||||
invitedPhysiciansText: row.invitedPhysiciansText || '',
|
||||
attendingPhysician: row.attendingPhysician || '',
|
||||
representDepartment: row.representDepartment || '',
|
||||
signPhysician: row.signPhysician || '',
|
||||
signTime: row.signTime || null
|
||||
}
|
||||
dialogVisible.value = true
|
||||
}
|
||||
|
||||
@@ -530,22 +612,36 @@ const handleDialogClose = () => {
|
||||
formData.value = {
|
||||
id: null,
|
||||
consultationId: '',
|
||||
patientId: null,
|
||||
patientName: '',
|
||||
genderEnum: null,
|
||||
age: null,
|
||||
patientBusNo: '',
|
||||
patientIdentifierNo: '',
|
||||
requestingPhysician: '',
|
||||
consultationDate: '',
|
||||
encounterId: null,
|
||||
departmentId: null,
|
||||
department: '',
|
||||
provisionalDiagnosis: '',
|
||||
consultationPurpose: '',
|
||||
requestingPhysicianId: null,
|
||||
requestingPhysician: '',
|
||||
invitedObject: '',
|
||||
consultationDate: '',
|
||||
consultationRequestDate: null,
|
||||
consultationPurpose: '',
|
||||
provisionalDiagnosis: '',
|
||||
consultationActivityId: null,
|
||||
consultationActivityName: '',
|
||||
consultationUrgency: '',
|
||||
consultationStatus: 0,
|
||||
consultationOpinion: '',
|
||||
consultingPhysicians: '',
|
||||
signingPhysicianId: null,
|
||||
signingPhysicianName: '',
|
||||
signingTime: null,
|
||||
invitedPhysiciansText: '',
|
||||
attendingPhysician: '',
|
||||
representDepartment: '',
|
||||
signPhysician: '',
|
||||
signTime: null,
|
||||
consultationRequestDate: null
|
||||
signTime: null
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user