Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swifteditor
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
daixuan
swifteditor
Commits
f2aefe5b
Commit
f2aefe5b
authored
Nov 05, 2018
by
fukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支持103,202,202COV GPI表示
parent
8bff7671
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
LeadPage.js
src/swift/LeadPage.js
+1
-0
Result.js
src/swift/Result.js
+3
-1
SWFPage2.js
src/swift/SWFPage2.js
+6
-1
No files found.
src/swift/LeadPage.js
View file @
f2aefe5b
...
...
@@ -15,6 +15,7 @@ export const mty=[
{
mty
:
"mt196"
,
desp
:
"MT 196 Answers"
},
{
mty
:
"mt199"
,
desp
:
"MT 199 Free Format Message"
},
{
mty
:
"mt202"
,
desp
:
"MT 202 General Financial Institution Transfer"
},
{
mty
:
"mt202COV"
,
desp
:
"MT 202 COV General Financial Institution Transfer"
},
{
mty
:
"mt295"
,
desp
:
"MT 295 Queries"
},
{
mty
:
"mt296"
,
desp
:
"MT 296 Answers"
},
{
mty
:
"mt299"
,
desp
:
"MT 299 Free Format Message"
},
...
...
src/swift/Result.js
View file @
f2aefe5b
...
...
@@ -18,9 +18,11 @@ const Step = Steps.Step;
componentWillMount
()
{
//提交报文
let
datas
=
{
MSGTYP
:
this
.
props
.
extra
.
msgtyp
.
substring
(
2
),
SNDKEY
:
this
.
props
.
sndkey
,
MCTSWTID
:
this
.
props
.
extra
.
mctid
}
let
datas
=
{
MSGTYP
:
this
.
props
.
extra
.
msgtyp
.
substring
(
2
)
.
toUpperCase
()
,
SNDKEY
:
this
.
props
.
sndkey
,
MCTSWTID
:
this
.
props
.
extra
.
mctid
}
//取出20,21
let
tags
=
this
.
props
.
swift_message_tree
.
Tags
if
(
tags
.
length
&&
tags
[
0
].
seqlist
)
tags
=
tags
[
0
].
seqs
[
0
]
if
(
tags
.
length
&&
tags
[
0
].
tag
==
'20'
)
datas
.
F20
=
tags
[
0
].
tagValue
[
1
]
if
(
tags
.
length
>
1
&&
tags
[
1
].
tag
==
'21'
)
...
...
src/swift/SWFPage2.js
View file @
f2aefe5b
...
...
@@ -131,7 +131,12 @@ export class SWFPage extends Component
}
else
{
// message = `{1:${getLogicAdress(this.props.snd_bic_info.snd_bic)}0000000000}{2:I${this.props.params.key.substring(2)}${getLogicAdress(this.props.rcv_bic_info.rcv_bic)}N}{4:\r\n${message}\r\n}`
message
=
`:MT:
${
this
.
props
.
params
.
key
.
substring
(
2
)}
\r\n:IO:
${
this
.
props
.
rcv_bic_info
.
rcv_bic
}
\r\n:II:
${
this
.
props
.
snd_bic_info
.
snd_bic
}
\r\n:MP:N\r\n:EOH:\r\n
${
message
}
\r\n-\r\n`
let
gpistr
=
':121:ID for UUID generation: TRNPAY3
\
r
\
n'
let
mty
=
this
.
props
.
params
.
key
.
substring
(
2
)
mty
=
mty
.
toUpperCase
()
if
(
mty
!=
'103'
&&
mty
!=
'202'
&&
mty
!=
'202COV'
)
gpistr
=
''
message
=
`:MT:
${
mty
}
\r\n:IO:
${
this
.
props
.
rcv_bic_info
.
rcv_bic
}
\r\n:II:
${
this
.
props
.
snd_bic_info
.
snd_bic
}
\r\n:MP:N\r\n
${
gpistr
}
:EOH:\r\n
${
message
}
\r\n-\r\n`
}
console
.
log
(
message
)
this
.
props
.
actions
.
updateSwiftMessage
(
message
)
...
...
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