fix(订单列表): 修复物流公司默认值和邮箱地址处理逻辑 #57
|
|
@ -1202,7 +1202,7 @@ const Shipping: React.FC<{
|
||||||
{ label: 'tms.freightwaves', value: 'freightwaves' },
|
{ label: 'tms.freightwaves', value: 'freightwaves' },
|
||||||
]);
|
]);
|
||||||
const [courierCompany, setCourierCompany] = useState([
|
const [courierCompany, setCourierCompany] = useState([
|
||||||
{ label: '最优物流', value: '' },
|
{ label: '最佳物流', value: '' },
|
||||||
{ label: 'UNIUNI', value: 'UNIUNI' },
|
{ label: 'UNIUNI', value: 'UNIUNI' },
|
||||||
{ label: 'PuroYYZ', value: 'PuroYYZ' },
|
{ label: 'PuroYYZ', value: 'PuroYYZ' },
|
||||||
{ label: 'CPYYZ', value: 'CPYYZ' },
|
{ label: 'CPYYZ', value: 'CPYYZ' },
|
||||||
|
|
@ -1259,7 +1259,7 @@ const Shipping: React.FC<{
|
||||||
if (shipmentInfo) shipmentInfo = JSON.parse(shipmentInfo);
|
if (shipmentInfo) shipmentInfo = JSON.parse(shipmentInfo);
|
||||||
return {
|
return {
|
||||||
shipmentPlatform: 'freightwaves',
|
shipmentPlatform: 'freightwaves',
|
||||||
courierCompany: '最优物流',
|
courierCompany: '',
|
||||||
...data,
|
...data,
|
||||||
// payment_method_id: shipmentInfo?.payment_method_id,
|
// payment_method_id: shipmentInfo?.payment_method_id,
|
||||||
stockPointId: shipmentInfo?.stockPointId,
|
stockPointId: shipmentInfo?.stockPointId,
|
||||||
|
|
@ -1323,7 +1323,7 @@ const Shipping: React.FC<{
|
||||||
}}
|
}}
|
||||||
onFinish={async ({ customer_note, notes, items, details, externalOrderId, ...data }) => {
|
onFinish={async ({ customer_note, notes, items, details, externalOrderId, ...data }) => {
|
||||||
details.origin.email_addresses =
|
details.origin.email_addresses =
|
||||||
details.origin.email_addresses.split(',');
|
details.origin.email_addresses;
|
||||||
details.destination.email_addresses =
|
details.destination.email_addresses =
|
||||||
details.destination.email_addresses.split(',');
|
details.destination.email_addresses.split(',');
|
||||||
details.destination.phone_number.number =
|
details.destination.phone_number.number =
|
||||||
|
|
@ -1955,7 +1955,7 @@ const Shipping: React.FC<{
|
||||||
const originEmail = details.origin.email_addresses;
|
const originEmail = details.origin.email_addresses;
|
||||||
const destinationEmail = details.destination.email_addresses;
|
const destinationEmail = details.destination.email_addresses;
|
||||||
details.origin.email_addresses =
|
details.origin.email_addresses =
|
||||||
details.origin.email_addresses.split(',');
|
details.origin.email_addresses;
|
||||||
details.destination.email_addresses =
|
details.destination.email_addresses =
|
||||||
details.destination.email_addresses.split(',');
|
details.destination.email_addresses.split(',');
|
||||||
details.destination.phone_number.number =
|
details.destination.phone_number.number =
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue