Commit bad8efbd by hulei
parents 7c380b65 1dd9ed86
......@@ -115,18 +115,30 @@ export default {
},
async handleSearch() {
this.stmData.data = [];
let opndatfrom = this.model.infcon.opndatfrom;
if(!opndatfrom || opndatfrom == ''){
this.$notify.error({ title: '错误', message: '查询开始日期必输!' });
return;
}
let opndatto = this.model.infcon.opndatto;
if(!opndatto || opndatto == ''){
this.$notify.error({ title: '错误', message: '查询结束日期必输!' });
return;
}
let rtnmsg = await this.executeRule("infbut.searow")
if(rtnmsg.respCode == SUCCESS)
{
this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
let rtnmsg = await this.executeRule("infbut.searow")
if(rtnmsg.respCode == SUCCESS)
{
this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
display(index, row) {
debugger;
Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
......
......@@ -177,7 +177,17 @@ export default {
},
async handleSearch() {
this.stmData.data = [];
let opndatfrom = this.model.infcon.opndatfrom;
if(!opndatfrom || opndatfrom == ''){
this.$notify.error({ title: '错误', message: '查询开始日期必输!' });
return;
}
let opndatto = this.model.infcon.opndatto;
if(!opndatto || opndatto == ''){
this.$notify.error({ title: '错误', message: '查询结束日期必输!' });
return;
}
let rtnmsg = await this.executeRule("infbut.searow")
if (rtnmsg.respCode == SUCCESS) {
this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
......
......@@ -79,11 +79,21 @@ export default {
//let rtnmsg = await Api.post("getPendingData",{params:{'selsptinr':row[0]}})
//if (rtnmsg.respCode == SUCCESS) {
//var cacheFileName = rtnmsg.data.cacheFileName;
this.model.selsptinr = row['INR'];
let rtnmsg = await this.executeRule("tak")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
let trnName = row.交易代码.toLowerCase();
// let viewurl = "/business/ditopn?selsptinr=" + row[0];
//let viewurl = "/business/"+trnName+"?selsptinr=" + row['INR'];
let viewurl = "/business/"+trnName;
this.$router.push(viewurl);
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
let trnName = row.交易代码.toLowerCase();
// let viewurl = "/business/ditopn?selsptinr=" + row[0];
let viewurl = "/business/"+trnName+"?selsptinr=" + row['INR'];
this.$router.push(viewurl);
//}
},
async handleReset() {
......
......@@ -60,6 +60,7 @@ export default class Sptsel {
relamt:"", // Relevant Amount Optional .sptp.smh.relamt
},
},
selsptinr:"",
pageId: "" // ctx的key
}
}
......
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