Fix: Fix shipment fee error #10

Merged
longbot merged 1 commits from longbot/WEB:Feature-add-shipment into main 2025-08-16 03:38:32 +00:00
1 changed files with 1 additions and 3 deletions

View File

@ -1759,8 +1759,7 @@ const Shipping: React.FC<{
loading={ratesLoading}
onClick={async () => {
try {
console.log('test', formRef.current?.getFieldsValue());
const { customer_note, notes, items, details, ...data } = formRef.current?.getFieldsValue();
const { customer_note, notes, items, details, externalOrderId, ...data } = formRef.current?.getFieldsValue();
const originEmail = details.origin.email_addresses;
const destinationEmail = details.destination.email_addresses;
details.origin.email_addresses =
@ -1777,7 +1776,6 @@ const Shipping: React.FC<{
...data
},
);
console.log('res', res.data);
if (!res?.success) throw new Error(res?.errMsg);
const fee = res.data;
setShipmentFee(fee);