Commit a8a341e7 by Wuyuqiu

lttdav交易页面布局,交易bug修改

parent b5ca9327
......@@ -4248,6 +4248,10 @@ const CodeTable = {
{ label: "NPAY", value: "NPAY" },
{ label: "NACC", value: "NACC" },
],
advtyp2:[
{ label: "Advice of Discrepancy (MT750)", value: "750" },
{ label: "Advice of Payment (MT754)", value: "754" },
],
limittype: [
{ label: "余额限额", value: "12" },
......
......@@ -4,25 +4,31 @@ import Utils from "~/utils"
* Lttdav Check规则
*/
let checkObj = {
"liaall.misamt" :null,
"btdgrp.blk.comcon" :null,
"btdgrp.prb.pts.adrblk" :null,
"btdgrp.rmt.pts.extkey" :null,
"btdgrp.rmt.namelc" :null,
"btdgrp.prb.namelc" :null,
"btdgrp.acb.pts.extkey" :null,
"btdgrp.blk.setinsbt" :null,
"btdgrp.blk.docdis" :null,
"btdgrp.rmt.pts.adrblk" :null,
"btdgrp.prb.pts.nam" :null,
"btdgrp.prb.adrelc" :null,
"btdgrp.rmt.adrelc" :null,
"setmod.dspflg" :null,
"btdgrp.prb.pts.extkey" :null,
"btdgrp.be1.pts.nam" :null,
"btdgrp.blk.intdis" :null,
"btdgrp.rec.totamt" :null,
"btdgrp.rec.advtyp" :null,
"bttp.prbp.ptsget.sdamod.dadsnd" :null,
"btdgrp.acb.pts.adrblk" :null,
"btdgrp.rec.disdat" :null,
"bttp.ltdget.sdamod.dadsnd" :null,
"btdgrp.acb.adrelc" :null,
"mtabut.coninf.conexedat" :null,
"bttp.recget.sdamod.dadsnd" :null,
"btdgrp.acb.namelc" :null,
"setmod.docamt" :null,
"btdgrp.cbs.max.amt" :null,
"btdgrp.be2.pts.nam" :null,
"btdgrp.rec.advdat" :null,
}
......
......@@ -6,38 +6,52 @@ import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"btdgrp.be2.pts.nam" :Utils.defaultFunction,
"btdgrp.prb.pts.nam" :Utils.defaultFunction,
"btdgrp.prb.pts.extkey" :Utils.defaultFunction,
"btdgrp.prb.adrelc" :Utils.defaultFunction,
"btdgrp.prb.namelc" :Utils.defaultFunction,
"btdgrp.prb.dbfadrblkcn" :Utils.defaultFunction,
"btdgrp.rec.advtyp" :Utils.defaultFunction,
"setmod.doccur" :Utils.defaultFunction,
"setmod.dspflg" :Utils.defaultFunction,
"setmod.docamt" :Utils.defaultFunction,
"btdgrp.prb.pts.adrblk" :Utils.defaultFunction,
"trnmod.trndoc.condocstm" :Utils.defaultFunction,
"trnmod.trndoc.shwinc" :Utils.defaultFunction,
"trnmod.trndoc.shwout" :Utils.defaultFunction,
"ltdgrp.rec.ownref" :Utils.defaultFunction,
"btdgrp.cbs.max2.amt" :Utils.defaultFunction,
"btdgrp.prb.pts.extkey" :Utils.defaultFunction,
"btdgrp.prb.adrelc" :Utils.defaultFunction,
"btdgrp.prb.namelc" :Utils.defaultFunction,
"btdgrp.prb.dbfadrblkcn" :Utils.defaultFunction,
"btdgrp.prb.pts.adrblk" :Utils.defaultFunction,
"btdgrp.rmt.pts.extkey" :Utils.defaultFunction,
"btdgrp.rmt.pts.adrblk" :Utils.defaultFunction,
"btdgrp.acb.pts.extkey" :Utils.defaultFunction,
"btdgrp.acb.adrelc" :Utils.defaultFunction,
"btdgrp.acb.namelc" :Utils.defaultFunction,
"btdgrp.acb.dbfadrblkcn" :Utils.defaultFunction,
"btdgrp.acb.pts.adrblk" :Utils.defaultFunction,
"btdgrp.rec.totcur" :Utils.defaultFunction,
"btdgrp.cbs.max.cur" :Utils.defaultFunction,
"btdgrp.cbs.max.amt" :Utils.defaultFunction,
"btdgrp.prb.pts.nam" :Utils.defaultFunction,
"btdgrp.be1.pts.nam" :Utils.defaultFunction,
"btdgrp.blk.chaadd" :Utils.defaultFunction,
"btdgrp.blk.chaded" :Utils.defaultFunction,
"ltdgrp.cbs.nom1.cur" :Utils.defaultFunction,
"btdgrp.rmt.adrelc" :Utils.defaultFunction,
"btdgrp.rmt.namelc" :Utils.defaultFunction,
"btdgrp.rmt.dbfadrblkcn" :Utils.defaultFunction,
"btdgrp.rec.docprbrol" :Utils.defaultFunction,
"btdgrp.rec.disdat" :Utils.defaultFunction,
"btdgrp.rec.dscinsflg" :Utils.defaultFunction,
"btdgrp.blk.docdis" :Utils.defaultFunction,
"btdgrp.rec.advdat" :Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inftxt" :Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inflev" :Utils.defaultFunction,
"btdgrp.be2.pts.nam" :Utils.defaultFunction,
"mtabut.coninf.usr.extkey" :Utils.defaultFunction,
"btdgrp.blk.docdisflg" :Utils.defaultFunction,
"btdgrp.blk.docdis" :Utils.defaultFunction,
"setmod.glemod.gleshwstm" :Utils.defaultFunction,
"btdgrp.rec.ownref" :Utils.defaultFunction,
"liaall.misamt" :Utils.defaultFunction,
"ltdgrp.cbs.nom1.cur" :Utils.defaultFunction,
"btdgrp.rec.dscinsflg" :Utils.defaultFunction,
"ltdgrp.rec.ownref" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inftxt" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inflev" :Utils.defaultFunction,
"mtabut.coninf.conexedat" :Utils.defaultFunction,
"ledgrp.rec.ownref" :Utils.defaultFunction,
"btdgrp.rec.docprbrol" :Utils.defaultFunction,
"btdgrp.rec.disdat" :Utils.defaultFunction,
"btdgrp.rec.advdat" :Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inftxt" :Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inflev" :Utils.defaultFunction,
}
//你可以添加自动default处理
......@@ -14,8 +14,8 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onDocdisButtxmsel(){
let rtnmsg = await this.executeRule("docdis.buttxmsel")
async onAcbpDet(){
let rtnmsg = await this.executeRule("acbp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
......@@ -26,8 +26,8 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onIntdisButtxmsel(){
let rtnmsg = await this.executeRule("intdis.buttxmsel")
async onDocdisButtxmsel(){
let rtnmsg = await this.executeRule("docdis.buttxmsel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
......@@ -38,8 +38,8 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onComconButtxmsel(){
let rtnmsg = await this.executeRule("comcon.buttxmsel")
async onIntdisButtxmsel(){
let rtnmsg = await this.executeRule("intdis.buttxmsel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
......@@ -50,8 +50,8 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSetinsButtxmsel(){
let rtnmsg = await this.executeRule("setins.buttxmsel")
async onComconButtxmsel(){
let rtnmsg = await this.executeRule("comcon.buttxmsel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
......@@ -62,8 +62,8 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onLiaallButmisamt(){
let rtnmsg = await this.executeRule("liaall.butmisamt")
async onSetinsButtxmsel(){
let rtnmsg = await this.executeRule("setins.buttxmsel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
......@@ -74,8 +74,8 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onLiaallButmissig(){
let rtnmsg = await this.executeRule("liaall.butmissig")
async onRmtpDet(){
let rtnmsg = await this.executeRule("rmtp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
......
......@@ -144,12 +144,74 @@ export default {
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"btdgrp.cbs.max.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"btdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"btdgrp.cbs.max2.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"btdgrp.blk.chaded":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"btdgrp.blk.chaadd":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"btdgrp.rec.totcur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"btdgrp.rec.totamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"bttp.acbp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"btdgrp.acb.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bttp.acbp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"btdgrp.acb.namelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"btdgrp.acb.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"btdgrp.acb.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"btdgrp.acb.adrelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"btdgrp.blk.docdis":[
{type: "string", required: true, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"btdgrp.blk.intdis":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
......@@ -167,42 +229,45 @@ export default {
"btdgrp.rec.docsta":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"liaall.outamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
"btdgrp.blk.nartxt77a":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"liaall.outpct":[
"bttp.rmtp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
{max: 16,message:"长度不能超过16"}
],
"liaall.concur":[
"btdgrp.rmt.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
{max: 16,message:"长度不能超过16"}
],
"liaall.misamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
"bttp.rmtp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"liaall.exttotoldamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
"btdgrp.rmt.namelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"liaall.exttotamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
"btdgrp.rmt.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"btdgrp.rmt.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"btdgrp.rmt.adrelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"btdgrp.rec.totdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"setmod.ref":[
{type: "string", required: false, message: "必输项"},
......@@ -225,10 +290,6 @@ export default {
],
"setmod.glemod.gleshwstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"mtabut.coninf.oitinf.oit.inftxt":[
{type: "string", required: true, message: "必输项"},
......
import Api from "~/service/Api"
import Pts from "../Common/Pts"
import Pub from "~/model/Public";
export default class Lttdav{
constructor () {
this.data = {
btdgrp:{
rec:{
ownref:"", // Document Reference .btdgrp.rec.ownref
advdat:"", // Payment advised on .btdgrp.rec.advdat
disdat:"", // Discrep. advised on .btdgrp.rec.disdat
dscinsflg:"", // Enter Docs, Discrep. and Instructions .btdgrp.rec.dscinsflg
docprbrol:"", // Presented by .btdgrp.rec.docprbrol
nam:"", // Name .btdgrp.rec.nam
advtyp:"", // Type of Advice .btdgrp.rec.advtyp
docsta:"", // Document Set Status .btdgrp.rec.docsta
},
prb:{
pts:new Pts().data,
namelc:"", // 名称 .btdgrp.prb.namelc
adrelc:"", // 地址 .btdgrp.prb.adrelc
dbfadrblkcn:"", // Chinese address .btdgrp.prb.dbfadrblkcn
},
prp:{
pts:new Pts().data,
namelc:"", // 名称 .btdgrp.prb.namelc
adrelc:"", // 地址 .btdgrp.prb.adrelc
dbfadrblkcn:"", // Chinese address .btdgrp.prb.dbfadrblkcn
},
be1:{
pts:new Pts().data,
},
be2:{
pts:new Pts().data,
},
blk:{
intdis:"", // Internal Discrepancies .btdgrp.blk.intdis
comcon:"", // Comments and Conclusions .btdgrp.blk.comcon
setinsbt:"", // Settlement Instructions transaction field .btdgrp.blk.setinsbt
docdis:"", // Discrepancies .btdgrp.blk.docdis
docdisflg:"", // discrepancies modified .btdgrp.blk.docdisflg
},
import Pub from "../Public"
export default class Lttdav {
constructor() {
this.data = {
btdgrp: {
rec: {
ownref: "", // Document Reference .btdgrp.rec.ownref
advdat: "", // Payment advised on .btdgrp.rec.advdat
disdat: "", // Discrep. advised on .btdgrp.rec.disdat
dscinsflg: "", // Enter Docs, Discrep. and Instructions .btdgrp.rec.dscinsflg
docprbrol: "", // Presented by .btdgrp.rec.docprbrol
nam: "", // Name .btdgrp.rec.nam
advtyp: "", // Type of Advice .btdgrp.rec.advtyp
totcur: "", // Total Amount Claimed .btdgrp.rec.totcur
totamt: "", // Total Amount to be Paid .btdgrp.rec.totamt
docsta: "", // Document Set Status .btdgrp.rec.docsta
totdat: "", // Date to be Paid .btdgrp.rec.totdat
},
prb: {
pts: new Pts().data,
namelc: "", // 名称 .btdgrp.prb.namelc
adrelc: "", // 地址 .btdgrp.prb.adrelc
dbfadrblkcn: "", // Chinese address .btdgrp.prb.dbfadrblkcn
},
be1: {
pts: new Pts().data,
},
be2: {
pts: new Pts().data,
},
cbs: {
max: {
cur: "", // Document Amount .btdgrp.cbs.max.cur
amt: "", // Balance .btdgrp.cbs.max.amt
},
opn2: {
cur: "", // 附加金额 .btdgrp.cbs.opn2.cur
},
max2: {
amt: "", // 附加金额 .btdgrp.cbs.max2.amt
},
},
blk: {
chaded: "", // Charges Deducted .btdgrp.blk.chaded
chaadd: "", // Charges Added .btdgrp.blk.chaadd
docdis: "", // Discrepancies .btdgrp.blk.docdis
docdisflg: "", // discrepancies modified .btdgrp.blk.docdisflg
intdis: "", // Internal Discrepancies .btdgrp.blk.intdis
comcon: "", // Comments and Conclusions .btdgrp.blk.comcon
setinsbt: "", // Settlement Instructions transaction field .btdgrp.blk.setinsbt
nartxt77a: "", // Narrative Tag77A of MT754 .btdgrp.blk.nartxt77a
},
acb: {
pts: new Pts().data,
namelc: "", // 名称 .btdgrp.acb.namelc
adrelc: "", // 地址 .btdgrp.acb.adrelc
dbfadrblkcn: "", // Chinese address .btdgrp.acb.dbfadrblkcn
},
rmt: {
pts: new Pts().data,
namelc: "", // 名称 .btdgrp.rmt.namelc
adrelc: "", // 地址 .btdgrp.rmt.adrelc
dbfadrblkcn: "", // Chinese address .btdgrp.rmt.dbfadrblkcn
},
},
bttp: {
recget: {
sdamod: {
seainf: "", // .bttp.recget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .bttp.recget.sdamod.dadsnd
},
},
setnowflg: "", // setttle now .bttp.setnowflg
prbp: {
ptsget: {
sdamod: {
seainf: "", // .bttp.prbp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .bttp.prbp.ptsget.sdamod.dadsnd
},
bttp:{
recget:{
sdamod:{
seainf:"", // .bttp.recget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bttp.recget.sdamod.dadsnd
},
},
setnowflg:"", // setttle now .bttp.setnowflg
prbp:{
ptsget:{
sdamod:{
seainf:"", // .bttp.prbp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bttp.prbp.ptsget.sdamod.dadsnd
},
},
},
ledget:{
sdamod:{
seainf:"", // .bttp.ledget.sdamod.seainf
},
},
ltdget:{
sdamod:{
seainf:"", // .bttp.ltdget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bttp.ltdget.sdamod.dadsnd
},
},
aammod:{
addamtflg:"", // Add. Amount .bttp.aammod.addamtflg
},
docgrdmbe1:{
docdsclab:"", // Label of document description .bttp.docgrdmbe1.docdsclab
docgrd:[], // .bttp.docgrdmbe1.docgrd
},
docgrdmbe2:{
docdsclab:"", // Label of document description .bttp.docgrdmbe2.docdsclab
docgrd:[], // .bttp.docgrdmbe2.docgrd
},
futhndflg:"", // further handling .bttp.futhndflg
},
},
ledget: {
sdamod: {
seainf: "", // .bttp.ledget.sdamod.seainf
},
},
ltdget: {
sdamod: {
seainf: "", // .bttp.ltdget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .bttp.ltdget.sdamod.dadsnd
},
},
aammod: {
addamtflg: "", // Add. Amount .bttp.aammod.addamtflg
},
acbp: {
ptsget: {
sdamod: {
seainf: "", // .bttp.acbp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .bttp.acbp.ptsget.sdamod.dadsnd
},
ledgrp:{
rec:{
ownref:"", // L/C Reference .ledgrp.rec.ownref
nam:"", // Name .ledgrp.rec.nam
},
},
},
docgrdmbe1: {
docdsclab: "", // Label of document description .bttp.docgrdmbe1.docdsclab
},
docgrdmbe2: {
docdsclab: "", // Label of document description .bttp.docgrdmbe2.docdsclab
},
futhndflg: "", // further handling .bttp.futhndflg
rmtp: {
ptsget: {
sdamod: {
seainf: "", // .bttp.rmtp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .bttp.rmtp.ptsget.sdamod.dadsnd
},
ltdgrp:{
rec:{
ownref:"", // Transfer Reference .ltdgrp.rec.ownref
nam:"", // Name .ltdgrp.rec.nam
avbby:"", // Available by .ltdgrp.rec.avbby
opndat:"", // Date Issued/Form .ltdgrp.rec.opndat
lcrtyp:"", // Date Issued/Form .ltdgrp.rec.lcrtyp
expdat:"", // Date / Place of Expiry .ltdgrp.rec.expdat
expplc:"", // Date / Place of Expiry .ltdgrp.rec.expplc
shpdat:"", // Shipment Date .ltdgrp.rec.shpdat
},
cbs:{
nom1:{
cur:"", // L/C Amount .ltdgrp.cbs.nom1.cur
amt:"", // Balance .ltdgrp.cbs.nom1.amt
},
opn1:{
cur:"", // Open Amount .ltdgrp.cbs.opn1.cur
amt:"", // Balance .ltdgrp.cbs.opn1.amt
},
},
avbnam:"", // Available with .ltdgrp.avbnam
},
setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod,
liaall: new Pub().data.Liaall,
pageId: "" // ctx的key
}
}
},
},
},
ledgrp: {
rec: {
ownref: "", // L/C Reference .ledgrp.rec.ownref
nam: "", // Name .ledgrp.rec.nam
},
},
ltdgrp: {
rec: {
ownref: "", // Transfer Reference .ltdgrp.rec.ownref
nam: "", // Name .ltdgrp.rec.nam
avbby: "", // Available by .ltdgrp.rec.avbby
opndat: "", // Date Issued/Form .ltdgrp.rec.opndat
lcrtyp: "", // Date Issued/Form .ltdgrp.rec.lcrtyp
expdat: "", // Date / Place of Expiry .ltdgrp.rec.expdat
expplc: "", // Date / Place of Expiry .ltdgrp.rec.expplc
shpdat: "", // Shipment Date .ltdgrp.rec.shpdat
},
cbs: {
nom1: {
cur: "", // L/C Amount .ltdgrp.cbs.nom1.cur
amt: "", // Balance .ltdgrp.cbs.nom1.amt
},
opn1: {
cur: "", // Open Amount .ltdgrp.cbs.opn1.cur
amt: "", // Balance .ltdgrp.cbs.opn1.amt
},
},
avbnam: "", // Available with .ltdgrp.avbnam
},
pageId: "", // ctx的key
trnmod: new Pub().data.Trnmod,
setmod: new Pub().data.Setmod,
liaall: new Pub().data.Liaall,
mtabut: new Pub().data.Mtabut,
}
}
}
\ No newline at end of file
......@@ -162,10 +162,13 @@
</c-col>
<c-col :span="24">
<c-checkbox v-model="rejpenins" style="margin-left: 150px"
>Rejection Pending Instructions</c-checkbox
>
<el-form-item label="" prop="rejpenins">
<c-checkbox v-model="rejpenins"
>Rejection Pending Instructions</c-checkbox
>
</el-form-item>
</c-col>
</c-col>
<!-- next part -->
......@@ -173,11 +176,10 @@
<c-docpre
:model="model"
:argadr="{
path:'bedgrp.blk.prsdoc',
grp:'betp',
code:'docpre'
path: 'bedgrp.blk.prsdoc',
grp: 'betp',
code: 'docpre',
}"
>
</c-docpre>
</c-col>
......@@ -307,21 +309,19 @@ import Utils from "~/utils";
import Docpre from "~/views/Public/Docpre";
export default {
components:{"c-docpre":Docpre},
components: { "c-docpre": Docpre },
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
};
return {};
},
computed: {
docdisflg: {
get() {
if(this.model.bedgrp.blk.docdis==""){
if (this.model.bedgrp.blk.docdis == "") {
return this.model.bedgrp.blk.docdisflg != "";
}else{
} else {
return this.model.bedgrp.blk.docdisflg != "X";
}
},
......
......@@ -301,32 +301,39 @@
<!-- left -->
<c-col :span="11">
<c-col :span="24">
<c-checkbox v-model="advrefflg" style="margin-left: 150px"
>Receive advice of refusal</c-checkbox
>
<el-form-item label="" prop="advrefflg">
<c-checkbox v-model="advrefflg"
>Receive advice of refusal</c-checkbox
>
</el-form-item>
</c-col>
<c-col :span="24">
<c-checkbox
v-model="clsflgp"
style="margin-left: 150px"
@change="clsflgpChange"
>Receive returned ducuments</c-checkbox
>
<el-form-item label="" prop="bedgrp.rec.advdocflg">
<c-checkbox
v-model="model.bedgrp.rec.advdocflg"
@change="clsflgpChange"
>Receive returned ducuments</c-checkbox
>
</el-form-item>
</c-col>
<c-col :span="24">
<c-checkbox v-model="clsflgp" style="margin-left: 150px" disabled
>Close Contract</c-checkbox
>
<el-form-item label="" prop="mtabut.clsflgp">
<c-checkbox v-model="clsflgp" disabled
>Close Contract</c-checkbox
>
</el-form-item>
</c-col>
<c-col :span="24">
<c-checkbox
v-model="advdisflg"
style="margin-left: 150px; margin-top: 100px; margin-bottom: 10px"
>Send Advice of Discrepancy(MT750)</c-checkbox
>
<el-form-item label="" prop="advdisflg">
<c-checkbox
v-model="advdisflg"
style=" margin-top: 100px; margin-bottom: 10px"
>Send Advice of Discrepancy(MT750)</c-checkbox
>
</el-form-item>
</c-col>
<c-col :span="24">
......@@ -351,9 +358,7 @@
style="width: 100%"
placeholder="Please select Payer"
disabled
@change="eventFunction(
'bedgrp.rec.payrol'
)"
@change="eventFunction('bedgrp.rec.payrol')"
>
<el-option
v-for="item in codes.payrol"
......@@ -389,9 +394,7 @@
style="width: 100%"
placeholder="Please input Presented by"
disabled
@change="eventFunction(
'bedgrp.rec.docprbrol'
)"
@change="eventFunction('bedgrp.rec.docprbrol')"
>
<el-option
v-for="item in codes.docprbrol"
......@@ -744,10 +747,9 @@ export default {
// },
clsflgp: {
get() {
return this.model.bedgrp.rec.advdocflg != "";
return this.model.mtabut.clsflgp == "";
},
set(val) {
this.model.bedgrp.rec.advdocflg = val ? "X" : "";
this.model.mtabut.clsflgp = val ? "C" : "O";
},
},
......@@ -765,7 +767,7 @@ export default {
clsflgpChange(v) {
if (v == "X") {
this.model.bedgrp.rec.docsta = "R";
}else{
} else {
this.model.bedgrp.rec.docsta = "E";
}
},
......
......@@ -63,6 +63,7 @@
maxlength="35"
show-word-limit
placeholder="请输入Covered"
@change="defaultFunction()"
></c-input>
</el-form-item>
</c-col>
......
<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>
<c-col :span="12">
<el-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="请输入Infotext" ></c-input>
</el-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="请选择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>
<c-col :span="12">
<el-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="请输入Infotext" ></c-input>
</el-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="请选择Infotext Level">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="执行日期" prop="mtabut.coninf.conexedat">
<c-date-picker type="date" v-model="model.mtabut.coninf.conexedat" style="width:100%" placeholder="请选择执行日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="User ID" prop="mtabut.coninf.usr.extkey">
<c-input v-model="model.mtabut.coninf.usr.extkey" maxlength="8" placeholder="请输入User ID"></c-input>
</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/Lttdav/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">
<span v-text="model.trnmod.trndoc.advlabel" data-path=".trnmod.trndoc.advlabel" > </span>
</c-col>
<c-col :span="12">
<el-form-item label="国内证落款" prop="trnmod.trndoc.advnam">
<c-input v-model="model.trnmod.trndoc.advnam" maxlength="50" placeholder="请输入国内证落款"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="修改申请人名称" prop="trnmod.trndoc.amdapl">
<c-input type="textarea" v-model="model.trnmod.trndoc.amdapl" maxlength="50" show-word-limit placeholder="请输入修改申请人名称" ></c-input>
</el-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">
<el-form-item label="国内证通知书" prop="trnmod.trndoc.advdoc">
<c-input v-model="model.trnmod.trndoc.advdoc" maxlength="1" placeholder="请输入国内证通知书"></c-input>
</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/Lttdav/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="24">
<el-form-item label="File Receiver" prop="trnmod.trndoc.filrecv">
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="14">
<c-col :span="24">
<div style="height: 300px; width: 100%; border: 1px #ebeef5 solid">
<el-tree
:data="data"
:props="defaultProps"
@node-click="handleNodeClick"
></el-tree>
</div>
</c-col>
<c-col :span="24" style="margin-top: 10px">
<c-col :span="4">
<el-form-item
label="关联单据"
v-show="isShow1 || isShow2"
></el-form-item>
<el-form-item
label=""
v-show="!(isShow1 || isShow2)"
></el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="">
<c-checkbox v-model="isShow1">显示收到的信息</c-checkbox>
</el-form-item>
</c-col>
<c-col :span="8" :offset="2">
<el-form-item label="">
<c-checkbox v-model="isShow2">显示以前发出的信息</c-checkbox>
</el-form-item>
</c-col>
</c-col>
<c-col :span="22" :offset="1">
<c-table
:border="true"
:list="data1"
style="width:80%,text-align:center"
v-show="isShow1 || isShow2"
>
<el-table-column label="类型" width="auto"></el-table-column>
<el-table-column label="单据" width="auto"></el-table-column>
<el-table-column label="Cre.TRN" width="auto"></el-table-column>
<el-table-column label="日期" width="auto"></el-table-column>
<el-table-column label="" width="auto"></el-table-column>
<el-table-column label="" width="auto"></el-table-column>
</c-table>
</c-col>
</c-col>
<c-col :span="6" :offset="1">
<c-col :span="24" style="margin-top: 15px">
<c-button
size="small"
type="primary"
@click="onTrndocButshw"
style="width: 100px"
>
Show
</c-button>
</c-col>
<c-col :span="24" style="margin-top: 15px">
<c-button
size="small"
type="primary"
@click="onTrndocButadd"
style="width: 100px"
>
Details
</c-button>
</c-col>
<c-col :span="24" style="margin-top: 15px">
<c-button
size="small"
type="primary"
@click="onTrndocButnew"
style="width: 100px"
>
Add New
</c-button>
</c-col>
<c-col :span="24" style="margin-top: 15px">
<c-button
size="small"
type="primary"
@click="onTrndocButattto"
style="width: 100px"
>
Attach to
</c-button>
</c-col>
<c-col :span="24" style="margin-top: 15px">
<c-button
size="small"
type="primary"
icon="el-icon-delete"
@click="onTrndocButdel"
style="width: 100px"
>
Delete
</c-button>
</c-col>
<c-col :span="24" style="margin-top: 15px">
<c-button
size="small"
type="primary"
@click="onTrndocButatt"
style="width: 100px"
>
Attach
</c-button>
</c-col>
<c-col :span="24" style="margin-top: 15px">
<c-button
size="small"
type="primary"
@click="onSeainf"
style="width: 100px"
>
i
</c-button>
</c-col>
</c-col>
</c-col>
<!--c-col :span="12">
<el-form-item label="File Receiver" prop="trnmod.trndoc.filrecv">
<c-input v-model="model.trnmod.trndoc.filrecv" placeholder="请输入File Receiver"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Document tree" prop="trnmod.trndoc.doctrestm">
<c-input v-model="model.trnmod.trndoc.doctrestm" placeholder="请输入Document tree"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndocButshw">
Sho&w
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndocButadd">
D&etails
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndocButnew">
&Add New
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndocButattto">
Attach to
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" icon="el-icon-delete" @click="onTrndocButdel">
Delete
</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">Show Incoming Messages</c-checkbox>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.trnmod.trndoc.shwout">Show Outgoing Messages</c-checkbox>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndocButatt">
Attach
</c-button>
</c-col>
<c-col :span="12">
<el-form-item label="Connected Documents" prop="trnmod.trndoc.condocstm">
<c-input v-model="model.trnmod.trndoc.condocstm" placeholder="请输入Connected Documents"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" prop="trnmod.trndoc.rcvatt.seainf">
<c-input v-model="model.trnmod.trndoc.rcvatt.seainf" placeholder="请输入"></c-input>
</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/Lttdav/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
data1: [],
isShow1: false,
isShow2: false,
data: [
{
label: "Internal",
children: [{ label: "'Free Message' via Letter" }],
},
],
};
},
methods: { ...Event },
handleNodeClick() {},
defaultProps() {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<el-form-item label="Sight Amount" prop="liaall.outamt">
<c-input v-model="model.liaall.outamt" placeholder="请输入Sight Amount"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Sight Amount Percentage" prop="liaall.outpct">
<c-input v-model="model.liaall.outpct" placeholder="请输入Sight Amount Percentage"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="External Booking Amount" prop="liaall.concur">
<c-input v-model="model.liaall.concur" maxlength="3" placeholder="请输入External Booking Amount"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Amount not yet assigned" prop="liaall.misamt">
<c-input v-model="model.liaall.misamt" placeholder="请输入Amount not yet assigned"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onLiaallButmisamt">
Add to Current Line
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onLiaallButmissig">
Add to Sight Amount
</c-button>
</c-col>
<c-col :span="12">
<el-form-item label="Old Amount booked externally" prop="liaall.exttotoldamt">
<c-input v-model="model.liaall.exttotoldamt" placeholder="请输入Old Amount booked externally"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Total booking amount external assinged" prop="liaall.exttotamt">
<c-input v-model="model.liaall.exttotamt" placeholder="请输入Total booking amount external assinged"></c-input>
</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/Lttdav/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">
<el-form-item label="Booking stream to Display" prop="setmod.glemod.gleshwstm">
<c-input v-model="model.setmod.glemod.gleshwstm" placeholder="请输入Booking stream to Display"></c-input>
</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/Lttdav/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">
<el-form-item label="our reference" prop="setmod.ref">
<c-input v-model="model.setmod.ref" maxlength="16" placeholder="请输入our reference"></c-input>
</el-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="请选择document currency">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="document amount" prop="setmod.docamt">
<c-input v-model="model.setmod.docamt" placeholder="请输入document amount"></c-input>
</el-form-item>
</c-col>
<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="请选择Type of settlement">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.setmod.xreflg">Recalculate Rates</c-checkbox>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSetmodDet">
细节
</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">
<el-form-item label="自�'�区主�'�号" prop="setmod.zmqacc">
<c-input v-model="model.setmod.zmqacc" maxlength="20" placeholder="请输入自�'�区主�'�号"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.setmod.zmqacclab" data-path=".setmod.zmqacclab" > </span>
</c-col>
<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/Lttdav/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="200px" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--PD000045 -->
<el-tab-pane label="davp" name="davp">
<m-davp :model="model" :codes="codes"/>
</el-tab-pane>
<!--PD000296 -->
<el-tab-pane label="Discr./Instr" name="dscinsp">
<m-dscinsp :model="model" :codes="codes"/>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="Engagement" name="engp">
<m-engp :model="model" :codes="codes"/>
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="Settlement" name="setpan">
<m-setpan :model="model" :codes="codes"/>
</el-tab-pane>
<!--PD000001 -->
<el-tab-pane label="GLE Booking" name="glepan">
<m-glepan :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="Message" 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>
</c-tabs>
<!-- <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">
<!--lttdav PD000045 Advice Received -->
<el-tab-pane label="Advice Received" name="davp">
<m-davp :model="model" :codes="codes" />
</el-tab-pane>
<!--bttp PD000282 Advice of Discrepancy -->
<el-tab-pane label="Advice of Discrepancy" name="mt750p" v-if="model.btdgrp.rec.advtyp=='750'">
<m-mt750p :model="model" :codes="codes" />
</el-tab-pane>
<!--bttp PD000296 Discr./Instr. -->
<el-tab-pane label="Discr./Instr." name="dscinsp" v-if="model.btdgrp.rec.advtyp=='750'">
<m-dscinsp :model="model" :codes="codes" />
</el-tab-pane>
<!--bttp PD000268 Advice of Payment -->
<el-tab-pane label="Advice of Payment" name="mt754p" v-if="model.btdgrp.rec.advtyp=='754'">
<m-mt754p :model="model" :codes="codes" />
</el-tab-pane>
<!--setmod PD000000 Settlement -->
<el-tab-pane label="Settlement" name="setpan">
<m-setpan :model="model" :codes="codes" />
</el-tab-pane>
<!--coninf PD000000 Completion -->
<el-tab-pane label="Completion" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-tab-pane>
<!--trndoc PD000529 &Messages -->
<el-tab-pane label="Messages" name="docpan">
<m-docpan :model="model" :codes="codes" />
</el-tab-pane>
<!--trndoc PD000546 Attachments -->
<el-tab-pane label="Attachments" name="doctre">
<m-doctre :model="model" :codes="codes" />
</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-grid-ety-prompt-dialog
ref="doxpDialog"
:isPty="false"
:promptData="promptData"
@select-ety="selectMsg"
>
</c-grid-ety-prompt-dialog>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Lttdav from "~/model/Lttdav"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Lttdav/Check"
import Default from "~/model/Lttdav/Default"
import Pattern from "~/model/Lttdav/Pattern"
import Davp from "./Davp"
import Dscinsp from "./Dscinsp"
import Engp from "./Engp"
import Setpan from "./Setpan"
import Glepan from "./Glepan"
import Coninfp from "./Coninfp"
import Docpan from "./Docpan"
import Doctre from "./Doctre"
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Lttdav from "~/model/Lttdav";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Lttdav/Check";
import Default from "~/model/Lttdav/Default";
import Pattern from "~/model/Lttdav/Pattern";
import Davp from "./Davp";
import Mt750p from "./Mt750p";
import Dscinsp from "./Dscinsp";
import Mt754p from "./Mt754p";
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 {
components:{
"m-davp" : Davp,
"m-dscinsp" : Dscinsp,
"m-engp" : Engp,
"m-setpan" : Setpan,
"m-glepan" : Glepan,
"m-coninfp" : Coninfp,
"m-docpan" : Docpan,
"m-doctre" : Doctre,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
trnName: "lttdav",
model: new Lttdav().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
name: "Lttdav",
components: {
"m-davp": Davp,
"m-mt750p": Mt750p,
"m-dscinsp": Dscinsp,
"m-mt754p": Mt754p,
"m-setpan": Setpan,
"m-coninfp": Coninfp,
"m-docpan": Docpan,
"m-doctre": Doctre,
},
provide() {
return {
root: this,
};
},
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "davp",
trnName: "lttdav",
trnType: "",
model: new Lttdav().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
...CodeTable,
},
};
},
methods: {
myTabClick(tab) {
this.tabClick(tab);
/**
* do it yourself
**/
},
methods:{
tabClick(){
}
},
created:async function(){
console.log("进入lttdav交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
created: async function () {
console.log("进入lttdav交易");
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