Commit 5797fb7c by SunJie

面函

parent 6671cb66
......@@ -346,16 +346,31 @@ export default {
this.title = "面函"
let viewurl = "/#/docpan/show";
let XMLdata;
if(row.pandsc=="国内信用证")
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;
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
}
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
......
......@@ -143,10 +143,11 @@ export default {
this.model.didgrp.rec.tenmaxday = 0;
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) => {
if (res.respCode = "AAAAAA"){
const data = res.data;
const data = res.data;
this.model.didgrp.blk.defdet = data.didgrp_blk_defdet;
}
......
<template>
<div>
<div class="title">面函列表</div>
<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>
</template>
......@@ -14,18 +16,20 @@ export default {
data(){
return {
model: {docXML:""},
pdf:"data:application/pdf;base64,"
pdf:"data:application/pdf;base64,",
}
},
mounted() {
created() {
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=>{
if (res.respCode == "AAAAAA") {
this.pdf += res.data
}
})
}
}
</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