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
b62f16cf
Commit
b62f16cf
authored
3 years ago
by
fukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支持seqlist的判断
parent
0f0ae1f9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
90 additions
and
33 deletions
+90
-33
SWFPage2.js
src/swift/SWFPage2.js
+1
-1
T22A.js
src/swift/Tags/T22A.js
+34
-23
T22D.js
src/swift/Tags/T22D.js
+36
-4
T23B.js
src/swift/Tags/T23B.js
+19
-5
No files found.
src/swift/SWFPage2.js
View file @
b62f16cf
...
@@ -1212,7 +1212,7 @@ export class Tag extends MessageArea
...
@@ -1212,7 +1212,7 @@ export class Tag extends MessageArea
}
}
output
()
output
()
{
{
let
comp
=
TagSet
(
"T"
+
this
.
props
.
pattern
.
tag
,{
action
:
this
.
props
.
action
,
enLock
:
this
.
props
.
enLock
,
mty
:
this
.
props
.
mty
,
status
:
this
.
props
.
pattern
.
status
,
value
:
this
.
props
.
pattern
.
tagValue
,
desp
:
this
.
props
.
pattern
.
label
,
t111
:
this
.
props
.
t111
},
let
comp
=
TagSet
(
"T"
+
this
.
props
.
pattern
.
tag
,{
action
:
this
.
props
.
action
,
enLock
:
this
.
props
.
enLock
,
mty
:
this
.
props
.
mty
,
status
:
this
.
props
.
pattern
.
status
,
value
:
this
.
props
.
pattern
.
tagValue
,
desp
:
this
.
props
.
pattern
.
label
,
t111
:
this
.
props
.
t111
,
seqlist
:
this
.
props
.
seqlist
},
this
.
onValue
this
.
onValue
)
)
if
(
!
comp
)
if
(
!
comp
)
...
...
This diff is collapsed.
Click to expand it.
src/swift/Tags/T22A.js
View file @
b62f16cf
...
@@ -28,32 +28,43 @@ export default class T22A extends Component
...
@@ -28,32 +28,43 @@ export default class T22A extends Component
value
=
value
&&
value
.
length
?
value
[
0
]
:
{}
value
=
value
&&
value
.
length
?
value
[
0
]
:
{}
let
Purpose
=
[
'ACNF'
,
'ADVI'
,
'ISSU'
]
let
Purpose
=
[
'ACNF'
,
'ADVI'
,
'ISSU'
]
let
Purpose1
=
[
'ACNF'
,
'ADVI'
,
'ISSU'
]
let
Purpose1
=
[
Purpose1
=
[
{
code
:
"ACNF"
,
name
:
"ACNF"
},
{
code
:
"ACNF"
,
name
:
"ACNF"
},
{
code
:
"ADVI"
,
name
:
"ADVI"
},
{
code
:
"ADVI"
,
name
:
"ADVI"
},
{
code
:
"ISSU"
,
name
:
"ISSU"
}]
{
code
:
"ISSU"
,
name
:
"ISSU"
}]
if
(
this
.
props
.
mty
==
'mt300'
)
if
(
this
.
props
.
mty
==
'mt300'
)
{
Purpose
=
[
'AMND'
,
'CANC'
,
'DUPL'
,
'EXOP'
,
'NEWT'
]
Purpose
=
[
'AMND'
,
'CANC'
,
'DUPL'
,
'EXOP'
,
'NEWT'
]
Purpose1
=
[
Purpose1
=
[
{
code
:
"AMND"
,
name
:
"Amendment"
},
{
code
:
"AMND"
,
name
:
"Amendment"
},
{
code
:
"CANC"
,
name
:
"Cancellation"
},
{
code
:
"CANC"
,
name
:
"Cancellation"
},
{
code
:
"DUPL"
,
name
:
"Duplicate"
},
{
code
:
"DUPL"
,
name
:
"Duplicate"
},
{
code
:
"EXOP"
,
name
:
"Option Exercise"
},
{
code
:
"EXOP"
,
name
:
"Option Exercise"
},
{
code
:
"NEWT"
,
name
:
"New Confirmation"
}]
{
code
:
"NEWT"
,
name
:
"New Confirmation"
}]
if
(
this
.
props
.
mty
==
'mt306'
)
}
Purpose
=
[
'AMND'
,
'CANC'
,
'NEWT'
]
if
(
this
.
props
.
mty
==
'mt306'
)
{
Purpose1
=
[
Purpose
=
[
'AMND'
,
'CANC'
,
'NEWT'
]
{
code
:
"AMND"
,
name
:
"Amendment"
},
Purpose1
=
[
{
code
:
"CANC"
,
name
:
"Cancellation"
},
{
code
:
"AMND"
,
name
:
"Amendment"
},
{
code
:
"NEWT"
,
name
:
"New Confirmation"
}]
{
code
:
"CANC"
,
name
:
"Cancellation"
},
if
(
this
.
props
.
mty
==
'mt320'
||
this
.
props
.
mty
==
'mt360'
||
this
.
props
.
mty
==
'mt620'
)
{
code
:
"NEWT"
,
name
:
"New Confirmation"
}]
Purpose
=
[
'AMND'
,
'CANC'
,
'DUPL'
,
'NEWT'
]
}
Purpose1
=
[
if
(
this
.
props
.
mty
==
'mt320'
||
this
.
props
.
mty
==
'mt360'
||
this
.
props
.
mty
==
'mt620'
)
{
{
code
:
"AMND"
,
name
:
"Amendment"
},
Purpose
=
[
'AMND'
,
'CANC'
,
'DUPL'
,
'NEWT'
]
{
code
:
"CANC"
,
name
:
"Cancellation"
},
Purpose1
=
[
{
code
:
"DUPL"
,
name
:
"Duplicate"
},
{
code
:
"AMND"
,
name
:
"Amendment"
},
{
code
:
"NEWT"
,
name
:
"New Confirmation"
}]
{
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
>
return
(
<
Row
>
<
Col
span
=
{
10
}
>
<
Col
span
=
{
10
}
>
<
FormItem
<
FormItem
...
...
This diff is collapsed.
Click to expand it.
src/swift/Tags/T22D.js
View file @
b62f16cf
...
@@ -27,6 +27,38 @@ export default class T22D extends Component
...
@@ -27,6 +27,38 @@ export default class T22D extends Component
let
errmsg
=
value
&&
value
.
length
==
3
?
value
[
2
]:{}
let
errmsg
=
value
&&
value
.
length
==
3
?
value
[
2
]:{}
value
=
value
&&
value
.
length
?
value
[
0
]
:
{}
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
>
return
(
<
Row
>
<
Col
span
=
{
10
}
>
<
Col
span
=
{
10
}
>
<
FormItem
<
FormItem
...
@@ -41,10 +73,10 @@ export default class T22D extends Component
...
@@ -41,10 +73,10 @@ export default class T22D extends Component
optionFilterProp
=
"children"
optionFilterProp
=
"children"
notFoundContent
=
"Wrong Code"
notFoundContent
=
"Wrong Code"
style
=
{{
width
:
"100%"
}}
value
=
{
value
.
s1
}
onChange
=
{
val
=>
this
.
onChange
(
val
)}
>
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
>
Purpose
.
map
(
item
=><
Option
key
=
{
item
.
code
}
value
=
{
item
.
code
}
>
{
item
.
code
+
'-'
+
item
.
name
}
<
/Option>
)
<
Option
value
=
"STBY"
>
STBY
-
Standby
letter
of
credit
<
/Option
>
<
Option
value
=
"UNDK"
>
UNDK
-
Undertaking
<
/Option
>
}
<
/Select
>
<
/Select
>
<
/FormItem
>
<
/FormItem
>
<
/Col
>
<
/Col
>
...
...
This diff is collapsed.
Click to expand it.
src/swift/Tags/T23B.js
View file @
b62f16cf
...
@@ -26,6 +26,21 @@ export default class T23B extends Component
...
@@ -26,6 +26,21 @@ export default class T23B extends Component
let
errmsg
=
value
&&
value
.
length
==
3
?
value
[
2
]:{}
let
errmsg
=
value
&&
value
.
length
==
3
?
value
[
2
]:{}
value
=
value
&&
value
.
length
?
value
[
0
]
:
{}
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
>
return
(
<
Row
>
<
Col
span
=
{
12
}
>
<
Col
span
=
{
12
}
>
<
FormItem
<
FormItem
...
@@ -35,11 +50,10 @@ export default class T23B extends Component
...
@@ -35,11 +50,10 @@ export default class T23B extends Component
<
Select
allowClear
=
{
true
}
<
Select
allowClear
=
{
true
}
size
=
{
InputSize
}
placeholder
=
"Bank Operation Code"
value
=
{
value
.
s1
}
style
=
{{
width
:
"100%"
}}
onChange
=
{(
val
)
=>
this
.
onChange
(
val
)}
>
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
>
Purpose
.
map
(
item
=><
Option
key
=
{
item
.
code
}
value
=
{
item
.
code
}
>
{
item
.
code
+
'-'
+
item
.
name
}
<
/Option>
)
<
Option
value
=
"SPAY"
>
SPAY
-
SWIFTPay
<
/Option
>
<
Option
value
=
"SPRI"
>
SPRI
-
Priority
<
/Option
>
}
<
Option
value
=
"SSTD"
>
SSTD
-
Standard
<
/Option
>
<
/Select
>
<
/Select
>
<
/FormItem
>
<
/FormItem
>
...
...
This diff is collapsed.
Click to expand it.
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