Commit f137d446 by jianglong

调试FXTFCN交易

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