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
ed27eddd
Commit
ed27eddd
authored
Dec 05, 2018
by
fukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增支持南商提出的报文类型
parent
c5367b31
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
126 additions
and
36 deletions
+126
-36
LeadPage.js
src/swift/LeadPage.js
+36
-3
index.js
src/swift/MT/index.js
+90
-33
No files found.
src/swift/LeadPage.js
View file @
ed27eddd
import
React
,{
Component
}
from
'react'
import
{
bindActionCreators
}
from
'redux'
;
import
{
connect
}
from
'react-redux'
;
import
{
Table
,
Steps
,
Row
,
Col
}
from
'antd'
import
{
Table
,
Steps
,
Row
,
Col
,
Input
}
from
'antd'
import
{
updateTreeValue
,
updateRcvBic
,
initSwiftMessageTree
,
updateSwiftMessage
}
from
'../store/modules/swift/swift_action'
;
...
...
@@ -10,29 +10,55 @@ 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
:
"mt195"
,
desp
:
"MT 195 Queries"
},
{
mty
:
"mt196"
,
desp
:
"MT 196 Answers"
},
{
mty
:
"mt199"
,
desp
:
"MT 199 Free Format Message"
},
{
mty
:
"mt202"
,
desp
:
"MT 202 General Financial Institution Transfer"
},
{
mty
:
"mt202COV"
,
desp
:
"MT 202 COV General Financial Institution Transfer"
},
{
mty
:
"mt210"
,
desp
:
"MT 210 Notice to Receive"
},
{
mty
:
"mt292"
,
desp
:
"MT 292 Request for Cancellation"
},
{
mty
:
"mt295"
,
desp
:
"MT 295 Queries"
},
{
mty
:
"mt296"
,
desp
:
"MT 296 Answers"
},
{
mty
:
"mt299"
,
desp
:
"MT 299 Free Format Message"
},
{
mty
:
"mt300"
,
desp
:
"MT 300 Foreign Exchange Confirmation"
},
{
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
:
"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"
},
{
mty
:
"mt499"
,
desp
:
"MT 499 Free Format Message"
},
{
mty
:
"mt600"
,
desp
:
"MT 600 Commodity Trade Confirmation"
},
{
mty
:
"mt605"
,
desp
:
"MT 605 Commodity Notice to Receive"
},
{
mty
:
"mt620"
,
desp
:
"MT 620 Commodity Fixed Loan/Deposit Confirmation"
},
{
mty
:
"mt700"
,
desp
:
"MT 700 Issue of a Documentary Credit"
},
{
mty
:
"mt701"
,
desp
:
"MT 701 General Financial Institution Transfer"
},
{
mty
:
"mt707"
,
desp
:
"MT 707 Amendment to a Documentary Credit"
},
{
mty
:
"mt710"
,
desp
:
"MT 710 Advice of a Third Bank's or a Non-Bank's Documentary Credit"
},
{
mty
:
"mt720"
,
desp
:
"MT 720 Transfer of a Documentary Credit"
},
{
mty
:
"mt730"
,
desp
:
"MT 730 Acknowledgement"
},
{
mty
:
"mt732"
,
desp
:
"MT 732 Advice of Discharge"
},
{
mty
:
"mt740"
,
desp
:
"MT 740 Authorisation to Reimburse"
},
{
mty
:
"mt742"
,
desp
:
"MT 742 Reimbursement Claim"
},
{
mty
:
"mt747"
,
desp
:
"MT 747 Amendment to an Authorisation to Reimburse"
},
{
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"
},
{
mty
:
"mt759"
,
desp
:
"MT 759 Ancillary Trade Structured Message"
},
...
...
@@ -55,8 +81,15 @@ export const mty=[
// ]
export
class
LeadPage
extends
Component
{
constructor
(
props
)
{
super
(
props
)
this
.
state
=
{
fil
:
''
}
}
columns
=
[{
title
:
'创建报文'
,
title
:
<
div
>
<
Input
placeholder
=
"输入报文类型数字,快速筛选"
size
=
"large"
onChange
=
{
e
=>
this
.
setState
({
fil
:
e
.
target
.
value
})}
/
>
<
/div>
,
dataIndex
:
'desp'
,
key
:
'desp'
,
render
:(
text
,
record
)
=>
{
...
...
@@ -89,7 +122,7 @@ export class LeadPage extends Component
<
Col
span
=
{
3
}
/
>
<
Col
span
=
{
18
}
>
<
Table
columns
=
{
this
.
columns
}
dataSource
=
{
mty
}
/
>
<
Table
columns
=
{
this
.
columns
}
dataSource
=
{
this
.
state
.
fil
?
mty
.
filter
(
item
=>
item
.
mty
.
startsWith
(
'mt'
+
this
.
state
.
fil
)):
mty
}
/
>
<
/Col
>
<
Col
span
=
{
3
}
/
>
...
...
src/swift/MT/index.js
View file @
ed27eddd
import
MTn92
from
'./MTn92'
import
MTn91
from
'./MTn91'
import
MTn96
from
'./MTn96'
import
MTn95
from
'./MTn95'
import
MTn98
from
'./MTn98'
import
MTn99
from
'./MTn99'
import
MT760
from
'./MT760'
import
MT420
from
'./MT420'
import
MT210
from
'./MT210'
import
MT750
from
'./MT750'
import
MT410
from
'./MT410'
import
MT740
from
'./MT740'
import
MT103
from
'./MT103'
import
MT202
from
'./MT202'
import
MT422
from
'./MT422'
import
MT499
from
'./MT499'
import
MT752
from
'./MT752'
import
MT730
from
'./MT730'
import
MT950
from
'./MT950'
import
MT732
from
'./MT732'
import
MT754
from
'./MT754'
import
MT7
00
from
'./MT70
0'
import
MT7
10
from
'./MT71
0'
import
MT799
from
'./MT799'
import
MT756
from
'./MT756'
import
MT759
from
'./MT759'
import
MT360
from
'./MT360'
import
MT320
from
'./MT320'
import
MT760
from
'./MT760'
import
MT101
from
'./MT101'
import
MT420
from
'./MT420'
import
MT300
from
'./MT300'
import
MT740
from
'./MT740'
import
MT103
from
'./MT103'
import
MT202
from
'./MT202'
import
MT400
from
'./MT400'
import
MT422
from
'./MT422'
import
MT620
from
'./MT620'
import
MT720
from
'./MT720'
import
MT742
from
'./MT742'
import
MT940
from
'./MT940'
import
MT600
from
'./MT600'
import
MT700
from
'./MT700'
import
MT202COV
from
'./MT202COV'
import
MT305
from
'./MT305'
import
MT701
from
'./MT701'
import
MT767
from
'./MT767'
import
MT768
from
'./MT768'
import
MT747
from
'./MT747'
import
MT769
from
'./MT769'
import
MT605
from
'./MT605'
import
MT707
from
'./MT707'
import
MT759
from
'./MT759'
import
MT940
from
'./MT940'
import
MT950
from
'./MT950'
import
MT202COV
from
'./MT202COV'
export
default
function
MTFactory
(
mty
)
{
if
(
mty
==
"mt202cov"
)
return
MT202COV
if
(
mty
==
"mt760"
)
return
MT760
if
(
mty
==
"mt759"
)
return
MT759
if
(
mty
==
"mt420"
)
return
MT420
if
(
mty
==
"mt210"
)
return
MT210
if
(
mty
==
"mt750"
)
return
MT750
if
(
mty
==
"mt410"
)
return
MT410
if
(
mty
==
"mt740"
)
return
MT740
if
(
mty
==
"mt103"
)
return
MT103
if
(
mty
==
"mt202"
)
return
MT202
if
(
mty
==
"mt422"
)
return
MT422
if
(
mty
==
"mt499"
)
return
MT499
if
(
mty
==
"mt752"
)
return
MT752
if
(
mty
==
"mt730"
)
return
MT730
if
(
mty
==
"mt950"
)
return
MT950
if
(
mty
==
"mt732"
)
return
MT732
if
(
mty
==
"mt754"
)
return
MT754
if
(
mty
==
"mt7
0
0"
)
return
MT7
0
0
if
(
mty
==
"mt7
1
0"
)
return
MT7
1
0
if
(
mty
==
"mt799"
)
return
MT799
if
(
mty
==
"mt756"
)
return
MT756
if
(
mty
==
"mt759"
)
return
MT759
if
(
mty
==
"mt360"
)
return
MT360
if
(
mty
==
"mt320"
)
return
MT320
if
(
mty
==
"mt760"
)
return
MT760
if
(
mty
==
"mt101"
)
return
MT101
if
(
mty
==
"mt420"
)
return
MT420
if
(
mty
==
"mt300"
)
return
MT300
if
(
mty
==
"mt740"
)
return
MT740
if
(
mty
==
"mt103"
)
return
MT103
if
(
mty
==
"mt202"
)
return
MT202
if
(
mty
==
"mt400"
)
return
MT400
if
(
mty
==
"mt422"
)
return
MT422
if
(
mty
==
"mt620"
)
return
MT620
if
(
mty
==
"mt720"
)
return
MT720
if
(
mty
==
"mt742"
)
return
MT742
if
(
mty
==
"mt940"
)
return
MT940
if
(
mty
==
"mt600"
)
return
MT600
if
(
mty
==
"mt700"
)
return
MT700
if
(
mty
==
"mt202COV"
)
return
MT202COV
if
(
mty
==
"mt305"
)
return
MT305
if
(
mty
==
"mt701"
)
return
MT701
if
(
mty
==
"mt767"
)
...
...
@@ -71,16 +122,21 @@ export default function MTFactory(mty)
return
MT747
if
(
mty
==
"mt769"
)
return
MT769
if
(
mty
==
"mt605"
)
return
MT605
if
(
mty
==
"mt707"
)
return
MT707
if
(
mty
==
'mt940'
)
return
MT940
if
(
mty
==
'mt950'
)
return
MT950
if
(
/mt
\d
92/
.
test
(
mty
))
return
MTn92
if
(
/mt
\d
91/
.
test
(
mty
))
return
MTn91
if
(
/mt
\d
96/
.
test
(
mty
))
return
MTn96
if
(
/mt
\d
95/
.
test
(
mty
))
return
MTn95
if
(
/mt
\d
98/
.
test
(
mty
))
return
MTn98
if
(
/mt
\d
99/
.
test
(
mty
))
return
MTn99
}
\ 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