Commit 5797fb7c by SunJie

面函

parent 6671cb66
...@@ -346,16 +346,31 @@ export default { ...@@ -346,16 +346,31 @@ export default {
this.title = "面函" this.title = "面函"
let viewurl = "/#/docpan/show"; let viewurl = "/#/docpan/show";
let XMLdata; let XMLdata;
if(row.pandsc=="国内信用证") if(row.pandsc=="国内信用证"){
XMLdata = rtnmsg.data.litbenl1blk window.sessionStorage.docTXT = ''
else if(row.pandsc=="开立国内信用证备查表") window.sessionStorage.docXML = rtnmsg.data.litbenl1blk;
XMLdata = rtnmsg.data.litapll1blk }
else if(row.pandsc=="") else if(row.pandsc=="开立国内信用证备查表"){
XMLdata = rtnmsg.data.litbenl1blk window.sessionStorage.docTXT = ''
else window.sessionStorage.docXML= rtnmsg.data.litapll1blk
XMLdata = rtnmsg.data.litbenl1blk }
var newXml = Utils.showXml(XMLdata) else if(row.pandsc=="elcs.101.001.01"){
window.sessionStorage.docXML = newXml; 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
}
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
......
...@@ -143,10 +143,11 @@ export default { ...@@ -143,10 +143,11 @@ export default {
this.model.didgrp.rec.tenmaxday = 0; this.model.didgrp.rec.tenmaxday = 0;
this.model.didgrp.blk.defdet = ""; this.model.didgrp.blk.defdet = "";
} }
Api.post("ditopn/executeDefault/didgrp.rec.tenmaxday", data).then( Api.post("ditopn/default/didgrp.rec.tenmaxday", this.model).then(
(res) => { (res) => {
if (res.respCode = "AAAAAA"){ if (res.respCode = "AAAAAA"){
const data = res.data; const data = res.data;
this.model.didgrp.blk.defdet = data.didgrp_blk_defdet; this.model.didgrp.blk.defdet = data.didgrp_blk_defdet;
} }
......
<template> <template>
<div> <div>
<div class="title">面函列表</div>
<div style="height:800px;overflow:auto"> <div style="height:800px;overflow:auto">
<embed :src="pdf" type="application/pdf" height="100%" width="100%"/>
<embed v-if="this.model.docXML!=''" :src="pdf" type="application/pdf" height="100%" width="100%"/>
<el-col :offset="4"><pre >{{this.model.docTXT}}</pre></el-col>
</div> </div>
</div> </div>
</template> </template>
...@@ -14,18 +16,20 @@ export default { ...@@ -14,18 +16,20 @@ export default {
data(){ data(){
return { return {
model: {docXML:""}, model: {docXML:""},
pdf:"data:application/pdf;base64," pdf:"data:application/pdf;base64,",
} }
}, },
mounted() { created() {
this.model.docXML = window.sessionStorage.docXML this.model.docXML = window.sessionStorage.docXML
this.model.docTXT = window.sessionStorage.docTXT
if(this.model.docXML!="")
Api.post("pdf",{"xml":this.model.docXML}).then(res=>{ Api.post("pdf",{"xml":this.model.docXML}).then(res=>{
if (res.respCode == "AAAAAA") { if (res.respCode == "AAAAAA") {
this.pdf += res.data this.pdf += res.data
} }
}) })
} }
} }
</script> </script>
......
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