Commit 58429c73 by 李少勇

fxtssb和fxtsss交易修改

parent 05c6f4b5
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.fxtp.fxdgrp, this.buildPtspta);
return {
rec: {
objtyp: "FXT",
objinr: model.fxtp.fxdgrp.rec.inr,
ownref: model.fxtp.fxdgrp.rec.ownref,
},
cbsMap: {
MAX: model.fxtp.fxdgrp.cbs.max,
NOM1: model.fxtp.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"
export default {
"fxtp.fxdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
/**
* Fxtssb Check规则
*/
let checkObj = {
}
"fxtp.fxdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"fxtp.fxdgrp.apl.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fxtp.usrget.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"}
],
"fxtp.aplp.ptspta.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"}
],
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
"fxtp.aplp.ptspta.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fxtp.aplp.ptspta.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fxtp.fxdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"fxtp.fxdgrp.cbs.nom1.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"fxtp.fxdgrp.rec.rat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"fxtp.fxdgrp.rec.quoref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxtp.fxdgrp.rec.midrat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"fxtp.fxdgrp.rec.fudref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxtp.fxdgrp.rec.opndat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.fxdgrp.rec.valdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.fxdgrp.rec.setdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.fxdgrp.rec.setdatto":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.fxdgrp.rec.setdatfrm":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.fxdgrp.blk.remark":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
}
\ No newline at end of file
/**
* Fxtssb Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
}
\ No newline at end of file
export default {
"fxtapll1blk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
"fxtapll2blk":[
{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 Fxtssb{
constructor () {
this.data = {
fxtapll1blk:"", // XMLPanel fxtapll1的内置block .fxtapll1blk
fxtapll2blk:"", // XMLPanel fxtapll2的内置block .fxtapll2blk
pageId: "" // ctx的key
}
export default class Fxtssb {
constructor() {
this.data = {
fxtp: {
fxdgrp: {
rec: {
ownref: "", // 结售汇业务参考号 .fxtp.fxdgrp.rec.ownref
nam: "", // 名称 .fxtp.fxdgrp.rec.nam
fxtyp: "", // 结售汇类型 .fxtp.fxdgrp.rec.fxtyp
opndat: "", // 登记日期 .fxtp.fxdgrp.rec.opndat
valdat: "", // 起息日 .fxtp.fxdgrp.rec.valdat
rat: "", // 对外牌价 .fxtp.fxdgrp.rec.rat
midrat: "", // 中间价 .fxtp.fxdgrp.rec.midrat
quoref: "", // 询价编号 .fxtp.fxdgrp.rec.quoref
fudref: "", // 资金部编号 .fxtp.fxdgrp.rec.fudref
setdat: "", // 远期交割日 .fxtp.fxdgrp.rec.setdat
setdatfrm: "", // 择期交割起始日 .fxtp.fxdgrp.rec.setdatfrm
setdatto: "", // 择期交割截止日 .fxtp.fxdgrp.rec.setdatto
trnman: "", // 交易主体 .fxtp.fxdgrp.rec.trnman
trdint: "", // 结售汇类型 .fxtp.fxdgrp.rec.trdint
trdout: "", // 结售汇类型 .fxtp.fxdgrp.rec.trdout
acc: "", // 外币结算账号 .fxtp.fxdgrp.rec.acc
acc2: "", // 本币结算账号 .fxtp.fxdgrp.rec.acc2
dsp: "", // 外币结算账号 .fxtp.fxdgrp.rec.dsp
dsp2: "", // 本币结算账号 .fxtp.fxdgrp.rec.dsp2
},
cbs: {
max: {
cur: "", // Currency .fxtp.fxdgrp.cbs.max.cur
amt: "", // Balance .fxtp.fxdgrp.cbs.max.amt
},
nom1: {
cur: "", // Currency .fxtp.fxdgrp.cbs.nom1.cur
amt: "", // Balance .fxtp.fxdgrp.cbs.nom1.amt
},
},
apl: {
pts: new Pts().data,
},
blk: {
remark: "", // 备注 .fxtp.fxdgrp.blk.remark
},
},
amtlab: "", // Amount Label .fxtp.amtlab
cnylab: "", // Amount LabelCNY .fxtp.cnylab
frgchk: "", // 外币 .fxtp.frgchk
cnychk: "", // 人民币 .fxtp.cnychk
aplp: {
ptspta: {
pts: new Pts().data,
dbfadrblkcn: "", // Chinese address .fxtp.aplp.ptspta.dbfadrblkcn
},
ptsget: {
sdamod: {
seainf: "", // .fxtp.aplp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .fxtp.aplp.ptsget.sdamod.dadsnd
},
},
},
cshflg: "", // 钞汇标志 .fxtp.cshflg
usrget: {
sdamod: {
seainf: "", // .fxtp.usrget.sdamod.seainf
},
usr: {
extkey: "", // User ID .fxtp.usrget.usr.extkey
},
},
},
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">
<c-col :span="12">
<c-form-item label="XMLPanel fxtapll1的内置block" prop="fxtapll1blk">
<c-input type="textarea" v-model="model.fxtapll1blk" maxlength="200" show-word-limit :placeholder="$t('other.please_enter')+'XMLPanel fxtapll1的内置block'" ></c-input>
</c-form-item>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "../model/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-form-item label="XMLPanel fxtapll2的内置block" prop="fxtapll2blk">
<c-input type="textarea" v-model="model.fxtapll2blk" maxlength="200" show-word-limit :placeholder="$t('other.please_enter')+'XMLPanel fxtapll2的内置block'" ></c-input>
</c-form-item>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "../model/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<!-- S0000039 : 结售汇业务参考号 -->
<c-col :span="12">
<c-form-item :label="$t('fxtp.结售汇业务参考号')" prop="fxtp.fxdgrp.rec.ownref">
<c-input v-model="model.fxtp.fxdgrp.rec.ownref" maxlength="16"></c-input>
</c-form-item>
</c-col>
<!-- S0000040 : 名称 -->
<c-col :span="12">
<c-form-item :label="$t('fxtp.名称')" prop="fxtp.fxdgrp.rec.nam">
<c-input v-model="model.fxtp.fxdgrp.rec.nam" maxlength="40"></c-input>
</c-form-item>
</c-col>
<!-- S0000057 : 结售汇申请人 -->
<!-- S0000092 : 编号 -->
<c-col :span="12">
<c-form-item :label="$t('fxtp.结售汇申请人')" prop="fxtp.fxdgrp.apl.pts.ref">
<c-input v-model="model.fxtp.fxdgrp.apl.pts.ref" maxlength="20"></c-input>
</c-form-item>
</c-col>
<!-- S0000041 : 业务负责人 -->
<c-col :span="12">
<c-form-item label="User ID" prop="fxtp.usrget.usr.extkey">
<c-input v-model="model.fxtp.usrget.usr.extkey" maxlength="8"></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"></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"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="External Key of Address" prop="fxtp.aplp.ptspta.pts.extkey">
<c-input v-model="model.fxtp.aplp.ptspta.pts.extkey" maxlength="16"></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"></c-input>
</c-form-item>
</c-col>
<!-- S0000047 : 结售汇类型 -->
<c-col :span="12">
<el-form-item :label="$t('fxtp.结售汇类型')" prop="fxtp.fxdgrp.rec.fxtyp">
<c-select v-model="model.fxtp.fxdgrp.rec.fxtyp" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Address Block" prop="fxtp.aplp.ptspta.pts.adrblk">
<c-input type="textarea" v-model="model.fxtp.aplp.ptspta.pts.adrblk" maxlength="35" show-word-limit></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Chinese address" prop="fxtp.aplp.ptspta.dbfadrblkcn">
<c-input type="textarea" v-model="model.fxtp.aplp.ptspta.dbfadrblkcn" maxlength="35" show-word-limit></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.fxtp.amtlab" data-path=".fxtp.amtlab"> </span>
</c-col>
<c-col :span="12">
<el-form-item label="Currency" prop="fxtp.fxdgrp.cbs.max.cur">
<c-select v-model="model.fxtp.fxdgrp.cbs.max.cur" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Balance" prop="fxtp.fxdgrp.cbs.max.amt">
<c-input v-model="model.fxtp.fxdgrp.cbs.max.amt"></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="fxtp.fxdgrp.cbs.nom1.cur">
<c-select v-model="model.fxtp.fxdgrp.cbs.nom1.cur" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Balance" prop="fxtp.fxdgrp.cbs.nom1.amt">
<c-input v-model="model.fxtp.fxdgrp.cbs.nom1.amt"></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>
<!-- S0000060 : 对外牌价 -->
<c-col :span="12">
<c-form-item :label="$t('fxtp.对外牌价')" prop="fxtp.fxdgrp.rec.rat">
<c-input v-model="model.fxtp.fxdgrp.rec.rat"></c-input>
</c-form-item>
</c-col>
<!-- S0000062 : 询价编号 -->
<c-col :span="12">
<c-form-item :label="$t('fxtp.询价编号')" prop="fxtp.fxdgrp.rec.quoref">
<c-input v-model="model.fxtp.fxdgrp.rec.quoref" maxlength="16"></c-input>
</c-form-item>
</c-col>
<!-- S0000091 : 钞汇标志 -->
<!-- S0000061 : 中间价 -->
<c-col :span="12">
<c-form-item :label="$t('fxtp.中间价')" prop="fxtp.fxdgrp.rec.midrat">
<c-input v-model="model.fxtp.fxdgrp.rec.midrat"></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%">
</c-select>
</el-form-item>
</c-col>
<!-- S0000063 : 资金部编号 -->
<c-col :span="12">
<c-form-item :label="$t('fxtp.资金部编号')" prop="fxtp.fxdgrp.rec.fudref">
<c-input v-model="model.fxtp.fxdgrp.rec.fudref" maxlength="16"></c-input>
</c-form-item>
</c-col>
<!-- S0000064 : 登记日期 -->
<c-col :span="12">
<el-form-item :label="$t('fxtp.登记日期')" prop="fxtp.fxdgrp.rec.opndat">
<c-date-picker type="date" v-model="model.fxtp.fxdgrp.rec.opndat" style="width:100%"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000065 : 起息日 -->
<c-col :span="12">
<el-form-item :label="$t('fxtp.起息日')" prop="fxtp.fxdgrp.rec.valdat">
<c-date-picker type="date" v-model="model.fxtp.fxdgrp.rec.valdat" style="width:100%"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000072 : 远期交割日 -->
<c-col :span="12">
<el-form-item :label="$t('fxtp.远期交割日')" prop="fxtp.fxdgrp.rec.setdat">
<c-date-picker type="date" v-model="model.fxtp.fxdgrp.rec.setdat" style="width:100%"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000074 : 择期交割截止日 -->
<c-col :span="12">
<el-form-item :label="$t('fxtp.择期交割截止日')" prop="fxtp.fxdgrp.rec.setdatto">
<c-date-picker type="date" v-model="model.fxtp.fxdgrp.rec.setdatto" style="width:100%"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000073 : 择期交割起始日 -->
<c-col :span="12">
<el-form-item :label="$t('fxtp.择期交割起始日')" prop="fxtp.fxdgrp.rec.setdatfrm">
<c-date-picker type="date" v-model="model.fxtp.fxdgrp.rec.setdatfrm" style="width:100%"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000078 : 外币结算账号 -->
<c-col :span="12">
<el-form-item :label="$t('fxtp.外币结算账号')" prop="fxtp.fxdgrp.rec.dsp">
<c-select v-model="model.fxtp.fxdgrp.rec.dsp" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('fxtp.外币结算账号')" prop="fxtp.fxdgrp.rec.acc">
<c-select v-model="model.fxtp.fxdgrp.rec.acc" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<!-- S0000079 : 本币结算账号 -->
<c-col :span="12">
<el-form-item :label="$t('fxtp.本币结算账号')" prop="fxtp.fxdgrp.rec.dsp2">
<c-select v-model="model.fxtp.fxdgrp.rec.dsp2" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('fxtp.本币结算账号')" prop="fxtp.fxdgrp.rec.acc2">
<c-select v-model="model.fxtp.fxdgrp.rec.acc2" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<!-- S0000075 : 交易主体 -->
<c-col :span="12">
<el-form-item :label="$t('fxtp.交易主体')" prop="fxtp.fxdgrp.rec.trnman">
<c-select v-model="model.fxtp.fxdgrp.rec.trnman" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<!-- S0000076 : 结售汇类型 -->
<c-col :span="12">
<el-form-item :label="$t('fxtp.结售汇类型')" prop="fxtp.fxdgrp.rec.trdint">
<c-select v-model="model.fxtp.fxdgrp.rec.trdint" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('fxtp.结售汇类型')" prop="fxtp.fxdgrp.rec.trdout">
<c-select v-model="model.fxtp.fxdgrp.rec.trdout" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<!-- S0000069 : 备注 -->
<c-col :span="12">
<c-form-item :label="$t('fxtp.备注')" prop="fxtp.fxdgrp.blk.remark">
<c-input type="textarea" v-model="model.fxtp.fxdgrp.blk.remark" maxlength="35" show-word-limit></c-input>
</c-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import Event from "../event"
export default {
inject: ['root'],
props: ["model", "codes"],
mixins: [],
data() {
return {
}
},
methods: { ...Event },
created: function () {
}
}
</script>
<style></style>
<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-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--fxtssb PD000001 -->
<el-tab-pane :label="$t('fxtssb.PD000001')" name="fxtapll1">
<m-fxtapll1 :model="model" :codes="codes"/>
</el-tab-pane>
<!--fxtssb PD000024 -->
<el-tab-pane :label="$t('fxtssb.PD000024')" name="fxtapll2">
<m-fxtapll2 :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
<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">
<el-tab-pane label="概要" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
</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>
</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 Fxtssb from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Fxtapll1 from "./Fxtapll1"
import Fxtapll2 from "./Fxtapll2"
import Ovwp from "./Ovwp"
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";
import Check from "../model/check.js";
export default {
name: "Fxtssb",
components:{
"m-fxtapll1" : Fxtapll1,
"m-fxtapll2" : Fxtapll2,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "fxtapll1",
trnName: "fxtssb",
trnType: "",
model: new Fxtssb().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入fxtssb交易");
let rtnmsg = {}; // await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
name: "Fxtssb",
components: {
"m-ovwp": Ovwp,
"m-setpan": Setpan,
"m-docpan": Docpan,
},
provide() {
return {
root: this
}
},
mixins: [operationFunc, commonDepend, event, buildFn],
data() {
return {
tabVal: "ovwp",
trnName: "fxtssb",
trnType: "",
model: new Fxtssb().data,
rules: Check,
codes: { ...CodeTable },
}
},
methods: {
myTabClick(tab) {
this.tabClick(tab)
}
},
created: async function () {
console.log("进入fxtssb交易");
let params = {
transName: this.trnName,
fxdgrp: {
rec: {
inr: this.$route.query.inr || "",
},
},
};
this.init(params)
}
}
</script>
<style>
</style>
<style></style>
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.fxtp.fxdgrp, this.buildPtspta);
return {
rec: {
objtyp: "FXT",
objinr: model.fxtp.fxdgrp.rec.inr,
ownref: model.fxtp.fxdgrp.rec.ownref,
},
cbsMap: {
MAX: model.fxtp.fxdgrp.cbs.max,
NOM1: model.fxtp.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"
export default {
"fxtp.fxdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
/**
* Fxtsss Check规则
*/
let checkObj = {
}
"fxtp.fxdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"fxtp.fxdgrp.apl.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fxtp.usrget.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"}
],
"fxtp.aplp.ptspta.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"}
],
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
"fxtp.aplp.ptspta.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fxtp.aplp.ptspta.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fxtp.fxdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"fxtp.fxdgrp.cbs.nom1.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"fxtp.fxdgrp.rec.rat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"fxtp.fxdgrp.rec.quoref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxtp.fxdgrp.rec.midrat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"fxtp.fxdgrp.rec.fudref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxtp.fxdgrp.rec.opndat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.fxdgrp.rec.valdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.fxdgrp.rec.setdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.fxdgrp.rec.setdatto":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.fxdgrp.rec.setdatfrm":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.fxdgrp.blk.remark":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
}
\ No newline at end of file
/**
* Fxtsss Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
}
\ No newline at end of file
export default {
"fxtapll1blk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
"fxtapll2blk":[
{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 Fxtsss{
constructor () {
this.data = {
fxtapll1blk:"", // XMLPanel fxtapll1的内置block .fxtapll1blk
fxtapll2blk:"", // XMLPanel fxtapll2的内置block .fxtapll2blk
pageId: "" // ctx的key
}
export default class Fxtsss {
constructor() {
this.data = {
fxtp: {
fxdgrp: {
rec: {
ownref: "", // 结售汇业务参考号 .fxtp.fxdgrp.rec.ownref
nam: "", // 名称 .fxtp.fxdgrp.rec.nam
fxtyp: "", // 结售汇类型 .fxtp.fxdgrp.rec.fxtyp
opndat: "", // 登记日期 .fxtp.fxdgrp.rec.opndat
valdat: "", // 起息日 .fxtp.fxdgrp.rec.valdat
rat: "", // 对外牌价 .fxtp.fxdgrp.rec.rat
midrat: "", // 中间价 .fxtp.fxdgrp.rec.midrat
quoref: "", // 询价编号 .fxtp.fxdgrp.rec.quoref
fudref: "", // 资金部编号 .fxtp.fxdgrp.rec.fudref
setdat: "", // 远期交割日 .fxtp.fxdgrp.rec.setdat
setdatfrm: "", // 择期交割起始日 .fxtp.fxdgrp.rec.setdatfrm
setdatto: "", // 择期交割截止日 .fxtp.fxdgrp.rec.setdatto
trnman: "", // 交易主体 .fxtp.fxdgrp.rec.trnman
trdint: "", // 结售汇类型 .fxtp.fxdgrp.rec.trdint
trdout: "", // 结售汇类型 .fxtp.fxdgrp.rec.trdout
acc: "", // 外币结算账号 .fxtp.fxdgrp.rec.acc
acc2: "", // 本币结算账号 .fxtp.fxdgrp.rec.acc2
dsp: "", // 外币结算账号 .fxtp.fxdgrp.rec.dsp
dsp2: "", // 本币结算账号 .fxtp.fxdgrp.rec.dsp2
},
cbs: {
max: {
cur: "", // Currency .fxtp.fxdgrp.cbs.max.cur
amt: "", // Balance .fxtp.fxdgrp.cbs.max.amt
},
nom1: {
cur: "", // Currency .fxtp.fxdgrp.cbs.nom1.cur
amt: "", // Balance .fxtp.fxdgrp.cbs.nom1.amt
},
},
apl: {
pts: new Pts().data,
},
blk: {
remark: "", // 备注 .fxtp.fxdgrp.blk.remark
},
},
amtlab: "", // Amount Label .fxtp.amtlab
cnylab: "", // Amount LabelCNY .fxtp.cnylab
frgchk: "", // 外币 .fxtp.frgchk
cnychk: "", // 人民币 .fxtp.cnychk
aplp: {
ptspta: {
pts: new Pts().data,
dbfadrblkcn: "", // Chinese address .fxtp.aplp.ptspta.dbfadrblkcn
},
ptsget: {
sdamod: {
seainf: "", // .fxtp.aplp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .fxtp.aplp.ptsget.sdamod.dadsnd
},
},
},
cshflg: "", // 钞汇标志 .fxtp.cshflg
usrget: {
sdamod: {
seainf: "", // .fxtp.usrget.sdamod.seainf
},
usr: {
extkey: "", // User ID .fxtp.usrget.usr.extkey
},
},
},
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">
<c-col :span="12">
<c-form-item label="XMLPanel fxtapll1的内置block" prop="fxtapll1blk">
<c-input type="textarea" v-model="model.fxtapll1blk" maxlength="200" show-word-limit :placeholder="$t('other.please_enter')+'XMLPanel fxtapll1的内置block'" ></c-input>
</c-form-item>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "../model/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-form-item label="XMLPanel fxtapll2的内置block" prop="fxtapll2blk">
<c-input type="textarea" v-model="model.fxtapll2blk" maxlength="200" show-word-limit :placeholder="$t('other.please_enter')+'XMLPanel fxtapll2的内置block'" ></c-input>
</c-form-item>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "../model/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<!-- S0000039 : 结售汇业务参考号 -->
<c-col :span="12">
<c-form-item :label="$t('fxtp.结售汇业务参考号')" prop="fxtp.fxdgrp.rec.ownref">
<c-input v-model="model.fxtp.fxdgrp.rec.ownref" maxlength="16"></c-input>
</c-form-item>
</c-col>
<!-- S0000040 : 名称 -->
<c-col :span="12">
<c-form-item :label="$t('fxtp.名称')" prop="fxtp.fxdgrp.rec.nam">
<c-input v-model="model.fxtp.fxdgrp.rec.nam" maxlength="40"></c-input>
</c-form-item>
</c-col>
<!-- S0000057 : 结售汇申请人 -->
<!-- S0000092 : 编号 -->
<c-col :span="12">
<c-form-item :label="$t('fxtp.结售汇申请人')" prop="fxtp.fxdgrp.apl.pts.ref">
<c-input v-model="model.fxtp.fxdgrp.apl.pts.ref" maxlength="20"></c-input>
</c-form-item>
</c-col>
<!-- S0000041 : 业务负责人 -->
<c-col :span="12">
<c-form-item label="User ID" prop="fxtp.usrget.usr.extkey">
<c-input v-model="model.fxtp.usrget.usr.extkey" maxlength="8"></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"></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"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="External Key of Address" prop="fxtp.aplp.ptspta.pts.extkey">
<c-input v-model="model.fxtp.aplp.ptspta.pts.extkey" maxlength="16"></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"></c-input>
</c-form-item>
</c-col>
<!-- S0000047 : 结售汇类型 -->
<c-col :span="12">
<el-form-item :label="$t('fxtp.结售汇类型')" prop="fxtp.fxdgrp.rec.fxtyp">
<c-select v-model="model.fxtp.fxdgrp.rec.fxtyp" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Address Block" prop="fxtp.aplp.ptspta.pts.adrblk">
<c-input type="textarea" v-model="model.fxtp.aplp.ptspta.pts.adrblk" maxlength="35" show-word-limit></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Chinese address" prop="fxtp.aplp.ptspta.dbfadrblkcn">
<c-input type="textarea" v-model="model.fxtp.aplp.ptspta.dbfadrblkcn" maxlength="35" show-word-limit></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.fxtp.amtlab" data-path=".fxtp.amtlab"> </span>
</c-col>
<c-col :span="12">
<el-form-item label="Currency" prop="fxtp.fxdgrp.cbs.max.cur">
<c-select v-model="model.fxtp.fxdgrp.cbs.max.cur" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Balance" prop="fxtp.fxdgrp.cbs.max.amt">
<c-input v-model="model.fxtp.fxdgrp.cbs.max.amt"></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="fxtp.fxdgrp.cbs.nom1.cur">
<c-select v-model="model.fxtp.fxdgrp.cbs.nom1.cur" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Balance" prop="fxtp.fxdgrp.cbs.nom1.amt">
<c-input v-model="model.fxtp.fxdgrp.cbs.nom1.amt"></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>
<!-- S0000060 : 对外牌价 -->
<c-col :span="12">
<c-form-item :label="$t('fxtp.对外牌价')" prop="fxtp.fxdgrp.rec.rat">
<c-input v-model="model.fxtp.fxdgrp.rec.rat"></c-input>
</c-form-item>
</c-col>
<!-- S0000062 : 询价编号 -->
<c-col :span="12">
<c-form-item :label="$t('fxtp.询价编号')" prop="fxtp.fxdgrp.rec.quoref">
<c-input v-model="model.fxtp.fxdgrp.rec.quoref" maxlength="16"></c-input>
</c-form-item>
</c-col>
<!-- S0000091 : 钞汇标志 -->
<!-- S0000061 : 中间价 -->
<c-col :span="12">
<c-form-item :label="$t('fxtp.中间价')" prop="fxtp.fxdgrp.rec.midrat">
<c-input v-model="model.fxtp.fxdgrp.rec.midrat"></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%">
</c-select>
</el-form-item>
</c-col>
<!-- S0000063 : 资金部编号 -->
<c-col :span="12">
<c-form-item :label="$t('fxtp.资金部编号')" prop="fxtp.fxdgrp.rec.fudref">
<c-input v-model="model.fxtp.fxdgrp.rec.fudref" maxlength="16"></c-input>
</c-form-item>
</c-col>
<!-- S0000064 : 登记日期 -->
<c-col :span="12">
<el-form-item :label="$t('fxtp.登记日期')" prop="fxtp.fxdgrp.rec.opndat">
<c-date-picker type="date" v-model="model.fxtp.fxdgrp.rec.opndat" style="width:100%"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000065 : 起息日 -->
<c-col :span="12">
<el-form-item :label="$t('fxtp.起息日')" prop="fxtp.fxdgrp.rec.valdat">
<c-date-picker type="date" v-model="model.fxtp.fxdgrp.rec.valdat" style="width:100%"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000072 : 远期交割日 -->
<c-col :span="12">
<el-form-item :label="$t('fxtp.远期交割日')" prop="fxtp.fxdgrp.rec.setdat">
<c-date-picker type="date" v-model="model.fxtp.fxdgrp.rec.setdat" style="width:100%"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000074 : 择期交割截止日 -->
<c-col :span="12">
<el-form-item :label="$t('fxtp.择期交割截止日')" prop="fxtp.fxdgrp.rec.setdatto">
<c-date-picker type="date" v-model="model.fxtp.fxdgrp.rec.setdatto" style="width:100%"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000073 : 择期交割起始日 -->
<c-col :span="12">
<el-form-item :label="$t('fxtp.择期交割起始日')" prop="fxtp.fxdgrp.rec.setdatfrm">
<c-date-picker type="date" v-model="model.fxtp.fxdgrp.rec.setdatfrm" style="width:100%"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000078 : 外币结算账号 -->
<c-col :span="12">
<el-form-item :label="$t('fxtp.外币结算账号')" prop="fxtp.fxdgrp.rec.dsp">
<c-select v-model="model.fxtp.fxdgrp.rec.dsp" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('fxtp.外币结算账号')" prop="fxtp.fxdgrp.rec.acc">
<c-select v-model="model.fxtp.fxdgrp.rec.acc" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<!-- S0000079 : 本币结算账号 -->
<c-col :span="12">
<el-form-item :label="$t('fxtp.本币结算账号')" prop="fxtp.fxdgrp.rec.dsp2">
<c-select v-model="model.fxtp.fxdgrp.rec.dsp2" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('fxtp.本币结算账号')" prop="fxtp.fxdgrp.rec.acc2">
<c-select v-model="model.fxtp.fxdgrp.rec.acc2" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<!-- S0000075 : 交易主体 -->
<c-col :span="12">
<el-form-item :label="$t('fxtp.交易主体')" prop="fxtp.fxdgrp.rec.trnman">
<c-select v-model="model.fxtp.fxdgrp.rec.trnman" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<!-- S0000076 : 结售汇类型 -->
<c-col :span="12">
<el-form-item :label="$t('fxtp.结售汇类型')" prop="fxtp.fxdgrp.rec.trdint">
<c-select v-model="model.fxtp.fxdgrp.rec.trdint" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('fxtp.结售汇类型')" prop="fxtp.fxdgrp.rec.trdout">
<c-select v-model="model.fxtp.fxdgrp.rec.trdout" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<!-- S0000069 : 备注 -->
<c-col :span="12">
<c-form-item :label="$t('fxtp.备注')" prop="fxtp.fxdgrp.blk.remark">
<c-input type="textarea" v-model="model.fxtp.fxdgrp.blk.remark" maxlength="35" show-word-limit></c-input>
</c-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import Event from "../event"
export default {
inject: ['root'],
props: ["model", "codes"],
mixins: [],
data() {
return {
}
},
methods: { ...Event },
created: function () {
}
}
</script>
<style></style>
<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-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--fxtsss PD000001 -->
<el-tab-pane :label="$t('fxtsss.PD000001')" name="fxtapll1">
<m-fxtapll1 :model="model" :codes="codes"/>
</el-tab-pane>
<!--fxtsss PD000024 -->
<el-tab-pane :label="$t('fxtsss.PD000024')" name="fxtapll2">
<m-fxtapll2 :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
<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">
<!--fxtp PD000001 概要 -->
<el-tab-pane :label="$t('fxtp.概要')" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
</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>
</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 Fxtsss from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Fxtapll1 from "./Fxtapll1"
import Fxtapll2 from "./Fxtapll2"
import Ovwp from "./Ovwp"
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 Check from "../model/check.js";
import buildFn from "../event/buildCommons.js";
export default {
name: "Fxtsss",
components:{
"m-fxtapll1" : Fxtapll1,
"m-fxtapll2" : Fxtapll2,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "fxtapll1",
trnName: "fxtsss",
trnType: "",
model: new Fxtsss().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入fxtsss交易");
let rtnmsg = {}; // await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
name: "Fxtsss",
components: {
"m-ovwp": Ovwp,
"m-setpan": Setpan,
"m-docpan": Docpan,
},
provide() {
return {
root: this
}
},
mixins: [operationFunc, commonDepend, event, buildFn],
data() {
return {
tabVal: "ovwp",
trnName: "fxtsss",
trnType: "",
model: new Fxtsss().data,
rules: Check,
codes: { ...CodeTable },
}
},
methods: {
myTabClick(tab) {
this.tabClick(tab)
}
},
created: async function () {
console.log("进入fxtsss交易");
let params = {
transName: this.trnName,
fxdgrp: {
rec: {
inr: this.$route.query.inr || "",
},
},
};
this.init(params)
}
}
</script>
<style>
</style>
<style></style>
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