Fix: Fix shipment fee error #10
|
|
@ -1759,8 +1759,7 @@ const Shipping: React.FC<{
|
||||||
loading={ratesLoading}
|
loading={ratesLoading}
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
try {
|
try {
|
||||||
console.log('test', formRef.current?.getFieldsValue());
|
const { customer_note, notes, items, details, externalOrderId, ...data } = formRef.current?.getFieldsValue();
|
||||||
const { customer_note, notes, items, details, ...data } = formRef.current?.getFieldsValue();
|
|
||||||
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 =
|
||||||
|
|
@ -1777,7 +1776,6 @@ const Shipping: React.FC<{
|
||||||
...data
|
...data
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
console.log('res', res.data);
|
|
||||||
if (!res?.success) throw new Error(res?.errMsg);
|
if (!res?.success) throw new Error(res?.errMsg);
|
||||||
const fee = res.data;
|
const fee = res.data;
|
||||||
setShipmentFee(fee);
|
setShipmentFee(fee);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue