Commit d8caef82 by 李少勇

Merge branch 'develop' of http://114.115.138.98:8900/isc-v3.1/isc-web-vue into develop

parents 58429c73 ebb7431f
......@@ -35,7 +35,7 @@ if (process.env.NODE_ENV === 'production') {//生产模式
baseData = {
"hostPublic": "localhost:31081",
"host": "localhost:31091",
"hostAdmin": "localhost:31092",
"hostAdmin": "192.168.0.114:31092",
"hostBusiness": "localhost:31093",
"hostRemittance": "localhost:31094",
"hostFinance": "15.52.176.251:22002",
......
import Api from "~/service/Api"
// 结算文件手工录入查询
export function queryByPage(data) {
return Api.post("/business/dblkpm/listPagingInfo", data);
}
\ No newline at end of file
import Utils from "~/utils"
/**
* Dblkpm Check规则
*/
let checkObj = {
"kpmp.actbic" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
// import Utils from "~/utils"
//
// /**
// * Dblkpm Check规则
// */
// let checkObj = {
// "kpmp.actbic" :null,
// }
//
// for (const key in checkObj) {
// if (Object.hasOwnProperty.call(checkObj, key)) {
// checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
// }
// }
// export default checkObj
//
/**
* Dblkpm Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
}
//你可以添加自动default处理
//
// /**
// * Dblkpm Default规则
// */
// import Api from "~/service/Api";
// import Utils from "~/utils/index"
//
// export default {
// }
// //你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onSel(){
let rtnmsg = await this.executeRule("sel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onReset(){
let rtnmsg = await this.executeRule("reset")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onHtymodHty(){
let rtnmsg = await this.executeRule("htymod.hty")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onKpmpLink(){
let rtnmsg = await this.executeRule("kpmp.link")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onKpmpRtn(){
let rtnmsg = await this.executeRule("kpmp.rtn")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
// import Api from "~/service/Api"
// import Utils from "~/utils"
//
// export default {
// async onSel(){
// let rtnmsg = await this.executeRule("sel")
// if(rtnmsg.respCode == SUCCESS)
// {
// //TODO 处理数据逻辑
//
// }
// else
// {
// this.$notify.error({title: '错误',message: '服务请求失败!'});
// }
// },
// async onReset(){
// let rtnmsg = await this.executeRule("reset")
// if(rtnmsg.respCode == SUCCESS)
// {
// //TODO 处理数据逻辑
//
// }
// else
// {
// this.$notify.error({title: '错误',message: '服务请求失败!'});
// }
// },
// async onHtymodHty(){
// let rtnmsg = await this.executeRule("htymod.hty")
// if(rtnmsg.respCode == SUCCESS)
// {
// //TODO 处理数据逻辑
//
// }
// else
// {
// this.$notify.error({title: '错误',message: '服务请求失败!'});
// }
// },
// async onKpmpLink(){
// let rtnmsg = await this.executeRule("kpmp.link")
// if(rtnmsg.respCode == SUCCESS)
// {
// //TODO 处理数据逻辑
//
// }
// else
// {
// this.$notify.error({title: '错误',message: '服务请求失败!'});
// }
// },
// async onKpmpRtn(){
// let rtnmsg = await this.executeRule("kpmp.rtn")
// if(rtnmsg.respCode == SUCCESS)
// {
// //TODO 处理数据逻辑
//
// }
// else
// {
// this.$notify.error({title: '错误',message: '服务请求失败!'});
// }
// },
//
// }
\ No newline at end of file
export default {
"kpmp.frmdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"kpmp.todat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"kpmp.actbic":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"kpmp.frmamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过15位"},
{pattern: /(^\d+$)|(^\.\d{1,2}$)|(^\d+\.\d{1,2}$)/, message: "小数位不能超过2位" }
],
"kpmp.toamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过15位"},
{pattern: /(^\d+$)|(^\.\d{1,2}$)|(^\d+\.\d{1,2}$)/, message: "小数位不能超过2位" }
],
"kpmp.accdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"kpmp.accdatto":[
{type: "date", required: false, message: "输入正确的日期"}
],
"kpmp.frmvludat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"kpmp.tovludat":[
{type: "date", required: false, message: "输入正确的日期"}
],
}
\ No newline at end of file
// export default {
//
// "kpmp.frmdat":[
// {type: "date", required: false, message: "输入正确的日期"}
// ],
// "kpmp.todat":[
// {type: "date", required: false, message: "输入正确的日期"}
// ],
// "kpmp.actbic":[
// {type: "string", required: false, message: "必输项"},
// {max: 0,message:"长度不能超过0"}
// ],
//
// "kpmp.frmamt":[
// {type: "number", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过15位"},
// {pattern: /(^\d+$)|(^\.\d{1,2}$)|(^\d+\.\d{1,2}$)/, message: "小数位不能超过2位" }
// ],
// "kpmp.toamt":[
// {type: "number", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过15位"},
// {pattern: /(^\d+$)|(^\.\d{1,2}$)|(^\d+\.\d{1,2}$)/, message: "小数位不能超过2位" }
// ],
//
// "kpmp.accdat":[
// {type: "date", required: false, message: "输入正确的日期"}
// ],
// "kpmp.accdatto":[
// {type: "date", required: false, message: "输入正确的日期"}
// ],
// "kpmp.frmvludat":[
// {type: "date", required: false, message: "输入正确的日期"}
// ],
// "kpmp.tovludat":[
// {type: "date", required: false, message: "输入正确的日期"}
// ],
//
//
//
//
//
// }
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
import Pts from "../Common/Pts"
export default class Dblkpm{
constructor () {
......
export const Pattern = {
"frmdat": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "change" }
],
"todat": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "change" }
],
"sta": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "change" }
],
"accdat": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "blur" },
],
"relcur": [
{ "required": true, "message": "必输项", "type": "string", "trigger": "change" }
],
"frmamt": [
{ required: true, message: "必输项" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"toamt": [
{ required: true, message: "必输项" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
]
}
export default class DblkpmModel {
constructor() {
this.data = {
dblkpmVo:{
frmdat:"", // : .kpmp.frmdat
todat:"", // : .kpmp.todat
actbic:"", // : .kpmp.actbic
cur:"", // : .kpmp.cur
frmamt:"", // : .kpmp.frmamt
toamt:"", // : .kpmp.toamt
sta:"", // : .kpmp.sta
accdat:"", // : .kpmp.accdat
accdatto:"", // : .kpmp.accdatto
frmvludat:"", // : .kpmp.frmvludat
tovludat:"", // : .kpmp.tovludat
pageSize:PageSize,
pageNumber:1,
total:0
},
}
}
}
\ No newline at end of file
......@@ -94,7 +94,7 @@
</el-table>
<el-pagination
layout="prev, pager, next"
:total="1">
:total="pager.kpmgrp_kpmlst.total">
</el-pagination>
</div>
</c-col>
......@@ -236,7 +236,7 @@
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "../model/Event"
import Event from "../model/Dblkpm/Event"
export default {
inject: ['root'],
......
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--kpmp PD000019 查询主界面 -->
<el-tab-pane :label="$t('kpmp.PD000019')" name="mainp">
<m-mainp :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
<c-page>
<c-tabs type="card">
<el-tab-pane label="结算文件手工录入查询">
<c-content>
<m-infsea/>
</c-content>
</el-tab-pane>
</c-tabs>
</c-page>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Dblkpm from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Mainp from "./Mainp"
<script>
import Infsea from "./infsea.vue";
export default {
name: "Dblkpm",
components:{
"m-mainp" : Mainp,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "mainp",
trnName: "dblkpm",
trnType: "",
model: new Dblkpm().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
sta:CodeTable.sta,
kpatyp:CodeTable.kpatyp,
actsta:CodeTable.actsta,
cur:CodeTable.cur,
sdcflg:CodeTable.sdcflg,
offsta:CodeTable.offsta,
batcharge:CodeTable.batcharge,
msgmst:CodeTable.msgmst,
yosflg:CodeTable.yosflg,
filtyp:CodeTable.filtyp,
kpstyp:CodeTable.kpstyp,
fmssta:CodeTable.fmssta,
bnksta:CodeTable.bnksta,
usratr:CodeTable.usratr,
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入dblkpm交易");
let rtnmsg = {}; // await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
name:"Dblkpm",
components: {
"m-infsea": Infsea,
},
data() {
return {}
}
}
</script>
<style>
</style>
</script>
\ No newline at end of file
<template>
<div class="eibs-tab currentPage">
<el-form :model="dblkpmVo" ref="dblkpmVoForm" label-width="100px" label-position="right" size="small">
<c-col :span="24">
<c-col :span="12">
<el-form-item label="生成日期" style="width: 100%">
<c-col :span="11">
<c-date-picker type="date" v-model="dblkpmVo.frmdat" style="width: 100%" placeholder="请选择生成日期开始日期"
value-format="yyyy-MM-dd"></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="dblkpmVo.todat" style="width: 100%" placeholder="请选择生成日期结束日期"
value-format="yyyy-MM-dd"></c-date-picker>
</c-col>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="账户行BIC" prop="actbic">
<c-input v-model="dblkpmVo.actbic" placeholder="请输入账户行BIC" style="width:100%" clearable />
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="币种" prop="cur">
<c-select v-model="dblkpmVo.cur" clearable placeholder="请选择" :code="cur" filterable multiple>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="金额区间" prop="frmamt" style="width: 100%">
<c-col :span="11">
<c-input v-model="dblkpmVo.frmamt" placeholder="请输入金额下限" 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="dblkpmVo.toamt" placeholder="请输入金额上限" style="width: 100%"></c-input>
</c-col>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="记账状态" prop="sta">
<c-select v-model="dblkpmVo.sta" clearable placeholder="请选择记账状态" :code="sta" filterable multiple>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="会计日期" style="width: 100%">
<c-col :span="11">
<c-date-picker type="date" v-model="dblkpmVo.accdat" style="width: 100%" placeholder="请选择会计日期开始日期"
value-format="yyyy-MM-dd"></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="dblkpmVo.accdatto" style="width: 100%" placeholder="请选择会计日期结束日期"
value-format="yyyy-MM-dd"></c-date-picker>
</c-col>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="起息日期" style="width: 100%">
<c-col :span="11">
<c-date-picker type="date" v-model="dblkpmVo.frmvludat" style="width: 100%" placeholder="请选择起息日期开始日期"
value-format="yyyy-MM-dd"></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="dblkpmVo.tovludat" style="width: 100%" placeholder="请选择起息日期结束日期"
value-format="yyyy-MM-dd"></c-date-picker>
</c-col>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<span style="float: left">
<el-button type="primary" size="small" @click="exportExcel()">导出Excel</el-button>
</span>
<span style="float: right">
<el-button size="small" @click="resetFormFields('dblkpmVoForm')">重置</el-button>
<el-button type="primary" icon="el-icon-search" size="small" :loading="searchLoading" @click="searchTable()">
查询</el-button>
</span>
</c-col>
<c-col :span="24">
<c-paging-table :data="tableData" ref="dblkpmVoTableRef" :pageSize="dblkpmVo.pageSize"
:pageNumber="dblkpmVo.pageNumber" :total="dblkpmVo.total" @queryFunc="queryFunc" :border="true">
<el-table-column label="记账状态" prop="sta" min-width="100px">
<template slot-scope="scope">{{scope.row.sta}}</template>
</el-table-column>
<el-table-column label="账户行BIC码" prop="actbic" min-width="120px">
<template slot-scope="scope">{{scope.row.actbic}}</template>
</el-table-column>
<el-table-column label="贷方账号" prop="cdtact" min-width="100px">
<template slot-scope="scope">{{scope.row.cdtact}}</template>
</el-table-column>
<el-table-column label="贷方币种" prop="cdtcur" min-width="100px">
<template slot-scope="scope">{{ scope.row.cdtcur }}</template>
</el-table-column>
<el-table-column label="贷方金额" prop="cdtamt" min-width="100px">
<template slot-scope="scope">{{ scope.row.cdtamt }}</template>
</el-table-column>
<el-table-column label="借方账号" prop="debact" min-width="100px">
<template slot-scope="scope">{{ scope.row.debact }}</template>
</el-table-column>
<el-table-column label="借方币种" prop="debcur" min-width="100px">
<template slot-scope="scope">{{ scope.row.debcur }}</template>
</el-table-column>
<el-table-column label="借方金额" prop="debamt" min-width="100px">
<template slot-scope="scope">{{ scope.row.debamt }}</template>
</el-table-column>
<el-table-column label="创建日期" prop="crpdat" min-width="100px">
<template slot-scope="scope">{{ scope.row.crpdat }}</template>
</el-table-column>
<el-table-column label="记账日期" prop="accdat" min-width="100px">
<template slot-scope="scope">{{ scope.row.accdat }}</template>
</el-table-column>
<el-table-column label="起息日" prop="vludat" min-width="100px">
<template slot-scope="scope">{{ scope.row.vludat }}</template>
</el-table-column>
<el-table-column label="附言" prop="adc" min-width="100px">
<template slot-scope="scope">{{ scope.row.adc }}</template>
</el-table-column>
<el-table-column label="记账类型" prop="typ" min-width="100px">
<template slot-scope="scope">{{ scope.row.typ }}</template>
</el-table-column>
</c-paging-table>
</c-col>
</el-form>
</div>
</template>
<script>
import DblkpmModel, {
Pattern
} from "../model/model.js";
import {
queryByPage
} from "../event/index.js";
import Utils from "~/utils";
import commonFunctions from "~/mixin/commonFunctions.js";
import Api from '~/service/Api';
export default {
mixins: [commonFunctions],
data() {
return {
dblkpmVo: new DblkpmModel().data.dblkpmVo,
rules: Pattern,
tableData: [],
searchLoading: false,
isDisabled: true,
}
},
mounted() {
this.searchTable();
},
methods: {
// 列表查询
searchTable() {
},
// 导出Excel文件
exportExcel() {
}
}
}
</script>
<style lang="less" scoped>
.currentPage {
.el-table--enable-row-hover {
.el-table__body {
tr:hover>td {
background-color: #c694dc !important;
}
}
}
::v-deep .el-checkbox {
float: none;
}
}
</style>
\ No newline at end of file
const BusRouter = [
{ path: 'inffxd', component: ()=>import("./Inffxd/views") ,name: 'Inffxd', meta: { title: '资结售汇报表交易查询' },module:'Funds'},
// { path: 'infftd', component: Infftd, name: 'Infftd', meta: { keepAlive: true, title: '资金拆借/头寸调拨报表交易查询' } },
{ path: 'fttatt', component: ()=>import("./Fttatt/views"), name: 'Fttatt', meta: { title: 'Fttatt' } ,module:'Funds'},
{ path: 'fttfcm', component: ()=>import("./Fttfcm/views"), name: 'Fttfcm', meta: { title: 'Fttfcm' } ,module:'Funds'},
{ path: 'fttfcn', component: ()=>import("./Fttfcn/views"), name: 'Fttfcn', meta: { title: 'Fttfcn' } ,module:'Funds'},
......@@ -8,8 +10,8 @@ const BusRouter = [
{ path: 'fttpcm', component: ()=>import("./Fttpcm/views"), name: 'Fttpcm', meta: { title: 'Fttpcm' } ,module:'Funds'},
{ path: 'fttpcn', component: ()=>import("./Fttpcn/views"), name: 'Fttpcn', meta: { title: 'Fttpcn' } ,module:'Funds'},
{ path: 'fxtatt', component: ()=>import("./Fxtatt/views"), name: 'Fxtatt', meta: { title: 'Fxtatt' } ,module:'Funds'},
{ path: 'fxteop', component: ()=>import("./Fxteop/views"), name: 'Fxteop', meta: { title: 'Fxteop' } ,module:'Funds'},
{ path: 'fxteqo', component: ()=>import("./Fxteqo/views"), name: 'Fxteqo', meta: { title: 'Fxteqo' } ,module:'Funds'},
{ path: 'fxteop', component: ()=>import("./Fxteop/views"), name: 'Fxteop', meta: { title: '代客外汇买卖录入' } ,module:'Funds'},
{ path: 'fxteqo', component: ()=>import("./Fxteqo/views"), name: 'Fxteqo', meta: { title: '代客外汇买卖报价' } ,module:'Funds'},
{ path: 'fxtfcm', component: ()=>import("./Fxtfcm/views"), name: 'Fxtfcm', meta: { title: 'Fxtfcm' } ,module:'Funds'},
{ path: 'fxtfcn', component: ()=>import("./Fxtfcn/views"), name: 'Fxtfcn', meta: { title: 'Fxtfcn' } ,module:'Funds'},
{
......
import Utils from "~/utils";
export default {
methods: {
buildPtspta(ptsptaObj) {
let pts = ptsptaObj.pts;
return {
rol: pts.rol,
name: pts.nam,
ptyinr: pts.ptyinr,
ptainr: pts.ptainr,
extkey: pts.extkey,
dftdsp: pts.dftdsp,
dftcur: pts.dftcur,
dftact: pts.dftact,
dftfeecur: pts.dftfeecur,
dftactptainr: pts.dftactptainr,
glggrpflg: pts.glggrpflg,
adrblk: pts.adrblk,
pts,
};
},
buildCommonData(model, trnName) {
let ptsptaList = Utils.formatPtspta(model.fxdgrp, this.buildPtspta);
return {
rec: {
objtyp: "FXD",
objinr: model.fxdgrp.rec.inr,
ownref: model.fxdgrp.rec.ownref,
},
cbsMap: {
MAX: model.fxdgrp.cbs.max,
NOM1: model.fxdgrp.cbs.nom1,
},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
};
},
},
};
import commonFunctions from '~/mixin/commonFunctions.js';
import Api from '~/service/Api';
export default {
mixins: [commonFunctions],
methods: {
async getOwnref(){
}
}
}
\ No newline at end of file
import moment from 'moment';
import Utils from "~/utils"
/**
* Fxteop Check规则
*/
let checkObj = {
"fxdgrp.apl.pts.adrblk" :null,
"fxtp.usr.extkey" :null,
"fxdgrp.rec.dsp2" :null,
"fxdgrp.cbs.max.amt" :null,
"fxdgrp.cbs.max.cur" :null,
"fxdgrp.rec.dsp" :null,
"fxtp.cnychk" :null,
"fxdgrp.cbs.nom1.amt" :null,
"fxdgrp.rec.acc2" :null,
"fxdgrp.rec.fxtyp" :null,
"fxdgrp.rec.acc" :null,
"fxdgrp.cbs.nom1.cur" :null,
"fxdgrp.apl.pts.extkey" :null,
}
export default {
data() {
return {
rules: {
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
}
export default checkObj
}
}
\ No newline at end of file
/**
* Fxteop Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
import commonFunctions from '~/mixin/commonFunctions.js';
import Api from '~/service/Api';
import moment from 'moment';
import commonDepend from "~/mixin/commonDepend";
export default {
"fxtp.cnychk" :Utils.defaultFunction,
"fxtp.frgchk" :Utils.defaultFunction,
"fxdgrp.apl.dbfadrblkcn" :Utils.defaultFunction,
"fxtp.usr.extkey" :Utils.defaultFunction,
"fxdgrp.cbs.nom1.cur" :Utils.defaultFunction,
"fxdgrp.cbs.max.cur" :Utils.defaultFunction,
"fxtp.calflg" :Utils.defaultFunction,
"fxdgrp.rec.rat" :Utils.defaultFunction,
"fxdgrp.cbs.nom1.amt" :Utils.defaultFunction,
"fxdgrp.cbs.max.amt" :Utils.defaultFunction,
"fxdgrp.apl.pts.adrblk" :Utils.defaultFunction,
"fxdgrp.rec.dsp2" :Utils.defaultFunction,
"fxdgrp.rec.acc2" :Utils.defaultFunction,
"fxdgrp.rec.fxtyp" :Utils.defaultFunction,
"fxdgrp.rec.dsp" :Utils.defaultFunction,
"fxdgrp.apl.pts.extkey" :Utils.defaultFunction,
"fxdgrp.rec.ownref" :Utils.defaultFunction,
"fxdgrp.rec.opndat" :Utils.defaultFunction,
"fxdgrp.rec.acc" :Utils.defaultFunction,
mixins: [commonFunctions, commonDepend],
methods: {
},
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onFxtpButgetref(){
let rtnmsg = await this.executeRule("fxtp.butgetref")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onAplpDet(){
let rtnmsg = await this.executeRule("aplp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"fxdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"fxdgrp.apl.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fxtp.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"fxtp.usrget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fxtp.aplp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxdgrp.apl.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxtp.aplp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fxdgrp.apl.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fxdgrp.apl.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fxdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"fxdgrp.cbs.nom1.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"fxdgrp.rec.rat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"fxdgrp.rec.quoref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxdgrp.rec.midrat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"fxdgrp.rec.fudref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxdgrp.rec.opndat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxdgrp.rec.valdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxdgrp.blk.remark":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
import Pub from "../../../../components/business/commonModel/index.js";
export default class Fxteop{
constructor () {
......@@ -62,7 +63,9 @@ export default class Fxteop{
cshflg:"", // 钞汇标志 .fxtp.cshflg
calflg:"", // Calculate .fxtp.calflg
},
pageId: "" // ctx的key
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia,
}
}
}
\ No newline at end of file
<template>
<div class="eContainer">
<c-page title="代客外汇买卖录入">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--fxteop PD000001 Exchange -->
<el-tab-pane :label="$t('fxteop.PD000001')" name="ovwp">
<el-tab-pane label="概览" name="ovwp">
<m-ovwp :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane label="费用/账务" name="setpan">
<c-content>
<m-setpan :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<m-docpan :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<c-function-btn
:handleCheck="handleCheck"
:handleStash="handleStash"
:handleSubmit="handleSubmit"
@handleSureWarning="handleSureWarning"
ref="commonBtn"></c-function-btn>
</c-page>
</div>
</template>
<script>
......@@ -15,23 +32,31 @@ import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Fxteop from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Ovwp from "./Ovwp"
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import event from "../event";
import buildFn from "../event/buildCommons.js";
import Check from "../model/Check";
import Default from "../model/Default";
export default {
name: "Fxteop",
components:{
"m-ovwp" : Ovwp,
"m-setpan": Setpan,
"m-docpan": Docpan,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
mixins: [commonProcess,operationFunc,commonDepend,event,buildFn], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "ovwp",
......@@ -40,34 +65,25 @@ export default {
model: new Fxteop().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
rules: {},
codes: { ...CodeTable },
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
mounted() {
console.log("进入fxteop交易");
let rtnmsg = {}; // await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
let params = {
transName: this.trnName,
fxdgrp: {
rec: {
inr: this.$route.query.inr || "",
},
},
};
this.init(params)
},
}
</script>
<style>
......
import Utils from "~/utils";
export default {
methods: {
buildPtspta(ptsptaObj) {
let pts = ptsptaObj.pts;
return {
rol: pts.rol,
name: pts.nam,
ptyinr: pts.ptyinr,
ptainr: pts.ptainr,
extkey: pts.extkey,
dftdsp: pts.dftdsp,
dftcur: pts.dftcur,
dftact: pts.dftact,
dftfeecur: pts.dftfeecur,
dftactptainr: pts.dftactptainr,
glggrpflg: pts.glggrpflg,
adrblk: pts.adrblk,
pts,
};
},
buildCommonData(model, trnName) {
let ptsptaList = Utils.formatPtspta(model.fxdgrp, this.buildPtspta);
return {
rec: {
objtyp: "FXD",
objinr: model.fxdgrp.rec.inr,
ownref: model.fxdgrp.rec.ownref,
},
cbsMap: {
MAX: model.fxdgrp.cbs.max,
NOM1: model.fxdgrp.cbs.nom1,
},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
};
},
},
};
import commonFunctions from '~/mixin/commonFunctions.js';
import Api from '~/service/Api';
export default {
mixins: [commonFunctions],
methods: {
async getOwnref(){
}
}
}
\ No newline at end of file
import Utils from "~/utils"
/**
* Fxteqo Check规则
*/
let checkObj = {
"fxdgrp.apl.pts.adrblk" :null,
"fxdgrp.rec.rat" :null,
"fxtp.usr.extkey" :null,
"fxdgrp.rec.dsp2" :null,
"fxdgrp.cbs.max.amt" :null,
"fxdgrp.cbs.max.cur" :null,
"fxdgrp.rec.dsp" :null,
"fxtp.cnychk" :null,
"fxdgrp.cbs.nom1.amt" :null,
"fxdgrp.rec.acc2" :null,
"fxdgrp.rec.fxtyp" :null,
"fxdgrp.rec.acc" :null,
"fxdgrp.cbs.nom1.cur" :null,
"fxdgrp.apl.pts.extkey" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Fxteqo Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"fxtp.cnychk" :Utils.defaultFunction,
"fxtp.frgchk" :Utils.defaultFunction,
"fxdgrp.apl.dbfadrblkcn" :Utils.defaultFunction,
"fxtp.usr.extkey" :Utils.defaultFunction,
"fxdgrp.cbs.nom1.cur" :Utils.defaultFunction,
"fxdgrp.cbs.max.cur" :Utils.defaultFunction,
"fxtp.calflg" :Utils.defaultFunction,
"fxdgrp.rec.rat" :Utils.defaultFunction,
"fxdgrp.cbs.nom1.amt" :Utils.defaultFunction,
"fxdgrp.cbs.max.amt" :Utils.defaultFunction,
"fxdgrp.apl.pts.adrblk" :Utils.defaultFunction,
"fxdgrp.rec.dsp2" :Utils.defaultFunction,
"fxdgrp.rec.acc2" :Utils.defaultFunction,
"fxdgrp.rec.fxtyp" :Utils.defaultFunction,
"fxdgrp.rec.dsp" :Utils.defaultFunction,
"fxdgrp.apl.pts.extkey" :Utils.defaultFunction,
"fxdgrp.rec.ownref" :Utils.defaultFunction,
"fxdgrp.rec.opndat" :Utils.defaultFunction,
"fxdgrp.rec.acc" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onFxtpButgetref(){
let rtnmsg = await this.executeRule("fxtp.butgetref")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onAplpDet(){
let rtnmsg = await this.executeRule("aplp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"fxdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"fxdgrp.apl.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fxtp.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"fxtp.usrget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fxtp.aplp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxdgrp.apl.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxtp.aplp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fxdgrp.apl.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fxdgrp.apl.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fxdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"fxdgrp.cbs.nom1.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"fxdgrp.rec.rat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"fxdgrp.rec.midrat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"fxdgrp.rec.opndat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxdgrp.rec.valdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxdgrp.blk.remark":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
import Pub from "../../../../components/business/commonModel/index.js";
export default class Fxteqo{
constructor () {
......@@ -60,7 +61,9 @@ export default class Fxteqo{
calflg:"", // Calculate .fxtp.calflg
cshflg:"", // 钞汇标志 .fxtp.cshflg
},
pageId: "" // ctx的key
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia,
}
}
}
\ No newline at end of file
......@@ -11,7 +11,7 @@
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "../model/Event"
import event from "../event";
export default {
inject: ['root'],
......
<template>
<div class="eContainer">
<c-page title="代客外汇买卖报价">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--fxteqo PD000001 Quote -->
<el-tab-pane :label="$t('fxteqo.PD000001')" name="quop">
<el-tab-pane label="Quote" name="quop">
<m-quop :model="model" :codes="codes"/>
</el-tab-pane>
<!--fxteqo PD000026 Down Part of Quop -->
<el-tab-pane :label="$t('fxteqo.PD000026')" name="donpart">
<!-- <el-tab-pane label="Down Part of Quop" name="donpart">
<m-donpart :model="model" :codes="codes"/>
</el-tab-pane>
</el-tab-pane> -->
<el-tab-pane label="费用/账务" name="setpan">
<c-content>
<m-setpan :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<m-docpan :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<c-function-btn
:handleCheck="handleCheck"
:handleStash="handleStash"
:handleSubmit="handleSubmit"
@handleSureWarning="handleSureWarning"
ref="commonBtn"></c-function-btn>
</c-page>
</div>
</template>
<script>
......@@ -19,11 +37,14 @@ import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Fxteqo from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Quop from "./Quop"
import Donpart from "./Donpart"
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import event from "../event";
import buildFn from "../event/buildCommons.js";
export default {
......@@ -31,48 +52,39 @@ export default {
components:{
"m-quop" : Quop,
"m-donpart" : Donpart,
"m-setpan": Setpan,
"m-docpan": Docpan,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
mixins: [commonProcess,operationFunc,commonDepend,event,buildFn], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "quop",
trnName: "fxteqo",
trnType: "",
trnName: "Quote",
model: new Fxteqo().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
codes: { ...CodeTable },
rules: {},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入fxteqo交易");
let rtnmsg = {}; // await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
mounted() {
console.log("进入fxteop交易");
let params = {
transName: this.trnName,
fxdgrp: {
rec: {
inr: this.$route.query.inr || "",
},
},
};
this.init(params)
}
}
</script>
......
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>
// import business from '@/page/poinHome/routerView.vue'
//import business from '@/page/poinHome/routerView.vue'
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";
......@@ -15,7 +18,7 @@ import RemittanceRouter from "~/page/Remittance/RemittanceRouter";
import CollectionRouter from "~/page/Collection/CollectionRouter";
import DerivativeRouter from "~/page/Derivative/DerivativeRouter";
import InfoRouter from "~/page/Info/InfoRouter";
import FundsRouter from "~/page/Funds/FundsRouter"
//import FundsRouter from "~/page/Funds/FundsRouter"
import FTRouter from "~/page/Frontend/FTRouter";
import iscOrganization from "@/router/iscOrganization";
......@@ -45,6 +48,7 @@ export default [
name: 'business',
children: [
...BusRouter,
...FundsRouter,
...StaticsRouter,
...LcRouter,
...FinRouter,
......
const path = require('path')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const publicPath = require('./src/config/isc-publicPath.js')
const baseData = require('./src/config/isc-baseData.js')
const baseData = require('./src/config/isc-baseData-local.js')
let moment = require("moment")
process.env.VUE_APP_BASETHEME = 'purple';
......@@ -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/gjzf/': {
target: baseData.schemes + '://' + baseData.hostGjzf,
changeOrigin: false,
......@@ -53,7 +60,7 @@ module.exports = {
target: baseData.schemes + '://' + baseData.hostPublic,
changeOrigin: true,
pathRewrite: {
'^/webapi/public': '/webapi'
'^/webapi/public': '/public'
}
},
'/webapi/business/': {
......@@ -74,7 +81,7 @@ module.exports = {
target: baseData.schemes + '://' + baseData.hostRemittance,
changeOrigin: true,
pathRewrite: {
'^/webapi/Remittance': '/webapi/Remittance'
'^/webapi/Remittance': '/remit'
}
},
'/webapi/Lc/': {
......
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