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
914f6565
Commit
914f6565
authored
Jan 22, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 晚上样式
parent
f75d1be5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
14 deletions
+23
-14
index.tsx
...uotaMenage/detail/components/UploadVoucherModal/index.tsx
+23
-14
No files found.
src/pages/payandSettle/creditApplication/quotaMenage/detail/components/UploadVoucherModal/index.tsx
View file @
914f6565
...
...
@@ -2,11 +2,12 @@
* @Author: XieZhiXiong
* @Date: 2021-01-13 13:46:08
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-
13 13:46:22
* @LastEditTime: 2021-01-
22 14:42:09
* @Description: 上传凭证弹窗
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Modal
,
message
}
from
'antd'
;
import
styled
from
'styled-components'
;
import
{
createFormActions
}
from
'@formily/antd'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
{
PublicApi
}
from
'@/services/api'
;
...
...
@@ -15,6 +16,12 @@ import styles from './index.less';
const
uploadVoucherFormActions
=
createFormActions
();
const
Wrap
=
styled
(
props
=>
<
div
{
...
props
}
/>)
`
.ant-form-item {
margin-bottom: 2;
}
`
interface
UploadVoucherModalProps
{
/**
* 是否可见
...
...
@@ -124,19 +131,21 @@ const UploadVoucherModal: React.FC<UploadVoucherModalProps> = (props: UploadVouc
onCancel=
{
onCancel
}
destroyOnClose
>
<
NiceForm
previewPlaceholder=
""
initialValues=
{
bankAccount
}
effects=
{
(
$
,
{
setFieldState
})
=>
{
}
}
expressionScope=
{
{
beforeUpload
:
beforeUploadVoucher
,
}
}
actions=
{
uploadVoucherFormActions
}
schema=
{
uploadVoucherModalSchema
}
onSubmit=
{
handleUploadVoucherSubmit
}
/>
<
Wrap
>
<
NiceForm
previewPlaceholder=
""
initialValues=
{
bankAccount
}
effects=
{
(
$
,
{
setFieldState
})
=>
{
}
}
expressionScope=
{
{
beforeUpload
:
beforeUploadVoucher
,
}
}
actions=
{
uploadVoucherFormActions
}
schema=
{
uploadVoucherModalSchema
}
onSubmit=
{
handleUploadVoucherSubmit
}
/>
</
Wrap
>
</
Modal
>
);
};
...
...
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