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
ba047d1f
Commit
ba047d1f
authored
Apr 27, 2021
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复结算单据请款单跳转链接
parent
d4e7f1b7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
9 deletions
+31
-9
balanceRoute.ts
config/routes/balanceRoute.ts
+2
-2
constants.tsx
src/pages/balance/common/constants.tsx
+22
-0
useFetchColumns.tsx
src/pages/balance/hooks/useFetchColumns.tsx
+7
-7
No files found.
config/routes/balanceRoute.ts
View file @
ba047d1f
...
...
@@ -180,10 +180,10 @@ const BalancedRoute = {
hideInMenu
:
true
,
},
{
path
:
'/memberCenter/balance/accounts
Pay
able/settlementList/orderDetail'
,
path
:
'/memberCenter/balance/accounts
Receiv
able/settlementList/orderDetail'
,
name
:
'orderDetail'
,
icon
:
'smile'
,
component
:
'@/pages/balance/accounts
Pay
able/settlementList/orderDetail'
,
component
:
'@/pages/balance/accounts
Receiv
able/settlementList/orderDetail'
,
hideInMenu
:
true
,
},
// 应收账款管理 -> 开票管理
...
...
src/pages/balance/common/constants.tsx
View file @
ba047d1f
...
...
@@ -45,3 +45,25 @@ export const SCORE_BENEFINCIARY = 5;
* 平台积分结算-付款方查看凭证 ,这是平台后台
*/
export
const
SCORE_PAYER
=
6
;
/**
* 结算单据类型-结算生产通知单
*/
export
const
PRODUCT_NOTICE_SETTLEMENT_DETAIL
=
1
;
/**
* 结算单据类型-物流单 logisticsDetail
*/
export
const
LOGISTICS_DETAIL
=
2
;
/**
* 结算单据类型-订单详情
*/
export
const
ORDER_DETAIL
=
3
/**
* 结算单据类型-合同请款单
*/
export
const
CONTRACT_FUND_BILL
=
6
src/pages/balance/hooks/useFetchColumns.tsx
View file @
ba047d1f
import
EyePreview
from
'@/components/EyePreview'
;
import
StatusTag
from
'../components/StatusTag'
;
import
{
TO_BE_RECONCILED
,
TO_BE_PAY
,
TO_BE_COLLECTED
,
COMPLETED
}
from
'../common/constants'
;
import
{
TO_BE_RECONCILED
,
TO_BE_PAY
,
TO_BE_COLLECTED
,
COMPLETED
,
PRODUCT_NOTICE_SETTLEMENT_DETAIL
,
LOGISTICS_DETAIL
,
ORDER_DETAIL
,
CONTRACT_FUND_BILL
}
from
'../common/constants'
;
import
{
priceFormat
}
from
'@/utils/numberFomat'
// import StatusTag from '@/components/StatusTag';
...
...
@@ -11,10 +11,10 @@ import moment from 'moment';
type
BalanceInfoType
=
{
id
:
number
,
settlementId
:
number
,
roleId
:
number
}
const
format
=
"YYYY-MM-DD HH:mm:ss"
const
URL_MAP
=
{
1
:
"productNoticeSettlementDetail"
,
2
:
"logisticsDetail"
,
3
:
"orderDetail"
,
4
:
''
,
[
PRODUCT_NOTICE_SETTLEMENT_DETAIL
]
:
"productNoticeSettlementDetail"
,
[
LOGISTICS_DETAIL
]
:
"logisticsDetail"
,
[
ORDER_DETAIL
]
:
"orderDetail"
,
[
CONTRACT_FUND_BILL
]
:
''
,
}
function
useFetchColumns
(
mode
:
'payable'
|
'receiveable'
)
{
...
...
@@ -123,8 +123,8 @@ function useFetchColumns(mode: 'payable' | 'receiveable') {
const
prefix
=
mode
===
'payable'
?
`/memberCenter/balance/accountsPayable/settlementList/`
:
'/memberCenter/balance/accountsReceivable/settlementList/'
;
const
url
=
URL_MAP
[
record
.
orderType
];
let
fullUrl
=
`
${
prefix
}${
url
}
?id=
${
record
.
id
}
`
;
if
(
record
.
orderType
===
4
)
{
fullUrl
=
`/memberCenter/contract/funds/bill/details?applyId=
${
record
.
i
d
}
`
;
if
(
record
.
orderType
===
CONTRACT_FUND_BILL
)
{
fullUrl
=
`/memberCenter/contract/funds/bill/details?applyId=
${
record
.
orderI
d
}
`
;
}
return
(
<
EyePreview
url=
{
fullUrl
}
>
...
...
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