Commit 87d73847 by hewei

fxtsqo公共

parent 15c3b713
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 = Utils.formatPtspta(model.fxdgrp, this.buildPtspta);
return {
rec: {
objtyp: "FXD",
objinr: model.fxdgrp.rec.inr,
ownref: model.fxdgrp.rec.ownref,
},
cbsMap: {
MAX: model.fxdgrp.cbs.max,
NOM1: model.fxdgrp.cbs.nom1,
},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
}
}
}
}
\ No newline at end of file
...@@ -2,17 +2,15 @@ import Api from "~/service/Api" ...@@ -2,17 +2,15 @@ import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
export default { export default {
async onAplpDet(){ async onAplpDet() {
let rtnmsg = await this.executeRule("aplp.det") let rtnmsg = await this.executeRule("aplp.det")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{ //TODO 处理数据逻辑
//TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'}); }
} },
},
} }
\ No newline at end of file
import Api from "~/service/Api" import Api from "~/service/Api";
import Pts from "../Common/Pts" import Pts from "~/page/Model/Common/Pts";
import Pub from "~/components/business/commonModel/index.js";
export default class Fxtsqo{ export default class Fxtsqo {
constructor () { constructor() {
this.data = { this.data = {
fxdgrp:{ fxdgrp: {
rec:{ rec: {
ownref:"", // 结售汇业务参考号 .fxdgrp.rec.ownref ownref: "", // 结售汇业务参考号 .fxdgrp.rec.ownref
nam:"", // 名称 .fxdgrp.rec.nam nam: "", // 名称 .fxdgrp.rec.nam
fxtyp:"", // 结售汇类型 .fxdgrp.rec.fxtyp fxtyp: "", // 结售汇类型 .fxdgrp.rec.fxtyp
opndat:"", // 登记日期 .fxdgrp.rec.opndat opndat: "", // 登记日期 .fxdgrp.rec.opndat
valdat:"", // 起息日 .fxdgrp.rec.valdat valdat: "", // 起息日 .fxdgrp.rec.valdat
setdat:"", // 远期交割日 .fxdgrp.rec.setdat setdat: "", // 远期交割日 .fxdgrp.rec.setdat
setdatfrm:"", // 择期交割起始日 .fxdgrp.rec.setdatfrm setdatfrm: "", // 择期交割起始日 .fxdgrp.rec.setdatfrm
setdatto:"", // 择期交割截止日 .fxdgrp.rec.setdatto setdatto: "", // 择期交割截止日 .fxdgrp.rec.setdatto
rat:"", // 对外牌价 .fxdgrp.rec.rat rat: "", // 对外牌价 .fxdgrp.rec.rat
midrat:"", // 中间价 .fxdgrp.rec.midrat midrat: "", // 中间价 .fxdgrp.rec.midrat
quoref:"", // 询价编号 .fxdgrp.rec.quoref quoref: "", // 询价编号 .fxdgrp.rec.quoref
fudref:"", // 资金部编号 .fxdgrp.rec.fudref fudref: "", // 资金部编号 .fxdgrp.rec.fudref
trnman:"", // 交易主体 .fxdgrp.rec.trnman trnman: "", // 交易主体 .fxdgrp.rec.trnman
trdint:"", // 结售汇类型 .fxdgrp.rec.trdint trdint: "", // 结售汇类型 .fxdgrp.rec.trdint
trdout:"", // 结售汇类型 .fxdgrp.rec.trdout trdout: "", // 结售汇类型 .fxdgrp.rec.trdout
ownusr:"", // 业务负责人 .fxdgrp.rec.ownusr ownusr: "", // 业务负责人 .fxdgrp.rec.ownusr
dsp:"", // 外币结算账号 .fxdgrp.rec.dsp dsp: "", // 外币结算账号 .fxdgrp.rec.dsp
acc:"", // 外币结算账号 .fxdgrp.rec.acc acc: "", // 外币结算账号 .fxdgrp.rec.acc
dsp2:"", // 本币结算账号 .fxdgrp.rec.dsp2 dsp2: "", // 本币结算账号 .fxdgrp.rec.dsp2
acc2:"", // 本币结算账号 .fxdgrp.rec.acc2 acc2: "", // 本币结算账号 .fxdgrp.rec.acc2
}, },
apl:{ apl: {
pts:new Pts().data, pts: new Pts().data,
dbfadrblkcn:"", // Chinese address .fxdgrp.apl.dbfadrblkcn dbfadrblkcn: "", // Chinese address .fxdgrp.apl.dbfadrblkcn
}, },
cbs:{ cbs: {
max:{ max: {
cur:"", // Currency .fxdgrp.cbs.max.cur cur: "", // Currency .fxdgrp.cbs.max.cur
amt:"", // Balance .fxdgrp.cbs.max.amt amt: "", // Balance .fxdgrp.cbs.max.amt
}, },
nom1:{ nom1: {
cur:"", // Currency .fxdgrp.cbs.nom1.cur cur: "", // Currency .fxdgrp.cbs.nom1.cur
amt:"", // Balance .fxdgrp.cbs.nom1.amt amt: "", // Balance .fxdgrp.cbs.nom1.amt
}, },
}, },
blk:{ blk: {
remark:"", // 备注 .fxdgrp.blk.remark remark: "", // 备注 .fxdgrp.blk.remark
}, },
},
fxtp: {
aplp: {
ptsget: {
sdamod: {
seainf: "", // .fxtp.aplp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .fxtp.aplp.ptsget.sdamod.dadsnd
}, },
fxtp:{ },
aplp:{ },
ptsget:{ amtlab: "", // Amount Label .fxtp.amtlab
sdamod:{ cnylab: "", // Amount LabelCNY .fxtp.cnylab
seainf:"", // .fxtp.aplp.ptsget.sdamod.seainf frgchk: "", // 外币 .fxtp.frgchk
dadsnd:"", // Drag Drop Sender .fxtp.aplp.ptsget.sdamod.dadsnd cnychk: "", // 人民币 .fxtp.cnychk
}, cshflg: "", // 钞汇标志 .fxtp.cshflg
}, },
}, mtabut: {
amtlab:"", // Amount Label .fxtp.amtlab clsflg: "", // Close Flag .mtabut.clsflg
cnylab:"", // Amount LabelCNY .fxtp.cnylab },
frgchk:"", // 外币 .fxtp.frgchk fxtapll1blk: "", // XMLPanel fxtapll1的内置block .fxtapll1blk
cnychk:"", // 人民币 .fxtp.cnychk fxtapll2blk: "", // XMLPanel fxtapll2的内置block .fxtapll2blk
cshflg:"", // 钞汇标志 .fxtp.cshflg pageId: "", // ctx的key
}, setmod: new Pub().data.Setmod,
mtabut:{ docpan: new Pub().data.Docpan,
clsflg:"", // Close Flag .mtabut.clsflg liaccv: new Pub().data.Liaccv,
}, }
fxtapll1blk:"", // XMLPanel fxtapll1的内置block .fxtapll1blk }
fxtapll2blk:"", // XMLPanel fxtapll2的内置block .fxtapll2blk
pageId: "" // ctx的key
}
}
} }
\ No newline at end of file
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<!-- S0000002 : 结售汇业务参考号 -->
<!-- 结售汇业务参考号 -->
<c-col :span="12"> <c-col :span="12">
<c-form-item :label="$t('fxtsqo.S0000002')" prop="fxdgrp.rec.ownref"> <c-form-item :label="$t('fxtsqo.Reference')" prop="fxdgrp.rec.ownref">
<c-input v-model="model.fxdgrp.rec.ownref" maxlength="16" :placeholder="$t('other.please_enter')+$t('fxtsqo.S0000002')"></c-input> <c-input v-model="model.fxdgrp.rec.ownref" maxlength="16"
</c-form-item> :placeholder="$t('other.please_enter') + $t('fxtsqo.Reference')"></c-input>
</c-col> </c-form-item>
<!-- S0000003 : 名称 --> </c-col>
<c-col :span="12"> <!-- 名称 -->
<c-form-item :label="$t('fxtsqo.S0000003')" prop="fxdgrp.rec.nam"> <c-col :span="12">
<c-input v-model="model.fxdgrp.rec.nam" maxlength="40" :placeholder="$t('other.please_enter')+$t('fxtsqo.S0000003')"></c-input> <c-form-item :label="$t('fxtsqo.Name')" prop="fxdgrp.rec.nam">
</c-form-item> <c-input v-model="model.fxdgrp.rec.nam" maxlength="40"
</c-col> :placeholder="$t('other.please_enter') + $t('fxtsqo.Name')"></c-input>
<!-- S0000006 : 结售汇申请人 --> </c-form-item>
<!-- S0000027 : 编号 --> </c-col>
<c-col :span="12"> <!-- 结售汇申请人 -->
<c-form-item :label="$t('fxtsqo.S0000006')" prop="fxdgrp.apl.pts.ref"> <!-- 编号 -->
<c-input v-model="model.fxdgrp.apl.pts.ref" maxlength="20" :placeholder="$t('other.please_enter')+$t('fxtsqo.S0000006')"></c-input> <c-col :span="12">
</c-form-item> <c-form-item :label="$t('fxtsqo.Applicant')" prop="fxdgrp.apl.pts.ref">
</c-col> <c-input v-model="model.fxdgrp.apl.pts.ref" maxlength="20"
<!-- S0000004 : 业务负责人 --> :placeholder="$t('other.please_enter') + $t('fxtsqo.Applicant')"></c-input>
</c-form-item>
<c-col :span="12"> </c-col>
<c-form-item :label="$t('fxtsqo.S0000004')" prop="fxdgrp.rec.ownusr">
<c-input v-model="model.fxdgrp.rec.ownusr" maxlength="8" :placeholder="$t('other.please_enter')+$t('fxtsqo.S0000004')"></c-input> <!-- 业务负责人 -->
</c-form-item> <c-col :span="12">
</c-col> <c-form-item :label="$t('fxtsqo.Responsible')" prop="fxdgrp.rec.ownusr">
<c-input v-model="model.fxdgrp.rec.ownusr" maxlength="8"
<c-col :span="12"> :placeholder="$t('other.please_enter') + $t('fxtsqo.Responsible')"></c-input>
<c-form-item label="Drag Drop Sender" prop="fxtp.aplp.ptsget.sdamod.dadsnd"> </c-form-item>
<c-input v-model="model.fxtp.aplp.ptsget.sdamod.dadsnd" :placeholder="$t('other.please_enter')+'Drag Drop Sender'"></c-input> </c-col>
</c-form-item>
</c-col> <c-col :span="12">
<c-form-item label="Drag Drop Sender" prop="fxtp.aplp.ptsget.sdamod.dadsnd">
<c-col :span="12"> <c-input v-model="model.fxtp.aplp.ptsget.sdamod.dadsnd"
<c-form-item label="External Key of Address" prop="fxdgrp.apl.pts.extkey"> :placeholder="$t('other.please_enter') + 'Drag Drop Sender'"></c-input>
<c-input v-model="model.fxdgrp.apl.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 :span="12">
<c-col :span="12"> <c-form-item label="External Key of Address" prop="fxdgrp.apl.pts.extkey">
<c-form-item label="" prop="fxtp.aplp.ptsget.sdamod.seainf"> <c-input v-model="model.fxdgrp.apl.pts.extkey" maxlength="16"
<c-input v-model="model.fxtp.aplp.ptsget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input> :placeholder="$t('other.please_enter') + 'External Key of Address'"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<c-button size="small" type="primary" @click="onAplpDet"> <c-form-item label="" prop="fxtp.aplp.ptsget.sdamod.seainf">
{{$t('ptsp.CF000081')}} <c-input v-model="model.fxtp.aplp.ptsget.sdamod.seainf"
</c-button> :placeholder="$t('other.please_enter') + ''"></c-input>
</c-col> </c-form-item>
<!-- S0000005 : 结售汇类型 --> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item :label="$t('fxtsqo.S0000005')" prop="fxdgrp.rec.fxtyp"> <c-button size="small" type="primary" @click="onAplpDet">
<c-select v-model="model.fxdgrp.rec.fxtyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtsqo.S0000005')"> {{ $t('ptsp.CF000081') }}
</c-select> </c-button>
</el-form-item> </c-col>
</c-col> <!-- S0000005 : 结售汇类型 -->
<c-col :span="12"> <c-col :span="12">
<c-form-item label="Address Block" prop="fxdgrp.apl.pts.adrblk"> <el-form-item :label="$t('fxtsqo.S0000005')" prop="fxdgrp.rec.fxtyp">
<c-input type="textarea" v-model="model.fxdgrp.apl.pts.adrblk" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Address Block'" ></c-input> <c-select v-model="model.fxdgrp.rec.fxtyp" style="width:100%"
</c-form-item> :placeholder="$t('other.please_enter') + $t('fxtsqo.S0000005')">
</c-col> </c-select>
</el-form-item>
<c-col :span="12"> </c-col>
<c-form-item label="Chinese address" prop="fxdgrp.apl.dbfadrblkcn">
<c-input type="textarea" v-model="model.fxdgrp.apl.dbfadrblkcn" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Chinese address'" ></c-input> <c-col :span="12">
</c-form-item> <c-form-item label="Address Block" prop="fxdgrp.apl.pts.adrblk">
</c-col> <c-input type="textarea" v-model="model.fxdgrp.apl.pts.adrblk" maxlength="35" show-word-limit
:placeholder="$t('other.please_enter') + 'Address Block'"></c-input>
<c-col :span="12"> </c-form-item>
<span v-text="model.fxtp.amtlab" data-path=".fxtp.amtlab" > </span> </c-col>
</c-col>
<c-col :span="12">
<c-col :span="12"> <c-form-item label="Chinese address" prop="fxdgrp.apl.dbfadrblkcn">
<el-form-item label="Currency" prop="fxdgrp.cbs.max.cur"> <c-input type="textarea" v-model="model.fxdgrp.apl.dbfadrblkcn" maxlength="35" show-word-limit
<c-select v-model="model.fxdgrp.cbs.max.cur" style="width:100%" :placeholder="$t('other.please_enter')+'Currency'"> :placeholder="$t('other.please_enter') + 'Chinese address'"></c-input>
</c-select> </c-form-item>
</el-form-item> </c-col>
</c-col>
<c-col :span="12">
<c-col :span="12"> <span v-text="model.fxtp.amtlab" data-path=".fxtp.amtlab"> </span>
<c-form-item label="Balance" prop="fxdgrp.cbs.max.amt"> </c-col>
<c-input v-model="model.fxdgrp.cbs.max.amt" :placeholder="$t('other.please_enter')+'Balance'"></c-input>
</c-form-item> <c-col :span="12">
</c-col> <el-form-item label="Currency" prop="fxdgrp.cbs.max.cur">
<c-select v-model="model.fxdgrp.cbs.max.cur" style="width:100%"
<c-col :span="12"> :placeholder="$t('other.please_enter') + 'Currency'">
<c-checkbox v-model="model.fxtp.frgchk">{{$t('fxtp.C0000100')}}</c-checkbox> </c-select>
</c-col> </el-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.fxtp.cnylab" data-path=".fxtp.cnylab" > </span> <c-col :span="12">
</c-col> <c-form-item label="Balance" prop="fxdgrp.cbs.max.amt">
<c-input v-model="model.fxdgrp.cbs.max.amt" :placeholder="$t('other.please_enter') + 'Balance'"></c-input>
<c-col :span="12"> </c-form-item>
<el-form-item label="Currency" prop="fxdgrp.cbs.nom1.cur"> </c-col>
<c-select v-model="model.fxdgrp.cbs.nom1.cur" style="width:100%" :placeholder="$t('other.please_enter')+'Currency'">
</c-select> <c-col :span="12">
</el-form-item> <c-checkbox v-model="model.fxtp.frgchk">{{ $t('fxtp.C0000100') }}</c-checkbox>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<c-form-item label="Balance" prop="fxdgrp.cbs.nom1.amt"> <span v-text="model.fxtp.cnylab" data-path=".fxtp.cnylab"> </span>
<c-input v-model="model.fxdgrp.cbs.nom1.amt" :placeholder="$t('other.please_enter')+'Balance'"></c-input> </c-col>
</c-form-item>
</c-col> <c-col :span="12">
<el-form-item label="Currency" prop="fxdgrp.cbs.nom1.cur">
<c-col :span="12"> <c-select v-model="model.fxdgrp.cbs.nom1.cur" style="width:100%"
<c-checkbox v-model="model.fxtp.cnychk">{{$t('fxtp.C0000101')}}</c-checkbox> :placeholder="$t('other.please_enter') + 'Currency'">
</c-col> </c-select>
<!-- S0000060 : 对外牌价 --> </el-form-item>
</c-col>
<c-col :span="12">
<c-form-item :label="$t('fxtp.S0000060')" prop="fxdgrp.rec.rat"> <c-col :span="12">
<c-input v-model="model.fxdgrp.rec.rat" :placeholder="$t('other.please_enter')+$t('fxtp.S0000060')"></c-input> <c-form-item label="Balance" prop="fxdgrp.cbs.nom1.amt">
</c-form-item> <c-input v-model="model.fxdgrp.cbs.nom1.amt" :placeholder="$t('other.please_enter') + 'Balance'"></c-input>
</c-col> </c-form-item>
<!-- S0000062 : 询价编号 --> </c-col>
<c-col :span="12"> <c-col :span="12">
<c-form-item :label="$t('fxtp.S0000062')" prop="fxdgrp.rec.quoref"> <c-checkbox v-model="model.fxtp.cnychk">{{ $t('fxtp.C0000101') }}</c-checkbox>
<c-input v-model="model.fxdgrp.rec.quoref" maxlength="16" :placeholder="$t('other.please_enter')+$t('fxtp.S0000062')"></c-input> </c-col>
</c-form-item> <!-- S0000060 : 对外牌价 -->
</c-col>
<!-- S0000091 : 钞汇标志 --> <c-col :span="12">
<!-- S0000061 : 中间价 --> <c-form-item :label="$t('fxtp.S0000060')" prop="fxdgrp.rec.rat">
<c-input v-model="model.fxdgrp.rec.rat"
<c-col :span="12"> :placeholder="$t('other.please_enter') + $t('fxtp.S0000060')"></c-input>
<c-form-item :label="$t('fxtp.S0000061')" prop="fxdgrp.rec.midrat"> </c-form-item>
<c-input v-model="model.fxdgrp.rec.midrat" :placeholder="$t('other.please_enter')+$t('fxtp.S0000061')"></c-input> </c-col>
</c-form-item> <!-- S0000062 : 询价编号 -->
</c-col>
<c-col :span="12">
<c-col :span="12"> <c-form-item :label="$t('fxtp.S0000062')" prop="fxdgrp.rec.quoref">
<el-form-item label="钞汇标志" prop="fxtp.cshflg"> <c-input v-model="model.fxdgrp.rec.quoref" maxlength="16"
<c-select v-model="model.fxtp.cshflg" style="width:100%" :placeholder="$t('other.please_enter')+'钞汇标志'"> :placeholder="$t('other.please_enter') + $t('fxtp.S0000062')"></c-input>
</c-select> </c-form-item>
</el-form-item> </c-col>
</c-col> <!-- S0000091 : 钞汇标志 -->
<!-- S0000063 : 资金部编号 --> <!-- S0000061 : 中间价 -->
<c-col :span="12"> <c-col :span="12">
<c-form-item :label="$t('fxtp.S0000063')" prop="fxdgrp.rec.fudref"> <c-form-item :label="$t('fxtp.S0000061')" prop="fxdgrp.rec.midrat">
<c-input v-model="model.fxdgrp.rec.fudref" maxlength="16" :placeholder="$t('other.please_enter')+$t('fxtp.S0000063')"></c-input> <c-input v-model="model.fxdgrp.rec.midrat"
</c-form-item> :placeholder="$t('other.please_enter') + $t('fxtp.S0000061')"></c-input>
</c-col> </c-form-item>
<!-- S0000007 : 登记日期 --> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item :label="$t('fxtsqo.S0000007')" prop="fxdgrp.rec.opndat"> <el-form-item label="钞汇标志" prop="fxtp.cshflg">
<c-date-picker type="date" v-model="model.fxdgrp.rec.opndat" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtsqo.S0000007')"></c-date-picker> <c-select v-model="model.fxtp.cshflg" style="width:100%" :placeholder="$t('other.please_enter') + '钞汇标志'">
</el-form-item> </c-select>
</c-col> </el-form-item>
<!-- S0000008 : 起息日 --> </c-col>
<!-- S0000063 : 资金部编号 -->
<c-col :span="12">
<el-form-item :label="$t('fxtsqo.S0000008')" prop="fxdgrp.rec.valdat"> <c-col :span="12">
<c-date-picker type="date" v-model="model.fxdgrp.rec.valdat" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtsqo.S0000008')"></c-date-picker> <c-form-item :label="$t('fxtp.S0000063')" prop="fxdgrp.rec.fudref">
</el-form-item> <c-input v-model="model.fxdgrp.rec.fudref" maxlength="16"
</c-col> :placeholder="$t('other.please_enter') + $t('fxtp.S0000063')"></c-input>
<!-- S0000009 : 远期交割日 --> </c-form-item>
</c-col>
<c-col :span="12"> <!-- S0000007 : 登记日期 -->
<el-form-item :label="$t('fxtsqo.S0000009')" prop="fxdgrp.rec.setdat">
<c-date-picker type="date" v-model="model.fxdgrp.rec.setdat" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtsqo.S0000009')"></c-date-picker> <c-col :span="12">
</el-form-item> <el-form-item :label="$t('fxtsqo.S0000007')" prop="fxdgrp.rec.opndat">
</c-col> <c-date-picker type="date" v-model="model.fxdgrp.rec.opndat" style="width:100%"
<!-- S0000010 : 择期交割起始日 --> :placeholder="$t('other.please_enter') + $t('fxtsqo.S0000007')"></c-date-picker>
</el-form-item>
<c-col :span="12"> </c-col>
<el-form-item :label="$t('fxtsqo.S0000010')" prop="fxdgrp.rec.setdatfrm"> <!-- S0000008 : 起息日 -->
<c-date-picker type="date" v-model="model.fxdgrp.rec.setdatfrm" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtsqo.S0000010')"></c-date-picker>
</el-form-item> <c-col :span="12">
</c-col> <el-form-item :label="$t('fxtsqo.S0000008')" prop="fxdgrp.rec.valdat">
<!-- S0000011 : 择期交割截止日 --> <c-date-picker type="date" v-model="model.fxdgrp.rec.valdat" style="width:100%"
:placeholder="$t('other.please_enter') + $t('fxtsqo.S0000008')"></c-date-picker>
<c-col :span="12"> </el-form-item>
<el-form-item :label="$t('fxtsqo.S0000011')" prop="fxdgrp.rec.setdatto"> </c-col>
<c-date-picker type="date" v-model="model.fxdgrp.rec.setdatto" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtsqo.S0000011')"></c-date-picker> <!-- S0000009 : 远期交割日 -->
</el-form-item>
</c-col> <c-col :span="12">
<!-- S0000018 : 外币结算账号 --> <el-form-item :label="$t('fxtsqo.S0000009')" prop="fxdgrp.rec.setdat">
<c-date-picker type="date" v-model="model.fxdgrp.rec.setdat" style="width:100%"
<c-col :span="12"> :placeholder="$t('other.please_enter') + $t('fxtsqo.S0000009')"></c-date-picker>
<el-form-item :label="$t('fxtsqo.S0000018')" prop="fxdgrp.rec.dsp"> </el-form-item>
<c-select v-model="model.fxdgrp.rec.dsp" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtsqo.S0000018')"> </c-col>
</c-select> <!-- S0000010 : 择期交割起始日 -->
</el-form-item>
</c-col> <c-col :span="12">
<el-form-item :label="$t('fxtsqo.S0000010')" prop="fxdgrp.rec.setdatfrm">
<c-col :span="12"> <c-date-picker type="date" v-model="model.fxdgrp.rec.setdatfrm" style="width:100%"
<el-form-item :label="$t('fxtsqo.S0000018')" prop="fxdgrp.rec.acc"> :placeholder="$t('other.please_enter') + $t('fxtsqo.S0000010')"></c-date-picker>
<c-select v-model="model.fxdgrp.rec.acc" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtsqo.S0000018')"> </el-form-item>
</c-select> </c-col>
</el-form-item> <!-- S0000011 : 择期交割截止日 -->
</c-col>
<!-- S0000017 : 本币结算账号 --> <c-col :span="12">
<el-form-item :label="$t('fxtsqo.S0000011')" prop="fxdgrp.rec.setdatto">
<c-col :span="12"> <c-date-picker type="date" v-model="model.fxdgrp.rec.setdatto" style="width:100%"
<el-form-item :label="$t('fxtsqo.S0000017')" prop="fxdgrp.rec.dsp2"> :placeholder="$t('other.please_enter') + $t('fxtsqo.S0000011')"></c-date-picker>
<c-select v-model="model.fxdgrp.rec.dsp2" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtsqo.S0000017')"> </el-form-item>
</c-select> </c-col>
</el-form-item> <!-- S0000018 : 外币结算账号 -->
</c-col>
<c-col :span="12">
<c-col :span="12"> <el-form-item :label="$t('fxtsqo.S0000018')" prop="fxdgrp.rec.dsp">
<el-form-item :label="$t('fxtsqo.S0000017')" prop="fxdgrp.rec.acc2"> <c-select v-model="model.fxdgrp.rec.dsp" style="width:100%"
<c-select v-model="model.fxdgrp.rec.acc2" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtsqo.S0000017')"> :placeholder="$t('other.please_enter') + $t('fxtsqo.S0000018')">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<!-- S0000015 : 交易主体 -->
<c-col :span="12">
<c-col :span="12"> <el-form-item :label="$t('fxtsqo.S0000018')" prop="fxdgrp.rec.acc">
<el-form-item :label="$t('fxtsqo.S0000015')" prop="fxdgrp.rec.trnman"> <c-select v-model="model.fxdgrp.rec.acc" style="width:100%"
<c-select v-model="model.fxdgrp.rec.trnman" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtsqo.S0000015')"> :placeholder="$t('other.please_enter') + $t('fxtsqo.S0000018')">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<!-- S0000016 : 结售汇类型 --> <!-- S0000017 : 本币结算账号 -->
<c-col :span="12"> <c-col :span="12">
<el-form-item :label="$t('fxtsqo.S0000016')" prop="fxdgrp.rec.trdint"> <el-form-item :label="$t('fxtsqo.S0000017')" prop="fxdgrp.rec.dsp2">
<c-select v-model="model.fxdgrp.rec.trdint" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtsqo.S0000016')"> <c-select v-model="model.fxdgrp.rec.dsp2" style="width:100%"
</c-select> :placeholder="$t('other.please_enter') + $t('fxtsqo.S0000017')">
</el-form-item> </c-select>
</c-col> </el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('fxtsqo.S0000016')" prop="fxdgrp.rec.trdout"> <c-col :span="12">
<c-select v-model="model.fxdgrp.rec.trdout" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtsqo.S0000016')"> <el-form-item :label="$t('fxtsqo.S0000017')" prop="fxdgrp.rec.acc2">
</c-select> <c-select v-model="model.fxdgrp.rec.acc2" style="width:100%"
</el-form-item> :placeholder="$t('other.please_enter') + $t('fxtsqo.S0000017')">
</c-col> </c-select>
<!-- S0000014 : 备注 --> </el-form-item>
</c-col>
<c-col :span="12"> <!-- S0000015 : 交易主体 -->
<c-form-item :label="$t('fxtsqo.S0000014')" prop="fxdgrp.blk.remark">
<c-input type="textarea" v-model="model.fxdgrp.blk.remark" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+$t('fxtsqo.S0000014')" ></c-input> <c-col :span="12">
</c-form-item> <el-form-item :label="$t('fxtsqo.S0000015')" prop="fxdgrp.rec.trnman">
</c-col> <c-select v-model="model.fxdgrp.rec.trnman" style="width:100%"
:placeholder="$t('other.please_enter') + $t('fxtsqo.S0000015')">
<c-col :span="12"> </c-select>
<c-checkbox v-model="model.mtabut.clsflg">{{$t('mtabut.CF000215')}}</c-checkbox> </el-form-item>
</c-col> </c-col>
</div> <!-- S0000016 : 结售汇类型 -->
</template>
<c-col :span="12">
<el-form-item :label="$t('fxtsqo.S0000016')" prop="fxdgrp.rec.trdint">
<c-select v-model="model.fxdgrp.rec.trdint" style="width:100%"
:placeholder="$t('other.please_enter') + $t('fxtsqo.S0000016')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('fxtsqo.S0000016')" prop="fxdgrp.rec.trdout">
<c-select v-model="model.fxdgrp.rec.trdout" style="width:100%"
:placeholder="$t('other.please_enter') + $t('fxtsqo.S0000016')">
</c-select>
</el-form-item>
</c-col>
<!-- S0000014 : 备注 -->
<c-col :span="12">
<c-form-item :label="$t('fxtsqo.S0000014')" prop="fxdgrp.blk.remark">
<c-input type="textarea" v-model="model.fxdgrp.blk.remark" maxlength="35" show-word-limit
:placeholder="$t('other.please_enter') + $t('fxtsqo.S0000014')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.mtabut.clsflg">{{$t('mtabut.CF000215')}}</c-checkbox>
</c-col>
</div></template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
...@@ -260,19 +288,17 @@ import Event from "../model/Event" ...@@ -260,19 +288,17 @@ import Event from "../model/Event"
export default { export default {
inject: ['root'], inject: ['root'],
props:["model","codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data(){ data() {
return { return {
} }
}, },
methods:{...Event}, methods: { ...Event },
created:function(){ created: function () {
} }
} }
</script> </script>
<style> <style></style>
</style>
<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"> <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" >
<!--fxtsqo PD000001 Quote --> <!--Quote -->
<el-tab-pane :label="$t('fxtsqo.PD000001')" name="quop"> <el-tab-pane :label="$t('fxtsqo.Quote')" name="quop">
<m-quop :model="model" :codes="codes"/> <m-quop :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<!--fxtsqo PD000013 业务凭证 --> <!--业务凭证 -->
<el-tab-pane :label="$t('fxtsqo.PD000013')" name="fxtapll1"> <el-tab-pane :label="$t('fxtsqo.业务凭证')" name="fxtapll1">
<m-fxtapll1 :model="model" :codes="codes"/> <m-fxtapll1 :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<!--fxtsqo PD000019 外汇买卖水单/客户回单 --> <el-tab-pane :label="$t('commonModels.保证金')">
<el-tab-pane :label="$t('fxtsqo.PD000019')" name="fxtapll2"> <c-content>
<m-fxtapll2 :model="model" :codes="codes"/> <m-ccvpan :model="model" :codes="codes"></m-ccvpan>
</c-content>
</el-tab-pane>
<el-tab-pane :label="$t('commonModels.费用/账务')" name="setpan">
<c-content>
<m-setmod :model="model" :codes="codes"></m-setmod>
</c-content>
</el-tab-pane>
<el-tab-pane :label="$t('commonModels.报文/面函')" name="docpan">
<c-content>
<m-docpan :model="model" :codes="codes"></m-docpan>
</c-content>
</el-tab-pane> </el-tab-pane>
<!--外汇买卖水单/客户回单 -->
<!-- <el-tab-pane :label="$t('fxtsqo.外汇买卖水单/客户回单')" name="fxtapll2">
<m-fxtapll2 :model="model" :codes="codes"/>
</el-tab-pane> -->
</c-tabs> </c-tabs>
</el-form> </el-form>
</div> </div>
...@@ -30,6 +45,12 @@ import Quop from "./Quop" ...@@ -30,6 +45,12 @@ import Quop from "./Quop"
import Fxtapll1 from "./Fxtapll1" import Fxtapll1 from "./Fxtapll1"
import Fxtapll2 from "./Fxtapll2" import Fxtapll2 from "./Fxtapll2"
import Setmod from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
import Ccvpan from "~/components/business/ccvpan/views";
import event from "../event";
import buildFn from "../event/buildCommons.js";
export default { export default {
name: "Fxtsqo", name: "Fxtsqo",
...@@ -37,16 +58,19 @@ export default { ...@@ -37,16 +58,19 @@ export default {
"m-quop" : Quop, "m-quop" : Quop,
"m-fxtapll1" : Fxtapll1, "m-fxtapll1" : Fxtapll1,
"m-fxtapll2" : Fxtapll2, "m-fxtapll2" : Fxtapll2,
"m-setmod": Setmod,
"m-docpan": Docpan,
"m-ccvpan": Ccvpan,
}, },
provide() { provide() {
return { return {
root: this root: this
} }
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess,event,buildFn], // 里面包含了Default、Check等的公共处理
data(){ data(){
return { return {
tabVal: "", tabVal: "quop",
trnName: "fxtsqo", trnName: "fxtsqo",
trnType: "", trnType: "",
model: new Fxtsqo().data, model: new Fxtsqo().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