diff --git a/src/pages/Order/List/index.tsx b/src/pages/Order/List/index.tsx index 082aa39..9b5d061 100644 --- a/src/pages/Order/List/index.tsx +++ b/src/pages/Order/List/index.tsx @@ -77,6 +77,7 @@ import { } from 'antd'; import React, { useMemo, useRef, useState } from 'react'; import RelatedOrders from '../../Subscription/Orders/RelatedOrders'; +import dayjs from 'dayjs'; const ListPage: 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,8 @@ const Shipping: React.FC<{ }, }, }; + console.log('data',a) + return a }} onFinish={async ({ customer_note, @@ -1441,7 +1449,18 @@ const Shipping: React.FC<{ } }} > - + + + + + + { + onChange={(row) => { + console.log(row); + const { + address, + phone_number, + phone_number_extension, + stockPointId, + } = row; formRef?.current?.setFieldsValue({ stockPointId, + // address_id: row.id, details: { origin: { + address, phone_number: { phone: phone_number, @@ -1595,6 +1618,11 @@ const Shipping: React.FC<{ /> } > + {/* */}