346 患者列表:修改患者信息时,必填项“就诊卡号”数据未回填/显示为空
This commit is contained in:
@@ -3,42 +3,9 @@
|
|||||||
<mapper namespace="com.openhis.web.patientmanage.mapper.PatientManageMapper">
|
<mapper namespace="com.openhis.web.patientmanage.mapper.PatientManageMapper">
|
||||||
<!-- 病人信息相关查询-->
|
<!-- 病人信息相关查询-->
|
||||||
<select id="getPatientPage" resultType="com.openhis.web.patientmanage.dto.PatientBaseInfoDto">
|
<select id="getPatientPage" resultType="com.openhis.web.patientmanage.dto.PatientBaseInfoDto">
|
||||||
SELECT T1.tenant_id,
|
SELECT
|
||||||
T1.id,
|
pt.identifier_no,
|
||||||
T1.active_flag,
|
pt.tenant_id,
|
||||||
T1.temp_flag,
|
|
||||||
T1.name,
|
|
||||||
T1.name_json,
|
|
||||||
T1.bus_no,
|
|
||||||
T1.gender_enum,
|
|
||||||
T1.birth_date,
|
|
||||||
T1.deceased_date,
|
|
||||||
T1.marital_status_enum,
|
|
||||||
T1.prfs_enum,
|
|
||||||
T1.phone,
|
|
||||||
T1.address,
|
|
||||||
T1.address_province,
|
|
||||||
T1.address_city,
|
|
||||||
T1.address_district,
|
|
||||||
T1.address_street,
|
|
||||||
T1.address_json,
|
|
||||||
T1.nationality_code,
|
|
||||||
T1.id_card,
|
|
||||||
T1.py_str,
|
|
||||||
T1.wb_str,
|
|
||||||
T1.blood_abo,
|
|
||||||
T1.blood_rh,
|
|
||||||
T1.work_company,
|
|
||||||
T1.native_place,
|
|
||||||
T1.country_code,
|
|
||||||
T1.link_name,
|
|
||||||
T1.link_relation_code,
|
|
||||||
T1.link_telcom,
|
|
||||||
T1.link_jsons,
|
|
||||||
T1.organization_id,
|
|
||||||
T1.create_time
|
|
||||||
FROM (
|
|
||||||
SELECT pt.tenant_id,
|
|
||||||
pt.id,
|
pt.id,
|
||||||
pt.active_flag,
|
pt.active_flag,
|
||||||
pt.temp_flag,
|
pt.temp_flag,
|
||||||
@@ -72,11 +39,54 @@
|
|||||||
pt.link_jsons,
|
pt.link_jsons,
|
||||||
pt.organization_id,
|
pt.organization_id,
|
||||||
pt.create_time
|
pt.create_time
|
||||||
FROM adm_patient pt
|
FROM (
|
||||||
where pt.delete_flag = '0'
|
SELECT
|
||||||
ORDER BY pt.bus_no DESC
|
(
|
||||||
) AS T1
|
SELECT api.identifier_no
|
||||||
|
FROM adm_patient_identifier api
|
||||||
|
WHERE api.tenant_id = p.tenant_id
|
||||||
|
AND api.patient_id = p.id
|
||||||
|
LIMIT 1
|
||||||
|
) AS identifier_no,
|
||||||
|
p.tenant_id,
|
||||||
|
p.id,
|
||||||
|
p.active_flag,
|
||||||
|
p.temp_flag,
|
||||||
|
p.name,
|
||||||
|
p.name_json,
|
||||||
|
p.bus_no,
|
||||||
|
p.gender_enum,
|
||||||
|
p.birth_date,
|
||||||
|
p.deceased_date,
|
||||||
|
p.marital_status_enum,
|
||||||
|
p.prfs_enum,
|
||||||
|
p.phone,
|
||||||
|
p.address,
|
||||||
|
p.address_province,
|
||||||
|
p.address_city,
|
||||||
|
p.address_district,
|
||||||
|
p.address_street,
|
||||||
|
p.address_json,
|
||||||
|
p.nationality_code,
|
||||||
|
p.id_card,
|
||||||
|
p.py_str,
|
||||||
|
p.wb_str,
|
||||||
|
p.blood_abo,
|
||||||
|
p.blood_rh,
|
||||||
|
p.work_company,
|
||||||
|
p.native_place,
|
||||||
|
p.country_code,
|
||||||
|
p.link_name,
|
||||||
|
p.link_relation_code,
|
||||||
|
p.link_telcom,
|
||||||
|
p.link_jsons,
|
||||||
|
p.organization_id,
|
||||||
|
p.create_time
|
||||||
|
FROM adm_patient p
|
||||||
|
where p.delete_flag = '0'
|
||||||
|
) AS pt
|
||||||
${ew.customSqlSegment}
|
${ew.customSqlSegment}
|
||||||
|
ORDER BY pt.bus_no DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getPatientIdInfo" resultType="com.openhis.web.patientmanage.dto.PatientIdInfoDto">
|
<select id="getPatientIdInfo" resultType="com.openhis.web.patientmanage.dto.PatientIdInfoDto">
|
||||||
|
|||||||
@@ -124,7 +124,7 @@
|
|||||||
<el-row :gutter="10">
|
<el-row :gutter="10">
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="就诊卡号" prop="identifierNo">
|
<el-form-item label="就诊卡号" prop="identifierNo">
|
||||||
<el-input v-model="form.identifierNo" clearable :disabled="isViewMode" />
|
<el-input v-model="form.identifierNo" clearable :disabled="isEditMode || isViewMode" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
@@ -1421,6 +1421,11 @@ function setFormData(rowData) {
|
|||||||
// 深拷贝数据以避免引用问题
|
// 深拷贝数据以避免引用问题
|
||||||
form.value = JSON.parse(JSON.stringify(rowData));
|
form.value = JSON.parse(JSON.stringify(rowData));
|
||||||
|
|
||||||
|
// 从 patientIdInfoList 中获取 identifierNo(就诊卡号实际存储在此处)
|
||||||
|
if (rowData.patientIdInfoList && rowData.patientIdInfoList.length > 0) {
|
||||||
|
form.value.identifierNo = rowData.patientIdInfoList[0].identifierNo;
|
||||||
|
}
|
||||||
|
|
||||||
// 确保性别值为字符串类型,以便与下拉框选项匹配
|
// 确保性别值为字符串类型,以便与下拉框选项匹配
|
||||||
if (form.value.genderEnum !== undefined && form.value.genderEnum !== null) {
|
if (form.value.genderEnum !== undefined && form.value.genderEnum !== null) {
|
||||||
form.value.genderEnum = String(form.value.genderEnum);
|
form.value.genderEnum = String(form.value.genderEnum);
|
||||||
|
|||||||
Reference in New Issue
Block a user