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
2c3d28fa
Commit
2c3d28fa
authored
Jan 20, 2022
by
卢均锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: [19967]
parent
7eecac1b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
14 deletions
+52
-14
index.tsx
src/pages/balance/businessRequestFunds/detail/index.tsx
+25
-6
index.tsx
...alance/businessRequestFundsCollaboration/detail/index.tsx
+27
-8
No files found.
src/pages/balance/businessRequestFunds/detail/index.tsx
View file @
2c3d28fa
...
...
@@ -12,7 +12,7 @@ import PeripheralLayout from '@/pages/transaction/purchaseAbility/components/det
import
Card
from
'@/pages/transaction/purchaseAbility/components/card'
;
import
CommonLayout
from
'@/pages/transaction/purchaseAbility/components/detail/components/bidCommonLayout'
;
import
{
getSettleAccountsBusinessApplyAmountDetailApplyAmount
,
getSettleAccountsBusinessApplyAmountApplyAmountRowList
}
from
'@/services/SettleV2Api'
import
{
getSettleAccountsBusinessApplyAmountDetailApplyAmount
,
getSettleAccountsBusinessApplyAmountApplyAmountRowList
,
postSettleAccountsBusinessApplyAmountFindCanApplyAmountRos
}
from
'@/services/SettleV2Api'
import
WriteOffDrawer
from
'../../components/WriteOffDrawer'
...
...
@@ -104,9 +104,28 @@ const SearchDetail = () => {
})
}
const
_openWriteOff
=
(
record
)
=>
{
setWriteOffRecord
(
record
)
setWriteOffVisible
(
true
)
const
_openWriteOff
=
(
record
:
any
,
type
:
number
)
=>
{
if
(
type
===
1
)
{
setWriteOffRecord
(
record
)
setWriteOffVisible
(
true
)
}
else
{
const
_params
=
{
billId
:
record
.
billId
,
sourceContractId
:
record
.
sourceContractId
,
notQueryDetailId
:
record
.
id
,
taxRate
:
record
.
taxRate
,
current
:
1
,
pageSize
:
99999
};
postSettleAccountsBusinessApplyAmountFindCanApplyAmountRos
(
_params
).
then
((
res
)
=>
{
if
(
res
.
code
===
1000
)
{
const
_record
=
{
...
record
};
_record
.
writeOffRecords
=
res
.
data
.
data
;
setWriteOffRecord
(
_record
)
setWriteOffVisible
(
true
)
}
})
}
}
useEffect
(()
=>
{
...
...
@@ -193,13 +212,13 @@ const SearchDetail = () => {
title
:
'核销金额'
,
key
:
'writeOffAmount'
,
dataIndex
:
'writeOffAmount'
,
render
:
(
text
:
any
,
record
:
any
)
=>
text
>
0
&&
<
Button
type=
'link'
onClick=
{
()
=>
{
_openWriteOff
(
record
)
}
}
>
¥ $
{
priceFormat
(
text
)
}
</
Button
>
render
:
(
text
:
any
,
record
:
any
)
=>
text
>
0
&&
<
Button
type=
'link'
onClick=
{
()
=>
{
_openWriteOff
(
record
,
1
)
}
}
>
¥
{
priceFormat
(
text
)
}
</
Button
>
},
{
title
:
'可核销金额'
,
key
:
'canWriteOffAmount'
,
dataIndex
:
'canWriteOffAmount'
,
render
:
(
text
:
any
,
record
:
any
)
=>
text
>
0
&&
<
Button
type=
'link'
onClick=
{
()
=>
{
_openWriteOff
(
record
)
}
}
>
¥ $
{
priceFormat
(
text
)
}
</
Button
>
render
:
(
text
:
any
,
record
:
any
)
=>
text
>
0
&&
<
Button
type=
'link'
onClick=
{
()
=>
{
_openWriteOff
(
record
,
2
)
}
}
>
¥
{
priceFormat
(
text
)
}
</
Button
>
},
];
...
...
src/pages/balance/businessRequestFundsCollaboration/detail/index.tsx
View file @
2c3d28fa
...
...
@@ -12,7 +12,7 @@ import PeripheralLayout from '@/pages/transaction/purchaseAbility/components/det
import
Card
from
'@/pages/transaction/purchaseAbility/components/card'
;
import
CommonLayout
from
'@/pages/transaction/purchaseAbility/components/detail/components/bidCommonLayout'
;
import
{
getSettleAccountsBusinessApplyAmountDetailApplyAmount
,
getSettleAccountsBusinessApplyAmountApplyAmountRowList
}
from
'@/services/SettleV2Api'
import
{
getSettleAccountsBusinessApplyAmountDetailApplyAmount
,
getSettleAccountsBusinessApplyAmountApplyAmountRowList
,
postSettleAccountsBusinessApplyAmountFindCanApplyAmountRos
}
from
'@/services/SettleV2Api'
import
WriteOffDrawer
from
'../../components/WriteOffDrawer'
...
...
@@ -104,9 +104,28 @@ const SearchDetail = () => {
})
}
const
_openWriteOff
=
(
record
)
=>
{
setWriteOffRecord
(
record
)
setWriteOffVisible
(
true
)
const
_openWriteOff
=
(
record
:
any
,
type
:
number
)
=>
{
if
(
type
===
1
)
{
setWriteOffRecord
(
record
)
setWriteOffVisible
(
true
)
}
else
{
const
_params
=
{
billId
:
record
.
billId
,
sourceContractId
:
record
.
sourceContractId
,
notQueryDetailId
:
record
.
id
,
taxRate
:
record
.
taxRate
,
current
:
1
,
pageSize
:
99999
};
postSettleAccountsBusinessApplyAmountFindCanApplyAmountRos
(
_params
).
then
((
res
)
=>
{
if
(
res
.
code
===
1000
)
{
const
_record
=
{
...
record
};
_record
.
writeOffRecords
=
res
.
data
.
data
;
setWriteOffRecord
(
_record
)
setWriteOffVisible
(
true
)
}
})
}
}
useEffect
(()
=>
{
...
...
@@ -118,7 +137,7 @@ const SearchDetail = () => {
window
.
open
(
`/memberCenter/tranactionAbility/saleOrder/orderList/preview?id=
${
record
.
billId
}
`
)
}
else
if
(
record
.
billType
===
2
)
{
window
.
open
(
`/memberCenter/contract/coordination/coordinationList/details?contractId=
${
record
.
billId
}
`
)
}
else
{
}
else
{
window
.
open
(
`/memberCenter/afterService/returnManage/returnQuery/detail?id=
${
record
.
billId
}
`
)
}
}
...
...
@@ -128,7 +147,7 @@ const SearchDetail = () => {
title
:
'单据号'
,
key
:
'billNo'
,
dataIndex
:
'billNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
Button
type=
'link'
onClick=
{
()
=>
{
_handleOpen
(
record
)
}
}
>
{
text
}
</
Button
>
render
:
(
text
:
any
,
record
:
any
)
=>
<
Button
type=
'link'
onClick=
{
()
=>
{
_handleOpen
(
record
)
}
}
>
{
text
}
</
Button
>
},
{
title
:
'单据摘要'
,
...
...
@@ -193,13 +212,13 @@ const SearchDetail = () => {
title
:
'核销金额'
,
key
:
'writeOffAmount'
,
dataIndex
:
'writeOffAmount'
,
render
:
(
text
:
any
,
record
:
any
)
=>
text
>
0
&&
<
Button
type=
'link'
onClick=
{
()
=>
{
_openWriteOff
(
record
)
}
}
>
¥ $
{
priceFormat
(
text
)
}
</
Button
>
render
:
(
text
:
any
,
record
:
any
)
=>
text
>
0
&&
<
Button
type=
'link'
onClick=
{
()
=>
{
_openWriteOff
(
record
,
1
)
}
}
>
¥
{
priceFormat
(
text
)
}
</
Button
>
},
{
title
:
'可核销金额'
,
key
:
'canWriteOffAmount'
,
dataIndex
:
'canWriteOffAmount'
,
render
:
(
text
:
any
,
record
:
any
)
=>
text
>
0
&&
<
Button
type=
'link'
onClick=
{
()
=>
{
_openWriteOff
(
record
)
}
}
>
¥ $
{
priceFormat
(
text
)
}
</
Button
>
render
:
(
text
:
any
,
record
:
any
)
=>
text
>
0
&&
<
Button
type=
'link'
onClick=
{
()
=>
{
_openWriteOff
(
record
,
2
)
}
}
>
¥
{
priceFormat
(
text
)
}
</
Button
>
},
];
...
...
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