Commit 9696c268 by Wuyuqiu

infact工具条

parent f80d9177
...@@ -15,6 +15,18 @@ export default { ...@@ -15,6 +15,18 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
// async getTrnInfo(idx, row) {
// this.model.infcon.objinr = row["INR"];
// this.model.ledgrp.rec.inr = row["INR"];
// this.model.infcon.chksubcon = "X";
// this.dialogTableVisible = true;
// let rtnmsg = await this.executeDefault("infcon.chksubcon");
// if ((rtnmsg.respCode = SUCCESS)) {
// this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
// }
// },
async onInfbutDsp(idx,row){ async onInfbutDsp(idx,row){
const selIds= [idx + 1]; const selIds= [idx + 1];
const selDst= "dspstm";//dspstm是数据流 const selDst= "dspstm";//dspstm是数据流
...@@ -138,5 +150,30 @@ export default { ...@@ -138,5 +150,30 @@ export default {
this.model.cur=""; this.model.cur="";
}, },
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: '服务请求失败!'});
}
},
} }
\ No newline at end of file
...@@ -389,7 +389,8 @@ export default { ...@@ -389,7 +389,8 @@ export default {
if ((res.respCode == SUCCESS)) { if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data); Utils.copyValueFromVO(this.model, res.data);
// this.$router.push({ path: "business/inftrnpsDetail", query: { idx: idx}}); // this.$router.push({ path: "business/inftrnpsDetail", query: { idx: idx}});
this.$router.push({ path: viewurl, query: {} }); // this.$router.push({ path: viewurl, query: {} });
this.$router.push({ name: business.charAt(0).toUpperCase() + business.substring(1), params:{prePageId:this.model.pageId} });
}else{ }else{
const h = this.$createElement; const h = this.$createElement;
const msg = res.respMsg||'请求执行失败!' const msg = res.respMsg||'请求执行失败!'
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-content> <!-- 持续展示区 -->
<c-list-search
<c-col :span="11"> @form-reset="handleReset"
@form-search="handleSearch"
>
<template v-slot="searchSlot">
<el-form
class="m-table-search-form"
ref="paramsForm"
label-position="right"
label-width="110px"
size="small"
:model="model"
>
<c-row>
<c-col :span="24"> <c-col :span="24">
<c-col :span="12" style="padding-right: 20px">
<el-form-item label="Account No." prop="extkey"> <el-form-item label="Account No." prop="extkey">
<c-input <c-input
v-model="model.extkey" v-model="model.extkey"
placeholder="请输入Account No"> placeholder="请输入Account No"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12" style="padding-left: 20px">
<el-form-item label="Name of Account Owner" prop="nam">
<c-input
v-model="model.nam"
placeholder="请输入Name of Account Owner"
>
</c-input> </c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col>
</c-row>
<!-- SF000045 : Holding Party --> <!-- 可控展示区 -->
<c-row v-show="searchSlot.searchToggle">
<c-col :span="24">
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24"> <c-col :span="24">
<el-form-item label="Holding Party" prop="hdlpty.extkey"> <el-form-item label="Holding Party" prop="hdlpty.extkey">
<c-input <c-input
v-model="model.hdlpty.extkey" v-model="model.hdlpty.extkey"
placeholder="请输入 Holding Party"> placeholder="请输入 Holding Party"
>
</c-input> </c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<!-- SF000042 : Type -->
<c-col :span="24"> <c-col :span="24">
<el-form-item label="Type" prop="typ"> <el-form-item label="Type" prop="typ">
<c-select <c-select
v-model="model.typ" v-model="model.typ"
style="width:100%" style="width: 100%"
placeholder="请输入type"> placeholder="请输入type"
>
<el-option <el-option
v-for="item in codes.recgrptyp" v-for="item in codes.recgrptyp"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value"> :value="item.value"
>
</el-option> </el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="12" style="padding-left: 20px">
<c-col :span="12" :offset="1">
<!-- SF000048 : Name of Account Owner -->
<c-col :span="24">
<el-form-item
label="Name of Act. Owner"
prop="nam">
<c-input
v-model="model.nam"
placeholder="请输入Name of Act. Owner">
</c-input>
</el-form-item>
</c-col>
<!-- SF000050 : IBAN -->
<c-col :span="24"> <c-col :span="24">
<c-form-item label="IBAN" prop="iban"> <c-form-item label="IBAN" prop="iban">
<c-input <c-input
v-model="model.iban" v-model="model.iban"
placeholder="请输入IBAN"></c-input> placeholder="请输入IBAN"
></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
<!-- SF000043 : Currency -->
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="'Currency'" prop="cur"> <el-form-item :label="'Currency'" prop="cur">
<c-select <c-select
v-model="model.cur" v-model="model.cur"
style="width:100%" style="width: 100%"
:placeholder="'请输入Currency'"> :placeholder="'请输入Currency'"
>
<el-option <el-option
v-for="item in codes.curtxt1" v-for="item in codes.curtxt1"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value"> :value="item.value"
>
</el-option> </el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="24" style="text-align: right; height: 36.8px">
<el-button size="small" @click="handleReset">重置</el-button>
<el-button
type="primary"
icon="el-icon-search"
size="small"
@click="onInfbutSearow()"
>查询
</el-button>
</c-col> </c-col>
</c-row>
</el-form>
</template>
</c-list-search>
<el-row>
<c-col :span="24"> <c-col :span="24">
<div style="border-bottom: 10px solid rgb(232, 232, 232)"></div> <c-istream-table
</c-col> :list="stmData.data"
:columns="stmData.columns"
:showButtonFlg="true"
>
<el-table-column fixed="right" prop="op" width="150px">
<template slot="header">
<c-col :span="11" style="text-align: center"
><span>操作</span></c-col
>
<c-col :span="24" style="margin-top: 10px"> </template>
<template slot-scope="scope">
<el-popover
placement="top-start"
title="历史信息"
width="800"
trigger="click"
:ref="'popover_' + scope.row.IDX"
>
<div
style="
text-align: right;
margin-top: -30px;
margin-right: 5px;
font-size: 16px;
"
>
<span
class="el-icon-close"
@click="closeTrn('popover_' + scope.row.IDX)"
/>
</div>
<c-istream-table
:list="trnData.data"
:columns="trnData.columns"
>
<el-table-column prop="op" label="操作" width="0">
<template slot-scope="scope">
<c-button <c-button
style="margin-left: 0"
size="small" size="small"
type="primary" type="primary"
@click="onInfbutButprt" @click="display(scope.row['INR'])"
style="float: right"
> >
导出Excel 查看详情
</c-button> </c-button>
</c-col>
<c-col :span="24" >
<c-istream-table
:list="stmData.data"
:columns="stmData.columns"
:showButtonFlg="false">
<c-table-column fixed="right" prop="op" label="操作" width="160px">
<template slot-scope="{ scope }">
<c-button style="margin-left: 0" size="small" @click="onInfbutDsp(scope.$index, scope.row)">详情 </c-button>
</template> </template>
</c-table-column> </el-table-column>
</c-istream-table>
<c-button
style="margin-left: 0"
size="small"
@click="getTrnInfo(scope.$index, scope.row)"
slot="reference"
>
详情
</c-button>
</el-popover>
</template>
</el-table-column>
</c-istream-table> </c-istream-table>
</c-col> </c-col>
</c-content> </el-row>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infact/Event" import Event from "~/model/Infact/Event";
export default { export default {
inject: ['root'], inject: ["root"],
props:["model","codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data(){ data() {
return { return {
trnData: {
stmData: {
columns: [ columns: [
"8 1 \"Account Owner\" 180 ", '0 8 "交易ID" 100',
"3 2\"Typ\" 160", '1 1 "编号" 150',
"4 3 \"Cur\" 160", '2 2 "交易名称" 195',
"5 4 \"Account No.\" 180", '3 3 "条目" 80 4 7',
"6 5 \" Owner Number\" 180 ", {
index: 4,
"9 6 \"Servicing Party \" 160", position: 4,
"10 7 \"Servicing Number\" 160", width: 100,
pattern: "code",
label: "状态",
code: this.codes.relstaEN,
},
'5 5 "币种" 80',
'6 6 "相关金额" 150 2 8 1 5',
'7 7 "标识" 100',
], ],
data: [ ]
data: [],
},
stmData: {
columns: [
'8 1 "Account Owner" 180 ',
'3 2"Typ" 160',
'4 3 "Cur" 160',
'5 4 "Account No." 180',
'6 5 " Owner Number" 180 ',
} '9 6 "Servicing Party " 160',
} '10 7 "Servicing Number" 160',
}, ],
computed: { data: [],
tableData() { },
return this.model.infbut.dspstm.rows; };
}, },
/* stmData() { computed: {
tableData() {
return this.model.infbut.dspstm.rows;
},
/* stmData() {
console.log(this.model.infbut.dspstm.rows); console.log(this.model.infbut.dspstm.rows);
return this.model.infbut.dspstm.rows; return this.model.infbut.dspstm.rows;
} */ } */
},
}, methods: {
methods:{
chooseRowEvent(row) { chooseRowEvent(row) {
this.model.infbut.selrow = row.IDX + 1; this.model.infbut.selrow = row.IDX + 1;
}, },
closeTrn(refId) {
this.$refs[refId].doClose();
},
async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"];
this.model.ledgrp.rec.inr = row["INR"];
this.model.infcon.chksubcon = "X";
...Event}, this.dialogTableVisible = true;
created:function(){ let rtnmsg = await this.executeDefault("infbut.dspstm");
if ((rtnmsg.respCode = SUCCESS)) {
this.trnData.data = rtnmsg.data.infbut_dspstm.rows;
} }
} },
...Event,
},
created: function () {},
};
</script> </script>
<style> <style>
</style> </style>
<template> <template>
<div class="eContainer"> <div class="eContainer-search">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false"> <el-form
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> :model="model"
<!--infact PD000041 Search Panel --> :rules="rules"
<el-tab-pane :label="'查询页面'" name="infsea"> ref="modelForm"
label-width="120px"
label-position="right"
size="small"
:validate-on-rule-change="false"
>
<c-content>
<m-infsea :model="model" :codes="codes" ref="infsea"/> <m-infsea :model="model" :codes="codes" ref="infsea"/>
</el-tab-pane> </c-content>
<!--actp PD000000 Accounts -->
<el-tab-pane :label="'详情'" name="actp0">
<m-actp0 :model="model" :codes="codes" ref="actp0"/>
</el-tab-pane>
<!--actp PD000700 Info and Stoptext -->
<el-tab-pane :label="'Info and Stoptext'" name="oitpan">
<m-oitpan :model="model" :codes="codes" ref="oitpan"/>
</el-tab-pane>
<!-- <el-tab-pane :label="$t('actp.PD000040')" name="prtpan">
<m-prtpan :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane :label="$t('infbut.PD000022')" name="evtinfp">
<m-evtinfp :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane :label="$t('vermod.PD000005')" name="difstm">
<m-difstm :model="model" :codes="codes"/>
</el-tab-pane> -->
</c-tabs>
</el-form> </el-form>
</div> </div>
</template> </template>
...@@ -63,13 +46,13 @@ export default { ...@@ -63,13 +46,13 @@ export default {
return { return {
tabVal: "infsea", tabVal: "infsea",
trnName: "infact", trnName: "infact",
trnType: "",
model: new Infact().data, model: new Infact().data,
checkRules: Check, checkRules: Check,
defaultRules: Default, defaultRules: Default,
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: {...CodeTable codes: {
...CodeTable
}, },
} }
}, },
......
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