forked from yoone/WEB
fix(订单列表): 修复物流公司默认值和邮箱地址处理逻辑
修复最优物流显示为最佳物流的问题,并移除默认值 修正origin邮箱地址不应被split的处理逻辑
This commit is contained in:
parent
b04e6954b5
commit
99335ef4f8
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Reference in New Issue