Commit 417b475b by zhoujunpeng

Fttfmt和fttpcm前端修改

parent 0515ae6f
......@@ -70,7 +70,7 @@ import { Promise } from 'q';
<el-badge class="item el-dropdown-link" :value="root.model.warnList ? root.model.warnList.length : 0" :max="99" :hidden="root.model.warnList && root.model.warnList.length == 0">
<el-button size="mini" type="primary" @click="handleShowWarning" class="el-icon-warning-outline">
<span style="margin-left: 5px;position: relative;">Warning
<div v-if="root.model.warnFlg == 'Y'" @click.stop style="width15px;padding: 10px;border-radius: 3px;position: absolute;top: 15px;left: -84px;color: red;">
<div v-if="root.model.warnFlg == 'Y'" @click.stop style="width:15px;padding: 10px;border-radius: 3px;position: absolute;top: 15px;left: -84px;color: red;">
警告信息有变化,请查看
</div>
</span>
......
......@@ -27,6 +27,8 @@ export default {
objtyp: "FTD",
objinr: model.ftdgrp.rec.inr,
ownref: model.ftdgrp.rec.ownref,
msgtyp: model.fttp.msgtyp,
branchInr: model.fttgrp.rec.branchinr,
fttyp:model.ftdgrp.rec.fttyp,
},
cbsMap: {
......
......@@ -25,5 +25,9 @@ export default {
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
}, // 事件 -- 报文类型
swftypChange() {
// 公共
this.model.setmod = new Pub().data.Setmod;
},
};
import commonFunctions from "~/mixin/commonFunctions.js";
import commonDepend from "~/mixin/commonDepend";
import Api from '~/service/Api';
export default {
mixins: [commonFunctions, commonDepend],
methods: {
// 模拟调用试算费用账务
defaultBuildSetmod(e) {
this.initSetmod(this.buildCommonData(this.model, "fttfmt"));
this.model.setmod = new Pub().data.Setmod;
},
initDefaultFields() {
this.defaultBuildSetmod("1")
}
},
};
......@@ -12,6 +12,60 @@ export default class Fttfmt{
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,
},
},
usr:{
extkey:"", // 资金部负责人 .fttp.usr.extkey
},
......@@ -41,10 +95,7 @@ export default class Fttfmt{
},
},
intamt:"", // 利息金额 .intamt
setmod:{
doccur:"", // 结算总金额 .setmod.doccur
setamt:"", // Reduced Amount to settle .setmod.setamt
},
mtabut:{
clsflg:"", // Close Flag .mtabut.clsflg
},
......
......@@ -21,7 +21,7 @@
<c-col :span="24">
<el-form-item :label="$t('fttfmt.定存拆借类型')" prop="ftdgrp.rec.fttyp">
<c-select v-model="model.ftdgrp.rec.fttyp" :code="codes.ffttyp" style="width:100%"
<c-select v-model="model.ftdgrp.rec.fttyp" :code="codes.fttyp" disabled style="width:100%"
:placeholder="$t('other.请输入') + $t('fttfmt.定存拆借类型')">
</c-select>
</el-form-item>
......@@ -86,8 +86,8 @@
</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" disabled></c-input>
<c-form-item label-width="0" prop="ftdgrp.cbs.opn2.amt">
<c-input v-model="model.ftdgrp.cbs.opn2.amt" disabled></c-input>
</c-form-item>
</c-col>
</c-col>
......@@ -118,7 +118,7 @@
</c-col>
<c-col :span="24">
<el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabled="true":disabledExtkey="true" :isAdrblk="true"
<c-ptap :model="model" :requiredExtkey="true" :disabled="true" :isAdrblk="true"
:haveAdrLabel="true" :isShowCard="false"
:argadr="{ title: '资金拆入行', grp: 'ftdgrp', rol: 'tri' }" ptytyp="B">
</c-ptap>
......
<template>
<div class="eibs-tab" >
<c-collapse v-model="activeNames">
<el-collapse-item title="资金定存拆借到期" name="matp">
<m-matp :model="model" :codes="codes" ref="matp"/>
</el-collapse-item>
<el-collapse-item title="Mt202报文信息" name="mt202" v-if="model.ftdgrp.rec.fttyp=='LI' || model.ftdgrp.rec.fttyp=='DI'">
<m-mt202 :model="model" :codes="codes" ref="mt202" :idx = "1" />
</el-collapse-item>
</c-collapse>
</div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Event from "../event";
import Matp from "./Matp";
import Mt202 from "~/components/business/setmod/views/MT202.vue";
import Default from "../model/Default.js";
export default {
components: {
"m-matp": Matp,
"m-mt202": Mt202,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [Event,Default],
data() {
return {
activeNames: ["matp", "mt202"],
};
},
methods: {
handleChange(val) {
console.log(val);
},
},
created: function () {},
};
</script>
<style>
.marginLable {
padding-left: 160px;
}
</style>
......@@ -5,9 +5,9 @@
size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--fttfmt PD000001 Maturity -->
<el-tab-pane label="到期处理" name="matp">
<el-tab-pane label="到期处理" name="ovwp">
<c-content>
<m-matp :model="model" :codes="codes" />
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="费用/账务" name="setpan">
......@@ -35,18 +35,20 @@ import Matp from "./Matp"
import commonProcess from "~/mixin/commonProcess"
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
import Setmod from "~/components/business/setmod/views";
import Ovwp from "./Ovwp"
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 Default from "../model/Default";
export default {
name: "Fttfmt",
components: {
"m-matp": Matp,
"m-setmod": Setmod,
"m-ovwp" : Ovwp,
"m-setpan": Setpan,
"m-docpan": Docpan,
},
......@@ -55,10 +57,10 @@ export default {
root: this
}
},
mixins: [operationFunc, commonDepend, event, buildFn,commonProcess], // 里面包含了Default、Check等的公共处理
mixins: [operationFunc, commonDepend, event, buildFn,commonProcess,Default], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "matp",
tabVal: "ovwp",
trnName: "fttfmt",
trnType: "",
model: new Fttfmt().data,
......
......@@ -27,6 +27,7 @@ export default {
objtyp: "FTD",
objinr: model.ftdgrp.rec.inr,
ownref: model.ftdgrp.rec.ownref,
msgtyp: model.fttp.msgtyp,
fttyp:model.ftdgrp.rec.fttyp,
},
cbsMap: {
......
import commonFunctions from '~/mixin/commonFunctions.js';
import Pub from '../../../../components/business/commonModel/index.js';
import Api from '~/service/Api';
export default {
......@@ -61,5 +62,10 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
// 事件 -- 报文类型
swftypChange() {
// 公共
// this.model.setmod = new Pub().data.Setmod;
}
}
}
\ No newline at end of file
import commonFunctions from "~/mixin/commonFunctions.js";
import commonDepend from "~/mixin/commonDepend";
import Api from '~/service/Api';
export default {
mixins: [commonFunctions, commonDepend],
methods: {
// 模拟调用试算费用账务
defaultBuildSetmod(e) {
this.initSetmod(this.buildCommonData(this.model, "fttpcm"));
},
initDefaultFields() {
this.defaultBuildSetmod("1")
}
},
};
......@@ -7,22 +7,6 @@ export default class Fttpcm{
this.data = {
ftdgrp: new Ftdgrp().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:"", // Trade-in Account .fttp.triact
usr:{
......@@ -42,12 +26,68 @@ export default class Fttpcm{
},
},
msgtyp:"", // 报文类型 .fttp.msgtyp
benact:"", // Ben Trade-in Account .fttp.benact
benact:"",
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,
},
}, // Ben Trade-in Account .fttp.benact
},
narblk:"", // Narrative .narblk
relref:"", // Related Reference .relref
ftt199l1blk:"", // XMLPanel ftt199l1的内置block .ftt199l1blk
pageId: "", // ctx的key
forexmod: new Pub().data.Forexmod,
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia,
......
......@@ -131,27 +131,7 @@
</c-ptap>
</el-card>
</c-col>
<!-- <c-col :span="24">
<c-form-item
:label="$t('fttp.受益人')"
prop="ftdgrp.ben.pts.extkey"
>
<c-fullbox>
<c-input
v-model="model.ftdgrp.ben.pts.extkey"
maxlength="34"
></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary">
i
</c-button>
<c-button size="small" style="margin-left: 5px" type="primary">
详情
</c-button>
</template>
</c-fullbox>
</c-form-item>
</c-col> -->
<c-col :span="24">
<c-form-item prop="ftdgrp.ben.pts.nam">
<c-input
......@@ -165,8 +145,10 @@
<c-form-item :label="$t('fttp.报文类型')" prop="fttp.msgtyp">
<c-select
v-model="model.fttp.msgtyp"
:code="codes.swftyp1"
:code="codes.msgtyp4"
:filterKey="['103', '202']"
style="width: 100%"
@change="swftypChange()"
>
</c-select>
</c-form-item>
......@@ -176,48 +158,6 @@
<c-col :span="12">
<!-- ==================右边================ -->
<!-- <c-col :span="24">
<c-form-item
:label="$t('fttp.头寸调出行')"
prop="ftdgrp.tro.pts.ref"
>
<c-input
v-model="model.ftdgrp.tro.pts.ref"
maxlength="20"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="" prop="ftdgrp.tro.pts.extkey">
<c-fullbox>
<c-input
v-model="model.ftdgrp.tro.pts.extkey"
maxlength="8"
></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary">
i
</c-button>
<c-button size="small" style="margin-left: 5px" type="primary">
详情
</c-button>
</template>
</c-fullbox>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="" prop="ftdgrp.tro.pts.adrblk">
<c-input
type="textarea"
v-model="model.ftdgrp.tro.pts.adrblk"
:rows="3"
maxlength="35"
show-word-limit
></c-input>
</c-form-item>
</c-col> -->
<!-- S0000078 : 头寸调出行 -->
<c-col :span="24">
<el-card class="box-card">
......@@ -254,45 +194,6 @@
</el-card>
</c-col>
<!-- <c-col :span="24">
<c-form-item
label="头寸调入行"
prop="fttp.trop.ptsget.sdamod.dadsnd"
>
<c-input v-model="model.fttp.trop.ptsget.sdamod.dadsnd"></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item prop="ftdgrp.tri.pts.extkey">
<c-fullbox>
<c-input
v-model="model.ftdgrp.tri.pts.extkey"
maxlength="16"
></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary">
i
</c-button>
<c-button size="small" style="margin-left: 5px" type="primary">
详情
</c-button>
</template>
</c-fullbox>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item prop="ftdgrp.tri.pts.adrblk">
<c-input
type="textarea"
v-model="model.ftdgrp.tri.pts.adrblk"
:rows="3"
maxlength="35"
show-word-limit
></c-input>
</c-form-item>
</c-col> -->
<c-col :span="24">
<c-form-item prop="fttp.triact">
<c-select
......
<template>
<div class="eibs-tab" >
<c-collapse v-model="activeNames">
<el-collapse-item title="头寸调拨登记确认信息" name="cnfp">
<m-cnfp :model="model" :codes="codes" ref="cnfp"/>
</el-collapse-item>
<el-collapse-item title="Mt103报文信息" name="mt103" v-if="model.fttp.msgtyp=='103'">
<m-mt103 :model="model" :codes="codes" ref="mt103" :idx = "1"/>
</el-collapse-item>
<el-collapse-item title="Mt202报文信息" name="mt202" v-if="model.fttp.msgtyp=='202'">
<m-mt202 :model="model" :codes="codes" ref="mt202" :idx = "1" />
</el-collapse-item>
</c-collapse>
</div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Event from "../event";
import Cnfp from "./Cnfp";
import MT103 from "~/components/business/setmod/views/MT103.vue";
import Mt202 from "~/components/business/setmod/views/MT202.vue";
import Default from "../model/Default.js";
export default {
components: {
"m-cnfp": Cnfp,
"m-mt103": MT103,
"m-mt202": Mt202,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [Event,Default],
data() {
return {
activeNames: ["cnfp", "mt103", "mt202"],
};
},
methods: {
handleChange(val) {
console.log(val);
},
},
created: function () {},
};
</script>
<style>
.marginLable {
padding-left: 160px;
}
</style>
\ No newline at end of file
......@@ -4,8 +4,10 @@
<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="cnfp">
<m-cnfp :model="model" :codes="codes" />
<el-tab-pane label="概要" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="费用/账务" name="setpan">
<c-content>
......@@ -47,19 +49,19 @@ import commonDepend from "~/mixin/commonDepend";
import buildFn from "../event/buildCommons.js";
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/check.js";
import Cnfp from "./Cnfp"
import Setmod from "~/components/business/setmod/views";
import Ovwp from "./Ovwp"
import Mt199 from "./Mt199"
import Ftt199l1 from "./Ftt199l1"
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
import check from "../model/check.js";
import Default from "../model/Default";
export default {
name: "Fttpcm",
components:{
"m-cnfp" : Cnfp,
"m-setmod": Setmod,
"m-ovwp" : Ovwp,
"m-mt199" : Mt199,
"m-ftt199l1" : Ftt199l1,
"m-setpan": Setpan,
......@@ -70,10 +72,10 @@ export default {
root: this
}
},
mixins: [operationFunc, commonDepend, event, buildFn,commonProcess],
mixins: [Default,operationFunc, commonDepend, event, buildFn,commonProcess],
data(){
return {
tabVal: "cnfp",
tabVal: "ovwp",
trnName: "fttpcm",
trnType: "",
model: new Fttpcm().data,
......
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