Commit 4019b2ca by WeiCong

结售汇平盘登记

parent 40dbc8d3
const BusRouter = [
const BusRouter = [ // { path: 'fttatt', component: ()=>import("./Fttatt/views"), name: 'Fttatt', meta: { title: 'Fttatt' } ,module:'Funds'},
// { path: 'fttatt', component: ()=>import("./Fttatt/views"), name: 'Fttatt', meta: { title: 'Fttatt' } ,module:'Funds'}, // { path: 'fttfcm', component: ()=>import("./Fttfcm/views"), name: 'Fttfcm', meta: { title: 'Fttfcm' } ,module:'Funds'},
// { path: 'fttfcm', component: ()=>import("./Fttfcm/views"), name: 'Fttfcm', meta: { title: 'Fttfcm' } ,module:'Funds'}, // { path: 'fttfcn', component: ()=>import("./Fttfcn/views"), name: 'Fttfcn', meta: { title: 'Fttfcn' } ,module:'Funds'},
// { path: 'fttfcn', component: ()=>import("./Fttfcn/views"), name: 'Fttfcn', meta: { title: 'Fttfcn' } ,module:'Funds'}, // { path: 'fttfee', component: ()=>import("./Fttfee/views"), name: 'Fttfee', meta: { title: 'Fttfee' } ,module:'Funds'},
// { path: 'fttfee', component: ()=>import("./Fttfee/views"), name: 'Fttfee', meta: { title: 'Fttfee' } ,module:'Funds'}, // { path: 'fttfmt', component: ()=>import("./Fttfmt/views"), name: 'Fttfmt', meta: { title: 'Fttfmt' } ,module:'Funds'},
// { path: 'fttfmt', component: ()=>import("./Fttfmt/views"), name: 'Fttfmt', meta: { title: 'Fttfmt' } ,module:'Funds'}, // { path: 'fttfre', component: ()=>import("./Fttfre/views"), name: 'Fttfre', meta: { title: 'Fttfre' } ,module:'Funds'},
// { path: 'fttfre', component: ()=>import("./Fttfre/views"), name: 'Fttfre', meta: { title: 'Fttfre' } ,module:'Funds'}, // { path: 'fttpcm', component: ()=>import("./Fttpcm/views"), name: 'Fttpcm', meta: { title: 'Fttpcm' } ,module:'Funds'},
// { path: 'fttpcm', component: ()=>import("./Fttpcm/views"), name: 'Fttpcm', meta: { title: 'Fttpcm' } ,module:'Funds'}, // { path: 'fttpcn', component: ()=>import("./Fttpcn/views"), name: 'Fttpcn', meta: { title: 'Fttpcn' } ,module:'Funds'},
// { path: 'fttpcn', component: ()=>import("./Fttpcn/views"), name: 'Fttpcn', meta: { title: 'Fttpcn' } ,module:'Funds'}, // { path: 'fxtatt', component: ()=>import("./Fxtatt/views"), name: 'Fxtatt', meta: { title: 'Fxtatt' } ,module:'Funds'},
// { path: 'fxtatt', component: ()=>import("./Fxtatt/views"), name: 'Fxtatt', meta: { title: 'Fxtatt' } ,module:'Funds'}, // { path: 'fxteop', component: ()=>import("./Fxteop/views"), name: 'Fxteop', meta: { title: 'Fxteop' } ,module:'Funds'},
// { path: 'fxteop', component: ()=>import("./Fxteop/views"), name: 'Fxteop', meta: { title: 'Fxteop' } ,module:'Funds'}, // { path: 'fxteqo', component: ()=>import("./Fxteqo/views"), name: 'Fxteqo', meta: { title: 'Fxteqo' } ,module:'Funds'},
// { path: 'fxteqo', component: ()=>import("./Fxteqo/views"), name: 'Fxteqo', meta: { title: 'Fxteqo' } ,module:'Funds'}, // { path: 'fxtfcm', component: ()=>import("./Fxtfcm/views"), name: 'Fxtfcm', meta: { title: 'Fxtfcm' } ,module:'Funds'},
// { path: 'fxtfcm', component: ()=>import("./Fxtfcm/views"), name: 'Fxtfcm', meta: { title: 'Fxtfcm' } ,module:'Funds'}, // { path: 'fxtfcn', component: ()=>import("./Fxtfcn/views"), name: 'Fxtfcn', meta: { title: 'Fxtfcn' } ,module:'Funds'},
// { path: 'fxtfcn', component: ()=>import("./Fxtfcn/views"), name: 'Fxtfcn', meta: { title: 'Fxtfcn' } ,module:'Funds'}, {
{ path: 'fxtfop', component: ()=>import("./Fxtfop/views"), name: 'fxtfop', meta: { title: '外币兑换平盘登记' } ,module:'Funds'}, path: "fxtfop",
// { path: 'fxtlcm', component: ()=>import("./Fxtlcm/views"), name: 'Fxtlcm', meta: { title: 'Fxtlcm' } ,module:'Funds'}, component: () => import("./Fxtfop/views"),
// { path: 'fxtlcn', component: ()=>import("./Fxtlcn/views"), name: 'Fxtlcn', meta: { title: 'Fxtlcn' } ,module:'Funds'}, name: "fxtfop",
// { path: 'fxtlop', component: ()=>import("./Fxtlop/views"), name: 'Fxtlop', meta: { title: 'Fxtlop' } ,module:'Funds'}, meta: { title: "外币兑换平盘登记" },
// { path: 'fxtsqo', component: ()=>import("./Fxtsqo/views"), name: 'Fxtsqo', meta: { title: 'Fxtsqo' } ,module:'Funds'}, module: "Funds",
// { path: 'fxtssb', component: ()=>import("./Fxtssb/views"), name: 'Fxtssb', meta: { title: 'Fxtssb' } ,module:'Funds'}, },
// { path: 'fxtsss', component: ()=>import("./Fxtsss/views"), name: 'Fxtsss', meta: { title: 'Fxtsss' } ,module:'Funds'}, // { path: 'fxtlcm', component: ()=>import("./Fxtlcm/views"), name: 'Fxtlcm', meta: { title: 'Fxtlcm' } ,module:'Funds'},
] // { path: 'fxtlcn', component: ()=>import("./Fxtlcn/views"), name: 'Fxtlcn', meta: { title: 'Fxtlcn' } ,module:'Funds'},
export default BusRouter {
\ No newline at end of file path: "fxtlop",
component: () => import("./Fxtlop/views"),
name: "Fxtlop",
meta: { title: "结售汇平盘登记" },
module: "Funds",
},
// { path: 'fxtsqo', component: ()=>import("./Fxtsqo/views"), name: 'Fxtsqo', meta: { title: 'Fxtsqo' } ,module:'Funds'},
// { path: 'fxtssb', component: ()=>import("./Fxtssb/views"), name: 'Fxtssb', meta: { title: 'Fxtssb' } ,module:'Funds'},
// { path: 'fxtsss', component: ()=>import("./Fxtsss/views"), name: 'Fxtsss', meta: { title: 'Fxtsss' } ,module:'Funds'},
];
export default BusRouter;
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",
};
},
},
};
import Api from "~/service/Api";
import Utils from "~/utils";
import commonFunctions from "~/mixin/commonFunctions.js";
export default {
mixins: [commonFunctions],
methods: {
async getOwnref() {},
},
};
import Utils from "~/utils"
/**
* Fxtlop Check规则
*/
let checkObj = {
"fxdgrp.apl.pts.adrblk" :null,
"fxdgrp.rec.rat" :null,
"fxtp.usr.extkey" :null,
"fxdgrp.cbs.max.cur" :null,
"fxdgrp.rec.opndat" :null,
"fxtp.cnychk" :null,
"fxdgrp.rec.valdat" :null,
"fxdgrp.apl.pts.extkey" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Fxtlop Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"fxtp.cnychk" :Utils.defaultFunction,
"fxtp.frgchk" :Utils.defaultFunction,
"fxdgrp.apl.dbfadrblkcn" :Utils.defaultFunction,
"fxdgrp.cbs.max.cur" :Utils.defaultFunction,
"fxdgrp.rec.fxtyp" :Utils.defaultFunction,
"fxtp.usr.extkey" :Utils.defaultFunction,
"fxdgrp.cbs.nom1.cur" :Utils.defaultFunction,
"fxdgrp.rec.rat" :Utils.defaultFunction,
"fxdgrp.cbs.nom1.amt" :Utils.defaultFunction,
"fxdgrp.cbs.max.amt" :Utils.defaultFunction,
"fxdgrp.apl.pts.adrblk" :Utils.defaultFunction,
"fxdgrp.apl.pts.extkey" :Utils.defaultFunction,
"fxdgrp.rec.ownref" :Utils.defaultFunction,
"fxdgrp.rec.opndat" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onFxtpButgetref(){
let rtnmsg = await this.executeRule("fxtp.butgetref")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onAplpDet(){
let rtnmsg = await this.executeRule("aplp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"fxdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"fxdgrp.apl.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fxtp.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"fxtp.usrget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fxtp.aplp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxdgrp.apl.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxtp.aplp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fxdgrp.apl.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fxdgrp.apl.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fxdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"fxdgrp.cbs.nom1.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"fxdgrp.rec.rat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"fxdgrp.rec.midrat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"fxdgrp.rec.opndat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxdgrp.rec.valdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxdgrp.blk.remark":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
}
\ 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 Fxtlop{ export default class Fxtlop {
constructor () { constructor() {
this.data = { this.data = {
fxdgrp:{ setmod: new Pub().data.Setmod,
rec:{ docpan: new Pub().data.Docpan,
ownref:"", // 业务编号 .fxdgrp.rec.ownref trndia: new Pub().data.Trndia,
nam:"", // 业务名称 .fxdgrp.rec.nam fxdgrp: {
fxtyp:"", // 平盘类型 .fxdgrp.rec.fxtyp rec: {
opndat:"", // 成交日 .fxdgrp.rec.opndat ownref: "", // 业务编号 .fxdgrp.rec.ownref
valdat:"", // 起息日 .fxdgrp.rec.valdat nam: "", // 业务名称 .fxdgrp.rec.nam
rat:"", // 平盘牌价 .fxdgrp.rec.rat fxtyp: "", // 平盘类型 .fxdgrp.rec.fxtyp
midrat:"", // 中间价 .fxdgrp.rec.midrat opndat: "", // 成交日 .fxdgrp.rec.opndat
}, valdat: "", // 起息日 .fxdgrp.rec.valdat
apl:{ rat: "", // 平盘牌价 .fxdgrp.rec.rat
pts:new Pts().data, midrat: "", // 中间价 .fxdgrp.rec.midrat
dbfadrblkcn:"", // Chinese address .fxdgrp.apl.dbfadrblkcn },
}, apl: {
blk:{ pts: new Pts().data,
remark:"", // 备注 .fxdgrp.blk.remark dbfadrblkcn: "", // Chinese address .fxdgrp.apl.dbfadrblkcn
}, },
cbs:{ blk: {
max:{ remark: "", // 备注 .fxdgrp.blk.remark
cur:"", // Currency .fxdgrp.cbs.max.cur },
amt:"", // Balance .fxdgrp.cbs.max.amt cbs: {
}, max: {
nom1:{ cur: "", // Currency .fxdgrp.cbs.max.cur
cur:"", // Currency .fxdgrp.cbs.nom1.cur amt: "", // Balance .fxdgrp.cbs.max.amt
amt:"", // Balance .fxdgrp.cbs.nom1.amt },
}, nom1: {
}, cur: "", // Currency .fxdgrp.cbs.nom1.cur
}, amt: "", // Balance .fxdgrp.cbs.nom1.amt
fxtp:{ },
amtlab:"", // Amount Label .fxtp.amtlab },
cnylab:"", // Amount LabelCNY .fxtp.cnylab },
frgchk:"", // 外币 .fxtp.frgchk fxtp: {
cnychk:"", // 人民币 .fxtp.cnychk amtlab: "", // Amount Label .fxtp.amtlab
aplp:{ cnylab: "", // Amount LabelCNY .fxtp.cnylab
ptsget:{ frgchk: "", // 外币 .fxtp.frgchk
sdamod:{ cnychk: "", // 人民币 .fxtp.cnychk
seainf:"", // .fxtp.aplp.ptsget.sdamod.seainf aplp: {
dadsnd:"", // Drag Drop Sender .fxtp.aplp.ptsget.sdamod.dadsnd ptsget: {
}, sdamod: {
}, seainf: "", // .fxtp.aplp.ptsget.sdamod.seainf
}, dadsnd: "", // Drag Drop Sender .fxtp.aplp.ptsget.sdamod.dadsnd
usrget:{ },
sdamod:{ },
seainf:"", // .fxtp.usrget.sdamod.seainf },
}, usrget: {
}, sdamod: {
usr:{ seainf: "", // .fxtp.usrget.sdamod.seainf
extkey:"", // 业务负责人 .fxtp.usr.extkey },
}, },
}, usr: {
pageId: "" // ctx的key extkey: "", // 业务负责人 .fxtp.usr.extkey
} },
} },
} pageId: "", // ctx的key
\ No newline at end of file };
}
}
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<!-- S0000002 : 业务编号 --> <c-col :span="24">
<!-- ==================左边================ -->
<c-col :span="12"> <c-col :span="12" style="padding-right: 20px">
<c-form-item :label="$t('fxtlop.S0000002')" prop="fxdgrp.rec.ownref"> <c-col :span="24">
<c-input v-model="model.fxdgrp.rec.ownref" maxlength="16" :placeholder="$t('other.please_enter')+$t('fxtlop.S0000002')"></c-input> <c-form-item label="业务编号" prop="fxdgrp.rec.ownref">
</c-form-item> <c-fullbox>
</c-col> <c-input
v-model="model.fxdgrp.rec.ownref"
<c-col :span="12"> maxlength="16"
<c-button size="small" type="primary" @click="onFxtpButgetref"> placeholder="请输入业务编号"
{{$t('fxtlop.C0000015')}} disabled
</c-button> >
</c-col> </c-input>
<!-- S0000003 : 业务名称 --> <template slot="footer">
<c-button
<c-col :span="12"> style="margin: 0 0"
<c-form-item :label="$t('fxtlop.S0000003')" prop="fxdgrp.rec.nam"> size="small"
<c-input v-model="model.fxdgrp.rec.nam" maxlength="40" :placeholder="$t('other.please_enter')+$t('fxtlop.S0000003')"></c-input> type="primary"
</c-form-item> :disabled="model.fxdgrp.apl.pts.ptainr === ''"
</c-col> @click="getOwnref"
<!-- S0000006 : 平盘对手 编号 --> >
获取
<c-col :span="12"> </c-button>
<c-form-item :label="$t('fxtlop.S0000006')" prop="fxdgrp.apl.pts.ref"> </template>
<c-input v-model="model.fxdgrp.apl.pts.ref" maxlength="20" :placeholder="$t('other.please_enter')+$t('fxtlop.S0000006')"></c-input> </c-fullbox>
</c-form-item> </c-form-item>
</c-col>
<!-- S0000004 : 业务负责人 -->
<c-col :span="12">
<c-form-item :label="$t('fxtlop.S0000004')" prop="fxtp.usr.extkey">
<c-input v-model="model.fxtp.usr.extkey" maxlength="8" :placeholder="$t('other.please_enter')+$t('fxtlop.S0000004')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="" prop="fxtp.usrget.sdamod.seainf">
<c-input v-model="model.fxtp.usrget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Drag Drop Sender" prop="fxtp.aplp.ptsget.sdamod.dadsnd">
<c-input v-model="model.fxtp.aplp.ptsget.sdamod.dadsnd" :placeholder="$t('other.please_enter')+'Drag Drop Sender'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="External Key of Address" prop="fxdgrp.apl.pts.extkey">
<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-col>
<c-col :span="12">
<c-form-item label="" prop="fxtp.aplp.ptsget.sdamod.seainf">
<c-input v-model="model.fxtp.aplp.ptsget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onAplpDet">
{{$t('ptsp.CF000081')}}
</c-button>
</c-col>
<!-- S0000005 : 平盘类型 -->
<c-col :span="12">
<el-form-item :label="$t('fxtlop.S0000005')" prop="fxdgrp.rec.fxtyp">
<c-select v-model="model.fxdgrp.rec.fxtyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtlop.S0000005')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Address Block" prop="fxdgrp.apl.pts.adrblk">
<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-form-item>
</c-col> </c-col>
<c-col :span="24">
<c-col :span="12"> <c-form-item label="业务负责人" prop="fxdgrp.rec.ownusr">
<c-form-item label="Chinese address" prop="fxdgrp.apl.dbfadrblkcn"> <c-input
<c-input type="textarea" v-model="model.fxdgrp.apl.dbfadrblkcn" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Chinese address'" ></c-input> v-model="model.fxdgrp.rec.ownusr"
</c-form-item> placeholder="请输入业务负责人"
disabled
/>
</c-form-item>
</c-col> </c-col>
<c-col :span="24">
<c-col :span="12"> <el-form-item label="平盘类型" prop="fxdgrp.rec.fxtyp">
<span v-text="model.fxtp.amtlab" data-path=".fxtp.amtlab" > </span> <c-select
</c-col> v-model="model.fxdgrp.rec.fxtyp"
style="width: 100%"
<c-col :span="12"> placeholder="请输入平盘类型"
<el-form-item label="Currency" prop="fxdgrp.cbs.max.cur"> dbCode=""
<c-select v-model="model.fxdgrp.cbs.max.cur" style="width:100%" :placeholder="$t('other.please_enter')+'Currency'"> >
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col>
<c-col :span="12">
<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-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.fxtp.frgchk">{{$t('fxtp.C0000100')}}</c-checkbox>
</c-col>
<c-col :span="12">
<span v-text="model.fxtp.cnylab" data-path=".fxtp.cnylab" > </span>
</c-col>
<c-col :span="12">
<el-form-item label="Currency" prop="fxdgrp.cbs.nom1.cur">
<c-select v-model="model.fxdgrp.cbs.nom1.cur" style="width:100%" :placeholder="$t('other.please_enter')+'Currency'">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Balance" prop="fxdgrp.cbs.nom1.amt">
<c-input v-model="model.fxdgrp.cbs.nom1.amt" :placeholder="$t('other.please_enter')+'Balance'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.fxtp.cnychk">{{$t('fxtp.C0000101')}}</c-checkbox>
</c-col>
<!-- S0000013 : 平盘牌价 -->
<c-col :span="12">
<c-form-item :label="$t('fxtlop.S0000013')" prop="fxdgrp.rec.rat">
<c-input v-model="model.fxdgrp.rec.rat" :placeholder="$t('other.please_enter')+$t('fxtlop.S0000013')"></c-input>
</c-form-item>
</c-col>
<!-- S0000014 : 中间价 -->
<c-col :span="12">
<c-form-item :label="$t('fxtlop.S0000014')" prop="fxdgrp.rec.midrat">
<c-input v-model="model.fxdgrp.rec.midrat" :placeholder="$t('other.please_enter')+$t('fxtlop.S0000014')"></c-input>
</c-form-item>
</c-col>
<!-- S0000007 : 成交日 -->
<c-col :span="12">
<el-form-item :label="$t('fxtlop.S0000007')" prop="fxdgrp.rec.opndat">
<c-date-picker type="date" v-model="model.fxdgrp.rec.opndat" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtlop.S0000007')"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000008 : 起息日 -->
<c-col :span="12">
<el-form-item :label="$t('fxtlop.S0000008')" prop="fxdgrp.rec.valdat">
<c-date-picker type="date" v-model="model.fxdgrp.rec.valdat" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtlop.S0000008')"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000009 : 备注 -->
<c-col :span="12">
<c-form-item :label="$t('fxtlop.S0000009')" 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('fxtlop.S0000009')" ></c-input>
</c-form-item>
</c-col> </c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="卖出金额" prop="fxdgrp.cbs.max.cur">
<c-select-cur
v-model="model.fxdgrp.cbs.max.cur"
style="width: 100%"
dbCode="curtxt"
>
</c-select-cur>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label-width="5px" prop="fxdgrp.cbs.max.amt">
<c-input-currency
:currency="model.fxdgrp.cbs.max.cur"
v-model="model.fxdgrp.cbs.max.amt"
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="买入金额" prop="fxdgrp.cbs.nom1.cur">
<c-select-cur
v-model="model.fxdgrp.cbs.nom1.cur"
style="width: 100%"
dbCode="curtxt"
>
</c-select-cur>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label-width="5px" prop="fxdgrp.cbs.nom1.amt">
<c-input-currency
disabled
:currency="model.fxdgrp.cbs.nom1.cur"
v-model="model.fxdgrp.cbs.nom1.amt"
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-form-item label="平盘牌价" prop="fxdgrp.rec.rat">
<c-input-currency
v-model="model.fxdgrp.rec.rat"
style="width: 100%"
:precision="6"
disabled
placeholder="请输入平盘牌价"
>
</c-input-currency>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="中间价" prop="fxdgrp.rec.midrat">
<c-input-currency
v-model="model.fxdgrp.rec.midrat"
style="width: 100%"
:precision="6"
disabled
placeholder="请输入中间价"
>
</c-input-currency>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="备注" prop="fxdgrp.blk.remark">
<c-input
type="textarea"
v-model="model.fxdgrp.blk.remark"
maxlength="140"
:rows="4"
style="width: 100%"
placeholder="请输入备注"
>
</c-input>
</c-form-item>
</c-col>
</c-col>
<!-- ==================右边================ -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<el-card class="box-card">
<c-ptap
:model="model"
:requiredExtkey="true"
:disabledExtkey="false"
:disabled="false"
:isAdrblk="true"
:haveAdrLabel="true"
:isShowCard="false"
:argadr="{ title: '平盘对手', grp: 'fxdgrp', rol: 'apl' }"
:label="{
labelExtkey: '平盘对手',
labelNam: '名称',
labelAdrblk: '地址',
}"
ptytyp="C"
>
</c-ptap>
</el-card>
</c-col>
<c-col :span="24">
<el-form-item label="成交日" prop="fxdgrp.rec.opndat">
<c-date-picker
type="date"
v-model="model.fxdgrp.rec.opndat"
style="width: 100%"
placeholder="请输入成交日"
>
</c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="起息日" prop="fxdgrp.rec.valdat">
<c-date-picker
type="date"
v-model="model.fxdgrp.rec.valdat"
style="width: 100%"
placeholder="请输入起息日"
>
</c-date-picker>
</el-form-item>
</c-col>
</c-col>
</c-col>
</div> </div>
</template> </template>
<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 CodeTable from "~/config/CodeTable";
import Event from "../model/Event" import event from "../event";
export default { export default {
inject: ['root'], inject: ["root"],
props:["model","codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess, event],
data(){ data() {
return { return {};
},
} created: function () {},
}, };
methods:{...Event},
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
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> :model="model"
<!--fxtlop PD000001 Registration --> :rules="rules"
<el-tab-pane :label="$t('fxtlop.PD000001')" name="regp"> ref="modelForm"
<m-regp :model="model" :codes="codes"/> label-width="150px"
</el-tab-pane> label-position="right"
</c-tabs> size="small"
:validate-on-rule-change="false"
>
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--fxtlop PD000001 Registration -->
<el-tab-pane label="Registration" name="regp">
<m-regp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="费用/账务" name="setpan">
<c-content>
<m-setpan :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
<!--PD000529 -->
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<m-docpan :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form> </el-form>
</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 Fxtlop from "../model" import Fxtlop from "../model";
import commonProcess from "~/mixin/commonProcess" import operationFunc from "~/mixin/operationFunc";
import Check from "../model/Check" import Regp from "./Regp";
import Default from "../model/Default" import Setpan from "~/components/business/setmod/views";
import Pattern from "../model/Pattern" import Docpan from "~/components/business/docpan/views";
import Regp from "./Regp" import event from "../event";
import commonDepend from "~/mixin/commonDepend";
import buildFn from "../event/buildCommons.js";
export default { export default {
name: "Fxtlop", name: "Fxtlop",
components:{ components: {
"m-regp" : Regp, "m-regp": Regp,
}, "m-setpan": Setpan,
provide() { "m-docpan": Docpan,
return { },
root: this provide() {
} return {
}, root: this,
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 };
data(){ },
return { mixins: [operationFunc, event, commonDepend, buildFn],
tabVal: "", data() {
trnName: "fxtlop", return {
trnType: "", tabVal: "regp",
model: new Fxtlop().data, trnName: "fxtlop",
checkRules: Check, trnType: "",
defaultRules: Default, model: new Fxtlop().data,
pattern: Pattern, codes: {},
rules: null, rules: {},
codes: { };
}, },
} methods: {
myTabClick(tab) {
this.tabClick(tab);
/**
* do it yourself
**/
}, },
methods:{ },
myTabClick(tab){ created() {
this.tabClick(tab) console.log("进入fxtlop交易");
/** let rtnmsg = this.init({});
* do it yourself if (rtnmsg.respCode == SUCCESS) {
**/ this.updateModel(rtnmsg.data);
} //TODO 处理数据逻辑
}, } else {
created:async function(){ this.$notify.error({ title: "错误", message: "服务请求失败!" });
console.log("进入fxtlop交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
} }
} },
};
</script> </script>
<style> <style></style>
</style>
...@@ -100,9 +100,15 @@ export default { ...@@ -100,9 +100,15 @@ export default {
onAdvChange() { onAdvChange() {
this.onAvbwthChange(); this.onAvbwthChange();
// 对手行代码赋值 // 对手行代码赋值
if (typeof this.model.trnInfo !== "undefined" && this.model.trnInfo.zmqflg === "X") { if (
typeof this.model.trnInfo !== "undefined" &&
this.model.trnInfo.zmqflg === "X"
) {
if (this.model.lidgrp.adv.pts.extkey !== "") { if (this.model.lidgrp.adv.pts.extkey !== "") {
this.model.lidgrp.rec.oppbnk = this.model.lidgrp.adv.pts.extkey.slice(0, 11); this.model.lidgrp.rec.oppbnk = this.model.lidgrp.adv.pts.extkey.slice(
0,
11
);
} else { } else {
this.model.lidgrp.rec.oppbnk = ""; this.model.lidgrp.rec.oppbnk = "";
} }
...@@ -111,7 +117,11 @@ export default { ...@@ -111,7 +117,11 @@ export default {
onAvbwthChange() { onAvbwthChange() {
// 1.控制是否可输入 // 1.控制是否可输入
let val = this.model.lidgrp.rec.avbwth; let val = this.model.lidgrp.rec.avbwth;
if (val == "O" && (this.model.lidgrp.blk.avbwthtxt == null || this.model.lidgrp.blk.avbwthtxt == "")) { if (
val == "O" &&
(this.model.lidgrp.blk.avbwthtxt == null ||
this.model.lidgrp.blk.avbwthtxt == "")
) {
let value = this.getCodeTableValue("O", "avbwth"); let value = this.getCodeTableValue("O", "avbwth");
this.model.lidgrp.blk.avbwthtxt = value; this.model.lidgrp.blk.avbwthtxt = value;
} }
...@@ -140,13 +150,21 @@ export default { ...@@ -140,13 +150,21 @@ export default {
this.model.lidgrp.avb.pts.rol = "AVB"; this.model.lidgrp.avb.pts.rol = "AVB";
} else { } else {
if (rol === "ADV") { if (rol === "ADV") {
this.$alert("Please enter an advising bank or change Available with.", "警告", { this.$alert(
confirmButtonText: "确定", "Please enter an advising bank or change Available with.",
}); "警告",
{
confirmButtonText: "确定",
}
);
} else if (rol === "CON") { } else if (rol === "CON") {
this.$alert("Please enter an Confirming Bank on Parties penal or change Available with.", "警告", { this.$alert(
confirmButtonText: "确定", "Please enter an Confirming Bank on Parties penal or change Available with.",
}); "警告",
{
confirmButtonText: "确定",
}
);
} }
} }
}, },
...@@ -171,7 +189,10 @@ export default { ...@@ -171,7 +189,10 @@ export default {
type: type, type: type,
}; };
const loading = this.loading(); const loading = this.loading();
let res = await Api.post("/Lc/litopn/judgementNeedCustomerButtonShow", data); let res = await Api.post(
"/Lc/litopn/judgementNeedCustomerButtonShow",
data
);
loading.close(); loading.close();
if (res.respCode === SUCCESS) { if (res.respCode === SUCCESS) {
this.model.needcusVisible = res.data; this.model.needcusVisible = res.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