Commit 9696c268 by Wuyuqiu

infact工具条

parent f80d9177
......@@ -15,6 +15,18 @@ export default {
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){
const selIds= [idx + 1];
const selDst= "dspstm";//dspstm是数据流
......@@ -138,5 +150,30 @@ export default {
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 {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
// 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{
const h = this.$createElement;
const msg = res.respMsg||'请求执行失败!'
......
<template>
<div class="eibs-tab">
<c-content>
<c-col :span="11">
<!-- 持续展示区 -->
<c-list-search
@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="12" style="padding-right: 20px">
<el-form-item label="Account No." prop="extkey">
<c-input
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>
</el-form-item>
</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">
<el-form-item label="Holding Party" prop="hdlpty.extkey">
<c-input
v-model="model.hdlpty.extkey"
placeholder="请输入 Holding Party">
placeholder="请输入 Holding Party"
>
</c-input>
</el-form-item>
</c-col>
<!-- SF000042 : Type -->
<c-col :span="24">
<el-form-item label="Type" prop="typ">
<c-select
v-model="model.typ"
style="width:100%"
placeholder="请输入type">
style="width: 100%"
placeholder="请输入type"
>
<el-option
v-for="item in codes.recgrptyp"
:key="item.value"
:label="item.label"
:value="item.value">
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<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="12" style="padding-left: 20px">
<c-col :span="24">
<c-form-item label="IBAN" prop="iban">
<c-input
v-model="model.iban"
placeholder="请输入IBAN"></c-input>
placeholder="请输入IBAN"
></c-input>
</c-form-item>
</c-col>
<!-- SF000043 : Currency -->
<c-col :span="24">
<el-form-item :label="'Currency'" prop="cur">
<c-select
v-model="model.cur"
style="width:100%"
:placeholder="'请输入Currency'">
style="width: 100%"
:placeholder="'请输入Currency'"
>
<el-option
v-for="item in codes.curtxt1"
:key="item.value"
:label="item.label"
:value="item.value">
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</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-row>
</el-form>
</template>
</c-list-search>
<el-row>
<c-col :span="24">
<div style="border-bottom: 10px solid rgb(232, 232, 232)"></div>
</c-col>
<c-istream-table
: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
style="margin-left: 0"
size="small"
type="primary"
@click="onInfbutButprt"
style="float: right"
@click="display(scope.row['INR'])"
>
导出Excel
查看详情
</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>
</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-col>
</c-content>
</el-row>
</div>
</template>
<script>
import Api from "~/service/Api"
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Infact/Event"
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infact/Event";
export default {
inject: ['root'],
props:["model","codes"],
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data(){
data() {
return {
stmData: {
trnData: {
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",
'0 8 "交易ID" 100',
'1 1 "编号" 150',
'2 2 "交易名称" 195',
'3 3 "条目" 80 4 7',
{
index: 4,
position: 4,
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 ',
}
}
},
computed: {
tableData() {
return this.model.infbut.dspstm.rows;
},
/* stmData() {
'9 6 "Servicing Party " 160',
'10 7 "Servicing Number" 160',
],
data: [],
},
};
},
computed: {
tableData() {
return this.model.infbut.dspstm.rows;
},
/* stmData() {
console.log(this.model.infbut.dspstm.rows);
return this.model.infbut.dspstm.rows;
} */
},
methods:{
},
methods: {
chooseRowEvent(row) {
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},
created:function(){
this.dialogTableVisible = true;
let rtnmsg = await this.executeDefault("infbut.dspstm");
if ((rtnmsg.respCode = SUCCESS)) {
this.trnData.data = rtnmsg.data.infbut_dspstm.rows;
}
}
},
...Event,
},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--infact PD000041 Search Panel -->
<el-tab-pane :label="'查询页面'" name="infsea">
<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"
>
<c-content>
<m-infsea :model="model" :codes="codes" ref="infsea"/>
</el-tab-pane>
<!--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>
</c-content>
</el-form>
</div>
</template>
......@@ -63,13 +46,13 @@ export default {
return {
tabVal: "infsea",
trnName: "infact",
trnType: "",
model: new Infact().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
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