Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
psbc_remit
Overview
Overview
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
qianyuheng
psbc_remit
Commits
d1cedf35
Commit
d1cedf35
authored
Jul 30, 2020
by
YuMengShuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改fcyame和fcyadd
parent
e7a7a6bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
70 deletions
+69
-70
index.js
src/views/Business/Fcyadd/views/index.js
+35
-35
index.js
src/views/Business/Fcyame/views/index.js
+34
-35
No files found.
src/views/Business/Fcyadd/views/index.js
View file @
d1cedf35
...
...
@@ -44,48 +44,48 @@ export default class FcyaddScreen extends Page {
this
.
model
=
new
mFcyadd
()
}
//交易初始化
async
componentWillMount
()
{
let
brdinr
=
''
;
//
async componentWillMount() {
//
let brdinr = '';
if
(
this
.
props
.
location
.
query
)
{
if
(
this
.
props
.
location
.
query
.
from
==
"sptsel"
){
this
.
extra
.
sptinr
=
this
.
props
.
location
.
query
.
sptinr
;
}
else
{
brdinr
=
this
.
props
.
location
.
query
.
brdinr
;
}
}
const
rtnmsg
=
await
Api
.
post
(
this
.
extra
.
inifrm
+
'/init'
,
{
params
:
{
sptinr
:
this
.
extra
.
sptinr
,
brdinr
}
})
//
if (this.props.location.query) {
//
if(this.props.location.query.from=="sptsel"){
//
this.extra.sptinr=this.props.location.query.sptinr;
//
}else{
//
brdinr=this.props.location.query.brdinr;
//
}
//
}
//
const rtnmsg = await Api.post(this.extra.inifrm + '/init', { params: { sptinr:this.extra.sptinr,brdinr } })
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//
if (rtnmsg.retcod == SUCCESS) {
this
.
extra
.
bchlevelLst
=
rtnmsg
.
codetable
.
ownbch
;
this
.
extra
.
bopmod_szflg
=
rtnmsg
.
codetable
.
bopmod_szflg
;
Object
.
assign
(
this
.
model
,
rtnmsg
.
data
)
this
.
model
.
max_cur
=
'CNY'
this
.
model
.
concur
=
'CNY'
this
.
model
.
nom1_cur
=
'CNY'
this
.
setState
({
flag
:
false
})
}
else
{
Notification
.
error
({
message
:
'服务端请求失败!'
})
}
//快照模式下,不必开启校验,否则,静默校验,和记录变动
!
this
.
loadDisplay
()
&&
this
.
model
.
openMonitor
()
//开启校验
}
componentWillUnmount
()
{
this
.
model
.
stopMonitor
()
//关闭校验
}
//
this.extra.bchlevelLst = rtnmsg.codetable.ownbch;
//
this.extra.bopmod_szflg = rtnmsg.codetable.bopmod_szflg;
//
Object.assign(this.model, rtnmsg.data)
//
this.model.max_cur = 'CNY'
//
this.model.concur = 'CNY'
//
this.model.nom1_cur= 'CNY'
//
this.setState({ flag: false })
//
}
//
else {
//
Notification.error({ message: '服务端请求失败!' })
//
}
//
//快照模式下,不必开启校验,否则,静默校验,和记录变动
//
!this.loadDisplay() && this.model.openMonitor() //开启校验
//
}
//
componentWillUnmount() {
//
this.model.stopMonitor()//关闭校验
//
}
//交易内实现
renderPage
()
{
return
(
<
Card
title
=
"个人购汇"
size
=
"small"
className
=
"transTitle"
>
<
Steps
>
<
StepItem
title
=
"新增"
>
<
Card
title
=
"个人购汇
新增
"
size
=
"small"
className
=
"transTitle"
>
<
Basic
model
=
{
this
.
model
}
extra
=
{
this
.
extra
}
flag
=
{
this
.
state
.
flag
}
/
>
<
/StepItem
>
{
/* <StepItem title="表外&保证金">
<Engp model={this.model} extra={this.extra} />
</StepItem>
...
...
@@ -103,7 +103,7 @@ export default class FcyaddScreen extends Page {
<
/Steps
>
<
/Card
>
)
...
...
src/views/Business/Fcyame/views/index.js
View file @
d1cedf35
...
...
@@ -44,48 +44,47 @@ export default class FcyameScreen extends Page {
this
.
model
=
new
mFcyame
()
}
//交易初始化
async
componentWillMount
()
{
let
brdinr
=
''
;
//
async componentWillMount() {
//
let brdinr = '';
if
(
this
.
props
.
location
.
query
)
{
if
(
this
.
props
.
location
.
query
.
from
==
"sptsel"
){
this
.
extra
.
sptinr
=
this
.
props
.
location
.
query
.
sptinr
;
}
else
{
brdinr
=
this
.
props
.
location
.
query
.
brdinr
;
}
}
const
rtnmsg
=
await
Api
.
post
(
this
.
extra
.
inifrm
+
'/init'
,
{
params
:
{
sptinr
:
this
.
extra
.
sptinr
,
brdinr
}
})
//
if (this.props.location.query) {
//
if(this.props.location.query.from=="sptsel"){
//
this.extra.sptinr=this.props.location.query.sptinr;
//
}else{
//
brdinr=this.props.location.query.brdinr;
//
}
//
}
//
const rtnmsg = await Api.post(this.extra.inifrm + '/init', { params: { sptinr:this.extra.sptinr,brdinr } })
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//
if (rtnmsg.retcod == SUCCESS) {
this
.
extra
.
bchlevelLst
=
rtnmsg
.
codetable
.
ownbch
;
this
.
extra
.
bopmod_szflg
=
rtnmsg
.
codetable
.
bopmod_szflg
;
Object
.
assign
(
this
.
model
,
rtnmsg
.
data
)
this
.
model
.
max_cur
=
'CNY'
this
.
model
.
concur
=
'CNY'
this
.
model
.
nom1_cur
=
'CNY'
this
.
setState
({
flag
:
false
})
}
else
{
Notification
.
error
({
message
:
'服务端请求失败!'
})
}
//快照模式下,不必开启校验,否则,静默校验,和记录变动
!
this
.
loadDisplay
()
&&
this
.
model
.
openMonitor
()
//开启校验
}
componentWillUnmount
()
{
this
.
model
.
stopMonitor
()
//关闭校验
}
//
this.extra.bchlevelLst = rtnmsg.codetable.ownbch;
//
this.extra.bopmod_szflg = rtnmsg.codetable.bopmod_szflg;
//
Object.assign(this.model, rtnmsg.data)
//
this.model.max_cur = 'CNY'
//
this.model.concur = 'CNY'
//
this.model.nom1_cur= 'CNY'
//
this.setState({ flag: false })
//
}
//
else {
//
Notification.error({ message: '服务端请求失败!' })
//
}
//
//快照模式下,不必开启校验,否则,静默校验,和记录变动
//
!this.loadDisplay() && this.model.openMonitor() //开启校验
//
}
//
componentWillUnmount() {
//
this.model.stopMonitor()//关闭校验
//
}
//交易内实现
renderPage
()
{
return
(
<
Card
title
=
"个人购汇"
size
=
"small"
className
=
"transTitle"
>
<
Steps
>
<
StepItem
title
=
"修改"
>
<
Card
title
=
"个人购汇修改"
size
=
"small"
className
=
"transTitle"
>
<
Basic
model
=
{
this
.
model
}
extra
=
{
this
.
extra
}
flag
=
{
this
.
state
.
flag
}
/
>
<
/StepItem
>
{
/* <StepItem title="表外&保证金">
<Engp model={this.model} extra={this.extra} />
</StepItem>
...
...
@@ -103,7 +102,7 @@ export default class FcyameScreen extends Page {
<
/Steps
>
<
/Card
>
)
...
...
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