Commit cc080d70 by wangweidong

清算入口交易

parent 5a6867ec
......@@ -14,6 +14,7 @@ const BusRouter = [
{ path: 'fxteqo', component: () => import("./Fxteqo/views"), name: 'Fxteqo', meta: { title: '代客外汇买卖报价' }, module: 'Funds' },
{ path: 'fxtfcm', component: () => import("./Fxtfcm/views"), name: 'Fxtfcm', meta: { title: '外币兑换平盘登记' }, module: 'Funds' },
{ path: 'fxtfcn', component: () => import("./Fxtfcn/views"), name: 'Fxtfcn', meta: { title: '外币兑换平盘销账' }, module: 'Funds' },
{ path: 'infcrd', component: () => import("./Infcrd/views"), name: 'Infcrd', meta: { title: '清算入口交易' }, module: 'Funds' },
{
path: "fxtfop",
component: () => import("./Fxtfop/views"),
......
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 Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onSndpDet(){
let rtnmsg = await this.executeRule("sndp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onAccpDet(){
let rtnmsg = await this.executeRule("accp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"recpan.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recpan.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"crdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"crdgrp.snd.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"recpan.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"recpan.usrget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recpan.sndp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crdgrp.snd.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recpan.sndp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"crdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"crdgrp.snd.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"crdgrp.snd.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"crdgrp.rec.msgref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crdgrp.rec.msgact":[
{type: "string", required: false, message: "必输项"},
{max: 21,message:"长度不能超过21"}
],
"crdgrp.acc.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"recpan.accp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"crdgrp.acc.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recpan.accp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"crdgrp.rec.errmsg":[
{type: "string", required: true, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"crdgrp.acc.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"crdgrp.acc.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"recpan.valdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
}
\ 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 Infcrd {
constructor() {
this.data = {
crdgrp: {
cbs: {
max: {
cur: "", // 清算币种及金额 .crdgrp.cbs.max.cur
amt: "", // 清算币种及金额 .crdgrp.cbs.max.amt
},
},
rec: {
msgact: "", // 汇款账号(Tag59) .crdgrp.rec.msgact
ownref: "", // 业务编号 .crdgrp.rec.ownref
nam: "", // 名称 .crdgrp.rec.nam
msgref: "", // 本行业务编号 .crdgrp.rec.msgref
rcvobjtyp: "", // 业务种类 .crdgrp.rec.rcvobjtyp
rcvbchinr: "", // 归属机构 .crdgrp.rec.rcvbchinr
errmsg: "", // 出错信息 .crdgrp.rec.errmsg
custyp: "", // 客户类型 .crdgrp.rec.custyp
},
snd: {
pts: new Pts().data,
dbfadrblkcn: "", // Chinese address .crdgrp.snd.dbfadrblkcn
},
acc: {
pts: new Pts().data,
dbfadrblkcn: "", // Chinese address .crdgrp.acc.dbfadrblkcn
},
},
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
trndia: new Pub().data.Trndia,
recpan: {
recget: {
sdamod: {
seainf: "", // .recpan.recget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .recpan.recget.sdamod.dadsnd
},
},
usr: {
extkey: "", // 经办柜员 .recpan.usr.extkey
},
usrget: {
sdamod: {
seainf: "", // .recpan.usrget.sdamod.seainf
},
},
sndp: {
ptsget: {
sdamod: {
seainf: "", // .recpan.sndp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .recpan.sndp.ptsget.sdamod.dadsnd
},
},
},
accp: {
ptsget: {
sdamod: {
seainf: "", // .recpan.accp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .recpan.accp.ptsget.sdamod.dadsnd
},
},
},
valdat: "", // 起息日 .recpan.valdat
forare: "", // USE FOR ARE AMTOUNT .recpan.forare
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="24">
<!--
<c-col :span="12">
<c-form-item label="Drag Drop Sender" prop="recpan.recget.sdamod.dadsnd">
<c-input v-model="model.recpan.recget.sdamod.dadsnd"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="" prop="recpan.recget.sdamod.seainf">
<c-input v-model="model.recpan.recget.sdamod.seainf"></c-input>
</c-form-item>
</c-col>
-->
<!-- S0000005 : 业务编号 -->
<c-col :span="12">
<c-form-item :label="$t('crdgrp.业务编号')" prop="crdgrp.rec.ownref">
<c-input v-model="model.crdgrp.rec.ownref" maxlength="16"></c-input>
</c-form-item>
</c-col>
<!-- S0000006 : 名称 -->
<c-col :span="12">
<c-form-item :label="$t('crdgrp.简略信息')" prop="crdgrp.rec.nam">
<c-input v-model="model.crdgrp.rec.nam" maxlength="40"></c-input>
</c-form-item>
</c-col>
</c-col>
<!-- S0000010 : 发报行 -->
<!-- S0000011 : Ref. -->
<!--
<c-col :span="12">
<c-form-item :label="发报行" prop="crdgrp.snd.pts.ref">
<c-input v-model="model.crdgrp.snd.pts.ref" maxlength="20"></c-input>
</c-form-item>
</c-col>
-->
<!-- S0000009 : 经办柜员 -->
<!--
<c-col :span="12">
<c-form-item :label="经办柜员" prop="recpan.usr.extkey">
<c-input v-model="model.recpan.usr.extkey" maxlength="8"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="" prop="recpan.usrget.sdamod.seainf">
<c-input v-model="model.recpan.usrget.sdamod.seainf"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Drag Drop Sender" prop="recpan.sndp.ptsget.sdamod.dadsnd">
<c-input v-model="model.recpan.sndp.ptsget.sdamod.dadsnd"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="External Key of Address" prop="crdgrp.snd.pts.extkey">
<c-input v-model="model.crdgrp.snd.pts.extkey" maxlength="16"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="" prop="recpan.sndp.ptsget.sdamod.seainf">
<c-input v-model="model.recpan.sndp.ptsget.sdamod.seainf"></c-input>
</c-form-item>
</c-col>
-->
<!-- S0000013 : 清算币种及金额 -->
<c-col :span="24">
<c-col :span="12">
<el-form-item :label="$t('crdgrp.币种')" prop="crdgrp.cbs.max.cur">
<c-select v-model="model.crdgrp.cbs.max.cur" style="width: 100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item :label="$t('crdgrp.金额')" prop="crdgrp.cbs.max.amt">
<c-input v-model="model.crdgrp.cbs.max.amt"></c-input>
</c-form-item>
</c-col>
</c-col>
<!-- S0000014 : 本行业务编号 -->
<c-col :span="12">
<c-form-item :label="$t('crdgrp.报文编号')" prop="crdgrp.rec.msgref">
<c-input v-model="model.crdgrp.rec.msgref" maxlength="16"></c-input>
</c-form-item>
</c-col>
<!-- S0000004 : 汇款账号(Tag59) -->
<c-col :span="12">
<c-form-item :label="$t('crdgrp.报文中账号')" prop="crdgrp.rec.msgact">
<c-input v-model="model.crdgrp.rec.msgact" maxlength="21"></c-input>
</c-form-item>
</c-col>
<!-- S0000015 : 业务种类 -->
<c-col :span="12">
<el-form-item :label="$t('crdgrp.清算类型')" prop="crdgrp.rec.rcvobjtyp">
<c-select v-model="model.crdgrp.rec.rcvobjtyp" style="width: 100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('crdgrp.业务类型')" prop="crdgrp.rec.custyp">
<c-select v-model="model.crdgrp.rec.custyp" style="width: 100%">
</c-select>
</el-form-item>
</c-col>
<!-- S0000017 : 账户行 -->
<!-- S0000018 : Ref. -->
<c-col :span="12">
<c-ptap-ext
:argadr="{
title: '发报行',
extCodes: ['infcrd'],
grp: 'crdgrp',
rol: 'apl',
}"
:requiredExtkey="true"
:isFieldLabelVisible="true"
:refVisiable="true"
:isAdrblk="true"
:disabled="true"
:model="model"
ptytyp="B"
>
</c-ptap-ext>
</c-col>
<c-col :span="12">
<c-ptap-ext
:argadr="{
title: '收报行',
extCodes: ['infcrd'],
grp: 'crdgrp',
rol: 'dff',
}"
:requiredExtkey="true"
:isFieldLabelVisible="true"
:refVisiable="true"
:isAdrblk="true"
:disabled="true"
:model="model"
ptytyp="C"
>
</c-ptap-ext>
</c-col>
<!--
<c-col :span="12">
<c-form-item :label="$t('crtp.S0000017')" prop="crdgrp.acc.pts.ref">
<c-input v-model="model.crdgrp.acc.pts.ref" maxlength="20"></c-input>
</c-form-item>
</c-col>
-->
<!-- S0000020 : 归属机构 -->
<!--
<c-col :span="12">
<el-form-item :label="$t('crtp.S0000020')" prop="crdgrp.rec.rcvbchinr">
<c-select v-model="model.crdgrp.rec.rcvbchinr" style="width:100%">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Drag Drop Sender" prop="recpan.accp.ptsget.sdamod.dadsnd">
<c-input v-model="model.recpan.accp.ptsget.sdamod.dadsnd"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="External Key of Address" prop="crdgrp.acc.pts.extkey">
<c-input v-model="model.crdgrp.acc.pts.extkey" maxlength="16"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="" prop="recpan.accp.ptsget.sdamod.seainf">
<c-input v-model="model.recpan.accp.ptsget.sdamod.seainf"></c-input>
</c-form-item>
</c-col>
-->
<!-- S0000021 : 出错信息 -->
<!--
<c-col :span="12">
<c-form-item :label="$t('crtp.S0000021')" prop="crdgrp.rec.errmsg">
<c-input type="textarea" v-model="model.crdgrp.rec.errmsg" maxlength="40" show-word-limit></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Address Block" prop="crdgrp.acc.pts.adrblk">
<c-input type="textarea" v-model="model.crdgrp.acc.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="crdgrp.acc.dbfadrblkcn">
<c-input type="textarea" v-model="model.crdgrp.acc.dbfadrblkcn" maxlength="35" show-word-limit></c-input>
</c-form-item>
</c-col>
-->
<!-- S0000053 : 客户类型 -->
<!-- S0000056 : 起息日 -->
<c-col :span="12">
<el-form-item :label="$t('crdgrp.清算时间')" prop="recpan.valdat">
<c-date-picker
type="date"
v-model="model.recpan.valdat"
style="width: 100%"
></c-date-picker>
</el-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 "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [],
data() {
return {};
},
methods: { ...Event },
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">
<el-tab-pane label="概要" name="infconp">
<c-content>
<m-infconp :model="model" :codes="codes" />
</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 Infcrd from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check.js"
import Pattern from "../event/buildCommons.js"
import Infconp from "./Infconp"
export default {
name: "Infcrd",
components:{
"m-infconp" : Infconp,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess,Pattern], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
trnName: "infcrd",
trnType: "",
model: new Infcrd().data,
rules: Check,
codes: {...CodeTable },
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入infcrd交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<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