Commit 25f15f37 by zhoujunpeng

资金拆借交易入口

parent cc4375fd
var baseData = {};
var baseData = {};
if (process.env.NODE_ENV === 'production') {//生产模式
baseData = {
//15.62.176.250:8088
......@@ -33,7 +33,7 @@ if (process.env.NODE_ENV === 'production') {//生产模式
}
} else {//开发模式
baseData = {
"hostFunds":"localhost:28090",
"hostFunds":"localhost:31096",
"hostPublic": "localhost:31081",
"hostReport": "192.168.0.114:31090",
......
var baseData = {};
var baseData = {};
if (process.env.NODE_ENV === 'production') {//生产模式
baseData = {
//15.62.176.250:8088
......@@ -48,6 +48,7 @@ if (process.env.NODE_ENV === 'production') {//生产模式
"hostPublic": "15.52.176.251:8081",
"hostReport": "127.0.0.1:8090",
"hostGjzf": "127.0.0.1:8096",
"hostFunds":"localhost:31096",
"basePath": "/webapi",
"schemes": "http",
"message": {
......
......@@ -2053,6 +2053,20 @@ const DisplayRouter = [
component: () => import("./Derivative/DisplayMctopn.vue"),
meta: {keepAlive: true, title: "交易快照-万能交易开立", module: 'Derivative'}
},
//以下为资金快照
{
name: "DisplayFttfcm",
path: "fttfcm",
component: () => import("./Funds/DisplayFttfcm.vue"),
meta: {keepAlive: true, title: "交易快照-资金调拨"}
},
{
name: "DisplayFttpcm",
path: "fttpcm",
component: () => import("./Funds/DisplayFttpcm.vue"),
meta: {keepAlive: true, title: "交易快照-头寸调拨"}
},
];
......
<template>
<Fttfcm></Fttfcm>
</template>
<script>
import Fttfcm from "~/page/Funds/Fttfcm/views";
export default {
name: "display-fttfcm",
components: { Fttfcm },
created() { },
mounted() { }
};
</script>
<style></style>
\ No newline at end of file
<template>
<Fttpcm></Fttpcm>
</template>
<script>
import Fttpcm from "~/page/Funds/Fttpcm/views";
export default {
name: "display-fttpcm",
components: { Fttpcm },
created() { },
mounted() { }
};
</script>
<style></style>
\ No newline at end of file
const BusRouter = [
{ path: 'inffxd', component: () => import("./Inffxd/views"), name: 'Inffxd', meta: {keepAlive: true, title: '资结售汇报表交易查询' , module: 'funds' }},
{ path: 'infftd', component: () => import("./Infftd1/views"), name: 'Infftd1', meta: {keepAlive: true, title: '资金拆借/头寸调拨报表交易查询' , module: 'funds' }},
{ path: 'infftd', component: () => import("./Infftd/views"), name: 'Infftd', meta: {keepAlive: true, title: '资金拆借/头寸调拨报表交易查询' , module: 'funds' }},
{ path: 'fttatt', component: () => import("./Fttatt/views"), name: 'Fttatt', meta: {keepAlive: true, title: 'Fttatt' , module: 'funds' }},
{ path: 'fttfcm', component: () => import("./Fttfcm/views"), name: 'Fttfcm', meta: {keepAlive: true, title: '资金定存拆借登记及确认交易' , module: 'funds' }},
{ path: 'fttfcn', component: () => import("./Fttfcn/views"), name: 'Fttfcn', meta: {keepAlive: true, title: '定存拆借销账交易' , module: 'funds' }},
......
......@@ -55,24 +55,9 @@ export default {
this.model.infcon.opndatfrom = new Date();
this.model.infcon.opndatto = new Date();
this.model.infcon.nam = "";
this.model.infcon.ownusr = "";
this.model.infcon.usr = "";
this.model.infcon.bnktyp = "";
this.model.infcon.gzno = "";
this.model.infcon.seacur = "";
this.model.infcon.eaamtfr = "";
this.model.infcon.eaamtto = "";
this.model.infcon.searef = "";
this.model.infcon.ptyextkey = "";
this.model.infcon.ptynam = "";
this.model.infcon.seapty = "";
this.model.infcon.searol = "";
this.model.infcon.usrextkey = "";
this.model.infcon.seasta = "";
this.model.infcon.fttyp = "";
},
// pageSize改变
......@@ -87,17 +72,153 @@ export default {
this.handleSearch();
},
//拆借存放登记及确认
toFttfcm() {
this.routerPush({
path: '/business/fttfcm',
});
},
//头寸调拨登记及确认
toFttpcm() {
this.routerPush({
path: '/business/fttpcm',
});
},
// 详情
async details(row) {
const params = {
ownref: row.ownref,
};
const res = await Api.post('/manager/trn/getTrnListByOwnref', params);
if (res.respCode === SUCCESS) {
if (res.data.length === 1) {
if(this.oldRefId && this.$refs[this.oldRefId]){
this.$refs[this.oldRefId].showPopper = false;
}
this.display(res.data[0])
}else{
this.trnData.data = res.data;
this.oldRefId = 'popover_' + row.inr
this.$refs[this.oldRefId].showPopper = true;
}
}
},
// 关闭详情弹框
closeDetailsDialog(refId) {
if(refId){
this.$refs[refId].showPopper = false;
}
},
// closeDisplayDialog(){
// if(this.oldRefId){
// this.$refs[this.oldRefId].showPopper = false;
// }
// },
// 处理
async handler(row) {
this.handleModel = row;
this.trnUrl = 'funds';
this.inifrm = 'ftdsel';
this.initdialog = true;
},
//双击表格数据
async TableDblRow(row) {
this.handler(row)
},
closeDisplayDialog(){
if(this.oldRefId){
this.$refs[this.oldRefId].showPopper = false;
}
},
//点击处理弹窗中按钮
async handleClick (btn,row) {
let obj = {
objtyp:'FTD',
objinr:row.inr,
pntinr:row.pntinr,
pnttyp:row.pnttyp,
ledinr:row.ledinr,
trnName:btn.code.toLowerCase(),
}
let isPush = await this.$refs.lockAndPending.checkLockAndPending(obj)
if(!isPush){
return
}
let params = {}
if(btn.code.toLowerCase() == 'fttfmt'){
params = {
path: "/business/" + btn.code.toLowerCase(),
}
}else{
params = {
path: "/business/" + btn.code.toLowerCase(),
query: { inr: row.inr,pntinr: row.pntinr }
}
}
this.routerPush(params);
this.initdialog = false;
},
//修改弹窗状态
changeBtn(isVisible){
this.initdialog = isVisible;
},
// 关闭处理弹框
closeHandlerDialog() {
this.initdialog = false;
},
/**
* 打开快照页面
* @param {string} inr
*/
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
this.routerPush({
path: `/display/fttfcm`,//${row.inifrm.toLowerCase()},fttpcm
query: {
businessInr: row.inr,
businessType: 'TRN'
}
});
}
},
changeOwnref(){
if(this.model.infcon.seaownref){
this.model.infcon.opndatfrom = null
}
},
//Info
toInfo(row,objtyp,subobjtyp,paytyp){
this.routerPush({
path: "/business/fttpcm",
query: { inr: row.inr,objtyp:objtyp,pntinr:row.pntinr,subobjtyp:subobjtyp,paytyp:paytyp}
});
},
async getdbCode(codeType, uil, codeNam) {
let params = {
codeType: codeType,
uil: uil ? uil : 'EN'
}
let rtnmsg = await Api.post("/manager/dic/listDicInfo", params)
if (rtnmsg.respCode === SUCCESS) {
let curList = rtnmsg.data.map(item => ({
value: item.codeValue,
label: item.codeName
}));
this.model.dbCodes[codeNam] = curList
}
},
getCodelabel(value,codenam) {
const codeobj = this.model.dbCodes[codenam].find(obj => obj.value === value)
return codeobj ? codeobj.label : value;
},
},
};
};
\ No newline at end of file
......@@ -24,7 +24,7 @@ import Infsea from "./Infsea.vue"
export default {
name: "infftd",
name: "Infftd",
components:{
"m-infsea" : Infsea,
......
<template>
<Xxdinf></Xxdinf>
</template>
<script>
import Xxdinf from "~/page/Statics/Xxdinf/views";
export default {
name: "Info-Ftd",
components: { Xxdinf },
created() { },
mounted() { }
};
</script>
<style></style>
\ No newline at end of file
......@@ -113,6 +113,12 @@ const DisplayRouter = [
component: () => import("./InfoMcd.vue"),
meta: {keepAlive: true, title: "Info-万能交易"}
},
{
name: "InfoFtd",
path: "fttfcm",
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