Commit 018e0ce9 by zhoujunpeng

资金拆借界面修改

parent 8540ea43
......@@ -2058,7 +2058,7 @@ const DisplayRouter = [
name: "DisplayFttfcm",
path: "fttfcm",
component: () => import("./Funds/DisplayFttfcm.vue"),
meta: {keepAlive: true, title: "交易快照-资金调拨"}
meta: {keepAlive: true, title: "交易快照-资金拆借"}
},
{
......
......@@ -160,34 +160,60 @@ export default {
this.initdialog = false;
},
/**
* 打开快照页面
* @param {string} inr
// /**
// * 打开快照页面头寸调拨
// */
// display(row) {
// if(this.oldRefId){
// this.$refs[this.oldRefId].showPopper = false;
// }
// // 历史快照
// if (row.inr.length == 8) {
// this.routerPush({
// path: '/business/HistoryRecord',
// query: {
// businessInr: row.inr,
// businessType: 'TRN',
// type:'view'
// }
// })
// } else if (row.inr.length == 4) {//TODO:修改为16 本地测试:4
// this.routerPush({
// path: `/display/fttpcm`,//${row.inifrm.toLowerCase()}
// query: {
// businessInr: row.inr,
// businessType: 'TRN'
// }
// });
// }
// },
/**
* 打开快照页面资金拆借
*/
display(row) {
if(this.oldRefId){
this.$refs[this.oldRefId].showPopper = true;
}
// 历史快照
if (row.inr.length == 8) {
this.routerPush({
path: '/business/HistoryRecord',
query: {
businessInr: row.inr,
businessType: 'TRN',
type:'view'
}
})
} else if (row.inr.length == 4) {//TODO:修改为16 本地测试:4
this.routerPush({
path: `/display/fttpcm`,//${row.inifrm.toLowerCase()},fttpcm 本地测试写死
query: {
businessInr: row.inr,
businessType: 'TRN'
}
});
}
},
display(row) {
if(this.oldRefId){
this.$refs[this.oldRefId].showPopper = false;
}
// 历史快照
if (row.inr.length == 8) {
this.routerPush({
path: '/business/HistoryRecord',
query: {
businessInr: row.inr,
businessType: 'TRN',
type:'view'
}
})
} else if (row.inr.length == 16) {
this.routerPush({
path: `/display/${row.inifrm.toLowerCase()}`,
query: {
businessInr: row.inr,
businessType: 'TRN'
}
});
}
},
changeOwnref(){
if(this.model.infcon.seaownref){
......@@ -197,7 +223,14 @@ export default {
//Info
toInfo(row,objtyp,subobjtyp,paytyp){
this.routerPush({
path: "/business/fttpcm",
path: "/business/fttpcminf",
query: { inr: row.inr,objtyp:objtyp,pntinr:row.pntinr,subobjtyp:subobjtyp,paytyp:paytyp}
});
},
//InfoZJCJ
toInfoZJCJ(row,objtyp,subobjtyp,paytyp){
this.routerPush({
path: "/business/fttfcminf",
query: { inr: row.inr,objtyp:objtyp,pntinr:row.pntinr,subobjtyp:subobjtyp,paytyp:paytyp}
});
},
......@@ -218,7 +251,14 @@ export default {
getCodelabel(value,codenam) {
const codeobj = this.model.dbCodes[codenam].find(obj => obj.value === value)
return codeobj ? codeobj.label : value;
},
},
//进入头寸调拨交易
toFttpcm() {
this.routerPush({
path: '/business/fttpcm',
});
},
},
};
\ No newline at end of file
......@@ -106,189 +106,179 @@
</el-form>
</template>
</c-list-search>
<!--
<c-col :span="24" style="margin-top: 10px; margin-bottom: 10px">
<c-button class="medium_bcs" size="medium" type="primary" style="margin-top: 10px; margin-bottom: 10px" title="FTTPCM"
@click="toFttpcm">
头寸调拨登记确认
</c-button>
</c-col>
<el-col :span="24" style="margin-top: 10px">
<div style="height: 90%">
<c-col :span="24">
<el-tabs v-model="activeTab" class="y-tabs">
<el-tab-pane label="资金调拨查询" name="zjdb">
<el-tab-pane label="资金拆借查询" name="zjcj">
<el-table
:data="stmData.data"
:columns="stmData.columns"
v-loading="load"
style="width: 100%"
size="small"
:border="true"
height="calc(100vh - 480px)"
:highlight-current-row="true"
:data="stmData.data"
:columns="stmData.columns"
v-loading="load"
style="width: 100%"
size="small"
:border="true"
height="calc(100vh - 480px)"
:highlight-current-row="true"
>
<el-table-column
v-for="(item, key) in stmData.columns"
:key="key"
:label="item.label"
:prop="item.prop"
:min-width="item.width"
v-for="(item, key) in stmData.columns"
:key="key"
:label="item.label"
:prop="item.prop"
:min-width="item.width"
>
</el-table-column>
</el-table>
<el-pagination
layout="total, sizes, prev, pager, next, jumper"
:total="pagination.total"
:page-size="pagination.pageSize"
:current-page.sync="pagination.pageNum"
<el-table-column fixed="right" prop="op" label="操作" width="180px">
<template slot="header">
<c-col :span="11" style="text-align: center">
<span>操作</span>
</c-col>
</template>
<template slot-scope="scope">
<c-button style="margin-right: 5px" size="small" type="text"
@click="handler(scope.row)">
处理
</c-button>
<span> </span>
<el-popover
trigger="manual"
v-clickOutside="closeDisplayDialog" placement="top-end" title="历史信息" width="1200" :ref="'popover_' + scope.row.inr">
<div style="text-align: right;margin-top: -30px;margin-right: 5px;font-size: 16px;">
<span class="el-icon-close" style="cursor: pointer" @click="closeDetailsDialog('popover_' + scope.row.inr)"></span>
</div>
<el-table :data="trnData.data" :columns="trnData.columns" :showButtonFlg="true">
<el-table-column v-for="(item, key) in trnData.columns" :key="key" :label="item.label" :prop="item.prop" :width="item.width">
<template slot-scope="scope">
<div>{{ scope.row[item.prop] }}</div>
</template>
</el-table-column>
<el-table-column fixed="right" prop="op" label="操作" width="100px">
<template slot-scope="scope">
<c-button style="margin-left: 0" size="small" @click="display(scope.row)">快照
</c-button>
</template>
</el-table-column>
</el-table>
<c-button style="margin-left: 0" type="text" size="small" slot="reference" @click="details(scope.row)">
快照
</c-button>
<c-button style="margin-left: 0" type="text" size="small" slot="reference" @click="toInfoZJCJ(scope.row,'FTD')">
Info
</c-button>
</el-popover>
</template>
</el-table-column>
</el-table>
<div class="pagination-box"
style="display:block">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
>
</el-pagination>
@current-change="handleCurrentChange"
:current-page.sync="pagination.pageIndex"
:page-sizes="[10, 20, 50, 100, 500]"
:page-size="pagination.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="pagination.total">
>
</el-pagination>
</div>
</el-tab-pane>
</el-tabs>
</c-col>
</div>
</el-col>
-->
<el-col :span="24" style="margin-top: 10px">
<div style="height: 90%">
<c-col :span="24">
<el-tabs v-model="activeTab" class="y-tabs">
<el-tab-pane label="资金调拨查询" name="zjdb">
</el-tab-pane>
</el-tabs>
</c-col>
</div>
<div style="height: 90%">
<c-col :span="24">
<c-tabs v-model="activeTab" type="card" ref="elment">
<el-table
v-loading="load"
:data="stmData.data"
height="calc(100vh - 480px)"
border
:columns="stmData.columns"
:showButtonFlg="true"
:highlight-current-row="true"
@row-dblclick="TableDblRow"
>
<el-table-column
v-for="(item, key) in stmData.columns"
:key="key"
:label="item.label"
:prop="item.prop"
:min-width="item.width"
>
</el-table-column>
<!-- 自定义组件里加了最右边的一列”操作“ -->
<el-table-column fixed="right" prop="op" label="操作" width="180px">
<template slot="header">
<!-- 插槽里放了一个文字 一个按钮 -->
<c-col :span="11" style="text-align: center"
><span>操作</span>
</c-col>
</template>
<template slot-scope="scope">
<c-button
style="margin-right: 7px"
<el-tab-pane label="头寸调拨查询" name="tcdb">
<el-table
:data="stmData.data"
:columns="stmData.columns"
v-loading="load"
style="width: 100%"
size="small"
type="text"
@click="handler(scope.row)"
>处理
</c-button>
<!-- 申请一个弹出主键放在插槽,加工已渲染的数据 -->
<el-popover
placement="top-start"
title="历史信息"
width="1200"
trigger="manual"
v-clickOutside="closeDisplayDialog"
:ref="'popover_' + scope.row.inr"
:border="true"
height="calc(100vh - 480px)"
:highlight-current-row="true"
>
<el-table-column
v-for="(item, key) in stmData.columns"
:key="key"
:label="item.label"
:prop="item.prop"
:min-width="item.width"
>
<div
style="
text-align: right;
margin-top: -30px;
margin-right: 5px;
font-size: 16px;
"
>
<span
class="el-icon-close"
style="cursor: pointer"
@click="closeDetailsDialog('popover_' + scope.row.inr)"
></span>
</div>
<!--stmData改为trnData-->
<el-table
:data="stmData.data"
:columns="stmData.columns"
:showButtonFlg="true"
>
<el-table-column
v-for="(item, key) in trnData.columns"
:key="key"
:label="item.label"
:prop="item.prop"
:width="item.width"
>
<template slot-scope="scope">
<div>{{ scope.row[item.prop] }}</div>
</template>
</el-table-column>
<el-table-column
fixed="right"
prop="op"
label="操作"
width="100px"
>
<template slot-scope="scope">
<c-button
style="margin-left: 0"
size="small"
@click="display(scope.row)"
>快照</c-button
>
</template>
</el-table-column>
</el-table>
<c-button
style="margin-left: 0px"
size="small"
type="text"
@click="details(scope.row)"
slot="reference"
>
快照
</c-button>
<c-button
style="margin-left: 0"
type="text"
size="small"
slot="reference"
@click="toInfo(scope.row,'CPD','','I')">
Info
</c-button>
</el-popover>
</template>
</el-table-column>
</el-table>
<div class="pagination-box"
style="display:block">
<el-pagination
@size-change="handleSizeChange"
</el-table-column>
<el-table-column fixed="right" prop="op" label="操作" width="180px">
<template slot="header">
<c-col :span="11" style="text-align: center">
<span>操作</span>
</c-col>
</template>
<template slot-scope="scope">
<c-button style="margin-right: 5px" size="small" type="text"
@click="handler(scope.row)">
处理
</c-button>
<span> </span>
<el-popover
trigger="manual"
v-clickOutside="closeDisplayDialog" placement="top-end" title="历史信息" width="1200" :ref="'popover_' + scope.row.inr">
<div style="text-align: right;margin-top: -30px;margin-right: 5px;font-size: 16px;">
<span class="el-icon-close" style="cursor: pointer" @click="closeDetailsDialog('popover_' + scope.row.inr)"></span>
</div>
<el-table :data="trnData.data" :columns="trnData.columns" :showButtonFlg="true">
<el-table-column v-for="(item, key) in trnData.columns" :key="key" :label="item.label" :prop="item.prop" :width="item.width">
<template slot-scope="scope">
<div>{{ scope.row[item.prop] }}</div>
</template>
</el-table-column>
<el-table-column fixed="right" prop="op" label="操作" width="100px">
<template slot-scope="scope">
<c-button style="margin-left: 0" size="small" @click="display(scope.row)">快照
</c-button>
</template>
</el-table-column>
</el-table>
<c-button style="margin-left: 0" type="text" size="small" slot="reference" @click="details(scope.row)">
快照
</c-button>
<c-button style="margin-left: 0" type="text" size="small" slot="reference" @click="toInfo(scope.row,'FTD')">
Info
</c-button>
</el-popover>
</template>
</el-table-column>
</el-table>
<div class="pagination-box"
style="display:block">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page.sync="pagination.pageIndex"
:page-sizes="[10, 20, 50, 100, 500]"
:page-size="pagination.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="pagination.total">
</el-pagination>
</div>
</c-tabs>
</c-col>
>
</el-pagination>
</div>
</el-tab-pane>
</el-tabs>
</c-col>
</div>
</el-col>
<!-- 点击处理ba弹框 -->
<el-dialog
......@@ -311,8 +301,8 @@
</div>
</el-col>
</div>
<!-- </el-col>
</div> -->
</template>
<script>
import event from "../event";
......
......@@ -115,7 +115,7 @@ const DisplayRouter = [
},
{
name: "InfoFtd",
path: "fttfcm",
path: "fttfcminf",
component: () => import("./InfoFtd.vue"),
meta: {keepAlive: true, title: "Info-资金拆借"}
},
......@@ -125,6 +125,12 @@ const DisplayRouter = [
component: () => import("./InfoFxd.vue"),
meta: {keepAlive: true, title: "Info-结售汇/兑换平盘交易"}
},
{
name: "InfoFtd",
path: "fttpcminf",
component: () => import("./InfoFtd.vue"),
meta: {keepAlive: true, title: "Info-头寸调拨"}
},
];
export default DisplayRouter;
\ No newline at end of file
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