Commit 2332494f by zhoujunpeng

Fttfmt交易修改

parent 8a81667c
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 Fttfcn{
constructor () {
this.data = {
ftdgrp:{
rec:{
ownref:"", // 资金调拨业务参考号 .ftdgrp.rec.ownref
nam:"", // 名称 .ftdgrp.rec.nam
fttyp:"", // 定存拆借类型 .ftdgrp.rec.fttyp
},
cbs:{
max:{
cur:"", // 定存拆借金额 .ftdgrp.cbs.max.cur
amt:"", // 定存拆借金额 .ftdgrp.cbs.max.amt
},
opn2:{
cur:"", // 待销账金额 .ftdgrp.cbs.opn2.cur
amt:"", // Balance .ftdgrp.cbs.opn2.amt
},
},
tro:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tro.dbfadrblkcn
},
tri:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tri.dbfadrblkcn
},
act:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.act.dbfadrblkcn
},
},
ftdgrp: new Ftdgrp().data,
fttp:{
troact: "", // Trade-out Account .fttp.troact
triact: "", // 备注 .fttp.triact
msgtyp: "", // 报文类型 .fttp.msgtyp
benact: "",
bnaktypflg: "",
usr:{
extkey:"", // 资金部负责人 .fttp.usr.extkey
},
......
......@@ -24,13 +24,15 @@ export default {
let ptsptaList = Utils.formatPtspta(model.ftdgrp, this.buildPtspta);
return {
rec: {
objtyp: "FXT",
objtyp: "FTD",
objinr: model.ftdgrp.rec.inr,
ownref: model.ftdgrp.rec.ownref,
fttyp:model.ftdgrp.rec.fttyp,
},
cbsMap: {
MAX: model.ftdgrp.cbs.max,
NOM1: model.ftdgrp.cbs.nom1,
OPN1: model.ftdgrp.cbs.opn1,
INS : model.ftdgrp.cbs.ins,
},
ptsList: ptsptaList,
transName: trnName,
......
......@@ -38,7 +38,7 @@ export default {
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{type: "number", required: true, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......
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 Fttfmt{
constructor () {
this.data = {
ftdgrp:{
rec:{
ownref:"", // 资金调拨业务参考号 .ftdgrp.rec.ownref
nam:"", // 名称 .ftdgrp.rec.nam
fttyp:"", // 定存拆借类型 .ftdgrp.rec.fttyp
matdat:"", // 到期日 .ftdgrp.rec.matdat
rat:"", // 年利率 .ftdgrp.rec.rat
gzno:"", // 挂账编号 .ftdgrp.rec.gzno
},
cbs:{
max:{
cur:"", // 定存拆借金额 .ftdgrp.cbs.max.cur
amt:"", // 定存拆借金额 .ftdgrp.cbs.max.amt
},
},
tro:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tro.dbfadrblkcn
},
tri:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tri.dbfadrblkcn
},
act:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.act.dbfadrblkcn
},
},
ftdgrp: new Ftdgrp().data,
fttp:{
troact: "", // Trade-out Account .fttp.troact
triact: "", // 备注 .fttp.triact
msgtyp: "", // 报文类型 .fttp.msgtyp
benact: "",
bnaktypflg: "",
usr:{
extkey:"", // 资金部负责人 .fttp.usr.extkey
},
......
......@@ -5,16 +5,16 @@
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<c-form-item :label="$t('fttfmt.资金调拨业务参考号')" prop="ftdgrp.rec.ownref">
<c-input v-model="model.ftdgrp.rec.ownref" maxlength="16"
:placeholder="$t('other.请输入') + $t('fttfmt.资金调拨业务参考号')"></c-input>
<c-input v-model="model.ftdgrp.rec.ownref" maxlength="16"
disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000004 : 资金部负责人 -->
<c-col :span="24">
<c-form-item :label="$t('fttfmt.资金部负责人')" prop="fttp.usr.extkey">
<c-input v-model="model.fttp.usr.extkey" maxlength="8"
:placeholder="$t('other.请输入') + $t('fttfmt.资金部负责人')"></c-input>
<c-form-item :label="$t('fttfmt.资金部负责人')" prop="ftdgrp.rec.ownusr">
<c-input v-model="model.ftdgrp.rec.ownusr" maxlength="8"
disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000005 : 定存拆借类型 -->
......@@ -30,16 +30,16 @@
<c-col :span="24">
<c-col :span="12">
<el-form-item :label="$t('fttfmt.定存拆借金额')" prop="setmod.doccur">
<c-select v-model="model.setmod.doccur" :code="codes.curtxt1" style="width:100%"
:placeholder="$t('other.请输入') + $t('fttfmt.定存拆借金额币种')">
<el-form-item :label="$t('fttfmt.定存拆借金额')" prop="ftdgrp.cbs.max.cur">
<c-select v-model="model.ftdgrp.cbs.max.cur" :code="codes.curtxt1" style="width:100%"
disabled>
</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('fttfmt.定存拆借金额')"></c-input>
disabled></c-input>
</c-form-item>
</c-col>
</c-col>
......@@ -48,7 +48,7 @@
<c-col :span="24">
<el-form-item :label="$t('fttfmt.到期日')" prop="ftdgrp.rec.matdat">
<c-date-picker type="date" v-model="model.ftdgrp.rec.matdat" style="width:100%"
:placeholder="$t('other.请输入') + $t('fttfmt.到期日')"></c-date-picker>
disabled></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000012 : 年利率 -->
......@@ -56,7 +56,7 @@
<c-col :span="24">
<c-form-item :label="$t('fttfmt.年利率')" prop="ftdgrp.rec.rat">
<c-input v-model="model.ftdgrp.rec.rat"
:placeholder="$t('other.请输入') + $t('fttfmt.年利率')"></c-input>
disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000017 : 利息金额 -->
......@@ -64,14 +64,14 @@
<c-col :span="12">
<el-form-item :label="$t('fttfmt.利息金额币种')" prop="ftdgrp.cbs.max.cur">
<c-select v-model="model.ftdgrp.cbs.max.cur" :code="codes.curtxt1" style="width:100%"
:placeholder="$t('other.请输入') + $t('fttfmt.利息金额币种')">
disabled>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12" class="pl8">
<c-form-item label-width="0" prop="intamt">
<c-input v-model="model.intamt" :placeholder="$t('other.请输入') + $t('fttfmt.利息金额')"></c-input>
<c-form-item label-width="0" prop="ftdgrp.cbs.ins.amt">
<c-input v-model="model.ftdgrp.cbs.ins.amt" :placeholder="$t('other.请输入') + $t('fttfmt.利息金额')"></c-input>
</c-form-item>
</c-col>
</c-col>
......@@ -81,13 +81,13 @@
<c-col :span="12">
<el-form-item :label="$t('fttfmt.结算总金额币种')" prop="ftdgrp.cbs.max.cur">
<c-select v-model="model.ftdgrp.cbs.max.cur" :code="codes.curtxt1" style="width:100%"
:placeholder="$t('other.请输入') + $t('fttfmt.结算总金额币种')">
disabled>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12" class="pl8">
<c-form-item label-width="0" prop="setmod.setamt">
<c-input v-model="model.setmod.setamt" :placeholder="$t('other.请输入') + '结算总金额'"></c-input>
<c-input v-model="model.setmod.setamt" disabled></c-input>
</c-form-item>
</c-col>
</c-col>
......@@ -105,12 +105,12 @@
<c-col :span="24">
<c-form-item :label="$t('fttfmt.名称')" prop="ftdgrp.rec.nam">
<c-input v-model="model.ftdgrp.rec.nam" maxlength="40"
:placeholder="$t('other.请输入') + $t('fttfmt.名称')"></c-input>
disabled></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"
<c-ptap :model="model" :requiredExtkey="true" :disabled="true" :disabledExtkey="true" :isAdrblk="true"
:haveAdrLabel="true" :isShowCard="false"
:argadr="{ title: '资金拆出行', grp: 'ftdgrp', rol: 'tro' }" ptytyp="B">
</c-ptap>
......@@ -118,7 +118,7 @@
</c-col>
<c-col :span="24">
<el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabled="false" :isAdrblk="true"
<c-ptap :model="model" :requiredExtkey="true" :disabled="true":disabledExtkey="true" :isAdrblk="true"
:haveAdrLabel="true" :isShowCard="false"
:argadr="{ title: '资金拆入行', grp: 'ftdgrp', rol: 'tri' }" ptytyp="B">
</c-ptap>
......@@ -126,7 +126,7 @@
</c-col>
<c-col :span="24">
<el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabled="false" :isAdrblk="true"
<c-ptap :model="model" :requiredExtkey="true" :disabled="true" :isAdrblk="true"
:haveAdrLabel="true" :isShowCard="false"
:argadr="{ title: '账户行', grp: 'ftdgrp', rol: 'act' }" ptytyp="B">
</c-ptap>
......@@ -139,10 +139,11 @@
<script>
import Api from "~/service/Api"
import Event from "../event"
import commonProcess from "~/mixin/commonProcess";
export default {
inject: ['root'],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
......
......@@ -32,6 +32,7 @@ import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Fttfmt from "../model"
import Matp from "./Matp"
import commonProcess from "~/mixin/commonProcess"
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
......@@ -54,14 +55,14 @@ export default {
root: this
}
},
mixins: [operationFunc, commonDepend, event, buildFn], // 里面包含了Default、Check等的公共处理
mixins: [operationFunc, commonDepend, event, buildFn,commonProcess], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "matp",
trnName: "fttfmt",
trnType: "",
model: new Fttfmt().data,
rules: Check,
rules: {},
codes: { ...CodeTable },
}
},
......@@ -75,15 +76,15 @@ export default {
},
created: async function () {
console.log("进入fttfmt交易");
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,
ftdgrp: {
rec: {
inr: this.$route.query.inr || "",
},
},
};
this.init(params)
}
}
</script>
......
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 Fttpcm{
constructor () {
this.data = {
ftdgrp:{
rec:{
int:"",
nam:"",
fttyp:"",
ownref:"", // Reference .ftdgrp.rec.ownref
nam:"", // 名称 .ftdgrp.rec.nam
opndat:"", // 调拨日期 .ftdgrp.rec.opndat
valdat:"", // 起息日 .ftdgrp.rec.valdat
ownusr:"", // 资金部负责人 .ftdgrp.rec.ownusr
usr:"", // 清算中心负责人 .ftdgrp.rec.usr
},
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
},
},
blk:{
remark:"", // 备注 .ftdgrp.blk.remark
},
ben:{
pts:new Pts().data,
},
},
ftdgrp: new Ftdgrp().data,
fttp:{
trop:{
ptsget:{
......
......@@ -24,7 +24,7 @@ export default {
let ptsptaList = [];
return {
rec: {
objtyp: "FXT",
objtyp: "FTD",
objinr: model.ftdgrp.rec.inr,
ownref: model.ftdgrp.rec.ownref,
fttyp:model.ftdgrp.rec.fttyp,
......
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 Fttpcn{
constructor () {
this.data = {
ftdgrp:{
rec:{
int:"",
ownusr:"",
ownref:"", // 头寸调拨业务参考号 .ftdgrp.rec.ownref
nam:"", // 名称 .ftdgrp.rec.nam
fttyp:"", // 头寸调拨类型 .ftdgrp.rec.fttyp
},
cbs:{
max:{
cur:"", // 头寸调拨金额 .ftdgrp.cbs.max.cur
amt:"", // 头寸调拨金额 .ftdgrp.cbs.max.amt
},
opn2:{
cur:"", // 待销账金额 .ftdgrp.cbs.opn2.cur
amt:"", // Balance .ftdgrp.cbs.opn2.amt
},
},
tro:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tro.dbfadrblkcn
},
tri:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tri.dbfadrblkcn
},
},
ftdgrp: new Ftdgrp().data,
fttp:{
trop:{
......@@ -52,7 +26,7 @@ export default class Fttpcn{
},
},
cancur:"",
canamt:0, // Cancellation Amount .canamt
canamt:"", // Cancellation Amount .canamt
setmod:{
doccur:"", // 实际销账金额 .setmod.doccur
},
......
......@@ -138,16 +138,12 @@ export default {
return
}
let params = {}
if(btn.code.toLowerCase() == 'fttfmt'){
params = {
path: "/business/" + btn.code.toLowerCase(),
}
}else{
params = {
path: "/business/" + btn.code.toLowerCase(),
query: { inr: row.inr,pntinr: row.pntinr }
}
}
this.routerPush(params);
this.initdialog = false;
},
......
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