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
57d0f452
Commit
57d0f452
authored
Jan 12, 2022
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into v2
parents
1e5197ce
de9438a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
add.tsx
src/pages/balance/businessRequestFunds/admin/add.tsx
+16
-1
No files found.
src/pages/balance/businessRequestFunds/admin/add.tsx
View file @
57d0f452
...
...
@@ -73,6 +73,7 @@ const Add = () => {
const
[
path
]
=
useState
(
pathname
.
split
(
'/'
)[
pathname
.
split
(
'/'
).
length
-
1
]);
const
[
payWayData
,
setPayWayData
]
=
useState
<
any
>
([]);
const
[
payWay
,
setPayWay
]
=
useState
<
number
>
(
1
);
const
[
applyType
,
setApplyType
]
=
useState
<
number
>
(
1
);
const
[
dataSource
,
setDataSource
]
=
useState
<
any
>
(
_state
?.
data
??
{});
const
[
tabelSource
,
setTabelSource
]
=
useState
<
any
>
([]);
const
[
applyOptions
,
setApplyOptions
]
=
useState
<
any
>
((
path
===
'funds'
||
path
===
'editFunds'
)
?
[{
label
:
_state
?.
data
?.
applyTypeName
,
value
:
_state
?.
data
?.
applyType
}]
:
[]);
...
...
@@ -653,6 +654,11 @@ const Add = () => {
return
current
&&
current
<
moment
().
endOf
(
'day'
);
}
const
_handleApplyTypeChange
=
(
value
:
any
)
=>
{
form
.
setFieldsValue
({
applyType
:
value
})
setApplyType
(
value
);
}
useEffect
(()
=>
{
if
(
!
_isFunds
)
{
tabelSource
.
forEach
((
item
)
=>
{
...
...
@@ -661,6 +667,15 @@ const Add = () => {
}
},
[
tabelSource
])
useEffect
(()
=>
{
if
(
!
_isFunds
)
{
tabelSource
.
forEach
((
item
)
=>
{
form
.
setFieldsValue
({
[
`applyPayment
${
item
.
billNo
}
_
${
item
.
billId
}
`
]:
null
})
})
}
setTabelSource
([]);
},
[
applyType
])
return
(
<>
<
PeripheralLayout
...
...
@@ -698,7 +713,7 @@ const Add = () => {
name=
'applyType'
rules=
{
[{
required
:
true
,
message
:
'请选择请款类型'
}]
}
>
<
Select
placeholder=
{
'请选择请款类型'
}
disabled=
{
!
_isAdd
}
options=
{
applyOptions
}
/>
<
Select
onChange=
{
_handleApplyTypeChange
}
placeholder=
{
'请选择请款类型'
}
disabled=
{
!
_isAdd
}
options=
{
applyOptions
}
/>
</
Form
.
Item
>
</
Col
>
</
Row
>
...
...
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