Commit a6564e32 by liushikai

结售汇平盘销账界面优化

parent 9ccf108c
import Utils from "~/utils";
export default {
methods: {
buildPtspta(ptsptaObj) {
let pts = ptsptaObj.pts;
return {
rol: pts.rol,
name: pts.nam,
ptyinr: pts.ptyinr,
ptainr: pts.ptainr,
extkey: pts.extkey,
dftdsp: pts.dftdsp,
dftcur: pts.dftcur,
dftact: pts.dftact,
dftfeecur: pts.dftfeecur,
dftactptainr: pts.dftactptainr,
glggrpflg: pts.glggrpflg,
adrblk: pts.adrblk,
pts,
};
},
buildCommonData(model, trnName) {
let ptsptaList = [];
return {
rec: {
objtyp: "FXT",
},
cbsMap: {},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
};
},
},
};
import commonFunctions from '~/mixin/commonFunctions.js';
import Api from '~/service/Api';
export default {
mixins: [commonFunctions],
methods: {
async onAplpDet() {
let rtnmsg = await this.executeRule("aplp.det")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onActpDet() {
let rtnmsg = await this.executeRule("actp.det")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
}
}
\ No newline at end of file
import Utils from "~/utils"
/**
* Fxtlcn Check规则
*/
let checkObj = {
"canamt" :null,
"fxdgrp.apl.pts.adrblk" :null,
"fxtp.usr.extkey" :null,
"fxdgrp.cbs.opn2.amt" :null,
"fxdgrp.act.pts.adrblk" :null,
"fxdgrp.act.pts.extkey" :null,
"fxdgrp.rec.ownref" :null,
"fxdgrp.apl.pts.extkey" :null,
"mtabut.clsflg" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Fxtlcn Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"fxdgrp.apl.dbfadrblkcn" :Utils.defaultFunction,
"fxtp.usr.extkey" :Utils.defaultFunction,
"fxdgrp.apl.pts.adrblk" :Utils.defaultFunction,
"fxdgrp.act.pts.extkey" :Utils.defaultFunction,
"fxdgrp.rec.fxtyp" :Utils.defaultFunction,
"fxdgrp.apl.pts.extkey" :Utils.defaultFunction,
"fxdgrp.cbs.opn2.amt" :Utils.defaultFunction,
"fxdgrp.cbs.opn2.cur" :Utils.defaultFunction,
"fxdgrp.rec.ownref" :Utils.defaultFunction,
"fxdgrp.act.dbfadrblkcn" :Utils.defaultFunction,
"fxdgrp.act.pts.adrblk" :Utils.defaultFunction,
"fxdgrp.rec.opndat" :Utils.defaultFunction,
"mtabut.clsflg" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onAplpDet(){
let rtnmsg = await this.executeRule("aplp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onActpDet(){
let rtnmsg = await this.executeRule("actp.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.opn2.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fxdgrp.cbs.opn2.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cancur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"canamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"fxdgrp.rec.opndat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxtp.actp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxdgrp.rec.valdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxdgrp.act.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxtp.actp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fxdgrp.act.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fxdgrp.act.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fxdgrp.blk.remark":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
}
\ No newline at end of file
import Utils from "~/utils"
/**
* Fxtlcn Check规则
*/
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.opn2.cur": [
{ type: "string", required: false, message: "必输项" },
{ max: 3, message: "长度不能超过3" }
],
"fxdgrp.cbs.opn2.amt": [
{ type: "number", required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cancur": [
{ type: "string", required: false, message: "必输项" },
{ max: 3, message: "长度不能超过3" }
],
"canamt": [
{ type: "number", required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"fxdgrp.rec.opndat": [
{ type: "date", required: false, message: "输入正确的日期" }
],
"fxtp.actp.ptsget.sdamod.dadsnd": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"fxdgrp.rec.valdat": [
{ type: "date", required: false, message: "输入正确的日期" }
],
"fxdgrp.act.pts.extkey": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"fxtp.actp.ptsget.sdamod.seainf": [
{ type: "string", required: false, message: "必输项" },
{ max: 3, message: "长度不能超过3" }
],
"fxdgrp.act.pts.adrblk": [
{ type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
"fxdgrp.act.dbfadrblkcn": [
{ type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
"fxdgrp.blk.remark": [
{ type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
]
}
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
import Pub from "~/components/business/commonModel/index.js";
export default class Fxtlcn{
constructor () {
......@@ -61,7 +62,10 @@ export default class Fxtlcn{
},
canamt:"", // Cancel Amount .canamt
cancur:"", // 实际销账金额 .cancur
pageId: "" // ctx的key
pageId: "", // ctx的key
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- S0000002 : 平盘业务参考号 -->
<c-col :span="12">
<c-form-item :label="$t('fxtlcn.S0000002')" prop="fxdgrp.rec.ownref">
<c-input v-model="model.fxdgrp.rec.ownref" maxlength="16" :placeholder="$t('other.please_enter')+$t('fxtlcn.S0000002')"></c-input>
</c-form-item>
</c-col>
<!-- S0000003 : 名称 -->
<c-col :span="12">
<c-form-item :label="$t('fxtlcn.S0000003')" prop="fxdgrp.rec.nam">
<c-input v-model="model.fxdgrp.rec.nam" maxlength="40" :placeholder="$t('other.please_enter')+$t('fxtlcn.S0000003')"></c-input>
</c-form-item>
</c-col>
<!-- S0000006 : 平盘对手 -->
<c-col :span="12">
<c-form-item :label="$t('fxtlcn.S0000006')" prop="fxdgrp.apl.pts.ref">
<c-input v-model="model.fxdgrp.apl.pts.ref" maxlength="20" :placeholder="$t('other.please_enter')+$t('fxtlcn.S0000006')"></c-input>
</c-form-item>
</c-col>
<!-- S0000004 : 资金部负责人 -->
<c-col :span="12">
<c-form-item :label="$t('fxtlcn.S0000004')" prop="fxtp.usr.extkey">
<c-input v-model="model.fxtp.usr.extkey" maxlength="8" :placeholder="$t('other.please_enter')+$t('fxtlcn.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('fxtlcn.S0000005')" prop="fxdgrp.rec.fxtyp">
<c-select v-model="model.fxdgrp.rec.fxtyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtlcn.S0000005')">
</c-select>
<!-- S0000002 : 平盘业务参考号 -->
<c-col :span="12">
<c-form-item :label="$t('fxtlcn.业务编号')" prop="fxdgrp.rec.ownref">
<c-input v-model="model.fxdgrp.rec.ownref" maxlength="16"></c-input>
</c-form-item>
</c-col>
<!-- S0000003 : 名称 -->
<c-col :span="12">
<c-form-item :label="$t('fxtlcn.业务名称')" prop="fxdgrp.rec.nam">
<c-input v-model="model.fxdgrp.rec.nam" maxlength="40"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<!-- S0000004 : 资金部负责人 -->
<c-col :span="24">
<c-form-item :label="$t('fxtlcn.业务负责人')" prop="fxtp.usr.extkey">
<c-fullbox>
<c-input v-model="model.fxtp.usr.extkey" maxlength="8"></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary">
i
</c-button>
</template>
</c-fullbox>
</c-form-item>
</c-col>
<!-- S0000005 : 平盘类型 -->
<c-col :span="24">
<el-form-item :label="$t('fxtlcn.平盘类型')" prop="fxdgrp.rec.fxtyp">
<c-select v-model="model.fxdgrp.rec.fxtyp" style="width: 100%">
</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>
<!-- S0000015 : 待销账金额 -->
<c-col :span="24">
<c-col :span="10">
<c-form-item
:label="$t('fxtlcn.Foreign Cur Amount')"
prop="fxdgrp.cbs.opn2.cur"
>
<c-select
v-model="model.fxdgrp.cbs.opn2.cur"
maxlength="3"
></c-select>
</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 :span="14">
<c-form-item label-width="10px" prop="fxdgrp.cbs.opn2.amt">
<c-input v-model="model.fxdgrp.cbs.opn2.amt"></c-input>
</c-form-item>
</c-col>
<!-- S0000015 : 待销账金额 -->
<c-col :span="12">
<c-form-item :label="$t('fxtlcn.S0000015')" prop="fxdgrp.cbs.opn2.cur">
<c-input v-model="model.fxdgrp.cbs.opn2.cur" maxlength="3" :placeholder="$t('other.please_enter')+$t('fxtlcn.S0000015')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Balance" prop="fxdgrp.cbs.opn2.amt">
<c-input v-model="model.fxdgrp.cbs.opn2.amt" :placeholder="$t('other.please_enter')+'Balance'"></c-input>
</c-form-item>
</c-col>
<!-- S0000017 : 实际销账金额 -->
<c-col :span="12">
<c-form-item :label="$t('fxtlcn.S0000017')" prop="cancur">
<c-input v-model="model.cancur" maxlength="3" :placeholder="$t('other.please_enter')+$t('fxtlcn.S0000017')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Cancel Amount" prop="canamt">
<c-input v-model="model.canamt" :placeholder="$t('other.please_enter')+'Cancel Amount'"></c-input>
</c-form-item>
</c-col>
<!-- S0000007 : 平盘日期 -->
<c-col :span="12">
<el-form-item :label="$t('fxtlcn.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('fxtlcn.S0000007')"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000018 : Account Bank -->
<c-col :span="12">
<c-form-item label="Drag Drop Sender" prop="fxtp.actp.ptsget.sdamod.dadsnd">
<c-input v-model="model.fxtp.actp.ptsget.sdamod.dadsnd" :placeholder="$t('other.please_enter')+'Drag Drop Sender'"></c-input>
</c-form-item>
</c-col>
<!-- S0000008 : 起息日 -->
<c-col :span="12">
<el-form-item :label="$t('fxtlcn.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('fxtlcn.S0000008')"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="External Key of Address" prop="fxdgrp.act.pts.extkey">
<c-input v-model="model.fxdgrp.act.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.actp.ptsget.sdamod.seainf">
<c-input v-model="model.fxtp.actp.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="onActpDet">
{{$t('ptsp.CF000081')}}
</c-button>
</c-col>
<c-col :span="12">
<c-form-item label="Address Block" prop="fxdgrp.act.pts.adrblk">
<c-input type="textarea" v-model="model.fxdgrp.act.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.act.dbfadrblkcn">
<c-input type="textarea" v-model="model.fxdgrp.act.dbfadrblkcn" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Chinese address'" ></c-input>
</c-form-item>
</c-col>
<!-- S0000017 : 实际销账金额 -->
<c-col :span="24">
<c-col :span="10">
<c-form-item
:label="$t('fxtlcn.fxtlcn.Domestic Cur Amount')"
prop="cancur"
>
<c-select v-model="model.cancur" maxlength="3"></c-select>
</c-form-item>
</c-col>
<!-- S0000009 : 备注 -->
<c-col :span="12">
<c-form-item :label="$t('fxtlcn.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('fxtlcn.S0000009')" ></c-input>
</c-form-item>
<c-col :span="14">
<c-form-item label-width="10px" prop="canamt">
<c-input v-model="model.canamt"></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>
</c-col>
<c-col :span="24">
<c-form-item :label="$t('fxtlcn.平盘牌价')" prop="cancur">
<c-select v-model="model.canamt" maxlength="3"></c-select>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item :label="$t('fxtlcn.中间价')" prop="cancur">
<c-select v-model="model.canamt" maxlength="3"></c-select>
</c-form-item>
</c-col>
<!-- S0000007 : 平盘日期 -->
<c-col :span="24">
<el-form-item :label="$t('fxtlcn.成交日')" prop="fxdgrp.rec.opndat">
<c-date-picker
type="date"
v-model="model.fxdgrp.rec.opndat"
style="width: 100%"
></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000009 : 备注 -->
<c-col :span="24">
<c-form-item :label="$t('fxtlcn.备注')" prop="fxdgrp.blk.remark">
<c-input
type="textarea"
v-model="model.fxdgrp.blk.remark"
:rows="3"
maxlength="35"
show-word-limit
></c-input>
</c-form-item>
</c-col>
</c-col>
<c-col :span="12">
<!-- S0000006 : 平盘对手 -->
<c-col :span="24">
<c-form-item
:label="$t('fxtlcn.平盘对手编号')"
prop="fxdgrp.apl.pts.ref"
>
<c-input v-model="model.fxdgrp.apl.pts.ref" maxlength="20"></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item prop="fxdgrp.apl.pts.extkey">
<c-fullbox>
<c-input
v-model="model.fxdgrp.apl.pts.extkey"
maxlength="16"
></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary">
i
</c-button>
<c-button size="small" style="margin-left: 5px" type="primary">
Details
</c-button>
</template>
</c-fullbox>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item prop="fxdgrp.apl.pts.adrblk">
<c-input
type="textarea"
v-model="model.fxdgrp.apl.pts.adrblk"
:rows="3"
maxlength="35"
show-word-limit
></c-input>
</c-form-item>
</c-col>
<!-- S0000008 : 起息日 -->
<c-col :span="24">
<el-form-item :label="$t('fxtlcn.起息日')" prop="fxdgrp.rec.valdat">
<c-date-picker
type="date"
v-model="model.fxdgrp.rec.valdat"
style="width: 100%"
></c-date-picker>
</el-form-item>
</c-col>
</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"
import Api from "~/service/Api";
import event from "../event";
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
methods: {},
created: function () {},
};
</script>
<style>
</style>
<template>
<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">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--fxtlcn PD000001 Cancellation -->
<el-tab-pane :label="$t('fxtlcn.PD000001')" name="canp">
<el-tab-pane label="概要" name="canp">
<m-canp :model="model" :codes="codes"/>
</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 Fxtlcn from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Canp from "./Canp"
import event from "../event";
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import buildFn from "../event/buildCommons.js";
import Check from "../model/check";
import Canp from "./Canp"
import Setpan from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
export default {
name: "Fxtlcn",
components:{
"m-canp" : Canp,
"m-setpan": Setpan,
"m-docpan": Docpan
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
mixins: [operationFunc, commonDepend, event, buildFn],
data(){
return {
tabVal: "canp",
trnName: "fxtlcn",
trnType: "",
model: new Fxtlcn().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
rules: Check,
codes: { ...CodeTable },
}
},
methods:{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment