Commit 8679b60a by wangweidong

infftd

parent c47e213b
......@@ -33,7 +33,7 @@ if (process.env.NODE_ENV === 'production') {//生产模式
}
} else {//开发模式
baseData = {
// "hostFunds":"localhost:28090",
"hostFunds":"localhost:28090",
"hostPublic": "localhost:31081",
"hostReport": "192.168.0.114:31090",
......
const BusRouter = [
{ path: 'inffxd', component: () => import("./Inffxd/views"), name: 'Inffxd', meta: { title: '资结售汇报表交易查询' }, module: 'Funds' },
{ path: 'infftd', component: () => import("./Infftd1/views"), name: 'Infftd', meta: { title: '资金拆借/头寸调拨报表交易查询' }, module: 'Funds' },
{ path: 'infftd', component: () => import("./Infftd/views"), name: 'Infftd', meta: { title: '资金拆借/头寸调拨报表交易查询' }, module: 'Funds' },
{ 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' },
......
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onInfbutSearow(){
let rtnmsg = await this.executeRule("infbut.searow")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutDsp(){
let rtnmsg = await this.executeRule("infbut.dsp")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutUserow(){
let rtnmsg = await this.executeRule("infbut.userow")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutClr(){
let rtnmsg = await this.executeRule("infbut.clr")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutButprt(){
let rtnmsg = await this.executeRule("infbut.butprt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutExi(){
let rtnmsg = await this.executeRule("infbut.exi")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRecpanButgetref(){
let rtnmsg = await this.executeRule("recpan.butgetref")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTropDet(){
let rtnmsg = await this.executeRule("trop.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTripDet(){
let rtnmsg = await this.executeRule("trip.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onBenpDet(){
let rtnmsg = await this.executeRule("benp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onActpDet(){
let rtnmsg = await this.executeRule("actp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
import Utils from "~/utils"
/**
* Infftd Check规则
*/
let checkObj = {
"ftdgrp.act.pts.extkey" :null,
"ftdgrp.cbs.max.amt" :null,
"infcon.seaamtto" :null,
"ftdgrp.tri.pts.extkey" :null,
"ftdgrp.tri.pts.adrblk" :null,
"ftdgrp.rec.fttyp" :null,
"ftdgrp.rec.opndat" :null,
"ftdgrp.cbs.max.cur" :null,
"ftdgrp.rec.valdat" :null,
"recpan.usr.extkey" :null,
"ftdgrp.tro.pts.adrblk" :null,
"ftdgrp.ben.pts.extkey" :null,
"ftdgrp.tro.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
/**
* Infftd Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"infcon.usr.extkey" :Utils.defaultFunction,
"infcon.seapty" :Utils.defaultFunction,
"infcon.pty.extkey" :Utils.defaultFunction,
"ftdgrp.tri.dbfadrblkcn" :Utils.defaultFunction,
"ftdgrp.tri.pts.adrblk" :Utils.defaultFunction,
"ftdgrp.rec.ownref" :Utils.defaultFunction,
"ftdgrp.rec.nam" :Utils.defaultFunction,
"ftdgrp.tro.pts.adrblk" :Utils.defaultFunction,
"ftdgrp.tro.pts.extkey" :Utils.defaultFunction,
"ftdgrp.rec.fttyp" :Utils.defaultFunction,
"ftdgrp.tri.pts.extkey" :Utils.defaultFunction,
"infbut.dspstm" :Utils.defaultFunction,
"ftdgrp.tro.dbfadrblkcn" :Utils.defaultFunction,
"ftdgrp.act.pts.extkey" :Utils.defaultFunction,
"recpan.usr.extkey" :Utils.defaultFunction,
"ftdgrp.cbs.max.cur" :Utils.defaultFunction,
"ftdgrp.rec.usr" :Utils.defaultFunction,
"ftdgrp.rec.ownusr" :Utils.defaultFunction,
"ftdgrp.ben.pts.extkey" :Utils.defaultFunction,
"ftdgrp.cbs.max.amt" :Utils.defaultFunction,
}
//你可以添加自动default处理
export default {
"infcon.seaownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"infcon.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"infcon.searef":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"infcon.accmng":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"infcon.pty.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"infcon.pty.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"infcon.seapty":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"infcon.opndatfrom":[
{type: "date", required: false, message: "输入正确的日期"}
],
"infcon.opndatto":[
{type: "date", required: false, message: "输入正确的日期"}
],
"infcon.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"infcon.seaamtfr":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"infcon.seaamtto":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"infbut.dspstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"ftdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ftdgrp.tro.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"ftdgrp.rec.ownusr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"recpan.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"recpan.usrget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recpan.trop.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.tro.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recpan.trop.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.rec.usr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"ftdgrp.tro.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.tro.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.rec.opndat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ftdgrp.rec.valdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ftdgrp.blk.remark":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.tri.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"recpan.trip.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.rec.matdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ftdgrp.tri.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recpan.trip.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recpan.benp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.rec.rat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"ftdgrp.tri.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.tri.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.ben.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recpan.benp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.ben.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ftdgrp.cbs.ins.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.cbs.ins.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"recpan.benact":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"recpan.actp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.act.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recpan.actp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.act.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"prtpanblk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
export default class Infftd{
constructor () {
this.data = {
infcon:{
seaownref:"", // 业务编号 .infcon.seaownref
nam:"", // Name .infcon.nam
searef:"", // 参与方参考号 .infcon.searef
pty:{
extkey:"", // 选择一个参与方 .infcon.pty.extkey ETYEXTKEY
nam:"", // External Visible Name .infcon.pty.nam
},
seapty:"", // 参与方名称/BIC .infcon.seapty
searol:"", // Role .infcon.searol
opndatfrom:"", // 有效日期自 .infcon.opndatfrom
opndatto:"", // Open Date to .infcon.opndatto
usr:{
extkey:"", // User ID .infcon.usr.extkey
},
seasta:"", // Status .infcon.seasta
seacur:"", // 币种 .infcon.seacur
seaamtfr:"", // 金额自 .infcon.seaamtfr
seaamtto:"", // Amount to .infcon.seaamtto
accmng:"", // Account manager .infcon.accmng
},
infbut:{
dspstm:"", // display stream .infbut.dspstm
},
fttyp:"", // Funds Trans. Type .fttyp
ftdgrp:{
rec:{
ownref:"", // 资金调拨业务参考号 .ftdgrp.rec.ownref
nam:"", // 名称 .ftdgrp.rec.nam
opndat:"", // 开立日期 .ftdgrp.rec.opndat
valdat:"", // 起息日 .ftdgrp.rec.valdat
ownusr:"", // 资金部负责人 .ftdgrp.rec.ownusr
usr:"", // 清算中心负责人 .ftdgrp.rec.usr
fttyp:"", // 定存拆借类型 .ftdgrp.rec.fttyp
matdat:"", // 到期日 .ftdgrp.rec.matdat
rat:"", // 年利率 .ftdgrp.rec.rat
cntfra:"", // 计息方式 .ftdgrp.rec.cntfra
bnktyp:"", // Bank Type .ftdgrp.rec.bnktyp
},
tro:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tro.dbfadrblkcn
},
tri:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tri.dbfadrblkcn
},
cbs:{
max:{
cur:"", // 定存拆借金额 .ftdgrp.cbs.max.cur
amt:"", // 定存拆借金额 .ftdgrp.cbs.max.amt
},
ins:{
cur:"", // 利息金额 .ftdgrp.cbs.ins.cur
amt:"", // Balance .ftdgrp.cbs.ins.amt
},
},
blk:{
remark:"", // 备注 .ftdgrp.blk.remark
},
ben:{
pts:new Pts().data,
},
act:{
pts:new Pts().data,
},
},
recpan:{
trop:{
ptsget:{
sdamod:{
seainf:"", // .recpan.trop.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .recpan.trop.ptsget.sdamod.dadsnd
},
},
},
trip:{
ptsget:{
sdamod:{
seainf:"", // .recpan.trip.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .recpan.trip.ptsget.sdamod.dadsnd
},
},
},
troact:"", // Trade-out Account .recpan.troact
triact:"", // 备注 .recpan.triact
usr:{
extkey:"", // User ID .recpan.usr.extkey
},
usrget:{
sdamod:{
seainf:"", // .recpan.usrget.sdamod.seainf
},
},
benp:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .recpan.benp.ptsget.sdamod.dadsnd
seainf:"", // .recpan.benp.ptsget.sdamod.seainf
},
},
},
msgtyp:"", // 报文类型 .recpan.msgtyp
benact:"", // Ben Trade-in Account .recpan.benact
actp:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .recpan.actp.ptsget.sdamod.dadsnd
seainf:"", // .recpan.actp.ptsget.sdamod.seainf
},
},
},
},
prtpanblk:"", // XMLPanel prtpan的内置block .prtpanblk
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- SF000063 : 业务编号 -->
<c-col :span="12">
<c-form-item :label="$t('infcon.SF000063')" prop="infcon.seaownref">
<c-input v-model="model.infcon.seaownref" maxlength="16" :placeholder="$t('other.please_enter')+$t('infcon.SF000063')"></c-input>
</c-form-item>
</c-col>
<!-- SF000062 : 名称 -->
<c-col :span="12">
<c-form-item label="Name" prop="infcon.nam">
<c-input v-model="model.infcon.nam" maxlength="40" :placeholder="$t('other.please_enter')+'Name'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onInfbutSearow">
{{$t('infbut.CF000010')}}
</c-button>
</c-col>
<!-- SF000190 : 参与方参考号 -->
<c-col :span="12">
<c-form-item :label="$t('infcon.SF000190')" prop="infcon.searef">
<c-input v-model="model.infcon.searef" maxlength="16" :placeholder="$t('other.please_enter')+$t('infcon.SF000190')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onInfbutDsp">
{{$t('infbut.CF000011')}}
</c-button>
</c-col>
<c-col :span="12">
<c-form-item label="Account manager" prop="infcon.accmng">
<c-input v-model="model.infcon.accmng" maxlength="6" :placeholder="$t('other.please_enter')+'Account manager'"></c-input>
</c-form-item>
</c-col>
<!-- SG001137 : Acc manager -->
<!-- SF000106 : 选择一个参与方 -->
<c-col :span="12">
<c-form-item :label="$t('infcon.SF000106')" prop="infcon.pty.extkey">
<c-input v-model="model.infcon.pty.extkey" maxlength="24" :placeholder="$t('other.please_enter')+$t('infcon.SF000106')"></c-input>
</c-form-item>
</c-col>
<!-- SF000108 : 参与方名称 -->
<c-col :span="12">
<c-form-item label="External Visible Name" prop="infcon.pty.nam">
<c-input v-model="model.infcon.pty.nam" maxlength="40" :placeholder="$t('other.please_enter')+'External Visible Name'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onInfbutUserow">
{{$t('infbut.CF000012')}}
</c-button>
</c-col>
<!-- SF000109 : 参与方名称/BIC -->
<c-col :span="12">
<c-form-item :label="$t('infcon.SF000109')" prop="infcon.seapty">
<c-input v-model="model.infcon.seapty" maxlength="24" :placeholder="$t('other.please_enter')+$t('infcon.SF000109')"></c-input>
</c-form-item>
</c-col>
<!-- SF000105 : 角色 -->
<c-col :span="12">
<el-form-item label="Role" prop="infcon.searol">
<c-select v-model="model.infcon.searol" style="width:100%" :placeholder="$t('other.please_enter')+'Role'">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onInfbutClr">
{{$t('infbut.CF000023')}}
</c-button>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('infcon.SF000064')" prop="infcon.opndatfrom">
<c-date-picker type="date" v-model="model.infcon.opndatfrom" style="width:100%" :placeholder="$t('other.please_enter')+$t('infcon.SF000064')"></c-date-picker>
</el-form-item>
</c-col>
<!-- SF000065 : 到 -->
<c-col :span="12">
<el-form-item label="Open Date to" prop="infcon.opndatto">
<c-date-picker type="date" v-model="model.infcon.opndatto" style="width:100%" :placeholder="$t('other.please_enter')+'Open Date to'"></c-date-picker>
</el-form-item>
</c-col>
<!-- SF000100 : Resp. User -->
<c-col :span="12">
<c-form-item label="User ID" prop="infcon.usr.extkey">
<c-input v-model="model.infcon.usr.extkey" maxlength="8" :placeholder="$t('other.please_enter')+'User ID'"></c-input>
</c-form-item>
</c-col>
<!-- SF000104 : 状态 -->
<c-col :span="12">
<el-form-item label="Status" prop="infcon.seasta">
<c-select v-model="model.infcon.seasta" style="width:100%" :placeholder="$t('other.please_enter')+'Status'">
</c-select>
</el-form-item>
</c-col>
<!-- SF000064 : 有效日期自 -->
<c-col :span="12">
<c-button size="small" type="primary" @click="onInfbutButprt">
{{$t('infbut.CG000026')}}
</c-button>
</c-col>
<!-- SF000101 : 币种 -->
<c-col :span="12">
<el-form-item :label="$t('infcon.SF000101')" prop="infcon.seacur">
<c-select v-model="model.infcon.seacur" style="width:100%" :placeholder="$t('other.please_enter')+$t('infcon.SF000101')">
</c-select>
</el-form-item>
</c-col>
<!-- SF000102 : 金额自 -->
<c-col :span="12">
<c-form-item :label="$t('infcon.SF000102')" prop="infcon.seaamtfr">
<c-input v-model="model.infcon.seaamtfr" :placeholder="$t('other.please_enter')+$t('infcon.SF000102')"></c-input>
</c-form-item>
</c-col>
<!-- SF000103 : 到 -->
<c-col :span="12">
<c-form-item label="Amount to" prop="infcon.seaamtto">
<c-input v-model="model.infcon.seaamtto" :placeholder="$t('other.please_enter')+'Amount to'"></c-input>
</c-form-item>
</c-col>
<!-- SF000191 : Funds Trans. Type -->
<c-col :span="12">
<el-form-item :label="$t('infftd.SF000191')" prop="fttyp">
<c-select v-model="model.fttyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('infftd.SF000191')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="display stream" prop="infbut.dspstm">
<c-input v-model="model.infbut.dspstm" :placeholder="$t('other.please_enter')+'display stream'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onInfbutExi">
{{$t('infbut.CF000013')}}
</c-button>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "../event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-form-item label="XMLPanel prtpan的内置block" prop="prtpanblk">
<c-input type="textarea" v-model="model.prtpanblk" maxlength="200" show-word-limit :placeholder="$t('other.please_enter')+'XMLPanel prtpan的内置block'" ></c-input>
</c-form-item>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "../event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<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">
<!--infftd PD000006 Selection -->
<el-tab-pane :label="$t('infftd.PD000006')" name="infsea">
<m-infsea :model="model" :codes="codes"/>
</el-tab-pane>
<!--infftd PD000208 Funds Transfer -->
<el-tab-pane :label="$t('infftd.PD000208')" name="fttp">
<m-fttp :model="model" :codes="codes"/>
</el-tab-pane>
<!--infftd PD000005 Print -->
<el-tab-pane :label="$t('infftd.PD000005')" name="prtpan">
<m-prtpan :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Infftd from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Infsea from "./Infsea"
import Fttp from "./Fttp"
import Prtpan from "./Prtpan"
export default {
name: "Infftd",
components:{
"m-infsea" : Infsea,
"m-fttp" : Fttp,
"m-prtpan" : Prtpan,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
trnName: "infftd",
trnType: "",
model: new Infftd().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入infftd交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
......@@ -46,11 +46,11 @@
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="客户名称" prop="nam" style="width: 100%">
<el-form-item label="业务名称" prop="nam" style="width: 100%">
<c-input
v-model="model.infcon.nam"
maxlength="40"
placeholder="请填写名称"
placeholder="请填写业务名称"
>
</c-input>
</el-form-item>
......@@ -161,7 +161,7 @@ export default {
width: "180px",
},
{
label: "客户名称",
label: "业务名称",
prop: "nam",
width: "180px",
},
......
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
import Api from "~/service/Api"
export default class inffxd{
export default class infftd{
constructor () {
this.data = {
infcon:{
......
......@@ -6,24 +6,31 @@
<el-row>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="业务编号" prop="ownref" style="width: 100%">
<el-form-item
label="资金调拨编号"
prop="seaownref"
style="width: 100%"
>
<c-input
v-model="model.infcon.ownref"
v-model="model.infcon.seaownref"
maxlength="40"
placeholder="请输入业务编号">
placeholder="请输入资金调拨编号"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="成交有效日期"
label="交易有效日期"
prop="opndatfrom"
style="width: 100%">
style="width: 100%"
>
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.infcon.opndatfrom"
style="width: 100%"></c-date-picker>
style="width: 100%"
></c-date-picker>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
......@@ -32,16 +39,18 @@
<c-date-picker
type="date"
v-model="model.infcon.opndatto"
style="width: 100%"></c-date-picker>
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%">
<el-form-item label="业务名称" prop="nam" style="width: 100%">
<c-input
v-model="model.infcon.nam"
maxlength="40"
placeholder="请填写名称">
placeholder="请填写业务名称"
>
</c-input>
</el-form-item>
</c-col>
......@@ -51,31 +60,6 @@
<el-row v-show="searchSlot.searchToggle">
<c-col :span="24">
<c-col :span="8">
<el-form-item label="平盘类型" prop="fxtyp" style="width: 100%">
<c-input
v-model="model.infcon.fxtyp"
maxlength="40"
placeholder="请输入平盘类型"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="结售汇类型"
prop="trdint"
style="width: 100%"
>
<c-input
v-model="model.infcon.trdint"
maxlength="40"
placeholder="请输入结售汇类型"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="币种" prop="seacur" style="width: 100%">
<c-select
v-model="model.infcon.cur"
......@@ -86,13 +70,12 @@
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item :label="$t('lc.金额区间')" style="width: 100%">
<c-col :span="11">
<c-input
v-model="model.infcon.seaamtfr"
v-model="model.infcon.amtmin"
:placeholder="$t('lc.请输入金额下限')"
style="width: 100%"
></c-input>
......@@ -102,77 +85,13 @@
</c-col>
<c-col :span="11">
<c-input
v-model="model.infcon.seaamtto"
v-model="model.infcon.amtmax"
:placeholder="$t('lc.请输入金额上限')"
style="width: 100%"
></c-input>
</c-col>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="资金部编号"
prop="fudref"
style="width: 100%"
>
<c-input
v-model="model.infcon.fudref"
maxlength="40"
placeholder="请输入资金部编号"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="资金部经办人"
prop="ownusr"
style="width: 100%"
>
<c-input
v-model="model.infcon.ownusr"
maxlength="40"
placeholder="请输入资金部经办人"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="外币结算账号" prop="acc" style="width: 100%">
<c-input
v-model="model.infcon.acc"
maxlength="40"
placeholder="请输入外币结算账号"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item
label="本币结算账号"
prop="acc2"
style="width: 100%"
>
<c-input
v-model="model.infcon.acc2"
maxlength="40"
placeholder="请输入本币结算账号"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="营运部经办人" prop="usr" style="width: 100%">
<c-input
v-model="model.infcon.usr"
maxlength="40"
placeholder="请输入营运部经办人"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
</el-row>
</template>
......@@ -182,7 +101,7 @@
<div style="height: 90%">
<c-col :span="24">
<el-tabs v-model="activeTab" class="y-tabs">
<el-tab-pane label="结售汇查询" name="jsh">
<el-tab-pane label="资金调拨查询" name="zjdb">
<el-table
:data="stmData.data"
:columns="stmData.columns"
......@@ -228,81 +147,66 @@ export default {
mixins: [event],
data() {
return {
activeTab: "jsh",
activeTab: "zjdb",
load: false,
stmData: {
columns: [
{
label: "业务编号",
label: "资金调拨编号",
prop: "ownref",
width: "180px",
},
{
label: "参与方名称",
label: "业务名称",
prop: "nam",
width: "180px",
},
{
label: "平盘类型",
prop: "fxtyp",
width: "120px",
},
{
label: "结售汇类型",
prop: "trdint",
width: "120px",
},
{
label: "开始日期",
prop: "opndatfrom",
width: "120px",
},
{
label: "结束日期",
prop: "opndatto",
label: "开立日期",
prop: "opndat",
width: "120px",
},
{
label: "资金部编号",
prop: "fudref",
label: "起息日",
prop: "valdat",
width: "120px",
},
{
label: "资金部经办人",
prop: "ownusr",
label: "资金部负责人",
prop: "ownsur",
width: "120px",
},
{
label: "营运部经办人",
label: "清算中心负责人",
prop: "usr",
width: "120px",
width: "140px",
},
{
label: "金额下限",
prop: "seaamtfr",
label: "定存拆借类型",
prop: "fttyp",
width: "120px",
},
{
label: "金额上限",
prop: "seaamtto",
label: "到期日",
prop: "matdat",
width: "120px",
},
{
label: "币种",
prop: "seacur",
label: "年利率",
prop: "rat",
width: "120px",
},
{
label: "外币结算账号",
prop: "acc",
{
label: "计息方式",
prop: "cntfra",
width: "120px",
},
{
label: "本币结算账号",
prop: "acc2",
{
label: "银行类型",
prop: "bnktyp",
width: "120px",
},
],
data: [],
},
......@@ -316,9 +220,7 @@ export default {
},
methods: {},
mounted: function () {
console.log('model=====================',this.codes);
},
mounted: function () {},
};
</script>
<style lang="less" scoped>
......
......@@ -18,13 +18,13 @@
<script>
import CodeTable from "~/config/CodeTable";
import Inffxd from "../model";
import infftd from "../model";
import event from "../event"
import Infsea from "./Infsea.vue"
export default {
name: "Inffxd",
name: "infftd",
components:{
"m-infsea" : Infsea,
......@@ -38,8 +38,8 @@ export default {
data(){
return {
tabVal: "infsea",
trnName: "inffxd",
model: new Inffxd().data,
trnName: "infftd",
model: new infftd().data,
rules: null,
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