Commit 05169beb by jianglong

修改码表,fttfcm交易

parent 3d611394
import Pts from '../Pts.js'
export default class Ftdgrp {
constructor() {
this.data = {
rec: {
inr:"",
ownref: "", // 结售汇业务参考号 ftdgrp.rec.ownref
nam: "",
opndat: "", // 登记日期 ftdgrp.rec.opndat
valdat: "",
cnfdat: "", // 登记日期 ftdgrp.rec.opndat
matdat: "",
clsdat: "",
ownusr: "",
ver:"",
branchinr:"",
bchkeyinr:"",
fttyp: "",
rat: 0.000000,
cntfra :"",
usr: "",
bnktyp: "",
etyextkey:"",
gzno:"",
},
blk: {
inr: "",
remark: "",
contag72: "",
contag79: "", // 备注 ftdgrp.blk.remark
},
cbs: {
max: {
cur: "", // Currency ftdgrp.cbs.max.cur
amt: "", // Balance ftdgrp.cbs.max.amt
},
ins: {
cur: "", // Currency ftdgrp.cbs.nom1.cur
amt: "", // Balance ftdgrp.cbs.nom1.amt
},
opn1: {
cur: "", // Currency ftdgrp.cbs.nom1.cur
amt: "", // Balance ftdgrp.cbs.nom1.amt
},
opn2: {
cur: "", // Currency ftdgrp.cbs.nom1.cur
amt: "", // Balance ftdgrp.cbs.nom1.amt
},
},
tro: {
pts: new Pts().data,
},
tri: {
pts: new Pts().data,
},
act: {
pts: new Pts().data,
},
ben: {
pts: new Pts().data,
},
apl: {
pts: new Pts().data,
},
}
}
}
\ No newline at end of file
......@@ -24,9 +24,10 @@ export default {
let ptsptaList = Utils.formatPtspta(model.ftdgrp, this.buildPtspta);
return {
rec: {
objtyp: "FXT",
objinr: model.ftdgrp.rec.inr,
objtyp: "FTD",
//objinr: model.ftdgrp.rec.inr,
ownref: model.ftdgrp.rec.ownref,
msgtyp: model.fttp.msgtyp,
},
cbsMap: {
MAX: model.ftdgrp.cbs.max,
......
import commonFunctions from "~/mixin/commonFunctions.js";
import Api from "~/service/Api";
export default {
mixins: [commonFunctions],
methods: {
async getOwnref() {
if (this.model.ftdgrp.rec.fttyp == "") {
this.$notify.warning({
title: '提示',
message: '请先选择平盘类型!'
});
return;
}
const loading = this.loading();
let res = await Api.post(`/${this.moduleRouter()}/fttfcm/getRef`, this.model);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
this.model.ftdgrp.rec.ownref = res.data;
},
async onMaxcurChange() {
this.model.ftdgrp.cbs.ins.cur =this.model.ftdgrp.cbs.max.cur
},
async onMaxamtChange() {
if (this.model.ftdgrp.cbs.max.amt !== "" && this.model.ftdgrp.cbs.max.amt !== null &&this.model.ftdgrp.cbs.max.amt !=0) {
this.model.ftdgrp.cbs.ins.amt =this.model.ftdgrp.cbs.max.amt
}
},
async onOpndatChange() {
if (this.model.ftdgrp.rec.opndat !== "" && this.model.ftdgrp.rec.opndat !== null) {
if (this.model.ftdgrp.rec.valdat == "" || this.model.ftdgrp.rec.valdat == null){
this.model.ftdgrp.rec.valdat=this.model.ftdgrp.rec.opndat ;
}
}
},
async onTriChange() {
},
async onTroChange() {
},
async onActChange() {
},
},
};
};
\ 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";
import Ftdgrp from '~/components/business/commonModel/ftdgrp';
export default class Fttfcm{
constructor () {
this.data = {
ftdgrp:{
rec:{
ownref:"", // 资金调拨业务参考号 .ftdgrp.rec.ownref
nam:"", // 名称 .ftdgrp.rec.nam
fttyp:"", // 定存拆借类型 .ftdgrp.rec.fttyp
opndat:"", // 开立日期 .ftdgrp.rec.opndat
valdat:"", // 起息日 .ftdgrp.rec.valdat
matdat:"", // 到期日 .ftdgrp.rec.matdat
rat:"", // 年利率 .ftdgrp.rec.rat
cntfra:"", // 计息方式 .ftdgrp.rec.cntfra
ownusr:"", // 资金部负责人 .ftdgrp.rec.ownusr
usr:"", // 清算中心负责人 .ftdgrp.rec.usr
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
},
act:{
pts:new Pts().data,
},
},
fttp:{
trop:{
ptsget:{
sdamod:{
seainf:"", // .fttp.trop.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fttp.trop.ptsget.sdamod.dadsnd
},
},
},
trip:{
ptsget:{
sdamod:{
seainf:"", // .fttp.trip.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fttp.trip.ptsget.sdamod.dadsnd
},
},
},
troact:"", // Trade-out Account .fttp.troact
triact:"", // 备注 .fttp.triact
usr:{
extkey:"", // User ID .fttp.usr.extkey
},
usrget:{
sdamod:{
seainf:"", // .fttp.usrget.sdamod.seainf
},
},
msgtyp:"", // 报文类型 .fttp.msgtyp
actp:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .fttp.actp.ptsget.sdamod.dadsnd
seainf:"", // .fttp.actp.ptsget.sdamod.seainf
},
},
},
},
pageId: "", // ctx的key
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia
}
export default class Fttfcm {
constructor() {
this.data = {
ftdgrp: new Ftdgrp().data,
fttp: {
troact: "", // Trade-out Account .fttp.troact
triact: "", // 备注 .fttp.triact
msgtyp: "", // 报文类型 .fttp.msgtyp
benact: "",
bnaktypflg: "",
mt32m: {
amecur: "", // Broker's Commission Cur. .mt30m.comcur
ameamt: 0,
newcur: "", // Broker's Commission Cur. .mt30m.comcur
newamt: 0,
s22a: "", // Typeof Operation(:22A) .mt30m.s22a
s94a: "",
s17r: "",
s22b: "",
s30x: "",
oldref: "",
conref: "",
conno: "", // MT300 22C - 共同参号 .mt30m.conref
a53act: "", // Delivery Agent Account .mt30m.a53act
iniact: "", // Intermediary Account .mt30m.iniact
rbcact: "", // Receiving Agent Account .mt30m.rbcact
a58act: "",
b53act: "", // Delivery Agent Account .mt30m.b53act
b56act: "", // Intermediary Account .mt30m.b56act
owcact: "", // Receiving Agent Account .mt30m.owcact
b58act: "", // Beneficiary Institution Account .mt30m.b58act
str300: "",
b58: {
pts: new Pts().data,
},
b53: {
pts: new Pts().data,
},
owc: {
pts: new Pts().data,
},
b56: {
pts: new Pts().data,
},
a58: {
pts: new Pts().data,
},
rbc: {
pts: new Pts().data,
},
ini: {
pts: new Pts().data,
},
a53: {
pts: new Pts().data,
},
},
},
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="24">
<c-col :span="24">
<c-form-item label="Reference" prop="ftdgrp.rec.ownref">
<c-input disabled v-model="model.ftdgrp.rec.ownref" maxlength="16" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="Related Reference" prop="relref">
<c-input disabled v-model="model.relref" maxlength="16" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="Narrative" prop="narblk">
<c-mul-row-input maxlength="35*50" :autosize="{ minRows: 10, maxRows: 50}" :charmod="2" :cols="35" :rows="50" placeholder="请输入描述内容" v-model="model.narblk">
</c-mul-row-input>
</c-form-item>
</c-col>
</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: [Event,commonProcess],
data() {
return {};
},
methods: {
},
created: function () {},
};
</script>
<style></style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<c-col :span="24">
<c-form-item label="Reference" prop="ftdgrp.rec.ownref">
<c-input disabled v-model="model.ftdgrp.rec.ownref" maxlength="16" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="Related Reference" prop="relref">
<c-input disabled v-model="model.relref" maxlength="16" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="Narrative" prop="narblk">
<c-mul-row-input maxlength="35*50" :autosize="{ minRows: 10, maxRows: 50}" :charmod="2" :cols="35" :rows="50" placeholder="请输入描述内容" v-model="model.narblk">
</c-mul-row-input>
</c-form-item>
</c-col>
</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: [Event,commonProcess],
data() {
return {};
},
methods: {
},
created: function () {},
};
</script>
<style></style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<!-- ======================左边====================== -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<c-form-item :label="$t('fttp.资金调拨业务参考号')" prop="ftdgrp.rec.ownref">
<c-input v-model="model.ftdgrp.rec.ownref" maxlength="16"
:placeholder="$t('other.请输入') + $t('fttp.资金调拨业务参考号')"></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item :label="$t('fttp.资金部负责人')" prop="ftdgrp.rec.ownusr">
<c-input v-model="model.ftdgrp.rec.ownusr" maxlength="8"
:placeholder="$t('other.请输入') + $t('fttp.资金部负责人')"></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item :label="$t('fttp.清算中心负责人')" prop="ftdgrp.rec.usr">
<c-input v-model="model.ftdgrp.rec.usr" maxlength="8"
:placeholder="$t('other.请输入') + $t('fttp.清算中心负责人')"></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<el-form-item :label="$t('fttp.定存拆借类型')" prop="ftdgrp.rec.fttyp">
<c-select v-model="model.ftdgrp.rec.fttyp" :code="codes.ffttyp" style="width:100%"
:placeholder="$t('other.请输入') + $t('fttp.定存拆借类型')">
</c-select>
</el-form-item>
</c-col>
<!-- S0000009 : 定存拆借金额 -->
<c-col :span="24">
<c-col :span="12">
<el-form-item :label="$t('fttp.定存拆借金额')" prop="ftdgrp.cbs.max.cur">
<c-select v-model="model.ftdgrp.cbs.max.cur" :code="codes.curtxt1" style="width:100%"
:placeholder="$t('other.请输入') + $t('fttp.定存拆借金额币种')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12" class="pl8">
<c-form-item label-width="0" prop="ftdgrp.cbs.max.amt">
<c-input v-model="model.ftdgrp.cbs.max.amt" :placeholder="$t('other.请输入') + $t('fttp.定存拆借金额')"></c-input>
</c-form-item>
</c-col>
</c-col>
<!-- S0000016 : 开立日期 -->
<c-col :span="24">
<el-form-item :label="$t('fttp.开立日期')" prop="ftdgrp.rec.opndat">
<c-date-picker type="date" v-model="model.ftdgrp.rec.opndat" style="width:100%"
:placeholder="$t('other.请输入') + $t('fttp.开立日期')"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item :label="$t('fttp.起息日')" prop="ftdgrp.rec.valdat">
<c-date-picker type="date" v-model="model.ftdgrp.rec.valdat" style="width:100%"
:placeholder="$t('other.请输入') + $t('fttp.起息日')"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item :label="$t('fttp.到期日')" prop="ftdgrp.rec.matdat">
<c-date-picker type="date" v-model="model.ftdgrp.rec.matdat" style="width:100%"
:placeholder="$t('other.请输入') + $t('fttp.到期日')"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<c-form-item :label="$t('fttp.年利率')" prop="ftdgrp.rec.rat">
<c-input v-model="model.ftdgrp.rec.rat" :placeholder="$t('other.请输入') + $t('fttp.年利率')"></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<el-form-item :label="$t('fttp.计息方式')" prop="ftdgrp.rec.cntfra">
<c-select v-model="model.ftdgrp.rec.cntfra" :code="codes.ictyp" style="width:100%"
:placeholder="$t('other.请输入') + $t('fttp.计息方式')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<c-form-item :label="$t('fttp.利息金额')" prop="ftdgrp.cbs.ins.cur">
<c-select v-model="model.ftdgrp.cbs.ins.cur" :code="codes.curtxt1" style="width:100%"
:placeholder="$t('other.请输入') + $t('fttp.利息金额')">
</c-select>
</c-form-item>
</c-col>
<c-col :span="12" class="pl8">
<c-form-item label-width="0" prop="ftdgrp.cbs.ins.amt">
<c-input v-model="model.ftdgrp.cbs.ins.amt" :placeholder="$t('other.请输入') + '利息金额'"></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<el-form-item :label="$t('fttp.报文类型')" prop="fttp.msgtyp">
<c-select v-model="model.fttp.msgtyp" :code="codes.msgtyp2" style="width:100%"
:placeholder="$t('other.请输入') + $t('fttp.报文类型')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item :label="$t('fttp.银行行类别')" prop="ftdgrp.rec.bnktyp">
<c-select v-model="model.ftdgrp.rec.bnktyp" :code="codes.avbwth" style="width:100%"
:placeholder="$t('other.请输入') + $t('fttp.银行行类别')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-form-item :label="$t('fttp.备注')" prop="ftdgrp.blk.remark">
<c-input type="textarea" v-model="model.ftdgrp.blk.remark" maxlength="35" show-word-limit
:placeholder="$t('other.请输入') + $t('fttp.备注')"></c-input>
</c-form-item>
</c-col>
</c-col>
</c-col>
<!-- ======================右边====================== -->
<c-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<c-form-item :label="$t('fttp.名称')" prop="ftdgrp.rec.nam">
<c-input v-model="model.ftdgrp.rec.nam" maxlength="40"
:placeholder="$t('other.请输入') + $t('fttp.名称')"></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabled="false" :isAdrblk="true" :haveAdrLabel="true"
:isShowCard="false" :argadr="{ title: '资金拆出行', grp: 'ftdgrp', rol: 'tro' }" ptytyp="B">
</c-ptap>
</el-card>
</c-col>
<c-col :span="24">
<el-form-item label-width="0" prop="fttp.troact">
<c-select v-model="model.fttp.troact" :code="codes.idtype" style="width:100%" :placeholder="$t('other.请输入') + '交易账户'">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabled="false" :isAdrblk="true" :haveAdrLabel="true"
:isShowCard="false" :argadr="{ title: '资金拆入行', grp: 'ftdgrp', rol: 'tri' }" ptytyp="B">
</c-ptap>
</el-card>
</c-col>
<c-col :span="24">
<el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabled="false" :isAdrblk="true" :haveAdrLabel="true"
:isShowCard="false" :argadr="{ title: '资金拆出我方账户行', grp: 'ftdgrp', rol: 'act' }" ptytyp="B">
</c-ptap>
</el-card>
</c-col>
<c-col :span="24">
<el-form-item label-width="0" prop="fttp.triact">
<c-select v-model="model.fttp.triact" :code="codes.idtype"style="width:100%" :placeholder="$t('other.请输入') + $t('fttp.账户')">
</c-select>
</el-form-item>
</c-col>
</c-col>
</c-col>
<c-collapse v-model="activeNames">
<el-collapse-item title="资金拆借登记确认信息" name="ovwp1">
<m-ovwp1 :model="model" :codes="codes" ref="ovwp1"/>
</el-collapse-item>
<el-collapse-item title="Mt320报文信息" name="mt320" v-if="model.fttp.msgtyp=='320'">
<m-mt320 :model="model" :codes="codes" ref="mt320" />
</el-collapse-item>
<el-collapse-item title="Mt199报文信息" name="mt199" v-if="model.fttp.msgtyp=='199'">
<m-mt199 :model="model" :codes="codes" ref="mt199" />
</el-collapse-item>
<el-collapse-item title="Mt299报文信息" name="mt299" v-if="model.fttp.msgtyp=='299'">
<m-mt299 :model="model" :codes="codes" ref="mt299" />
</el-collapse-item>
</c-collapse>
</div>
</template>
<script>
import Api from "~/service/Api"
import Event from "../event"
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Event from "../event";
import Ovwp1 from "./Ovwp1";
import Mt320 from "./Mt320";
import Mt199 from "./Mt199";
import Mt299 from "./Mt299";
export default {
inject: ['root'],
components: {
"m-ovwp1": Ovwp1,
"m-mt320": Mt320,
"m-mt199": Mt199,
"m-mt299": Mt299,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [Event],
data() {
return {
}
activeNames: ["ovwp1", "mt199", "mt299","mt320"],
};
},
methods: { ...Event },
created: function () {
}
}
methods: {
handleChange(val) {
console.log(val);
},
},
created: function () {},
};
</script>
<style></style>
<style>
.marginLable {
padding-left: 160px;
}
</style>
<template>
<div class="eContainer">
<c-page title="资金拆借/存放">
<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">
<el-tab-pane label="概要" name="ovwp">
<el-tab-pane label="业务" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
......@@ -34,16 +34,20 @@
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Fttfcm from "../model"
import Ovwp from "./Ovwp"
import commonProcess from "~/mixin/commonProcess"
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
import buildFn from "../event/buildCommons.js";
import Fttfcm from "../model";
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.js";
import Check from "../model/Check"
// import Default from "../model/Default"
// import Pattern from "../model/Pattern"
import Ovwp from "./Ovwp"
export default {
......@@ -58,7 +62,7 @@ export default {
root: this
}
},
mixins: [operationFunc, commonDepend, event, buildFn],
mixins: [commonProcess,operationFunc,commonDepend,event,buildFn],
data() {
return {
tabVal: "ovwp",
......@@ -77,17 +81,17 @@ export default {
**/
}
},
created: async function () {
console.log("进入fttfcm交易");
let rtnmsg = {}; // await this.init({})
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
created:async function(){
console.log("进入fttfcm交易.."+this.trnName);
let params = {
transName: this.trnName,
ftdgrp: {
rec: {
inr: this.$route.query.inr || "",
},
},
};
this.init(params)
}
}
</script>
......
<template>
<div class="eibs">
<div class="eibs-tab">
<c-col :span="24">
<!-- ==================左边================ -->
<c-col :span="12" style="padding-right: 20px">
......
......@@ -34,8 +34,7 @@
:handleStash="handleStash"
:handleSubmit="handleSubmit"
@handleSureWarning="handleSureWarning"
ref="commonBtn"
></c-function-btn>
ref="commonBtn"></c-function-btn>
</c-page>
</div>
</template>
......
......@@ -256,8 +256,15 @@ export default {
toFttpcm() {
this.routerPush({
path: '/business/fttpcm',
});
},
});
},
toFttfcm() {
this.routerPush({
path: '/business/fttfcm',
});
},
},
};
......@@ -112,7 +112,10 @@
@click="toFttpcm">
头寸调拨登记确认
</c-button>
<c-button class="medium_bcs" size="medium" type="primary" style="margin-top: 10px; margin-bottom: 10px" title="FTTFCM"
@click="toFttfcm">
资金定存拆借登记及确认
</c-button>
</c-col>
......@@ -319,7 +322,7 @@ export default {
data() {
return {
initdialog:false,
activeTab: "ft",
activeTab: "zjcj",
handleModel: {},
trnUrl: "",
inifrm: "",
......
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