优化更新患者信息的接口调用,调整错误提示信息
This commit is contained in:
@@ -216,7 +216,13 @@ const U2: React.FC = () => {
|
|||||||
// `Updating patient info: id_no=${idCardNo}, marital_status=${selectedMarital}, province=${provinceCode}, city=${cityCode}, county=${countyCode}, address=${address}, id_no_pic size=${blob.size}`
|
// `Updating patient info: id_no=${idCardNo}, marital_status=${selectedMarital}, province=${provinceCode}, city=${cityCode}, county=${countyCode}, address=${address}, id_no_pic size=${blob.size}`
|
||||||
// );
|
// );
|
||||||
// 调用带图片的更新接口(传入推断的省市县编码)
|
// 调用带图片的更新接口(传入推断的省市县编码)
|
||||||
return updatePatientInfo(idCardNo, selectedMarital, address, blob, idCardData.life_end);
|
return updatePatientInfo(
|
||||||
|
idCardNo,
|
||||||
|
selectedMarital,
|
||||||
|
address,
|
||||||
|
blob,
|
||||||
|
idCardData.life_end
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
tryUploadWithPhoto()
|
tryUploadWithPhoto()
|
||||||
@@ -364,7 +370,7 @@ const U2: React.FC = () => {
|
|||||||
</div>
|
</div>
|
||||||
{patientInfo?.is_valid_exam !== 1 ? (
|
{patientInfo?.is_valid_exam !== 1 ? (
|
||||||
<div className="u2-error-msg">
|
<div className="u2-error-msg">
|
||||||
未查询到您当日的体检预约信息,建议核对预约日期!
|
未查询到您的档案信息,详情请咨询前台工作人员!
|
||||||
</div>
|
</div>
|
||||||
) : patientInfo?.is_update_patient_info === 1 &&
|
) : patientInfo?.is_update_patient_info === 1 &&
|
||||||
selectedMarital === null ? (
|
selectedMarital === null ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user