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
a384ea47
Commit
a384ea47
authored
Jan 22, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 调整样式
parent
5ed3843d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
18 deletions
+27
-18
index.tsx
...terService/components/RefundModal/UploadVoucher/index.tsx
+23
-14
index.ts
...vice/components/RefundModal/UploadVoucher/schema/index.ts
+2
-2
index.tsx
src/pages/afterService/components/ReturnDetailInfo/index.tsx
+2
-2
No files found.
src/pages/afterService/components/RefundModal/UploadVoucher/index.tsx
View file @
a384ea47
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Button
,
Space
,
message
,
Spin
}
from
'antd'
;
import
{
Button
,
Space
,
message
,
Spin
}
from
'antd'
;
import
styled
from
'styled-components'
;
import
{
createFormActions
}
from
'@formily/antd'
;
import
{
createFormActions
}
from
'@formily/antd'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
NiceForm
from
'@/components/NiceForm'
;
...
@@ -7,6 +8,12 @@ import { uploadVoucherModalSchema } from './schema';
...
@@ -7,6 +8,12 @@ import { uploadVoucherModalSchema } from './schema';
const
uploadVoucherFormActions
=
createFormActions
();
const
uploadVoucherFormActions
=
createFormActions
();
const
Wrap
=
styled
(
props
=>
<
div
{
...
props
}
/>)
`
.ant-form-item {
margin-bottom: 2;
}
`
interface
BankAccount
{
interface
BankAccount
{
name
:
string
,
name
:
string
,
bankAccount
:
string
,
bankAccount
:
string
,
...
@@ -109,20 +116,22 @@ const UploadVoucher: React.FC<UploadVoucherProps> = ({
...
@@ -109,20 +116,22 @@ const UploadVoucher: React.FC<UploadVoucherProps> = ({
return
(
return
(
<
Spin
spinning=
{
loading
}
>
<
Spin
spinning=
{
loading
}
>
<
NiceForm
<
Wrap
>
previewPlaceholder=
""
<
NiceForm
value=
{
bankAccount
}
previewPlaceholder=
""
effects=
{
(
$
,
{
setFieldState
})
=>
{
value=
{
bankAccount
}
effects=
{
(
$
,
{
setFieldState
})
=>
{
}
}
expressionScope=
{
{
}
}
beforeUpload
:
beforeUploadVoucher
,
expressionScope=
{
{
}
}
beforeUpload
:
beforeUploadVoucher
,
actions=
{
uploadVoucherFormActions
}
}
}
schema=
{
uploadVoucherModalSchema
}
actions=
{
uploadVoucherFormActions
}
onSubmit=
{
handleUploadVoucherSubmit
}
schema=
{
uploadVoucherModalSchema
}
colon
onSubmit=
{
handleUploadVoucherSubmit
}
/>
colon
/>
</
Wrap
>
<
div
style=
{
{
marginTop
:
20
,
textAlign
:
'center'
}
}
>
<
div
style=
{
{
marginTop
:
20
,
textAlign
:
'center'
}
}
>
<
Space
>
<
Space
>
...
...
src/pages/afterService/components/RefundModal/UploadVoucher/schema/index.ts
View file @
a384ea47
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Author: XieZhiXiong
* @Date: 2021-01-06 11:36:34
* @Date: 2021-01-06 11:36:34
* @LastEditors: XieZhiXiong
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-
07 13:57:30
* @LastEditTime: 2021-01-
22 14:36:52
* @Description:
* @Description:
*/
*/
import
{
ISchema
}
from
'@formily/antd'
;
import
{
ISchema
}
from
'@formily/antd'
;
...
@@ -23,7 +23,7 @@ export const uploadVoucherModalSchema: ISchema = {
...
@@ -23,7 +23,7 @@ export const uploadVoucherModalSchema: ISchema = {
properties
:
{
properties
:
{
name
:
{
name
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'账户名称'
,
title
:
'
还款
账户名称'
,
'x-component'
:
'Text'
,
'x-component'
:
'Text'
,
},
},
bankAccount
:
{
bankAccount
:
{
...
...
src/pages/afterService/components/ReturnDetailInfo/index.tsx
View file @
a384ea47
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Author: XieZhiXiong
* @Date: 2020-11-05 18:02:18
* @Date: 2020-11-05 18:02:18
* @LastEditors: XieZhiXiong
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-22 1
0:33
:27
* @LastEditTime: 2021-01-22 1
4:34
:27
* @Description: 退款明细
* @Description: 退款明细
*/
*/
import
React
,
{
useState
}
from
'react'
;
import
React
,
{
useState
}
from
'react'
;
...
@@ -318,7 +318,7 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({
...
@@ -318,7 +318,7 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({
)
&&
(
)
&&
(
<
div
<
div
className=
{
styles
[
'deliver-item-return'
]
}
className=
{
styles
[
'deliver-item-return'
]
}
onClick=
{
()
=>
handleRefund
(
item
.
refundId
,
item
.
channel
,
item
.
refundAmount
)
}
onClick=
{
()
=>
handleRefund
(
item
.
refundId
,
PAY_CHANNEL_OFFLINE
,
item
.
refundAmount
)
}
>
>
退款
退款
</
div
>
</
div
>
...
...
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