Commit f2aefe5b by fukai

支持103,202,202COV GPI表示

parent 8bff7671
...@@ -15,6 +15,7 @@ export const mty=[ ...@@ -15,6 +15,7 @@ export const mty=[
{mty:"mt196",desp:"MT 196 Answers"}, {mty:"mt196",desp:"MT 196 Answers"},
{mty:"mt199",desp:"MT 199 Free Format Message"}, {mty:"mt199",desp:"MT 199 Free Format Message"},
{mty:"mt202",desp:"MT 202 General Financial Institution Transfer"}, {mty:"mt202",desp:"MT 202 General Financial Institution Transfer"},
{mty:"mt202COV",desp:"MT 202 COV General Financial Institution Transfer"},
{mty:"mt295",desp:"MT 295 Queries"}, {mty:"mt295",desp:"MT 295 Queries"},
{mty:"mt296",desp:"MT 296 Answers"}, {mty:"mt296",desp:"MT 296 Answers"},
{mty:"mt299",desp:"MT 299 Free Format Message"}, {mty:"mt299",desp:"MT 299 Free Format Message"},
......
...@@ -18,9 +18,11 @@ const Step = Steps.Step; ...@@ -18,9 +18,11 @@ const Step = Steps.Step;
componentWillMount() componentWillMount()
{ {
//提交报文 //提交报文
let datas = {MSGTYP:this.props.extra.msgtyp.substring(2),SNDKEY:this.props.sndkey,MCTSWTID:this.props.extra.mctid} let datas = {MSGTYP:this.props.extra.msgtyp.substring(2).toUpperCase(),SNDKEY:this.props.sndkey,MCTSWTID:this.props.extra.mctid}
//取出20,21 //取出20,21
let tags = this.props.swift_message_tree.Tags let tags = this.props.swift_message_tree.Tags
if(tags.length && tags[0].seqlist)
tags = tags[0].seqs[0]
if(tags.length && tags[0].tag == '20') if(tags.length && tags[0].tag == '20')
datas.F20=tags[0].tagValue[1] datas.F20=tags[0].tagValue[1]
if(tags.length > 1 && tags[1].tag == '21') if(tags.length > 1 && tags[1].tag == '21')
......
...@@ -131,7 +131,12 @@ export class SWFPage extends Component ...@@ -131,7 +131,12 @@ export class SWFPage extends Component
} }
else { else {
// message = `{1:${getLogicAdress(this.props.snd_bic_info.snd_bic)}0000000000}{2:I${this.props.params.key.substring(2)}${getLogicAdress(this.props.rcv_bic_info.rcv_bic)}N}{4:\r\n${message}\r\n}` // message = `{1:${getLogicAdress(this.props.snd_bic_info.snd_bic)}0000000000}{2:I${this.props.params.key.substring(2)}${getLogicAdress(this.props.rcv_bic_info.rcv_bic)}N}{4:\r\n${message}\r\n}`
message = `:MT:${this.props.params.key.substring(2)}\r\n:IO:${this.props.rcv_bic_info.rcv_bic}\r\n:II:${this.props.snd_bic_info.snd_bic}\r\n:MP:N\r\n:EOH:\r\n${message}\r\n-\r\n` let gpistr = ':121:ID for UUID generation: TRNPAY3\r\n'
let mty = this.props.params.key.substring(2)
mty = mty.toUpperCase()
if(mty!='103'&& mty!='202' && mty!='202COV')
gpistr= ''
message = `:MT:${mty}\r\n:IO:${this.props.rcv_bic_info.rcv_bic}\r\n:II:${this.props.snd_bic_info.snd_bic}\r\n:MP:N\r\n${gpistr}:EOH:\r\n${message}\r\n-\r\n`
} }
console.log(message) console.log(message)
this.props.actions.updateSwiftMessage(message) this.props.actions.updateSwiftMessage(message)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment