Commit 7ddc2564 by 1377875331@qq.com

面函请求

parent 3419edff
...@@ -325,7 +325,7 @@ export default { ...@@ -325,7 +325,7 @@ export default {
const params = { const params = {
index: index index: index
} }
rtnmsg = await Api.post("ditopn/executeDocpan/trnmod.trndoc.doccur.butshw", { ...Utils.flatObject(this.model), params }) rtnmsg = await Api.post("ditopn/executeDocpan", { ...Utils.flatObject(this.model), params })
} }
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
if (cortyp == 'SWT' || cortyp == 'FMT' || cortyp == 'CMT') { if (cortyp == 'SWT' || cortyp == 'FMT' || cortyp == 'CMT') {
...@@ -346,31 +346,16 @@ export default { ...@@ -346,31 +346,16 @@ export default {
this.title = "面函" this.title = "面函"
let viewurl = "/#/docpan/show"; let viewurl = "/#/docpan/show";
let XMLdata; let XMLdata;
if(row.pandsc=="国内信用证"){ if(row.pandsc=="国内信用证")
window.sessionStorage.docTXT = ''
window.sessionStorage.docXML = rtnmsg.data.litbenl1blk;
}
else if(row.pandsc=="开立国内信用证备查表"){
window.sessionStorage.docTXT = ''
window.sessionStorage.docXML= rtnmsg.data.litapll1blk
}
else if(row.pandsc=="elcs.101.001.01"){
console.log(rtnmsg.data.trnmod_trndoc_doceot[index].doctxt);
window.sessionStorage.docXML = ''
window.sessionStorage.docTXT = ''
rtnmsg.data.trnmod_trndoc_doceot[index].doctxt.rows.forEach(element => {
window.sessionStorage.docTXT +=element+"\r\n"
});
console.log( window.sessionStorage.docTXT);
}
else if(row.pandsc=="MT799"){
window.sessionStorage.docTXT = ''
XMLdata = rtnmsg.data.litbenl1blk XMLdata = rtnmsg.data.litbenl1blk
} else if(row.pandsc=="开立国内信用证备查表")
XMLdata = rtnmsg.data.litapll1blk
else if(row.pandsc=="")
XMLdata = rtnmsg.data.litbenl1blk
else
XMLdata = rtnmsg.data.litbenl1blk
var newXml = Utils.showXml(XMLdata)
window.sessionStorage.docXML = newXml;
window.open(viewurl, 'newwindow', 'height=1200,width=800,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no'); window.open(viewurl, 'newwindow', 'height=1200,width=800,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
} }
this.dialogOpen=true this.dialogOpen=true
...@@ -383,7 +368,7 @@ export default { ...@@ -383,7 +368,7 @@ export default {
const params = { const params = {
index: index index: index
} }
let rtnmsg = await Api.post("ditopn/executeDocpanDetail/trnmod.trndoc.doccur.butadd", { ...Utils.flatObject(this.model), params }) let rtnmsg = await Api.post("ditopn/executeDocpanDetail", { ...Utils.flatObject(this.model), params })
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
let viewurl ="/#/docpan/detail"; let viewurl ="/#/docpan/detail";
......
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