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
4fae0002
Commit
4fae0002
authored
Oct 20, 2023
by
s_guodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加MT110、MT190
parent
7e73bcf0
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
155 additions
and
0 deletions
+155
-0
LeadPage.js
src/swift/LeadPage.js
+14
-0
MT110.js
src/swift/MT/MT110.js
+27
-0
index.js
src/swift/MT/index.js
+3
-0
T52B.js
src/swift/Tags/T52B.js
+109
-0
index.js
src/swift/Tags/index.js
+2
-0
No files found.
src/swift/LeadPage.js
View file @
4fae0002
...
@@ -12,6 +12,8 @@ const Step = Steps.Step;
...
@@ -12,6 +12,8 @@ const Step = Steps.Step;
export
const
mty
=
[
export
const
mty
=
[
{
mty
:
"mt101"
,
desp
:
"MT 101 Request for Transfer"
},
{
mty
:
"mt101"
,
desp
:
"MT 101 Request for Transfer"
},
{
mty
:
"mt103"
,
desp
:
"MT 103 Single Customer Credit Transfer"
},
{
mty
:
"mt103"
,
desp
:
"MT 103 Single Customer Credit Transfer"
},
{
mty
:
"mt110"
,
desp
:
"MT 110 Advice of Cheque(s)"
},
{
mty
:
"mt190"
,
desp
:
"MT 190 dvice of Charges"
},
{
mty
:
"mt195"
,
desp
:
"MT 195 Queries"
},
{
mty
:
"mt195"
,
desp
:
"MT 195 Queries"
},
{
mty
:
"mt196"
,
desp
:
"MT 196 Answers"
},
{
mty
:
"mt196"
,
desp
:
"MT 196 Answers"
},
{
mty
:
"mt199"
,
desp
:
"MT 199 Free Format Message"
},
{
mty
:
"mt199"
,
desp
:
"MT 199 Free Format Message"
},
...
@@ -27,6 +29,7 @@ export const mty=[
...
@@ -27,6 +29,7 @@ export const mty=[
{
mty
:
"mt305"
,
desp
:
"MT 305 Foreign Currency Option Confirmation"
},
{
mty
:
"mt305"
,
desp
:
"MT 305 Foreign Currency Option Confirmation"
},
{
mty
:
"mt320"
,
desp
:
"MT 320 Fixed Loan/Deposit Confirmation"
},
{
mty
:
"mt320"
,
desp
:
"MT 320 Fixed Loan/Deposit Confirmation"
},
{
mty
:
"mt360"
,
desp
:
"MT 360 Single Currency Interest Rate Derivative Confirmation"
},
{
mty
:
"mt360"
,
desp
:
"MT 360 Single Currency Interest Rate Derivative Confirmation"
},
{
mty
:
"mt399"
,
desp
:
"MT 399 Free Format Message"
},
{
mty
:
"mt400"
,
desp
:
"MT 400 Advice of Payment"
},
{
mty
:
"mt400"
,
desp
:
"MT 400 Advice of Payment"
},
{
mty
:
"mt410"
,
desp
:
"MT 410 Acknowledgement"
},
{
mty
:
"mt410"
,
desp
:
"MT 410 Acknowledgement"
},
...
@@ -40,9 +43,20 @@ export const mty=[
...
@@ -40,9 +43,20 @@ export const mty=[
{
mty
:
"mt600"
,
desp
:
"MT 600 Commodity Trade Confirmation"
},
{
mty
:
"mt600"
,
desp
:
"MT 600 Commodity Trade Confirmation"
},
{
mty
:
"mt601"
,
desp
:
"MT 601 Commodity Option Confirmation"
},
{
mty
:
"mt604"
,
desp
:
"MT 604 Commodity Transfer"
},
{
mty
:
"mt605"
,
desp
:
"MT 605 Commodity Notice to Receive"
},
{
mty
:
"mt605"
,
desp
:
"MT 605 Commodity Notice to Receive"
},
{
mty
:
"mt606"
,
desp
:
"MT 606 Commodity Debit Advice"
},
{
mty
:
"mt607"
,
desp
:
"MT 607 Commodity Credit Advice"
},
{
mty
:
"mt607"
,
desp
:
"MT 607 Commodity Credit Advice"
},
{
mty
:
"mt608"
,
desp
:
"MT 608 Statement of a Commodity Account"
},
{
mty
:
"mt620"
,
desp
:
"MT 620 Commodity Fixed Loan/Deposit Confirmation"
},
{
mty
:
"mt620"
,
desp
:
"MT 620 Commodity Fixed Loan/Deposit Confirmation"
},
{
mty
:
"mt690"
,
desp
:
"MT 690 Advice of Charges"
},
{
mty
:
"mt691"
,
desp
:
"MT 691 Request for Payment of Charges"
},
{
mty
:
"mt692"
,
desp
:
"MT 692 Request for Cancellation"
},
{
mty
:
"mt695"
,
desp
:
"MT 695 Queries"
},
{
mty
:
"mt696"
,
desp
:
"MT 696 Answers"
},
{
mty
:
"mt698"
,
desp
:
"MT 698 Proprietary Message"
},
{
mty
:
"mt699"
,
desp
:
"MT 699 Free Format Message"
},
{
mty
:
"mt700"
,
desp
:
"MT 700 Issue of a Documentary Credit"
},
{
mty
:
"mt700"
,
desp
:
"MT 700 Issue of a Documentary Credit"
},
{
mty
:
"mt701"
,
desp
:
"MT 701 General Financial Institution Transfer"
},
{
mty
:
"mt701"
,
desp
:
"MT 701 General Financial Institution Transfer"
},
...
...
src/swift/MT/MT110.js
0 → 100644
View file @
4fae0002
const
Tags
=
[
{
"tag"
:
"20"
,
"status"
:
"M"
,
"tno"
:
1
,
"letter"
:[],
"label"
:
"Sender's Reference"
,
"tagValue"
:[{},
null
]},
{
"tag"
:
"53A"
,
"status"
:
"O"
,
"tno"
:
2
,
"letter"
:[
"53A"
,
"53B"
,
"53D"
],
"label"
:
"Sender's Correspondent"
,
"tagValue"
:[{},
null
]},
{
"tag"
:
"54A"
,
"status"
:
"O"
,
"tno"
:
3
,
"letter"
:[
"54A"
,
"54B"
,
"54D"
],
"label"
:
"Receiver's Correspondent"
,
"tagValue"
:[{},
null
]},
{
"tag"
:
"72"
,
"status"
:
"O"
,
"tno"
:
4
,
"letter"
:[],
"label"
:
"Sender to Receiver Information"
,
"tagValue"
:[{},
null
]},
{
"cyclist"
:
"5"
,
"cycs"
:[[
{
"tag"
:
"21"
,
"status"
:
"M"
,
"tno"
:
5
,
"letter"
:[],
"label"
:
"Cheque Number"
,
"tagValue"
:[{},
null
]},
{
"tag"
:
"30"
,
"status"
:
"M"
,
"tno"
:
6
,
"letter"
:[],
"label"
:
"Date of Issue"
,
"tagValue"
:[{},
null
]},
{
"tag"
:
"32A"
,
"status"
:
"M"
,
"tno"
:
7
,
"letter"
:[
"32A"
,
"32B"
],
"label"
:
"Amount"
,
"tagValue"
:[{},
null
]},
{
"tag"
:
"50A"
,
"status"
:
"O"
,
"tno"
:
8
,
"letter"
:[
"50A"
,
"50F"
,
"50K"
],
"label"
:
"Payer"
,
"tagValue"
:[{},
null
]},
{
"tag"
:
"52A"
,
"status"
:
"O"
,
"tno"
:
9
,
"letter"
:[
"52A"
,
"52B"
,
"52D"
],
"label"
:
"Drawer Bank"
,
"tagValue"
:[{},
null
]},
{
"tag"
:
"59"
,
"status"
:
"M"
,
"tno"
:
10
,
"letter"
:[
"59"
,
"59F"
],
"label"
:
"Payee"
,
"tagValue"
:[{},
null
]}
]],
"pattern"
:[
{
"tag"
:
"21"
,
"status"
:
"M"
,
"tno"
:
5
,
"letter"
:[],
"label"
:
"Cheque Number"
,
"tagValue"
:[{},
null
]},
{
"tag"
:
"30"
,
"status"
:
"M"
,
"tno"
:
6
,
"letter"
:[],
"label"
:
"Date of Issue"
,
"tagValue"
:[{},
null
]},
{
"tag"
:
"32A"
,
"status"
:
"M"
,
"tno"
:
7
,
"letter"
:[
"32A"
,
"32B"
],
"label"
:
"Amount"
,
"tagValue"
:[{},
null
]},
{
"tag"
:
"50A"
,
"status"
:
"O"
,
"tno"
:
8
,
"letter"
:[
"50A"
,
"50F"
,
"50K"
],
"label"
:
"Payer"
,
"tagValue"
:[{},
null
]},
{
"tag"
:
"52A"
,
"status"
:
"O"
,
"tno"
:
9
,
"letter"
:[
"52A"
,
"52B"
,
"52D"
],
"label"
:
"Drawer Bank"
,
"tagValue"
:[{},
null
]},
{
"tag"
:
"59"
,
"status"
:
"M"
,
"tno"
:
10
,
"letter"
:[
"59"
,
"59F"
],
"label"
:
"Payee"
,
"tagValue"
:[{},
null
]}
]
}
]
const
Title
=
"MT 110 Advice of Cheque(s)"
export
default
{
Tags
,
Title
}
;
src/swift/MT/index.js
View file @
4fae0002
import
MT1000
from
'./MT1000'
import
MT1000
from
'./MT1000'
import
MT101
from
'./MT101'
import
MT101
from
'./MT101'
import
MT103
from
'./MT103'
import
MT103
from
'./MT103'
import
MT110
from
'./MT110'
import
MT202
from
'./MT202'
import
MT202
from
'./MT202'
import
MT202COV
from
'./MT202COV'
import
MT202COV
from
'./MT202COV'
...
@@ -84,6 +85,8 @@ export default function MTFactory(mty)
...
@@ -84,6 +85,8 @@ export default function MTFactory(mty)
return
MT101
return
MT101
if
(
mty
==
"mt103"
)
if
(
mty
==
"mt103"
)
return
MT103
return
MT103
if
(
mty
==
"mt110"
)
return
MT110
if
(
mty
==
"mt202"
)
if
(
mty
==
"mt202"
)
return
MT202
return
MT202
if
(
mty
==
"mt202cov"
)
if
(
mty
==
"mt202cov"
)
...
...
src/swift/Tags/T52B.js
0 → 100644
View file @
4fae0002
import
React
,{
Component
}
from
'react'
import
{
Form
,
Input
,
DatePicker
,
Row
,
Col
,
Button
,
Icon
,
Select
}
from
'antd'
;
import
{
InputSize
,
Currency
}
from
"./Utils"
import
YBIC
from
'./YBIC'
const
FormItem
=
Form
.
Item
;
const
Option
=
Select
.
Option
export
default
class
T52B
extends
Component
{
name
=
'52B'
desp
=
"Drawer Bank"
pattern
=
""
tno
=
-
1
keys
=
[
1
,
2
,
3
]
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
=
""
if
(
obj
.
s1
)
mval
=
'/'
+
obj
.
s1
if
(
obj
.
s2
)
mval
=
mval
+
'/'
+
obj
.
s2
if
(
obj
.
s3
)
mval
=
mval
?
`
${
mval
}
\r\n
${
obj
.
s3
}
`
:
obj
.
s3
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
(
<
div
>
<
Row
>
<
Col
style
=
{{
"minWidth"
:
'100px'
}}
span
=
{
16
}
>
<
Col
span
=
{
10
}
>
<
FormItem
help
=
{
errmsg
.
s1
}
validateStatus
=
{
errmsg
.
s1
?
'error'
:
null
}
label
=
"D/C"
>
<
Select
allowClear
=
{
true
}
value
=
{
value
.
s1
}
style
=
{{
width
:
"100%"
}}
placeholder
=
"D/C"
onChange
=
{(
val
)
=>
this
.
onChange
(
1
,
val
)}
>
<
Option
value
=
"C"
>
C
<
/Option
>
<
Option
value
=
"D"
>
D
<
/Option
>
<
/Select
>
<
/FormItem
>
<
/Col
>
<
Col
span
=
{
14
}
>
<
FormItem
help
=
{
errmsg
.
s2
}
validateStatus
=
{
errmsg
.
s2
?
'error'
:
null
}
label
=
"Account"
>
<
Input
addonBefore
=
"/"
maxLength
=
{
34
}
style
=
{{
imeMode
:
'disabled'
}}
placeholder
=
"Account"
value
=
{
value
.
s2
}
onChange
=
{(
e
)
=>
this
.
onChange
(
2
,
e
.
target
.
value
)}
/
>
<
/FormItem
>
<
/Col
>
<
/Col
>
<
/Row
>
<
Row
>
<
Col
span
=
{
12
}
>
<
FormItem
label
=
"Location"
help
=
{
errmsg
.
s3
}
validateStatus
=
{
errmsg
.
s3
?
'error'
:
null
}
>
<
Input
type
=
"text"
value
=
{
value
.
s3
}
onChange
=
{
e
=>
this
.
onChange
(
3
,
e
.
target
.
value
)}
maxLength
=
{
35
}
style
=
{{
imeMode
:
'disabled'
}}
placeholder
=
"Location"
/>
<
/FormItem
>
<
/Col
>
<
/Row
>
<
/div
>
)
}
}
\ No newline at end of file
src/swift/Tags/index.js
View file @
4fae0002
...
@@ -198,6 +198,7 @@ import T51 from "./T51"
...
@@ -198,6 +198,7 @@ import T51 from "./T51"
import
T51A
from
"./T51A"
import
T51A
from
"./T51A"
import
T51D
from
"./T51D"
import
T51D
from
"./T51D"
import
T52A
from
"./T52A"
import
T52A
from
"./T52A"
import
T52B
from
"./T52B"
import
T52C
from
'./T52C'
import
T52C
from
'./T52C'
import
T52D
from
"./T52D"
import
T52D
from
"./T52D"
import
T53A
from
"./T53A"
import
T53A
from
"./T53A"
...
@@ -552,6 +553,7 @@ export default function(tag,props,onValue){
...
@@ -552,6 +553,7 @@ export default function(tag,props,onValue){
case
"T51A"
:
return
<
T51A
{...
props
}
onValue
=
{
onValue
}
/>
;
case
"T51A"
:
return
<
T51A
{...
props
}
onValue
=
{
onValue
}
/>
;
case
"T51D"
:
return
<
T51D
{...
props
}
onValue
=
{
onValue
}
/>
;
case
"T51D"
:
return
<
T51D
{...
props
}
onValue
=
{
onValue
}
/>
;
case
"T52A"
:
return
<
T52A
{...
props
}
onValue
=
{
onValue
}
/>
;
case
"T52A"
:
return
<
T52A
{...
props
}
onValue
=
{
onValue
}
/>
;
case
"T52B"
:
return
<
T52B
{...
props
}
onValue
=
{
onValue
}
/>
;
case
"T52C"
:
return
<
T52C
{...
props
}
onValue
=
{
onValue
}
/>
;
case
"T52C"
:
return
<
T52C
{...
props
}
onValue
=
{
onValue
}
/>
;
case
"T52D"
:
return
<
T52D
{...
props
}
onValue
=
{
onValue
}
/>
;
case
"T52D"
:
return
<
T52D
{...
props
}
onValue
=
{
onValue
}
/>
;
case
"T53A"
:
return
<
T53A
{...
props
}
onValue
=
{
onValue
}
/>
;
case
"T53A"
:
return
<
T53A
{...
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