Commit 95fadb70 by fukai

增加model目录

parent fb5270ff
import Utils from "~/utils"
/**
* Bddsel Check规则
*/
let checkObj = {
"infcon.seaamtto" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Bddsel Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"infcon.usr.extkey" :Utils.defaultFunction,
"infcon.seapty" :Utils.defaultFunction,
"infcon.pty.extkey" :Utils.defaultFunction,
"infbut.dspstm" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onInfbutSearow(){
const that = this.root;
let rtnmsg = await that.executeRule("infbut.searow")
if(rtnmsg.respCode == "AAAAAA")
{
// Utils.copyValueFromVO(this.model,rtnmsg.data);
// this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm.rows
this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm.rows
this.$message({
type: 'success',
message: '查询成功!'
});
console.log("1:" + rtnmsg.data.infbut_dspstm);
console.log("2:" + rtnmsg.data.infbut_dspstm.rows);
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutDsp(){
const that = this.root;
let rtnmsg = await that.executeRule("infbut.dsp")
if(rtnmsg.respCode == "AAAAAA")
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutUserow(){
let rtnmsg = await this.executeRule("infbut_userow")
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutClr(){
console.log("infcon1:" + this.model.infcon.seaownref);
const that = this.root;
let rtnmsg = await that.executeRule("infbut.clr")
if(rtnmsg.respCode == "AAAAAA")
{
this.model.infcon = []
console.log("infcon2:" + this.model.infcon.seaownref);
this.$message({
type: 'success',
message: '处理成功!'
});
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutButprt(){
const that = this.root;
let rtnmsg = await that.executeRule("infbut.butprt")
if(rtnmsg.respCode == "AAAAAA")
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutExi(){
let rtnmsg = await this.executeRule("infbut_exi")
if(rtnmsg.respCode == "AAAAAA")
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"infcon.seaownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"infcon.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"infcon.searef":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"infcon.pty.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"infcon.pty.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"infcon.seapty":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"infcon.opndatfrom":[
{type: "date", required: false, message: "输入正确的日期"}
],
"infcon.opndatto":[
{type: "date", required: false, message: "输入正确的日期"}
],
"infcon.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"infcon.seaamtfr":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"infcon.seaamtto":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"infbut.dspstm":[
{type: "string", required: true, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Bddsel{
constructor () {
this.data = {
infcon:{
seaownref:"", // Own Reference .infcon.seaownref
nam:"", // Name .infcon.nam
searef:"", // Party Reference .infcon.searef
pty:{
extkey:"", // Select Single Party .infcon.pty.extkey
nam:"", // External Visible Name .infcon.pty.nam
},
seapty:"", // Party Name/BIC .infcon.seapty
searol:"", // Role .infcon.searol
opndatfrom:"", // Opening between .infcon.opndatfrom
opndatto:"", // Open Date to .infcon.opndatto
usr:{
extkey:"", // User ID .infcon.usr.extkey
},
seasta:"", // Status .infcon.seasta
seacur:"", // Currency .infcon.seacur
seaamtfr:"", // Amount between .infcon.seaamtfr
seaamtto:"", // Amount to .infcon.seaamtto
relflg:"", // Release Status .infcon.relflg
cxmflg:"", // 是否显示查询码 .infcon.cxmflg
hndtyp:"", // Handling Type .infcon.hndtyp
},
seadocflg:"", // Document Type .seadocflg
jyqflg:"", // 假远期信用证 .jyqflg
elcflg:"", // 是否通过电证系统 .elcflg
infbut:{
dspstm:"", // display stream .infbut.dspstm
},
}
}
}
\ No newline at end of file
import Utils from "~/utils"
/**
* Infbdd Check规则
*/
let checkObj = {
"bddgrp.rec.disdat" :null,
"recpan.recget.sdamod.dadsnd" :null,
"bddgrp.blk.docdis" :null,
"bddgrp.shp.namelc" :null,
"recpan.furide" :null,
"bddgrp.shp.pts.adrblk" :null,
"bddgrp.blk.comcon" :null,
"mtabut.coninf.conexedat" :null,
"bddgrp.shp.adrelc" :null,
"recpan.didget.sdamod.dadsnd" :null,
"bddgrp.shp.pts.extkey" :null,
"recpan.shpp.ptsget.sdamod.dadsnd" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Infbdd Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"infcon.sptcor" :Utils.defaultFunction,
"infcon.sptreg" :Utils.defaultFunction,
"infcon.sptdel" :Utils.defaultFunction,
"infcon.sptinc" :Utils.defaultFunction,
"infcon.sptpen" :Utils.defaultFunction,
"infcon.fepfeecod" :Utils.defaultFunction,
"infcon.fepdsp" :Utils.defaultFunction,
"infcon.sepdelflg" :Utils.defaultFunction,
"infcon.setflg" :Utils.defaultFunction,
"infcon.smhdatfrom" :Utils.defaultFunction,
"infcon.smhdir" :Utils.defaultFunction,
"infcon.chktrn" :Utils.defaultFunction,
"infcon.smhdatto" :Utils.defaultFunction,
"infcon.smhcortyp" :Utils.defaultFunction,
"bddgrp.blk.docdisflg" :Utils.defaultFunction,
"bddgrp.blk.docdis" :Utils.defaultFunction,
"bddgrp.shp.pts.extkey" :Utils.defaultFunction,
"bddgrp.shp.adrelc" :Utils.defaultFunction,
"bddgrp.shp.namelc" :Utils.defaultFunction,
"bddgrp.shp.dbfadrblkcn" :Utils.defaultFunction,
"bddgrp.shp.pts.adrblk" :Utils.defaultFunction,
"bddgrp.rec.advtyp" :Utils.defaultFunction,
"bddgrp.rec.ownref" :Utils.defaultFunction,
"bddgrp.ben.pts.nam" :Utils.defaultFunction,
"mtabut.coninf.usr.extkey" :Utils.defaultFunction,
"infcon.seatrninr" :Utils.defaultFunction,
"infcon.seabucdatto" :Utils.defaultFunction,
"infcon.seabucdatfro" :Utils.defaultFunction,
"infcon.trnstm" :Utils.defaultFunction,
"infcon.diasta" :Utils.defaultFunction,
"infcon.diadatfrom" :Utils.defaultFunction,
"infcon.diadatto" :Utils.defaultFunction,
"bddgrp.cbs.max.amt" :Utils.defaultFunction,
"bddgrp.rec.docflg" :Utils.defaultFunction,
"bddgrp.cbs.max.cur" :Utils.defaultFunction,
"didgrp.rec.expdat" :Utils.defaultFunction,
"didgrp.cbs.opn1.amt" :Utils.defaultFunction,
"bddgrp.apl.pts.nam" :Utils.defaultFunction,
"didgrp.rec.ownref" :Utils.defaultFunction,
"infcon.fcpdsp" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inftxt" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inflev" :Utils.defaultFunction,
"mtabut.coninf.conexedat" :Utils.defaultFunction,
"bddgrp.rec.stadat" :Utils.defaultFunction,
"infcon.chksubcon" :Utils.defaultFunction,
"infcon.chktrnsta" :Utils.defaultFunction,
"infcon.cbctxt" :Utils.defaultFunction,
"bddgrp.rec.rtoaplflg" :Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inftxt" :Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inflev" :Utils.defaultFunction,
"recpan.cre752flg" :Utils.defaultFunction,
"bddgrp.prb.pts.nam" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onDocdisButtxmsel(){
let rtnmsg = await this.executeRule("docdis_buttxmsel")
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onShppDet(){
let rtnmsg = await this.executeRule("shpp_det")
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfconButshw(){
let rtnmsg = await this.executeRule("infcon_butshw")
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Infbdd{
constructor () {
this.data = {
bddgrp:{
rec:{
ownref:"", // 单据参考号 .bddgrp.rec.ownref
nam:"", // Name of Bill Contract .bddgrp.rec.nam
rcvdat:"", // 到单日期 .bddgrp.rec.rcvdat
docflg:"", // 单据类型 .bddgrp.rec.docflg
docsta:"", // 单据状态 .bddgrp.rec.docsta
matdat:"", // Maturity Date .bddgrp.rec.matdat
tenmaxday:"", // 单据到期日 .bddgrp.rec.tenmaxday
stadat:"", // Start Date .bddgrp.rec.stadat
igndisflg:"", // Ignore Discrepancies .bddgrp.rec.igndisflg
advtyp:"", // Type of Advice Received .bddgrp.rec.advtyp
totdat:"", // 付款日期 .bddgrp.rec.totdat
disdat:"", // 不符点通知日期 .bddgrp.rec.disdat
approvcod:"", // Documents on Approval Basis .bddgrp.rec.approvcod
relgodflg:"", // Release of Goods .bddgrp.rec.relgodflg
reltyp:"", // Release Type .bddgrp.rec.reltyp
relgoddat:"", // issue date .bddgrp.rec.relgoddat
expdat:"", // Expiry Date of Shipping Guarantee .bddgrp.rec.expdat
trpdoctyp:"", // Transport Doc. Type .bddgrp.rec.trpdoctyp
trpdocnum:"", // Transport Doc. No. .bddgrp.rec.trpdocnum
tradat:"", // shipment date .bddgrp.rec.tradat
tramod:"", // Mode of Transport .bddgrp.rec.tramod
rtoaplflg:"", // Release Goods to Applicant ? .bddgrp.rec.rtoaplflg
ngrcod:"", // Goods code .bddgrp.rec.ngrcod
blnum:"", // B/L Number .bddgrp.rec.blnum
},
cbs:{
max:{
cur:"", // 单据金额 .bddgrp.cbs.max.cur
amt:"", // 单据金额 .bddgrp.cbs.max.amt
},
opn1:{
cur:"", // 单据余额 .bddgrp.cbs.opn1.cur
amt:"", // Balance .bddgrp.cbs.opn1.amt
},
},
apl:{
pts:new Pts().data,
},
ben:{
pts:new Pts().data,
},
prb:{
pts:new Pts().data,
},
blk:{
comcon:"", // Comments and Conclusions .bddgrp.blk.comcon
docdis:"", // Discrepancies .bddgrp.blk.docdis
docdisflg:"", // discrepancies modified .bddgrp.blk.docdisflg
accrmk:"", // 到期付款确认备注 .bddgrp.blk.accrmk
vesnam:"", // Vessel Name .bddgrp.blk.vesnam
pordis:"", // Port of Discharge .bddgrp.blk.pordis
delplc:"", // Place of Delivery .bddgrp.blk.delplc
roggod:"", // Covered Goods .bddgrp.blk.roggod
relstoadr:"", // Release to Address .bddgrp.blk.relstoadr
porlod:"", // Port of loading .bddgrp.blk.porlod
voynum:"", // Voyage numer .bddgrp.blk.voynum
notpty:"", // Notify Party .bddgrp.blk.notpty
carnam:"", // Carrier .bddgrp.blk.carnam
},
shp:{
pts:new Pts().data,
namelc:"", // 名称 .bddgrp.shp.namelc
adrelc:"", // 地址 .bddgrp.shp.adrelc
dbfadrblkcn:"", // Chinese address .bddgrp.shp.dbfadrblkcn
},
},
didgrp:{
rec:{
ownref:"", // 信用证参考号 .didgrp.rec.ownref
expdat:"", // Date of Expiry .didgrp.rec.expdat
},
cbs:{
opn1:{
cur:"", // Currency .didgrp.cbs.opn1.cur
amt:"", // Balance .didgrp.cbs.opn1.amt
},
},
},
recpan:{
didget:{
sdamod:{
seainf:"", // .recpan.didget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .recpan.didget.sdamod.dadsnd
},
},
recget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .recpan.recget.sdamod.dadsnd
seainf:"", // .recpan.recget.sdamod.seainf
},
},
matp:{
mattxtlab:"", // Label for MATTXT .recpan.matp.mattxtlab
},
docgrdm:{
docdsclab:"", // Label of document description .recpan.docgrdm.docdsclab
},
cre752flg:"", // Create 752 .recpan.cre752flg
furide:"", // Further Identification .recpan.furide
cre732flg:"", // Create MT 732 .recpan.cre732flg
shpp:{
ptsget:{
sdamod:{
seainf:"", // .recpan.shpp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .recpan.shpp.ptsget.sdamod.dadsnd
},
},
},
connum:"", // Contract Number .recpan.connum
},
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
},
},
},
infcon:{
chksubcon:"", // incl. all subcontracts .infcon.chksubcon
chktrnsta:"", // only active transactions .infcon.chktrnsta
trnstm:"", // stream for TRN to selected contract .infcon.trnstm
cbctxt:"", // CBS Column .infcon.cbctxt
cbbstm:"", // stream of CBBs .infcon.cbbstm
cbestm:"", // stream of CBEs .infcon.cbestm
feptxtlbl:"", // label used on FEP-Panel .infcon.feptxtlbl
fcptxtlbl:"", // Text label used on FCP-panel .infcon.fcptxtlbl
fepfeecod:"", // Fee Code .infcon.fepfeecod
fepdsp:"", // Disposition .infcon.fepdsp
fepstm:"", // stream for FEPs to selected contract .infcon.fepstm
fcpstm:"", // stream of foreign charges .infcon.fcpstm
fcpdsp:"", // Disposition .infcon.fcpdsp
setflg:"", // show temporary settlement that already settled .infcon.setflg
sepdelflg:"", // show temporary settlement that already deleted .infcon.sepdelflg
sepstm:"", // stream of SEPs .infcon.sepstm
sepp:{
feptxtlbl:"", // label used for FEP-Stream .infcon.sepp.feptxtlbl
fcptxtlbl:"", // label used for FCP-Stream .infcon.sepp.fcptxtlbl
sepstm:"", // Stream of selected SEP .infcon.sepp.sepstm
fcpstm:"", // Stream of FCP .infcon.sepp.fcpstm
fepstm:"", // Stream of FEP .infcon.sepp.fepstm
glpstm:"", // Stream of GLP .infcon.sepp.glpstm
},
seabucdatfro:"", // Booking date from .infcon.seabucdatfro
seabucdatto:"", // Booking date till used on GLEINFP .infcon.seabucdatto
seatrninr:"", // Transaction INR .infcon.seatrninr
glestm:"", // Stream of GLEs .infcon.glestm
smhcortyp:"", // Type of Document .infcon.smhcortyp
smhdatfrom:"", // Created between .infcon.smhdatfrom
smhdatto:"", // created till .infcon.smhdatto
smhdir:"", // Direction .infcon.smhdir
chktrn:"", // Active only .infcon.chktrn
smhstm:"", // stream of documents to selected contract .infcon.smhstm
sptinc:"", // Incoming .infcon.sptinc
sptreg:"", // Registered .infcon.sptreg
sptpen:"", // Pending .infcon.sptpen
sptcor:"", // Correction .infcon.sptcor
sptdel:"", // Deleted .infcon.sptdel
sptstm:"", // stream for SPT to selected contract .infcon.sptstm
diadatfrom:"", // Date from .infcon.diadatfrom
diadatto:"", // date till .infcon.diadatto
diasta:"", // Status .infcon.diasta
diastm:"", // stream for diaries to selected contract .infcon.diastm
},
trnmod:{
docimm:{
prtswtrpblk:"", // XMLPanel prtswtrp的内置block .trnmod.docimm.prtswtrpblk
xmldocblk:"", // XMLPanel xmldoc的内置block .trnmod.docimm.xmldocblk
},
},
}
}
}
\ 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