Commit 26e4b637 by zhoujunpeng

fttfmt交易完善

parent 88a3eb40
export default {
"ftdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{type: "string", required: true, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.rec.nam":[
......@@ -28,23 +28,19 @@ export default {
{max: 3,message:"长度不能超过3"}
],
"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.cur": [
{
type: "string",
required: true,
message: "必输项",
},
],
"ftdgrp.cbs.max.amt":[
{type: "number", required: true, message: "必输项"},
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.rec.matdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ftdgrp.rec.rat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
......@@ -81,42 +77,54 @@ export default {
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"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.rec.gzno":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.act.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fttp.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"}
],
"fttp.actp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
// "ftdgrp.rec.matdat":[
// {type: "date", required: false, message: "输入正确的日期"}
// ],
// "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.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.rec.gzno":[
// {type: "string", required: false, message: "必输项"},
// {max: 16,message:"长度不能超过16"}
// ],
"ftdgrp.act.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.act.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
// "ftdgrp.act.pts.ref":[
// {type: "string", required: false, message: "必输项"},
// {max: 20,message:"长度不能超过20"}
// ],
// "fttp.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"}
// ],
// "fttp.actp.ptsget.sdamod.seainf":[
// {type: "string", required: false, message: "必输项"},
// {max: 3,message:"长度不能超过3"}
// ],
// "ftdgrp.act.pts.adrblk":[
// {type: "string", required: true, message: "必输项"},
// {max: 35,message:"长度不能超过35"}
// ],
// "ftdgrp.act.dbfadrblkcn":[
// {type: "string", required: true, message: "必输项"},
// {max: 35,message:"长度不能超过35"}
// ],
}
\ No newline at end of file
......@@ -102,7 +102,11 @@ export default class Fttfmt{
pageId: "", // ctx的key
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia
trndia: new Pub().data.Trndia,
apl: {
pts: new Pts().data,
},
forexmod: new Pub().data.Forexmod,
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<el-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item label="Sender to Receiver lnformation(72)"
:prop="'setmod.setglg.setgll.' + idx + '.sespay.strinf202'">
<c-fullbox>
<c-mul-row-input type="textarea" :rows="6" :cols="35" :autosize="{ minRows: 6, maxRows: 6}" :charmod="2"
v-model="model.setmod.setglg.setgll[idx].sespay.strinf202" show-word-limit
:customModifykey="'setmod.setglg.setgll.' + idx + '.sespay.strinf202'"
@change="handleChangeSespay('strinf202')"></c-mul-row-input>
</c-fullbox>
</el-form-item>
</c-col>
</el-col>
</div>
</template>
<script>
import event from "../event";
import commonDepend from "~/mixin/commonDepend.js";
export default {
inject: ["root"],
props: ["model", "codes", "idx"],
mixins: [event, commonDepend],
data() {
return {};
},
methods: {
handleChangeSespay(prop) {
this.customAddModify(this.model.setmod.setglg.setgll[this.idx].sespay, prop);
},
}
};
</script>
<style>
</style>
\ No newline at end of file
......@@ -5,7 +5,12 @@
<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" />
<m-mt202 :model="model" :codes="codes" ref="mt202" :idx = "0" />
</el-collapse-item>
<el-collapse-item name="otherinfo" title="附言信息" v-if="model.ftdgrp.rec.fttyp=='LI' || model.ftdgrp.rec.fttyp=='DI'">
<m-swift-mt202-info :codes="codes"
:model="model" :idx="0" />
</el-collapse-item>
</c-collapse>
......@@ -17,6 +22,7 @@ import CodeTable from "~/config/CodeTable";
import Event from "../event";
import Matp from "./Matp";
import Mt202 from "~/components/business/setmod/views/MT202.vue";
import MT202Info from "./Mt202Info.vue";
import Default from "../model/Default.js";
......@@ -24,13 +30,14 @@ export default {
components: {
"m-matp": Matp,
"m-mt202": Mt202,
"m-swift-mt202-info": MT202Info,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [Event,Default],
data() {
return {
activeNames: ["matp", "mt202"],
activeNames: ["matp", "mt202","otherinfo"],
};
},
methods: {
......
......@@ -5,7 +5,7 @@ import Utils from "~/utils"
*/
export default {
"ftdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{type: "string", required: true, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
......@@ -18,54 +18,40 @@ export default {
{max: 20,message:"长度不能超过20"}
],
"ftdgrp.rec.ownusr":[
{type: "string", required: false, message: "必输项"},
{type: "string", required: true, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"ftdgrp.rec.fttyp": [
{
type: "string",
required: true,
message: "必输项",
},
],
"fttp.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"fttp.usrget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fttp.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"}
],
"fttp.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"}
{max: 8,message:"长度不能超过8"}
],
"ftdgrp.cbs.max.cur": [
{
type: "string",
required: true,
message: "必输项",
},
],
"ftdgrp.cbs.max.amt":[
{type: "string", required: true, 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: "必输项"},
......@@ -92,14 +78,7 @@ export default {
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"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"}
......@@ -127,13 +106,52 @@ export default {
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"narblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftt199l1blk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
// "ftdgrp.rec.opndat":[
// {type: "date", required: false, message: "输入正确的日期"}
// ],
// "ftdgrp.rec.valdat":[
// {type: "date", required: false, message: "输入正确的日期"}
// ],
// "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.tro.pts.adrblk":[
// {type: "string", required: true, message: "必输项"},
// {max: 35,message:"长度不能超过35"}
// ],
// "ftdgrp.tro.dbfadrblkcn":[
// {type: "string", required: true, message: "必输项"},
// {max: 35,message:"长度不能超过35"}
// ],
// "fttp.usrget.sdamod.seainf":[
// {type: "string", required: false, message: "必输项"},
// {max: 3,message:"长度不能超过3"}
// ],
// "fttp.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"}
// ],
// "fttp.trop.ptsget.sdamod.seainf":[
// {type: "string", required: false, message: "必输项"},
// {max: 3,message:"长度不能超过3"}
// ],
// "narblk":[
// {type: "string", required: true, message: "必输项"},
// {max: 35,message:"长度不能超过35"}
// ],
// "ftt199l1blk":[
// {type: "string", required: true, message: "必输项"},
// {max: 200,message:"长度不能超过200"}
// ],
}
<template>
<div class="eibs-tab">
<el-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item label="Sender to Receiver lnformation(72)"
:prop="'setmod.setglg.setgll.' + idx + '.sespay.strinf202'">
<c-fullbox>
<c-mul-row-input type="textarea" :rows="6" :cols="35" :autosize="{ minRows: 6, maxRows: 6}" :charmod="2"
v-model="model.setmod.setglg.setgll[idx].sespay.strinf202" show-word-limit
:customModifykey="'setmod.setglg.setgll.' + idx + '.sespay.strinf202'"
@change="handleChangeSespay('strinf202')"></c-mul-row-input>
</c-fullbox>
</el-form-item>
</c-col>
</el-col>
</div>
</template>
<script>
import event from "../event";
import commonDepend from "~/mixin/commonDepend.js";
export default {
inject: ["root"],
props: ["model", "codes", "idx"],
mixins: [event, commonDepend],
data() {
return {};
},
methods: {
handleChangeSespay(prop) {
this.customAddModify(this.model.setmod.setglg.setgll[this.idx].sespay, prop);
},
}
};
</script>
<style>
</style>
\ No newline at end of file
......@@ -5,12 +5,21 @@
<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"/>
<m-mt103 :model="model" :codes="codes" ref="mt103" :idx = "0"/>
</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" />
<m-mt202 :model="model" :codes="codes" ref="mt202" :idx = "0" />
</el-collapse-item>
<el-collapse-item name="otherinfo" title="附言信息" >
<m-swift-mt202-info :codes="codes"
:model="model" :idx="0" />
<!-- <m-swift-mt103-info
v-if="model.fttp.msgtyp=='103'"
:codes="codes" :model="model" :idx="1" /> -->
</el-collapse-item>
</c-collapse>
</div>
</template>
......@@ -20,7 +29,9 @@
import Event from "../event";
import Cnfp from "./Cnfp";
import MT103 from "~/components/business/setmod/views/MT103.vue";
import MT103Info from "~/components/business/setmod/views/MT103Info.vue";
import Mt202 from "~/components/business/setmod/views/MT202.vue";
import MT202Info from "./Mt202Info.vue";
import Default from "../model/Default.js";
......@@ -29,13 +40,15 @@
"m-cnfp": Cnfp,
"m-mt103": MT103,
"m-mt202": Mt202,
"m-swift-mt202-info": MT202Info,
"m-swift-mt103-info": MT103Info,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [Event,Default],
data() {
return {
activeNames: ["cnfp", "mt103", "mt202"],
activeNames: ["cnfp", "mt103", "mt202", "otherinfo"],
};
},
methods: {
......
......@@ -56,6 +56,7 @@ import Ftt199l1 from "./Ftt199l1"
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
import Default from "../model/Default";
import check from "../model/check.js";
export default {
name: "Fttpcm",
......@@ -79,7 +80,7 @@ export default {
trnName: "fttpcm",
trnType: "",
model: new Fttpcm().data,
rules: {},
rules: check,
codes: { ...CodeTable },
}
},
......
......@@ -34,7 +34,9 @@ export default {
},
cbsMap: {
MAX: model.ftdgrp.cbs.max,
OPN2:model.ftdgrp.cbs.opn2,
INS: model.ftdgrp.cbs.ins,
OPN1: model.ftdgrp.cbs.opn1,
OPN2: model.ftdgrp.cbs.opn2,
},
ptsList: ptsptaList,
transName: trnName,
......
......@@ -6,30 +6,15 @@ export default class Fttpcn{
constructor () {
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
},
fttp: {
troact: "", // Trade-out Account .fttp.troact
triact: "", // 备注 .fttp.triact
msgtyp: "", // 报文类型 .fttp.msgtyp
benact: "",
bnaktypflg: "",
},
},
},
cancur:"",
canamt:"", // Cancellation Amount .canamt
setmod:{
doccur:"", // 实际销账金额 .setmod.doccur
},
mtabut:{
clsflg:"", // Close Flag .mtabut.clsflg
},
......
......@@ -57,13 +57,13 @@
<c-select
disabled
v-model="model.ftdgrp.cbs.max.cur"
:code="codes.curtxt"
:code="codes.curtxt1"
style="width: 100%"
>
</c-select>
</c-form-item>
</c-col>
<c-col :span="14">
<c-col :span="14" class="pl8">
<c-form-item label-width="10px" prop="ftdgrp.cbs.max.amt">
<c-input-currency
disabled
......@@ -78,22 +78,22 @@
<c-col :span="10">
<c-form-item
:label="$t('fttpcn.待销账金额')"
prop="ftdgrp.cbs.opn2.cur"
prop="ftdgrp.cbs.max.cur"
>
<c-select
disabled
v-model="model.ftdgrp.cbs.opn2.cur"
:code="codes.curtxt"
v-model="model.ftdgrp.cbs.max.cur"
:code="codes.curtxt1"
maxlength="3"
></c-select>
</c-form-item>
</c-col>
<c-col :span="14">
<c-col :span="14" class="pl8">
<c-form-item label-width="10px" prop="ftdgrp.cbs.opn2.amt">
<c-input-currency
disabled
v-model="model.ftdgrp.cbs.opn2.amt"
:currency="model.ftdgrp.cbs.opn2.cur"
:currency="model.ftdgrp.cbs.max.cur"
></c-input-currency>
</c-form-item>
</c-col>
......@@ -101,20 +101,20 @@
<!-- S0000068 : 实际销账金额 -->
<c-col :span="24">
<c-col :span="10">
<c-form-item :label="$t('fttpcn.实际销账金额')" prop="ftdgrp.cbs.opn2.cur">
<el-form-item :label="$t('fttpcn.实际销账金额')" prop="ftdgrp.cbs.max.cur">
<c-select
disabled
v-model="model.ftdgrp.cbs.opn2.cur"
:code="codes.curtxt"
v-model="model.ftdgrp.cbs.max.cur"
:code="codes.curtxt1"
maxlength="3"
></c-select>
</c-form-item>
</el-form-item>
</c-col>
<c-col :span="14">
<c-col :span="14" class="pl8">
<c-form-item label-width="10px" prop="canamt">
<c-input-currency
v-model="model.canamt"
:currency="model.doccur"
:currency="model.ftdgrp.cbs.max.cur"
></c-input-currency>
</c-form-item>
</c-col>
......@@ -140,35 +140,6 @@
</c-ptap>
</el-card>
</c-col>
<!-- <c-col :span="24">
<c-form-item prop="ftdgrp.tro.pts.extkey">
<c-fullbox>
<c-input
v-model="model.ftdgrp.tro.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 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> -->
<!-- S0000066 : 头寸调入行 -->
<c-col :span="24">
......@@ -181,36 +152,6 @@
</el-card>
</c-col>
<!-- <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 label="" 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>
</div>
</template>
......
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