Commit 648289bb by fukai

Merge branch 'master' into develop

parents 5a7495a4 bbc1bbf2
# SSTF_REF_VUE
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution
1. Fork the repository
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
ÐèÇó±àºÅ
\ No newline at end of file
# newelementdata
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run dev
```
### Compiles and minifies for production
```
npm run build
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
#通讯相关
#4.2.15
1:新增分页表格刷新方法加参数true,false --》 .refresh(true)在当前页刷新
2:登录超时时,弹框次数太多,添加防抖函数,处理msgbox并提示
3:scheme为空时,取浏览器协议和地址并提示
#4.3.0
1:优化下载逻辑,下载失败提示失败信息。
2:加密改成SM4算法
需求编号调整
\ No newline at end of file
var baseData = {};
if (process.env.NODE_ENV === 'production') {//生产模式
baseData = {
//15.62.176.250:8088
"host": "",
//15.62.176.250:8088
"hostBusiness": "",
"hostPublic": "",
"hostReport": "",
"hostFinance": "",
"hostRemittance": "",
"hostLc": "",
"hostDomlc": "",
"hostCollection": "",
"hostDerivative": "",
"basePath": "/webapi",
"schemes": "",
"message": {
"isLoading": false,//全局通讯开启loading遮罩
"isEncrypt": false,//AES加密开关,默认false关闭
'signature': false,//开启mac校验放篡改,默认false关闭
"timeout": 300000,//超20秒会提示超时
"msgTipKey": 'errorMsg' //状态码500转200时,前端弹出错误信息。后台返回的错误信息属性名是什么,msgTipKey的属性值就填什么(如后台返回错误{errorCode: "XXL1042", errorMsg: "分片序列号和参数beanId不存在!"})
},
"useJsBridge": {
"flag": false,//生产接入pc OA,默认关闭,给true开启js桥连接方法
"useOrigType": false, //由于微服务app接入服务get方式请求前端需要传给原生的请求类型依旧为post,这个开关是控制是否依然使用原来的请求类型
"requestSource": "internetRequest", //'internetRequest'内网请求;'externalRequest'外网请求
"sc": "IAM165", //系统编码--每个系统是固定的
"operType": "0" //0为透传,1为接入服务
},
"isOpenDisabledCopy": "false",//是否开启禁用页面的“复制,打印,另存为”功能。可选值:"false"不开启禁用,"true"开启禁用所有页面,"routerConfig"开启禁用部分页面(需通过页面路由的meta中配置"isDisablePageOpt": true),"menuConfig"开启禁用部分页面(具体禁用哪些页面需要在系统的菜单分配中配置)。
}
} else {//开发模式
baseData = {
"hostPublic": "localhost:31081",
"host": "localhost:31091",
"hostAdmin": "localhost:31092",
"hostBusiness": "localhost:31093",
"hostRemittance": "localhost:31094",
"hostFinance": "15.52.176.251:22002",
"hostLc": "15.52.176.251:22002",
"hostDomlc": "15.52.176.251:22002",
"hostCollection": "15.52.176.251:22002",
"hostDerivative": "15.52.176.251:22002",
"hostReport": "127.0.0.1:8090",
"basePath": "/webapi",
"schemes": "http",
"message": {
"isLoading": false,//全局通讯开启loading遮罩
"isEncrypt": false,//AES加密开关,默认false关闭
'signature': false,//开启mac校验放篡改,默认false关闭
"timeout": 1000000,//超时
"msgTipKey": 'errorMsg'
},
"isOpenDisabledCopy": "false",//是否开启禁用页面的“复制,打印,另存为”功能。可选值:"false"不开启禁用,"true"开启禁用所有页面,"routerConfig"开启禁用部分页面(需通过页面路由的meta中配置"isDisablePageOpt": true),"menuConfig"开启禁用部分页面(具体禁用哪些页面需要在系统的菜单分配中配置)。
}
}
module.exports = baseData;
\ No newline at end of file
import Utils from "~/utils"
/**
* Fttatt Check规则
*/
let checkObj = {
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Fttatt Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"ftdgrp.rec.ownref" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
}
\ No newline at end of file
export default {
"fttp0.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp0.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ftdgrp.tro.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"ftdgrp.cbs.max.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.tro.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ftdgrp.cbs.opn1.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.tri.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"ftdgrp.cbs.opn2.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.cbs.opn2.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.tri.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ftdgrp.rec.rat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"ftdgrp.rec.opndat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ftdgrp.rec.valdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ftdgrp.rec.matdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Fttatt{
constructor () {
this.data = {
ftdgrp:{
rec:{
fttyp:"", // 业务类型 .ftdgrp.rec.fttyp
rat:"", // 年利率 .ftdgrp.rec.rat
valdat:"", // 起息日 .ftdgrp.rec.valdat
opndat:"", // Date Funds Transfer Opened/Issued .ftdgrp.rec.opndat
matdat:"", // Maturity Date .ftdgrp.rec.matdat
ownref:"", // 参考编号 .ftdgrp.rec.ownref
nam:"", // Externally Displayed Name to Identify the Contract .ftdgrp.rec.nam
},
cbs:{
max:{
cur:"", // 币种及金额 .ftdgrp.cbs.max.cur
amt:"", // Balance .ftdgrp.cbs.max.amt
},
opn1:{
cur:"", // 业务余额 .ftdgrp.cbs.opn1.cur
amt:"", // Balance .ftdgrp.cbs.opn1.amt
},
opn2:{
cur:"", // 待销账余额 .ftdgrp.cbs.opn2.cur
amt:"", // Balance .ftdgrp.cbs.opn2.amt
},
},
tro:{
pts:new Pts().data,
},
tri:{
pts:new Pts().data,
},
},
fttp0:{
recget:{
sdamod:{
seainf:"", // .fttp0.recget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fttp0.recget.sdamod.dadsnd
},
},
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-form-item label="Drag Drop Sender" prop="fttp0.recget.sdamod.dadsnd">
<c-input v-model="model.fttp0.recget.sdamod.dadsnd" :placeholder="$t('other.please_enter')+'Drag Drop Sender'"></c-input>
</c-form-item>
</c-col>
<!-- S0000016 : 参考编号 -->
<c-col :span="12">
<c-form-item :label="$t('fttp0.S0000016')" prop="ftdgrp.rec.ownref">
<c-input v-model="model.ftdgrp.rec.ownref" maxlength="16" :placeholder="$t('other.please_enter')+$t('fttp0.S0000016')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="" prop="fttp0.recget.sdamod.seainf">
<c-input v-model="model.fttp0.recget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input>
</c-form-item>
</c-col>
<!-- S0000017 : 简略信息 -->
<c-col :span="12">
<c-form-item label="Externally Displayed Name to Identify the Contract" prop="ftdgrp.rec.nam">
<c-input v-model="model.ftdgrp.rec.nam" maxlength="40" :placeholder="$t('other.please_enter')+'Externally Displayed Name to Identify the Contract'"></c-input>
</c-form-item>
</c-col>
<!-- S0000002 : 业务类型 -->
<c-col :span="12">
<el-form-item :label="$t('fttp0.S0000002')" prop="ftdgrp.rec.fttyp">
<c-select v-model="model.ftdgrp.rec.fttyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('fttp0.S0000002')">
</c-select>
</el-form-item>
</c-col>
<!-- S0000011 : 资金出行 -->
<!-- S0000012 : 编号 -->
<c-col :span="12">
<c-form-item :label="$t('fttp0.S0000011')" prop="ftdgrp.tro.pts.ref">
<c-input v-model="model.ftdgrp.tro.pts.ref" maxlength="20" :placeholder="$t('other.please_enter')+$t('fttp0.S0000011')"></c-input>
</c-form-item>
</c-col>
<!-- S0000003 : 币种及金额 -->
<c-col :span="12">
<c-form-item :label="$t('fttp0.S0000003')" prop="ftdgrp.cbs.max.cur">
<c-input v-model="model.ftdgrp.cbs.max.cur" maxlength="3" :placeholder="$t('other.please_enter')+$t('fttp0.S0000003')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Balance" prop="ftdgrp.cbs.max.amt">
<c-input v-model="model.ftdgrp.cbs.max.amt" :placeholder="$t('other.please_enter')+'Balance'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Name of Party" prop="ftdgrp.tro.pts.nam">
<c-input v-model="model.ftdgrp.tro.pts.nam" maxlength="40" :placeholder="$t('other.please_enter')+'Name of Party'"></c-input>
</c-form-item>
</c-col>
<!-- S0000004 : 业务余额 -->
<c-col :span="12">
<c-form-item :label="$t('fttp0.S0000004')" prop="ftdgrp.cbs.opn1.cur">
<c-input v-model="model.ftdgrp.cbs.opn1.cur" maxlength="3" :placeholder="$t('other.please_enter')+$t('fttp0.S0000004')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Balance" prop="ftdgrp.cbs.opn1.amt">
<c-input v-model="model.ftdgrp.cbs.opn1.amt" :placeholder="$t('other.please_enter')+'Balance'"></c-input>
</c-form-item>
</c-col>
<!-- S0000013 : 资金入行 -->
<!-- S0000014 : 编号 -->
<c-col :span="12">
<c-form-item :label="$t('fttp0.S0000013')" prop="ftdgrp.tri.pts.ref">
<c-input v-model="model.ftdgrp.tri.pts.ref" maxlength="20" :placeholder="$t('other.please_enter')+$t('fttp0.S0000013')"></c-input>
</c-form-item>
</c-col>
<!-- S0000005 : 待销账余额 -->
<c-col :span="12">
<c-form-item :label="$t('fttp0.S0000005')" prop="ftdgrp.cbs.opn2.cur">
<c-input v-model="model.ftdgrp.cbs.opn2.cur" maxlength="3" :placeholder="$t('other.please_enter')+$t('fttp0.S0000005')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Balance" prop="ftdgrp.cbs.opn2.amt">
<c-input v-model="model.ftdgrp.cbs.opn2.amt" :placeholder="$t('other.please_enter')+'Balance'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Name of Party" prop="ftdgrp.tri.pts.nam">
<c-input v-model="model.ftdgrp.tri.pts.nam" maxlength="40" :placeholder="$t('other.please_enter')+'Name of Party'"></c-input>
</c-form-item>
</c-col>
<!-- S0000006 : 年利率 -->
<c-col :span="12">
<c-form-item :label="$t('fttp0.S0000006')" prop="ftdgrp.rec.rat">
<c-input v-model="model.ftdgrp.rec.rat" :placeholder="$t('other.please_enter')+$t('fttp0.S0000006')"></c-input>
</c-form-item>
</c-col>
<!-- S0000009 : 开立日期 -->
<c-col :span="12">
<el-form-item label="Date Funds Transfer Opened/Issued" prop="ftdgrp.rec.opndat">
<c-date-picker type="date" v-model="model.ftdgrp.rec.opndat" style="width:100%" :placeholder="$t('other.please_enter')+'Date Funds Transfer Opened/Issued'"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000007 : % -->
<!-- S0000008 : 起息日 -->
<c-col :span="12">
<el-form-item :label="$t('fttp0.S0000008')" prop="ftdgrp.rec.valdat">
<c-date-picker type="date" v-model="model.ftdgrp.rec.valdat" style="width:100%" :placeholder="$t('other.please_enter')+$t('fttp0.S0000008')"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000010 : 到期日 -->
<c-col :span="12">
<el-form-item label="Maturity Date" prop="ftdgrp.rec.matdat">
<c-date-picker type="date" v-model="model.ftdgrp.rec.matdat" style="width:100%" :placeholder="$t('other.please_enter')+'Maturity Date'"></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 "../model/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
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">
<!--fttatt PD000002 -->
<el-tab-pane :label="$t('fttatt.PD000002')" name="fttfrep1">
<m-fttfrep1 :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Fttatt from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Fttfrep1 from "./Fttfrep1"
export default {
name: "Fttatt",
components:{
"m-fttfrep1" : Fttfrep1,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
trnName: "fttatt",
trnType: "",
model: new Fttatt().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入fttatt交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
import Utils from "~/utils"
/**
* Fttfcm Check规则
*/
let checkObj = {
"fttp.mt32m.s30x" :null,
"fttp.mt32m.ini.pts.extkey" :null,
"fttp.mt32m.b58.pts.extkey" :null,
"fttp.mt32m.a58.pts.extkey" :null,
"fttp.mt32m.owc.pts.adrblk" :null,
"fttp.mt32m.conref" :null,
"fttp.mt32m.b53.pts.extkey" :null,
"fttp.mt32m.b58.pts.adrblk" :null,
"fttp.mt32m.b56.pts.extkey" :null,
"fttp.mt32m.rbc.pts.adrblk" :null,
"fttp.mt32m.owc.pts.extkey" :null,
"fttp.mt32m.rbc.pts.extkey" :null,
"fttp.mt32m.a53.pts.extkey" :null,
"fttp.mt32m.a58.pts.adrblk" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Fttfcm Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"fttp.mt32m.owc.dbfadrblkcn" :Utils.defaultFunction,
"fttp.mt32m.a53.pts.extkey" :Utils.defaultFunction,
"fttp.mt32m.b53.pts.extkey" :Utils.defaultFunction,
"fttp.mt32m.owc.pts.adrblk" :Utils.defaultFunction,
"fttp.mt32m.rbc.pts.extkey" :Utils.defaultFunction,
"fttp.mt32m.ini.pts.extkey" :Utils.defaultFunction,
"fttp.mt32m.owc.pts.extkey" :Utils.defaultFunction,
"fttp.mt32m.b56.pts.extkey" :Utils.defaultFunction,
"fttp.mt32m.rbc.pts.adrblk" :Utils.defaultFunction,
"fttp.mt32m.a58.dbfadrblkcn" :Utils.defaultFunction,
"fttp.mt32m.a58.pts.adrblk" :Utils.defaultFunction,
"fttp.mt32m.rbc.dbfadrblkcn" :Utils.defaultFunction,
"fttp.mt32m.b58.pts.adrblk" :Utils.defaultFunction,
"fttp.mt32m.s22b" :Utils.defaultFunction,
"fttp.mt32m.b58.dbfadrblkcn" :Utils.defaultFunction,
"fttp.mt32m.a58.pts.extkey" :Utils.defaultFunction,
"ftdgrp.rec.ownref" :Utils.defaultFunction,
"fttp.mt32m.b58.pts.extkey" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onA53pDet(){
let rtnmsg = await this.executeRule("a53p.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onB53pDet(){
let rtnmsg = await this.executeRule("b53p.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInipDet(){
let rtnmsg = await this.executeRule("inip.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onB56pDet(){
let rtnmsg = await this.executeRule("b56p.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRbcpDet(){
let rtnmsg = await this.executeRule("rbcp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onOwcpDet(){
let rtnmsg = await this.executeRule("owcp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onA58pDet(){
let rtnmsg = await this.executeRule("a58p.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onB58pDet(){
let rtnmsg = await this.executeRule("b58p.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"ftt320l1blk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
"fttp.mt32m.a53act":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"fttp.mt32m.b53act":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"fttp.mt32m.a53p.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.mt32m.a53.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.mt32m.a53p.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fttp.mt32m.b53p.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.mt32m.b53.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.mt32m.b53p.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fttp.mt32m.a53.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"fttp.mt32m.b53.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"fttp.mt32m.iniact":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"fttp.mt32m.b56act":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"fttp.mt32m.inip.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.mt32m.b56p.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.mt32m.ini.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.mt32m.inip.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fttp.mt32m.b56.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.mt32m.b56p.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fttp.mt32m.conref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.mt32m.ini.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"fttp.mt32m.b56.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"fttp.mt32m.rbcact":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"fttp.mt32m.owcact":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"fttp.mt32m.conno":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.mt32m.rbcp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.mt32m.rbc.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.mt32m.rbcp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fttp.mt32m.owcp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.mt32m.owc.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.mt32m.owcp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fttp.mt32m.rbc.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fttp.mt32m.rbc.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fttp.mt32m.owc.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fttp.mt32m.owc.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fttp.mt32m.s30x":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fttp.mt32m.a58act":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"fttp.mt32m.b58act":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"fttp.mt32m.a58p.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.mt32m.a58.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.mt32m.a58p.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fttp.mt32m.b58p.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.mt32m.str300":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fttp.mt32m.b58.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.mt32m.b58p.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fttp.mt32m.a58.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fttp.mt32m.a58.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fttp.mt32m.b58.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fttp.mt32m.b58.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"relref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"narblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftt199l1blk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
"ftt299l1blk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Fttfcm{
constructor () {
this.data = {
ftt320l1blk:"", // XMLPanel ftt320l1的内置block .ftt320l1blk
fttp:{
mt32m:{
s22a:"", // MT320 :22A .fttp.mt32m.s22a
s94a:"", // MT320 :94A .fttp.mt32m.s94a
s22b:"", // MT320 :22B .fttp.mt32m.s22b
conref:"", // new datafield .fttp.mt32m.conref
conno:"", // new datafield .fttp.mt32m.conno
s17r:"", // MT320 :17R .fttp.mt32m.s17r
s30x:"", // Next Interest Due Date .fttp.mt32m.s30x
a53:{
pts:new Pts().data,
},
a53p:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .fttp.mt32m.a53p.ptsget.sdamod.dadsnd
seainf:"", // .fttp.mt32m.a53p.ptsget.sdamod.seainf
},
},
},
ini:{
pts:new Pts().data,
},
inip:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .fttp.mt32m.inip.ptsget.sdamod.dadsnd
seainf:"", // .fttp.mt32m.inip.ptsget.sdamod.seainf
},
},
},
rbc:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .fttp.mt32m.rbc.dbfadrblkcn
},
rbcp:{
ptsget:{
sdamod:{
seainf:"", // .fttp.mt32m.rbcp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fttp.mt32m.rbcp.ptsget.sdamod.dadsnd
},
},
},
a58:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .fttp.mt32m.a58.dbfadrblkcn
},
a58p:{
ptsget:{
sdamod:{
seainf:"", // .fttp.mt32m.a58p.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fttp.mt32m.a58p.ptsget.sdamod.dadsnd
},
},
},
b53:{
pts:new Pts().data,
},
b53p:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .fttp.mt32m.b53p.ptsget.sdamod.dadsnd
seainf:"", // .fttp.mt32m.b53p.ptsget.sdamod.seainf
},
},
},
b56:{
pts:new Pts().data,
},
b56p:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .fttp.mt32m.b56p.ptsget.sdamod.dadsnd
seainf:"", // .fttp.mt32m.b56p.ptsget.sdamod.seainf
},
},
},
owc:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .fttp.mt32m.owc.dbfadrblkcn
},
owcp:{
ptsget:{
sdamod:{
seainf:"", // .fttp.mt32m.owcp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fttp.mt32m.owcp.ptsget.sdamod.dadsnd
},
},
},
b58:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .fttp.mt32m.b58.dbfadrblkcn
},
b58p:{
ptsget:{
sdamod:{
seainf:"", // .fttp.mt32m.b58p.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fttp.mt32m.b58p.ptsget.sdamod.dadsnd
},
},
},
a53act:"", // new datafield .fttp.mt32m.a53act
iniact:"", // new datafield .fttp.mt32m.iniact
rbcact:"", // Contract Number(:21N) .fttp.mt32m.rbcact
a58act:"", // new datafield .fttp.mt32m.a58act
b53act:"", // new datafield .fttp.mt32m.b53act
b56act:"", // new datafield .fttp.mt32m.b56act
b58act:"", // new datafield .fttp.mt32m.b58act
owcact:"", // new datafield .fttp.mt32m.owcact
str300:"", // new datafield .fttp.mt32m.str300
},
},
narblk:"", // Narrative .narblk
ftdgrp:{
rec:{
ownref:"", // Reference .ftdgrp.rec.ownref
},
},
relref:"", // Related Reference .relref
ftt199l1blk:"", // XMLPanel ftt199l1的内置block .ftt199l1blk
ftt299l1blk:"", // XMLPanel ftt299l1的内置block .ftt299l1blk
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-form-item label="XMLPanel ftt199l1的内置block" prop="ftt199l1blk">
<c-input type="textarea" v-model="model.ftt199l1blk" maxlength="200" show-word-limit :placeholder="$t('other.please_enter')+'XMLPanel ftt199l1的内置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 ftt299l1的内置block" prop="ftt299l1blk">
<c-input type="textarea" v-model="model.ftt299l1blk" maxlength="200" show-word-limit :placeholder="$t('other.please_enter')+'XMLPanel ftt299l1的内置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 ftt320l1的内置block" prop="ftt320l1blk">
<c-input type="textarea" v-model="model.ftt320l1blk" maxlength="200" show-word-limit :placeholder="$t('other.please_enter')+'XMLPanel ftt320l1的内置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">
<!-- S0000008 : Reference -->
<c-col :span="12">
<c-form-item :label="$t('fttfcm.S0000010')" prop="ftdgrp.rec.ownref">
<c-input v-model="model.ftdgrp.rec.ownref" maxlength="16" :placeholder="$t('other.please_enter')+$t('fttfcm.S0000010')"></c-input>
</c-form-item>
</c-col>
<!-- S0000009 : Related Reference -->
<c-col :span="12">
<c-form-item :label="$t('fttfcm.S0000011')" prop="relref">
<c-input v-model="model.relref" maxlength="16" :placeholder="$t('other.please_enter')+$t('fttfcm.S0000011')"></c-input>
</c-form-item>
</c-col>
<!-- S0000006 : Narrative -->
<c-col :span="12">
<c-form-item :label="$t('fttfcm.S0000012')" prop="narblk">
<c-input type="textarea" v-model="model.narblk" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+$t('fttfcm.S0000012')" ></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">
<!-- S0000010 : Reference -->
<!-- S0000011 : Related Reference -->
<!-- S0000012 : Narrative -->
</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="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">
<!--fttfcm PD000001 MT320 -->
<el-tab-pane :label="$t('fttfcm.PD000001')" name="ftt320l1">
<m-ftt320l1 :model="model" :codes="codes"/>
</el-tab-pane>
<!--fttfcm PD000002 MT320 -->
<el-tab-pane :label="$t('fttfcm.PD000002')" name="mt320">
<m-mt320 :model="model" :codes="codes"/>
</el-tab-pane>
<!--fttfcm PD000003 MT199 -->
<el-tab-pane :label="$t('fttfcm.PD000003')" name="mt199">
<m-mt199 :model="model" :codes="codes"/>
</el-tab-pane>
<!--fttfcm PD000004 MT299 -->
<el-tab-pane :label="$t('fttfcm.PD000004')" name="mt299">
<m-mt299 :model="model" :codes="codes"/>
</el-tab-pane>
<!--fttfcm PD000014 MT199 -->
<el-tab-pane :label="$t('fttfcm.PD000014')" name="ftt199l1">
<m-ftt199l1 :model="model" :codes="codes"/>
</el-tab-pane>
<!--fttfcm PD000015 MT299 -->
<el-tab-pane :label="$t('fttfcm.PD000015')" name="ftt299l1">
<m-ftt299l1 :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Fttfcm from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Ftt320l1 from "./Ftt320l1"
import Mt320 from "./Mt320"
import Mt199 from "./Mt199"
import Mt299 from "./Mt299"
import Ftt199l1 from "./Ftt199l1"
import Ftt299l1 from "./Ftt299l1"
export default {
name: "Fttfcm",
components:{
"m-ftt320l1" : Ftt320l1,
"m-mt320" : Mt320,
"m-mt199" : Mt199,
"m-mt299" : Mt299,
"m-ftt199l1" : Ftt199l1,
"m-ftt299l1" : Ftt299l1,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
trnName: "fttfcm",
trnType: "",
model: new Fttfcm().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入fttfcm交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
import Utils from "~/utils"
/**
* Fttfcn Check规则
*/
let checkObj = {
"canamt" :null,
"ftdgrp.cbs.max.cur" :null,
"ftdgrp.act.pts.extkey" :null,
"ftdgrp.cbs.max.amt" :null,
"ftdgrp.act.pts.adrblk" :null,
"fttp.usr.extkey" :null,
"ftdgrp.tro.pts.adrblk" :null,
"ftdgrp.tri.pts.extkey" :null,
"ftdgrp.tri.pts.adrblk" :null,
"ftdgrp.tro.pts.extkey" :null,
"ftdgrp.rec.fttyp" :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
/**
* Fttfcn Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"ftdgrp.tri.dbfadrblkcn" :Utils.defaultFunction,
"ftdgrp.tri.pts.adrblk" :Utils.defaultFunction,
"ftdgrp.tro.pts.adrblk" :Utils.defaultFunction,
"fttp.usr.extkey" :Utils.defaultFunction,
"ftdgrp.act.pts.adrblk" :Utils.defaultFunction,
"ftdgrp.act.dbfadrblkcn" :Utils.defaultFunction,
"ftdgrp.tri.pts.extkey" :Utils.defaultFunction,
"ftdgrp.tro.pts.extkey" :Utils.defaultFunction,
"setmod.doccur" :Utils.defaultFunction,
"ftdgrp.tro.dbfadrblkcn" :Utils.defaultFunction,
"ftdgrp.act.pts.extkey" :Utils.defaultFunction,
"ftdgrp.cbs.max.cur" :Utils.defaultFunction,
"ftdgrp.rec.ownref" :Utils.defaultFunction,
"ftdgrp.rec.fttyp" :Utils.defaultFunction,
"ftdgrp.cbs.max.amt" :Utils.defaultFunction,
"canamt" :Utils.defaultFunction,
"ftdgrp.cbs.opn2.amt" :Utils.defaultFunction,
"mtabut.clsflg" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onTropDet(){
let rtnmsg = await this.executeRule("trop.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTripDet(){
let rtnmsg = await this.executeRule("trip.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 {
"ftdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ftdgrp.tro.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fttp.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"fttp.trop.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.tro.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.trop.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.tro.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.tro.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.cbs.opn2.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.cbs.opn2.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"setmod.doccur":[
{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位" }
],
"ftdgrp.tri.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fttp.trip.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.tri.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.trip.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.tri.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.tri.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.act.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fttp.actp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.act.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.actp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.act.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.act.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Fttfcn{
constructor () {
this.data = {
ftdgrp:{
rec:{
ownref:"", // 资金调拨业务参考号 .ftdgrp.rec.ownref
nam:"", // 名称 .ftdgrp.rec.nam
fttyp:"", // 定存拆借类型 .ftdgrp.rec.fttyp
},
cbs:{
max:{
cur:"", // 定存拆借金额 .ftdgrp.cbs.max.cur
amt:"", // 定存拆借金额 .ftdgrp.cbs.max.amt
},
opn2:{
cur:"", // 待销账金额 .ftdgrp.cbs.opn2.cur
amt:"", // Balance .ftdgrp.cbs.opn2.amt
},
},
tro:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tro.dbfadrblkcn
},
tri:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tri.dbfadrblkcn
},
act:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.act.dbfadrblkcn
},
},
fttp:{
usr:{
extkey:"", // 资金部负责人 .fttp.usr.extkey
},
trop:{
ptsget:{
sdamod:{
seainf:"", // .fttp.trop.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fttp.trop.ptsget.sdamod.dadsnd
},
},
},
trip:{
ptsget:{
sdamod:{
seainf:"", // .fttp.trip.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fttp.trip.ptsget.sdamod.dadsnd
},
},
},
actp:{
ptsget:{
sdamod:{
seainf:"", // .fttp.actp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fttp.actp.ptsget.sdamod.dadsnd
},
},
},
},
canamt:"", // Cancellation Amount .canamt
setmod:{
doccur:"", // 实际消账金额 .setmod.doccur
},
mtabut:{
clsflg:"", // Close Flag .mtabut.clsflg
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<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">
<!--fttfcn PD000001 Cancellation -->
<el-tab-pane :label="$t('fttfcn.PD000001')" name="canp">
<m-canp :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Fttfcn 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"
export default {
name: "Fttfcn",
components:{
"m-canp" : Canp,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
trnName: "fttfcn",
trnType: "",
model: new Fttfcn().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入fttfcn交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
import Utils from "~/utils"
/**
* Fttfee Check规则
*/
let checkObj = {
"xxtfee.intmbu.othbussec" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Fttfee Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"xxtfee.intmbu.umbflg" :Utils.defaultFunction,
"ftdgrp.rec.ownref" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
}
\ No newline at end of file
export default {
"fttp0.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp0.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ftdgrp.tro.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"ftdgrp.cbs.max.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.tro.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ftdgrp.cbs.opn1.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.tri.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"ftdgrp.cbs.opn2.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.cbs.opn2.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.tri.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ftdgrp.rec.rat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"ftdgrp.rec.opndat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ftdgrp.rec.valdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ftdgrp.rec.matdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"xxtfee.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"xxtfee.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"xxtfee.acc":[
{type: "string", required: false, message: "必输项"},
{max: 21,message:"长度不能超过21"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Fttfee{
constructor () {
this.data = {
xxtfee:{
intmbu:{
othbusseclab:"", // Business Sector .xxtfee.intmbu.othbusseclab
othbussec:"", // Business Sector .xxtfee.intmbu.othbussec
umbflg:"", // Internal Transfer Y/N .xxtfee.intmbu.umbflg
},
cur:"", // 待转出金额 .xxtfee.cur
amt:"", // Amount .xxtfee.amt
acc:"", // 待转出账号 .xxtfee.acc
},
ftdgrp:{
rec:{
fttyp:"", // 业务类型 .ftdgrp.rec.fttyp
rat:"", // 年利率 .ftdgrp.rec.rat
valdat:"", // 起息日 .ftdgrp.rec.valdat
opndat:"", // Date Funds Transfer Opened/Issued .ftdgrp.rec.opndat
matdat:"", // Maturity Date .ftdgrp.rec.matdat
ownref:"", // 参考编号 .ftdgrp.rec.ownref
nam:"", // Externally Displayed Name to Identify the Contract .ftdgrp.rec.nam
},
cbs:{
max:{
cur:"", // 币种及金额 .ftdgrp.cbs.max.cur
amt:"", // Balance .ftdgrp.cbs.max.amt
},
opn1:{
cur:"", // 业务余额 .ftdgrp.cbs.opn1.cur
amt:"", // Balance .ftdgrp.cbs.opn1.amt
},
opn2:{
cur:"", // 待销账余额 .ftdgrp.cbs.opn2.cur
amt:"", // Balance .ftdgrp.cbs.opn2.amt
},
},
tro:{
pts:new Pts().data,
},
tri:{
pts:new Pts().data,
},
},
fttp0:{
recget:{
sdamod:{
seainf:"", // .fttp0.recget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fttp0.recget.sdamod.dadsnd
},
},
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-form-item label="Drag Drop Sender" prop="fttp0.recget.sdamod.dadsnd">
<c-input v-model="model.fttp0.recget.sdamod.dadsnd" :placeholder="$t('other.please_enter')+'Drag Drop Sender'"></c-input>
</c-form-item>
</c-col>
<!-- S0000016 : 参考编号 -->
<c-col :span="12">
<c-form-item :label="$t('fttp0.S0000016')" prop="ftdgrp.rec.ownref">
<c-input v-model="model.ftdgrp.rec.ownref" maxlength="16" :placeholder="$t('other.please_enter')+$t('fttp0.S0000016')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="" prop="fttp0.recget.sdamod.seainf">
<c-input v-model="model.fttp0.recget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input>
</c-form-item>
</c-col>
<!-- S0000017 : 简略信息 -->
<c-col :span="12">
<c-form-item label="Externally Displayed Name to Identify the Contract" prop="ftdgrp.rec.nam">
<c-input v-model="model.ftdgrp.rec.nam" maxlength="40" :placeholder="$t('other.please_enter')+'Externally Displayed Name to Identify the Contract'"></c-input>
</c-form-item>
</c-col>
<!-- S0000002 : 业务类型 -->
<c-col :span="12">
<el-form-item :label="$t('fttp0.S0000002')" prop="ftdgrp.rec.fttyp">
<c-select v-model="model.ftdgrp.rec.fttyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('fttp0.S0000002')">
</c-select>
</el-form-item>
</c-col>
<!-- S0000011 : 资金出行 -->
<!-- S0000012 : 编号 -->
<c-col :span="12">
<c-form-item :label="$t('fttp0.S0000011')" prop="ftdgrp.tro.pts.ref">
<c-input v-model="model.ftdgrp.tro.pts.ref" maxlength="20" :placeholder="$t('other.please_enter')+$t('fttp0.S0000011')"></c-input>
</c-form-item>
</c-col>
<!-- S0000003 : 币种及金额 -->
<c-col :span="12">
<c-form-item :label="$t('fttp0.S0000003')" prop="ftdgrp.cbs.max.cur">
<c-input v-model="model.ftdgrp.cbs.max.cur" maxlength="3" :placeholder="$t('other.please_enter')+$t('fttp0.S0000003')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Balance" prop="ftdgrp.cbs.max.amt">
<c-input v-model="model.ftdgrp.cbs.max.amt" :placeholder="$t('other.please_enter')+'Balance'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Name of Party" prop="ftdgrp.tro.pts.nam">
<c-input v-model="model.ftdgrp.tro.pts.nam" maxlength="40" :placeholder="$t('other.please_enter')+'Name of Party'"></c-input>
</c-form-item>
</c-col>
<!-- S0000004 : 业务余额 -->
<c-col :span="12">
<c-form-item :label="$t('fttp0.S0000004')" prop="ftdgrp.cbs.opn1.cur">
<c-input v-model="model.ftdgrp.cbs.opn1.cur" maxlength="3" :placeholder="$t('other.please_enter')+$t('fttp0.S0000004')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Balance" prop="ftdgrp.cbs.opn1.amt">
<c-input v-model="model.ftdgrp.cbs.opn1.amt" :placeholder="$t('other.please_enter')+'Balance'"></c-input>
</c-form-item>
</c-col>
<!-- S0000013 : 资金入行 -->
<!-- S0000014 : 编号 -->
<c-col :span="12">
<c-form-item :label="$t('fttp0.S0000013')" prop="ftdgrp.tri.pts.ref">
<c-input v-model="model.ftdgrp.tri.pts.ref" maxlength="20" :placeholder="$t('other.please_enter')+$t('fttp0.S0000013')"></c-input>
</c-form-item>
</c-col>
<!-- S0000005 : 待销账余额 -->
<c-col :span="12">
<c-form-item :label="$t('fttp0.S0000005')" prop="ftdgrp.cbs.opn2.cur">
<c-input v-model="model.ftdgrp.cbs.opn2.cur" maxlength="3" :placeholder="$t('other.please_enter')+$t('fttp0.S0000005')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Balance" prop="ftdgrp.cbs.opn2.amt">
<c-input v-model="model.ftdgrp.cbs.opn2.amt" :placeholder="$t('other.please_enter')+'Balance'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Name of Party" prop="ftdgrp.tri.pts.nam">
<c-input v-model="model.ftdgrp.tri.pts.nam" maxlength="40" :placeholder="$t('other.please_enter')+'Name of Party'"></c-input>
</c-form-item>
</c-col>
<!-- S0000006 : 年利率 -->
<c-col :span="12">
<c-form-item :label="$t('fttp0.S0000006')" prop="ftdgrp.rec.rat">
<c-input v-model="model.ftdgrp.rec.rat" :placeholder="$t('other.please_enter')+$t('fttp0.S0000006')"></c-input>
</c-form-item>
</c-col>
<!-- S0000009 : 开立日期 -->
<c-col :span="12">
<el-form-item label="Date Funds Transfer Opened/Issued" prop="ftdgrp.rec.opndat">
<c-date-picker type="date" v-model="model.ftdgrp.rec.opndat" style="width:100%" :placeholder="$t('other.please_enter')+'Date Funds Transfer Opened/Issued'"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000007 : % -->
<!-- S0000008 : 起息日 -->
<c-col :span="12">
<el-form-item :label="$t('fttp0.S0000008')" prop="ftdgrp.rec.valdat">
<c-date-picker type="date" v-model="model.ftdgrp.rec.valdat" style="width:100%" :placeholder="$t('other.please_enter')+$t('fttp0.S0000008')"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000010 : 到期日 -->
<c-col :span="12">
<el-form-item label="Maturity Date" prop="ftdgrp.rec.matdat">
<c-date-picker type="date" v-model="model.ftdgrp.rec.matdat" style="width:100%" :placeholder="$t('other.please_enter')+'Maturity Date'"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.xxtfee.intmbu.umbflg">{{$t('xxtfee.CF000013')}}</c-checkbox>
</c-col>
<c-col :span="12">
<span v-text="model.xxtfee.intmbu.othbusseclab" data-path=".xxtfee.intmbu.othbusseclab" > </span>
</c-col>
<c-col :span="12">
<el-form-item label="Business Sector" prop="xxtfee.intmbu.othbussec">
<c-select v-model="model.xxtfee.intmbu.othbussec" style="width:100%" :placeholder="$t('other.please_enter')+'Business Sector'">
</c-select>
</el-form-item>
</c-col>
<!-- S0000031 : 待转出金额 -->
<c-col :span="12">
<c-form-item :label="$t('xxtfee.S0000031')" prop="xxtfee.cur">
<c-input v-model="model.xxtfee.cur" maxlength="3" :placeholder="$t('other.please_enter')+$t('xxtfee.S0000031')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Amount" prop="xxtfee.amt">
<c-input v-model="model.xxtfee.amt" :placeholder="$t('other.please_enter')+'Amount'"></c-input>
</c-form-item>
</c-col>
<!-- S0000032 : 待转出账号 -->
<c-col :span="12">
<c-form-item :label="$t('xxtfee.S0000032')" prop="xxtfee.acc">
<c-input v-model="model.xxtfee.acc" maxlength="21" :placeholder="$t('other.please_enter')+$t('xxtfee.S0000032')"></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="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">
<!--fttfee PD000019 -->
<el-tab-pane :label="$t('fttfee.PD000019')" name="feep">
<m-feep :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Fttfee from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Feep from "./Feep"
export default {
name: "Fttfee",
components:{
"m-feep" : Feep,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
trnName: "fttfee",
trnType: "",
model: new Fttfee().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入fttfee交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
import Utils from "~/utils"
/**
* Fttfmt Check规则
*/
let checkObj = {
"ftdgrp.act.pts.extkey" :null,
"ftdgrp.cbs.max.amt" :null,
"ftdgrp.tri.pts.extkey" :null,
"ftdgrp.tri.pts.adrblk" :null,
"ftdgrp.rec.fttyp" :null,
"ftdgrp.cbs.max.cur" :null,
"ftdgrp.act.pts.adrblk" :null,
"fttp.usr.extkey" :null,
"ftdgrp.tro.pts.adrblk" :null,
"ftdgrp.tro.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
/**
* Fttfmt Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"ftdgrp.tri.dbfadrblkcn" :Utils.defaultFunction,
"ftdgrp.tri.pts.adrblk" :Utils.defaultFunction,
"ftdgrp.rec.fttyp" :Utils.defaultFunction,
"ftdgrp.tro.pts.adrblk" :Utils.defaultFunction,
"fttp.usr.extkey" :Utils.defaultFunction,
"ftdgrp.act.pts.adrblk" :Utils.defaultFunction,
"ftdgrp.act.dbfadrblkcn" :Utils.defaultFunction,
"ftdgrp.tri.pts.extkey" :Utils.defaultFunction,
"ftdgrp.tro.pts.extkey" :Utils.defaultFunction,
"setmod.setamt" :Utils.defaultFunction,
"setmod.doccur" :Utils.defaultFunction,
"ftdgrp.tro.dbfadrblkcn" :Utils.defaultFunction,
"ftdgrp.act.pts.extkey" :Utils.defaultFunction,
"ftdgrp.cbs.max.cur" :Utils.defaultFunction,
"ftdgrp.rec.ownref" :Utils.defaultFunction,
"ftdgrp.cbs.max.amt" :Utils.defaultFunction,
"mtabut.clsflg" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onTropDet(){
let rtnmsg = await this.executeRule("trop.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTripDet(){
let rtnmsg = await this.executeRule("trip.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 {
"ftdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ftdgrp.tro.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fttp.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"fttp.trop.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.tro.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.trop.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.tro.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.tro.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.rec.matdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ftdgrp.rec.rat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"ftdgrp.tri.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fttp.trip.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"intamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.tri.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.trip.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"setmod.doccur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"setmod.setamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.tri.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.tri.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.rec.gzno":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.act.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fttp.actp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.act.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.actp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.act.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.act.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Fttfmt{
constructor () {
this.data = {
ftdgrp:{
rec:{
ownref:"", // 资金调拨业务参考号 .ftdgrp.rec.ownref
nam:"", // 名称 .ftdgrp.rec.nam
fttyp:"", // 定存拆借类型 .ftdgrp.rec.fttyp
matdat:"", // 到期日 .ftdgrp.rec.matdat
rat:"", // 年利率 .ftdgrp.rec.rat
gzno:"", // 挂账编号 .ftdgrp.rec.gzno
},
cbs:{
max:{
cur:"", // 定存拆借金额 .ftdgrp.cbs.max.cur
amt:"", // 定存拆借金额 .ftdgrp.cbs.max.amt
},
},
tro:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tro.dbfadrblkcn
},
tri:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tri.dbfadrblkcn
},
act:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.act.dbfadrblkcn
},
},
fttp:{
usr:{
extkey:"", // 资金部负责人 .fttp.usr.extkey
},
trop:{
ptsget:{
sdamod:{
seainf:"", // .fttp.trop.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fttp.trop.ptsget.sdamod.dadsnd
},
},
},
trip:{
ptsget:{
sdamod:{
seainf:"", // .fttp.trip.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fttp.trip.ptsget.sdamod.dadsnd
},
},
},
actp:{
ptsget:{
sdamod:{
seainf:"", // .fttp.actp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fttp.actp.ptsget.sdamod.dadsnd
},
},
},
},
intamt:"", // 利息金额 .intamt
setmod:{
doccur:"", // 结算总金额 .setmod.doccur
setamt:"", // Reduced Amount to settle .setmod.setamt
},
mtabut:{
clsflg:"", // Close Flag .mtabut.clsflg
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<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">
<!--fttfmt PD000001 Maturity -->
<el-tab-pane :label="$t('fttfmt.PD000001')" name="matp">
<m-matp :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Fttfmt from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Matp from "./Matp"
export default {
name: "Fttfmt",
components:{
"m-matp" : Matp,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
trnName: "fttfmt",
trnType: "",
model: new Fttfmt().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入fttfmt交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
import Utils from "~/utils"
/**
* Fttfre Check规则
*/
let checkObj = {
"fremsg.fulmt" :null,
"fremsg.othmsg.pts.adrblk" :null,
"fremsg.relmt" :null,
"fremsg.othcc.pts.extkey" :null,
"fremsg.strinf" :null,
"fremsg.msgrol" :null,
"fremsg.reldat" :null,
"fremsg.othcc.pts.adrblk" :null,
"fremsg.othmsg.pts.extkey" :null,
"fremsg.ccrol" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Fttfre Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"fremsg.sndmt" :Utils.defaultFunction,
"fremsg.othcc.pts.extkey" :Utils.defaultFunction,
"ftdgrp.rec.ownref" :Utils.defaultFunction,
"fremsg.msgrol" :Utils.defaultFunction,
"fremsg.ccrol" :Utils.defaultFunction,
"fremsg.othcc.pts.adrblk" :Utils.defaultFunction,
"fremsg.othcc.dbfadrblkcn" :Utils.defaultFunction,
"fremsg.othmsg.pts.extkey" :Utils.defaultFunction,
"fremsg.othmsg.dbfadrblkcn" :Utils.defaultFunction,
"fremsg.othmsg.pts.adrblk" :Utils.defaultFunction,
"fremsg.reldir" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onOthmsgpDet(){
let rtnmsg = await this.executeRule("othmsgp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onOthccpDet(){
let rtnmsg = await this.executeRule("othccp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTxtfreButtxmsel(){
let rtnmsg = await this.executeRule("txtfre.buttxmsel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"fttfrel1blk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
"fttfrel2blk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
"fttp0.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp0.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ftdgrp.tro.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"ftdgrp.cbs.max.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.tro.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ftdgrp.cbs.opn1.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.tri.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"ftdgrp.cbs.opn2.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.cbs.opn2.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.tri.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ftdgrp.rec.rat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"ftdgrp.rec.opndat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ftdgrp.rec.valdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ftdgrp.rec.matdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fremsg.othmsgp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fremsg.othmsg.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fremsg.othmsgp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fremsg.prttitle":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fremsg.othmsg.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fremsg.othmsg.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fremsg.reldat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fremsg.othccp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fremsg.othcc.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fremsg.othccp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fremsg.strinf":[
{type: "string", required: true, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"fremsg.othcc.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fremsg.othcc.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Fttfre{
constructor () {
this.data = {
fttfrel1blk:"", // XMLPanel fttfrel1的内置block .fttfrel1blk
fttfrel2blk:"", // XMLPanel fttfrel2的内置block .fttfrel2blk
fremsg:{
reldatlab:"", // label for date .fremsg.reldatlab
strinflab:"", // label for tag 79 .fremsg.strinflab
sndmt:"", // 报文类型 .fremsg.sndmt
fulmt:"", // MT报文编号 .fremsg.fulmt
prttitle:"", // 主题 .fremsg.prttitle
relmt:"", // 相关的MT报文 .fremsg.relmt
reldat:"", // from .fremsg.reldat
reldir:"", // relevant message sent/received .fremsg.reldir
strinf:"", // Narrative .fremsg.strinf
msgrol:"", // 发报文给 .fremsg.msgrol
othmsg:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .fremsg.othmsg.dbfadrblkcn
},
othmsgp:{
ptsget:{
sdamod:{
seainf:"", // .fremsg.othmsgp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fremsg.othmsgp.ptsget.sdamod.dadsnd
},
},
},
ccrol:"", // 发副本给 .fremsg.ccrol
othcc:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .fremsg.othcc.dbfadrblkcn
},
othccp:{
ptsget:{
sdamod:{
seainf:"", // .fremsg.othccp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fremsg.othccp.ptsget.sdamod.dadsnd
},
},
},
troflg:"", // Remove from TRO order .fremsg.troflg
},
ftdgrp:{
rec:{
fttyp:"", // 业务类型 .ftdgrp.rec.fttyp
rat:"", // 年利率 .ftdgrp.rec.rat
valdat:"", // 起息日 .ftdgrp.rec.valdat
opndat:"", // Date Funds Transfer Opened/Issued .ftdgrp.rec.opndat
matdat:"", // Maturity Date .ftdgrp.rec.matdat
ownref:"", // 参考编号 .ftdgrp.rec.ownref
nam:"", // Externally Displayed Name to Identify the Contract .ftdgrp.rec.nam
},
cbs:{
max:{
cur:"", // 币种及金额 .ftdgrp.cbs.max.cur
amt:"", // Balance .ftdgrp.cbs.max.amt
},
opn1:{
cur:"", // 业务余额 .ftdgrp.cbs.opn1.cur
amt:"", // Balance .ftdgrp.cbs.opn1.amt
},
opn2:{
cur:"", // 待销账余额 .ftdgrp.cbs.opn2.cur
amt:"", // Balance .ftdgrp.cbs.opn2.amt
},
},
tro:{
pts:new Pts().data,
},
tri:{
pts:new Pts().data,
},
},
fttp0:{
recget:{
sdamod:{
seainf:"", // .fttp0.recget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fttp0.recget.sdamod.dadsnd
},
},
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-form-item label="XMLPanel fttfrel1的内置block" prop="fttfrel1blk">
<c-input type="textarea" v-model="model.fttfrel1blk" maxlength="200" show-word-limit :placeholder="$t('other.please_enter')+'XMLPanel fttfrel1的内置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 fttfrel2的内置block" prop="fttfrel2blk">
<c-input type="textarea" v-model="model.fttfrel2blk" maxlength="200" show-word-limit :placeholder="$t('other.please_enter')+'XMLPanel fttfrel2的内置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="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">
<!--fttfre PD000002 -->
<el-tab-pane :label="$t('fttfre.PD000002')" name="fttfrel1">
<m-fttfrel1 :model="model" :codes="codes"/>
</el-tab-pane>
<!--fttfre PD000004 -->
<el-tab-pane :label="$t('fttfre.PD000004')" name="fttfrel2">
<m-fttfrel2 :model="model" :codes="codes"/>
</el-tab-pane>
<!--fttfre PD000000 -->
<el-tab-pane :label="$t('fttfre.PD000000')" name="fttfre">
<m-fttfre :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Fttfre from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Fttfrel1 from "./Fttfrel1"
import Fttfrel2 from "./Fttfrel2"
import Fttfre from "./Fttfre"
export default {
name: "Fttfre",
components:{
"m-fttfrel1" : Fttfrel1,
"m-fttfrel2" : Fttfrel2,
"m-fttfre" : Fttfre,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
trnName: "fttfre",
trnType: "",
model: new Fttfre().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入fttfre交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
import Utils from "~/utils"
/**
* Fttpcm Check规则
*/
let checkObj = {
"ftdgrp.rec.opndat" :null,
"ftdgrp.cbs.max.cur" :null,
"ftdgrp.cbs.max.amt" :null,
"fttp.usr.extkey" :null,
"ftdgrp.rec.valdat" :null,
"ftdgrp.tro.pts.adrblk" :null,
"ftdgrp.tri.pts.extkey" :null,
"ftdgrp.tri.pts.adrblk" :null,
"ftdgrp.ben.pts.extkey" :null,
"ftdgrp.tro.pts.extkey" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Fttpcm Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"ftdgrp.tri.dbfadrblkcn" :Utils.defaultFunction,
"ftdgrp.tri.pts.adrblk" :Utils.defaultFunction,
"ftdgrp.tro.pts.adrblk" :Utils.defaultFunction,
"fttp.usr.extkey" :Utils.defaultFunction,
"ftdgrp.rec.opndat" :Utils.defaultFunction,
"ftdgrp.cbs.max.cur" :Utils.defaultFunction,
"ftdgrp.rec.valdat" :Utils.defaultFunction,
"ftdgrp.tri.pts.extkey" :Utils.defaultFunction,
"ftdgrp.tro.pts.extkey" :Utils.defaultFunction,
"ftdgrp.tro.dbfadrblkcn" :Utils.defaultFunction,
"ftdgrp.rec.usr" :Utils.defaultFunction,
"fttp.msgtyp" :Utils.defaultFunction,
"ftdgrp.rec.ownusr" :Utils.defaultFunction,
"ftdgrp.ben.pts.extkey" :Utils.defaultFunction,
"ftdgrp.rec.ownref" :Utils.defaultFunction,
"ftdgrp.cbs.max.amt" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onFttpButgetref(){
let rtnmsg = await this.executeRule("fttp.butgetref")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTropDet(){
let rtnmsg = await this.executeRule("trop.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTripDet(){
let rtnmsg = await this.executeRule("trip.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onBenpDet(){
let rtnmsg = await this.executeRule("benp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"ftdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ftdgrp.tro.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"ftdgrp.rec.ownusr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"fttp.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"fttp.usrget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fttp.trop.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.tro.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.trop.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.rec.usr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"ftdgrp.tro.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.tro.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.rec.opndat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ftdgrp.rec.valdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ftdgrp.blk.remark":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.tri.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fttp.trip.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.tri.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.trip.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fttp.benp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.tri.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.tri.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.ben.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.benp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.ben.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"fttp.benact":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"ftdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"relref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"narblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftt199l1blk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Fttpcm{
constructor () {
this.data = {
ftdgrp:{
rec:{
ownref:"", // Reference .ftdgrp.rec.ownref
nam:"", // 名称 .ftdgrp.rec.nam
opndat:"", // 调拨日期 .ftdgrp.rec.opndat
valdat:"", // 起息日 .ftdgrp.rec.valdat
ownusr:"", // 资金部负责人 .ftdgrp.rec.ownusr
usr:"", // 清算中心负责人 .ftdgrp.rec.usr
},
tro:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tro.dbfadrblkcn
},
tri:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tri.dbfadrblkcn
},
cbs:{
max:{
cur:"", // 头寸调拨金额 .ftdgrp.cbs.max.cur
amt:"", // 头寸调拨金额 .ftdgrp.cbs.max.amt
},
},
blk:{
remark:"", // 备注 .ftdgrp.blk.remark
},
ben:{
pts:new Pts().data,
},
},
fttp:{
trop:{
ptsget:{
sdamod:{
seainf:"", // .fttp.trop.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fttp.trop.ptsget.sdamod.dadsnd
},
},
},
trip:{
ptsget:{
sdamod:{
seainf:"", // .fttp.trip.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fttp.trip.ptsget.sdamod.dadsnd
},
},
},
troact:"", // Trade-out Account .fttp.troact
triact:"", // Trade-in Account .fttp.triact
usr:{
extkey:"", // User ID .fttp.usr.extkey
},
usrget:{
sdamod:{
seainf:"", // .fttp.usrget.sdamod.seainf
},
},
benp:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .fttp.benp.ptsget.sdamod.dadsnd
seainf:"", // .fttp.benp.ptsget.sdamod.seainf
},
},
},
msgtyp:"", // 报文类型 .fttp.msgtyp
benact:"", // Ben Trade-in Account .fttp.benact
},
narblk:"", // Narrative .narblk
relref:"", // Related Reference .relref
ftt199l1blk:"", // XMLPanel ftt199l1的内置block .ftt199l1blk
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-form-item label="XMLPanel ftt199l1的内置block" prop="ftt199l1blk">
<c-input type="textarea" v-model="model.ftt199l1blk" maxlength="200" show-word-limit :placeholder="$t('other.please_enter')+'XMLPanel ftt199l1的内置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">
<!-- S0000103 : Reference -->
<c-col :span="12">
<c-form-item :label="$t('fttpcm.S0000103')" prop="ftdgrp.rec.ownref">
<c-input v-model="model.ftdgrp.rec.ownref" maxlength="16" :placeholder="$t('other.please_enter')+$t('fttpcm.S0000103')"></c-input>
</c-form-item>
</c-col>
<!-- S0000104 : Related Reference -->
<c-col :span="12">
<c-form-item :label="$t('fttpcm.S0000104')" prop="relref">
<c-input v-model="model.relref" maxlength="16" :placeholder="$t('other.please_enter')+$t('fttpcm.S0000104')"></c-input>
</c-form-item>
</c-col>
<!-- S0000102 : Narrative -->
<c-col :span="12">
<c-form-item :label="$t('fttpcm.S0000102')" prop="narblk">
<c-input type="textarea" v-model="model.narblk" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+$t('fttpcm.S0000102')" ></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="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">
<!--fttpcm PD000098 Confirmation -->
<el-tab-pane :label="$t('fttpcm.PD000098')" name="cnfp">
<m-cnfp :model="model" :codes="codes"/>
</el-tab-pane>
<!--fttpcm PD000100 MT199 -->
<el-tab-pane :label="$t('fttpcm.PD000100')" name="mt199">
<m-mt199 :model="model" :codes="codes"/>
</el-tab-pane>
<!--fttpcm PD000101 MT199 -->
<el-tab-pane :label="$t('fttpcm.PD000101')" name="ftt199l1">
<m-ftt199l1 :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Fttpcm from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Cnfp from "./Cnfp"
import Mt199 from "./Mt199"
import Ftt199l1 from "./Ftt199l1"
export default {
name: "Fttpcm",
components:{
"m-cnfp" : Cnfp,
"m-mt199" : Mt199,
"m-ftt199l1" : Ftt199l1,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
trnName: "fttpcm",
trnType: "",
model: new Fttpcm().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入fttpcm交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
import Utils from "~/utils"
/**
* Fttpcn Check规则
*/
let checkObj = {
"canamt" :null,
"ftdgrp.cbs.max.cur" :null,
"ftdgrp.cbs.max.amt" :null,
"fttp.usr.extkey" :null,
"ftdgrp.tro.pts.adrblk" :null,
"ftdgrp.tri.pts.extkey" :null,
"ftdgrp.tri.pts.adrblk" :null,
"ftdgrp.tro.pts.extkey" :null,
"ftdgrp.rec.fttyp" :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
/**
* Fttpcn Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"ftdgrp.tri.dbfadrblkcn" :Utils.defaultFunction,
"ftdgrp.tri.pts.adrblk" :Utils.defaultFunction,
"ftdgrp.tro.pts.adrblk" :Utils.defaultFunction,
"fttp.usr.extkey" :Utils.defaultFunction,
"ftdgrp.tri.pts.extkey" :Utils.defaultFunction,
"ftdgrp.tro.pts.extkey" :Utils.defaultFunction,
"setmod.doccur" :Utils.defaultFunction,
"ftdgrp.tro.dbfadrblkcn" :Utils.defaultFunction,
"ftdgrp.cbs.max.cur" :Utils.defaultFunction,
"ftdgrp.rec.ownref" :Utils.defaultFunction,
"ftdgrp.rec.fttyp" :Utils.defaultFunction,
"ftdgrp.cbs.max.amt" :Utils.defaultFunction,
"canamt" :Utils.defaultFunction,
"ftdgrp.cbs.opn2.amt" :Utils.defaultFunction,
"mtabut.clsflg" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onTropDet(){
let rtnmsg = await this.executeRule("trop.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTripDet(){
let rtnmsg = await this.executeRule("trip.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"ftdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ftdgrp.tro.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fttp.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"fttp.trop.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.tro.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.trop.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.tro.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.tro.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ftdgrp.cbs.opn2.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.cbs.opn2.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"setmod.doccur":[
{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位" }
],
"ftdgrp.tri.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"fttp.trip.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ftdgrp.tri.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fttp.trip.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ftdgrp.tri.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ftdgrp.tri.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Fttpcn{
constructor () {
this.data = {
ftdgrp:{
rec:{
ownref:"", // 头寸调拨业务参考号 .ftdgrp.rec.ownref
nam:"", // 名称 .ftdgrp.rec.nam
fttyp:"", // 头寸调拨类型 .ftdgrp.rec.fttyp
},
cbs:{
max:{
cur:"", // 头寸调拨金额 .ftdgrp.cbs.max.cur
amt:"", // 头寸调拨金额 .ftdgrp.cbs.max.amt
},
opn2:{
cur:"", // 待销账金额 .ftdgrp.cbs.opn2.cur
amt:"", // Balance .ftdgrp.cbs.opn2.amt
},
},
tro:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tro.dbfadrblkcn
},
tri:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .ftdgrp.tri.dbfadrblkcn
},
},
fttp:{
usr:{
extkey:"", // 资金部负责人 .fttp.usr.extkey
},
trop:{
ptsget:{
sdamod:{
seainf:"", // .fttp.trop.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fttp.trop.ptsget.sdamod.dadsnd
},
},
},
trip:{
ptsget:{
sdamod:{
seainf:"", // .fttp.trip.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fttp.trip.ptsget.sdamod.dadsnd
},
},
},
},
canamt:"", // Cancellation Amount .canamt
setmod:{
doccur:"", // 实际销账金额 .setmod.doccur
},
mtabut:{
clsflg:"", // Close Flag .mtabut.clsflg
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- S0000060 : 头寸调拨业务参考号 -->
<c-col :span="12">
<c-form-item :label="$t('fttpcn.S0000060')" prop="ftdgrp.rec.ownref">
<c-input v-model="model.ftdgrp.rec.ownref" maxlength="16" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000060')"></c-input>
</c-form-item>
</c-col>
<!-- S0000061 : 名称 -->
<c-col :span="12">
<c-form-item :label="$t('fttpcn.S0000061')" prop="ftdgrp.rec.nam">
<c-input v-model="model.ftdgrp.rec.nam" maxlength="40" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000061')"></c-input>
</c-form-item>
</c-col>
<!-- S0000065 : 头寸调出行 -->
<c-col :span="12">
<c-form-item :label="$t('fttpcn.S0000065')" prop="ftdgrp.tro.pts.ref">
<c-input v-model="model.ftdgrp.tro.pts.ref" maxlength="20" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000065')"></c-input>
</c-form-item>
</c-col>
<!-- S0000062 : 资金部负责人 -->
<c-col :span="12">
<c-form-item :label="$t('fttpcn.S0000062')" prop="fttp.usr.extkey">
<c-input v-model="model.fttp.usr.extkey" maxlength="8" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000062')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Drag Drop Sender" prop="fttp.trop.ptsget.sdamod.dadsnd">
<c-input v-model="model.fttp.trop.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="ftdgrp.tro.pts.extkey">
<c-input v-model="model.ftdgrp.tro.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="fttp.trop.ptsget.sdamod.seainf">
<c-input v-model="model.fttp.trop.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="onTropDet">
{{$t('ptsp.CF000081')}}
</c-button>
</c-col>
<!-- S0000063 : 头寸调拨类型 -->
<c-col :span="12">
<el-form-item :label="$t('fttpcn.S0000063')" prop="ftdgrp.rec.fttyp">
<c-select v-model="model.ftdgrp.rec.fttyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000063')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Address Block" prop="ftdgrp.tro.pts.adrblk">
<c-input type="textarea" v-model="model.ftdgrp.tro.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="ftdgrp.tro.dbfadrblkcn">
<c-input type="textarea" v-model="model.ftdgrp.tro.dbfadrblkcn" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Chinese address'" ></c-input>
</c-form-item>
</c-col>
<!-- S0000064 : 头寸调拨金额 -->
<c-col :span="12">
<el-form-item :label="$t('fttpcn.S0000064')" prop="ftdgrp.cbs.max.cur">
<c-select v-model="model.ftdgrp.cbs.max.cur" style="width:100%" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000064')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item :label="$t('fttpcn.S0000064')" prop="ftdgrp.cbs.max.amt">
<c-input v-model="model.ftdgrp.cbs.max.amt" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000064')"></c-input>
</c-form-item>
</c-col>
<!-- S0000067 : 待销账金额 -->
<c-col :span="12">
<c-form-item :label="$t('fttpcn.S0000067')" prop="ftdgrp.cbs.opn2.cur">
<c-input v-model="model.ftdgrp.cbs.opn2.cur" maxlength="3" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000067')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Balance" prop="ftdgrp.cbs.opn2.amt">
<c-input v-model="model.ftdgrp.cbs.opn2.amt" :placeholder="$t('other.please_enter')+'Balance'"></c-input>
</c-form-item>
</c-col>
<!-- S0000068 : 实际销账金额 -->
<c-col :span="12">
<c-form-item :label="$t('fttpcn.S0000068')" prop="setmod.doccur">
<c-input v-model="model.setmod.doccur" maxlength="3" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000068')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Cancellation Amount" prop="canamt">
<c-input v-model="model.canamt" :placeholder="$t('other.please_enter')+'Cancellation Amount'"></c-input>
</c-form-item>
</c-col>
<!-- S0000066 : 头寸调入行 -->
<c-col :span="12">
<c-form-item :label="$t('fttpcn.S0000066')" prop="ftdgrp.tri.pts.ref">
<c-input v-model="model.ftdgrp.tri.pts.ref" maxlength="20" :placeholder="$t('other.please_enter')+$t('fttpcn.S0000066')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Drag Drop Sender" prop="fttp.trip.ptsget.sdamod.dadsnd">
<c-input v-model="model.fttp.trip.ptsget.sdamod.dadsnd" :placeholder="$t('other.please_enter')+'Drag Drop Sender'"></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 :span="12">
<c-form-item label="External Key of Address" prop="ftdgrp.tri.pts.extkey">
<c-input v-model="model.ftdgrp.tri.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="fttp.trip.ptsget.sdamod.seainf">
<c-input v-model="model.fttp.trip.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="onTripDet">
{{$t('ptsp.CF000081')}}
</c-button>
</c-col>
<c-col :span="12">
<c-form-item label="Address Block" prop="ftdgrp.tri.pts.adrblk">
<c-input type="textarea" v-model="model.ftdgrp.tri.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="ftdgrp.tri.dbfadrblkcn">
<c-input type="textarea" v-model="model.ftdgrp.tri.dbfadrblkcn" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Chinese address'" ></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="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">
<!--fttpcn PD000050 Cancellation -->
<el-tab-pane :label="$t('fttpcn.PD000050')" name="canp">
<m-canp :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Fttpcn 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"
export default {
name: "Fttpcn",
components:{
"m-canp" : Canp,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
trnName: "fttpcn",
trnType: "",
model: new Fttpcn().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入fttpcn交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
const BusRouter = [
// { path: 'fttatt', component: ()=>import("./Fttatt/views"), name: 'Fttatt', meta: { title: 'Fttatt' } ,module:'Funds'},
// { path: 'fttfcm', component: ()=>import("./Fttfcm/views"), name: 'Fttfcm', meta: { title: 'Fttfcm' } ,module:'Funds'},
// { path: 'fttfcn', component: ()=>import("./Fttfcn/views"), name: 'Fttfcn', meta: { title: 'Fttfcn' } ,module:'Funds'},
// { path: 'fttfee', component: ()=>import("./Fttfee/views"), name: 'Fttfee', meta: { title: 'Fttfee' } ,module:'Funds'},
// { path: 'fttfmt', component: ()=>import("./Fttfmt/views"), name: 'Fttfmt', meta: { title: 'Fttfmt' } ,module:'Funds'},
// { path: 'fttfre', component: ()=>import("./Fttfre/views"), name: 'Fttfre', meta: { title: 'Fttfre' } ,module:'Funds'},
// { path: 'fttpcm', component: ()=>import("./Fttpcm/views"), name: 'Fttpcm', meta: { title: 'Fttpcm' } ,module:'Funds'},
// { path: 'fttpcn', component: ()=>import("./Fttpcn/views"), name: 'Fttpcn', meta: { title: 'Fttpcn' } ,module:'Funds'},
// { path: 'fxtatt', component: ()=>import("./Fxtatt/views"), name: 'Fxtatt', meta: { title: 'Fxtatt' } ,module:'Funds'},
// { path: 'fxteop', component: ()=>import("./Fxteop/views"), name: 'Fxteop', meta: { title: 'Fxteop' } ,module:'Funds'},
// { path: 'fxteqo', component: ()=>import("./Fxteqo/views"), name: 'Fxteqo', meta: { title: 'Fxteqo' } ,module:'Funds'},
// { path: 'fxtfcm', component: ()=>import("./Fxtfcm/views"), name: 'Fxtfcm', meta: { title: 'Fxtfcm' } ,module:'Funds'},
// { path: 'fxtfcn', component: ()=>import("./Fxtfcn/views"), name: 'Fxtfcn', meta: { title: 'Fxtfcn' } ,module:'Funds'},
// { path: 'fxtfop', component: ()=>import("./Fxtfop/views"), name: 'Fxtfop', meta: { title: 'Fxtfop' } ,module:'Funds'},
// { path: 'fxtlcm', component: ()=>import("./Fxtlcm/views"), name: 'Fxtlcm', meta: { title: 'Fxtlcm' } ,module:'Funds'},
// { path: 'fxtlcn', component: ()=>import("./Fxtlcn/views"), name: 'Fxtlcn', meta: { title: 'Fxtlcn' } ,module:'Funds'},
// { path: 'fxtlop', component: ()=>import("./Fxtlop/views"), name: 'Fxtlop', meta: { title: 'Fxtlop' } ,module:'Funds'},
// { path: 'fxtsqo', component: ()=>import("./Fxtsqo/views"), name: 'Fxtsqo', meta: { title: 'Fxtsqo' } ,module:'Funds'},
// { path: 'fxtssb', component: ()=>import("./Fxtssb/views"), name: 'Fxtssb', meta: { title: 'Fxtssb' } ,module:'Funds'},
// { path: 'fxtsss', component: ()=>import("./Fxtsss/views"), name: 'Fxtsss', meta: { title: 'Fxtsss' } ,module:'Funds'},
]
export default BusRouter
\ No newline at end of file
import Utils from "~/utils"
/**
* Fxtatt Check规则
*/
let checkObj = {
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Fxtatt Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"fxdgrp.rec.ownref" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
}
\ No newline at end of file
export default {
"fxtp0.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxtp0.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 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"}
],
"fxdgrp.cbs.max.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fxdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"fxdgrp.apl.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"fxdgrp.cbs.nom1.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fxdgrp.cbs.nom1.amt":[
{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: "输入正确的日期"}
],
"fxdgrp.rec.valdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxdgrp.rec.rat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"fxdgrp.rec.midrat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Fxtatt{
constructor () {
this.data = {
fxtp0:{
recget:{
sdamod:{
seainf:"", // .fxtp0.recget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fxtp0.recget.sdamod.dadsnd
},
},
},
fxdgrp:{
rec:{
ownref:"", // Reference .fxdgrp.rec.ownref
nam:"", // Externally Displayed Name to Identify the Contract .fxdgrp.rec.nam
fxtyp:"", // Liquidation Type .fxdgrp.rec.fxtyp
opndat:"", // Open Date .fxdgrp.rec.opndat
valdat:"", // Value date .fxdgrp.rec.valdat
midrat:"", // Middle Rate .fxdgrp.rec.midrat
rat:"", // Liquidation Rate .fxdgrp.rec.rat
},
cbs:{
max:{
cur:"", // Foreign Cur. Amount .fxdgrp.cbs.max.cur
amt:"", // Balance .fxdgrp.cbs.max.amt
},
nom1:{
cur:"", // Domestic Cur. Amount .fxdgrp.cbs.nom1.cur
amt:"", // Balance .fxdgrp.cbs.nom1.amt
},
},
apl:{
pts:new Pts().data,
},
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-form-item label="Drag Drop Sender" prop="fxtp0.recget.sdamod.dadsnd">
<c-input v-model="model.fxtp0.recget.sdamod.dadsnd" :placeholder="$t('other.please_enter')+'Drag Drop Sender'"></c-input>
</c-form-item>
</c-col>
<!-- S0000003 : Reference -->
<c-col :span="12">
<c-form-item :label="$t('fxtp0.S0000003')" prop="fxdgrp.rec.ownref">
<c-input v-model="model.fxdgrp.rec.ownref" maxlength="16" :placeholder="$t('other.please_enter')+$t('fxtp0.S0000003')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="" prop="fxtp0.recget.sdamod.seainf">
<c-input v-model="model.fxtp0.recget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input>
</c-form-item>
</c-col>
<!-- S0000004 : Name -->
<c-col :span="12">
<c-form-item label="Externally Displayed Name to Identify the Contract" prop="fxdgrp.rec.nam">
<c-input v-model="model.fxdgrp.rec.nam" maxlength="40" :placeholder="$t('other.please_enter')+'Externally Displayed Name to Identify the Contract'"></c-input>
</c-form-item>
</c-col>
<!-- S0000006 : Liquidation Type -->
<c-col :span="12">
<el-form-item :label="$t('fxtp0.S0000006')" prop="fxdgrp.rec.fxtyp">
<c-select v-model="model.fxdgrp.rec.fxtyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtp0.S0000006')">
</c-select>
</el-form-item>
</c-col>
<!-- S0000009 : Liquidation Party -->
<!-- S0000010 : Ref. -->
<c-col :span="12">
<c-form-item :label="$t('fxtp0.S0000009')" prop="fxdgrp.apl.pts.ref">
<c-input v-model="model.fxdgrp.apl.pts.ref" maxlength="20" :placeholder="$t('other.please_enter')+$t('fxtp0.S0000009')"></c-input>
</c-form-item>
</c-col>
<!-- S0000007 : Foreign Cur. Amount -->
<c-col :span="12">
<c-form-item :label="$t('fxtp0.S0000007')" prop="fxdgrp.cbs.max.cur">
<c-input v-model="model.fxdgrp.cbs.max.cur" maxlength="3" :placeholder="$t('other.please_enter')+$t('fxtp0.S0000007')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Balance" prop="fxdgrp.cbs.max.amt">
<c-input v-model="model.fxdgrp.cbs.max.amt" :placeholder="$t('other.please_enter')+'Balance'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Name of Party" prop="fxdgrp.apl.pts.nam">
<c-input v-model="model.fxdgrp.apl.pts.nam" maxlength="40" :placeholder="$t('other.please_enter')+'Name of Party'"></c-input>
</c-form-item>
</c-col>
<!-- S0000008 : Domestic Cur. Amount -->
<c-col :span="12">
<c-form-item :label="$t('fxtp0.S0000008')" prop="fxdgrp.cbs.nom1.cur">
<c-input v-model="model.fxdgrp.cbs.nom1.cur" maxlength="3" :placeholder="$t('other.please_enter')+$t('fxtp0.S0000008')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Balance" prop="fxdgrp.cbs.nom1.amt">
<c-input v-model="model.fxdgrp.cbs.nom1.amt" :placeholder="$t('other.please_enter')+'Balance'"></c-input>
</c-form-item>
</c-col>
<!-- S0000011 : Open Date -->
<c-col :span="12">
<el-form-item :label="$t('fxtp0.S0000011')" prop="fxdgrp.rec.opndat">
<c-date-picker type="date" v-model="model.fxdgrp.rec.opndat" style="width:100%" :placeholder="$t('other.please_enter')+$t('fxtp0.S0000011')"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000012 : Value Date -->
<c-col :span="12">
<el-form-item label="Value date" prop="fxdgrp.rec.valdat">
<c-date-picker type="date" v-model="model.fxdgrp.rec.valdat" style="width:100%" :placeholder="$t('other.please_enter')+'Value date'"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000014 : Liquidation Rate -->
<c-col :span="12">
<c-form-item :label="$t('fxtp0.S0000014')" prop="fxdgrp.rec.rat">
<c-input v-model="model.fxdgrp.rec.rat" :placeholder="$t('other.please_enter')+$t('fxtp0.S0000014')"></c-input>
</c-form-item>
</c-col>
<!-- S0000013 : Middle Rate -->
<c-col :span="12">
<c-form-item label="Middle Rate" prop="fxdgrp.rec.midrat">
<c-input v-model="model.fxdgrp.rec.midrat" :placeholder="$t('other.please_enter')+'Middle Rate'"></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="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">
<!--fxtatt PD000002 -->
<el-tab-pane :label="$t('fxtatt.PD000002')" name="fxtfrep1">
<m-fxtfrep1 :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Fxtatt from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Fxtfrep1 from "./Fxtfrep1"
export default {
name: "Fxtatt",
components:{
"m-fxtfrep1" : Fxtfrep1,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
trnName: "fxtatt",
trnType: "",
model: new Fxtatt().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入fxtatt交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
import Utils from "~/utils"
/**
* Fxteop Check规则
*/
let checkObj = {
"fxdgrp.apl.pts.adrblk" :null,
"fxtp.usr.extkey" :null,
"fxdgrp.rec.dsp2" :null,
"fxdgrp.cbs.max.amt" :null,
"fxdgrp.cbs.max.cur" :null,
"fxdgrp.rec.dsp" :null,
"fxtp.cnychk" :null,
"fxdgrp.cbs.nom1.amt" :null,
"fxdgrp.rec.acc2" :null,
"fxdgrp.rec.fxtyp" :null,
"fxdgrp.rec.acc" :null,
"fxdgrp.cbs.nom1.cur" :null,
"fxdgrp.apl.pts.extkey" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Fxteop Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"fxtp.cnychk" :Utils.defaultFunction,
"fxtp.frgchk" :Utils.defaultFunction,
"fxdgrp.apl.dbfadrblkcn" :Utils.defaultFunction,
"fxtp.usr.extkey" :Utils.defaultFunction,
"fxdgrp.cbs.nom1.cur" :Utils.defaultFunction,
"fxdgrp.cbs.max.cur" :Utils.defaultFunction,
"fxtp.calflg" :Utils.defaultFunction,
"fxdgrp.rec.rat" :Utils.defaultFunction,
"fxdgrp.cbs.nom1.amt" :Utils.defaultFunction,
"fxdgrp.cbs.max.amt" :Utils.defaultFunction,
"fxdgrp.apl.pts.adrblk" :Utils.defaultFunction,
"fxdgrp.rec.dsp2" :Utils.defaultFunction,
"fxdgrp.rec.acc2" :Utils.defaultFunction,
"fxdgrp.rec.fxtyp" :Utils.defaultFunction,
"fxdgrp.rec.dsp" :Utils.defaultFunction,
"fxdgrp.apl.pts.extkey" :Utils.defaultFunction,
"fxdgrp.rec.ownref" :Utils.defaultFunction,
"fxdgrp.rec.opndat" :Utils.defaultFunction,
"fxdgrp.rec.acc" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onFxtpButgetref(){
let rtnmsg = await this.executeRule("fxtp.butgetref")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onAplpDet(){
let rtnmsg = await this.executeRule("aplp.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.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"fxdgrp.cbs.nom1.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"fxdgrp.rec.rat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"fxdgrp.rec.quoref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxdgrp.rec.midrat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"fxdgrp.rec.fudref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fxdgrp.rec.opndat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxdgrp.rec.valdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fxdgrp.blk.remark":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Fxteop{
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
rat:"", // 对外牌价 .fxdgrp.rec.rat
midrat:"", // 中间价 .fxdgrp.rec.midrat
quoref:"", // 询价编号 .fxdgrp.rec.quoref
fudref:"", // 资金部编号 .fxdgrp.rec.fudref
acc:"", // 买入外币账号 .fxdgrp.rec.acc
acc2:"", // 卖出外币账号 .fxdgrp.rec.acc2
dsp:"", // 买入外币账号 .fxdgrp.rec.dsp
dsp2:"", // 卖出外币账号 .fxdgrp.rec.dsp2
},
apl:{
pts:new Pts().data,
dbfadrblkcn:"", // Chinese address .fxdgrp.apl.dbfadrblkcn
},
blk:{
remark:"", // 备注 .fxdgrp.blk.remark
},
cbs:{
max:{
cur:"", // Currency .fxdgrp.cbs.max.cur
amt:"", // Balance .fxdgrp.cbs.max.amt
},
nom1:{
cur:"", // Currency .fxdgrp.cbs.nom1.cur
amt:"", // Balance .fxdgrp.cbs.nom1.amt
},
},
},
fxtp:{
usr:{
extkey:"", // 业务负责人 .fxtp.usr.extkey
},
usrget:{
sdamod:{
seainf:"", // .fxtp.usrget.sdamod.seainf
},
},
aplp:{
ptsget:{
sdamod:{
seainf:"", // .fxtp.aplp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fxtp.aplp.ptsget.sdamod.dadsnd
},
},
},
amtlab:"", // Amount Label .fxtp.amtlab
cnylab:"", // Amount LabelCNY .fxtp.cnylab
frgchk:"", // 外币 .fxtp.frgchk
cnychk:"", // 人民币 .fxtp.cnychk
cshflg:"", // 钞汇标志 .fxtp.cshflg
calflg:"", // Calculate .fxtp.calflg
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<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">
<!--fxteop PD000001 Exchange -->
<el-tab-pane :label="$t('fxteop.PD000001')" name="ovwp">
<m-ovwp :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Fxteop from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Ovwp from "./Ovwp"
export default {
name: "Fxteop",
components:{
"m-ovwp" : Ovwp,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
trnName: "fxteop",
trnType: "",
model: new Fxteop().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入fxteop交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
import Utils from "~/utils"
/**
* Fxteqo Check规则
*/
let checkObj = {
"fxdgrp.apl.pts.adrblk" :null,
"fxdgrp.rec.rat" :null,
"fxtp.usr.extkey" :null,
"fxdgrp.rec.dsp2" :null,
"fxdgrp.cbs.max.amt" :null,
"fxdgrp.cbs.max.cur" :null,
"fxdgrp.rec.dsp" :null,
"fxtp.cnychk" :null,
"fxdgrp.cbs.nom1.amt" :null,
"fxdgrp.rec.acc2" :null,
"fxdgrp.rec.fxtyp" :null,
"fxdgrp.rec.acc" :null,
"fxdgrp.cbs.nom1.cur" :null,
"fxdgrp.apl.pts.extkey" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Fxteqo Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"fxtp.cnychk" :Utils.defaultFunction,
"fxtp.frgchk" :Utils.defaultFunction,
"fxdgrp.apl.dbfadrblkcn" :Utils.defaultFunction,
"fxtp.usr.extkey" :Utils.defaultFunction,
"fxdgrp.cbs.nom1.cur" :Utils.defaultFunction,
"fxdgrp.cbs.max.cur" :Utils.defaultFunction,
"fxtp.calflg" :Utils.defaultFunction,
"fxdgrp.rec.rat" :Utils.defaultFunction,
"fxdgrp.cbs.nom1.amt" :Utils.defaultFunction,
"fxdgrp.cbs.max.amt" :Utils.defaultFunction,
"fxdgrp.apl.pts.adrblk" :Utils.defaultFunction,
"fxdgrp.rec.dsp2" :Utils.defaultFunction,
"fxdgrp.rec.acc2" :Utils.defaultFunction,
"fxdgrp.rec.fxtyp" :Utils.defaultFunction,
"fxdgrp.rec.dsp" :Utils.defaultFunction,
"fxdgrp.apl.pts.extkey" :Utils.defaultFunction,
"fxdgrp.rec.ownref" :Utils.defaultFunction,
"fxdgrp.rec.opndat" :Utils.defaultFunction,
"fxdgrp.rec.acc" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onFxtpButgetref(){
let rtnmsg = await this.executeRule("fxtp.butgetref")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onAplpDet(){
let rtnmsg = await this.executeRule("aplp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
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