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
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
381 additions
and
227 deletions
+381
-227
LeadPage.js
src/swift/LeadPage.js
+19
-6
MT110.js
src/swift/MT/MT110.js
+27
-0
index.js
src/swift/MT/index.js
+224
-221
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;
export
const
mty
=
[
{
mty
:
"mt101"
,
desp
:
"MT 101 Request for 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
:
"mt196"
,
desp
:
"MT 196 Answers"
},
{
mty
:
"mt199"
,
desp
:
"MT 199 Free Format Message"
},
...
...
@@ -27,8 +29,9 @@ export const mty=[
{
mty
:
"mt305"
,
desp
:
"MT 305 Foreign Currency Option Confirmation"
},
{
mty
:
"mt320"
,
desp
:
"MT 320 Fixed Loan/Deposit 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
:
"mt410"
,
desp
:
"MT 410 Acknowledgement"
},
{
mty
:
"mt420"
,
desp
:
"MT 420 Tracer"
},
{
mty
:
"mt422"
,
desp
:
"MT 422 Advice of Fate and Request for Instructions"
},
...
...
@@ -38,11 +41,22 @@ export const mty=[
{
mty
:
"mt543"
,
desp
:
"MT 543 Deliver Against Payment"
},
{
mty
:
"mt599"
,
desp
:
"MT 599 Free Format Message"
},
{
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
:
"mt606"
,
desp
:
"MT 606 Commodity Debit 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
:
"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
:
"mt701"
,
desp
:
"MT 701 General Financial Institution Transfer"
},
...
...
@@ -62,7 +76,7 @@ export const mty=[
{
mty
:
"mt750"
,
desp
:
"MT 750 Advice of Discrepancy"
},
{
mty
:
"mt752"
,
desp
:
"MT 752 Authorisation to Pay, Accept or Negotiate"
},
{
mty
:
"mt754"
,
desp
:
"MT 754 Advice of Payment/Acceptance/Negotiation"
},
{
mty
:
"mt756"
,
desp
:
"MT 756 Advice of Reimbursement or Payment"
},
...
...
@@ -78,7 +92,7 @@ export const mty=[
{
mty
:
"mt950"
,
desp
:
"MT 950 Statement Message"
},
{
mty
:
"mt999"
,
desp
:
"MT 999 Free Format Message"
},
{
mty
:
"mt1000"
,
desp
:
"MT 1000 TEST"
},
]
// const columns = [{
// title: '创建报文',
...
...
@@ -155,4 +169,4 @@ function mapDispatchToProps(dispatch) {
};
}
export
default
connect
(
mapStateToProps
,
mapDispatchToProps
)(
LeadPage
)
\ No newline at end of file
export
default
connect
(
mapStateToProps
,
mapDispatchToProps
)(
LeadPage
)
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
MT101
from
'./MT101'
import
MT103
from
'./MT103'
import
MT202
from
'./MT202'
import
MT202COV
from
'./MT202COV'
import
MT210
from
'./MT210'
import
MT300
from
'./MT300'
import
MT305
from
'./MT305'
import
MT320
from
'./MT320'
import
MT360
from
'./MT360'
import
MT400
from
'./MT400'
import
MT410
from
'./MT410'
import
MT412
from
'./MT412'
import
MT420
from
'./MT420'
import
MT422
from
'./MT422'
import
MT499
from
'./MT499'
import
MT535
from
'./MT535'
import
MT536
from
'./MT536'
import
MT537
from
'./MT537'
import
MT538
from
'./MT538'
import
MT540
from
'./MT540'
import
MT541
from
'./MT541'
import
MT542
from
'./MT542'
import
MT543
from
'./MT543'
import
MT544
from
'./MT544'
import
MT545
from
'./MT545'
import
MT546
from
'./MT546'
import
MT547
from
'./MT547'
import
MT548
from
'./MT548'
import
MT564
from
'./MT564'
import
MT565
from
'./MT565'
import
MT566
from
'./MT566'
import
MT567
from
'./MT567'
import
MT600
from
'./MT600'
import
MT605
from
'./MT605'
import
MT607
from
'./MT607'
import
MT620
from
'./MT620'
import
MT700
from
'./MT700'
import
MT701
from
'./MT701'
import
MT707
from
'./MT707'
import
MT710
from
'./MT710'
import
MT711
from
'./MT711'
import
MT720
from
'./MT720'
import
MT721
from
'./MT721'
import
MT730
from
'./MT730'
import
MT732
from
'./MT732'
import
MT734
from
'./MT734'
import
MT740
from
'./MT740'
import
MT742
from
'./MT742'
import
MT747
from
'./MT747'
import
MT750
from
'./MT750'
import
MT752
from
'./MT752'
import
MT754
from
'./MT754'
import
MT756
from
'./MT756'
import
MT759
from
'./MT759'
import
MT760
from
'./MT760'
import
MT767
from
'./MT767'
import
MT768
from
'./MT768'
import
MT769
from
'./MT769'
import
MT799
from
'./MT799'
import
MT940
from
'./MT940'
import
MT950
from
'./MT950'
import
MTn90
from
'./MTn90'
import
MTn91
from
'./MTn91'
import
MTn92
from
'./MTn92'
import
MTn95
from
'./MTn95'
import
MTn96
from
'./MTn96'
import
MTn98
from
'./MTn98'
import
MTn99
from
'./MTn99'
export
default
function
MTFactory
(
mty
)
{
if
(
mty
==
"mt1000"
)
return
MT1000
if
(
mty
==
"mt101"
)
return
MT101
if
(
mty
==
"mt103"
)
return
MT103
if
(
mty
==
"mt202"
)
return
MT202
if
(
mty
==
"mt202cov"
)
return
MT202COV
if
(
mty
==
"mt202COV"
)
return
MT202COV
if
(
mty
==
"mt210"
)
return
MT210
if
(
mty
==
"mt300"
)
return
MT300
if
(
mty
==
"mt305"
)
return
MT305
if
(
mty
==
"mt320"
)
return
MT320
if
(
mty
==
"mt360"
)
return
MT360
if
(
mty
==
"mt400"
)
return
MT400
if
(
mty
==
"mt410"
)
return
MT410
if
(
mty
==
"mt412"
)
return
MT412
if
(
mty
==
"mt420"
)
return
MT420
if
(
mty
==
"mt422"
)
return
MT422
if
(
mty
==
"mt499"
)
return
MT499
if
(
mty
==
"mt535"
)
return
MT535
if
(
mty
==
"mt536"
)
return
MT536
if
(
mty
==
"mt537"
)
return
MT537
if
(
mty
==
"mt538"
)
return
MT538
if
(
mty
==
"mt540"
)
return
MT540
if
(
mty
==
"mt541"
)
return
MT541
if
(
mty
==
"mt542"
)
return
MT542
if
(
mty
==
"mt543"
)
return
MT543
if
(
mty
==
"mt544"
)
return
MT544
if
(
mty
==
"mt545"
)
return
MT545
if
(
mty
==
"mt546"
)
return
MT546
if
(
mty
==
"mt547"
)
return
MT547
if
(
mty
==
"mt548"
)
return
MT548
if
(
mty
==
"mt564"
)
return
MT564
if
(
mty
==
"mt565"
)
return
MT565
if
(
mty
==
"mt566"
)
return
MT566
if
(
mty
==
"mt567"
)
return
MT567
if
(
mty
==
"mt600"
)
return
MT600
if
(
mty
==
"mt605"
)
return
MT605
if
(
mty
==
"mt607"
)
return
MT607
if
(
mty
==
"mt620"
)
return
MT620
if
(
mty
==
"mt700"
)
return
MT700
if
(
mty
==
"mt701"
)
return
MT701
if
(
mty
==
"mt707"
)
return
MT707
if
(
mty
==
"mt710"
)
return
MT710
if
(
mty
==
"mt711"
)
return
MT711
if
(
mty
==
"mt720"
)
return
MT720
if
(
mty
==
"mt721"
)
return
MT721
if
(
mty
==
"mt730"
)
return
MT730
if
(
mty
==
"mt732"
)
return
MT732
if
(
mty
==
"mt734"
)
return
MT734
if
(
mty
==
"mt740"
)
return
MT740
if
(
mty
==
"mt742"
)
return
MT742
if
(
mty
==
"mt747"
)
return
MT747
if
(
mty
==
"mt750"
)
return
MT750
if
(
mty
==
"mt752"
)
return
MT752
if
(
mty
==
"mt754"
)
return
MT754
if
(
mty
==
"mt756"
)
return
MT756
if
(
mty
==
"mt759"
)
return
MT759
if
(
mty
==
"mt760"
)
return
MT760
if
(
mty
==
"mt767"
)
return
MT767
if
(
mty
==
"mt768"
)
return
MT768
if
(
mty
==
"mt769"
)
return
MT769
if
(
mty
==
"mt799"
)
return
MT799
if
(
mty
==
"mt940"
)
return
MT940
if
(
mty
==
"mt950"
)
return
MT950
if
(
/mt
\d
90/
.
test
(
mty
))
return
MTn90
if
(
/mt
\d
91/
.
test
(
mty
))
return
MTn91
if
(
/mt
\d
92/
.
test
(
mty
))
return
MTn92
if
(
/mt
\d
95/
.
test
(
mty
))
return
MTn95
if
(
/mt
\d
96/
.
test
(
mty
))
return
MTn96
if
(
/mt
\d
98/
.
test
(
mty
))
return
MTn98
if
(
/mt
\d
99/
.
test
(
mty
))
return
MTn99
}
import
MT1000
from
'./MT1000'
import
MT101
from
'./MT101'
import
MT103
from
'./MT103'
import
MT110
from
'./MT110'
import
MT202
from
'./MT202'
import
MT202COV
from
'./MT202COV'
import
MT210
from
'./MT210'
import
MT300
from
'./MT300'
import
MT305
from
'./MT305'
import
MT320
from
'./MT320'
import
MT360
from
'./MT360'
import
MT400
from
'./MT400'
import
MT410
from
'./MT410'
import
MT412
from
'./MT412'
import
MT420
from
'./MT420'
import
MT422
from
'./MT422'
import
MT499
from
'./MT499'
import
MT535
from
'./MT535'
import
MT536
from
'./MT536'
import
MT537
from
'./MT537'
import
MT538
from
'./MT538'
import
MT540
from
'./MT540'
import
MT541
from
'./MT541'
import
MT542
from
'./MT542'
import
MT543
from
'./MT543'
import
MT544
from
'./MT544'
import
MT545
from
'./MT545'
import
MT546
from
'./MT546'
import
MT547
from
'./MT547'
import
MT548
from
'./MT548'
import
MT564
from
'./MT564'
import
MT565
from
'./MT565'
import
MT566
from
'./MT566'
import
MT567
from
'./MT567'
import
MT600
from
'./MT600'
import
MT605
from
'./MT605'
import
MT607
from
'./MT607'
import
MT620
from
'./MT620'
import
MT700
from
'./MT700'
import
MT701
from
'./MT701'
import
MT707
from
'./MT707'
import
MT710
from
'./MT710'
import
MT711
from
'./MT711'
import
MT720
from
'./MT720'
import
MT721
from
'./MT721'
import
MT730
from
'./MT730'
import
MT732
from
'./MT732'
import
MT734
from
'./MT734'
import
MT740
from
'./MT740'
import
MT742
from
'./MT742'
import
MT747
from
'./MT747'
import
MT750
from
'./MT750'
import
MT752
from
'./MT752'
import
MT754
from
'./MT754'
import
MT756
from
'./MT756'
import
MT759
from
'./MT759'
import
MT760
from
'./MT760'
import
MT767
from
'./MT767'
import
MT768
from
'./MT768'
import
MT769
from
'./MT769'
import
MT799
from
'./MT799'
import
MT940
from
'./MT940'
import
MT950
from
'./MT950'
import
MTn90
from
'./MTn90'
import
MTn91
from
'./MTn91'
import
MTn92
from
'./MTn92'
import
MTn95
from
'./MTn95'
import
MTn96
from
'./MTn96'
import
MTn98
from
'./MTn98'
import
MTn99
from
'./MTn99'
export
default
function
MTFactory
(
mty
)
{
if
(
mty
==
"mt1000"
)
return
MT1000
if
(
mty
==
"mt101"
)
return
MT101
if
(
mty
==
"mt103"
)
return
MT103
if
(
mty
==
"mt110"
)
return
MT110
if
(
mty
==
"mt202"
)
return
MT202
if
(
mty
==
"mt202cov"
)
return
MT202COV
if
(
mty
==
"mt202COV"
)
return
MT202COV
if
(
mty
==
"mt210"
)
return
MT210
if
(
mty
==
"mt300"
)
return
MT300
if
(
mty
==
"mt305"
)
return
MT305
if
(
mty
==
"mt320"
)
return
MT320
if
(
mty
==
"mt360"
)
return
MT360
if
(
mty
==
"mt400"
)
return
MT400
if
(
mty
==
"mt410"
)
return
MT410
if
(
mty
==
"mt412"
)
return
MT412
if
(
mty
==
"mt420"
)
return
MT420
if
(
mty
==
"mt422"
)
return
MT422
if
(
mty
==
"mt499"
)
return
MT499
if
(
mty
==
"mt535"
)
return
MT535
if
(
mty
==
"mt536"
)
return
MT536
if
(
mty
==
"mt537"
)
return
MT537
if
(
mty
==
"mt538"
)
return
MT538
if
(
mty
==
"mt540"
)
return
MT540
if
(
mty
==
"mt541"
)
return
MT541
if
(
mty
==
"mt542"
)
return
MT542
if
(
mty
==
"mt543"
)
return
MT543
if
(
mty
==
"mt544"
)
return
MT544
if
(
mty
==
"mt545"
)
return
MT545
if
(
mty
==
"mt546"
)
return
MT546
if
(
mty
==
"mt547"
)
return
MT547
if
(
mty
==
"mt548"
)
return
MT548
if
(
mty
==
"mt564"
)
return
MT564
if
(
mty
==
"mt565"
)
return
MT565
if
(
mty
==
"mt566"
)
return
MT566
if
(
mty
==
"mt567"
)
return
MT567
if
(
mty
==
"mt600"
)
return
MT600
if
(
mty
==
"mt605"
)
return
MT605
if
(
mty
==
"mt607"
)
return
MT607
if
(
mty
==
"mt620"
)
return
MT620
if
(
mty
==
"mt700"
)
return
MT700
if
(
mty
==
"mt701"
)
return
MT701
if
(
mty
==
"mt707"
)
return
MT707
if
(
mty
==
"mt710"
)
return
MT710
if
(
mty
==
"mt711"
)
return
MT711
if
(
mty
==
"mt720"
)
return
MT720
if
(
mty
==
"mt721"
)
return
MT721
if
(
mty
==
"mt730"
)
return
MT730
if
(
mty
==
"mt732"
)
return
MT732
if
(
mty
==
"mt734"
)
return
MT734
if
(
mty
==
"mt740"
)
return
MT740
if
(
mty
==
"mt742"
)
return
MT742
if
(
mty
==
"mt747"
)
return
MT747
if
(
mty
==
"mt750"
)
return
MT750
if
(
mty
==
"mt752"
)
return
MT752
if
(
mty
==
"mt754"
)
return
MT754
if
(
mty
==
"mt756"
)
return
MT756
if
(
mty
==
"mt759"
)
return
MT759
if
(
mty
==
"mt760"
)
return
MT760
if
(
mty
==
"mt767"
)
return
MT767
if
(
mty
==
"mt768"
)
return
MT768
if
(
mty
==
"mt769"
)
return
MT769
if
(
mty
==
"mt799"
)
return
MT799
if
(
mty
==
"mt940"
)
return
MT940
if
(
mty
==
"mt950"
)
return
MT950
if
(
/mt
\d
90/
.
test
(
mty
))
return
MTn90
if
(
/mt
\d
91/
.
test
(
mty
))
return
MTn91
if
(
/mt
\d
92/
.
test
(
mty
))
return
MTn92
if
(
/mt
\d
95/
.
test
(
mty
))
return
MTn95
if
(
/mt
\d
96/
.
test
(
mty
))
return
MTn96
if
(
/mt
\d
98/
.
test
(
mty
))
return
MTn98
if
(
/mt
\d
99/
.
test
(
mty
))
return
MTn99
}
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"
import
T51A
from
"./T51A"
import
T51D
from
"./T51D"
import
T52A
from
"./T52A"
import
T52B
from
"./T52B"
import
T52C
from
'./T52C'
import
T52D
from
"./T52D"
import
T53A
from
"./T53A"
...
...
@@ -552,6 +553,7 @@ export default function(tag,props,onValue){
case
"T51A"
:
return
<
T51A
{...
props
}
onValue
=
{
onValue
}
/>
;
case
"T51D"
:
return
<
T51D
{...
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
"T52D"
:
return
<
T52D
{...
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