From cd93c5a87772d52e67ea845d1ca05309452e111f Mon Sep 17 00:00:00 2001 From: xianyi Date: Mon, 12 Jan 2026 11:10:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9B=B4=E6=96=B0=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E4=BF=A1=E6=81=AF=E6=97=B6=E8=AF=81=E4=BB=B6=E5=8F=B7?= =?UTF-8?q?=E5=BF=85=E5=A1=AB=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/types.ts | 6 ++++-- src/components/exam/ExamDetailPanel.tsx | 17 ++++++++++++----- 2 files changed, 16 insertions(+), 7 deletions(-) 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) {