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
16be1fa0
Commit
16be1fa0
authored
Oct 19, 2023
by
s_guodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改MT760、MT767中24G规则
parent
8fcd5b06
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
15 deletions
+14
-15
TagRegMap.js
src/swift/TagRegMap.js
+1
-1
T24G.js
src/swift/Tags/T24G.js
+13
-14
No files found.
src/swift/TagRegMap.js
View file @
16be1fa0
...
...
@@ -352,7 +352,7 @@ T12B:{"s3":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","opt
T23
:{
"s1"
:{
"reg"
:
"[
\\
w/
\\
-
\\
?:
\\
(
\\
)
\\
.,
\
u0027+
\\
{
\\
} ]{1,16}"
,
"line"
:
1
,
"length"
:
16
,
"fixed"
:
false
,
"type"
:
"x"
,
"option"
:
"M"
}},
T24D
:{
"s1"
:{
"reg"
:
"[A-Z0-9]{4}"
,
"line"
:
1
,
"length"
:
4
,
"fixed"
:
true
,
"type"
:
"c"
,
"option"
:
"M"
},
"s2"
:{
"reg"
:
"[
\\
w/
\\
-
\\
?:
\\
(
\\
)
\\
.,
\
u0027+
\\
{
\\
} ]{1,35}"
,
"line"
:
1
,
"length"
:
35
,
"fixed"
:
false
,
"type"
:
"x"
,
"option"
:
"O"
}},
T24E
:{
"s1"
:{
"reg"
:
"[A-Z0-9]{4}"
,
"line"
:
1
,
"length"
:
4
,
"fixed"
:
true
,
"type"
:
"c"
,
"option"
:
"M"
},
"s2"
:{
"reg"
:
"[
\\
w/
\\
-
\\
?:
\\
(
\\
)
\\
.,
\
u0027+
\\
{
\\
} ]{1,35}"
,
"line"
:
1
,
"length"
:
35
,
"fixed"
:
false
,
"type"
:
"x"
,
"option"
:
"O"
}},
T24G
:{
"s1"
:{
"reg"
:
"[A-Z0-9]{4}"
,
"line"
:
1
,
"length"
:
4
,
"fixed"
:
true
,
"type"
:
"c"
,
"option"
:
"M"
},
"s2"
:{
"reg"
:
"[
\\
w
/
\\
-
\\
?:
\\
(
\\
)
\\
.,
\
u0027+
\\
{
\\
} ]{0,35}"
,
"line"
:
6
,
"length"
:
35
,
"fixed"
:
false
,
"type"
:
"x
"
,
"option"
:
"O"
}},
T24G
:{
"s1"
:{
"reg"
:
"[A-Z0-9]{4}"
,
"line"
:
1
,
"length"
:
4
,
"fixed"
:
true
,
"type"
:
"c"
,
"option"
:
"M"
},
"s2"
:{
"reg"
:
"[
\\
w
\\
.,
\\
-
\\
(
\\
)/
\
u003d
\
u0027
\\
+:
\\
?!
\"
%
\
u0026
\\
*
\\\
u003c
\\\
u003e;
\\
{
\\
s@#]{0,65}"
,
"line"
:
12
,
"length"
:
65
,
"fixed"
:
false
,
"type"
:
"z
"
,
"option"
:
"O"
}},
T12C
:{
"s1"
:{
"reg"
:
"[A-Z0-9]{4}"
,
"line"
:
1
,
"length"
:
4
,
"fixed"
:
true
,
"type"
:
"c"
,
"option"
:
"M"
},
"s2"
:{
"reg"
:
"[A-Z0-9]{6}"
,
"line"
:
1
,
"length"
:
6
,
"fixed"
:
true
,
"type"
:
"c"
,
"option"
:
"M"
}},
T36E
:{
"s3"
:{
"reg"
:
"[
\\
d,]{1,15}"
,
"line"
:
1
,
"length"
:
15
,
"fixed"
:
true
,
"type"
:
"FUNC"
,
"content"
:
"NUMBER"
,
"option"
:
"M"
},
"s1"
:{
"reg"
:
"[A-Z0-9]{4}"
,
"line"
:
1
,
"length"
:
4
,
"fixed"
:
true
,
"type"
:
"c"
,
"option"
:
"M"
},
"s2"
:{
"reg"
:
"[A-Z0-9]{4}"
,
"line"
:
1
,
"length"
:
4
,
"fixed"
:
true
,
"type"
:
"c"
,
"option"
:
"M"
}},
T12D
:{
"s1"
:{
"reg"
:
"[A-Z0-9]{4}"
,
"line"
:
1
,
"length"
:
4
,
"fixed"
:
true
,
"type"
:
"c"
,
"option"
:
"M"
}},
...
...
src/swift/Tags/T24G.js
View file @
16be1fa0
...
...
@@ -12,7 +12,7 @@ export default class T24G extends Component
name
=
'24G'
desp
=
"Delivery To/Collection By"
pattern
=
""
tno
=
-
1
...
...
@@ -24,7 +24,7 @@ export default class T24G extends Component
if
(
!
value
)
value
=
""
let
objtemp
=
this
.
props
.
value
objtemp
=
objtemp
&&
objtemp
.
length
?
objtemp
[
0
]
:
{}
objtemp
[
"s"
+
index
]
=
value
;
...
...
@@ -32,14 +32,14 @@ export default class T24G extends Component
this
.
keys
.
forEach
(
i
=>
{
obj
[
's'
+
i
]
=
objtemp
[
's'
+
i
]
});
let
mval
=
""
if
(
obj
.
s1
)
mval
=
obj
.
s1
mval
=
obj
.
s1
if
(
obj
.
s2
)
mval
=
mval
+
'
\
r
\
n'
+
obj
.
s2
mval
=
mval
+
'
\
r
\
n'
+
obj
.
s2
this
.
props
.
onValue
([
obj
,
mval
])
}
...
...
@@ -64,29 +64,29 @@ export default class T24G extends Component
>
<
Col
span
=
{
10
}
>
<
Select
allowClear
=
{
true
}
size
=
{
InputSize
}
defaultValue
=
{
''
}
style
=
{{
width
:
"100%"
}}
placeholder
=
"Code"
value
=
{
value
.
s1
}
onChange
=
{(
val
)
=>
this
.
onChange
(
1
,
val
)}
>
<
Option
value
=
"BENE"
>
BENE
-
Beneficiary
<
/Option
>
<
Option
value
=
"OTHR"
>
OTHR
-
Specified
address
<
/Option
>
<
/Select
>
<
/Col
>
<
/FormItem
>
<
/Col
>
<
/Row
>
<
Row
>
<
Col
>
<
FormItem
label
=
"Na
me and Address"
label
=
"Na
rrative"
help
=
{
errmsg
.
s2
}
validateStatus
=
{
errmsg
.
s2
?
'error'
:
null
}
>
<
TextArea
rows
=
{
6
}
cols
=
{
35
}
type
=
"textarea"
maxLength
=
{
210
}
style
=
{{
imeMode
:
'disabled'
}}
placeholder
=
"Name and Address
"
value
=
{
value
.
s2
}
onChange
=
{(
e
)
=>
this
.
onChange
(
2
,
e
.
target
.
value
)}
/
>
<
TextArea
rows
=
{
12
}
cols
=
{
65
}
type
=
"textarea"
maxLength
=
{
780
}
style
=
{{
imeMode
:
'disabled'
}}
placeholder
=
"Narrative
"
value
=
{
value
.
s2
}
onChange
=
{(
e
)
=>
this
.
onChange
(
2
,
e
.
target
.
value
)}
/
>
<
/FormItem
>
<
/Col
>
<
/Row
>
<
/div
>
)
}
}
\ 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