fix(template): 修复病床号字段赋值逻辑

- 在DischargeDiagnosisCertificate.vue中修复病床号拼接逻辑,避免undefined值导致显示异常
- 在inHospitalSurgicalRecord.vue中修复病床号拼接逻辑,避免undefined值导致显示异常
- 在inHosptialCommunicate.vue中修复病床号拼接逻辑,避免undefined值导致显示异常
- 使用条件判断确保只有当houseName和bedName都存在时才进行拼接操作
This commit is contained in:
2026-06-03 16:06:10 +08:00
parent 4034f05412
commit 572493002c
3 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
<template>
<template>
<div class="medical-form">
<div class="patient-name">
患者姓名{{ patient?.patientName || '未知' }} &nbsp;&nbsp; 病历号{{
@@ -294,7 +294,7 @@ onMounted(() => {
formData.department = patient?.inHospitalOrgName || '';
}
if (!formData.bedNo) {
formData.bedNo = patient?.houseName + '-' + patient?.bedName;
formData.bedNo = (patient?.houseName && patient?.bedName ? patient.houseName + '-' + patient.bedName : '');
}
if (!formData.busNo) {
formData.busNo = patient?.busNo || '';

View File

@@ -1,4 +1,4 @@
<template>
<template>
<div class="medical-document">
<!-- 标题区域 -->
<div class="doc-header">
@@ -591,7 +591,7 @@ onMounted(() => {
formData.department = patient?.inHospitalOrgName || '';
}
if (!formData.bedNo) {
formData.bedNo = patient?.houseName + '-' + patient?.bedName;
formData.bedNo = (patient?.houseName && patient?.bedName ? patient.houseName + '-' + patient.bedName : '');
}
if (!formData.busNo) {
formData.busNo = patient?.busNo || '';

View File

@@ -1,4 +1,4 @@
<template>
<template>
<div class="medical-document">
<!-- 标题区域 -->
<div class="doc-header">
@@ -404,7 +404,7 @@ onMounted(() => {
formData.department = patient?.inHospitalOrgName || '';
}
if (!formData.bedNo) {
formData.bedNo = patient?.houseName + '-' + patient?.bedName;
formData.bedNo = (patient?.houseName && patient?.bedName ? patient.houseName + '-' + patient.bedName : '');
}
});
const patient = props.patientInfo;