fix(订单列表): 修复物流公司默认值和邮箱地址处理逻辑 #57

Merged
longbot merged 1 commits from zhuotianyuan/WEB:stable into stable 2026-01-29 03:52:32 +00:00
1 changed files with 4 additions and 4 deletions

View File

@ -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 =