Commit 4608548c by wangguangchao

trnrel交易复核按钮事件提交

parent d83c249d
......@@ -3,48 +3,48 @@ import Utils from "~/utils/index"
export default {
async onSeaown() {
const that = this.root;
that.executeRule("searow").then(res => {
//TODO 处理数据逻辑
that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows;
this.model.trncorco.trnstm = res.data.trncorco_trnstm;
})
that.executeRule("searow").then(res => {
//TODO 处理数据逻辑
that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows;
this.model.trncorco.trnstm = res.data.trncorco_trnstm;
})
},
async onSeajbh() {
const that = this.root;
that.executeRule("seajbh").then(res => {
//TODO 处理数据逻辑
that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows;
})
that.executeRule("seajbh").then(res => {
//TODO 处理数据逻辑
that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows;
})
},
async onSeactr() {
let rtnmsg = await this.executeRule("seactr")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onSearow() {
let rtnmsg = await this.executeRule("searow")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onDsp() {
let rtnmsg = await this.executeRule("dsp")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onImgmodNewimg() {
let rtnmsg = await this.executeRule("imgmod_newimg")
......@@ -58,240 +58,241 @@ export default {
},
async onImgmodNewhisimg() {
let rtnmsg = await this.executeRule("imgmod_newhisimg")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onDiaconButdia() {
let rtnmsg = await this.executeRule("diacon_butdia")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onImgmodHisimg() {
let rtnmsg = await this.executeRule("imgmod_hisimg")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onRelrow() {
const that = this
that.model.trncorco.selinr.empty = false
that.model.trncorco.selinr.rows = that.multipleSelection.map(idx => that.model.trncorco.trnstm.rows[idx])
let rtnmsg = await this.executeRule("relrow")
const selIdx = row.IDX + 1 + ""; //rowno选中行
const selDst = "trncorco.trnstm" //列表对应后台模型中的stream
let params = { selDst: selDst, selIdx: selIdx };
let rtnmsg = await this.executeRule("relrow", params)
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.$message({
type: 'success',
message: 'Release成功!'
message: 'Reject成功!'
});
await this.sleep(2000);
this.$router.go(0);
}
else {
that.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
sleep (ms) {
sleep(ms) {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve()
}, ms)
setTimeout(() => {
resolve()
}, ms)
})
},
async onPrinte() {
},
async onPrinte() {
let rtnmsg = await this.executeRule("printe")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onReprow() {
let rtnmsg = await this.executeRule("reprow")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onRejrow() {
console.log(this.getSelectedData())
this.model.trncorco.selinr['rows'] = this.getSelectedData();
let rtnmsg = await Api.post("trnrel/rejrow", this.wrapper())
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
// var cacheFileName = rtnmsg.data.cacheFileName;
// let rejrowRtnmsg = await Api.post("trncor/init", {params:{"cacheFileName":cacheFileName}})
// if(rejrowRtnmsg.respCode == SUCCESS){
// this.$message({
// type: 'success',
// message: 'Reject成功!'
// });
// await this.sleep(2000);
// this.$router.go(0);
// }
this.$message({
type: 'success',
message: 'Reject成功!'
});
// await this.sleep(2000);
// this.$router.go(0);
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
let rtnmsg = await Api.post("trnrel/rejrow", this.wrapper())
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
// var cacheFileName = rtnmsg.data.cacheFileName;
// let rejrowRtnmsg = await Api.post("trncor/init", {params:{"cacheFileName":cacheFileName}})
// if(rejrowRtnmsg.respCode == SUCCESS){
// this.$message({
// type: 'success',
// message: 'Reject成功!'
// });
// await this.sleep(2000);
// this.$router.go(0);
// }
this.$message({
type: 'success',
message: 'Reject成功!'
});
// await this.sleep(2000);
// this.$router.go(0);
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onRelcor() {
let rtnmsg = await this.executeRule("relcor")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onExi() {
let rtnmsg = await this.executeRule("exi")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onRecpanDet() {
let rtnmsg = await this.executeRule("recpan_det")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onSyswrnButshw() {
let rtnmsg = await this.executeRule("syswrn_butshw")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onRecpanNotmap() {
let rtnmsg = await this.executeRule("recpan_notmap")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onRecpanButspt() {
let rtnmsg = await this.executeRule("recpan_butspt")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onRecpanInc() {
let rtnmsg = await this.executeRule("recpan_inc")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onRecpanButord() {
let rtnmsg = await this.executeRule("recpan_butord")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onImgmodImage() {
async onImgmodImage() {
let rtnmsg = await this.executeRule("imgmod_image")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onRecpanIncben() {
async onRecpanIncben() {
let rtnmsg = await this.executeRule("recpan_incben")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onInftxtButtxmsel() {
let rtnmsg = await this.executeRule("inftxt_buttxmsel")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
onSeainf() {
},
display(index, row){
display(index, row) {
const d = this.stmData.data[index]
const ds = d.split("\t")
let viewurl ="/#/display/"+ds['10'].toLowerCase()+"?trn="+ds['1']
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() {
const that = this.root;
if(this.model.searchAllUsers){
if (this.model.searchAllUsers) {
that.executeRule("seajbh").then(res => {
//TODO 处理数据逻辑
that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows;
})
}else{
} else {
that.executeRule("searow").then(res => {
//TODO 处理数据逻辑
that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows;
......@@ -300,7 +301,7 @@ export default {
}
},
async handleReset(){
async handleReset() {
this.model.bchcon = "";
this.model.trncorco.ownref = "";
this.model.trncorco.relflg = "";
......@@ -313,5 +314,5 @@ export default {
this.model.searchAllUsers = false;
}
}
\ No newline at end of file
......@@ -401,7 +401,7 @@
label="操作"
width="200px"
>
<template>
<template slot-scope="scope">
<!-- <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
......@@ -418,6 +418,7 @@
style="margin-left: 0"
size="small"
type="primary"
@click="onRelrow(scope.row)"
>
复核
......
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