diff --git a/src/pages/Logistics/Address/index.tsx b/src/pages/Logistics/Address/index.tsx index dde2f26..b99a2aa 100644 --- a/src/pages/Logistics/Address/index.tsx +++ b/src/pages/Logistics/Address/index.tsx @@ -393,6 +393,14 @@ const UpdateForm: React.FC<{ })); }} /> + + + { const actionRef = useRef(); @@ -1267,7 +1268,10 @@ const Shipping: React.FC<{ const [rates, setRates] = useState([]); const [ratesLoading, setRatesLoading] = useState(false); const { message } = App.useApp(); - +const [shipmentPlatforms, setShipmentPlatforms] = useState([ + { label: 'uniuni', value: 'uniuni' }, + { label: 'tms.freightwaves', value: 'freightwaves' }, + ]); return ( { @@ -1318,7 +1323,8 @@ const Shipping: React.FC<{ if (reShipping) data.sales = [{}]; let shipmentInfo = localStorage.getItem('shipmentInfo'); if (shipmentInfo) shipmentInfo = JSON.parse(shipmentInfo); - return { + const a = { + shipmentPlatform: 'uniuni', ...data, // payment_method_id: shipmentInfo?.payment_method_id, stockPointId: shipmentInfo?.stockPointId, @@ -1378,6 +1384,7 @@ const Shipping: React.FC<{ }, }, }; + return a }} onFinish={async ({ customer_note, @@ -1441,7 +1448,18 @@ const Shipping: React.FC<{ } }} > - + + + + + + { + onChange={(row) => { + console.log(row); + const { + address, + phone_number, + phone_number_extension, + stockPointId, + email, + } = row; formRef?.current?.setFieldsValue({ stockPointId, + // address_id: row.id, details: { origin: { + email_addresses:email, address, phone_number: { phone: phone_number, @@ -1595,6 +1618,11 @@ const Shipping: React.FC<{ /> } > + {/* */} { {categoryAttributes.map(attr => (
{attr.title}: -