Commit 8daf9e5c by liushikai

头寸调拨登记确认界面优化

parent 5a6867ec
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onFttpButgetref(){
let rtnmsg = await this.executeRule("fttp.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: '服务请求失败!'});
}
},
}
\ No newline at end of file
import Utils from "~/utils";
export default {
methods: {
buildPtspta(ptsptaObj) {
let pts = ptsptaObj.pts;
return {
rol: pts.rol,
name: pts.nam,
ptyinr: pts.ptyinr,
ptainr: pts.ptainr,
extkey: pts.extkey,
dftdsp: pts.dftdsp,
dftcur: pts.dftcur,
dftact: pts.dftact,
dftfeecur: pts.dftfeecur,
dftactptainr: pts.dftactptainr,
glggrpflg: pts.glggrpflg,
adrblk: pts.adrblk,
pts,
};
},
buildCommonData(model, trnName) {
let ptsptaList = [];
return {
rec: {
objtyp: "FXT",
},
cbsMap: {},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
};
},
},
};
import commonFunctions from '~/mixin/commonFunctions.js';
import Api from '~/service/Api';
export default {
mixins: [commonFunctions],
methods: {
async onFttpButgetref() {
let rtnmsg = await this.executeRule("fttp.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: '服务请求失败!' });
}
},
}
}
\ No newline at end of file
...@@ -3,23 +3,137 @@ import Utils from "~/utils" ...@@ -3,23 +3,137 @@ import Utils from "~/utils"
/** /**
* Fttpcm Check规则 * Fttpcm Check规则
*/ */
let checkObj = { export default {
"ftdgrp.rec.opndat" :null, "ftdgrp.rec.ownref":[
"ftdgrp.cbs.max.cur" :null, {type: "string", required: false, message: "必输项"},
"ftdgrp.cbs.max.amt" :null, {max: 16,message:"长度不能超过16"}
"fttp.usr.extkey" :null, ],
"ftdgrp.rec.valdat" :null,
"ftdgrp.tro.pts.adrblk" :null, "ftdgrp.rec.nam":[
"ftdgrp.tri.pts.extkey" :null, {type: "string", required: false, message: "必输项"},
"ftdgrp.tri.pts.adrblk" :null, {max: 40,message:"长度不能超过40"}
"ftdgrp.ben.pts.extkey" :null, ],
"ftdgrp.tro.pts.extkey" :null, "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"}
],
"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"}
],
"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"}
],
"fttp.trip.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.tri.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.trip.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fttp.benp.ptsget.sdamod.dadsnd":[
{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"}
],
"fttp.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"}
],
"fttp.benact":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
for (const key in checkObj) { "ftdgrp.rec.ownref":[
if (Object.hasOwnProperty.call(checkObj, key)) { {type: "string", required: false, message: "必输项"},
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key) {max: 16,message:"长度不能超过16"}
} ],
"relref":[
{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"}
],
} }
export default checkObj
/**
* Fttpcm Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"ftdgrp.tri.dbfadrblkcn" :Utils.defaultFunction,
"ftdgrp.tri.pts.adrblk" :Utils.defaultFunction,
"ftdgrp.tro.pts.adrblk" :Utils.defaultFunction,
"fttp.usr.extkey" :Utils.defaultFunction,
"ftdgrp.rec.opndat" :Utils.defaultFunction,
"ftdgrp.cbs.max.cur" :Utils.defaultFunction,
"ftdgrp.rec.valdat" :Utils.defaultFunction,
"ftdgrp.tri.pts.extkey" :Utils.defaultFunction,
"ftdgrp.tro.pts.extkey" :Utils.defaultFunction,
"ftdgrp.tro.dbfadrblkcn" :Utils.defaultFunction,
"ftdgrp.rec.usr" :Utils.defaultFunction,
"fttp.msgtyp" :Utils.defaultFunction,
"ftdgrp.rec.ownusr" :Utils.defaultFunction,
"ftdgrp.ben.pts.extkey" :Utils.defaultFunction,
"ftdgrp.rec.ownref" :Utils.defaultFunction,
"ftdgrp.cbs.max.amt" :Utils.defaultFunction,
}
//你可以添加自动default处理
export default {
"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"}
],
"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"}
],
"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"}
],
"fttp.trip.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.tri.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.trip.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fttp.benp.ptsget.sdamod.dadsnd":[
{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"}
],
"fttp.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"}
],
"fttp.benact":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"ftdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"relref":[
{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"}
],
}
\ No newline at end of file
import Api from "~/service/Api" import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts" import Pts from "~/page/Model/Common/Pts"
import Pub from "~/components/business/commonModel/index.js";
export default class Fttpcm{ export default class Fttpcm{
constructor () { constructor () {
...@@ -75,7 +76,10 @@ export default class Fttpcm{ ...@@ -75,7 +76,10 @@ export default class Fttpcm{
narblk:"", // Narrative .narblk narblk:"", // Narrative .narblk
relref:"", // Related Reference .relref relref:"", // Related Reference .relref
ftt199l1blk:"", // XMLPanel ftt199l1的内置block .ftt199l1blk ftt199l1blk:"", // XMLPanel ftt199l1的内置block .ftt199l1blk
pageId: "" // ctx的key pageId: "", // ctx的key
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia
} }
} }
} }
\ No newline at end of file
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<el-row> <el-row>
<c-col :span="24">
<!-- S0000076 : 头寸调拨业务参考号 --> <!-- S0000076 : 头寸调拨业务参考号 -->
<c-col :span="8"> <c-col :span="12">
<c-form-item :label="$t('fttpcm.S0000103')" prop="ftdgrp.rec.ownref"> <c-form-item :label="$t('fttpcm.Reference')" prop="ftdgrp.rec.ownref">
<c-input <c-fullbox>
v-model="model.ftdgrp.rec.ownref" <c-input v-model="model.ftdgrp.rec.ownref" maxlength="16"></c-input>
maxlength="16" <template slot="footer">
:placeholder="$t('other.please_enter') + $t('fttpcm.S0000103')" <c-button size="small" style="margin-left: 5px" type="primary">
></c-input> Get Ref
</c-button>
</template>
</c-fullbox>
</c-form-item> </c-form-item>
</c-col> </c-col>
<!-- S0000077 : 名称 --> <!-- S0000077 : 名称 -->
<c-col :span="12">
<c-col :span="8"> <c-form-item :label="$t('fttp.Name')" prop="ftdgrp.rec.nam">
<c-form-item :label="$t('fttp.S0000077')" prop="ftdgrp.rec.nam"> <c-input v-model="model.ftdgrp.rec.nam" maxlength="40"></c-input>
<c-input
v-model="model.ftdgrp.rec.nam"
maxlength="40"
:placeholder="$t('other.please_enter') + $t('fttp.S0000077')"
></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
<!-- S0000078 : 头寸调出行 -->
<c-col :span="8">
<c-form-item :label="$t('fttp.S0000078')" prop="ftdgrp.tro.pts.ref">
<c-input
v-model="model.ftdgrp.tro.pts.ref"
maxlength="20"
:placeholder="$t('other.please_enter') + $t('fttp.S0000078')"
></c-input>
</c-form-item>
</c-col>
</c-col>
<c-col :span="24"> <c-col :span="24">
<el-divider></el-divider>
</c-col>
<c-col :span="12">
<!-- S0000080 : 资金部负责人 --> <!-- S0000080 : 资金部负责人 -->
<c-col :span="24">
<c-col :span="8"> <c-form-item
<c-form-item :label="$t('fttp.S0000080')" prop="ftdgrp.rec.ownusr"> :label="$t('fttp.Resp User(Treasury)')"
prop="ftdgrp.rec.ownusr"
>
<c-fullbox>
<c-input <c-input
v-model="model.ftdgrp.rec.ownusr" v-model="model.ftdgrp.rec.ownusr"
maxlength="8" maxlength="8"
:placeholder="$t('other.please_enter') + $t('fttp.S0000080')"
></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<c-form-item label="User ID" prop="fttp.usr.extkey">
<c-input
v-model="model.fttp.usr.extkey"
maxlength="8"
:placeholder="$t('other.please_enter') + 'User ID'"
></c-input> ></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary">
i
</c-button>
</template>
</c-fullbox>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="8"> <!-- S0000088 : 清算中心负责人 -->
<c-col :span="24">
<c-form-item <c-form-item
label="Drag Drop Sender" :label="$t('fttp.Resp User(Clearing)')"
prop="fttp.trop.ptsget.sdamod.dadsnd" prop="ftdgrp.rec.usr"
> >
<c-input <c-fullbox>
v-model="model.fttp.trop.ptsget.sdamod.dadsnd" <c-input v-model="model.ftdgrp.rec.usr" maxlength="8"></c-input>
:placeholder="$t('other.please_enter') + 'Drag Drop Sender'" <template slot="footer">
></c-input> <c-button size="small" style="margin-left: 5px" type="primary">
i
</c-button>
</template>
</c-fullbox>
</c-form-item> </c-form-item>
</c-col> </c-col>
</c-col> <!-- S0000083 : 头寸调拨金额 -->
<c-col :span="24"> <c-col :span="24">
<c-col :span="10">
<c-col :span="8">
<c-form-item <c-form-item
label="External Key of Address" :label="$t('fttp.Position Amount')"
prop="ftdgrp.tro.pts.extkey" prop="ftdgrp.cbs.max.cur"
> >
<c-input <c-fullbox>
v-model="model.ftdgrp.tro.pts.extkey"
maxlength="16"
:placeholder="
$t('other.please_enter') + 'External Key of Address'
"
></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<c-form-item label="" prop="fttp.usrget.sdamod.seainf">
<c-input
v-model="model.fttp.usrget.sdamod.seainf"
:placeholder="$t('other.please_enter') + ''"
></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<c-form-item label="" prop="fttp.trop.ptsget.sdamod.seainf">
<c-input
v-model="model.fttp.trop.ptsget.sdamod.seainf"
:placeholder="$t('other.please_enter') + ''"
></c-input>
</c-form-item>
</c-col>
</c-col>
<c-col :span="24">
<!-- S0000088 : 清算中心负责人 -->
<c-col :span="8">
<c-form-item :label="$t('fttp.S0000088')" prop="ftdgrp.rec.usr">
<c-input
v-model="model.ftdgrp.rec.usr"
maxlength="8"
:placeholder="$t('other.please_enter') + $t('fttp.S0000088')"
></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<c-form-item label="Address Block" prop="ftdgrp.tro.pts.adrblk">
<c-input
type="textarea"
v-model="model.ftdgrp.tro.pts.adrblk"
maxlength="35"
show-word-limit
:placeholder="$t('other.please_enter') + 'Address Block'"
></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<c-form-item label="Chinese address" prop="ftdgrp.tro.dbfadrblkcn">
<c-input
type="textarea"
v-model="model.ftdgrp.tro.dbfadrblkcn"
maxlength="35"
show-word-limit
:placeholder="$t('other.please_enter') + 'Chinese address'"
></c-input>
</c-form-item>
</c-col>
</c-col>
<c-col :span="24">
<!-- S0000083 : 头寸调拨金额 -->
<c-col :span="8">
<el-form-item :label="$t('fttp.S0000083')" prop="ftdgrp.cbs.max.cur">
<c-select <c-select
v-model="model.ftdgrp.cbs.max.cur" v-model="model.ftdgrp.cbs.max.cur"
style="width: 100%" style="width: 100%"
:placeholder="$t('other.please_enter') + $t('fttp.S0000083')"
> >
<template slot="footer">
<c-button
size="small"
style="margin-left: 5px"
type="primary"
>
i
</c-button>
</template>
</c-select> </c-select>
</el-form-item> </c-fullbox>
</c-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="14">
<c-form-item :label="$t('fttp.S0000083')" prop="ftdgrp.cbs.max.amt"> <c-form-item label-width="10px" prop="ftdgrp.cbs.max.amt">
<c-input <c-input v-model="model.ftdgrp.cbs.max.amt"></c-input>
v-model="model.ftdgrp.cbs.max.amt"
:placeholder="$t('other.please_enter') + $t('fttp.S0000083')"
></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
</c-col>
<!-- S0000084 : 调拨日期 --> <!-- S0000084 : 调拨日期 -->
<c-col :span="24">
<c-col :span="8"> <c-form-item
<el-form-item :label="$t('fttp.S0000084')" prop="ftdgrp.rec.opndat"> :label="$t('fttp.Date of Creation')"
prop="ftdgrp.rec.opndat"
>
<c-date-picker <c-date-picker
type="date" type="date"
v-model="model.ftdgrp.rec.opndat" v-model="model.ftdgrp.rec.opndat"
style="width: 100%" style="width: 100%"
:placeholder="$t('other.please_enter') + $t('fttp.S0000084')"
></c-date-picker> ></c-date-picker>
</el-form-item> </c-form-item>
</c-col>
</c-col> </c-col>
<c-col :span="24">
<!-- S0000085 : 起息日 --> <!-- S0000085 : 起息日 -->
<c-col :span="24">
<c-col :span="8"> <c-form-item :label="$t('fttp.Value Date')" prop="ftdgrp.rec.valdat">
<el-form-item :label="$t('fttp.S0000085')" prop="ftdgrp.rec.valdat">
<c-date-picker <c-date-picker
type="date" type="date"
v-model="model.ftdgrp.rec.valdat" v-model="model.ftdgrp.rec.valdat"
style="width: 100%" style="width: 100%"
:placeholder="$t('other.please_enter') + $t('fttp.S0000085')"
></c-date-picker> ></c-date-picker>
</el-form-item> </c-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="Trade-out Account" prop="fttp.troact">
<c-select
v-model="model.fttp.troact"
style="width: 100%"
:placeholder="$t('other.please_enter') + 'Trade-out Account'"
>
</c-select>
</el-form-item>
</c-col> </c-col>
<!-- S0000025 : 备注 --> <!-- S0000025 : 备注 -->
<c-col :span="24">
<c-col :span="8"> <c-form-item :label="$t('fttp.Remark')" prop="ftdgrp.blk.remark">
<c-form-item :label="$t('fttp.S0000025')" prop="ftdgrp.blk.remark">
<c-input <c-input
type="textarea" type="textarea"
v-model="model.ftdgrp.blk.remark" v-model="model.ftdgrp.blk.remark"
:rows="3"
maxlength="35" maxlength="35"
show-word-limit show-word-limit
:placeholder="$t('other.please_enter') + $t('fttp.S0000025')"
></c-input> ></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
</c-col>
<c-col :span="24"> <c-col :span="24">
<c-form-item :label="$t('fttp.Beneficiary')" prop="fttp.benact">
<!-- S0000079 : 头寸调入行 --> <c-fullbox>
<c-input v-model="model.fttp.benact" maxlength="34"></c-input>
<c-col :span="8"> <template slot="footer">
<c-form-item :label="$t('fttp.S0000079')" prop="ftdgrp.tri.pts.ref"> <c-button size="small" style="margin-left: 5px" type="primary">
<c-input i
v-model="model.ftdgrp.tri.pts.ref" </c-button>
maxlength="20" <c-button size="small" style="margin-left: 5px" type="primary">
:placeholder="$t('other.please_enter') + $t('fttp.S0000079')" Details
></c-input> </c-button>
</template>
</c-fullbox>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="24">
<c-form-item <c-form-item prop="ftdgrp.ben.pts.nam">
label="Drag Drop Sender"
prop="fttp.trip.ptsget.sdamod.dadsnd"
>
<c-input <c-input
v-model="model.fttp.trip.ptsget.sdamod.dadsnd" v-model="model.ftdgrp.ben.pts.nam"
:placeholder="$t('other.please_enter') + 'Drag Drop Sender'" maxlength="40"
disabled
></c-input> ></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
<!-- S0000104 : 报文类型 -->
<c-col :span="8"> <c-col :span="24">
<c-form-item <c-form-item :label="$t('fttp.Message Type')" prop="fttp.msgtyp">
label="External Key of Address" <c-select v-model="model.fttp.msgtyp" style="width: 100%">
prop="ftdgrp.tri.pts.extkey" </c-select>
>
<c-input
v-model="model.ftdgrp.tri.pts.extkey"
maxlength="16"
:placeholder="
$t('other.please_enter') + 'External Key of Address'
"
></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="12">
<!-- S0000078 : 头寸调出行 -->
<c-col :span="24"> <c-col :span="24">
<c-form-item
:label="$t('fttp.Long Position Bank')"
<c-col :span="8"> prop="ftdgrp.tro.pts.ref"
<c-form-item label="" prop="fttp.trip.ptsget.sdamod.seainf"> >
<c-input <c-input
v-model="model.fttp.trip.ptsget.sdamod.seainf" v-model="model.ftdgrp.tro.pts.ref"
:placeholder="$t('other.please_enter') + ''" maxlength="20"
></c-input> ></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
</c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="8"> <c-form-item label="" prop="fttp.usr.extkey">
<c-button size="small" type="primary" @click="onTripDet"> <c-fullbox>
{{ $t("ptsp.CF000081") }} <c-input v-model="model.fttp.usr.extkey" maxlength="8"></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary">
i
</c-button> </c-button>
</c-col> <c-button size="small" style="margin-left: 5px" type="primary">
<!-- S0000102 : 头寸调拨受益人 --> Details
</c-button>
<c-col :span="8"> </template>
<c-form-item </c-fullbox>
label="Drag Drop Sender"
prop="fttp.benp.ptsget.sdamod.dadsnd"
>
<c-input
v-model="model.fttp.benp.ptsget.sdamod.dadsnd"
:placeholder="$t('other.please_enter') + 'Drag Drop Sender'"
></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="24">
<c-col :span="8"> <c-form-item label="" prop="ftdgrp.tro.pts.adrblk">
<c-form-item label="Address Block" prop="ftdgrp.tri.pts.adrblk">
<c-input <c-input
type="textarea" type="textarea"
v-model="model.ftdgrp.tri.pts.adrblk" v-model="model.ftdgrp.tro.pts.adrblk"
:rows="3"
maxlength="35" maxlength="35"
show-word-limit show-word-limit
:placeholder="$t('other.please_enter') + 'Address Block'"
></c-input> ></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
</c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="8"> <c-form-item label="" prop="fttp.troact">
<c-form-item label="Chinese address" prop="ftdgrp.tri.dbfadrblkcn"> <c-select v-model="model.fttp.troact" style="width: 100%">
<c-input </c-select>
type="textarea"
v-model="model.ftdgrp.tri.dbfadrblkcn"
maxlength="35"
show-word-limit
:placeholder="$t('other.please_enter') + 'Chinese address'"
></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="24">
<c-col :span="8">
<c-form-item <c-form-item
label="External Key of Address" label="Short Position Bank"
prop="ftdgrp.ben.pts.extkey" prop="fttp.trop.ptsget.sdamod.dadsnd"
> >
<c-input <c-input v-model="model.fttp.trop.ptsget.sdamod.dadsnd"></c-input>
v-model="model.ftdgrp.ben.pts.extkey"
maxlength="16"
:placeholder="
$t('other.please_enter') + 'External Key of Address'
"
></c-input>
</c-form-item>
</c-col>
<c-col :span="8">
<c-form-item label="" prop="fttp.benp.ptsget.sdamod.seainf">
<c-input
v-model="model.fttp.benp.ptsget.sdamod.seainf"
:placeholder="$t('other.please_enter') + ''"
></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
</c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="8"> <c-form-item prop="ftdgrp.tro.pts.extkey">
<c-button size="small" type="primary" @click="onBenpDet"> <c-fullbox>
{{ $t("ptsp.CF000082") }}
</c-button>
</c-col>
<c-col :span="8">
<c-form-item label="Name of Party" prop="ftdgrp.ben.pts.nam">
<c-input <c-input
v-model="model.ftdgrp.ben.pts.nam" v-model="model.ftdgrp.tro.pts.extkey"
maxlength="40" maxlength="16"
:placeholder="$t('other.please_enter') + 'Name of Party'"
></c-input> ></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">
Details
</c-button>
</template>
</c-fullbox>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="24">
<c-col :span="8"> <c-form-item label="Address Block" prop="ftdgrp.tri.pts.adrblk">
<c-form-item :label="$t('fttp.S0000113')" prop="fttp.benact">
<c-input <c-input
v-model="model.fttp.benact" type="textarea"
maxlength="34" v-model="model.ftdgrp.tri.pts.adrblk"
:placeholder="$t('other.please_enter') + $t('fttp.S0000113')" :rows="3"
maxlength="35"
show-word-limit
></c-input> ></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
</c-col>
<c-col :span="24"> <c-col :span="24">
<!-- S0000113 : Ben Trade-in Account --> <c-form-item prop="fttp.triact">
<c-select v-model="model.fttp.triact" style="width: 100%">
<c-col :span="8">
<el-form-item label="Trade-in Account" prop="fttp.triact">
<c-select
v-model="model.fttp.triact"
style="width: 100%"
:placeholder="$t('other.please_enter') + 'Trade-in Account'"
>
</c-select> </c-select>
</el-form-item> </c-form-item>
</c-col>
<!-- S0000104 : 报文类型 -->
<c-col :span="8">
<el-form-item :label="$t('fttp.S0000104')" prop="fttp.msgtyp">
<c-select
v-model="model.fttp.msgtyp"
style="width: 100%"
:placeholder="$t('other.please_enter') + $t('fttp.S0000104')"
>
</c-select>
</el-form-item>
</c-col> </c-col>
</c-col> </c-col>
</el-row> </el-row>
...@@ -406,19 +255,17 @@ ...@@ -406,19 +255,17 @@
<script> <script>
import Api from "~/service/Api"; import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import event from "../event";
import Event from "../event/Event";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [event],
data() { data() {
return {}; return {};
}, },
methods: { ...Event }, methods: {},
created: function () {}, created: function () {},
}; };
</script> </script>
<style> <style></style>
</style>
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
import Api from "~/service/Api" import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Event from "../event/Event" import Event from "../event"
export default { export default {
inject: ['root'], inject: ['root'],
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
import Api from "~/service/Api" import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Event from "../event/Event" import Event from "../event"
export default { export default {
inject: ['root'], inject: ['root'],
......
<template> <template>
<div class="eContainer"> <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-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"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--fttpcm PD000098 Confirmation --> <el-tab-pane label="概要" name="cnfp">
<el-tab-pane :label="$t('fttpcm.PD000098')" name="cnfp"> <m-cnfp :model="model" :codes="codes" />
<m-cnfp :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<!--fttpcm PD000100 MT199 --> <el-tab-pane label="费用/账务" name="setpan">
<el-tab-pane :label="$t('fttpcm.PD000100')" name="mt199"> <c-content>
<m-mt199 :model="model" :codes="codes"/> <m-setpan :codes="codes" :model="model" />
</c-content>
</el-tab-pane> </el-tab-pane>
<!--fttpcm PD000101 MT199 --> <el-tab-pane label="报文/面函" name="docpan">
<el-tab-pane :label="$t('fttpcm.PD000101')" name="ftt199l1"> <c-content>
<m-ftt199l1 :model="model" :codes="codes"/> <m-docpan :codes="codes" :model="model" />
</c-content>
</el-tab-pane> </el-tab-pane>
<!--fttpcm PD000100 MT199 -->
<!-- <el-tab-pane :label="$t('fttpcm.PD000100')" name="mt199">
<m-mt199 :model="model" :codes="codes" />
</el-tab-pane> -->
<!--fttpcm PD000101 MT199 -->
<!-- <el-tab-pane :label="$t('fttpcm.PD000101')" name="ftt199l1">
<m-ftt199l1 :model="model" :codes="codes" />
</el-tab-pane> -->
</c-tabs> </c-tabs>
</el-form> </el-form>
<c-function-btn
:handleCheck="handleCheck"
:handleStash="handleStash"
:handleSubmit="handleSubmit"
@handleSureWarning="handleSureWarning"
ref="commonBtn"
></c-function-btn>
</c-page>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Fttpcm from "../model" import Fttpcm from "../model"
import commonProcess from "~/mixin/commonProcess" import event from "../event";
import Check from "../model/Check" import operationFunc from "~/mixin/operationFunc";
import Default from "../model/Default" import commonDepend from "~/mixin/commonDepend";
import Pattern from "../model/Pattern" import buildFn from "../event/buildCommons.js";
import Check from "../model/check";
import Cnfp from "./Cnfp" import Cnfp from "./Cnfp"
import Mt199 from "./Mt199" import Mt199 from "./Mt199"
import Ftt199l1 from "./Ftt199l1" import Ftt199l1 from "./Ftt199l1"
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
export default { export default {
...@@ -37,25 +60,23 @@ export default { ...@@ -37,25 +60,23 @@ export default {
"m-cnfp" : Cnfp, "m-cnfp" : Cnfp,
"m-mt199" : Mt199, "m-mt199" : Mt199,
"m-ftt199l1" : Ftt199l1, "m-ftt199l1" : Ftt199l1,
"m-setpan": Setpan,
"m-docpan": Docpan
}, },
provide() { provide() {
return { return {
root: this root: this
} }
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [operationFunc, commonDepend, event, buildFn],
data(){ data(){
return { return {
tabVal: "cnfp", tabVal: "cnfp",
trnName: "fttpcm", trnName: "fttpcm",
trnType: "", trnType: "",
model: new Fttpcm().data, model: new Fttpcm().data,
checkRules: Check, rules: Check,
defaultRules: Default, codes: { ...CodeTable },
pattern: Pattern,
rules: null,
codes: {
},
} }
}, },
methods:{ methods:{
......
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