From 1d9838f72e01d37c3bd6315167223eeeac59bab6 Mon Sep 17 00:00:00 2001 From: zhuotianyuan Date: Thu, 22 Jan 2026 17:30:52 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=AE=A2=E5=8D=95):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=8F=91=E8=B4=A7=E5=B9=B3=E5=8F=B0=E9=80=89=E6=8B=A9=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=B9=B6=E4=BC=98=E5=8C=96=E8=A1=A8=E5=8D=95=E9=AA=8C?= =?UTF-8?q?=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在发货表单中新增发货平台选择器 - 将公司名称字段改为非必填 - 添加控制台日志用于调试 - 优化地址选择器的数据处理逻辑 --- src/pages/Order/List/index.tsx | 56 +++++++++++++++++++++++++++------- 1 file changed, 45 insertions(+), 11 deletions(-) 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<{ /> } > + {/* */}