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
linweijiong
jinfa-platform
Commits
f32f274b
Commit
f32f274b
authored
Feb 10, 2022
by
卢均锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改结算单跳转链接
parent
8f6c4a9b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
19 deletions
+12
-19
useHandleSettlementList.tsx
...sPayable/settlementList/hooks/useHandleSettlementList.tsx
+12
-15
useHandleSettlementList.tsx
...ceivable/settlementList/hooks/useHandleSettlementList.tsx
+0
-4
No files found.
src/pages/balance/accountsPayable/settlementList/hooks/useHandleSettlementList.tsx
View file @
f32f274b
...
@@ -17,12 +17,12 @@ import { message } from 'antd';
...
@@ -17,12 +17,12 @@ import { message } from 'antd';
import
{
getAuth
}
from
'@/utils/auth'
;
import
{
getAuth
}
from
'@/utils/auth'
;
const
intl
=
getIntl
();
const
intl
=
getIntl
();
const
format
=
"YYYY-MM-DD HH:mm:ss"
const
format
=
"YYYY-MM-DD HH:mm:ss"
const
URL_MAP
=
{
//
const URL_MAP = {
[
PRODUCT_NOTICE_SETTLEMENT_DETAIL
]:
"productNoticeSettlementDetail"
,
//
[PRODUCT_NOTICE_SETTLEMENT_DETAIL]: "productNoticeSettlementDetail",
[
LOGISTICS_DETAIL
]:
"logisticsDetail"
,
//
[LOGISTICS_DETAIL]: "logisticsDetail",
[
ORDER_DETAIL
]:
"orderDetail"
,
//
[ORDER_DETAIL]: "orderDetail",
[
CONTRACT_FUND_BILL
]:
''
,
//
[CONTRACT_FUND_BILL]: '',
}
//
}
const
STATUS_COLOR
=
[
"default"
,
"warning"
,
"primary"
,
"danger"
,
"success"
];
const
STATUS_COLOR
=
[
"default"
,
"warning"
,
"primary"
,
"danger"
,
"success"
];
...
@@ -149,22 +149,22 @@ function useHandleSettlementList() {
...
@@ -149,22 +149,22 @@ function useHandleSettlementList() {
title
:
intl
.
formatMessage
({
id
:
'balance.jiesuandanhao'
}),
title
:
intl
.
formatMessage
({
id
:
'balance.jiesuandanhao'
}),
dataIndex
:
'settlementNo'
,
dataIndex
:
'settlementNo'
,
render
:
(
text
,
record
)
=>
{
render
:
(
text
,
record
)
=>
{
const
prefix
=
`/memberCenter/balance/accountsPayable/settlementList/`
;
//
const prefix = `/memberCenter/balance/accountsPayable/settlementList/` ;
const
url
=
URL_MAP
[
record
.
orderType
];
//
const url = URL_MAP[record.orderType];
let
fullUrl
=
`
${
prefix
}${
url
}
?id=
${
record
.
id
}
`
;
let
fullUrl
=
``
;
switch
(
record
.
orderType
)
{
switch
(
record
.
orderType
)
{
// 生产单
// 生产单
case
1
:
case
1
:
fullUrl
=
`/memberCenter/balance/accountsPayable/settlementList/productNoticeSettlementDetail?id=
${
record
.
orderI
d
}
`
;
fullUrl
=
`/memberCenter/balance/accountsPayable/settlementList/productNoticeSettlementDetail?id=
${
record
.
i
d
}
`
;
break
;
break
;
// 物流单
// 物流单
case
2
:
case
2
:
fullUrl
=
`/memberCenter/balance/accountsPayable/settlementList/logisticsDetail?id=
${
record
.
orderI
d
}
`
;
fullUrl
=
`/memberCenter/balance/accountsPayable/settlementList/logisticsDetail?id=
${
record
.
i
d
}
`
;
break
;
break
;
// 订单
// 订单
case
3
:
case
3
:
case
4
:
case
4
:
fullUrl
=
`/memberCenter/
tranactionAbility/saleOrder/orderList/preview?orderNo=
${
record
.
orderNo
}
`
;
fullUrl
=
`/memberCenter/
balance/accountsPayable/settlementList/orderDetail?id=
${
record
.
id
}
`
;
break
;
break
;
// 退货
// 退货
case
5
:
case
5
:
...
@@ -175,9 +175,6 @@ function useHandleSettlementList() {
...
@@ -175,9 +175,6 @@ function useHandleSettlementList() {
case
7
:
case
7
:
fullUrl
=
`/memberCenter/balance/businessRequestFunds/search/preview?id=
${
record
.
orderId
}
&no=
${
record
.
orderNo
}
`
;
fullUrl
=
`/memberCenter/balance/businessRequestFunds/search/preview?id=
${
record
.
orderId
}
&no=
${
record
.
orderNo
}
`
;
break
;
break
;
// case 7:
// window.open(`/memberCenter/balance/businessReconciliation/search/preview?id=${record.dataId}&no=${record.orderNo}`)
// break;
default
:
default
:
break
;
break
;
}
}
...
...
src/pages/balance/accountsReceivable/settlementList/hooks/useHandleSettlementList.tsx
View file @
f32f274b
...
@@ -100,7 +100,6 @@ function useHandleSettlementList() {
...
@@ -100,7 +100,6 @@ function useHandleSettlementList() {
// 订单
// 订单
case
3
:
case
3
:
case
4
:
case
4
:
// fullUrl = `/memberCenter/tranactionAbility/saleOrder/orderList/preview?orderNo=${record.orderNo}`;
fullUrl
=
`/memberCenter/balance/accountsPayable/settlementList/orderDetail?id=
${
record
.
id
}
`
fullUrl
=
`/memberCenter/balance/accountsPayable/settlementList/orderDetail?id=
${
record
.
id
}
`
break
;
break
;
// 退货
// 退货
...
@@ -112,9 +111,6 @@ function useHandleSettlementList() {
...
@@ -112,9 +111,6 @@ function useHandleSettlementList() {
case
7
:
case
7
:
fullUrl
=
`/memberCenter/balance/businessRequestFundsCollaboration/search/preview?id=
${
record
.
orderId
}
&no=
${
record
.
orderNo
}
`
;
fullUrl
=
`/memberCenter/balance/businessRequestFundsCollaboration/search/preview?id=
${
record
.
orderId
}
&no=
${
record
.
orderNo
}
`
;
break
;
break
;
// case 7:
// window.open(`/memberCenter/balance/businessReconciliation/search/preview?id=${record.dataId}&no=${record.orderNo}`)
// break;
default
:
default
:
break
;
break
;
}
}
...
...
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