Commit 5a255c20 by fukai

保存时候增加了模板数据

parent 582d4926
......@@ -27,6 +27,7 @@ const Step = Steps.Step;
datas.F20=tags[0].tagValue[1]
if(tags.length > 1 && tags[1].tag == '21')
datas.F21=tags[1].tagValue[1]
let tempStr = JSON.stringify(window.templateObject)
ServiceAPI.saveMessage(
// {
......@@ -37,7 +38,7 @@ const Step = Steps.Step;
// sndkey:this.props.rcv_bic
// }
// }
`smhinr=${this.props.extra.smhinr?this.props.extra.smhinr:''}&user=${this.props.extra.mctid||"NONE" }&sf2msg=${encodeURIComponent(this.props.swift_message)}`
`smhinr=${this.props.extra.smhinr?this.props.extra.smhinr:''}&user=${this.props.extra.mctid||"NONE" }&sf2msg=${encodeURIComponent(this.props.swift_message)}&sf2temp=${encodeURIComponent(tempStr)}`
).then(data=>{
if(typeof data=='string')
{
......
......@@ -159,11 +159,21 @@ export class SWFPage extends Component
// if(this.props.extra.countMap)
// this.props.extra.s_countMap = {...this.props.extra.countMap}
//根据阿尔山要求,发送模板给阿尔山
this.sendToArxan()
if(flag)
this.props.history.push("preview/0")
else
this.props.history.push("preview/1")
}
sendToArxan(){
//在Next报文的时候发送报文到阿尔山
let tempJsn = this.saveTemp()
const mty = this.props.params.mty||this.props.extra.msgtyp
let json = {sf2temp:tempJsn,mty,user:this.props.mctid||'NONE'}
window.templateObject = json
}
joinMessage(tags,arr,seqlist)
{
for(let item of tags)
......
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