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
132cc69e
Commit
132cc69e
authored
Nov 10, 2023
by
s_guodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MT767中22A码表值调整
parent
c3ccc792
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
17 deletions
+21
-17
T22A.js
src/swift/Tags/T22A.js
+21
-17
No files found.
src/swift/Tags/T22A.js
View file @
132cc69e
...
@@ -12,13 +12,13 @@ export default class T22A extends Component
...
@@ -12,13 +12,13 @@ export default class T22A extends Component
name
=
'22A'
name
=
'22A'
desp
=
"Purpose of Message"
desp
=
"Purpose of Message"
pattern
=
""
pattern
=
""
tno
=
-
1
tno
=
-
1
onChange
=
(
val
)
=>
{
onChange
=
(
val
)
=>
{
this
.
props
.
onValue
([{
s1
:
val
},
val
])
this
.
props
.
onValue
([{
s1
:
val
},
val
])
}
}
render
()
render
()
{
{
let
value
=
this
.
props
.
value
let
value
=
this
.
props
.
value
...
@@ -27,13 +27,11 @@ export default class T22A extends Component
...
@@ -27,13 +27,11 @@ export default class T22A 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
=
[
'ACNF'
,
'ADVI'
,
'ISSU'
]
let
Purpose1
=
[
let
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'
]
Purpose1
=
[
Purpose1
=
[
{
code
:
"AMND"
,
name
:
"Amendment"
},
{
code
:
"AMND"
,
name
:
"Amendment"
},
{
code
:
"CANC"
,
name
:
"Cancellation"
},
{
code
:
"CANC"
,
name
:
"Cancellation"
},
...
@@ -42,37 +40,44 @@ export default class T22A extends Component
...
@@ -42,37 +40,44 @@ export default class T22A extends Component
{
code
:
"NEWT"
,
name
:
"New Confirmation"
}]
{
code
:
"NEWT"
,
name
:
"New Confirmation"
}]
}
}
if
(
this
.
props
.
mty
==
'mt306'
)
{
if
(
this
.
props
.
mty
==
'mt306'
)
{
Purpose
=
[
'AMND'
,
'CANC'
,
'NEWT'
]
Purpose1
=
[
Purpose1
=
[
{
code
:
"AMND"
,
name
:
"Amendment"
},
{
code
:
"AMND"
,
name
:
"Amendment"
},
{
code
:
"CANC"
,
name
:
"Cancellation"
},
{
code
:
"CANC"
,
name
:
"Cancellation"
},
{
code
:
"NEWT"
,
name
:
"New Confirmation"
}]
{
code
:
"NEWT"
,
name
:
"New Confirmation"
}]
}
}
if
(
this
.
props
.
mty
==
'mt320'
||
this
.
props
.
mty
==
'mt360'
||
this
.
props
.
mty
==
'mt620'
)
{
if
(
this
.
props
.
mty
==
'mt320'
||
this
.
props
.
mty
==
'mt360'
||
this
.
props
.
mty
==
'mt620'
)
{
Purpose
=
[
'AMND'
,
'CANC'
,
'DUPL'
,
'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
:
"NEWT"
,
name
:
"New Confirmation"
}]
{
code
:
"NEWT"
,
name
:
"New Confirmation"
}]
}
}
if
(
this
.
props
.
mty
==
'mt760'
||
this
.
props
.
mty
==
'mt767'
){
if
(
this
.
props
.
mty
==
'mt760'
){
Purpose1
=
[
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
:
"ACNF"
,
name
:
"Advice and confirm of issued undert"
},
{
code
:
"ICCO"
,
name
:
"Issuance of counter-counter-undert."
}]
{
code
:
"ADVI"
,
name
:
"Advice of issued undertaking"
},
{
code
:
"ICCO"
,
name
:
"Issuance of counter-counter-undert."
},
{
code
:
"ISCO"
,
name
:
"Issuance of counter-undertaking"
},
{
code
:
"ISSU"
,
name
:
"Issuance of undertaking"
}
]
}
if
(
this
.
props
.
mty
==
'mt767'
){
Purpose1
=
[
{
code
:
"ACNA"
,
name
:
"Advice and confirmation of amendment to issued undertaking"
},
{
code
:
"ADVA"
,
name
:
"Advice of amendment to issued undertaking"
},
{
code
:
"ICCA"
,
name
:
"Issuance of amendment to issued counter counter-undertaking."
},
{
code
:
"ISCA"
,
name
:
"Issuance of amendment to issued counter-undertaking."
},
{
code
:
"ISUA"
,
name
:
"Issuance of amendment to issued undertaking"
}]
}
}
return
(
<
Row
>
return
(
<
Row
>
<
Col
span
=
{
1
0
}
>
<
Col
span
=
{
1
5
}
>
<
FormItem
<
FormItem
help
=
{
errmsg
.
s1
}
help
=
{
errmsg
.
s1
}
validateStatus
=
{
errmsg
.
s1
?
'error'
:
null
}
validateStatus
=
{
errmsg
.
s1
?
'error'
:
null
}
>
>
<
Select
size
=
{
InputSize
}
<
Select
size
=
{
InputSize
}
placeholder
=
{
this
.
props
.
desp
}
placeholder
=
{
this
.
props
.
desp
}
showSearch
showSearch
allowClear
=
{
true
}
allowClear
=
{
true
}
...
@@ -81,11 +86,11 @@ export default class T22A extends Component
...
@@ -81,11 +86,11 @@ export default class T22A extends Component
style
=
{{
width
:
"100%"
}}
value
=
{
value
.
s1
}
onChange
=
{
val
=>
this
.
onChange
(
val
)}
>
style
=
{{
width
:
"100%"
}}
value
=
{
value
.
s1
}
onChange
=
{
val
=>
this
.
onChange
(
val
)}
>
{
{
Purpose1
.
map
(
item
=><
Option
key
=
{
item
.
code
}
value
=
{
item
.
code
}
>
{
item
.
code
+
'-'
+
item
.
name
}
<
/Option>
)
Purpose1
.
map
(
item
=><
Option
key
=
{
item
.
code
}
value
=
{
item
.
code
}
>
{
item
.
code
+
'-'
+
item
.
name
}
<
/Option>
)
}
}
<
/Select
>
<
/Select
>
<
/FormItem
>
<
/FormItem
>
<
/Col
>
<
/Col
>
<
/Row>
)
<
/Row>
)
}
}
}
}
\ No newline at end of file
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