Commit b9593fed by 潘际乾

display:查看快照方法的提取

parent acc4d237
import Vue from "vue" import Vue from "vue"
import Api from "~/service/Api" import Api from "~/service/Api"
import { display } from "~/service/business/file" import { display } from "~/service/business/file"
import { getTrnNameByInr } from "~/service/business/common"
import Utils from "../utils" import Utils from "../utils"
export default { export default {
...@@ -149,5 +150,18 @@ export default { ...@@ -149,5 +150,18 @@ export default {
} }
return rtnmsg return rtnmsg
}, },
/**
* 打开详情页面
* @param {string} inr
*/
display(inr) {
getTrnNameByInr({ inr }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
let viewurl = "/#/display/" + trnName + "?trn=" + inr
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
}
} }
} }
\ No newline at end of file
import Api from "~/service/Api" import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default { export default {
async onInfbutSearow(){ async onInfbutSearow(){
...@@ -140,12 +139,5 @@ export default { ...@@ -140,12 +139,5 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
display(index, row) {
debugger;
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
},
} }
\ No newline at end of file
import Api from "~/service/Api" import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default { export default {
async onInfbutSearow(){ async onInfbutSearow(){
...@@ -145,19 +144,5 @@ export default { ...@@ -145,19 +144,5 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
display(index, row) {
debugger;
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
} }
\ No newline at end of file
import Api from "~/service/Api" import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default { export default {
async onInfbutSearow () { async onInfbutSearow () {
...@@ -111,19 +110,4 @@ export default { ...@@ -111,19 +110,4 @@ export default {
} }
}, },
display (index, row) {
debugger;
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// Api.post("getTrnNameByInr", { inr: row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
} }
\ No newline at end of file
import Api from "~/service/Api" import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default { export default {
async onInfbutSearow(){ async onInfbutSearow(){
...@@ -30,20 +29,6 @@ export default { ...@@ -30,20 +29,6 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
display(index, row) {
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
async onInfbutUserow(){ async onInfbutUserow(){
let rtnmsg = await this.executeRule("infbut.userow") let rtnmsg = await this.executeRule("infbut.userow")
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS)
......
import Api from "~/service/Api" import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default { export default {
async onInfbutSearow () { async onInfbutSearow () {
...@@ -200,20 +199,4 @@ export default { ...@@ -200,20 +199,4 @@ export default {
} }
}, },
display (index, row) {
debugger;
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// Api.post("getTrnNameByInr", { inr: row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
} }
\ No newline at end of file
import Api from "~/service/Api" import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default { export default {
async onInfbutSearow() { async onInfbutSearow() {
...@@ -198,20 +197,5 @@ export default { ...@@ -198,20 +197,5 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
}, },
display(index, row) {
debugger;
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
} }
\ No newline at end of file
import Api from "~/service/Api" import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default { export default {
// 顶部查询按钮 // 顶部查询按钮
...@@ -363,20 +362,6 @@ export default { ...@@ -363,20 +362,6 @@ export default {
// this.$notify.error({title: '错误',message: '服务请求失败!'}); // this.$notify.error({title: '错误',message: '服务请求失败!'});
// } // }
// }, // },
getDetails(index, row) {
debugger;
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
} }
\ No newline at end of file
import Api from "~/service/Api" import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
import PubFun from "~/utils/publicFun.js"
export default { export default {
/*async onInfbutSearow() { /*async onInfbutSearow() {
...@@ -91,22 +90,6 @@ export default { ...@@ -91,22 +90,6 @@ export default {
// this.$notify.error({ title: '错误', message: '服务请求失败!' }); // this.$notify.error({ title: '错误', message: '服务请求失败!' });
// } // }
}, },
display(index, row) {
debugger;
const name = row['交易名称'];
let trnName = PubFun.getTrnNameByDesc(name);
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
// window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
async onInfbutDsp(row) { async onInfbutDsp(row) {
let rtnmsg = await this.executeRule("infbut.dsp") let rtnmsg = await this.executeRule("infbut.dsp")
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
......
...@@ -381,12 +381,6 @@ export default { ...@@ -381,12 +381,6 @@ export default {
onSeainf() { onSeainf() {
}, },
// display(index, row) {
// const d = this.stmData.data[index]
// const ds = d.split("\t")
// let viewurl = "/#/display/" + ds['10'].toLowerCase() + "?trn=" + ds['1']
// window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// },
async handleSearch() { async handleSearch() {
const that = this.root; const that = this.root;
// if (this.model.searchAllUsers) { // if (this.model.searchAllUsers) {
......
import Api from "~/service/Api"
export function getTrnNameByInr(data) {
return Api.post('/business/getTrnNameByInr', data)
}
\ No newline at end of file
import Api from "~/service/Api" import Api from "~/service/Api"
export function display(inr, data) { export function display(inr) {
return Api.post(`/business/display/${inr}`, data) return Api.post(`/business/display/${inr}`)
} }
export function getPdf(data) { export function getPdf(data) {
......
...@@ -3,14 +3,6 @@ ...@@ -3,14 +3,6 @@
* UUID * UUID
*/ */
const map = {
'开立信用证':'ditopn',
'到单':'ditdck',
'付款':'bdtset',
'Incoming payment':'cptopn',
'Outgoing payment':'cptadv'
}
var PubFun = { var PubFun = {
getUUID:function() { getUUID:function() {
var s = []; var s = [];
...@@ -25,10 +17,6 @@ var PubFun = { ...@@ -25,10 +17,6 @@ var PubFun = {
return s.join(""); return s.join("");
}, },
getTrnNameByDesc:function(descri){
return map[descri]||'';
}
} }
export default PubFun; export default PubFun;
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
width="100"> width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <a :href="`/#/display/${scope.row['10'].toLowerCase()}?trn=${scope.row['1']}`" target="_blank" >显示快照</a>--> <!-- <a :href="`/#/display/${scope.row['10'].toLowerCase()}?trn=${scope.row['1']}`" target="_blank" >显示快照</a>-->
<a href="javascript:void(0)" @click="display(scope.$index, scope.row)">处理</a> <a href="javascript:void(0)" @click="display(scope.row['INR'])">处理</a>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -265,7 +265,7 @@ ...@@ -265,7 +265,7 @@
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
@click="display(scope.$index, scope.row)" @click="display(scope.row['INR'])"
> >
详情 详情
</c-button> </c-button>
......
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
type="primary" type="primary"
@click="display(scope.$index, scope.row)" @click="display(scope.row['INR'])"
> >
查看详情 查看详情
</c-button> </c-button>
......
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
@click="display(scope.$index, scope.row)" @click="display(scope.row['INR'])"
> >
详情 详情
</c-button> </c-button>
......
...@@ -396,7 +396,7 @@ ...@@ -396,7 +396,7 @@
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
@click="display(scope.$index, scope.row)" @click="display(scope.row['INR'])"
> >
详情 详情
</c-button> </c-button>
......
...@@ -365,7 +365,7 @@ ...@@ -365,7 +365,7 @@
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
@click="display(scope.$index, scope.row)" @click="display(scope.row['INR'])"
> >
详情 详情
</c-button> </c-button>
......
...@@ -567,7 +567,7 @@ ...@@ -567,7 +567,7 @@
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
@click="display(scope.$index, scope.row)" @click="display(scope.row['INR'])"
> >
详情 详情
</c-button> </c-button>
......
...@@ -331,7 +331,7 @@ ...@@ -331,7 +331,7 @@
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
@click="display(scope.$index, scope.row)" @click="display(scope.row['INR'])"
> >
详情 详情
</c-button> </c-button>
......
...@@ -212,7 +212,7 @@ ...@@ -212,7 +212,7 @@
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
@click="display(scope.$index, scope.row)" @click="display(scope.row['INR'])"
> >
详情 详情
</c-button> </c-button>
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="11" style="text-align:right;"> <c-col :span="11" style="text-align:right;">
<c-button size="small" type="primary" style="margin-left:0" @click="display">交易快照</c-button> <c-button size="small" type="primary" style="margin-left:0" @click="display(model.trn.inr)">交易快照</c-button>
<c-button size="small" type="primary" style="margin-left:0">智能提示</c-button> <c-button size="small" type="primary" style="margin-left:0">智能提示</c-button>
<c-button size="small" @click="exit" type="primary" style="margin-left:0">返回</c-button> <c-button size="small" @click="exit" type="primary" style="margin-left:0">返回</c-button>
</c-col> </c-col>
...@@ -481,21 +481,6 @@ export default { ...@@ -481,21 +481,6 @@ export default {
this.$store.dispatch("TagsView/delView", this.$route) this.$store.dispatch("TagsView/delView", this.$route)
this.$router.history.push("/taskList"); this.$router.history.push("/taskList");
}, },
display() {
debugger
const inr = this.model.trn.inr;
const trnName = this.model.trn.inifrm;
let viewurl = "/#/display/" + trnName + "?trn=" + inr
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// const inr = this.model.trn.inr;
// Api.post("getTrnNameByInr", { inr: inr}).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + inr
// window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
async show(idx,row){ async show(idx,row){
var params = {selDst:"recpan.smhstm",selIds:[idx+1],selBtnId:"A"} var params = {selDst:"recpan.smhstm",selIds:[idx+1],selBtnId:"A"}
let rtnmsg = await Api.post(`/business/trnrel/executeRule/recpan.smhstm`, this.wrapper(params)) let rtnmsg = await Api.post(`/business/trnrel/executeRule/recpan.smhstm`, this.wrapper(params))
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="11" style="text-align:right;"> <c-col :span="11" style="text-align:right;">
<c-button size="small" type="primary" style="margin-left:0" @click="display">交易快照</c-button> <c-button size="small" type="primary" style="margin-left:0" @click="display(model.trn.inr)">交易快照</c-button>
<c-button size="small" type="primary" style="margin-left:0">智能提示</c-button> <c-button size="small" type="primary" style="margin-left:0">智能提示</c-button>
<c-button size="small" @click="exit" type="primary" style="margin-left:0">返回</c-button> <c-button size="small" @click="exit" type="primary" style="margin-left:0">返回</c-button>
</c-col> </c-col>
...@@ -479,22 +479,6 @@ export default { ...@@ -479,22 +479,6 @@ export default {
this.$store.dispatch("TagsView/delView", this.$route) this.$store.dispatch("TagsView/delView", this.$route)
this.$router.history.push("/taskList"); this.$router.history.push("/taskList");
}, },
display() {
debugger
const inr = this.model.trn.inr;
const trnName = this.model.trn.inifrm;
let viewurl = "/#/display/" + trnName + "?trn=" + inr
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// const inr = this.model.trn.inr;
// Api.post("getTrnNameByInr", { inr: inr}).then((res) => {
// if (res.respCode == SUCCESS) {
// const trnName = res.data.toLowerCase();
// let viewurl = "/#/display/" + trnName + "?trn=" + inr
// window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// }
// });
},
async show(idx,row){ async show(idx,row){
var params = {selDst:"recpan.smhstm",selIds:[idx+1],selBtnId:"A"} var params = {selDst:"recpan.smhstm",selIds:[idx+1],selBtnId:"A"}
let rtnmsg = await Api.post(`/business/trnrel/executeRule/recpan.smhstm`, this.wrapper(params)) let rtnmsg = await Api.post(`/business/trnrel/executeRule/recpan.smhstm`, this.wrapper(params))
......
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