Commit 7c380b65 by hulei

复核详情关联查看面函[show]

parent 78b1724e
...@@ -295,7 +295,7 @@ ...@@ -295,7 +295,7 @@
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
@click="show(scope.$index)" @click="show(scope.$index,scope.row)"
> >
Show Show
</c-button> </c-button>
...@@ -502,32 +502,21 @@ export default { ...@@ -502,32 +502,21 @@ export default {
} }
}); });
}, },
async show(idx){ async show(idx,row){
var params = {selDst:"recpan.smhstm",selIds:[idx+1]} var params = {selDst:"recpan.smhstm",selIds:[idx+1],selBtnId:"A"}
let rtnmsg = await Api.post(`trnrel/executeRule/recpan.smhstm`, this.wrapper(params)) let rtnmsg = await Api.post(`trnrel/executeRule/recpan.smhstm`, this.wrapper(params))
// let rtnmsg = await this.executeRule("trnrel.recpan.smhstm", params)
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.title = "面函" this.title = "面函"
let viewurl = "/#/docpan/show"; let viewurl = "/#/docpan/show";
let XMLdata; let XMLdata;
if (row.pandsc.startsWith("elcs.")) { if (row.Type == 'LET') {
window.sessionStorage.docXML = '' window.sessionStorage.docXML = ''
window.sessionStorage.docTXT = '' window.sessionStorage.docXML = rtnmsg.data.docimm_xmldocblk;
rtnmsg.data.trnmod_trndoc_doceot[index].doctxt.rows.forEach(element => {
window.sessionStorage.docTXT += element + "\r\n"
});
} }
else if (row.pandsc == "MT799") { else if (row.pandsc == "MT799") {
window.sessionStorage.docTXT = '' window.sessionStorage.docTXT = ''
XMLdata = rtnmsg.data.litbenl1blk XMLdata = rtnmsg.data.litbenl1blk
} }
else{
//参考后台Doceot.butshw order=1000
let execution = 'P', structure = 'l'
let attr = DocUtils.getDocAttribute(docnam,structure,execution)
window.sessionStorage.docTXT = ''
window.sessionStorage.docXML = rtnmsg.data[attr];
}
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');
} }
else { else {
......
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