Commit 713e4cbd by 吴佳

fxteqo交易提交

parent 7f26655f
...@@ -9,7 +9,7 @@ const BusRouter = [ ...@@ -9,7 +9,7 @@ const BusRouter = [
{ 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: '代客外汇买卖录入' } ,module:'Funds'}, { path: 'fxteop', component: ()=>import("./Fxteop/views"), name: 'Fxteop', meta: { title: '代客外汇买卖录入' } ,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: '代客外汇买卖报价' } ,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'},
{ {
......
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 commonFunctions from '~/mixin/commonFunctions.js';
import Api from '~/service/Api';
export default {
mixins: [commonFunctions],
methods: {
async getOwnref(){
}
}
}
\ No newline at end of file
import Utils from "~/utils"
/**
* Fxteqo Check规则
*/
let checkObj = {
"fxdgrp.apl.pts.adrblk" :null,
"fxdgrp.rec.rat" :null,
"fxtp.usr.extkey" :null,
"fxdgrp.rec.dsp2" :null,
"fxdgrp.cbs.max.amt" :null,
"fxdgrp.cbs.max.cur" :null,
"fxdgrp.rec.dsp" :null,
"fxtp.cnychk" :null,
"fxdgrp.cbs.nom1.amt" :null,
"fxdgrp.rec.acc2" :null,
"fxdgrp.rec.fxtyp" :null,
"fxdgrp.rec.acc" :null,
"fxdgrp.cbs.nom1.cur" :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
/**
* Fxteqo 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,
"fxtp.usr.extkey" :Utils.defaultFunction,
"fxdgrp.cbs.nom1.cur" :Utils.defaultFunction,
"fxdgrp.cbs.max.cur" :Utils.defaultFunction,
"fxtp.calflg" :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.rec.dsp2" :Utils.defaultFunction,
"fxdgrp.rec.acc2" :Utils.defaultFunction,
"fxdgrp.rec.fxtyp" :Utils.defaultFunction,
"fxdgrp.rec.dsp" :Utils.defaultFunction,
"fxdgrp.apl.pts.extkey" :Utils.defaultFunction,
"fxdgrp.rec.ownref" :Utils.defaultFunction,
"fxdgrp.rec.opndat" :Utils.defaultFunction,
"fxdgrp.rec.acc" :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 "~/page/Model/Common/Pts" import Pts from "~/page/Model/Common/Pts"
import Pub from "../../../../components/business/commonModel/index.js";
export default class Fxteqo{ export default class Fxteqo{
constructor () { constructor () {
...@@ -60,7 +61,9 @@ export default class Fxteqo{ ...@@ -60,7 +61,9 @@ export default class Fxteqo{
calflg:"", // Calculate .fxtp.calflg calflg:"", // Calculate .fxtp.calflg
cshflg:"", // 钞汇标志 .fxtp.cshflg cshflg:"", // 钞汇标志 .fxtp.cshflg
}, },
pageId: "" // ctx的key setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia,
} }
} }
} }
\ No newline at end of file
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,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 "../model/Event" import event from "../event";
export default { export default {
inject: ['root'], inject: ['root'],
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<!-- S0000013 : 外汇买卖业务参考号 -->
<c-col :span="24">
<c-col :span="12"> <!-- ==================左边================ -->
<c-form-item :label="$t('fxteqo.S0000013')" prop="fxdgrp.rec.ownref"> <c-col :span="12" style="padding-right: 20px">
<c-input v-model="model.fxdgrp.rec.ownref" maxlength="16" :placeholder="$t('other.please_enter')+$t('fxteqo.S0000013')"></c-input> <c-col :span="24">
</c-form-item> <c-form-item label="业务编号" prop="fxdgrp.rec.ownref">
</c-col> <c-fullbox>
<c-input v-model="model.fxdgrp.rec.ownref" maxlength="16" placeholder="请输入业务编号" disabled>
<c-col :span="12"> </c-input>
<c-button size="small" type="primary" @click="onFxtpButgetref"> <template slot="footer">
{{$t('fxteqo.C0000025')}} <c-button style="margin: 0 0" size="small" type="primary" :disabled="model.fxdgrp.apl.pts.ptainr === ''"
</c-button> @click="getOwnref">
</c-col> 获取
<!-- S0000014 : 名称 --> </c-button>
</template>
<c-col :span="12"> </c-fullbox>
<c-form-item :label="$t('fxteqo.S0000014')" prop="fxdgrp.rec.nam"> </c-form-item>
<c-input v-model="model.fxdgrp.rec.nam" maxlength="40" :placeholder="$t('other.please_enter')+$t('fxteqo.S0000014')"></c-input> </c-col>
</c-form-item>
</c-col> <c-col :span="24">
<!-- S0000017 : 外汇买卖申请人 --> <c-form-item label="业务负责人" prop="fxtp.usr.extkey">
<!-- S0000023 : 编号 --> <c-input v-model="model.fxtp.usr.extkey" placeholder="请输入业务负责人" />
</c-form-item>
<c-col :span="12"> </c-col>
<c-form-item :label="$t('fxteqo.S0000017')" prop="fxdgrp.apl.pts.ref">
<c-input v-model="model.fxdgrp.apl.pts.ref" maxlength="20" :placeholder="$t('other.please_enter')+$t('fxteqo.S0000017')"></c-input> <c-col :span="24">
</c-form-item> <c-form-item label="外汇买卖类型" prop="fxdgrp.rec.fxtyp">
</c-col> <c-select v-model="model.fxdgrp.rec.fxtyp" style="width:100%" :placeholder="请输入外汇买卖类型" dbCode="">
<!-- S0000015 : 业务负责人 --> </c-select>
</c-form-item>
<c-col :span="12"> </c-col>
<c-form-item :label="$t('fxteqo.S0000015')" prop="fxtp.usr.extkey">
<c-input v-model="model.fxtp.usr.extkey" maxlength="8" :placeholder="$t('other.please_enter')+$t('fxteqo.S0000015')"></c-input> <c-col :span="24">
</c-form-item> <c-form-item label="对外牌价" prop="fxdgrp.rec.rat">
</c-col> <c-input-currency v-model="model.fxdgrp.rec.rat" style="width:100%" :precision="6" disabled placeholder="请输入平盘牌价">
</c-input-currency>
<c-col :span="12"> </c-form-item>
<c-form-item label="" prop="fxtp.usrget.sdamod.seainf"> </c-col>
<c-input v-model="model.fxtp.usrget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input>
</c-form-item> <c-col :span="24">
</c-col> <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-col :span="12"> </c-input-currency>
<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="24">
<el-form-item label="交易日期" prop="fxdgrp.rec.opndat">
<c-col :span="12"> <c-date-picker type="date" v-model="model.fxdgrp.rec.opndat" style="width:100%" placeholder="请输入登记日期">
<c-form-item label="External Key of Address" prop="fxdgrp.apl.pts.extkey"> </c-date-picker>
<c-input v-model="model.fxdgrp.apl.pts.extkey" maxlength="16" :placeholder="$t('other.please_enter')+'External Key of Address'"></c-input> </el-form-item>
</c-form-item> </c-col>
</c-col>
<c-col :span="24">
<c-col :span="12"> <el-form-item label="买入外币账号" prop="fxdgrp.rec.dsp">
<c-form-item label="" prop="fxtp.aplp.ptsget.sdamod.seainf"> <c-col :span="12">
<c-input v-model="model.fxtp.aplp.ptsget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input> <c-select v-model="model.fxdgrp.rec.dsp" style="width:100%" :placeholder="请输入" dbCode="">
</c-form-item> </c-select>
</c-col> </c-col>
<c-col :span="12">
<c-col :span="12"> <c-select v-model="model.fxdgrp.rec.acc" style="width:100%" :placeholder="请输入买入外币账号" dbCode="">
<c-button size="small" type="primary" @click="onAplpDet"> </c-select>
{{$t('ptsp.CF000081')}} </c-col>
</c-button> </el-form-item>
</c-col> </c-col>
<!-- S0000016 : 外汇买卖类型 -->
<c-col :span="12"> <c-col :span="24">
<el-form-item :label="$t('fxteqo.S0000016')" prop="fxdgrp.rec.fxtyp"> <c-form-item label="备注" prop="fxdgrp.blk.remark">
<c-select v-model="model.fxdgrp.rec.fxtyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxteqo.S0000016')"> <c-input type="textarea" v-model="model.fxdgrp.blk.remark" maxlength="140" :rows="4" style="width:100%" placeholder="请输入备注">
</c-select> </c-input>
</el-form-item> </c-form-item>
</c-col> </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 :span="12">
<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-form-item>
</c-col> </c-col>
<c-col :span="12"> <!-- ==================右边================ -->
<span v-text="model.fxtp.amtlab" data-path=".fxtp.amtlab" > </span> <c-col :span="12" style="padding-right: 20px">
</c-col> <c-col :span="24">
<c-form-item label="名称" prop="fxdgrp.rec.nam">
<c-col :span="12"> <c-input v-model="model.fxdgrp.rec.nam" placeholder="请输入名称"/>
<el-form-item label="Currency" prop="fxdgrp.cbs.max.cur"> </c-form-item>
<c-select v-model="model.fxdgrp.cbs.max.cur" style="width:100%" :placeholder="$t('other.please_enter')+'Currency'"> </c-col>
</c-select>
</el-form-item> <c-col :span="24">
</c-col> <el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="false" :disabled="false" :isAdrblk="true" :haveAdrLabel="true"
<c-col :span="12"> :isShowCard="false" :argadr="{title: '外汇买卖申请人',grp: 'fxdgrp', rol: 'apl',}"
<c-form-item label="Balance" prop="fxdgrp.cbs.max.amt"> :label="{labelExtkey:'外汇买卖申请人',labelNam:'名称',labelAdrblk:'地址'}" ptytyp="C">
<c-input v-model="model.fxdgrp.cbs.max.amt" :placeholder="$t('other.please_enter')+'Balance'"></c-input> </c-ptap>
</c-form-item> </el-card>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="24">
<c-checkbox v-model="model.fxtp.frgchk">{{$t('fxtp.C0000100')}}</c-checkbox> <el-form-item label="生效日" prop="fxdgrp.rec.valdat">
</c-col> <c-date-picker type="date" v-model="model.fxdgrp.rec.valdat" style="width:100%" placeholder="请输入起息日">
</c-date-picker>
<c-col :span="12"> </el-form-item>
<c-checkbox v-model="model.fxtp.calflg">{{$t('fxteqo.C0000024')}}</c-checkbox> </c-col>
</c-col>
<c-col :span="24">
<c-col :span="12"> <el-form-item label="卖出外币账号" prop="fxdgrp.rec.dsp2">
<span v-text="model.fxtp.cnylab" data-path=".fxtp.cnylab" > </span> <c-col :span="12">
</c-col> <c-select v-model="model.fxdgrp.rec.dsp2" style="width:100%" :placeholder="请输入" dbCode="">
</c-select>
<c-col :span="12"> </c-col>
<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%" :placeholder="$t('other.please_enter')+'Currency'"> <c-select v-model="model.fxdgrp.rec.acc2" style="width:100%" :placeholder="请输入卖出外币账号" dbCode="">
</c-select> </c-select>
</el-form-item> </c-col>
</c-col> </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>
<!-- S0000099 : 对外牌价 -->
<c-col :span="12">
<c-form-item :label="$t('fxtp.S0000099')" prop="fxdgrp.rec.rat">
<c-input v-model="model.fxdgrp.rec.rat" :placeholder="$t('other.please_enter')+$t('fxtp.S0000099')"></c-input>
</c-form-item>
</c-col>
<!-- S0000098 : 中间价 -->
<c-col :span="12">
<c-form-item :label="$t('fxtp.S0000098')" prop="fxdgrp.rec.midrat">
<c-input v-model="model.fxdgrp.rec.midrat" :placeholder="$t('other.please_enter')+$t('fxtp.S0000098')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="钞汇标志" prop="fxtp.cshflg">
<c-select v-model="model.fxtp.cshflg" style="width:100%" :placeholder="$t('other.please_enter')+'钞汇标志'">
</c-select>
</el-form-item>
</c-col>
<!-- S0000046 : 交易日期 -->
<c-col :span="12">
<el-form-item :label="$t('fxteqo.S0000046')" prop="fxdgrp.rec.opndat">
<c-date-picker type="date" v-model="model.fxdgrp.rec.opndat" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxteqo.S0000046')"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000047 : 生效日 -->
<c-col :span="12">
<el-form-item :label="$t('fxteqo.S0000047')" prop="fxdgrp.rec.valdat">
<c-date-picker type="date" v-model="model.fxdgrp.rec.valdat" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxteqo.S0000047')"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000048 : 买入外币账号 -->
<c-col :span="12">
<el-form-item :label="$t('fxteqo.S0000048')" prop="fxdgrp.rec.dsp">
<c-select v-model="model.fxdgrp.rec.dsp" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxteqo.S0000048')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('fxteqo.S0000048')" prop="fxdgrp.rec.acc">
<c-select v-model="model.fxdgrp.rec.acc" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxteqo.S0000048')">
</c-select>
</el-form-item>
</c-col>
<!-- S0000051 : 卖出外币账号 -->
<c-col :span="12">
<el-form-item :label="$t('fxteqo.S0000051')" prop="fxdgrp.rec.dsp2">
<c-select v-model="model.fxdgrp.rec.dsp2" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxteqo.S0000051')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('fxteqo.S0000051')" prop="fxdgrp.rec.acc2">
<c-select v-model="model.fxdgrp.rec.acc2" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxteqo.S0000051')">
</c-select>
</el-form-item>
</c-col>
<!-- S0000052 : 备注 -->
<c-col :span="12">
<c-form-item :label="$t('fxteqo.S0000052')" 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('fxteqo.S0000052')" ></c-input>
</c-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: [event],
data(){ data(){
return { return {
} }
}, },
methods:{...Event}, created() {}
created:function(){
}
} }
</script> </script>
<style> <style>
......
<template> <template>
<div class="eContainer"> <div class="eContainer">
<c-page title="代客外汇买卖报价">
<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">
<!--fxteqo PD000001 Quote --> <!--fxteqo PD000001 Quote -->
<el-tab-pane :label="$t('fxteqo.PD000001')" name="quop"> <el-tab-pane label="Quote" name="quop">
<m-quop :model="model" :codes="codes"/> <m-quop :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<!--fxteqo PD000026 Down Part of Quop --> <!--fxteqo PD000026 Down Part of Quop -->
<el-tab-pane :label="$t('fxteqo.PD000026')" name="donpart"> <!-- <el-tab-pane label="Down Part of Quop" name="donpart">
<m-donpart :model="model" :codes="codes"/> <m-donpart :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane> -->
<el-tab-pane label="费用/账务" name="setpan">
<c-content>
<m-setpan :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<m-docpan :codes="codes" :model="model" />
</c-content>
</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>
...@@ -19,11 +37,14 @@ import Api from "~/service/Api" ...@@ -19,11 +37,14 @@ import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Fxteqo from "../model" import Fxteqo from "../model"
import commonProcess from "~/mixin/commonProcess" import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Quop from "./Quop" import Quop from "./Quop"
import Donpart from "./Donpart" import Donpart from "./Donpart"
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import event from "../event";
import buildFn from "../event/buildCommons.js";
export default { export default {
...@@ -31,48 +52,39 @@ export default { ...@@ -31,48 +52,39 @@ export default {
components:{ components:{
"m-quop" : Quop, "m-quop" : Quop,
"m-donpart" : Donpart, "m-donpart" : Donpart,
"m-setpan": Setpan,
"m-docpan": Docpan,
}, },
provide() { provide() {
return { return {
root: this root: this
} }
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess,operationFunc,commonDepend,event,buildFn], // 里面包含了Default、Check等的公共处理
data(){ data(){
return { return {
tabVal: "quop", tabVal: "quop",
trnName: "fxteqo", trnName: "Quote",
trnType: "",
model: new Fxteqo().data, model: new Fxteqo().data,
checkRules: Check, codes: { ...CodeTable },
defaultRules: Default, rules: {},
pattern: Pattern,
rules: null,
codes: {
},
} }
}, },
methods:{ methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入fxteqo交易");
let rtnmsg = {}; // await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
} },
else mounted() {
{ console.log("进入fxteop交易");
this.$notify.error({title: '错误',message: '服务请求失败!'}); let params = {
} transName: this.trnName,
fxdgrp: {
rec: {
inr: this.$route.query.inr || "",
},
},
};
this.init(params)
} }
} }
</script> </script>
......
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