Commit 73114f7c authored by leimo's avatar leimo

Merge branch '20418order' into 'v2-220418'

数量 See merge request linkseeks-design/pro-platform!469
parents ae0c378f 3f8292df
...@@ -10,7 +10,7 @@ import { ...@@ -10,7 +10,7 @@ import {
DeliveryDateLabel, DeliveryGood, DeliveryInfo, DeliveryNameLabel, DeliveryNoLabel, DeliveryDateLabel, DeliveryGood, DeliveryInfo, DeliveryNameLabel, DeliveryNoLabel,
DeliveryPhoneLabel, DeliverySlefAddrLabel, DeliveryTimeLabel, DeliveryTypeLabel, DeliveryPhoneLabel, DeliverySlefAddrLabel, DeliveryTimeLabel, DeliveryTypeLabel,
Distribution, ExternalRoamRecord, Harvest, LogisticsCarNoLabel, LogisticsCompanyLabel, Distribution, ExternalRoamRecord, Harvest, LogisticsCarNoLabel, LogisticsCompanyLabel,
LogisticsInfo, LogisticsNoLabel, NoteLabel, OutStatusLabel, ReceiptAbstractLabel, ReceivingAddress, ReceivingTime, ReNoLabel LogisticsInfo, LogisticsNoLabel, Material, NoteLabel, OutStatusLabel, ReceiptAbstractLabel, ReceivingAddress, ReceivingTime, ReNoLabel
} from '../../constants' } from '../../constants'
import { BaseInfo as ContentBox } from '@/components/BaseInfo' import { BaseInfo as ContentBox } from '@/components/BaseInfo'
import { Table } from 'antd'; import { Table } from 'antd';
...@@ -32,8 +32,8 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => { ...@@ -32,8 +32,8 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
Harvest, Harvest,
DeliveryInfo, DeliveryInfo,
LogisticsInfo, LogisticsInfo,
DeliveryGood,
ExternalRoamRecord // ExternalRoamRecord
]) ])
const [info, setInfo] = useState<any>({}); const [info, setInfo] = useState<any>({});
...@@ -52,6 +52,21 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => { ...@@ -52,6 +52,21 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
service.getDetailInfoProductById(query.id as string).then(res => { service.getDetailInfoProductById(query.id as string).then(res => {
setTableDataSource(res?.data) setTableDataSource(res?.data)
setAnchors([
...anchors,
info?.type === 1 ? {
...DeliveryGood,
...{
name: `${DeliveryGood.name}(${res?.data?.length})`
}
} : {
...Material,
...{
name: `${Material.name}(${res?.data?.length})`
}
},
]);
setTotalCount(res?.totalCount) setTotalCount(res?.totalCount)
}) })
...@@ -178,7 +193,8 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => { ...@@ -178,7 +193,8 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
</ContentBox> </ContentBox>
<ContentBox title={DeliveryGood.name} id={DeliveryGood.key} cols={1}> <ContentBox title={info?.type ? DeliveryGood.name : Material.name}
id={info?.type ? DeliveryGood.key : Material.key} cols={1}>
<Table <Table
columns={ columns={
...@@ -193,13 +209,13 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => { ...@@ -193,13 +209,13 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
</ContentBox> </ContentBox>
<ContentBox title={ExternalRoamRecord.name} id={ExternalRoamRecord.key} cols={1}> {/* <ContentBox title={ExternalRoamRecord.name} id={ExternalRoamRecord.key} cols={1}>
<Table <Table
columns={ExternalRoamRecordTableColumn} columns={ExternalRoamRecordTableColumn}
rowKey="id" rowKey="id"
dataSource={outerHistoryList} dataSource={outerHistoryList}
/> />
</ContentBox> </ContentBox> */}
</AnchorPage> </AnchorPage>
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment