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
13b4fa4c
Commit
13b4fa4c
authored
Jan 05, 2022
by
卢均锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 生成对账单去除eslint报错
parent
f5c8cc29
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
add.tsx
src/pages/balance/businessReconciliation/readyAdd/add.tsx
+11
-5
No files found.
src/pages/balance/businessReconciliation/readyAdd/add.tsx
View file @
13b4fa4c
...
...
@@ -34,6 +34,7 @@ const Add = () => {
state
,
pathname
,
}
=
history
.
location
;
const
_state
:
any
=
state
;
const
[
form
]
=
Form
.
useForm
();
const
[
pathPci
]
=
useState
(
pathname
.
split
(
'/'
)[
pathname
.
split
(
'/'
).
length
-
2
]);
const
[
path
]
=
useState
(
pathname
.
split
(
'/'
)[
pathname
.
split
(
'/'
).
length
-
1
]);
...
...
@@ -97,7 +98,11 @@ const Add = () => {
},
[
dataSource
])
const
_getDetail
=
()
=>
{
getSettleAccountsBusinessReconciliationDetailReconciliation
({
reconciliationId
:
id
,
reconciliationNo
:
no
}).
then
((
res
)
=>
{
const
_params
:
any
=
{
reconciliationId
:
id
,
reconciliationNo
:
no
}
getSettleAccountsBusinessReconciliationDetailReconciliation
(
_params
).
then
((
res
)
=>
{
if
(
res
.
code
===
1000
)
{
const
data
=
res
.
data
;
setDataSource
(
data
);
...
...
@@ -106,7 +111,7 @@ const Add = () => {
}
const
_getRowList
=
()
=>
{
const
params
=
{
const
params
:
any
=
{
current
:
1
,
pageSize
:
9999
,
reconciliationId
:
id
,
...
...
@@ -129,12 +134,13 @@ const Add = () => {
if
(
_editAble
)
{
setUnsaved
(
true
)
if
(
path
===
'add'
)
{
postSettleAccountsBusinessReconciliationGenerateReconciliation
({
orderVOS
:
state
?.
rows
}).
then
((
res
)
=>
{
const
_params
:
any
=
{
orderVOS
:
_state
?.
rows
}
postSettleAccountsBusinessReconciliationGenerateReconciliation
(
_params
).
then
((
res
)
=>
{
if
(
res
.
code
===
1000
)
{
const
data
=
res
.
data
;
setDataSource
(
data
);
setTabelSource
(
data
.
rows
);
setBuyerData
({
buyerMemberId
:
state
?.
rows
?.[
0
]?.
buyerMemberId
,
buyerRoleId
:
state
?.
rows
?.[
0
]?.
buyerRoleId
})
setBuyerData
({
buyerMemberId
:
_state
?.
rows
?.[
0
]?.
buyerMemberId
,
buyerRoleId
:
_
state
?.
rows
?.[
0
]?.
buyerRoleId
})
}
})
}
else
{
...
...
@@ -333,7 +339,7 @@ const Add = () => {
}
else
{
setSubmitLoading
(
false
)
}
})
})
.
catch
(()
=>
{
setSubmitLoading
(
false
)
})
})
}
...
...
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