Commit e5d8b4b6 by wangweidong

add funds

parent 5a7495a4
//const Infftd = () => import('./Infftd/views');
const Inffxd = () => import('./Inffxd/views');
const FundsRouter = [
{ path: 'inffxd', component: Inffxd, name: 'Inffxd', meta: { keepAlive: true, title: '资结售汇报表交易查询' } },
// { path: 'infftd', component: Infftd, name: 'Infftd', meta: { keepAlive: true, title: '资金拆借/头寸调拨报表交易查询' } },
]
export default FundsRouter
\ No newline at end of file
import Api from "~/service/Api";
import moment from "moment";
export default {
methods: {
async handleSearch() {
console.log("serach......");
let opndatfrom = this.model.infcon.opndatfrom;
if (!opndatfrom || opndatfrom == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询开始日期必输!"),
});
return;
}
let opndatto = this.model.infcon.opndatto;
if (!opndatto || opndatto == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询结束日期必输!"),
});
return;
}
this.load = true;
let rtnmsg = await Api.post("/funds/fxdsel/query", {
...this.model.infcon,
dir: ">",
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
opndatfrom: moment(opndatfrom).format("YYYY-MM-DD"),
opndatto: moment(opndatto).format("YYYY-MM-DD"),
});
if (rtnmsg.respCode == SUCCESS) {
this.load = false;
this.stmData.data = [];
this.stmData.data = rtnmsg.data.list;
this.pagination = {
pageNum: rtnmsg.data.pageNum || 1,
pageSize: rtnmsg.data.pageSize || 10,
total: rtnmsg.data.total,
};
} else {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.服务请求失败!"),
});
}
this.load = false;
},
async handleReset() {
this.model.infcon.seaownref = "";
this.model.infcon.opndatfrom = new Date();
this.model.infcon.opndatto = new Date();
this.model.infcon.nam = "";
this.model.infcon.seacur = "";
this.model.infcon.eaamtfr = "";
this.model.infcon.eaamtto = "";
},
// pageSize改变
handleSizeChange(val) {
this.pagination.pageNum = 1;
this.pagination.pageSize = val;
this.handleSearch();
},
// 页码改变
handleCurrentChange(val) {
this.pagination.pageNum = val;
this.handleSearch();
},
},
};
import Api from "~/service/Api"
export default class inffxd{
constructor () {
this.data = {
infcon:{
seaownref:"", // 业务编号 .infcon.seaownref
nam:"", // Name .infcon.nam
opndatfrom:"", // 有效日期自 .infcon.opndatfrom
opndatto:"", // Open Date to .infcon.opndatto
seacur:"", // 币种 .infcon.seacur
seaamtfr:"", // 金额自 .infcon.seaamtfr
seaamtto:"", // Amount to .infcon.seaamtto
},
infbut:{
dspstm:"", // display stream .infbut.dspstm
},
fttyp:"", // Funds Trans. Type .fttyp
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-list-search @form-reset="handleReset" @form-search="handleSearch">
<!-- 持续展示区 -->
<template v-slot="searchSlot">
<el-row>
<c-col :span="24">
<c-col :span="8">
<el-form-item
label="业务编号"
prop="seaownref"
style="width: 100%"
>
<c-input
v-model="model.infcon.seaownref"
maxlength="40"
placeholder="请输入业务编号"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="有效日期"
prop="opndatfrom"
style="width: 100%"
>
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.infcon.opndatfrom"
style="width: 100%"
></c-date-picker>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.infcon.opndatto"
style="width: 100%"
></c-date-picker>
</c-col>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="参与方名称" prop="nam" style="width: 100%">
<c-input
v-model="model.infcon.nam"
maxlength="40"
placeholder="请填写名称"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
</el-row>
<!-- 可控展示区 -->
<el-row v-show="searchSlot.searchToggle">
<c-col :span="24">
<c-col :span="8">
<el-form-item label="币种" prop="seacur" style="width: 100%">
<c-select
v-model="model.infcon.cur"
style="width: 100%"
placeholder="请选择币种"
:code="codes.seacur"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item :label="$t('lc.金额区间')" style="width: 100%">
<c-col :span="11">
<c-input
v-model="model.infcon.amtmin"
:placeholder="$t('lc.请输入金额下限')"
style="width: 100%"
></c-input>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-input
v-model="model.infcon.amtmax"
:placeholder="$t('lc.请输入金额上限')"
style="width: 100%"
></c-input>
</c-col>
</el-form-item>
</c-col>
</c-col>
</el-row>
</template>
</c-list-search>
<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="jsh">
<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"
>
<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>
<el-pagination
layout="total, sizes, prev, pager, next, jumper"
:total="pagination.total"
:page-size="pagination.pageSize"
:current-page.sync="pagination.pageNum"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
>
</el-pagination>
</el-tab-pane>
</el-tabs>
</c-col>
</div>
</el-col>
</div>
</template>
<script>
import event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeTab: "jsh",
load: false,
stmData: {
columns: [
{
label: "业务编号",
prop: "seaownref",
width: "180px",
},
{
label: "名称",
prop: "nam",
width: "180px",
},
{
label: "币种",
prop: "seacur",
width: "120px",
},
{
label: "开始日期",
prop: "opndatfrom",
width: "120px",
},
{
label: "结束日期",
prop: "opndatto",
width: "120px",
},
{
label: "金额下限",
prop: "seaamtfr",
width: "120px",
},
{
label: "金额上限",
prop: "seaamtto",
width: "120px",
},
],
data: [],
},
pagination: {
pageNum: 1,
pageSize: 10,
total: 0,
},
};
},
methods: {},
mounted: function () {},
};
</script>
<style lang="less" scoped>
::v-deep .c-content-scrollbar {
height: 100% !important;
}
.eibs-tabs /deep/ {
.m-table-search {
padding: 20px 0px 10px 0px;
}
}
.header-wrap {
height: 36px;
display: flex;
justify-content: space-between;
align-items: center;
.title {
font-size: 16px;
color: #000;
}
.close-btn {
padding: 3px;
cursor: pointer;
}
}
.m-list-btns {
height: 300px;
overflow: auto;
}
.medium_bcs {
border-radius: 5px;
}
.m-table-search {
padding: 20px 0px 10px 0px;
}
.pagination-box {
width: 100%;
height: 30px;
display: flex;
align-items: center;
justify-content: flex-end;
padding: 0 10px;
background: #fff;
margin-top: 5px;
}
.el-dialog__body {
padding: 10px 5px 50px;
}
.m-table-search {
padding: 20px 0px 10px 0px;
}
.btn-group-wrap {
max-height: 200px;
width: 100%;
overflow-y: auto;
display: flex;
align-items: flex-start;
justify-content: flex-start;
flex-wrap: wrap;
}
.btn-item {
margin-bottom: 10px;
margin-right: 10px;
}
</style>
<template>
<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"/>
</c-content>
</el-form>
</div>
</template>
<script>
import CodeTable from "~/config/CodeTable";
import inffxd from "../model";
import event from "../event"
import Infsea from "./Infsea.vue"
export default {
name: "inffxd",
components:{
"m-infsea" : Infsea,
},
provide() {
return {
root: this
}
},
mixins: [event], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "infsea",
trnName: "inffxd",
model: new inffxd().data,
rules: null,
codes:{...CodeTable},
};
},
methods:{},
created:async function() {},
};
</script>
<style scoped>
</style>
import Api from "~/service/Api";
import moment from "moment";
export default {
methods: {
async handleSearch() {
console.log("serach......");
let opndatfrom = this.model.infcon.opndatfrom;
if (!opndatfrom || opndatfrom == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询开始日期必输!"),
});
return;
}
let opndatto = this.model.infcon.opndatto;
if (!opndatto || opndatto == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询结束日期必输!"),
});
return;
}
this.load = true;
let rtnmsg = await Api.post("/webapi/gjzf/infsea/query", {
...this.model.infcon,
dir: ">",
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
opndatfrom: moment(opndatfrom).format("YYYY-MM-DD"),
opndatto: moment(opndatto).format("YYYY-MM-DD"),
});
if (rtnmsg.respCode == SUCCESS) {
this.load = false;
this.stmData.data = [];
this.stmData.data = rtnmsg.data.list;
this.pagination = {
pageNum: rtnmsg.data.pageNum || 1,
pageSize: rtnmsg.data.pageSize || 10,
total: rtnmsg.data.total,
};
} else {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.服务请求失败!"),
});
}
this.load = false;
},
async handleReset() {
this.model.infcon.seaownref = "";
this.model.infcon.opndatfrom = new Date();
this.model.infcon.opndatto = new Date();
this.model.infcon.nam = "";
this.model.infcon.fxtyp = "";
this.model.infcon.trdint = "";
this.model.infcon.fudref = "";
this.model.infcon.seacur = "";
this.model.infcon.eaamtfr = "";
this.model.infcon.eaamtto = "";
//this.model.infcon.trnman = "";
this.model.infcon.acc = "";
this.model.infcon.acc2 = "";
this.model.infcon.ownusr = "";
this.model.infcon.usr = "";
},
// pageSize改变
handleSizeChange(val) {
this.pagination.pageNum = 1;
this.pagination.pageSize = val;
this.handleSearch();
},
// 页码改变
handleCurrentChange(val) {
this.pagination.pageNum = val;
this.handleSearch();
},
},
};
import Api from "~/service/Api"
export default class Inffxd {
constructor() {
this.data = {
infcon: {
seaownref: "", // 业务编号 .infcon.seaownref
nam: "", // 参与方名称Name .infcon.nam
fxtyp, //平盘类型
trdint, //结售汇类型
fudref, //资金部编号
//searef:"", // 参与方参考号 .infcon.searef
//seapty:"", // 参与方名称/BIC .infcon.seapty
opndatfrom: "", // 成交有效日期自 .infcon.opndatfrom
opndatto: "", // Open Date to .infcon.opndatto
seacur: "", // 币种 .infcon.seacur
seaamtfr: "", // 金额自 .infcon.seaamtfr
seaamtto: "", // Amount to .infcon.seaamtto
//trnman, //交易主体
acc, //外币结算账号
acc2, //本币结算账号
ownusr, //资金部经办人
usr, //营运部经办人
},
infbut: {
dspstm: "", // display stream .infbut.dspstm
},
fttyp: "", // Funds Trans. Type .fttyp
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<template>
<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"/>
</c-content>
</el-form>
</div>
</template>
<script>
import CodeTable from "~/config/CodeTable";
import Inffxd from "../model";
import event from "../event"
import Infsea from "./Infsea.vue"
export default {
name: "Inffxd",
components:{
"m-infsea" : Infsea,
},
provide() {
return {
root: this
}
},
mixins: [event], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "infsea",
trnName: "inffxd",
model: new Inffxd().data,
rules: null,
codes:{...CodeTable},
};
},
methods:{},
created:async function() {},
};
</script>
<style scoped>
</style>
import Api from "~/service/Api";
import moment from "moment";
export default {
methods: {
async handleSearch() {
console.log("serach......");
let opndatfrom = this.model.infcon.opndatfrom;
if (!opndatfrom || opndatfrom == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询开始日期必输!"),
});
return;
}
let opndatto = this.model.infcon.opndatto;
if (!opndatto || opndatto == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询结束日期必输!"),
});
return;
}
this.load = true;
let rtnmsg = await Api.post("/webapi/gjzf/infsea/query", {
...this.model.infcon,
dir: ">",
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
opndatfrom: moment(opndatfrom).format("YYYY-MM-DD"),
opndatto: moment(opndatto).format("YYYY-MM-DD"),
});
if (rtnmsg.respCode == SUCCESS) {
this.load = false;
this.stmData.data = [];
this.stmData.data = rtnmsg.data.list;
this.pagination = {
pageNum: rtnmsg.data.pageNum || 1,
pageSize: rtnmsg.data.pageSize || 10,
total: rtnmsg.data.total,
};
} else {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.服务请求失败!"),
});
}
this.load = false;
},
async handleReset() {
this.model.infcon.ownref = "";
this.model.infcon.opndatfrom = new Date();
this.model.infcon.opndatto = new Date();
this.model.infcon.nam = "";
this.model.infcon.fxtyp = "";
this.model.infcon.trdint = "";
this.model.infcon.fudref = "";
this.model.infcon.seacur = "";
this.model.infcon.eaamtfr = "";
this.model.infcon.eaamtto = "";
//this.model.infcon.trnman = "";
this.model.infcon.acc = "";
this.model.infcon.acc2 = "";
this.model.infcon.ownusr = "";
this.model.infcon.usr = "";
},
// pageSize改变
handleSizeChange(val) {
this.pagination.pageNum = 1;
this.pagination.pageSize = val;
this.handleSearch();
},
// 页码改变
handleCurrentChange(val) {
this.pagination.pageNum = val;
this.handleSearch();
},
},
};
import Api from "~/service/Api"
export default class Inffxd{
constructor () {
this.data = {
infcon:{
ownref:"", // 业务编号 .infcon.seaownref
nam:"", // 参与方名称Name .infcon.nam
fxtyp, //平盘类型
trdint, //结售汇类型
fudref, //资金部编号
//searef:"", // 参与方参考号 .infcon.searef
//seapty:"", // 参与方名称/BIC .infcon.seapty
opndatfrom:"", // 成交有效日期自 .infcon.opndatfrom
opndatto:"", // Open Date to .infcon.opndatto
seacur:"", // 币种 .infcon.seacur
seaamtfr:"", // 金额自 .infcon.seaamtfr
seaamtto:"", // Amount to .infcon.seaamtto
//trnman, //交易主体
acc, //外币结算账号
acc2, //本币结算账号
ownusr, //资金部经办人
usr, //营运部经办人
},
infbut:{
dspstm:"", // display stream .infbut.dspstm
},
fttyp:"", // Funds Trans. Type .fttyp
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<template>
<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"/>
</c-content>
</el-form>
</div>
</template>
<script>
import CodeTable from "~/config/CodeTable";
import Inffxd from "../model";
import event from "../event"
import Infsea from "./Infsea.vue"
export default {
name: "Inffxd",
components:{
"m-infsea" : Infsea,
},
provide() {
return {
root: this
}
},
mixins: [event], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "infsea",
trnName: "inffxd",
model: new Inffxd().data,
rules: null,
codes:{...CodeTable},
};
},
methods:{},
created:async function() {},
};
</script>
<style scoped>
</style>
......@@ -3,6 +3,9 @@ import business from '@/page/Business/index.vue'
import Display from "~/page/Display";
import BusRouter from "~/page/Business/BusRouter";
import FundsRouter from "~/page/Funds/FundsRouter";
import ReviewRouter from "~/page/Review/ReviewRouter";
import DisplayRouter from "~/page/Display/DisplayRouter";
import DocRouter from "~/page/Docpan/DocRouter";
......@@ -40,6 +43,7 @@ export default [
name: 'business',
children: [
...BusRouter,
...FundsRouter,
...StaticsRouter,
...LcRouter,
...FinRouter,
......
......@@ -28,6 +28,13 @@ module.exports = {
port: 8088,
//proxy: baseData.schemes + '://' +baseData.host,
proxy: {
'/webapi/funds': {
target: baseData.schemes + '://' + baseData.hostFunds,
changeOrigin: false,
pathRewrite: {
'^/webapi/funds': '/funds'
}
},
'/webapi/manager/': {
target: baseData.schemes + '://' + baseData.host,
changeOrigin: false,
......
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