Fix: Fix shipment fee error

This commit is contained in:
黄珑 2025-08-16 11:36:51 +08:00
parent 2cc36e065b
commit b9449c3a8a
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);