Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄庭坚
jinfa-platform
Commits
d0bcdcbb
Commit
d0bcdcbb
authored
Mar 24, 2021
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 结算金额,首页bug
parent
e2f39a8f
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
93 additions
and
67 deletions
+93
-67
Location.tsx
src/layouts/components/Location.tsx
+10
-29
SelectLang.tsx
src/layouts/components/SelectLang.tsx
+7
-2
logisticsDetail.tsx
...alance/accountsPayable/settlementList/logisticsDetail.tsx
+3
-1
productNoticeSettlementDetail.tsx
...sPayable/settlementList/productNoticeSettlementDetail.tsx
+3
-2
logisticsDetail.tsx
...nce/accountsReceivable/settlementList/logisticsDetail.tsx
+3
-2
productNoticeSettlementDetail.tsx
...ceivable/settlementList/productNoticeSettlementDetail.tsx
+2
-1
useIsExistsBrokerage.tsx
src/pages/balance/hooks/useIsExistsBrokerage.tsx
+25
-0
index.tsx
...es/balance/platformSettlement/accountReceivable/index.tsx
+5
-5
info.tsx
...ges/balance/platformSettlement/accountReceivable/info.tsx
+13
-5
info.tsx
src/pages/balance/platformSettlement/integral/info.tsx
+1
-1
index.tsx
src/pages/handling/assign/detail/index.tsx
+3
-2
DetailTab.tsx
.../handling/components/ReceiptDeliveryDetails/DetailTab.tsx
+3
-2
ReceiptDeliveryDetailsCard.tsx
...nts/ReceiptDeliveryDetails/ReceiptDeliveryDetailsCard.tsx
+12
-12
StatisticsTab.tsx
...dling/components/ReceiptDeliveryDetails/StatisticsTab.tsx
+2
-2
index.tsx
src/pages/handling/confirm/Query/index.tsx
+0
-1
index.tsx
...pages/member/memberImport/components/MemberForm/index.tsx
+1
-0
No files found.
src/layouts/components/Location.tsx
View file @
d0bcdcbb
import
React
,
{
useState
}
from
'react'
import
React
,
{
use
Effect
,
use
State
}
from
'react'
import
{
Dropdown
,
Space
,
Menu
}
from
'antd'
import
{
Dropdown
,
Space
,
Menu
}
from
'antd'
import
{
CaretDownOutlined
,
EnvironmentOutlined
}
from
'@ant-design/icons'
import
{
CaretDownOutlined
,
EnvironmentOutlined
}
from
'@ant-design/icons'
...
@@ -6,34 +6,16 @@ import "../styles/Location.less"
...
@@ -6,34 +6,16 @@ import "../styles/Location.less"
const
Location
:
React
.
FC
=
()
=>
{
const
Location
:
React
.
FC
=
()
=>
{
const
menuHeaderDropdown
=
(
useEffect
(()
=>
{
<
Menu
selectedKeys=
{
[]
}
>
<
Menu
.
Item
>
},
[])
<
Space
>
<
span
>
北京
</
span
>
</
Space
>
</
Menu
.
Item
>
<
Menu
.
Item
>
<
Space
>
<
span
>
上海
</
span
>
</
Space
>
</
Menu
.
Item
>
<
Menu
.
Item
>
<
Space
>
<
span
>
石河子
</
span
>
</
Space
>
</
Menu
.
Item
>
</
Menu
>
);
return
(
return
(
<
Dropdown
overlay=
{
menuHeaderDropdown
}
placement=
'bottomRight'
className=
"locationBox"
>
<
Space
style=
{
{
cursor
:
'pointer'
}
}
size=
{
5
}
>
<
Space
style=
{
{
cursor
:
'pointer'
}
}
size=
{
5
}
>
<
EnvironmentOutlined
/>
<
EnvironmentOutlined
/>
<
span
>
广州
</
span
>
<
span
>
广州
</
span
>
{
/* <CaretDownOutlined /> */
}
<
CaretDownOutlined
/>
</
Space
>
</
Space
>
</
Dropdown
>
)
)
}
}
export
default
Location
export
default
Location
\ No newline at end of file
src/layouts/components/SelectLang.tsx
View file @
d0bcdcbb
...
@@ -41,6 +41,12 @@ const SelectLang: React.FC = () => {
...
@@ -41,6 +41,12 @@ const SelectLang: React.FC = () => {
</
Menu
>
</
Menu
>
);
);
// useEffect(() => {
// function getLang() {
// PublicApi.getLange
// }
// }, [])
const
renderCurrentLang
=
()
=>
{
const
renderCurrentLang
=
()
=>
{
let
currentLang
:
countryItem
let
currentLang
:
countryItem
GlobalConfig
.
publicSelect
.
siteList
.
map
(
item
=>
{
GlobalConfig
.
publicSelect
.
siteList
.
map
(
item
=>
{
...
@@ -65,4 +71,4 @@ const SelectLang: React.FC = () => {
...
@@ -65,4 +71,4 @@ const SelectLang: React.FC = () => {
)
)
}
}
export
default
SelectLang
export
default
SelectLang
\ No newline at end of file
src/pages/balance/accountsPayable/settlementList/logisticsDetail.tsx
View file @
d0bcdcbb
...
@@ -20,6 +20,7 @@ import { usePageStatus } from '@/hooks/usePageStatus';
...
@@ -20,6 +20,7 @@ import { usePageStatus } from '@/hooks/usePageStatus';
import
{
PublicApi
}
from
'@/services/api'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
StatusTag
from
'../../components/StatusTag'
;
import
StatusTag
from
'../../components/StatusTag'
;
import
{
logisticsColumn
}
from
'../../common/columns'
;
import
{
logisticsColumn
}
from
'../../common/columns'
;
import
{
priceFormat
}
from
'@/utils/numberFomat'
;
const
RangePicker
=
DatePicker
.
RangePicker
const
RangePicker
=
DatePicker
.
RangePicker
const
formActions
=
createFormActions
();
const
formActions
=
createFormActions
();
...
@@ -101,7 +102,8 @@ const logisticsDetail: React.FC = () => {
...
@@ -101,7 +102,8 @@ const logisticsDetail: React.FC = () => {
>
>
<
Descriptions
.
Item
label=
"结算日期"
>
{
infoDetail
?.
settlementDate
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算日期"
>
{
infoDetail
?.
settlementDate
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算单数"
>
{
infoDetail
?.
totalCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算单数"
>
{
infoDetail
?.
totalCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算金额"
>
{
infoDetail
?.
amount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算金额"
>
¥
{
priceFormat
(
infoDetail
?.
amount
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方"
>
{
infoDetail
?.
settlementName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方"
>
{
infoDetail
?.
settlementName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方式"
>
{
infoDetail
?.
settlementWayName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方式"
>
{
infoDetail
?.
settlementWayName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"外部状态"
><
StatusTag
text=
{
infoDetail
?.
statusName
}
></
StatusTag
></
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"外部状态"
><
StatusTag
text=
{
infoDetail
?.
statusName
}
></
StatusTag
></
Descriptions
.
Item
>
...
...
src/pages/balance/accountsPayable/settlementList/productNoticeSettlementDetail.tsx
View file @
d0bcdcbb
...
@@ -20,6 +20,7 @@ import { usePageStatus } from '@/hooks/usePageStatus';
...
@@ -20,6 +20,7 @@ import { usePageStatus } from '@/hooks/usePageStatus';
import
{
PublicApi
}
from
'@/services/api'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
StatusTag
from
'../../components/StatusTag'
import
StatusTag
from
'../../components/StatusTag'
import
{
productNoticecolumns
}
from
'../../common/columns'
;
import
{
productNoticecolumns
}
from
'../../common/columns'
;
import
{
priceFormat
}
from
'@/utils/numberFomat'
;
const
RangePicker
=
DatePicker
.
RangePicker
;
const
RangePicker
=
DatePicker
.
RangePicker
;
const
formActions
=
createFormActions
();
const
formActions
=
createFormActions
();
...
@@ -101,7 +102,7 @@ const ProductNoticeSettlementDetail: React.FC = () => {
...
@@ -101,7 +102,7 @@ const ProductNoticeSettlementDetail: React.FC = () => {
>
>
<
Descriptions
.
Item
label=
"结算日期"
>
{
infoDetail
?.
settlementDate
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算日期"
>
{
infoDetail
?.
settlementDate
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算单数"
>
{
infoDetail
?.
totalCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算单数"
>
{
infoDetail
?.
totalCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算金额"
>
{
infoDetail
?.
amount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算金额"
>
¥
{
priceFormat
(
infoDetail
?.
amount
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方"
>
{
infoDetail
?.
settlementName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方"
>
{
infoDetail
?.
settlementName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方式"
>
{
infoDetail
?.
settlementWayName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方式"
>
{
infoDetail
?.
settlementWayName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"外部状态"
><
StatusTag
text=
{
infoDetail
?.
statusName
}
></
StatusTag
></
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"外部状态"
><
StatusTag
text=
{
infoDetail
?.
statusName
}
></
StatusTag
></
Descriptions
.
Item
>
...
@@ -113,7 +114,7 @@ const ProductNoticeSettlementDetail: React.FC = () => {
...
@@ -113,7 +114,7 @@ const ProductNoticeSettlementDetail: React.FC = () => {
<
Card
>
<
Card
>
<
StandardTable
<
StandardTable
tableProps=
{
{
tableProps=
{
{
rowKey
:
'
id
'
,
rowKey
:
'
orderNo
'
,
}
}
}
}
columns=
{
productNoticecolumns
}
columns=
{
productNoticecolumns
}
currentRef=
{
ref
}
currentRef=
{
ref
}
...
...
src/pages/balance/accountsReceivable/settlementList/logisticsDetail.tsx
View file @
d0bcdcbb
...
@@ -20,6 +20,7 @@ import { usePageStatus } from '@/hooks/usePageStatus';
...
@@ -20,6 +20,7 @@ import { usePageStatus } from '@/hooks/usePageStatus';
import
{
PublicApi
}
from
'@/services/api'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
StatusTag
from
'../../components/StatusTag'
;
import
StatusTag
from
'../../components/StatusTag'
;
import
{
logisticsColumn
}
from
'../../common/columns'
;
import
{
logisticsColumn
}
from
'../../common/columns'
;
import
{
priceFormat
}
from
'@/utils/numberFomat'
;
const
RangePicker
=
DatePicker
.
RangePicker
;
const
RangePicker
=
DatePicker
.
RangePicker
;
const
formActions
=
createFormActions
();
const
formActions
=
createFormActions
();
...
@@ -99,7 +100,7 @@ const logisticsDetail: React.FC = () => {
...
@@ -99,7 +100,7 @@ const logisticsDetail: React.FC = () => {
>
>
<
Descriptions
.
Item
label=
"结算日期"
>
{
infoDetail
?.
settlementDate
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算日期"
>
{
infoDetail
?.
settlementDate
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算单数"
>
{
infoDetail
?.
totalCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算单数"
>
{
infoDetail
?.
totalCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算金额"
>
{
infoDetail
?.
amount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算金额"
>
¥
{
priceFormat
(
infoDetail
?.
amount
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方"
>
{
infoDetail
?.
settlementName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方"
>
{
infoDetail
?.
settlementName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方式"
>
{
infoDetail
?.
settlementWayName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方式"
>
{
infoDetail
?.
settlementWayName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"外部状态"
><
StatusTag
text=
{
infoDetail
?.
statusName
}
></
StatusTag
></
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"外部状态"
><
StatusTag
text=
{
infoDetail
?.
statusName
}
></
StatusTag
></
Descriptions
.
Item
>
...
@@ -111,7 +112,7 @@ const logisticsDetail: React.FC = () => {
...
@@ -111,7 +112,7 @@ const logisticsDetail: React.FC = () => {
<
Card
>
<
Card
>
<
StandardTable
<
StandardTable
tableProps=
{
{
tableProps=
{
{
rowKey
:
'
id
'
,
rowKey
:
'
orderNo
'
,
}
}
}
}
columns=
{
logisticsColumn
}
columns=
{
logisticsColumn
}
currentRef=
{
ref
}
currentRef=
{
ref
}
...
...
src/pages/balance/accountsReceivable/settlementList/productNoticeSettlementDetail.tsx
View file @
d0bcdcbb
...
@@ -20,6 +20,7 @@ import { usePageStatus } from '@/hooks/usePageStatus';
...
@@ -20,6 +20,7 @@ import { usePageStatus } from '@/hooks/usePageStatus';
import
{
PublicApi
}
from
'@/services/api'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
StatusTag
from
'../../components/StatusTag'
;
import
StatusTag
from
'../../components/StatusTag'
;
import
{
productNoticecolumns
}
from
'../../common/columns'
;
import
{
productNoticecolumns
}
from
'../../common/columns'
;
import
{
priceFormat
}
from
'@/utils/numberFomat'
;
const
RangePicker
=
DatePicker
.
RangePicker
;
const
RangePicker
=
DatePicker
.
RangePicker
;
const
formActions
=
createFormActions
();
const
formActions
=
createFormActions
();
...
@@ -103,7 +104,7 @@ const ProductNoticeSettlementDetail: React.FC = () => {
...
@@ -103,7 +104,7 @@ const ProductNoticeSettlementDetail: React.FC = () => {
>
>
<
Descriptions
.
Item
label=
"结算日期"
>
{
infoDetail
?.
settlementDate
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算日期"
>
{
infoDetail
?.
settlementDate
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算单数"
>
{
infoDetail
?.
totalCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算单数"
>
{
infoDetail
?.
totalCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算金额"
>
{
infoDetail
?.
amount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算金额"
>
¥
{
priceFormat
(
infoDetail
?.
amount
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方"
>
{
infoDetail
?.
settlementName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方"
>
{
infoDetail
?.
settlementName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方式"
>
{
infoDetail
?.
settlementWayName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方式"
>
{
infoDetail
?.
settlementWayName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"外部状态"
><
StatusTag
text=
{
infoDetail
?.
statusName
}
></
StatusTag
></
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"外部状态"
><
StatusTag
text=
{
infoDetail
?.
statusName
}
></
StatusTag
></
Descriptions
.
Item
>
...
...
src/pages/balance/hooks/useIsExistsBrokerage.tsx
0 → 100644
View file @
d0bcdcbb
import
{
PublicApi
}
from
'@/services/api'
;
import
{
useEffect
,
useState
}
from
'react'
;
const
useIsExistBrokerage
=
(
columns
,
blackListDataIndex
:
string
[])
=>
{
const
[
retColumn
,
setRetColumn
]
=
useState
(
columns
);
const
fetchIsExist
=
async
()
=>
{
const
{
data
,
code
}
=
await
PublicApi
.
getSettleAccountsPlatformSettlementIsExistsBrokerage
();
if
(
code
!==
1000
)
{
return
}
if
(
data
)
{
const
newColumn
=
retColumn
.
filter
((
item
)
=>
!
blackListDataIndex
.
includes
(
item
.
dataIndex
))
setRetColumn
(
newColumn
)
}
}
useEffect
(()
=>
{
fetchIsExist
()
},
[])
return
{
retColumn
};
}
export
default
useIsExistBrokerage
src/pages/balance/platformSettlement/accountReceivable/index.tsx
View file @
d0bcdcbb
...
@@ -20,6 +20,7 @@ import { payStatus } from '../../common';
...
@@ -20,6 +20,7 @@ import { payStatus } from '../../common';
import
{
PublicApi
}
from
'@/services/api'
import
{
PublicApi
}
from
'@/services/api'
import
EyePreview
from
'@/components/EyePreview'
import
EyePreview
from
'@/components/EyePreview'
import
{
fetchOptions
}
from
'../../common'
;
import
{
fetchOptions
}
from
'../../common'
;
import
useIsExistBrokerage
from
'../../hooks/useIsExistsBrokerage'
;
const
formActions
=
createFormActions
();
const
formActions
=
createFormActions
();
const
{
RangePicker
}
=
DatePicker
;
const
{
RangePicker
}
=
DatePicker
;
...
@@ -53,9 +54,9 @@ const AccountReceivable = () => {
...
@@ -53,9 +54,9 @@ const AccountReceivable = () => {
{
title
:
'结算日期'
,
dataIndex
:
'settlementDate'
},
{
title
:
'结算日期'
,
dataIndex
:
'settlementDate'
},
{
title
:
'结算方式'
,
dataIndex
:
'settlementWayName'
},
{
title
:
'结算方式'
,
dataIndex
:
'settlementWayName'
},
{
title
:
'总单数'
,
dataIndex
:
'totalCount'
},
{
title
:
'总单数'
,
dataIndex
:
'totalCount'
},
{
title
:
'代收金额'
,
dataIndex
:
'collectAmount'
},
{
title
:
'代收金额'
,
dataIndex
:
'collectAmount'
,
render
:
(
text
)
=>
`¥
${
text
}
`
},
{
title
:
'佣金'
,
dataIndex
:
'brokerage'
},
{
title
:
'佣金'
,
dataIndex
:
'brokerage'
},
{
title
:
'结算金额'
,
dataIndex
:
'amount'
},
{
title
:
'结算金额'
,
dataIndex
:
'amount'
,
render
:
(
text
)
=>
`¥
${
text
}
`
},
{
title
:
'结算时间'
,
dataIndex
:
'settlementTime'
},
{
title
:
'结算时间'
,
dataIndex
:
'settlementTime'
},
{
title
:
'支付方式'
,
dataIndex
:
'payWayName'
},
{
title
:
'支付方式'
,
dataIndex
:
'payWayName'
},
{
{
...
@@ -87,8 +88,7 @@ const AccountReceivable = () => {
...
@@ -87,8 +88,7 @@ const AccountReceivable = () => {
}
}
}
}
]
]
const
{
retColumn
}
=
useIsExistBrokerage
(
columns
,
[
"brokerage"
]);
/**
/**
* 确认对账
* 确认对账
* @param {cancel: function, id: number} cancel 为关闭回调函数
* @param {cancel: function, id: number} cancel 为关闭回调函数
...
@@ -150,7 +150,7 @@ const AccountReceivable = () => {
...
@@ -150,7 +150,7 @@ const AccountReceivable = () => {
tableProps=
{
{
tableProps=
{
{
rowKey
:
'id'
,
rowKey
:
'id'
,
}
}
}
}
columns=
{
columns
}
columns=
{
retColumn
}
currentRef=
{
ref
}
currentRef=
{
ref
}
// rowSelection={rowSelection}
// rowSelection={rowSelection}
fetchTableData=
{
(
params
:
any
)
=>
fetchListData
(
params
)
}
fetchTableData=
{
(
params
:
any
)
=>
fetchListData
(
params
)
}
...
...
src/pages/balance/platformSettlement/accountReceivable/info.tsx
View file @
d0bcdcbb
...
@@ -20,6 +20,8 @@ import { usePageStatus } from '@/hooks/usePageStatus';
...
@@ -20,6 +20,8 @@ import { usePageStatus } from '@/hooks/usePageStatus';
import
StatusTag
from
'../../components/StatusTag'
;
import
StatusTag
from
'../../components/StatusTag'
;
import
{
timeRange
}
from
'@/utils/index'
;
import
{
timeRange
}
from
'@/utils/index'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
useIsExistsBrokerage
from
'../../hooks/useIsExistsBrokerage'
;
import
{
priceFormat
}
from
'@/utils/numberFomat'
;
const
formActions
=
createFormActions
();
const
formActions
=
createFormActions
();
const
columns
=
[
const
columns
=
[
...
@@ -28,8 +30,12 @@ const columns = [
...
@@ -28,8 +30,12 @@ const columns = [
{
title
:
'单据类型'
,
dataIndex
:
'settlementOrderTypeName'
},
{
title
:
'单据类型'
,
dataIndex
:
'settlementOrderTypeName'
},
{
title
:
'单据时间'
,
dataIndex
:
'orderTime'
},
{
title
:
'单据时间'
,
dataIndex
:
'orderTime'
},
{
title
:
'订单类型'
,
dataIndex
:
'orderTypeName'
},
{
title
:
'订单类型'
,
dataIndex
:
'orderTypeName'
},
{
title
:
'单据总额'
,
dataIndex
:
'orderAmount'
},
{
{
title
:
'代收金额'
,
dataIndex
:
'collectAmount'
},
title
:
'单据总额'
,
dataIndex
:
'orderAmount'
,
render
:
(
text
)
=>
`¥
${
text
}
`
},
{
title
:
'代收金额'
,
dataIndex
:
'collectAmount'
,
render
:
(
text
)
=>
`¥
${
text
}
`
},
{
title
:
'支付时间'
,
dataIndex
:
'payTime'
},
{
title
:
'支付时间'
,
dataIndex
:
'payTime'
},
{
{
title
:
'佣金比例'
,
title
:
'佣金比例'
,
...
@@ -39,7 +45,7 @@ const columns = [
...
@@ -39,7 +45,7 @@ const columns = [
}
}
},
},
{
title
:
'扣减佣金'
,
dataIndex
:
'brokerage'
},
{
title
:
'扣减佣金'
,
dataIndex
:
'brokerage'
},
{
title
:
'本期结余额'
,
dataIndex
:
'settlementAmount'
}
{
title
:
'本期结余额'
,
dataIndex
:
'settlementAmount'
,
render
:
(
text
)
=>
`¥
${
text
}
`
}
]
]
...
@@ -70,6 +76,8 @@ const Info: React.FC = () => {
...
@@ -70,6 +76,8 @@ const Info: React.FC = () => {
}
}
},
[
id
])
},
[
id
])
const
{
retColumn
}
=
useIsExistsBrokerage
(
columns
,
[
"brokerage"
,
"ratio"
])
/**
/**
* 搜索
* 搜索
*/
*/
...
@@ -114,7 +122,7 @@ const Info: React.FC = () => {
...
@@ -114,7 +122,7 @@ const Info: React.FC = () => {
>
>
<
Descriptions
.
Item
label=
"结算日期:"
>
{
infoDetail
?.
settlementDate
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算日期:"
>
{
infoDetail
?.
settlementDate
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算单数:"
>
{
infoDetail
?.
totalCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算单数:"
>
{
infoDetail
?.
totalCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算金额:"
>
¥
{
infoDetail
?.
amount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算金额:"
>
¥
{
priceFormat
(
infoDetail
?.
amount
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方式:"
>
{
infoDetail
?.
settlementWayName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算方式:"
>
{
infoDetail
?.
settlementWayName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"结算状态:"
>
<
Descriptions
.
Item
label=
"结算状态:"
>
<
StatusTag
text=
{
infoDetail
?.
statusName
}
/>
<
StatusTag
text=
{
infoDetail
?.
statusName
}
/>
...
@@ -129,7 +137,7 @@ const Info: React.FC = () => {
...
@@ -129,7 +137,7 @@ const Info: React.FC = () => {
tableProps=
{
{
tableProps=
{
{
rowKey
:
record
=>
(
`${record.orderNo}-${record.payTime}`
),
rowKey
:
record
=>
(
`${record.orderNo}-${record.payTime}`
),
}
}
}
}
columns=
{
columns
}
columns=
{
retColumn
}
currentRef=
{
ref
}
currentRef=
{
ref
}
fetchTableData=
{
(
params
:
any
)
=>
fetchListData
(
params
)
}
fetchTableData=
{
(
params
:
any
)
=>
fetchListData
(
params
)
}
controlRender=
{
controlRender=
{
...
...
src/pages/balance/platformSettlement/integral/info.tsx
View file @
d0bcdcbb
...
@@ -36,7 +36,7 @@ const columns = [
...
@@ -36,7 +36,7 @@ const columns = [
title
:
'兑换比率'
,
title
:
'兑换比率'
,
dataIndex
:
'ratio'
,
dataIndex
:
'ratio'
,
render
:
(
text
,
record
)
=>
{
render
:
(
text
,
record
)
=>
{
return
record
.
ratio
*
100
+
"%"
return
record
.
ratio
+
"%"
}
}
},
},
{
title
:
'本期结余额'
,
dataIndex
:
'settlementAmount'
}
{
title
:
'本期结余额'
,
dataIndex
:
'settlementAmount'
}
...
...
src/pages/handling/assign/detail/index.tsx
View file @
d0bcdcbb
...
@@ -444,12 +444,13 @@ const Detail: React.FC<{}> = () => {
...
@@ -444,12 +444,13 @@ const Detail: React.FC<{}> = () => {
{
{
info
&&
info
.
outerTaskType
!==
29
info
&&
info
.
outerTaskType
!==
29
?
<
div
style=
{
{
marginTop
:
'20px'
}
}
>
?
<
div
style=
{
{
marginTop
:
'20px'
}
}
>
<
ReceiptDeliveryDetailsCard
>
<
ReceiptDeliveryDetailsCard
defaultActiveKey=
"1"
>
<
StatisticsTab
tab=
"收发货统计"
columns=
{
receiveColumns
(
info
.
source
===
SourceEnum
.
order
?
'order'
:
'product'
)
}
dataSource=
{
info
.
details
}
></
StatisticsTab
>
<
StatisticsTab
tab
Key=
"1"
tab
=
"收发货统计"
columns=
{
receiveColumns
(
info
.
source
===
SourceEnum
.
order
?
'order'
:
'product'
)
}
dataSource=
{
info
.
details
}
></
StatisticsTab
>
{
{
info
.
pnoReceiveDeliverDetailDOList
&&
info
.
pnoReceiveDeliverDetailDOList
&&
info
.
pnoReceiveDeliverDetailDOList
.
length
>
0
info
.
pnoReceiveDeliverDetailDOList
.
length
>
0
?
<
DetailTab
?
<
DetailTab
tabKey=
"2"
tab=
"收发货明细"
tab=
"收发货明细"
columns=
{
receiptAndDeliveryDetailsColumns
}
columns=
{
receiptAndDeliveryDetailsColumns
}
dataSource=
{
info
.
pnoReceiveDeliverDetailDOList
}
dataSource=
{
info
.
pnoReceiveDeliverDetailDOList
}
...
...
src/pages/handling/components/ReceiptDeliveryDetails/DetailTab.tsx
View file @
d0bcdcbb
...
@@ -10,6 +10,7 @@ interface Iprops {
...
@@ -10,6 +10,7 @@ interface Iprops {
tab
:
string
,
tab
:
string
,
columns
:
ColumnsType
<
any
>
,
columns
:
ColumnsType
<
any
>
,
dataSource
:
any
[],
dataSource
:
any
[],
tabKey
:
string
,
handleConfirm
:
(
type
:
string
,
params
:
any
)
=>
void
handleConfirm
:
(
type
:
string
,
params
:
any
)
=>
void
}
}
...
@@ -78,7 +79,6 @@ const DetailTab: React.FC<Iprops> = (props) => {
...
@@ -78,7 +79,6 @@ const DetailTab: React.FC<Iprops> = (props) => {
props
.
handleConfirm
(
type
,
params
);
props
.
handleConfirm
(
type
,
params
);
}
}
const
sorted
=
dataSource
&&
dataSource
.
sort
((
a
,
b
)
=>
a
.
deliveryBatch
-
b
.
deliveryBatch
)
||
[]
const
sorted
=
dataSource
&&
dataSource
.
sort
((
a
,
b
)
=>
a
.
deliveryBatch
-
b
.
deliveryBatch
)
||
[]
return
(
return
(
<
div
>
<
div
>
<
div
>
<
div
>
...
@@ -163,11 +163,12 @@ const DetailTab: React.FC<Iprops> = (props) => {
...
@@ -163,11 +163,12 @@ const DetailTab: React.FC<Iprops> = (props) => {
</
div
>
</
div
>
<
Table
<
Table
dataSource=
{
activeData
.
pnoReceiveDeliverDetailProductBOList
}
dataSource=
{
activeData
.
pnoReceiveDeliverDetailProductBOList
}
rowKey=
{
"orderNo"
}
rowKey=
{
(
record
)
=>
record
.
produceNoticeOrderDetailId
+
"-"
+
record
.
productId
}
columns=
{
columns
}
columns=
{
columns
}
/>
/>
</
div
>
</
div
>
)
)
}
}
export
default
DetailTab
;
export
default
DetailTab
;
src/pages/handling/components/ReceiptDeliveryDetails/ReceiptDeliveryDetailsCard.tsx
View file @
d0bcdcbb
...
@@ -3,29 +3,30 @@ import { Card, Tabs } from 'antd';
...
@@ -3,29 +3,30 @@ import { Card, Tabs } from 'antd';
const
TabPane
=
Tabs
.
TabPane
const
TabPane
=
Tabs
.
TabPane
interface
Iprops
{};
interface
Iprops
{
defaultActiveKey
:
string
};
const
ReceiptDeliveryDetailsCard
:
React
.
FC
<
Iprops
>
=
(
props
)
=>
{
const
ReceiptDeliveryDetailsCard
:
React
.
FC
<
Iprops
>
=
(
props
)
=>
{
const
newChildren
=
React
.
Children
.
map
(
props
.
children
,
(
child
:
any
)
=>
{
const
newChildren
=
React
.
Children
.
map
(
props
.
children
,
(
child
:
any
,
index
)
=>
{
if
(
child
&&
child
.
type
)
{
if
(
child
)
{
return
(
return
(
<
TabPane
tab=
{
child
.
props
.
tab
}
>
<
TabPane
tab=
{
child
.
props
.
tab
}
key=
{
child
.
props
.
tabKey
.
toString
()
||
index
.
toString
()
}
>
{
child
}
{
child
}
</
TabPane
>
</
TabPane
>
)
)
}
else
{
}
else
{
return
child
return
null
}
}
})
})
console
.
log
(
props
.
defaultActiveKey
)
return
(
return
(
<
Card
bodyStyle=
{
{
padding
:
'10px 24px 24px 24px'
}
}
>
<
Card
bodyStyle=
{
{
padding
:
'10px 24px 24px 24px'
}
}
>
<
Tabs
>
<
Tabs
defaultActiveKey=
{
props
.
defaultActiveKey
}
>
{
newChildren
}
{
newChildren
}
</
Tabs
>
</
Tabs
>
</
Card
>
</
Card
>
)
)
}
}
export
default
ReceiptDeliveryDetailsCard
export
default
ReceiptDeliveryDetailsCard
\ No newline at end of file
src/pages/handling/components/ReceiptDeliveryDetails/StatisticsTab.tsx
View file @
d0bcdcbb
...
@@ -5,6 +5,7 @@ interface Iprops {
...
@@ -5,6 +5,7 @@ interface Iprops {
tab
:
string
,
tab
:
string
,
columns
:
ColumnsType
<
any
>
,
columns
:
ColumnsType
<
any
>
,
dataSource
:
any
[],
dataSource
:
any
[],
tabKey
:
string
,
}
}
const
StatisticsTab
:
React
.
FC
<
Iprops
>
=
(
props
)
=>
{
const
StatisticsTab
:
React
.
FC
<
Iprops
>
=
(
props
)
=>
{
...
@@ -14,4 +15,4 @@ const StatisticsTab: React.FC<Iprops> = (props) => {
...
@@ -14,4 +15,4 @@ const StatisticsTab: React.FC<Iprops> = (props) => {
)
)
}
}
export
default
StatisticsTab
export
default
StatisticsTab
\ No newline at end of file
src/pages/handling/confirm/Query/index.tsx
View file @
d0bcdcbb
...
@@ -203,7 +203,6 @@ const Query: React.FC<{}> = (props) => {
...
@@ -203,7 +203,6 @@ const Query: React.FC<{}> = (props) => {
*/
*/
const
handleSearch
=
useCallback
((
values
:
any
)
=>
{
const
handleSearch
=
useCallback
((
values
:
any
)
=>
{
const
{
docTime
,
...
rest
}
=
values
;
const
{
docTime
,
...
rest
}
=
values
;
console
.
log
(
docTime
);
const
{
st
,
et
}
=
timeRange
(
docTime
);
const
{
st
,
et
}
=
timeRange
(
docTime
);
let
searchData
=
{
let
searchData
=
{
...
rest
,
...
rest
,
...
...
src/pages/member/memberImport/components/MemberForm/index.tsx
View file @
d0bcdcbb
...
@@ -277,6 +277,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
...
@@ -277,6 +277,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
const
auth
=
getAuth
();
const
auth
=
getAuth
();
localStorage
.
setItem
(
"auth"
,
JSON
.
stringify
({
localStorage
.
setItem
(
"auth"
,
JSON
.
stringify
({
...
auth
,
...
auth
,
company
:
rest
.
company_name
,
validateMsg
:
null
,
validateMsg
:
null
,
validateStatus
:
1
,
validateStatus
:
1
,
validateStatusDesc
:
"待审核"
validateStatusDesc
:
"待审核"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment