Commit f137d446 by jianglong

调试FXTFCN交易

parent 417b475b
...@@ -142,7 +142,7 @@ export default { ...@@ -142,7 +142,7 @@ export default {
} }
}, },
methods:{...Event}, methods:{},
created:function(){ created:function(){
} }
......
...@@ -24,9 +24,18 @@ export default { ...@@ -24,9 +24,18 @@ export default {
let ptsptaList = []; let ptsptaList = [];
return { return {
rec: { rec: {
objtyp: "FXT", objtyp: "FXD",
objinr: model.fxdgrp.rec.inr,
ownref: model.fxdgrp.rec.ownref,
fxtyp:model.fxdgrp.rec.fxtyp,
swtflg:model.swtflg,
cancur:model.cancur,
canamt:model.canamt,
},
cbsMap: {
MAX: model.fxdgrp.cbs.max,
NOM1: model.fxdgrp.cbs.nom1,
}, },
cbsMap: {},
ptsList: ptsptaList, ptsList: ptsptaList,
transName: trnName, transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL", userId: window.sessionStorage.userId ? window.sessionStorage.userId : "ZL",
......
...@@ -4,25 +4,7 @@ import Api from '~/service/Api'; ...@@ -4,25 +4,7 @@ import Api from '~/service/Api';
export default { export default {
mixins: [commonFunctions], mixins: [commonFunctions],
methods: { 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规则
*/
export default { export default {
"fxdgrp.rec.ownref": [ "fxtlcn.canamt":[
{ type: "string", required: false, message: "必输项" }, {type: "number", required: false, message: "必输项"},
{ max: 16, message: "长度不能超过16" } {max: 18,message:"整数位不能超过14位"},
], {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
"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 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"; import Pub from "~/components/business/commonModel/index.js";
import Fxdgrp from '~/components/business/commonModel/fxdgrp';
export default class Fxtlcn{ export default class Fxtlcn{
constructor () { constructor () {
this.data = { this.data = {
fxdgrp:{ fxdgrp: new Fxdgrp().data,
rec:{
ownref:"", // 平盘业务参考号 .fxdgrp.rec.ownref
nam:"", // 名称 .fxdgrp.rec.nam
fxtyp:"", // 平盘类型 .fxdgrp.rec.fxtyp
opndat:"", // 平盘日期 .fxdgrp.rec.opndat
valdat:"", // 起息日 .fxdgrp.rec.valdat
},
apl:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .fxdgrp.apl.dbfadrblkcn
},
blk:{
remark:"", // 备注 .fxdgrp.blk.remark
},
cbs:{
opn2:{
cur:"", // 待销账金额 .fxdgrp.cbs.opn2.cur
amt:"", // Balance .fxdgrp.cbs.opn2.amt
},
},
act:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .fxdgrp.act.dbfadrblkcn
},
},
fxtp:{ fxtp:{
aplp:{ frgchk:"X"
ptsget:{
sdamod:{
seainf:"", // .fxtp.aplp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fxtp.aplp.ptsget.sdamod.dadsnd
},
},
},
usrget:{
sdamod:{
seainf:"", // .fxtp.usrget.sdamod.seainf
},
},
usr:{
extkey:"", // 资金部负责人 .fxtp.usr.extkey
},
actp:{
ptsget:{
sdamod:{
seainf:"", // .fxtp.actp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fxtp.actp.ptsget.sdamod.dadsnd
},
},
},
}, },
mtabut:{ mtabut:{
clsflg:"", // Close Flag .mtabut.clsflg clsflg:"", // Close Flag .mtabut.clsflg
}, },
canamt:"", // Cancel Amount .canamt
cancur:"", // 实际销账金额 .cancur cancur:"",
pageId: "", // ctx的key canamt:0,
oldactinr:"",
relcur:"",
relamt:0,
f21:"",
acc2:"", // APLACC's Account .acc2
acc1:"",
aplacc:{
pts:new Pts().data,
},
setmod: new Pub().data.Setmod, setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan, docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia trndia: new Pub().data.Trndia
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<!-- S0000002 : 平盘业务参考号 --> <c-col :span="24">
<c-col :span="12"> <!-- ==================左边================ -->
<c-form-item :label="$t('fxtlcn.业务编号')" prop="fxdgrp.rec.ownref"> <c-col :span="12" style="padding-right: 20px">
<c-input v-model="model.fxdgrp.rec.ownref" maxlength="16"></c-input> <c-col :span="24">
</c-form-item> <c-form-item label="业务编号" prop="fxdgrp.rec.ownref">
</c-col> <c-fullbox>
<!-- S0000003 : 名称 --> <c-input v-model="model.fxdgrp.rec.ownref" maxlength="16" placeholder="请输入业务编号" disabled>
<c-col :span="12"> </c-input>
<c-form-item :label="$t('fxtlcn.业务名称')" prop="fxdgrp.rec.nam">
<c-input v-model="model.fxdgrp.rec.nam" maxlength="40"></c-input> </c-fullbox>
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="12">
<!-- S0000004 : 资金部负责人 -->
<c-col :span="24"> <c-col :span="24">
<c-form-item :label="$t('fxtlcn.业务负责人')" prop="fxtp.usr.extkey"> <c-form-item label="经办人" prop="fxdgrp.rec.usr">
<c-fullbox> <c-fullbox>
<c-input v-model="model.fxtp.usr.extkey" maxlength="8"></c-input> <c-input disabled v-model="model.fxdgrp.rec.usr" placeholder="请输入业务负责人" ></c-input>
<template slot="footer"> <template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary"> <c-button style="margin: 0 5px" size="small" type="primary">
i i
</c-button> </c-button>
</template> </template>
</c-fullbox> </c-fullbox>
</c-form-item> </c-form-item>
</c-col> </c-col>
<!-- S0000005 : 平盘类型 -->
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('fxtlcn.平盘类型')" prop="fxdgrp.rec.fxtyp"> <el-form-item label="平盘类型" prop="fxdgrp.rec.fxtyp">
<c-select v-model="model.fxdgrp.rec.fxtyp" :code="codes.fxt_fxtyp" style="width: 100%"> <c-select disabled v-model="model.fxdgrp.rec.fxtyp" style="width:100%" :code="codes.fxt_fxtyp" :filterKey="['FS', 'FB']">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<!-- S0000015 : 待销账金额 -->
<c-col :span="24"> <c-col :span="24">
<c-col :span="10"> <c-col :span="12">
<c-form-item <el-form-item label="待销账金额" prop="fxdgrp.cbs.opn2.cur">
:label="$t('fxtlcn.Foreign Cur Amount')" <c-select-cur disabled v-model="model.fxdgrp.cbs.opn2.cur" style="width: 100%" dbCode="curtxt"> </c-select-cur>
prop="fxdgrp.cbs.opn2.cur" </el-form-item>
>
<c-select
v-model="model.fxdgrp.cbs.opn2.cur"
:code="codes.curtxt"
maxlength="3"
></c-select>
</c-form-item>
</c-col> </c-col>
<c-col :span="14"> <c-col :span="12">
<c-form-item label-width="10px" prop="fxdgrp.cbs.opn2.amt"> <el-form-item label-width="5px" prop="fxdgrp.cbs.opn2.amt">
<c-input-currency <c-input-currency
v-model="model.fxdgrp.cbs.opn2.amt" disabled
:currency="model.fxdgrp.cbs.opn2.cur" :currency="model.fxdgrp.cbs.opn2.cur"
></c-input-currency> v-model="model.fxdgrp.cbs.opn2.amt"></c-input-currency>
</c-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
<!-- S0000017 : 实际销账金额 -->
<c-col :span="24"> <c-col :span="24">
<c-col :span="10"> <c-col :span="12">
<c-form-item <el-form-item label="销账金额" prop="cancur">
:label="$t('fxtlcn.fxtlcn.Domestic Cur Amount')" <c-select-cur disabled v-model="model.cancur" style="width: 100%" dbCode="curtxt"> </c-select-cur>
prop="cancur" </el-form-item>
>
<c-select
v-model="model.cancur"
:code="codes.curtxt"
maxlength="3"
></c-select>
</c-form-item>
</c-col> </c-col>
<c-col :span="14"> <c-col :span="12">
<c-form-item label-width="10px" prop="canamt"> <el-form-item label-width="5px" prop="canamt">
<c-input-currency <c-input-currency
v-model="model.canamt"
:currency="model.cancur" :currency="model.cancur"
></c-input-currency> v-model="model.canamt"></c-input-currency>
</c-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-form-item :label="$t('fxtlcn.平盘牌价')" prop="canamt"> <el-form-item label="成交日" prop="fxdgrp.rec.opndat">
<c-input v-model="model.canamt"></c-input> <c-date-picker disabled type="date" v-model="model.fxdgrp.rec.opndat" style="width:100%" placeholder="请输入成交日">
</c-form-item> </c-date-picker>
</c-col> </el-form-item>
<c-col :span="24">
<c-form-item :label="$t('fxtlcn.中间价')" prop="canamt">
<c-input v-model="model.canamt"></c-input>
</c-form-item>
</c-col> </c-col>
<!-- S0000007 : 平盘日期 -->
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('fxtlcn.成交日')" prop="fxdgrp.rec.opndat"> <el-form-item label="起息日" prop="fxdgrp.rec.valdat">
<c-date-picker <c-date-picker disabled type="date" v-model="model.fxdgrp.rec.valdat" style="width:100%" placeholder="请输入起息日">
type="date" </c-date-picker>
v-model="model.fxdgrp.rec.opndat"
style="width: 100%"
></c-date-picker>
</el-form-item> </el-form-item>
</c-col> </c-col>
<!-- S0000009 : 备注 -->
<c-col :span="24"> <c-col :span="24">
<c-form-item :label="$t('fxtlcn.备注')" prop="fxdgrp.blk.remark"> <c-form-item label="备注" prop="fxdgrp.blk.remark">
<c-input <c-input disabled type="textarea" v-model="model.fxdgrp.blk.remark" maxlength="140" :rows="4" style="width:100%" placeholder="请输入备注">
type="textarea" </c-input>
v-model="model.fxdgrp.blk.remark"
:rows="3"
maxlength="35"
show-word-limit
></c-input>
</c-form-item> </c-form-item>
</c-col> </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>
<!-- ==================右边================ -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24"> <c-col :span="24">
<c-form-item prop="fxdgrp.apl.pts.extkey"> <c-form-item label="业务名称" prop="fxdgrp.rec.nam">
<c-fullbox> <c-input v-model="model.fxdgrp.rec.nam" maxlength="40" disabled></c-input>
<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-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-form-item prop="fxdgrp.apl.pts.adrblk"> <el-card class="box-card">
<c-input <c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="true" :disabled="true" :isAdrblk="true" :haveAdrLabel="true"
type="textarea" :isShowCard="false"
v-model="model.fxdgrp.apl.pts.adrblk" :argadr="{title: '平盘对手', grp: 'fxdgrp', rol: 'apl',}"
:rows="3" :label="{labelExtkey:'平盘对手',labelNam:'名称',labelAdrblk:'地址',}"
maxlength="35" ptytyp="B">
show-word-limit </c-ptap>
></c-input> </el-card>
</c-form-item>
</c-col> </c-col>
<!-- S0000008 : 起息日 -->
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('fxtlcn.起息日')" prop="fxdgrp.rec.valdat"> <el-card class="box-card">
<c-date-picker <c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="true" :disabled="true" :isAdrblk="true" :haveAdrLabel="true"
type="date" :isShowCard="false"
v-model="model.fxdgrp.rec.valdat" :argadr="{title: '我行账户行', grp: 'fxdgrp', rol: 'act',}"
style="width: 100%" :label="{labelExtkey:'我行账户行',labelNam:'名称',labelAdrblk:'地址',}"
></c-date-picker> ptytyp="B">
</el-form-item> </c-ptap>
</el-card>
</c-col>
</c-col> </c-col>
</c-col> </c-col>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api"; import Api from "~/service/Api"
import event from "../event"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "../event"
export default { export default {
inject: ["root"], inject: ['root'],
props: ["model", "codes"], props:["model","codes"],
mixins: [event], mixins: [Event,commonProcess],
data() { data(){
return {}; return {
}
}, },
methods: {}, methods:{},
created: function () {}, created:function(){
};
}
}
</script> </script>
<style> <style>
</style> </style>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<c-page title="结售汇平盘销账"> <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">
<el-tab-pane label="概要" name="canp"> <el-tab-pane label="业务信息" name="canp">
<m-canp :model="model" :codes="codes"/> <m-canp :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="费用/账务" name="setpan"> <el-tab-pane label="费用/账务" name="setpan">
...@@ -74,18 +74,16 @@ export default { ...@@ -74,18 +74,16 @@ export default {
} }
}, },
created:async function(){ created:async function(){
console.log("进入fxtlcn交易"); console.log("进入fxtlcn交易.."+this.trnName);
let rtnmsg = {}; // await this.init({}) let params = {
if(rtnmsg.respCode == SUCCESS) transName: this.trnName,
{ fxdgrp: {
this.updateModel(rtnmsg.data) rec: {
//TODO 处理数据逻辑 inr: this.$route.query.inr || "",
},
} },
else };
{ this.init(params)
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
} }
} }
</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