diff --git a/src/api/types.ts b/src/api/types.ts index ac3ab1f..3f38a5d 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -514,10 +514,12 @@ export type DaojiandanPrintStatusResponse = CommonActionResult { - const phoneValue = phone === '—' ? '' : phone.trim(); - - if (!phoneValue) { - setEditMessage('联系电话不能为空'); + const idNo = customerInfo?.id_no; + if (!idNo) { + setEditMessage('无法获取证件号,请稍后重试'); return; } @@ -126,8 +132,9 @@ export const ExamDetailPanel = ({ try { const res = await editCustomerDetail({ + id_no: idNo, + phone: phone.trim(), marital_status: maritalCode, - phone: phoneValue, }); if (res.Status === 200) {