Commit e6b4e00d by zhengxiaokui

zxk

parent 6b2f0f89
<template>
<el-select
:id="id" v-model="model" v-bind="attrs"
v-on="$listeners" v-bind:disabled="isDisable" :clearable="clearable" @click.native="handleClick" >
<slot></slot>
:id="id"
v-model="model"
v-bind="attrs"
v-on="$listeners"
v-bind:disabled="isDisable"
:clearable="clearable"
@click.native="handleClick"
>
<el-option
v-for="item in code"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</template>
......@@ -11,61 +23,66 @@ export default {
props: {
value: {
type: [String, Array, Number],
default: undefined
default: undefined,
},
disabled: {
type: Boolean,
default: false
default: false,
},
clearable: {
type: Boolean,
default: true
default: true,
},
id: {
type: String,
default: undefined
}
default: undefined,
},
code: {
type: Array,
default: function () {
return [];
},
},
},
computed: {
model: {
get() {
return this.value
return this.value;
},
set(newVal) {
this.$emit('input', newVal)
}
this.$emit("input", newVal);
},
},
mode() {
return this.$store.state.Status.mode
return this.$store.state.Status.mode;
},
isDisable: {
get() {
return this.mode === 'display' || this.disabled
}
return this.mode === "display" || this.disabled;
},
},
highlight () {
return this.$store.state.Status.highlights.indexOf(this.id) !== -1
highlight() {
return this.$store.state.Status.highlights.indexOf(this.id) !== -1;
},
attrs(){
if(this.mode === 'display' || this.disabled)
{
let {placeholder,...rest} = this.$attrs
rest = {placeholder:" ",...rest}
return rest
attrs() {
if (this.mode === "display" || this.disabled) {
let { placeholder, ...rest } = this.$attrs;
rest = { placeholder: " ", ...rest };
return rest;
}
return this.$attrs
}
},
return this.$attrs;
},
},
methods: {
handleClick: function (e) {
let ev = new Event("click", {"bubbles": true})
let node = e.target
let ev = new Event("click", { bubbles: true });
let node = e.target;
if (node.parentElement) {
node.parentElement.dispatchEvent(ev)
node.parentElement.dispatchEvent(ev);
}
}
}
}
},
},
};
</script>
<style>
......
......@@ -3618,6 +3618,13 @@ const CodeTable = {
{label:"Panel Title",value:"P" },
{label:"Menu Entry",value:"M" },
],
advtyp:[
{label:"Advice of Discrepancy (MT750)",value:"750" },
{label:"Advice of Payment (MT754)",value:"754" },
{label:"Other",value:"oth" },
],
limittype:[
{label:"余额限额",value:"12" },
{label:"无限额",value:"11" },
......
......@@ -4,45 +4,55 @@ import Utils from "~/utils"
* Bdtudp Check规则
*/
let checkObj = {
"bddgrp.tag72add": null,
"liaall.misamt": null,
"liaall.limmod.limpts.oth.pts.extkey": null,
"bddgrp.rec.disdat": null,
"bdtp.oth.pts.extkey": null,
"liaall.limmod.ownref": null,
"liaall.limmod.ecifno": null,
"liaall.limmod.othp.ptsget.sdamod.dadsnd": null,
"bddgrp.rec.docflg": null,
"bdtp.furide": null,
"bddgrp.blk.docdis": null,
"setmod.dspflg": null,
"bddgrp.prb.pts.ref": null,
"bddgrp.blk.accrmk": null,
"bddgrp.prb.pts.extkey": null,
"bddgrp.rec.expdat": null,
"bddgrp.shp.namelc": null,
"liaall.liaccv.totcovamt": null,
"aamset.utlamt2": null,
"bddgrp.rec.rcvdat": null,
"bddgrp.shp.pts.adrblk": null,
"liaall.limmod.limpts.wrk.pts.extkey": null,
"bddgrp.blk.comcon": null,
"bddgrp.prb.pts.bankno": null,
"bddgrp.rec.reltyp": null,
"bddgrp.rec.relgodflg": null,
"bdtp.shpp.ptsget.sdamod.dadsnd": null,
"mtabut.coninf.conexedat": null,
"bdtp.recget.sdamod.dadsnd": null,
"liaall.limmod.limpts.nonrevflg1": null,
"bddgrp.shp.adrelc": null,
"liaall.limmod.wrkp.ptsget.sdamod.dadsnd": null,
"setmod.docamt": null,
"liaall.liaccv.cshpct": null,
"bdtp.oth.pts.bankno": null,
"bdtp.didget.sdamod.dadsnd": null,
"bddgrp.shp.pts.extkey": null,
"bddgrp.rec.trpdocnum": null,
"liaall.liaccv.relcshpct": null,
"bddgrp.tag72add" :null,
"liaall.misamt" :null,
"liaall.limmod.limpts.oth.pts.extkey" :null,
"bddgrp.acb.adrelc" :null,
"bddgrp.rec.disdat" :null,
"bdtp.oth.pts.extkey" :null,
"liaall.limmod.ownref" :null,
"liaall.limmod.ecifno" :null,
"bddgrp.beb.pts.extkey" :null,
"bddgrp.beb.pts.adrblk" :null,
"liaall.limmod.othp.ptsget.sdamod.dadsnd" :null,
"bddgrp.rec.docflg" :null,
"bdtp.furide" :null,
"bddgrp.blk.docdis" :null,
"setmod.dspflg" :null,
"bddgrp.prb.pts.ref" :null,
"bddgrp.acb.pts.extkey" :null,
"bddgrp.blk.accrmk" :null,
"bddgrp.prb.pts.extkey" :null,
"bddgrp.rec.expdat" :null,
"bddgrp.beb.adrelc" :null,
"bddgrp.shp.namelc" :null,
"liaall.liaccv.totcovamt" :null,
"aamset.utlamt2" :null,
"bddgrp.acb.pts.adrblk" :null,
"bddgrp.acb.namelc" :null,
"bddgrp.beb.namelc" :null,
"bddgrp.rec.rcvdat" :null,
"bddgrp.shp.pts.adrblk" :null,
"liaall.limmod.limpts.wrk.pts.extkey" :null,
"bdtp.acbp.ptsget.sdamod.dadsnd" :null,
"bddgrp.blk.comcon" :null,
"bddgrp.prb.pts.bankno" :null,
"bddgrp.rec.reltyp" :null,
"bddgrp.rec.relgodflg" :null,
"bdtp.shpp.ptsget.sdamod.dadsnd" :null,
"mtabut.coninf.conexedat" :null,
"bdtp.recget.sdamod.dadsnd" :null,
"liaall.limmod.limpts.nonrevflg1" :null,
"bddgrp.shp.adrelc" :null,
"liaall.limmod.wrkp.ptsget.sdamod.dadsnd" :null,
"setmod.docamt" :null,
"bdtp.bebp.ptsget.sdamod.dadsnd" :null,
"liaall.liaccv.cshpct" :null,
"bdtp.oth.pts.bankno" :null,
"bdtp.didget.sdamod.dadsnd" :null,
"bddgrp.shp.pts.extkey" :null,
"bddgrp.rec.trpdocnum" :null,
"liaall.liaccv.relcshpct" :null,
}
for (const key in checkObj) {
......
......@@ -6,64 +6,75 @@ import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"liaall.limmod.limpts.oth.pts.extkey": Utils.defaultFunction,
"bddgrp.blk.docdisflg": Utils.defaultFunction,
"bddgrp.blk.docdis": Utils.defaultFunction,
"setmod.doccur": Utils.defaultFunction,
"setmod.dspflg": Utils.defaultFunction,
"setmod.docamt": Utils.defaultFunction,
"bddgrp.ben.pts.nam": Utils.defaultFunction,
"mtabut.coninf.usr.extkey": Utils.defaultFunction,
"liaall.limmod.limpts.wrk.pts.extkey": Utils.defaultFunction,
"bdtp.oth.pts.extkey": Utils.defaultFunction,
"liaall.limmod.limpts.nonrevflg2": Utils.defaultFunction,
"liaall.limmod.limpts.nonrevflg1": Utils.defaultFunction,
"bddgrp.prb.pts.extkey": Utils.defaultFunction,
"bddgrp.shp.pts.extkey": Utils.defaultFunction,
"bddgrp.shp.adrelc": Utils.defaultFunction,
"bddgrp.shp.namelc": Utils.defaultFunction,
"bddgrp.shp.dbfadrblkcn": Utils.defaultFunction,
"liaall.liaccv.addinf": Utils.defaultFunction,
"bddgrp.rec.stadat": Utils.defaultFunction,
"liaall.liaccv.totcovamt": Utils.defaultFunction,
"sftmt": Utils.defaultFunction,
"bdtp.cre752flg": Utils.defaultFunction,
"liaall.limmod.limpts.oth.pts.nam": Utils.defaultFunction,
"liaall.liaccv.concur": Utils.defaultFunction,
"bddgrp.rec.docflg": Utils.defaultFunction,
"bddgrp.shp.pts.adrblk": Utils.defaultFunction,
"didgrp.rec.ownref": Utils.defaultFunction,
"bddgrp.rec.rtoaplflg": Utils.defaultFunction,
"bddgrp.rec.ownref": Utils.defaultFunction,
"bddgrp.rec.advtyp": Utils.defaultFunction,
"liaall.limmod.comamt": Utils.defaultFunction,
"liaall.limmod.ccvamt": Utils.defaultFunction,
"liaall.limmod.limpts.wrk.pts.nam": Utils.defaultFunction,
"bddgrp.rec.docprbrol": Utils.defaultFunction,
"setmod.glemod.gleshwstm": Utils.defaultFunction,
"bddgrp.rec.relgoddat": Utils.defaultFunction,
"bddgrp.cbs.max.amt": Utils.defaultFunction,
"bddgrp.rec.predat": Utils.defaultFunction,
"bddgrp.cbs.max.cur": Utils.defaultFunction,
"didgrp.rec.expdat": Utils.defaultFunction,
"didgrp.cbs.opn1.amt": Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inftxt": Utils.defaultFunction,
"bddgrp.rec.reltyp": Utils.defaultFunction,
"bddgrp.apl.pts.nam": Utils.defaultFunction,
"aamset.utlamt": Utils.defaultFunction,
"bddgrp.cbs.opn2.cur": Utils.defaultFunction,
"aamset.utlamt2": Utils.defaultFunction,
"bddgrp.cbs.opn1.amt": Utils.defaultFunction,
"liaall.misamt": Utils.defaultFunction,
"bddgrp.rec.disdat": Utils.defaultFunction,
"bddgrp.rec.approvcod": Utils.defaultFunction,
"liaall.liaccv.newamt": Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inftxt": Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inflev": Utils.defaultFunction,
"mtabut.coninf.conexedat": Utils.defaultFunction,
"bddgrp.rec.payrol": Utils.defaultFunction,
"liaall.liaccv.cshpct": Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inflev": Utils.defaultFunction,
"bddgrp.prb.pts.nam": Utils.defaultFunction,
"liaall.limmod.limpts.oth.pts.extkey" :Utils.defaultFunction,
"bddgrp.acb.pts.extkey" :Utils.defaultFunction,
"bddgrp.blk.docdisflg" :Utils.defaultFunction,
"bddgrp.blk.docdis" :Utils.defaultFunction,
"setmod.doccur" :Utils.defaultFunction,
"setmod.dspflg" :Utils.defaultFunction,
"setmod.docamt" :Utils.defaultFunction,
"bddgrp.ben.pts.nam" :Utils.defaultFunction,
"mtabut.coninf.usr.extkey" :Utils.defaultFunction,
"liaall.limmod.limpts.wrk.pts.extkey" :Utils.defaultFunction,
"bdtp.oth.pts.extkey" :Utils.defaultFunction,
"liaall.limmod.limpts.nonrevflg2" :Utils.defaultFunction,
"liaall.limmod.limpts.nonrevflg1" :Utils.defaultFunction,
"bddgrp.prb.pts.extkey" :Utils.defaultFunction,
"bddgrp.shp.pts.extkey" :Utils.defaultFunction,
"bddgrp.shp.adrelc" :Utils.defaultFunction,
"bddgrp.shp.namelc" :Utils.defaultFunction,
"bddgrp.shp.dbfadrblkcn" :Utils.defaultFunction,
"liaall.liaccv.addinf" :Utils.defaultFunction,
"bddgrp.rec.stadat" :Utils.defaultFunction,
"bddgrp.beb.pts.extkey" :Utils.defaultFunction,
"bddgrp.acb.adrelc" :Utils.defaultFunction,
"bddgrp.acb.namelc" :Utils.defaultFunction,
"bddgrp.acb.dbfadrblkcn" :Utils.defaultFunction,
"liaall.liaccv.totcovamt" :Utils.defaultFunction,
"sftmt" :Utils.defaultFunction,
"bdtp.cre752flg" :Utils.defaultFunction,
"liaall.limmod.limpts.oth.pts.nam" :Utils.defaultFunction,
"bddgrp.beb.adrelc" :Utils.defaultFunction,
"bddgrp.beb.namelc" :Utils.defaultFunction,
"bddgrp.beb.dbfadrblkcn" :Utils.defaultFunction,
"liaall.liaccv.concur" :Utils.defaultFunction,
"bddgrp.rec.docflg" :Utils.defaultFunction,
"bddgrp.shp.pts.adrblk" :Utils.defaultFunction,
"didgrp.rec.ownref" :Utils.defaultFunction,
"bddgrp.rec.rtoaplflg" :Utils.defaultFunction,
"bddgrp.rec.ownref" :Utils.defaultFunction,
"bddgrp.beb.pts.adrblk" :Utils.defaultFunction,
"bddgrp.rec.advtyp" :Utils.defaultFunction,
"liaall.limmod.comamt" :Utils.defaultFunction,
"liaall.limmod.ccvamt" :Utils.defaultFunction,
"liaall.limmod.limpts.wrk.pts.nam" :Utils.defaultFunction,
"bddgrp.cbs.max2.amt" :Utils.defaultFunction,
"bddgrp.rec.docprbrol" :Utils.defaultFunction,
"bddgrp.acb.pts.adrblk" :Utils.defaultFunction,
"setmod.glemod.gleshwstm" :Utils.defaultFunction,
"bddgrp.rec.relgoddat" :Utils.defaultFunction,
"bddgrp.cbs.max.amt" :Utils.defaultFunction,
"bddgrp.rec.predat" :Utils.defaultFunction,
"bddgrp.cbs.max.cur" :Utils.defaultFunction,
"didgrp.rec.expdat" :Utils.defaultFunction,
"didgrp.cbs.opn1.amt" :Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inftxt" :Utils.defaultFunction,
"bddgrp.rec.reltyp" :Utils.defaultFunction,
"bddgrp.apl.pts.nam" :Utils.defaultFunction,
"aamset.utlamt" :Utils.defaultFunction,
"bddgrp.cbs.opn2.cur" :Utils.defaultFunction,
"aamset.utlamt2" :Utils.defaultFunction,
"bddgrp.cbs.opn1.amt" :Utils.defaultFunction,
"liaall.misamt" :Utils.defaultFunction,
"bddgrp.rec.disdat" :Utils.defaultFunction,
"bddgrp.rec.approvcod" :Utils.defaultFunction,
"liaall.liaccv.newamt" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inftxt" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inflev" :Utils.defaultFunction,
"mtabut.coninf.conexedat" :Utils.defaultFunction,
"bddgrp.rec.payrol" :Utils.defaultFunction,
"liaall.liaccv.cshpct" :Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inflev" :Utils.defaultFunction,
"bddgrp.prb.pts.nam" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils/index"
import Utils from "~/utils"
export default {
async onAcctagButtxmsel() {
let rtnmsg = await this.executeRule("acctag.buttxmsel")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onPreperButtxmsel() {
let rtnmsg = await this.executeRule("preper_buttxmsel")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
onSeainf() {
},
async onDocdisButtxmsel() {
let rtnmsg = await this.executeRule("docdis.buttxmsel")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
......@@ -100,23 +115,28 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onLimptsGet1() {
let rtnmsg = await this.executeRule("limpts.get1")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
onSeainf() {
console.log('11111111')
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onPreperButtxmsel() {
let rtnmsg = await this.executeRule("preper_buttxmsel")
async onLimptsGet2() {
let rtnmsg = await this.executeRule("limpts.get2")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onLimptsGet1() {
let rtnmsg = await this.executeRule("limpts.get1")
async onLimmodTrycal() {
let rtnmsg = await this.executeRule("limmod.trycal")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -125,8 +145,8 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onLimptsGet2() {
let rtnmsg = await this.executeRule("limpts.get2")
async onAcbpDet() {
let rtnmsg = await this.executeRule("acbp.det")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......@@ -135,8 +155,8 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onLimmodTrycal() {
let rtnmsg = await this.executeRule("limmod.trycal")
async onBebpDet() {
let rtnmsg = await this.executeRule("bebp.det")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
......
......@@ -468,4 +468,85 @@ export default {
{ max: 14, message: "长度不能超过14" }
],
"bddgrp.cbs.max2.amt": [
{ required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"bddgrp.blk.chaded": [
{ type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
"bddgrp.blk.chaadd": [
{ type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
"bddgrp.rec.totcur": [
{ type: "string", required: false, message: "必输项" },
{ max: 3, message: "长度不能超过3" }
],
"bddgrp.rec.totamt": [
{ required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"bdtp.acbp.ptsget.sdamod.dadsnd": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"bddgrp.acb.pts.extkey": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"bdtp.acbp.ptsget.sdamod.seainf": [
{ type: "string", required: false, message: "必输项" },
{ max: 3, message: "长度不能超过3" }
],
"bddgrp.acb.namelc": [
{ type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
"bddgrp.acb.pts.adrblk": [
{ type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
"bddgrp.acb.dbfadrblkcn": [
{ type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
"bddgrp.acb.adrelc": [
{ type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
"bdtp.bebp.ptsget.sdamod.dadsnd": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"bddgrp.beb.pts.extkey": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"bdtp.bebp.ptsget.sdamod.seainf": [
{ type: "string", required: false, message: "必输项" },
{ max: 3, message: "长度不能超过3" }
],
"bddgrp.beb.namelc": [
{ type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
"bddgrp.beb.pts.adrblk": [
{ type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
"bddgrp.beb.dbfadrblkcn": [
{ type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
"bddgrp.beb.adrelc": [
{ type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
}
\ No newline at end of file
......@@ -33,6 +33,8 @@ export default class Bdtudp {
rtoaplflg: "", // Release Goods to Applicant ? .bddgrp.rec.rtoaplflg
ngrcod: "", // Goods code .bddgrp.rec.ngrcod
blnum: "", // B/L Number .bddgrp.rec.blnum
totcur: "", // Total Amount Claimed .bddgrp.rec.totcur
totamt: "", // Total Amount to be Paid .bddgrp.rec.totamt
},
cbs: {
opn2: {
......@@ -40,12 +42,15 @@ export default class Bdtudp {
},
max: {
cur: "", // 单据金额 .bddgrp.cbs.max.cur
amt: "", // 单据金额 .bddgrp.cbs.max.amt
amt: "", // Balance .bddgrp.cbs.max.amt
},
opn1: {
cur: "", // 单据余额 .bddgrp.cbs.opn1.cur
amt: "", // Balance .bddgrp.cbs.opn1.amt
},
max2: {
amt: "", // 附加金额 .bddgrp.cbs.max2.amt
},
},
apl: {
pts: new Pts().data,
......@@ -71,6 +76,8 @@ export default class Bdtudp {
voynum: "", // Voyage numer .bddgrp.blk.voynum
notpty: "", // Notify Party .bddgrp.blk.notpty
carnam: "", // Carrier .bddgrp.blk.carnam
chaded: "", // Charges Deducted .bddgrp.blk.chaded
chaadd: "", // Charges .bddgrp.blk.chaadd
},
shp: {
pts: new Pts().data,
......@@ -78,6 +85,18 @@ export default class Bdtudp {
adrelc: "", // 地址 .bddgrp.shp.adrelc
dbfadrblkcn: "", // Chinese address .bddgrp.shp.dbfadrblkcn
},
acb: {
pts: new Pts().data,
namelc: "", // 名称 .bddgrp.acb.namelc
adrelc: "", // 地址 .bddgrp.acb.adrelc
dbfadrblkcn: "", // Chinese address .bddgrp.acb.dbfadrblkcn
},
beb: {
pts: new Pts().data,
namelc: "", // 名称 .bddgrp.beb.namelc
adrelc: "", // 地址 .bddgrp.beb.adrelc
dbfadrblkcn: "", // Chinese address .bddgrp.beb.dbfadrblkcn
},
},
aamset: {
utlamt: "", // 单据金额 .aamset.utlamt
......@@ -93,15 +112,17 @@ export default class Bdtudp {
xreflg: "", // Recalculate Rates .setmod.xreflg
setglg: {
labdspflg: "", // Label for Type of Settlement .setmod.setglg.labdspflg
setgll: []
},
zmqacclab: "", // 主�'�号LABEL .setmod.zmqacclab
zmqacc: "", // 自�'�区主�'�号 .setmod.zmqacc
setfog: {
setfol: []
},
setfeg: {
setfel: []
},
zmqacclab: "", // 主�'�号LABEL .setmod.zmqacclab
zmqacc: "", // 自�'�区主�'�号 .setmod.zmqacc
glemod: {
gleshwstm: "", // Booking stream to Display .setmod.glemod.gleshwstm
},
......@@ -139,7 +160,6 @@ export default class Bdtudp {
},
docgrdm: {
docdsclab: "", // Label of document description .bdtp.docgrdm.docdsclab
docgrd: [],
},
cre752flg: "", // Create 752 .bdtp.cre752flg
furide: "", // Further Identification .bdtp.furide
......@@ -153,6 +173,22 @@ export default class Bdtudp {
},
},
connum: "", // Contract Number .bdtp.connum
acbp: {
ptsget: {
sdamod: {
seainf: "", // .bdtp.acbp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .bdtp.acbp.ptsget.sdamod.dadsnd
},
},
},
bebp: {
ptsget: {
sdamod: {
seainf: "", // .bdtp.bebp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .bdtp.bebp.ptsget.sdamod.dadsnd
},
},
},
},
sftmt: "", // Which MT .sftmt
liaall: {
......@@ -241,7 +277,7 @@ export default class Bdtudp {
amdnam: "", // AMDNAM .trnmod.trndoc.amdnam
advdoc: "", // 国内证通知书 .trnmod.trndoc.advdoc
advnam: "", // 国内证落款 .trnmod.trndoc.advnam
amdapl: "", // 修改申请人名称 .trnmod.trndoc.
amdapl: "", // 修改申请人名称 .trnmod.trndoc.amdapl
doceot: [],
},
},
......
......@@ -7,6 +7,7 @@
<el-form-item label="不符点">
<c-input
type="textarea"
:disabled="model.bddgrp.blk.docdisflg ? false : true"
:rows="6"
v-model="model.bddgrp.blk.docdis"
maxlength="65"
......@@ -43,7 +44,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<c-istream-table
<c-istream-table
:list="model.bdtp.docgrdm.docgrd"
:columns="columns"
>
......@@ -63,7 +64,7 @@
</c-col>
<c-col :span="24">
<div class="c-checkbox">
<c-checkbox v-model="model.bddgrp.blk.docdisflg"
<c-checkbox v-model="model.bddgrp.blk.docdisflg" @change="changed"
>录入不符点</c-checkbox
>
</div>
......@@ -75,6 +76,7 @@
v-model="model.bddgrp.rec.advtyp"
style="width: 100%"
placeholder="请选择收到的通知类型"
:code="codes.advtyp"
>
</c-select>
</el-form-item>
......@@ -153,14 +155,17 @@ export default {
mixins: [CommonProcess],
data() {
return {
columns: [
"0 0 \"lst1\" 50 ",
"1 1 \"lst2\" 50",
"2 2 \"document\" 200",
],
columns: ['0 0 "lst1" 50 ', '1 1 "lst2" 50', '2 2 "document" 200'],
};
},
methods: { ...Event },
methods: {
...Event,
changed(e) {
if (!e) {
this.model.bddgrp.blk.docdis = "";
}
},
},
created: function () {},
};
</script>
......
<template>
<div class="eibs-tab">
<c-amtpanl
:model="model"
:codes="codes"
:message="{
title: '单据金额',
cur: 'bddgrp.rec.totcur',
amt: 'bddgrp.rec.totamt',
}"
></c-amtpanl>
<c-amtpanl
:model="model"
:codes="codes"
:message="{
title: '附加金额',
cur: 'bddgrp.cbs.opn2.cur',
amt: 'bddgrp.cbs.max2.amt',
}"
></c-amtpanl>
<c-col :span="12">
<el-form-item label="Charges Deducted" prop="bddgrp.blk.chaded">
<c-input
type="textarea"
v-model="model.bddgrp.blk.chaded"
maxlength="35"
show-word-limit
placeholder="请输入Charges Deducted"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Charges" prop="bddgrp.blk.chaadd">
<c-input
type="textarea"
v-model="model.bddgrp.blk.chaadd"
maxlength="35"
show-word-limit
placeholder="请输入Charges"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Total Amount Claimed" prop="bddgrp.rec.totcur">
<c-input
v-model="model.bddgrp.rec.totcur"
maxlength="3"
placeholder="请输入Total Amount Claimed"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Total Amount to be Paid" prop="bddgrp.rec.totamt">
<c-input
v-model="model.bddgrp.rec.totamt"
placeholder="请输入Total Amount to be Paid"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
label="Drag Drop Sender"
prop="bdtp.acbp.ptsget.sdamod.dadsnd"
>
<c-input
v-model="model.bdtp.acbp.ptsget.sdamod.dadsnd"
placeholder="请输入Drag Drop Sender"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
label="External Key of Address"
prop="bddgrp.acb.pts.extkey"
>
<c-input
v-model="model.bddgrp.acb.pts.extkey"
maxlength="16"
placeholder="请输入External Key of Address"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" prop="bdtp.acbp.ptsget.sdamod.seainf">
<c-input
v-model="model.bdtp.acbp.ptsget.sdamod.seainf"
placeholder="请输入"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onAcbpDet">
Details
</c-button>
</c-col>
<c-col :span="12">
<el-form-item label="名称" prop="bddgrp.acb.namelc">
<c-input
type="textarea"
v-model="model.bddgrp.acb.namelc"
maxlength="35"
show-word-limit
placeholder="请输入名称"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Address Block" prop="bddgrp.acb.pts.adrblk">
<c-input
type="textarea"
v-model="model.bddgrp.acb.pts.adrblk"
maxlength="35"
show-word-limit
placeholder="请输入Address Block"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Chinese address" prop="bddgrp.acb.dbfadrblkcn">
<c-input
type="textarea"
v-model="model.bddgrp.acb.dbfadrblkcn"
maxlength="35"
show-word-limit
placeholder="请输入Chinese address"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="地址" prop="bddgrp.acb.adrelc">
<c-input
type="textarea"
v-model="model.bddgrp.acb.adrelc"
maxlength="35"
show-word-limit
placeholder="请输入地址"
></c-input>
</el-form-item>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import Event from "~/model/Bdtudp/Event";
import Amtpanl from "~/views/Public/Amtpanl";
export default {
inject: ["root"],
components: {
"c-amtpanl": Amtpanl,
},
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="Drag Drop Sender" prop="bdtp.bebp.ptsget.sdamod.dadsnd">
<c-input v-model="model.bdtp.bebp.ptsget.sdamod.dadsnd" placeholder="请输入Drag Drop Sender"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="External Key of Address" prop="bddgrp.beb.pts.extkey">
<c-input v-model="model.bddgrp.beb.pts.extkey" maxlength="16" placeholder="请输入External Key of Address"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" prop="bdtp.bebp.ptsget.sdamod.seainf">
<c-input v-model="model.bdtp.bebp.ptsget.sdamod.seainf" placeholder="请输入"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onBebpDet">
Details
</c-button>
</c-col>
<c-col :span="12">
<el-form-item label="名称" prop="bddgrp.beb.namelc">
<c-input type="textarea" v-model="model.bddgrp.beb.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Address Block" prop="bddgrp.beb.pts.adrblk">
<c-input type="textarea" v-model="model.bddgrp.beb.pts.adrblk" maxlength="35" show-word-limit placeholder="请输入Address Block" ></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Chinese address" prop="bddgrp.beb.dbfadrblkcn">
<c-input type="textarea" v-model="model.bddgrp.beb.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="地址" prop="bddgrp.beb.adrelc">
<c-input type="textarea" v-model="model.bddgrp.beb.adrelc" maxlength="35" show-word-limit 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/Bdtudp/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [CommonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
......@@ -286,7 +286,6 @@
</el-form-item>
</c-col>
</c-col>
</c-row>
</c-col>
......@@ -345,7 +344,7 @@
<el-form-item label="TAG72">
<c-input
type="textarea"
:rows='5'
:rows="5"
v-model="model.bddgrp.tag72add"
maxlength="50"
show-word-limit
......
......@@ -51,6 +51,21 @@
<m-docpan :model="model" :codes="codes" />
</el-tab-pane>
<el-tab-pane
v-if="model.bddgrp.rec.advtyp === '750'"
label="不符点通知"
name="mt750p"
>
<m-mt750p :model="model" :codes="codes" />
</el-tab-pane>
<el-tab-pane
v-else-if="model.bddgrp.rec.advtyp === 'oth'"
label="Advice Details"
name="othadvtypp"
>
<m-othadvtypp :model="model" :codes="codes" />
</el-tab-pane>
<el-tab-pane label="统一授信" name="limitbody">
<m-limitbody :model="model" :codes="codes" />
</el-tab-pane>
......@@ -72,9 +87,9 @@ import Payp from "./Payp";
import Ovwp from "./Ovwp";
import Docpre from "./Docpre";
import Shpdet from "./Shpdet";
//import Engp from "./Engp";
import Mt750p from "./Mt750p";
//import Ccvpan from "./Ccvpan";
//import Coninfp from "./Coninfp";
import Othadvtypp from "./Othadvtypp";
import Limitbody from "./Limitbody";
import Glepan from "~/views/Public/Glepan";
......@@ -94,11 +109,13 @@ export default {
"m-docpre": Docpre,
"m-shpdet": Shpdet,
"m-engp": Engp,
"m-mt750p": Mt750p,
"m-ccvpan": Ccvpan,
"m-setpan": Setpan,
"m-glepan": Glepan,
"m-coninfp": Coninfp,
"m-docpan": Docpan,
"m-othadvtypp": Othadvtypp,
"m-limitbody": Limitbody,
},
provide() {
......
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-col :span="12">
<el-form-item :label="message.title" :prop="message.cur">
<c-select
v-model="model[message.cur]"
maxlength="3"
placeholder="请选择币种"
></c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
label=""
style="margin-left: -230px !important"
:prop="message.amt"
>
<c-input
v-model="model[message.amt]"
@change="amtChanged"
@input="amtInput"
:placeholder="'请输入' + message.title"
></c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import CommonProcess from "~/mixin/CommonProcess";
export default {
inject: ["root"],
mixins: [CommonProcess],
props: ["model", "codes", "message"],
data() {
return {
data: [],
};
},
methods: {
amtChanged(newamt) {
if (newamt === "" || newamt === undefined || newamt === null) {
this.model[this.message.amt] = "";
return;
}
newamt = newamt.replace(/^0+\./, "0.");
if (newamt === "" || newamt === undefined || newamt === null) {
this.model[this.message.amt] = "";
return;
}
newamt = newamt.replace(/^0+([0-9])/, "$1");
let fix = this.message.fix || 2;
let idx = newamt.indexOf(".");
let segs = undefined;
if (idx > -1) segs = newamt.split(".");
else segs = [newamt || "0", "0".repeat(fix)];
if (!segs[0]) segs[0] = "0";
if (segs[1].length > fix) segs[1] = segs[1].substring(0, fix);
else if (segs[1].length < fix)
segs[1] = segs[1] + "0".repeat(fix - segs[1].length);
let npreseg = "";
segs[0] = segs[0].replace(/\D+/g, "");
let preseg = segs[0];
for (let i = 0; i < preseg.length; i++) {
npreseg = preseg.charAt(preseg.length - 1 - i) + npreseg;
if (i && (1 + i) % 3 == 0 && i != preseg.length - 1)
npreseg = "," + npreseg;
}
this.model[this.message.amt] = `${segs[0] ? segs[0] : 0}.${segs[1]}`;
},
amtInput(newamt) {
if (newamt === "" || newamt === undefined || newamt === null) {
this.model[this.message.amt] = "";
return;
}
this.model[this.message.amt] = newamt.replace(/[^\d.]/g, "");
},
},
watch: {},
// methods: { ...Event },
created: function () {},
};
</script>
<style>
</style>
......@@ -121,7 +121,7 @@ export default {
infChanged(e, type) {
if (!e) {
this.model[type] = "";
console.log("1111", this.model[type]);
console.log("1111", this.model[type],type);
}
},
},
......
......@@ -24,7 +24,6 @@
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
export default {
inject: ["root"],
......
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