Compare commits
3 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
84ec4f5895 | |
|
|
82e0df6d43 | |
|
|
2245c71702 |
|
|
@ -83,6 +83,7 @@ import Item from 'antd/es/list/Item';
|
|||
import RelatedOrders from '../../Subscription/Orders/RelatedOrders';
|
||||
import React, { useMemo, useRef, useState } from 'react';
|
||||
import { printPDF } from '@/utils/util';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
const ListPage: React.FC = () => {
|
||||
const actionRef = useRef<ActionType>();
|
||||
|
|
@ -195,6 +196,19 @@ const ListPage: React.FC = () => {
|
|||
value: item.id,
|
||||
}));
|
||||
},
|
||||
render: (_, record) => {
|
||||
const siteNameArr = {
|
||||
1: 'Togovape',
|
||||
2: 'CanPouches',
|
||||
3: 'ZYN-Pouches',
|
||||
4: 'Togopouches',
|
||||
5: 'Yoonepouches',
|
||||
6: 'CanPouches_co',
|
||||
7: 'Canadapouch',
|
||||
8: 'Zoltpouches'
|
||||
};
|
||||
return siteNameArr[record.siteId];
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '订单包含',
|
||||
|
|
@ -1183,7 +1197,10 @@ const Shipping: React.FC<{
|
|||
const [rates, setRates] = useState<API.RateDTO[]>([]);
|
||||
const [ratesLoading, setRatesLoading] = useState(false);
|
||||
const { message } = App.useApp();
|
||||
|
||||
const [shipmentPlatforms, setShipmentPlatforms] = useState([
|
||||
{ label: 'uniuni', value: 'uniuni' },
|
||||
{ label: 'tms.freightwaves', value: 'freightwaves' },
|
||||
]);
|
||||
return (
|
||||
<ModalForm
|
||||
formRef={formRef}
|
||||
|
|
@ -1234,6 +1251,7 @@ const Shipping: React.FC<{
|
|||
let shipmentInfo = localStorage.getItem('shipmentInfo');
|
||||
if (shipmentInfo) shipmentInfo = JSON.parse(shipmentInfo);
|
||||
return {
|
||||
shipmentPlatform: 'freightwaves',
|
||||
...data,
|
||||
// payment_method_id: shipmentInfo?.payment_method_id,
|
||||
stockPointId: shipmentInfo?.stockPointId,
|
||||
|
|
@ -1347,6 +1365,18 @@ const Shipping: React.FC<{
|
|||
}
|
||||
}}
|
||||
>
|
||||
|
||||
<Row gutter={16}>
|
||||
<Col span={8}>
|
||||
<ProFormSelect
|
||||
name="shipmentPlatform"
|
||||
label="发货平台"
|
||||
options={shipmentPlatforms}
|
||||
placeholder="请选择发货平台"
|
||||
rules={[{ required: true, message: '请选择一个选项' }]}
|
||||
/>
|
||||
</Col>
|
||||
</Row>
|
||||
<ProFormText
|
||||
label="订单号"
|
||||
readonly
|
||||
|
|
|
|||
Loading…
Reference in New Issue