Commit 1ccc6443 by panziyi

gitfre交易页面,路由添加

parent d57ae635
import Utils from "~/utils"
/**
* Gitfre Check规则
*/
let checkObj = {
"fremsg.relmt" :null,
"fremsg.othcc.pts.extkey" :null,
"fremsg.strinf" :null,
"fremsg.det" :null,
"fremsg.othcc.pts.adrblk" :null,
"fremsg.tag23h" :null,
"fremsg.ccrol" :null,
"fremsg.fulmt" :null,
"fremsg.othmsg.pts.adrblk" :null,
"setmod.dspflg" :null,
"fremsg.iss.namelc" :null,
"trnmod.swiadd.amenbr" :null,
"fremsg.sndmt" :null,
"fremsg.iss.pts.extkey" :null,
"fremsg.reldat" :null,
"fremsg.iss.pts.adrblk" :null,
"fremsg.iss.adrelc" :null,
"fremsg.othmsg.adrelc" :null,
"fremsg.msgrol" :null,
"fremsg.swiadd.newmatdat" :null,
"mtabut.coninf.conexedat" :null,
"fremsg.othmsg.pts.extkey" :null,
"fremsg.tag22d" :null,
"fremsg.othcc.adrelc" :null,
"setmod.docamt" :null,
"fremsg.othmsg.namelc" :null,
"fremsg.tag45d" :null,
"fremsg.othcc.namelc" :null,
"trnmod.swiadd.amestatxt" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Gitfre Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"gidgrp.rec.ownref" :Utils.defaultFunction,
"setmod.doccur" :Utils.defaultFunction,
"setmod.dspflg" :Utils.defaultFunction,
"setmod.docamt" :Utils.defaultFunction,
"fremsg.strinf" :Utils.defaultFunction,
"fremsg.prttitle" :Utils.defaultFunction,
"fremsg.sndmt" :Utils.defaultFunction,
"fremsg.msgrol" :Utils.defaultFunction,
"trnmod.trndoc.condocstm" :Utils.defaultFunction,
"trnmod.trndoc.shwinc" :Utils.defaultFunction,
"trnmod.trndoc.shwout" :Utils.defaultFunction,
"gidgrp.rec.expdat" :Utils.defaultFunction,
"fremsg.issrol" :Utils.defaultFunction,
"gidgrp.rec.gartyp" :Utils.defaultFunction,
"gidgrp.rec.hndtyp" :Utils.defaultFunction,
"gidgrp.rec.liadat" :Utils.defaultFunction,
"fremsg.othcc.pts.adrblk" :Utils.defaultFunction,
"fremsg.iss.pts.extkey" :Utils.defaultFunction,
"fremsg.iss.adrelc" :Utils.defaultFunction,
"fremsg.iss.namelc" :Utils.defaultFunction,
"fremsg.iss.dbfadrblkcn" :Utils.defaultFunction,
"fremsg.othcc.pts.extkey" :Utils.defaultFunction,
"fremsg.othcc.adrelc" :Utils.defaultFunction,
"fremsg.othcc.namelc" :Utils.defaultFunction,
"fremsg.othcc.dbfadrblkcn" :Utils.defaultFunction,
"fremsg.othmsg.pts.adrblk" :Utils.defaultFunction,
"fremsg.othmsg.pts.extkey" :Utils.defaultFunction,
"fremsg.ccrol" :Utils.defaultFunction,
"gidgrp.cbs.max.cur" :Utils.defaultFunction,
"gidgrp.cbs.max.amt" :Utils.defaultFunction,
"fremsg.tag22d" :Utils.defaultFunction,
"fremsg.othmsg.adrelc" :Utils.defaultFunction,
"fremsg.othmsg.namelc" :Utils.defaultFunction,
"fremsg.othmsg.dbfadrblkcn" :Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inftxt" :Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inflev" :Utils.defaultFunction,
"fremsg.fulmt" :Utils.defaultFunction,
"fremsg.tag20ref" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inftxt" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inflev" :Utils.defaultFunction,
"gidgrp.iss.pts.nam" :Utils.defaultFunction,
"mtabut.coninf.usr.extkey" :Utils.defaultFunction,
"fremsg.iss.pts.adrblk" :Utils.defaultFunction,
"gidgrp.ben.pts.nam" :Utils.defaultFunction,
"fremsg.reldir" :Utils.defaultFunction,
"gidgrp.apl.pts.nam" :Utils.defaultFunction,
"fremsg.tag23h" :Utils.defaultFunction,
"gidgrp.ctr.pts.nam" :Utils.defaultFunction,
"mtabut.coninf.conexedat" :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 onTxtfreButtxmsel(){
let rtnmsg = await this.executeRule("txtfre.buttxmsel")
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 onSetmodDet(){
let rtnmsg = await this.executeRule("setmod.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButshw(){
let rtnmsg = await this.executeRule("trndoc.butshw")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButadd(){
let rtnmsg = await this.executeRule("trndoc.butadd")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButnew(){
let rtnmsg = await this.executeRule("trndoc.butnew")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButattto(){
let rtnmsg = await this.executeRule("trndoc.butattto")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButdel(){
let rtnmsg = await this.executeRule("trndoc.butdel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButatt(){
let rtnmsg = await this.executeRule("trndoc.butatt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onIsspDet(){
let rtnmsg = await this.executeRule("issp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"gitp0.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"gidgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"gitp0.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"gidgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"gidgrp.cbs.max.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"gidgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"gidgrp.apl.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"gidgrp.cbs.opn1.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"gidgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"gidgrp.ben.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"gidgrp.ctr.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"gidgrp.rec.expdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"gidgrp.rec.liadat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"gidgrp.iss.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"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.namelc":[
{type: "string", required: true, 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.othmsg.adrelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fremsg.reldat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fremsg.tag20ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fremsg.strinf":[
{type: "string", required: true, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"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.othcc.namelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"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"}
],
"fremsg.othcc.adrelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"setmod.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"setmod.docamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"setmod.zmqacc":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"mtabut.coninf.oitinf.oit.inftxt":[
{type: "string", required: true, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
"mtabut.coninf.oitset.oit.inftxt":[
{type: "string", required: true, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
"mtabut.coninf.conexedat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"mtabut.coninf.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"trnmod.trndoc.advnam":[
{type: "string", required: false, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"trnmod.trndoc.amdapl":[
{type: "string", required: true, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"trnmod.trndoc.advdoc":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"trnmod.trndoc.filrecv":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"trnmod.trndoc.doctrestm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"trnmod.trndoc.condocstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"trnmod.trndoc.rcvatt.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fremsg.tag23":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fremsg.swiadd.newmatdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"fremsg.issp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fremsg.iss.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fremsg.issp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fremsg.iss.namelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fremsg.iss.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fremsg.iss.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fremsg.iss.adrelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fremsg.tag45d":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"fremsg.det":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"fremsg.tag77a":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.swiadd.amenbr":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"trnmod.swiadd.amestatxt":[
{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"
import Pub from "../Public"
export default class Gitfre{
constructor () {
this.data = {
setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod,
liaall: new Pub().data.Liaall,
gitp0:{
explab:"", // Label unlimited Validity .gitp0.explab
lialab:"", // Label unlimited lLability .gitp0.lialab
aplmullab:"", // Label, that is set, if there are multiple applicants .gitp0.aplmullab
expfldlab:"", // Label for Field Validity .gitp0.expfldlab
liafldlab:"", // Label for Field Lability .gitp0.liafldlab
recget:{
sdamod:{
seainf:"", // .gitp0.recget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .gitp0.recget.sdamod.dadsnd
},
},
},
gidgrp:{
rec:{
ownref:"", // Reference .gidgrp.rec.ownref
nam:"", // Externally Displayed Name to Identify the Contract .gidgrp.rec.nam
hndtyp:"", // Handling Type .gidgrp.rec.hndtyp
gartyp:"", // Type of Undertaking .gidgrp.rec.gartyp
expdat:"", // Valid until .gidgrp.rec.expdat
liadat:"", // Liability until .gidgrp.rec.liadat
},
cbs:{
max:{
cur:"", // Currency .gidgrp.cbs.max.cur
amt:"", // Balance .gidgrp.cbs.max.amt
},
opn1:{
cur:"", // Currency .gidgrp.cbs.opn1.cur
amt:"", // Balance .gidgrp.cbs.opn1.amt
},
},
apl:{
pts:new Pts().data,
},
ben:{
pts:new Pts().data,
},
ctr:{
pts:new Pts().data,
},
iss:{
pts:new Pts().data,
},
},
fremsg:{
reldatlab:"", // label for date .fremsg.reldatlab
strinflab:"", // label for tag 79 .fremsg.strinflab
sndmt:"", // 发报类型 .fremsg.sndmt
fulmt:"", // 报文类型 .fremsg.fulmt
prttitle:"", // 标题 .fremsg.prttitle
relmt:"", // 相关报文 .fremsg.relmt
reldat:"", // from .fremsg.reldat
reldir:"", // relevant message sent/received .fremsg.reldir
strinf:"", // Narrative .fremsg.strinf
tag20lab:"", // MT799 tag20 .fremsg.tag20lab
tag20ref:"", // tag 20 Ref. .fremsg.tag20ref
flg:"", // FLG FOR GITFRE .fremsg.flg
msgrol:"", // 收报行 .fremsg.msgrol
ccrol:"", // 副本的收报行 .fremsg.ccrol
othmsg:{
pts:new Pts().data,
namelc:"", // 名称 .fremsg.othmsg.namelc
adrelc:"", // 地址 .fremsg.othmsg.adrelc
dbfadrblkcn:"", // Chinese address .fremsg.othmsg.dbfadrblkcn
},
othmsgp:{
ptsget:{
sdamod:{
seainf:"", // .fremsg.othmsgp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fremsg.othmsgp.ptsget.sdamod.dadsnd
},
},
},
othcc:{
pts:new Pts().data,
namelc:"", // 名称 .fremsg.othcc.namelc
adrelc:"", // 地址 .fremsg.othcc.adrelc
dbfadrblkcn:"", // Chinese address .fremsg.othcc.dbfadrblkcn
},
othccp:{
ptsget:{
sdamod:{
seainf:"", // .fremsg.othccp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fremsg.othccp.ptsget.sdamod.dadsnd
},
},
},
tag22d:"", // Form of Undertaking .fremsg.tag22d
tag23:"", // Undertaking Number .fremsg.tag23
issrol:"", // Issuer of Undertak. .fremsg.issrol
iss:{
pts:new Pts().data,
namelc:"", // 名称 .fremsg.iss.namelc
adrelc:"", // 地址 .fremsg.iss.adrelc
dbfadrblkcn:"", // Chinese address .fremsg.iss.dbfadrblkcn
},
issp:{
ptsget:{
sdamod:{
seainf:"", // .fremsg.issp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fremsg.issp.ptsget.sdamod.dadsnd
},
},
},
tag23h:"", // Function .fremsg.tag23h
tag45d:"", // Details of Request .fremsg.tag45d
swiadd:{
newmatdat:"", // New Maturity Date .fremsg.swiadd.newmatdat
},
det:"", // Query/ Answer .fremsg.det
tag77a:"", // Narrative (77A) .fremsg.tag77a
},
// setmod:{
// docamttyplab:"", // settled amount description as label .setmod.docamttyplab
// retmsg:"", // Label showing Retry overflow condition .setmod.retmsg
// ref:"", // our reference .setmod.ref
// doccur:"", // document currency .setmod.doccur
// docamt:"", // document amount .setmod.docamt
// dspflg:"", // Type of settlement .setmod.dspflg
// xreflg:"", // Recalculate Rates .setmod.xreflg
// setglg:{
// labdspflg:"", // Label for Type of Settlement .setmod.setglg.labdspflg
// },
// zmqacclab:"", // 主�'�号LABEL .setmod.zmqacclab
// zmqacc:"", // 自�'�区主�'�号 .setmod.zmqacc
// },
// 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
// },
// },
// },
// trnmod:{
// trndoc:{
// advlabel:"", // ADVLABEL .trnmod.trndoc.advlabel
// amdnam:"", // AMDNAM .trnmod.trndoc.amdnam
// advdoc:"", // 国内证通知书 .trnmod.trndoc.advdoc
// advnam:"", // 国内证落款 .trnmod.trndoc.advnam
// amdapl:"", // 修改申请人名称 .trnmod.trndoc.amdapl
// doclbl:"", // Lable for CONDOCSTM .trnmod.trndoc.doclbl
// doctrestm:"", // Document tree .trnmod.trndoc.doctrestm
// shwinc:"", // Show Incoming Messages .trnmod.trndoc.shwinc
// shwout:"", // Show Outgoing Messages .trnmod.trndoc.shwout
// condocstm:"", // Connected Documents .trnmod.trndoc.condocstm
// rcvatt:{
// seainf:"", // .trnmod.trndoc.rcvatt.seainf
// },
// filrecv:"", // File Receiver .trnmod.trndoc.filrecv
// },
// swiadd:{
// amenbr:"", // Number of Amendm. .trnmod.swiadd.amenbr
// amestatxt:"", // Reason for Rejection .trnmod.swiadd.amestatxt
// },
// },
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
......@@ -214,6 +214,7 @@ import Getcan from "./Getcan"
import Gitcan from "./Gitcan"
import Gitcrj from "./Gitcrj"
import Gctcan from "./Gctcan"
import Gitfre from "./Gitfre"
import Trtrcl from "./Trtrcl"
import Trtset from "./Trtset"
......@@ -516,7 +517,7 @@ const BusRouter = [
{ path: 'gctcan', component: Gctcan, name: 'Gctcan', meta: { title: '保函赔付注销' } },
{ path: 'gitdla', component: Gitdla, name: 'Gitdla', meta: { title: '减额后处理' } },
{ path: 'getfee', component: Getfee, name: 'Getfee', meta: { title: '费用结算' } },
{ path: 'gitfre', component: Gitfre, name: 'Gitfre', meta: { title: '自由格式报文' } },
{ path: 'ditdav', component: Ditdav, name: 'Ditdav', meta: { title: '信用证收单' } },
// { path: 'Infpty', component: Infpty, name: 'Infpty', meta: { title: '客户查询' } },
......
<template>
<div class="eibs-tab">
<c-col :span="12">
<span v-text="model.mtabut.coninf.oitinf.labinftxt" data-path=".mtabut.coninf.oitinf.labinftxt" > </span>
</c-col>
<!-- S0000579 : Display Type -->
<c-col :span="12">
<c-form-item label="Infotext" prop="mtabut.coninf.oitinf.oit.inftxt">
<c-input type="textarea" v-model="model.mtabut.coninf.oitinf.oit.inftxt" maxlength="60" show-word-limit :placeholder="$t('other.please_enter')+'Infotext'" ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Infotext Level" prop="mtabut.coninf.oitinf.oit.inflev">
<c-select v-model="model.mtabut.coninf.oitinf.oit.inflev" style="width:100%" :placeholder="$t('other.please_enter')+'Infotext Level'">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.mtabut.coninf.oitset.labinftxt" data-path=".mtabut.coninf.oitset.labinftxt" > </span>
</c-col>
<!-- S0000579 : Display Type -->
<c-col :span="12">
<c-form-item label="Infotext" prop="mtabut.coninf.oitset.oit.inftxt">
<c-input type="textarea" v-model="model.mtabut.coninf.oitset.oit.inftxt" maxlength="60" show-word-limit :placeholder="$t('other.please_enter')+'Infotext'" ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Infotext Level" prop="mtabut.coninf.oitset.oit.inflev">
<c-select v-model="model.mtabut.coninf.oitset.oit.inflev" style="width:100%" :placeholder="$t('other.please_enter')+'Infotext Level'">
</c-select>
</el-form-item>
</c-col>
<!-- SF000019 : 执行日期 -->
<c-col :span="12">
<el-form-item :label="$t('coninf.SF000019')" prop="mtabut.coninf.conexedat">
<c-date-picker type="date" v-model="model.mtabut.coninf.conexedat" style="width:100%" :placeholder="$t('other.please_enter')+$t('coninf.SF000019')"></c-date-picker>
</el-form-item>
</c-col>
<!-- SF000020 : Send for Release to -->
<c-col :span="12">
<c-form-item label="User ID" prop="mtabut.coninf.usr.extkey">
<c-input v-model="model.mtabut.coninf.usr.extkey" maxlength="8" :placeholder="$t('other.please_enter')+'User ID'"></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/Gitfre/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<!-- SF000545 : Correspondence -->
<c-col :span="12">
<span v-text="model.trnmod.trndoc.advlabel" data-path=".trnmod.trndoc.advlabel" > </span>
</c-col>
<c-col :span="12">
<c-form-item label="国内证落款" prop="trnmod.trndoc.advnam">
<c-input v-model="model.trnmod.trndoc.advnam" maxlength="50" :placeholder="$t('other.please_enter')+'国内证落款'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="修改申请人名称" prop="trnmod.trndoc.amdapl">
<c-input type="textarea" v-model="model.trnmod.trndoc.amdapl" maxlength="50" show-word-limit :placeholder="$t('other.please_enter')+'修改申请人名称'" ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.trnmod.trndoc.amdnam" data-path=".trnmod.trndoc.amdnam" > </span>
</c-col>
<c-col :span="12">
<c-form-item label="国内证通知书" prop="trnmod.trndoc.advdoc">
<c-input v-model="model.trnmod.trndoc.advdoc" maxlength="1" :placeholder="$t('other.please_enter')+'国内证通知书'"></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/Gitfre/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<!-- S0000552 : Outgoing Correspondence, Attachments and other Documents -->
<c-col :span="12">
<c-form-item label="File Receiver" prop="trnmod.trndoc.filrecv">
<c-input v-model="model.trnmod.trndoc.filrecv" :placeholder="$t('other.please_enter')+'File Receiver'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Document tree" prop="trnmod.trndoc.doctrestm">
<c-input v-model="model.trnmod.trndoc.doctrestm" :placeholder="$t('other.please_enter')+'Document tree'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndocButshw">
{{$t('trndoc.CF000547')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndocButadd">
{{$t('trndoc.CF000548')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndocButnew">
{{$t('trndoc.CF000553')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndocButattto">
{{$t('trndoc.CG001184')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" icon="el-icon-delete" @click="onTrndocButdel">
{{$t('trndoc.CF000549')}}
</c-button>
</c-col>
<c-col :span="12">
<span v-text="model.trnmod.trndoc.doclbl" data-path=".trnmod.trndoc.doclbl" > </span>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.trnmod.trndoc.shwinc">{{$t('trndoc.CF000556')}}</c-checkbox>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.trnmod.trndoc.shwout">{{$t('trndoc.CF000557')}}</c-checkbox>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndocButatt">
{{$t('trndoc.CF000551')}}
</c-button>
</c-col>
<c-col :span="12">
<c-form-item label="Connected Documents" prop="trnmod.trndoc.condocstm">
<c-input v-model="model.trnmod.trndoc.condocstm" :placeholder="$t('other.please_enter')+'Connected Documents'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="" prop="trnmod.trndoc.rcvatt.seainf">
<c-input v-model="model.trnmod.trndoc.rcvatt.seainf" :placeholder="$t('other.please_enter')+''"></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/Gitfre/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<!-- SF000077 : Query/ Answer -->
<c-col :span="12">
<c-form-item :label="$t('fremsg.SF000077')" prop="fremsg.det">
<c-input type="textarea" v-model="model.fremsg.det" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+$t('fremsg.SF000077')" ></c-input>
</c-form-item>
</c-col>
<!-- SF000078 : Narrative (77A) -->
<c-col :span="12">
<c-form-item :label="$t('fremsg.SF000078')" prop="fremsg.tag77a">
<c-input type="textarea" v-model="model.fremsg.tag77a" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+$t('fremsg.SF000078')" ></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/Gitfre/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<!-- SF000256 : Form of Undertaking -->
<c-col :span="12">
<el-form-item :label="$t('fremsg.SF000256')" prop="fremsg.tag22d">
<c-select v-model="model.fremsg.tag22d" style="width:100%" :placeholder="$t('other.please_enter')+$t('fremsg.SF000256')">
</c-select>
</el-form-item>
</c-col>
<!-- SF000257 : Undertaking Number -->
<c-col :span="12">
<c-form-item :label="$t('fremsg.SF000257')" prop="fremsg.tag23">
<c-input v-model="model.fremsg.tag23" maxlength="16" :placeholder="$t('other.please_enter')+$t('fremsg.SF000257')"></c-input>
</c-form-item>
</c-col>
<!-- SF000258 : Issuer of Undertak. -->
<c-col :span="12">
<el-form-item :label="$t('fremsg.SF000258')" prop="fremsg.issrol">
<c-select v-model="model.fremsg.issrol" style="width:100%" :placeholder="$t('other.please_enter')+$t('fremsg.SF000258')">
</c-select>
</el-form-item>
</c-col>
<!-- SF000289 : Extended Maturity -->
<c-col :span="12">
<el-form-item label="New Maturity Date" prop="fremsg.swiadd.newmatdat">
<c-date-picker type="date" v-model="model.fremsg.swiadd.newmatdat" style="width:100%" :placeholder="$t('other.please_enter')+'New Maturity Date'"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Drag Drop Sender" prop="fremsg.issp.ptsget.sdamod.dadsnd">
<c-input v-model="model.fremsg.issp.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="fremsg.iss.pts.extkey">
<c-input v-model="model.fremsg.iss.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="fremsg.issp.ptsget.sdamod.seainf">
<c-input v-model="model.fremsg.issp.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="onIsspDet">
{{$t('ptsp.CF000081')}}
</c-button>
</c-col>
<c-col :span="12">
<c-form-item label="名称" prop="fremsg.iss.namelc">
<c-input type="textarea" v-model="model.fremsg.iss.namelc" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'名称'" ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Address Block" prop="fremsg.iss.pts.adrblk">
<c-input type="textarea" v-model="model.fremsg.iss.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="fremsg.iss.dbfadrblkcn">
<c-input type="textarea" v-model="model.fremsg.iss.dbfadrblkcn" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Chinese address'" ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="地址" prop="fremsg.iss.adrelc">
<c-input type="textarea" v-model="model.fremsg.iss.adrelc" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'地址'" ></c-input>
</c-form-item>
</c-col>
<!-- SF000259 : Function -->
<c-col :span="12">
<el-form-item :label="$t('fremsg.SF000259')" prop="fremsg.tag23h">
<c-select v-model="model.fremsg.tag23h" style="width:100%" :placeholder="$t('other.please_enter')+$t('fremsg.SF000259')">
</c-select>
</el-form-item>
</c-col>
<!-- SF000260 : Details of Request -->
<c-col :span="12">
<c-form-item :label="$t('fremsg.SF000260')" prop="fremsg.tag45d">
<c-input type="textarea" v-model="model.fremsg.tag45d" maxlength="65" show-word-limit :placeholder="$t('other.please_enter')+$t('fremsg.SF000260')" ></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/Gitfre/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames" @change="handleChange">
<el-collapse-item title="Gitfrep1" name="Gitfrep1">
<m-gitfrep1 :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="Mt759p" name="Mt759p">
<m-mt759p :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="Rejp" name="Rejp">
<m-rejp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="Fredet" name="Fredet">
<m-fredet :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Gitfre/Event";
import Mt759p from "./Mt759p"
import Fredet from "./Fredet"
import Rejp from "./Rejp"
import Gitfrep1 from "./Gitfrep1"
export default {
components: {
"m-mt759p" : Mt759p,
"m-fredet" : Fredet,
"m-rejp" : Rejp,
"m-gitfrep1" : Gitfrep1,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
activeNames: ["gitfrep1"],
};
},
methods: {
...Event,
handleChange(val) {
console.log(val);
},
},
created: function () { },
};
</script>
<style>
.marginLable {
padding-left: 160px;
}
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- SF000344 : Number of Amendm. -->
<c-col :span="12">
<c-form-item :label="$t('gitfre.SF000344')" prop="trnmod.swiadd.amenbr">
<c-input v-model="model.trnmod.swiadd.amenbr" :placeholder="$t('other.please_enter')+$t('gitfre.SF000344')"></c-input>
</c-form-item>
</c-col>
<!-- SF000345 : Reason for Rejection -->
<c-col :span="12">
<c-form-item :label="$t('gitfre.SF000345')" prop="trnmod.swiadd.amestatxt">
<c-input type="textarea" v-model="model.trnmod.swiadd.amestatxt" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+$t('gitfre.SF000345')" ></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/Gitfre/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<!-- S0000002 : 参考号 -->
<c-col :span="12">
<c-form-item label="our reference" prop="setmod.ref">
<c-input v-model="model.setmod.ref" maxlength="16" :placeholder="$t('other.please_enter')+'our reference'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.setmod.docamttyplab" data-path=".setmod.docamttyplab" > </span>
</c-col>
<c-col :span="12">
<el-form-item label="document currency" prop="setmod.doccur">
<c-select v-model="model.setmod.doccur" style="width:100%" :placeholder="$t('other.please_enter')+'document currency'">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="document amount" prop="setmod.docamt">
<c-input v-model="model.setmod.docamt" :placeholder="$t('other.please_enter')+'document amount'"></c-input>
</c-form-item>
</c-col>
<!-- S0000003 : 类型 -->
<c-col :span="12">
<el-form-item label="Type of settlement" prop="setmod.dspflg">
<c-select v-model="model.setmod.dspflg" style="width:100%" :placeholder="$t('other.please_enter')+'Type of settlement'">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.setmod.xreflg">{{$t('setmod.CF000011')}}</c-checkbox>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSetmodDet">
{{$t('setmod.CF000032')}}
</c-button>
</c-col>
<c-col :span="12">
<span v-text="model.setmod.retmsg" data-path=".setmod.retmsg" > </span>
</c-col>
<c-col :span="12">
<c-form-item label="自�'�区主�'�号" prop="setmod.zmqacc">
<c-input v-model="model.setmod.zmqacc" maxlength="20" :placeholder="$t('other.please_enter')+'自�'�区主�'�号'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.setmod.zmqacclab" data-path=".setmod.zmqacclab" > </span>
</c-col>
<!-- S0000001 : Foreign Commission / Charges: -->
<!-- S0000001 : Own Commission / Charges: -->
<!-- SF000001 : Settlement: -->
<c-col :span="12">
<span v-text="model.setmod.setglg.labdspflg" data-path=".setmod.setglg.labdspflg" > </span>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Gitfre/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<c-page title="自由格式报文">
<div class="eContainer">
<el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
:validate-on-rule-change="false"
>
<c-tabs
v-model="tabVal"
ref="elment"
type="card"
@tab-click="myTabClick"
>
<el-tab-pane label="业务信息" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--
<el-tab-pane label="统一授信" name="limitbody">
<c-content>
<m-limitbody :model="model" :codes="codes" />
</c-content>
</el-tab-pane> -->
<!-- <el-tab-pane label="备查/附言" name="addbcb">
<c-content>
<m-addbcb :model="model" :codes="codes" />
</c-content>
</el-tab-pane> -->
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<m-docpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="附件信息" name="doctre">
<c-content>
<m-doctre :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="费用及账务" name="setpan">
<c-content>
<m-setpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" v-on:select-ety="selectEty">
</c-grid-ety-prompt-dialog>
<c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">
</c-function-btn>
</div>
</c-page>
</template>
<script>
import Api from "~/service/Api"
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable"
import Gitfre from "~/model/Gitfre"
import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Gitfre/Check"
import Default from "~/model/Gitfre/Default"
import Pattern from "~/model/Gitfre/Pattern"
import Ovwp from "./Ovwp"
import Setpan from "~/views/Public/Setpan"
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
export default {
name: "Gitfre",
components:{
"m-ovwp" : Ovwp,
"m-setpan" : Setpan,
"m-coninfp" : Coninfp,
"m-docpan" : Docpan,
"m-doctre" : Doctre,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "ovwp",
trnName: "gitfre",
model: new Gitfre().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("进入gitfre交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
if (this.isInDisplay) {
this.restoreDisplay();
}
}
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