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
fukai
swifteditor
Commits
e93a8ad9
Commit
e93a8ad9
authored
Jun 14, 2022
by
fukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充910
parent
6d4eafd2
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
128 additions
and
3 deletions
+128
-3
LeadPage.js
src/swift/LeadPage.js
+1
-1
MT910.js
src/swift/MT/MT910.js
+16
-0
index.js
src/swift/MT/index.js
+3
-0
SWFPage2.js
src/swift/SWFPage2.js
+2
-2
T13D.js
src/swift/Tags/T13D.js
+104
-0
index.js
src/swift/Tags/index.js
+2
-0
No files found.
src/swift/LeadPage.js
View file @
e93a8ad9
...
...
@@ -106,7 +106,7 @@ export const mty=[
{
mty
:
"mt769"
,
desp
:
"MT 769 Advice of Reduction or Release"
},
{
mty
:
"mt799"
,
desp
:
"MT 799 Free Format Message"
},
{
mty
:
"mt910"
,
desp
:
"MT 910 Confirmation of Credit"
},
{
mty
:
"mt940"
,
desp
:
"MT 940 Customer Statement Message"
},
{
mty
:
"mt950"
,
desp
:
"MT 950 Statement Message"
},
{
mty
:
"mt995"
,
desp
:
"MT 995 Queries"
},
...
...
src/swift/MT/MT910.js
0 → 100644
View file @
e93a8ad9
const
Tags
=
[
{
"tag"
:
"20"
,
"status"
:
"M"
,
"tno"
:
1
,
"letter"
:[],
"label"
:
"Transaction Reference Number"
,
"tagValue"
:[{},
null
]},
{
"tag"
:
"21"
,
"status"
:
"M"
,
"tno"
:
2
,
"letter"
:[],
"label"
:
"Related Reference"
,
"tagValue"
:[{},
null
]},
{
"tag"
:
"25"
,
"status"
:
"M"
,
"tno"
:
3
,
"letter"
:[
"25"
,
"25P"
],
"label"
:
"Account Identification"
,
"tagValue"
:[{},
null
]},
{
"tag"
:
"13D"
,
"status"
:
"O"
,
"tno"
:
4
,
"letter"
:[],
"label"
:
"Date/Time Indication"
,
"tagValue"
:[{},
null
]},
{
"tag"
:
"32A"
,
"status"
:
"M"
,
"tno"
:
5
,
"letter"
:[],
"label"
:
"Value Date, Currency Code, Amount"
,
"tagValue"
:[{},
null
]},
{
"tag"
:
"50A"
,
"status"
:
"O"
,
"tno"
:
6
,
"letter"
:[
"50A"
,
"50F"
,
"50K"
],
"label"
:
"Ordering Customer"
,
"tagValue"
:[{},
null
]},
{
"tag"
:
"52A"
,
"status"
:
"O"
,
"tno"
:
7
,
"letter"
:[
"52A"
,
"52D"
],
"label"
:
"Ordering Institution"
,
"tagValue"
:[{},
null
]},
{
"tag"
:
"56A"
,
"status"
:
"O"
,
"tno"
:
8
,
"letter"
:[
"56A"
,
"56D"
],
"label"
:
"Intermediary"
,
"tagValue"
:[{},
null
]},
{
"tag"
:
"72"
,
"status"
:
"O"
,
"tno"
:
9
,
"letter"
:[],
"label"
:
"Sender to Receiver Information"
,
"tagValue"
:[{},
null
]}
]
const
Title
=
"MT 910 Confirmation of Credit"
export
default
{
Tags
,
Title
}
\ No newline at end of file
src/swift/MT/index.js
View file @
e93a8ad9
...
...
@@ -66,6 +66,7 @@ import MT768 from './MT768'
import
MT769
from
'./MT769'
import
MT799
from
'./MT799'
import
MT910
from
'./MT910'
import
MT940
from
'./MT940'
import
MT950
from
'./MT950'
...
...
@@ -200,6 +201,8 @@ export default function MTFactory(mty)
return
MT769
if
(
mty
==
"mt799"
)
return
MT799
if
(
mty
==
"mt910"
)
return
MT910
if
(
mty
==
"mt940"
)
return
MT940
if
(
mty
==
"mt950"
)
...
...
src/swift/SWFPage2.js
View file @
e93a8ad9
...
...
@@ -149,9 +149,9 @@ export class SWFPage extends Component
}
//锦州 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${s119}${gpistr}:EOH:\r\n${message}\r\n-\r\n`
//南商
message
=
`{1:F01
${
window
.
BANK_LOGIC_ADDRESS
}
0000000000}{2:I
${
mty
}${
getLogicAdress
(
this
.
props
.
rcv_bic_info
.
rcv_bic
)}
N}
${
header3
}
{4:\r\n
${
message
}
\r\n-}`
message
=
`{1:F01
${
this
.
props
.
snd_bic_info
.
snd_bic
}
0000000000}{2:I
${
mty
}${
getLogicAdress
(
this
.
props
.
rcv_bic_info
.
rcv_bic
)}
N}
${
header3
}
{4:\r\n
${
message
}
\r\n-}`
}
console
.
log
(
message
)
//
console.log(message)
this
.
props
.
actions
.
updateSwiftMessage
(
message
)
let
flag
=
(
this
.
props
.
params
.
rcvbic
&&
this
.
props
.
params
.
rcvbic
!=
'NONE'
)
||
this
.
props
.
params
.
action
==
'redit'
...
...
src/swift/Tags/T13D.js
0 → 100644
View file @
e93a8ad9
import
React
,{
Component
}
from
'react'
import
{
Form
,
Input
,
DatePicker
,
Row
,
Col
,
Button
,
Icon
,
Select
,
TimePicker
}
from
'antd'
;
const
FormItem
=
Form
.
Item
;
const
InputSize
=
'default'
const
Option
=
Select
.
Option
export
default
class
T13C
extends
Component
{
name
=
'13D'
desp
=
"Time Indication"
pattern
=
"/8c/4!n1!x4!n"
tno
=
-
1
keys
=
[
1
,
2
,
3
,
4
]
constructor
(
props
)
{
super
(
props
)
}
onChange
=
(
index
,
value
)
=>
{
let
obj
=
{};
if
(
!
value
)
value
=
""
let
objtemp
=
this
.
props
.
value
objtemp
=
objtemp
&&
objtemp
.
length
?
objtemp
[
0
]
:
{}
objtemp
[
"s"
+
index
]
=
value
;
this
.
keys
.
forEach
(
i
=>
{
obj
[
's'
+
i
]
=
objtemp
[
's'
+
i
]
});
let
mval
=
null
if
(
!
obj
.
s1
)
obj
.
s1
=
undefined
if
(
!
obj
.
s3
)
obj
.
s3
=
undefined
if
(
obj
.
s1
||
obj
.
s2
||
obj
.
s3
||
obj
.
s4
)
mval
=
`/
${
obj
.
s1
}
/
${
obj
.
s2
}${
obj
.
s3
}${
obj
.
s4
}
`
.
replace
(
/:/g
,
''
)
this
.
props
.
onValue
([
obj
,
mval
])
}
render
()
{
let
value
=
this
.
props
.
value
let
mval
=
value
&&
value
.
length
?
value
[
1
]
:
''
let
errmsg
=
value
&&
value
.
length
==
3
?
value
[
2
]:{}
value
=
value
&&
value
.
length
?
value
[
0
]
:
{}
return
(
<
Row
>
{
/*<Col span={1} style={{textAlign:'center'}}><h3 style={{display:'inline-block'}}>/</h3></Col>*/
}
<
Col
span
=
{
6
}
>
<
FormItem
label
=
"Date"
required
=
{
this
.
props
.
status
==
'M'
||
mval
?
'required'
:
null
}
help
=
{
errmsg
.
s1
}
validateStatus
=
{
errmsg
.
s1
?
'error'
:
null
}
>
<
DatePicker
defaultValue
=
""
format
=
"yyMMdd"
value
=
{
value
.
s1
}
onChange
=
{(
date
,
dateString
)
=>
this
.
onChange
(
1
,
dateString
)}
/
>
<
/FormItem
>
<
/Col
>
{
/*<Col span={1} style={{textAlign:'center'}}><h3 style={{display:'inline-block'}}>/</h3></Col>*/
}
<
Col
style
=
{{
"minWidth"
:
'100px'
}}
span
=
{
6
}
>
<
FormItem
label
=
"Time"
required
=
{
this
.
props
.
status
==
'M'
||
mval
?
'required'
:
null
}
help
=
{
errmsg
.
s2
}
validateStatus
=
{
errmsg
.
s2
?
'error'
:
null
}
>
<
TimePicker
ref
=
"s2"
value
=
{
value
.
s2
}
placeholder
=
"time"
format
=
"HHmm"
onChange
=
{(
time
,
val
)
=>
this
.
onChange
(
2
,
val
)}
/
>
<
/FormItem
>
<
/Col
>
<
Col
style
=
{{
"minWidth"
:
'80px'
}}
span
=
{
6
}
>
<
FormItem
label
=
"Sign"
required
=
{
this
.
props
.
status
==
'M'
||
mval
?
'required'
:
null
}
help
=
{
errmsg
.
s3
}
validateStatus
=
{
errmsg
.
s3
?
'error'
:
null
}
>
<
Select
allowClear
=
{
true
}
ref
=
"s3"
value
=
{
value
.
s3
}
placeholder
=
"Sign"
style
=
{{
width
:
"100%"
}}
onChange
=
{
val
=>
this
.
onChange
(
3
,
val
)}
>
<
Option
value
=
{
'+'
}
>
{
"+"
}
<
/Option
>
<
Option
value
=
{
'-'
}
>
{
"-"
}
<
/Option
>
<
/Select
>
<
/FormItem
>
<
/Col
>
<
Col
style
=
{{
"minWidth"
:
'100px'
}}
span
=
{
6
}
>
<
FormItem
label
=
"Offset"
required
=
{
this
.
props
.
status
==
'M'
||
mval
?
'required'
:
null
}
help
=
{
errmsg
.
s4
}
validateStatus
=
{
errmsg
.
s4
?
'error'
:
null
}
>
<
TimePicker
ref
=
"s4"
value
=
{
value
.
s4
}
placeholder
=
"offset"
format
=
"HHmm"
disabledHours
=
{()
=>
[
14
,
15
,
16
,
17
,
18
,
19
,
20
,
21
,
22
,
23
,
24
]}
onChange
=
{(
time
,
val
)
=>
this
.
onChange
(
4
,
val
)}
/
>
<
/FormItem
>
<
/Col
>
<
/Row>
)
}
}
\ No newline at end of file
src/swift/Tags/index.js
View file @
e93a8ad9
...
...
@@ -2,6 +2,7 @@ import React from 'react'
import
T11R
from
"./T11R"
import
T11S
from
"./T11S"
import
T13C
from
"./T13C"
import
T13D
from
"./T13D"
import
T14A
from
'./T14A'
;
import
T14C
from
'./T14C'
import
T14D
from
'./T14D'
...
...
@@ -351,6 +352,7 @@ export default function(tag,props,onValue){
case
"T11R"
:
return
<
T11R
{...
props
}
onValue
=
{
onValue
}
/>
;
case
"T11S"
:
return
<
T11S
{...
props
}
onValue
=
{
onValue
}
/>
;
case
"T13C"
:
return
<
T13C
{...
props
}
onValue
=
{
onValue
}
/>
;
case
"T13D"
:
return
<
T13D
{...
props
}
onValue
=
{
onValue
}
/>
;
case
"T14A"
:
return
<
T14A
{...
props
}
onValue
=
{
onValue
}
/>
;
case
"T14C"
:
return
<
T14C
{...
props
}
onValue
=
{
onValue
}
/>
;
case
"T14D"
:
return
<
T14D
{...
props
}
onValue
=
{
onValue
}
/>
;
...
...
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