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