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
2f88e1c7
Commit
2f88e1c7
authored
Aug 31, 2021
by
jianglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复MT760 767 下拉选择项bug
parent
6fd3d783
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
86 additions
and
29 deletions
+86
-29
T22A.js
src/swift/Tags/T22A.js
+31
-20
T22D.js
src/swift/Tags/T22D.js
+36
-4
T23B.js
src/swift/Tags/T23B.js
+19
-5
No files found.
src/swift/Tags/T22A.js
View file @
2f88e1c7
...
...
@@ -28,32 +28,43 @@ export default class T22A extends Component
value
=
value
&&
value
.
length
?
value
[
0
]
:
{}
let
Purpose
=
[
'ACNF'
,
'ADVI'
,
'ISSU'
]
let
Purpose1
=
[
'ACNF'
,
'ADVI'
,
'ISSU'
]
Purpose1
=
[
let
Purpose1
=
[
{
code
:
"ACNF"
,
name
:
"ACNF"
},
{
code
:
"ADVI"
,
name
:
"ADVI"
},
{
code
:
"ISSU"
,
name
:
"ISSU"
}]
if
(
this
.
props
.
mty
==
'mt300'
)
Purpose
=
[
'AMND'
,
'CANC'
,
'DUPL'
,
'EXOP'
,
'NEWT'
]
if
(
this
.
props
.
mty
==
'mt300'
)
{
Purpose
=
[
'AMND'
,
'CANC'
,
'DUPL'
,
'EXOP'
,
'NEWT'
]
Purpose1
=
[
{
code
:
"AMND"
,
name
:
"Amendment"
},
{
code
:
"CANC"
,
name
:
"Cancellation"
},
{
code
:
"DUPL"
,
name
:
"Duplicate"
},
{
code
:
"EXOP"
,
name
:
"Option Exercise"
},
{
code
:
"NEWT"
,
name
:
"New Confirmation"
}]
if
(
this
.
props
.
mty
==
'mt306'
)
Purpose
=
[
'AMND'
,
'CANC'
,
'NEWT'
]
{
code
:
"AMND"
,
name
:
"Amendment"
},
{
code
:
"CANC"
,
name
:
"Cancellation"
},
{
code
:
"DUPL"
,
name
:
"Duplicate"
},
{
code
:
"EXOP"
,
name
:
"Option Exercise"
},
{
code
:
"NEWT"
,
name
:
"New Confirmation"
}]
}
if
(
this
.
props
.
mty
==
'mt306'
)
{
Purpose
=
[
'AMND'
,
'CANC'
,
'NEWT'
]
Purpose1
=
[
{
code
:
"AMND"
,
name
:
"Amendment"
},
{
code
:
"CANC"
,
name
:
"Cancellation"
},
{
code
:
"NEWT"
,
name
:
"New Confirmation"
}]
if
(
this
.
props
.
mty
==
'mt320'
||
this
.
props
.
mty
==
'mt360'
||
this
.
props
.
mty
==
'mt620'
)
Purpose
=
[
'AMND'
,
'CANC'
,
'DUPL'
,
'NEWT'
]
{
code
:
"AMND"
,
name
:
"Amendment"
},
{
code
:
"CANC"
,
name
:
"Cancellation"
},
{
code
:
"NEWT"
,
name
:
"New Confirmation"
}]
}
if
(
this
.
props
.
mty
==
'mt320'
||
this
.
props
.
mty
==
'mt360'
||
this
.
props
.
mty
==
'mt620'
)
{
Purpose
=
[
'AMND'
,
'CANC'
,
'DUPL'
,
'NEWT'
]
Purpose1
=
[
{
code
:
"AMND"
,
name
:
"Amendment"
},
{
code
:
"CANC"
,
name
:
"Cancellation"
},
{
code
:
"DUPL"
,
name
:
"Duplicate"
},
{
code
:
"NEWT"
,
name
:
"New Confirmation"
}]
{
code
:
"AMND"
,
name
:
"Amendment"
},
{
code
:
"CANC"
,
name
:
"Cancellation"
},
{
code
:
"DUPL"
,
name
:
"Duplicate"
},
{
code
:
"NEWT"
,
name
:
"New Confirmation"
}]
}
if
(
this
.
props
.
mty
==
'mt760'
||
this
.
props
.
mty
==
'mt767'
){
Purpose1
=
[
{
code
:
"ISSU"
,
name
:
"Issuance of undertaking"
},
{
code
:
"ISCO"
,
name
:
"Issuance of counter-undertaking"
},
{
code
:
"ADVI"
,
name
:
"Advice of issued undertaking"
},
{
code
:
"ACNF"
,
name
:
"Advice and confirm of issued undert"
},
{
code
:
"ICCO"
,
name
:
"Issuance of counter-counter-undert."
}]
}
return
(
<
Row
>
<
Col
span
=
{
10
}
>
<
FormItem
...
...
src/swift/Tags/T22D.js
View file @
2f88e1c7
...
...
@@ -27,6 +27,38 @@ export default class T22D extends Component
let
errmsg
=
value
&&
value
.
length
==
3
?
value
[
2
]:{}
value
=
value
&&
value
.
length
?
value
[
0
]
:
{}
let
Purpose
=
[
{
code
:
"DGAR"
,
name
:
"Demand guarantee"
},
{
code
:
"DOCR"
,
name
:
"Documentary credit"
},
{
code
:
"STBY"
,
name
:
"Standby letter of credit"
},
{
code
:
"UNDK"
,
name
:
"Undertaking"
}]
if
(
this
.
props
.
mty
==
'mt760'
||
this
.
props
.
mty
==
'mt767'
)
{
Purpose
=
[
{
code
:
"DEPU"
,
name
:
"Dependent undertaking"
},
{
code
:
"DGAR"
,
name
:
"Demand guarantee"
},
{
code
:
"STBY"
,
name
:
"Standby letter of credit"
}]
if
(
this
.
props
.
seqlist
[
0
].
seqlist
){
if
(
this
.
props
.
seqlist
[
0
].
seqlist
==
"B"
){
Purpose
=
[
{
code
:
"DGAR"
,
name
:
"Demand guarantee"
},
{
code
:
"STBY"
,
name
:
"Standby letter of credit"
}]
}
if
(
this
.
props
.
seqlist
[
0
].
seqlist
==
"C"
){
Purpose
=
[
{
code
:
"DEPU"
,
name
:
"Dependent undertaking"
},
{
code
:
"DGAR"
,
name
:
"Demand guarantee"
},
{
code
:
"STBY"
,
name
:
"Standby letter of credit"
}]
}
}
}
return
(
<
Row
>
<
Col
span
=
{
10
}
>
<
FormItem
...
...
@@ -41,10 +73,10 @@ export default class T22D extends Component
optionFilterProp
=
"children"
notFoundContent
=
"Wrong Code"
style
=
{{
width
:
"100%"
}}
value
=
{
value
.
s1
}
onChange
=
{
val
=>
this
.
onChange
(
val
)}
>
<
Option
value
=
"DGAR"
>
DGAR
-
Demand
guarantee
<
/Option
>
<
Option
value
=
"DOCR"
>
DOCR
-
Documentary
credit
<
/Option
>
<
Option
value
=
"STBY"
>
STBY
-
Standby
letter
of
credit
<
/Option
>
<
Option
value
=
"UNDK"
>
UNDK
-
Undertaking
<
/Option
>
{
Purpose
.
map
(
item
=><
Option
key
=
{
item
.
code
}
value
=
{
item
.
code
}
>
{
item
.
code
+
'-'
+
item
.
name
}
<
/Option>
)
}
<
/Select
>
<
/FormItem
>
<
/Col
>
...
...
src/swift/Tags/T23B.js
View file @
2f88e1c7
...
...
@@ -26,6 +26,21 @@ export default class T23B extends Component
let
errmsg
=
value
&&
value
.
length
==
3
?
value
[
2
]:{}
value
=
value
&&
value
.
length
?
value
[
0
]
:
{}
let
Purpose
=
[
{
code
:
"CRED"
,
name
:
"Normal credit transfer"
},
{
code
:
"CRTS"
,
name
:
"Test message"
},
{
code
:
"SPAY"
,
name
:
"SWIFTPay"
},
{
code
:
"SPRI"
,
name
:
"Priority"
},
{
code
:
"SSTD"
,
name
:
"Standard"
}]
if
(
this
.
props
.
mty
==
'mt760'
||
this
.
props
.
mty
==
'mt767'
)
{
Purpose
=
[
{
code
:
"COND"
,
name
:
"Expiry condition"
},
{
code
:
"FIXD"
,
name
:
"Specified date of expiry"
},
{
code
:
"OPEN"
,
name
:
"No specified date of expiry."
}]
}
return
(
<
Row
>
<
Col
span
=
{
12
}
>
<
FormItem
...
...
@@ -35,11 +50,10 @@ export default class T23B extends Component
<
Select
allowClear
=
{
true
}
size
=
{
InputSize
}
placeholder
=
"Bank Operation Code"
value
=
{
value
.
s1
}
style
=
{{
width
:
"100%"
}}
onChange
=
{(
val
)
=>
this
.
onChange
(
val
)}
>
<
Option
value
=
"CRED"
>
CRED
-
Normal
credit
transfer
<
/Option
>
<
Option
value
=
"CRTS"
>
CRTS
-
Test
message
<
/Option
>
<
Option
value
=
"SPAY"
>
SPAY
-
SWIFTPay
<
/Option
>
<
Option
value
=
"SPRI"
>
SPRI
-
Priority
<
/Option
>
<
Option
value
=
"SSTD"
>
SSTD
-
Standard
<
/Option
>
{
Purpose
.
map
(
item
=><
Option
key
=
{
item
.
code
}
value
=
{
item
.
code
}
>
{
item
.
code
+
'-'
+
item
.
name
}
<
/Option>
)
}
<
/Select
>
<
/FormItem
>
...
...
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