Commit d7a38db3 by jianglong

新增BETAMC交易

parent 3efc2c8a
import Utils from "~/utils"
/**
* Betamc 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
/**
* Betamc Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"ledgrp.rec.ownref" :Utils.defaultFunction,
"bedgrp.rec.ownref" :Utils.defaultFunction,
"ledgrp.rec.partcon" :Utils.defaultFunction,
"bedgrp.cbs.max.amt" :Utils.defaultFunction,
"bedgrp.apl.pts.nam" :Utils.defaultFunction,
"bedgrp.iss.pts.nam" :Utils.defaultFunction,
"amcamt" :Utils.defaultFunction,
"bedgrp.ben.pts.nam" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
onSeainf() {},
onDetpButgetref() {}
}
\ No newline at end of file
export default {
"betp0.ledget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ledgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"betp0.ledget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ledgrp.cbs.opn1.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ledgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"betp0.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bedgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"betp0.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"bedgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"bedgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"bedgrp.ben.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bedgrp.cbs.opn1.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"bedgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"bedgrp.cbs.opn2.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"bedgrp.ben.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"bedgrp.iss.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bedgrp.rec.doctypcod":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"bedgrp.iss.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"bedgrp.rec.matdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"bedgrp.rec.orddat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"bedgrp.rec.rcvdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"bedgrp.rec.predat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"bedgrp.apl.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bedgrp.rec.docsta":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"bedgrp.apl.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ledgrp.rec.partcon":[
{type: "string", required: false, message: "必输项"},
{max: 5,message:"长度不能超过5"}
],
"amcamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"newcnfamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
import Pub from "../Public"
export default class Betamc{
constructor () {
this.data = {
bedgrp:{
rec:{
ownref:"", // 单据编号 .bedgrp.rec.ownref
nam:"", // Externally Displayed Name to Identify the Contract .bedgrp.rec.nam
doctypcod:"", // 单据类型 .bedgrp.rec.doctypcod
matdat:"", // Maturity Date .bedgrp.rec.matdat
orddat:"", // 到期日 .bedgrp.rec.orddat
rcvdat:"", // 到单日期 .bedgrp.rec.rcvdat
predat:"", // Presentation Date .bedgrp.rec.predat
docsta:"", // 单据状态 .bedgrp.rec.docsta
},
cbs:{
max:{
cur:"", // 单据所占的保兑额度 .bedgrp.cbs.max.cur
amt:"", // 单据金额 .bedgrp.cbs.max.amt
},
opn1:{
cur:"", // 单据余额 .bedgrp.cbs.opn1.cur
amt:"", // Balance .bedgrp.cbs.opn1.amt
},
opn2:{
amt:"", // Balance .bedgrp.cbs.opn2.amt
},
},
ben:{
pts:new Pts().data,
},
iss:{
pts:new Pts().data,
},
apl:{
pts:new Pts().data,
},
},
betp0:{
recget:{
sdamod:{
seainf:"", // .betp0.recget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .betp0.recget.sdamod.dadsnd
},
},
ledget:{
sdamod:{
seainf:"", // .betp0.ledget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .betp0.ledget.sdamod.dadsnd
},
},
matp:{
mattxtlab:"", // Label for MATTXT .betp0.matp.mattxtlab
},
},
ledgrp:{
rec:{
ownref:"", // 参考号 .ledgrp.rec.ownref
partcon:"", // 信用证保兑比例 .ledgrp.rec.partcon
},
cbs:{
opn1:{
cur:"", // Currency .ledgrp.cbs.opn1.cur
amt:"", // Balance .ledgrp.cbs.opn1.amt
},
cnf:{
cur:"", // 释放后保兑金额余额 .ledgrp.cbs.cnf.cur
},
},
},
amcamt:"", // 单据所占的保兑额度 .amcamt
newcnfamt:"", // 释放后保兑金额余额 .newcnfamt
mtabut: {
coninf: {
oitinf: {
labinftxt: "", // Label for INFTXT .mtabut.coninf.oitinf.labinftxt
oit: {
inftxt: "", // Infotext .mtabut.coninf.oitinf.oit.inftxt
inflev: "", // Infotext Level .mtabut.coninf.oitinf.oit.inflev
},
},
oitset: {
labinftxt: "", // Label for INFTXT .mtabut.coninf.oitset.labinftxt
oit: {
inftxt: "", // Infotext .mtabut.coninf.oitset.oit.inftxt
inflev: "", // Infotext Level .mtabut.coninf.oitset.oit.inflev
},
},
conexedat: "", // 执行日期 .mtabut.coninf.conexedat
usr: {
extkey: "", // User ID .mtabut.coninf.usr.extkey
},
},
},
pageId: "" , // ctx的key
trnmod: new Pub().data.Trnmod,
setmod: new Pub().data.Setmod,
liaall: new Pub().data.Liaall,
}
}
}
\ No newline at end of file
<template>
<div class="eContainer">
<!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
<el-button size="small">流程附言</el-button>
<el-button size="small">交易历史</el-button>
<el-button size="small">备忘录</el-button>
<el-button size="small">影像信息</el-button>
<!-- <el-button size="small">保存模板</el-button> -->
<!-- <el-button size="small">使用模板</el-button> -->
<el-button size="small">制裁信息</el-button>
<!-- <el-button size="small">拆分报文</el-button> -->
<el-button size="small">智能提示</el-button>
</c-function-btn>
<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">
<!--PD000033 -->
<el-tab-pane label="OverView" name="betamcp">
<m-betamcp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="Completion" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000529 -->
<el-tab-pane label="Messages" name="docpan">
<m-docpan :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000546 -->
<el-tab-pane label="Attachments" name="doctre">
<m-doctre :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="Liability" name="engp">
<m-engp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000001 -->
<el-tab-pane label="统一授信" name="limitbody">
<m-limitbody :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 Betamc from "~/model/Betamc";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Betamc/Check";
import Default from "~/model/Betamc/Default";
import Pattern from "~/model/Betamc/Pattern";
import Betamcp from "./Betamcp";
import Engp from "~/views/Public/Engp";
import Doctre from "~/views/Public/Doctre";
import Setpan from "~/views/Public/Setpan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Limitbody from "~/views/Public/Limitbody";
export default {
name: "Betamc",
components: {
"m-betamcp": Betamcp,
"m-setpan": Setpan,
"m-engp": Engp,
"m-docpan": Docpan,
"m-doctre": Doctre,
"m-coninfp": Coninfp,
"m-limitbody": Limitbody,
},
provide() {
return {
root: this,
};
},
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "betamcp",
trnName: "betamc",
model: new Betamc().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
...CodeTable,
},
};
},
methods: {
myTabClick(tab) {
this.tabClick(tab);
/**
* do it yourself
**/
},
},
created: async function () {
console.log("进入betamc交易");
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
if (this.isInDisplay) {
this.restoreDisplay();
}
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
};
</script>
<style>
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment