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
c2f90071
Commit
c2f90071
authored
Sep 08, 2021
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改结算bug
parent
dafd112d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
17 deletions
+2
-17
info.tsx
...ges/balance/platformSettlement/accountReceivable/info.tsx
+1
-16
index.tsx
src/pages/balance/settleRules/memberSettle/schema/index.tsx
+1
-1
No files found.
src/pages/balance/platformSettlement/accountReceivable/info.tsx
View file @
c2f90071
...
@@ -99,12 +99,11 @@ const columns = [
...
@@ -99,12 +99,11 @@ const columns = [
const
Info
:
React
.
FC
=
()
=>
{
const
Info
:
React
.
FC
=
()
=>
{
const
ref
=
useRef
<
any
>
({});
const
ref
=
useRef
<
any
>
({});
const
[
infoDetail
,
setInfoDetail
]
=
useState
<
any
>
(
null
);
const
{
id
,
preview
}
=
usePageStatus
();
const
{
id
,
preview
}
=
usePageStatus
();
const
{
retColumn
}
=
useIsExistsBrokerage
(
columns
,
[
"brokerage"
,
"ratio"
])
const
{
retColumn
}
=
useIsExistsBrokerage
(
columns
,
[
"brokerage"
,
"ratio"
])
const
params
=
useMemo
(()
=>
{
return
id
?
{
id
:
id
.
toString
()
}
:
null
},
[
id
]);
const
params
=
useMemo
(()
=>
{
return
id
?
{
id
:
id
.
toString
()
}
:
null
},
[
id
]);
const
{
loading
,
initialValue
}
=
useInitialValue
<
GetSettleAccountsPlatformSettlementGetReceivableDetailResponse
,
{
id
:
string
}
>
(
PublicApi
.
getSettleAccountsPlatformSettlementGetReceivableDetail
,
params
)
const
{
loading
,
initialValue
}
=
useInitialValue
<
GetSettleAccountsPlatformSettlementGetReceivableDetailResponse
,
{
id
:
string
}
>
(
PublicApi
.
getSettleAccountsPlatformSettlementGetReceivableDetail
,
params
)
const
{
infoList
}
=
useBalanceInfo
(
in
foDetail
,
{
type
:
"platform"
})
const
{
infoList
}
=
useBalanceInfo
(
in
itialValue
,
{
type
:
"platform"
})
const
fetchListData
=
async
(
params
)
=>
{
const
fetchListData
=
async
(
params
)
=>
{
const
postData
=
{
const
postData
=
{
...
@@ -116,19 +115,6 @@ const Info: React.FC = () => {
...
@@ -116,19 +115,6 @@ const Info: React.FC = () => {
return
res
.
data
return
res
.
data
}
}
// useEffect(() => {
// if(id) {
// // 获取详情
// async function fetchDetail() {
// const { data, code } = await PublicApi.getSettleAccountsPlatformSettlementGetReceivableDetail({id})
// if(code == 1000) {
// setInfoDetail(data);
// }
// }
// fetchDetail();
// }
// }, [id])
/**
/**
* 搜索
* 搜索
*/
*/
...
@@ -178,7 +164,6 @@ const Info: React.FC = () => {
...
@@ -178,7 +164,6 @@ const Info: React.FC = () => {
/>
/>
}
}
/>
/>
</
Card
>
</
Card
>
</
PageHeaderWrapper
>
</
PageHeaderWrapper
>
)
)
...
...
src/pages/balance/settleRules/memberSettle/schema/index.tsx
View file @
c2f90071
...
@@ -108,7 +108,7 @@ export const addSchema = {
...
@@ -108,7 +108,7 @@ export const addSchema = {
enum
:
[],
enum
:
[],
title
:
'结算单据'
,
title
:
'结算单据'
,
'x-rules'
:
[
'x-rules'
:
[
{
required
:
true
,
message
:
'请填写
策略名称
'
},
{
required
:
true
,
message
:
'请填写
结算单据类型
'
},
]
]
}
}
},
},
...
...
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