Fix Bug #413: 医生个人报卡编辑/查看界面字段映射与后端DTO不一致导致数据不显示
后端 InfectiousCardDto 字段名与前端 showReport 映射不匹配: - caseClass 应从 diseaseType 映射 (后端 diseaseType=病例分类) - diseaseType 应从 diseaseSubtype 映射 (后端 diseaseSubtype=疾病分型) - correctName 应从 revisedDiseaseName 映射 - withdrawReason 应从 returnReason 映射 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -1071,7 +1071,7 @@ function showReport(reportData = {}, readOnly = true) {
|
|||||||
addressHouse: reportData.addressHouse || '',
|
addressHouse: reportData.addressHouse || '',
|
||||||
patientBelong: reportData.patientBelong || 1,
|
patientBelong: reportData.patientBelong || 1,
|
||||||
occupation: reportData.occupation || '',
|
occupation: reportData.occupation || '',
|
||||||
caseClass: reportData.caseClass != null ? String(reportData.caseClass) : '',
|
caseClass: reportData.diseaseType != null ? String(reportData.diseaseType) : '',
|
||||||
onsetDate: normalizeDate(reportData.onsetDate),
|
onsetDate: normalizeDate(reportData.onsetDate),
|
||||||
diagDate: normalizeDate(reportData.diagDate),
|
diagDate: normalizeDate(reportData.diagDate),
|
||||||
deathDate: normalizeDate(reportData.deathDate),
|
deathDate: normalizeDate(reportData.deathDate),
|
||||||
@@ -1080,13 +1080,13 @@ function showReport(reportData = {}, readOnly = true) {
|
|||||||
selectedClassB: diseaseSelection.selectedClassB,
|
selectedClassB: diseaseSelection.selectedClassB,
|
||||||
selectedClassC: diseaseSelection.selectedClassC,
|
selectedClassC: diseaseSelection.selectedClassC,
|
||||||
otherDisease: reportData.otherDisease || (diseaseCode === 'OTHER' ? reportData.diseaseName || '' : ''),
|
otherDisease: reportData.otherDisease || (diseaseCode === 'OTHER' ? reportData.diseaseName || '' : ''),
|
||||||
diseaseType: reportData.diseaseType || '',
|
diseaseType: reportData.diseaseSubtype || '',
|
||||||
reportOrg: reportData.reportOrg || '',
|
reportOrg: reportData.reportOrg || '',
|
||||||
reportOrgPhone: reportData.reportOrgPhone || '',
|
reportOrgPhone: reportData.reportOrgPhone || '',
|
||||||
reportDoc: reportData.reportDoc || '',
|
reportDoc: reportData.reportDoc || '',
|
||||||
reportDate: normalizeDate(reportData.reportDate || reportData.createdAt),
|
reportDate: normalizeDate(reportData.reportDate || reportData.createdAt),
|
||||||
correctName: reportData.correctName || '',
|
correctName: reportData.revisedDiseaseName || '',
|
||||||
withdrawReason: reportData.withdrawReason || '',
|
withdrawReason: reportData.returnReason || '',
|
||||||
remark: reportData.remark || '',
|
remark: reportData.remark || '',
|
||||||
encounterId: reportData.encounterId || reportData.visitId || '',
|
encounterId: reportData.encounterId || reportData.visitId || '',
|
||||||
patientId: reportData.patientId || reportData.patId || '',
|
patientId: reportData.patientId || reportData.patId || '',
|
||||||
|
|||||||
Reference in New Issue
Block a user