Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
shuniu-admin-react
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
superman
shuniu-admin-react
Commits
3055db68
Commit
3055db68
authored
Jul 28, 2016
by
superman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
bad46fae
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
572 additions
and
406 deletions
+572
-406
workspace.xml
.idea/workspace.xml
+130
-171
BaseInfoForm.jsx
src/components/ProductForm/BaseInfoForm.jsx
+277
-144
HuikuanInfoForm.jsx
src/components/ProductForm/HuikuanInfoForm.jsx
+53
-27
ShouyiYongjingForm.jsx
src/components/ProductForm/ShouyiYongjingForm.jsx
+91
-49
AddItem.jsx
src/containers/Product/AddItem.jsx
+1
-1
EditItem.jsx
src/containers/Product/EditItem.jsx
+1
-1
PassItem.jsx
src/containers/Remittance/PassItem.jsx
+14
-13
utils.js
src/utils.js
+5
-0
No files found.
.idea/workspace.xml
View file @
3055db68
This diff is collapsed.
Click to expand it.
src/components/ProductForm/BaseInfoForm.jsx
View file @
3055db68
This diff is collapsed.
Click to expand it.
src/components/ProductForm/HuikuanInfoForm.jsx
View file @
3055db68
...
@@ -20,7 +20,8 @@ import {
...
@@ -20,7 +20,8 @@ import {
Spin
Spin
}
from
'antd'
;
}
from
'antd'
;
import
{
arrayRemoveIndex
,
UUID
,
formItemLayout
,
smallFormItemLayout
,
footerFormSubmitLayout
}
from
'../../utils'
;
import
{
arrayRemoveIndex
,
NULL
,
UUID
,
formItemLayout
,
smallFormItemLayout
,
footerFormSubmitLayout
}
from
'../../utils'
;
@
Form
.
create
()
@
Form
.
create
()
export
default
class
HuikuanInfoForm
extends
Component
{
export
default
class
HuikuanInfoForm
extends
Component
{
...
@@ -48,38 +49,63 @@ export default class HuikuanInfoForm extends Component {
...
@@ -48,38 +49,63 @@ export default class HuikuanInfoForm extends Component {
render
()
{
render
()
{
const
{
form
:{
getFieldProps
},
product
:{
fundRaisedAccount
},
loading
}
=
this
.
props
;
const
{
form
:{
getFieldProps
},
product
:{
fundRaisedAccount
},
loading
,
isEdit
}
=
this
.
props
;
return
(
return
(
<
Spin
spinning=
{
loading
}
>
<
Spin
spinning=
{
loading
}
>
<
Form
horizontal
onSubmit=
{
this
.
handleSubmit
.
bind
(
this
)
}
>
<
Form
horizontal
onSubmit=
{
this
.
handleSubmit
.
bind
(
this
)
}
>
<
Form
.
Item
label=
"名称"
help=
"接收打款帐户名称"
{
...
smallFormItemLayout
}
>
<
Input
placeholder=
"名称"
<
Form
.
Item
label=
"名称"
help=
{
isEdit
&&
"接收打款帐户名称"
}
{
...
smallFormItemLayout
}
>
{
...
getFieldProps
('
fundRaisedAccount
.
name
',
{
{
initialValue
:
fundRaisedAccount
.
name
isEdit
?
})}
<
Input
placeholder=
"名称"
/>
{
...
getFieldProps
('
fundRaisedAccount
.
name
',
{
initialValue
:
fundRaisedAccount
.
name
})}
/>
:
fundRaisedAccount
.
name
||
NULL
}
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
"银行帐号"
help=
"接收打款银行帐号"
{
...
smallFormItemLayout
}
>
<
Form
.
Item
label=
"银行帐号"
help=
{
isEdit
&&
"接收打款银行帐号"
}
{
...
smallFormItemLayout
}
>
<
Input
placeholder=
"银行帐号"
{
{
...
getFieldProps
('
fundRaisedAccount
.
number
',
{
isEdit
?
initialValue
:
fundRaisedAccount
.
number
<
Input
placeholder=
"银行帐号"
})}
{
...
getFieldProps
('
fundRaisedAccount
.
number
',
{
/>
initialValue
:
fundRaisedAccount
.
number
})}
/>
:
fundRaisedAccount
.
number
||
NULL
}
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
"开户行"
help=
"接收打款银行开户行"
{
...
formItemLayout
}
>
<
Form
.
Item
label=
"开户行"
help=
{
isEdit
&&
"接收打款银行开户行"
}
{
...
formItemLayout
}
>
<
Input
placeholder=
"开户行"
{
{
...
getFieldProps
('
fundRaisedAccount
.
bank
',
{
isEdit
?
initialValue
:
fundRaisedAccount
.
bank
<
Input
placeholder=
"开户行"
})}
{
...
getFieldProps
('
fundRaisedAccount
.
bank
',
{
/>
initialValue
:
fundRaisedAccount
.
bank
})}
/>
:
fundRaisedAccount
.
bank
||
NULL
}
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
"打款须知"
help=
"接收打款的一些必要告知信息"
{
...
formItemLayout
}
>
<
Form
.
Item
label=
"打款须知"
help=
{
isEdit
&&
"接收打款的一些必要告知信息"
}
{
...
formItemLayout
}
>
<
Input
type=
"textarea"
autosize=
{
{
minRows
:
5
,
maxRows
:
20
}
}
placeholder=
""
{
{
...
getFieldProps
('
fundRaisedAccount
.
memo
',
{
isEdit
?
initialValue
:
fundRaisedAccount
.
memo
<
Input
type=
"textarea"
autosize=
{
{
minRows
:
5
,
maxRows
:
20
}
}
placeholder=
""
})}
{
...
getFieldProps
('
fundRaisedAccount
.
memo
',
{
/>
initialValue
:
fundRaisedAccount
.
memo
})}
/>
:
fundRaisedAccount
.
memo
||
NULL
}
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
{
...
footerFormSubmitLayout
}
style=
{
{
marginTop
:
30
}
}
>
<
Form
.
Item
{
...
footerFormSubmitLayout
}
style=
{
{
marginTop
:
30
}
}
>
<
Button
type=
"primary"
htmlType=
"submit"
loading=
{
loading
}
><
Icon
type=
"save"
/>
保存
</
Button
>
<
Button
type=
"primary"
htmlType=
"submit"
loading=
{
loading
}
><
Icon
type=
"save"
/>
保存
</
Button
>
...
@@ -87,7 +113,7 @@ export default class HuikuanInfoForm extends Component {
...
@@ -87,7 +113,7 @@ export default class HuikuanInfoForm extends Component {
!
this
.
props
.
isCreate
&&
!
this
.
props
.
isCreate
&&
<
Button
onClick=
{
e
=>
{
e
.
preventDefault
();
this
.
props
.
history
.
goBack
();}
}
<
Button
onClick=
{
e
=>
{
e
.
preventDefault
();
this
.
props
.
history
.
goBack
();}
}
style=
{
{
marginLeft
:
'1em'
}
}
>
style=
{
{
marginLeft
:
'1em'
}
}
>
<
Icon
type=
"rollback"
/>
返回
<
Icon
type=
"rollback"
/>
返回
</
Button
>
</
Button
>
}
}
</
Form
.
Item
>
</
Form
.
Item
>
...
...
src/components/ProductForm/ShouyiYongjingForm.jsx
View file @
3055db68
This diff is collapsed.
Click to expand it.
src/containers/Product/AddItem.jsx
View file @
3055db68
...
@@ -148,7 +148,7 @@ export default class AddItem extends Component {
...
@@ -148,7 +148,7 @@ export default class AddItem extends Component {
<
Tabs
className=
{
styles
.
tabs
}
tabPosition=
"left"
>
<
Tabs
className=
{
styles
.
tabs
}
tabPosition=
"left"
>
{
tabs
.
map
(
tp
=>
{
tabs
.
map
(
tp
=>
<
Tabs
.
TabPane
tab=
{
tp
.
tab
}
key=
{
tp
.
key
}
>
<
Tabs
.
TabPane
tab=
{
tp
.
tab
}
key=
{
tp
.
key
}
>
{
product
&&
<
tp
.
children
{
...
this
.
props
}
/>
}
{
product
&&
<
tp
.
children
{
...
this
.
props
}
isEdit=
{
true
}
/>
}
</
Tabs
.
TabPane
>
</
Tabs
.
TabPane
>
)
}
)
}
</
Tabs
>
</
Tabs
>
...
...
src/containers/Product/EditItem.jsx
View file @
3055db68
...
@@ -118,7 +118,7 @@ export default class EditItem extends Component {
...
@@ -118,7 +118,7 @@ export default class EditItem extends Component {
</
div
>
</
div
>
);
);
const
title
=
(
product
&&
product
.
itemShortTitle
?
product
.
itemShortTitle
+
' - '
:
''
)
+
'产品详情'
;
const
title
=
(
product
&&
product
.
itemShortTitle
?
product
.
itemShortTitle
+
' - '
:
''
)
+
'产品详情'
+
(
isEdit
?
' - 编辑中'
:
''
)
;
const
header
=
(<
MainHeader
breadcrumb=
{
[
'产品管理'
,
'产品详情'
]
}
title=
{
title
}
operation=
{
operation
}
/>);
const
header
=
(<
MainHeader
breadcrumb=
{
[
'产品管理'
,
'产品详情'
]
}
title=
{
title
}
operation=
{
operation
}
/>);
...
...
src/containers/Remittance/PassItem.jsx
View file @
3055db68
...
@@ -28,7 +28,8 @@ import {
...
@@ -28,7 +28,8 @@ import {
formItemLayout
,
formItemLayout
,
smallFormItemLayout
,
smallFormItemLayout
,
footerFormSubmitLayout
,
footerFormSubmitLayout
,
remittanceAuditStatusToString
remittanceAuditStatusToString
,
leftRightFormItemLayout
}
from
'../../utils'
;
}
from
'../../utils'
;
@
connect
(
state
=>
({
@
connect
(
state
=>
({
...
@@ -119,7 +120,7 @@ export default class PassItem extends Component {
...
@@ -119,7 +120,7 @@ export default class PassItem extends Component {
const
header
=
(<
MainHeader
breadcrumb=
{
[
'审核管理'
,
'报单审核'
,
'审核详情'
]
}
title=
{
title
}
operation=
{
operation
}
/>);
const
header
=
(<
MainHeader
breadcrumb=
{
[
'审核管理'
,
'报单审核'
,
'审核详情'
]
}
title=
{
title
}
operation=
{
operation
}
/>);
const
filayout
=
{...
formItemLayout
,
labelCol
:
{
span
:
6
}};
const
imgProps
=
(
src
)
=>
({
const
imgProps
=
(
src
)
=>
({
src
:
src
+
'!t'
,
src
:
src
+
'!t'
,
...
@@ -142,60 +143,60 @@ export default class PassItem extends Component {
...
@@ -142,60 +143,60 @@ export default class PassItem extends Component {
<
Form
className=
"main-form"
horizontal
>
<
Form
className=
"main-form"
horizontal
>
<
Row
style=
{
{
padding
:
'0 20px'
}
}
>
<
Row
style=
{
{
padding
:
'0 20px'
}
}
>
<
Col
span=
"12"
>
<
Col
span=
"12"
>
<
Form
.
Item
label=
"报单时间"
{
...
fil
ayout
}
>
<
Form
.
Item
label=
"报单时间"
{
...
leftRightFormItemL
ayout
}
>
{
audit
.
dateCreated
&&
formatDateTime
(
audit
.
dateCreated
)
||
'错误的时间'
}
{
audit
.
dateCreated
&&
formatDateTime
(
audit
.
dateCreated
)
||
'错误的时间'
}
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
"产品募集情况"
{
...
fil
ayout
}
>
<
Form
.
Item
label=
"产品募集情况"
{
...
leftRightFormItemL
ayout
}
>
{
'已募集:'
+
audit
.
fundRaisedOver
+
'、募集目标:'
+
audit
.
fundRaisedTarget
}
{
'已募集:'
+
audit
.
fundRaisedOver
+
'、募集目标:'
+
audit
.
fundRaisedTarget
}
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
"预约姓名"
{
...
fil
ayout
}
>
<
Form
.
Item
label=
"预约姓名"
{
...
leftRightFormItemL
ayout
}
>
{
audit
.
buyerName
}
{
audit
.
buyerName
}
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
"预约金额"
{
...
fil
ayout
}
>
<
Form
.
Item
label=
"预约金额"
{
...
leftRightFormItemL
ayout
}
>
{
audit
.
reservationAmount
}
{
audit
.
reservationAmount
}
</
Form
.
Item
>
</
Form
.
Item
>
{
{
isEdit
?
isEdit
?
<
Form
.
Item
label=
"实际入账金额"
help=
"实际入账金额,请核对打款凭条"
{
...
fil
ayout
}
>
<
Form
.
Item
label=
"实际入账金额"
help=
"实际入账金额,请核对打款凭条"
{
...
leftRightFormItemL
ayout
}
>
<
Input
placeholder=
"实际入账金额"
<
Input
placeholder=
"实际入账金额"
{
...
getFieldProps
('
remittanceAmount
',
{
{
...
getFieldProps
('
remittanceAmount
',
{
initialValue
:
audit
.
remittanceAmount
initialValue
:
audit
.
remittanceAmount
})}
/>
})}
/>
</
Form
.
Item
>
</
Form
.
Item
>
:
:
<
Form
.
Item
label=
"实际入账金额"
{
...
fil
ayout
}
>
<
Form
.
Item
label=
"实际入账金额"
{
...
leftRightFormItemL
ayout
}
>
{
audit
.
remittanceAmount
}
{
audit
.
remittanceAmount
}
</
Form
.
Item
>
</
Form
.
Item
>
}
}
{
{
isEdit
?
isEdit
?
<
Form
.
Item
label=
"投资人姓名"
help=
"真实的投资人姓名,请核对身份证照片上的姓名"
{
...
fil
ayout
}
>
<
Form
.
Item
label=
"投资人姓名"
help=
"真实的投资人姓名,请核对身份证照片上的姓名"
{
...
leftRightFormItemL
ayout
}
>
<
Input
placeholder=
"投资人姓名"
<
Input
placeholder=
"投资人姓名"
{
...
getFieldProps
('
realName
',
{
{
...
getFieldProps
('
realName
',
{
initialValue
:
audit
.
realName
initialValue
:
audit
.
realName
})}
/>
})}
/>
</
Form
.
Item
>
</
Form
.
Item
>
:
:
<
Form
.
Item
label=
"投资人姓名"
{
...
fil
ayout
}
>
<
Form
.
Item
label=
"投资人姓名"
{
...
leftRightFormItemL
ayout
}
>
{
audit
.
realName
}
{
audit
.
realName
}
</
Form
.
Item
>
</
Form
.
Item
>
}
}
{
{
isEdit
?
isEdit
?
<
Form
.
Item
label=
"投资人身份证号码"
help=
"真实的投资人身份证号码,请核对身份证照片上的号码"
{
...
fil
ayout
}
>
<
Form
.
Item
label=
"投资人身份证号码"
help=
"真实的投资人身份证号码,请核对身份证照片上的号码"
{
...
leftRightFormItemL
ayout
}
>
<
Input
placeholder=
"投资人身份证号码"
<
Input
placeholder=
"投资人身份证号码"
{
...
getFieldProps
('
identityCardNumber
',
{
{
...
getFieldProps
('
identityCardNumber
',
{
initialValue
:
audit
.
identityCardNumber
initialValue
:
audit
.
identityCardNumber
})}
/>
})}
/>
</
Form
.
Item
>
</
Form
.
Item
>
:
:
<
Form
.
Item
label=
"投资人身份证号码"
{
...
fil
ayout
}
>
<
Form
.
Item
label=
"投资人身份证号码"
{
...
leftRightFormItemL
ayout
}
>
{
audit
.
identityCardNumber
}
{
audit
.
identityCardNumber
}
</
Form
.
Item
>
</
Form
.
Item
>
}
}
{
{
isEdit
&&
isEdit
&&
<
Form
.
Item
label=
"拒绝理由"
{
...
fil
ayout
}
>
<
Form
.
Item
label=
"拒绝理由"
{
...
leftRightFormItemL
ayout
}
>
<
Input
placeholder=
"拒绝理由"
<
Input
placeholder=
"拒绝理由"
{
...
getFieldProps
('
memo
',
{
{
...
getFieldProps
('
memo
',
{
initialValue
:
audit
.
memo
initialValue
:
audit
.
memo
...
...
src/utils.js
View file @
3055db68
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// return key + '=' + query[key];
// return key + '=' + query[key];
// }).join('&');
// }).join('&');
export
const
NULL
=
'_____?_____'
;
export
function
serialize
(
obj
,
prefix
)
{
export
function
serialize
(
obj
,
prefix
)
{
var
str
=
[];
var
str
=
[];
...
@@ -139,6 +140,10 @@ export const formItemLayout = {
...
@@ -139,6 +140,10 @@ export const formItemLayout = {
labelCol
:
{
span
:
4
},
labelCol
:
{
span
:
4
},
wrapperCol
:
{
span
:
16
},
wrapperCol
:
{
span
:
16
},
};
};
export
const
leftRightFormItemLayout
=
{
labelCol
:
{
span
:
6
},
wrapperCol
:
{
span
:
16
}
};
export
const
smallFormItemLayout
=
{
export
const
smallFormItemLayout
=
{
labelCol
:
{
span
:
4
},
labelCol
:
{
span
:
4
},
...
...
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