From 99335ef4f8e1f9d9acd897e61715a4baa2843e50 Mon Sep 17 00:00:00 2001 From: zhuotianyuan Date: Thu, 29 Jan 2026 11:47:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=AE=A2=E5=8D=95=E5=88=97=E8=A1=A8):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=89=A9=E6=B5=81=E5=85=AC=E5=8F=B8=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC=E5=92=8C=E9=82=AE=E7=AE=B1=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复最优物流显示为最佳物流的问题,并移除默认值 修正origin邮箱地址不应被split的处理逻辑 --- src/pages/Order/List/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/Order/List/index.tsx b/src/pages/Order/List/index.tsx index fb8459d..9cf4c21 100644 --- a/src/pages/Order/List/index.tsx +++ b/src/pages/Order/List/index.tsx @@ -1202,7 +1202,7 @@ const Shipping: React.FC<{ { label: 'tms.freightwaves', value: 'freightwaves' }, ]); const [courierCompany, setCourierCompany] = useState([ - { label: '最优物流', value: '' }, + { label: '最佳物流', value: '' }, { label: 'UNIUNI', value: 'UNIUNI' }, { label: 'PuroYYZ', value: 'PuroYYZ' }, { label: 'CPYYZ', value: 'CPYYZ' }, @@ -1259,7 +1259,7 @@ const Shipping: React.FC<{ if (shipmentInfo) shipmentInfo = JSON.parse(shipmentInfo); return { shipmentPlatform: 'freightwaves', - courierCompany: '最优物流', + courierCompany: '', ...data, // payment_method_id: shipmentInfo?.payment_method_id, stockPointId: shipmentInfo?.stockPointId, @@ -1323,7 +1323,7 @@ const Shipping: React.FC<{ }} onFinish={async ({ customer_note, notes, items, details, externalOrderId, ...data }) => { details.origin.email_addresses = - details.origin.email_addresses.split(','); + details.origin.email_addresses; details.destination.email_addresses = details.destination.email_addresses.split(','); details.destination.phone_number.number = @@ -1955,7 +1955,7 @@ const Shipping: React.FC<{ const originEmail = details.origin.email_addresses; const destinationEmail = details.destination.email_addresses; details.origin.email_addresses = - details.origin.email_addresses.split(','); + details.origin.email_addresses; details.destination.email_addresses = details.destination.email_addresses.split(','); details.destination.phone_number.number = -- 2.40.1