Commit 69db00c0 by lianyang

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs…

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs into development-202206
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -21,7 +21,7 @@ export default {
},
mounted() {
if (!this.isInDisplay) {
this.ruleCheck()
this.generateFormRules()
}
},
methods: {
......@@ -29,7 +29,16 @@ export default {
* 表单校验 rules 的赋值
* @returns void
*/
ruleCheck() {
generateFormRules() {
if (this.root) {
if (!this.root.rules) {
return;
} else {
// 新添加的表单项,需要重新确定下 validator 的触发 trigger
this.updateRulesTrigger();
return
}
}
if (!this.pattern)
return
// const keySet = new Set(Object.keys(this.pattern).concat(Object.keys(this.checkRules).concat(Object.keys(this.defaultRules))))
......@@ -76,7 +85,8 @@ export default {
* @returns
*/
getTriggerType(prop) {
const fields = this.$refs.modelForm.fields;
const modelForm = this.root ? this.root.$refs.modelForm : this.$refs.modelForm
const fields = modelForm.fields;
for (let i = 0; i < fields.length; i++) {
const field = fields[i];
if (field.prop === prop) {
......@@ -90,6 +100,24 @@ export default {
return "blur";
},
/**
* 表单有些 tab 是通过 v-if 控制的,这些表单项初始时的 trigger 均为 blur,需要手动更新
*/
updateRulesTrigger() {
const rules = this.root.rules
for (const key in rules) {
if (Object.hasOwnProperty.call(rules, key)) {
const rule = rules[key];
const triggerType = this.getTriggerType(key)
for (let i = 0; i < rule.length; i++) {
const r = rule[i];
if (r.validator && r.trigger !== triggerType) {
r.trigger = triggerType;
}
}
}
}
},
/**
* Tabs切换事件
* @param {VM} tab
*/
......@@ -132,6 +160,18 @@ export default {
if(name === 'basp'){
rulePath = "bopmod.dbcp.basp"
}
if(name === 'basp1'){
rulePath = "bopmod.dbfp.basp"
}
if(name === 'basp2'){
rulePath = "bopmod.dbdp.basp"
}
if(name === 'basp3'){
rulePath = "bopmod.dbap.basp"
}
if(name === 'incp'){
rulePath = "cnybop.incp"
}
if (!!rulePath) {
// if(rulePath == "setmod.setpan"){
// this.executeCustomRule(rulePath).then(res => {
......@@ -248,7 +288,7 @@ export default {
* 下拉框/多选框 改变时执行rule
* @param {String} rulePath 路径
*/
selectOrCheckboxChangeExecuteRule(rulePath){
selectOrCheckboxRule(rulePath){
this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, res.data);
......@@ -333,4 +373,4 @@ export default {
return this.$store.state.Status.mode === 'display'
}
}
}
\ No newline at end of file
}
......@@ -54,6 +54,7 @@ export default class Bftdcr {
intdis: "", // Internal Discrepancies .bfdgrp.blk.intdis
docdis: "", // Discrepancies .bfdgrp.blk.docdis
docdisflg: "", // Discrepancies modified .bfdgrp.blk.docdisflg
prsdoc: "", //.bfdgrp.blk.prsdoc
},
},
mtabut: {
......
......@@ -41,6 +41,7 @@ export default class Bftdrv {
intdis: "", // Internal Discrepancies .bfdgrp.blk.intdis
docdis: "", // Discrepancies .bfdgrp.blk.docdis
docdisflg: "", // Discrepancies modified .bfdgrp.blk.docdisflg
prsdoc: "", //.bfdgrp.blk.prsdoc
},
prb: {
pts: new Pts().data,
......
......@@ -20,7 +20,7 @@ export default class Bftsnd {
},
docgrdm: {
docdsclab: "", // Label of document description .bftp.docgrdm.docdsclab
docgrd: [], //.bftp.docgrdm.docgrd
docgrd: "", //.bftp.docgrdm.docgrd
},
prbp: {
ptsget: {
......
......@@ -46,8 +46,8 @@ export default {
],
"trnmod.swiadd.newmatpercnt":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
//{type: "string", required: false, message: "必输项"},
//{max: 3,message:"长度不能超过3"}
],
......@@ -59,7 +59,7 @@ export default {
],
"trnmod.swiadd.ametxt":[
//type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
//{max: 35,message:"长度不能超过35"}
],
"botp.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
......@@ -130,7 +130,7 @@ export default {
{max: 35,message:"长度不能超过35"}
],
"bodgrp.rec.rcvdat":[
{type: "date", required: false, message: "输入正确的日期"}
//{type: "date", required: false, message: "输入正确的日期"}
],
"bodgrp.rec.shpdat":[
......@@ -141,10 +141,10 @@ export default {
{max: 35,message:"长度不能超过35"}
],
"bodgrp.rec.predat":[
{type: "date", required: false, message: "输入正确的日期"}
//{type: "date", required: false, message: "输入正确的日期"}
],
"bodgrp.rec.advdat":[
{type: "date", required: false, message: "输入正确的日期"}
//{type: "date", required: false, message: "输入正确的日期"}
],
"bodgrp.col.pts.ref":[
{type: "string", required: false, message: "必输项"},
......@@ -165,7 +165,7 @@ export default {
],
"bodgrp.rec.matdat":[
{type: "date", required: false, message: "输入正确的日期"}
//{type: "date", required: false, message: "输入正确的日期"}
],
"bodgrp.col.namelc":[
......
......@@ -48,6 +48,7 @@ export default class Botame{
},
},
blk:{
docpre:"",
bogdet:"", // Tenor Details Text .bodgrp.blk.bogdet
cctinsrcv:"", // Instructions Received .bodgrp.blk.cctinsrcv
cctinscol:"", // Collection Instruction .bodgrp.blk.cctinscol
......@@ -150,6 +151,7 @@ export default class Botame{
},
},
docgrdm:{
docgrd:"",
docdsclab:"", // Label of document description .botp.docgrdm.docdsclab
},
drrp:{
......
......@@ -6,59 +6,101 @@ import Utils from "~/utils"
let checkObj = {
"liaall.misamt" :null,
"bodgrp.rec.matpertyp" :null,
"bopmod.dbagrp.bas.methods" :null,
"bodgrp.dre.adrelc" :null,
"bopmod.dbagrp.bas.lcyacc" :null,
"cnybop.outflg" :null,
"bopmod.dbdgrp.bas.fcyacc" :null,
"bopmod.dbdgrp.bas.buscode" :null,
"bopmod.dbdgrp.bas.inchargeamt" :null,
"bopmod.dbdgrp.bas.idcode" :null,
"bopmod.dbagrp.bas.outchargeamt" :null,
"bopmod.dbagrp.bas.fcyamt" :null,
"cnybop.cnyinc.sbalancemode" :null,
"bodgrp.dre.pts.nam" :null,
"cnybop.cnyinc.spayercountrycode" :null,
"liaall.limmod.limpts.oth.pts.nam" :null,
"bopmod.dbdgrp.bas.custnm" :null,
"bopmod.dbagrp.bas.exrate" :null,
"setmod.dspflg" :null,
"bopmod.dbdgrp.bas.txamt" :null,
"bopmod.dbagrp.bas.txccy" :null,
"bodgrp.col.pts.adrblk" :null,
"cnybop.cnyinc.frecordamt" :null,
"cnybop.cnyinc.dpayeedate" :null,
"bodgrp.blk.dftins" :null,
"cnybop.cnyinc.sbankorgcode" :null,
"bopmod.dbagrp.bas.custcod" :null,
"liaall.limmod.limpts.wrk.pts.nam" :null,
"cnybop.cnyflg" :null,
"bopmod.dbdgrp.bas.fcyamt" :null,
"cnybop.saddword" :null,
"bodgrp.blk.delins" :null,
"cnybop.cnyinc.sorilevyno" :null,
"cnybop.cnyinc.sbanktrano" :null,
"bopmod.dbagrp.bas.txamt" :null,
"bodgrp.rec.focflg" :null,
"bopmod.dbdgrp.bas.methods" :null,
"bodgrp.drr.adrelc" :null,
"bopmod.dbdgrp.bas.exrate" :null,
"cnybop.cnyinc.iaccountperiod" :null,
"bodgrp.dre.namelc" :null,
"cnybop.spayeename" :null,
"bopmod.dbagrp.bas.buscode" :null,
"lendoc.account" :null,
"bopmod.dbagrp.bas.othamt" :null,
"bopmod.dbagrp.bas.actiondesc" :null,
"bodgrp.dre.pts.adrblk" :null,
"bopmod.dbdgrp.bas.oppuser" :null,
"cnybop.cnyinc.cpayeeattr" :null,
"bodgrp.drr.pts.extkey" :null,
"bopmod.dbdgrp.bas.othamt" :null,
"bopmod.dbdgrp.bas.custype" :null,
"cnybop.cnyinc.spayeeorgcode" :null,
"liaall.limmod.limpts.oth.pts.extkey" :null,
"bopmod.dbagrp.bas.outchargeccy" :null,
"bodgrp.rec.matperbeg" :null,
"liaall.limmod.ownref" :null,
"bopmod.dbagrp.bas.actiontype" :null,
"bodgrp.blk.proins" :null,
"liaall.limmod.ecifno" :null,
"bopmod.dbdgrp.bas.rptno" :null,
"cnybop.incscale" :null,
"bodgrp.drr.pts.adrblk" :null,
"cnybop.cnyinc.sswiftbic" :null,
"bopmod.szflg" :null,
"bopmod.dbdgrp.bas.actiontype" :null,
"bopmod.dbdgrp.bas.lcyamt" :null,
"cnybop.cnyinc.fpayeeamt" :null,
"cnybop.traflg" :null,
"cnybop.sbankname" :null,
"bopmod.dbagrp.bas.inchargeccy" :null,
"bopmod.dbagrp.bas.custnm" :null,
"bodgrp.col.adrelc" :null,
"bopmod.dbdgrp.bas.othacc" :null,
"bopmod.dbdgrp.bas.inchargeccy" :null,
"bopmod.dbagrp.bas.fcyacc" :null,
"bodgrp.col.pts.extkey" :null,
"liaall.tenstm" :null,
"setmod.redamt" :null,
"bopmod.dbagrp.bas.custype" :null,
"cnybop.cnyinc.ftotalamt" :null,
"cnybop.cnyinc.spayeecny" :null,
"bodgrp.drr.pts.nam" :null,
"bopmod.dbdgrp.bas.txccy" :null,
"bopmod.dbdgrp.bas.custcod" :null,
"liaall.limmod.limpts.wrk.pts.extkey" :null,
"bopmod.dbagrp.bas.rptno" :null,
"bopmod.dbagrp.bas.oppuser" :null,
"bopmod.basflg" :null,
"bopmod.dbdgrp.bas.lcyacc" :null,
"bopmod.dbagrp.bas.idcode" :null,
"bopmod.dbagrp.bas.othacc" :null,
"mtabut.coninf.conexedat" :null,
"bodgrp.col.namelc" :null,
"cnybop.spayername" :null,
"bopmod.dbagrp.bas.lcyamt" :null,
"bopmod.dbagrp.bas.inchargeamt" :null,
"liaall.limmod.limpts.nonrevflg1" :null,
"cnybop.libflg" :null,
"bodgrp.blk.colins" :null,
......@@ -70,6 +112,7 @@ let checkObj = {
"bodgrp.blk.othins" :null,
"bodgrp.dre.pts.extkey" :null,
"bopmod.dbdgrp.bas.actiondesc" :null,
"cnybop.cnyinc.cpayeraccttyp" :null,
"mtabut.clsflg" :null,
"cnybop.vouflg" :null,
}
......
......@@ -32,6 +32,8 @@ export default {
"cnybop.vouflg" :Utils.defaultFunction,
"bopmod.dbdgrp.bas.buscode" :Utils.defaultFunction,
"bopmod.vrfflg" :Utils.defaultFunction,
"bopmod.dbagrp.bas.custype" :Utils.defaultFunction,
"bopmod.dbagrp.bas.custcod" :Utils.defaultFunction,
"cnybop.traflg" :Utils.defaultFunction,
"bodgrp.drr.pts.adrblk" :Utils.defaultFunction,
"bodgrp.cbs.max.amt" :Utils.defaultFunction,
......@@ -45,6 +47,7 @@ export default {
"liaall.limmod.comamt" :Utils.defaultFunction,
"liaall.limmod.ccvamt" :Utils.defaultFunction,
"liaall.limmod.limpts.wrk.pts.nam" :Utils.defaultFunction,
"bopmod.dbagrp.bas.tmpref" :Utils.defaultFunction,
"setmod.glemod.gleshwstm" :Utils.defaultFunction,
"bodgrp.dre.pts.extkey" :Utils.defaultFunction,
"bodgrp.dre.adrelc" :Utils.defaultFunction,
......@@ -52,11 +55,14 @@ export default {
"bodgrp.dre.dbfadrblkcn" :Utils.defaultFunction,
"bodgrp.rec.ownref" :Utils.defaultFunction,
"bodgrp.dre.pts.nam" :Utils.defaultFunction,
"cnybop.cnyinc.spayercountrycode" :Utils.defaultFunction,
"bodgrp.rec.predat" :Utils.defaultFunction,
"lendoc.actflg" :Utils.defaultFunction,
"bopmod.dbagrp.bas.rptno" :Utils.defaultFunction,
"bodgrp.col.pts.nam" :Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inftxt" :Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inflev" :Utils.defaultFunction,
"bopmod.dbagrp.bas.ownextkey" :Utils.defaultFunction,
"setmod.redamt" :Utils.defaultFunction,
"bodgrp.col.pts.adrblk" :Utils.defaultFunction,
"mtabut.coninf.usr.extkey" :Utils.defaultFunction,
......@@ -65,6 +71,7 @@ export default {
"liaall.limmod.limpts.oth.pts.nam" :Utils.defaultFunction,
"cnybop.cnyflg" :Utils.defaultFunction,
"bopmod.dbdgrp.bas.ownextkey" :Utils.defaultFunction,
"bopmod.dbagrp.bas.buscode" :Utils.defaultFunction,
"liaall.misamt" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inftxt" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inflev" :Utils.defaultFunction,
......
......@@ -278,8 +278,8 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCan(){
let rtnmsg = await this.executeRule("can")
async onBasppGetreftmp(){
let rtnmsg = await this.executeRule("baspp.getreftmp")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
......@@ -290,8 +290,8 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onBasppGetreftmp(){
let rtnmsg = await this.executeRule("baspp.getreftmp")
async onCan(){
let rtnmsg = await this.executeRule("can")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
......@@ -362,5 +362,17 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onIncctySelbut1(){
let rtnmsg = await this.executeRule("inccty.selbut1")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
......@@ -426,7 +426,7 @@ export default {
"bopmod.dbdgrp.bas.rptno":[
{type: "string", required: false, message: "必输项"},
{max: 22,message:"长度不能超过22"}
......@@ -503,5 +503,198 @@ export default {
"bopmod.dbdgrp.bas.inchargeamt":[
{type: "number", required: false, message: "必输项"} ],
"bopmod.dbagrp.bas.rptno":[
{type: "string", required: false, message: "必输项"},
{max: 22,message:"长度不能超过22"}
],
"bopmod.dbagrp.bas.tmpref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bopmod.dbagrp.bas.actiondesc":[
{type: "string", required: true, message: "必输项"},
{max: 32,message:"长度不能超过32"}
],
"bopmod.dbagrp.bas.buscode":[
{type: "string", required: false, message: "必输项"},
{max: 22,message:"长度不能超过22"}
],
"bopmod.dbagrp.bas.custcod":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"长度不能超过18"}
],
"bopmod.dbagrp.bas.custnm":[
{type: "string", required: true, message: "必输项"},
{max: 63,message:"长度不能超过63"}
],
"bopmod.dbagrp.bas.oppuser":[
{type: "string", required: true, message: "必输项"},
{max: 63,message:"长度不能超过63"}
],
"bopmod.dbagrp.bas.idcode":[
{type: "string", required: false, message: "必输项"},
{max: 32,message:"长度不能超过32"}
],
"bopmod.dbagrp.bas.exrate":[
{type: "string", required: false, message: "必输项"},
{max: 13,message:"长度不能超过13"}
],
"bopmod.dbagrp.bas.lcyamt":[
{type: "number", required: false, message: "必输项"} ],
"bopmod.dbagrp.bas.lcyacc":[
{type: "string", required: false, message: "必输项"},
{max: 32,message:"长度不能超过32"}
],
"bopmod.dbagrp.bas.fcyamt":[
{type: "number", required: false, message: "必输项"} ],
"bopmod.dbagrp.bas.fcyacc":[
{type: "string", required: false, message: "必输项"},
{max: 32,message:"长度不能超过32"}
],
"bopmod.dbagrp.bas.othamt":[
{type: "number", required: false, message: "必输项"} ],
"bopmod.dbagrp.bas.othacc":[
{type: "string", required: false, message: "必输项"},
{max: 32,message:"长度不能超过32"}
],
"bopmod.dbagrp.bas.txamt":[
{type: "number", required: false, message: "必输项"} ],
"bopmod.dbagrp.bas.inchargeamt":[
{type: "number", required: false, message: "必输项"} ],
"bopmod.dbagrp.bas.outchargeamt":[
{type: "number", required: false, message: "必输项"} ],
"cnybop.cnyinc.spk":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"cnybop.cnyinc.sbanktrano":[
{type: "string", required: false, message: "必输项"},
{max: 22,message:"长度不能超过22"}
],
"cnybop.sbankname":[
{type: "string", required: false, message: "必输项"},
{max: 80,message:"长度不能超过80"}
],
"cnybop.cnyinc.sbankorgcode":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"cnybop.cnyinc.spayeeacct":[
{type: "string", required: false, message: "必输项"},
{max: 32,message:"长度不能超过32"}
],
"cnybop.cnyinc.spayeeorgcode":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"长度不能超过18"}
],
"cnybop.spayeename":[
{type: "string", required: false, message: "必输项"},
{max: 80,message:"长度不能超过80"}
],
"cnybop.cnyinc.spayercountrycode":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"cnybop.spayername":[
{type: "string", required: false, message: "必输项"},
{max: 80,message:"长度不能超过80"}
],
"cnybop.cnyinc.sswiftbic":[
{type: "string", required: false, message: "必输项"},
{max: 11,message:"长度不能超过11"}
],
"cnybop.cnyinc.smidtransbank":[
{type: "string", required: false, message: "必输项"},
{max: 11,message:"长度不能超过11"}
],
"cnybop.cnyinc.spayeracct":[
{type: "string", required: false, message: "必输项"},
{max: 32,message:"长度不能超过32"}
],
"cnybop.incscale":[
{type: "string", required: false, message: "必输项"},
{max: 4,message:"长度不能超过4"}
],
"cnybop.cnyinc.dpayeedate":[
{type: "date", required: false, message: "输入正确的日期"}
],
"cnybop.cnyinc.fprepayeeamt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cnybop.cnyinc.iaccountperiod":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"cnybop.cnyinc.ftotalamt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cnybop.cnyinc.sorilevyno":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"cnybop.cnyinc.fpayeeamt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cnybop.cnyinc.fonshoreamt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cnybop.cnyinc.fcustomsamt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cnybop.cnyinc.foffshoreamt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cnybop.cnyinc.frecordamt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cnybop.cnyinc.fnogoodsamt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cnybop.saddword":[
{type: "string", required: false, message: "必输项"},
{max: 80,message:"长度不能超过80"}
],
}
\ No newline at end of file
......@@ -257,7 +257,48 @@ export default class Botset{
inchargeccy:"", // 国内银行扣费 .bopmod.dbdgrp.bas.inchargeccy
inchargeamt:"", // 国内银行扣费 .bopmod.dbdgrp.bas.inchargeamt
txccy:"", // 收入款币种及金额 .bopmod.dbdgrp.bas.txccy
txamt:"", // 收入款币种及金额 .bopmod.dbdgrp.bas.txamt
txamt:"",
},
}, // 收入款币种及金额 .bopmod.dbdgrp.bas.txamt
dbap:{
baspp:{
cusnam:"", // .bopmod.dbap.baspp.cusnam
cornam:"", // .bopmod.dbap.baspp.cornam
corpnam:"", // .bopmod.dbap.baspp.corpnam
roptnam:"", // RoptNam .bopmod.dbap.baspp.roptnam
exratelab:"", // �'�汇/结汇汇率 .bopmod.dbap.baspp.exratelab
lcyamtlab:"", // �'�汇/结汇金额 .bopmod.dbap.baspp.lcyamtlab
acp:"", // 确认 .bopmod.dbap.baspp.acp
tmprefnew:"", // TMPREFLABEL .bopmod.dbap.baspp.tmprefnew
},
},
dbagrp:{
bas:{
tmpref:"", // �'时申报流�'号 .bopmod.dbagrp.bas.tmpref
ownextkey:"", // 地区机构号 .bopmod.dbagrp.bas.ownextkey
actiontype:"", // 操作类型 .bopmod.dbagrp.bas.actiontype
rptno:"", // 申报号码 .bopmod.dbagrp.bas.rptno
idcode:"", // 身份证件号码 .bopmod.dbagrp.bas.idcode
lcyacc:"", // 人民币帐号/银行卡号 .bopmod.dbagrp.bas.lcyacc
fcyamt:"", // 现汇金额 .bopmod.dbagrp.bas.fcyamt
fcyacc:"", // 外汇帐号/银行卡号 .bopmod.dbagrp.bas.fcyacc
othamt:"", // 其它金额 .bopmod.dbagrp.bas.othamt
othacc:"", // 其它帐号/银行卡号 .bopmod.dbagrp.bas.othacc
methods:"", // 结算方式 .bopmod.dbagrp.bas.methods
buscode:"", // 银行业务编号 .bopmod.dbagrp.bas.buscode
custype:"", // 类型 .bopmod.dbagrp.bas.custype
actiondesc:"", // 操作类型 .bopmod.dbagrp.bas.actiondesc
exrate:"", // 结汇汇率 .bopmod.dbagrp.bas.exrate
lcyamt:"", // 结汇金额 .bopmod.dbagrp.bas.lcyamt
custnm:"", // 收款人名称 .bopmod.dbagrp.bas.custnm
oppuser:"", // 付款人名称 .bopmod.dbagrp.bas.oppuser
custcod:"", // 组织机构 .bopmod.dbagrp.bas.custcod
inchargeccy:"", // 国内银行扣费 .bopmod.dbagrp.bas.inchargeccy
inchargeamt:"", // 国内银行扣费 .bopmod.dbagrp.bas.inchargeamt
outchargeamt:"", // 国外银行扣费 .bopmod.dbagrp.bas.outchargeamt
outchargeccy:"", // 国外银行扣费 .bopmod.dbagrp.bas.outchargeccy
txccy:"", // 收入款币种及金额 .bopmod.dbagrp.bas.txccy
txamt:"", // 收入款币种及金额 .bopmod.dbagrp.bas.txamt
},
},
},
......@@ -267,6 +308,37 @@ export default class Botset{
outflg:"", // 是否报送跨境人民币2111表 .cnybop.outflg
libflg:"", // 是否报送跨境人民币2106表 .cnybop.libflg
vouflg:"", // 是否报送跨境人民币2122表 .cnybop.vouflg
cnyinc:{
spk:"", // 业务主键 .cnybop.cnyinc.spk
sbankorgcode:"", // 银行机构代码 .cnybop.cnyinc.sbankorgcode
spayeeorgcode:"", // 收款人机构代码 .cnybop.cnyinc.spayeeorgcode
sswiftbic:"", // 付款行SWIFT BIC .cnybop.cnyinc.sswiftbic
spayeracct:"", // 清算(结算)账户账号 .cnybop.cnyinc.spayeracct
smidtransbank:"", // 中�'转汇行 .cnybop.cnyinc.smidtransbank
dpayeedate:"", // 收款日期 .cnybop.cnyinc.dpayeedate
sbalancemode:"", // 结算方式 .cnybop.cnyinc.sbalancemode
sorilevyno:"", // 原申报号码 .cnybop.cnyinc.sorilevyno
sbanktrano:"", // 银行业务编号 .cnybop.cnyinc.sbanktrano
fpayeeamt:"", // 货物贸易收款金额 .cnybop.cnyinc.fpayeeamt
fcustomsamt:"", // 已报关收款金额 .cnybop.cnyinc.fcustomsamt
frecordamt:"", // 已备案收款金额 .cnybop.cnyinc.frecordamt
fprepayeeamt:"", // 预收款金额 .cnybop.cnyinc.fprepayeeamt
iaccountperiod:"", // 结�'�期 .cnybop.cnyinc.iaccountperiod
fonshoreamt:"", // 无货物报关进出境物流货物金额 .cnybop.cnyinc.fonshoreamt
foffshoreamt:"", // 无货物报关离岸转手买卖金额 .cnybop.cnyinc.foffshoreamt
fnogoodsamt:"", // 无货物报关其他金额 .cnybop.cnyinc.fnogoodsamt
cpayeeattr:"", // 收款人属性 .cnybop.cnyinc.cpayeeattr
cpayeraccttyp:"", // 清算(结算)帐户类型 .cnybop.cnyinc.cpayeraccttyp
spayercountrycode:"", // 付款人常驻国家(地区)代码 .cnybop.cnyinc.spayercountrycode
spayeecny:"", // 收款币种 .cnybop.cnyinc.spayeecny
spayeeacct:"", // 收款人账号 .cnybop.cnyinc.spayeeacct
ftotalamt:"", // 原币金额 .cnybop.cnyinc.ftotalamt
},
spayeename:"", // 收款人名称 .cnybop.spayeename
spayername:"", // 付款人名称 .cnybop.spayername
saddword:"", // 交易附言 .cnybop.saddword
sbankname:"", // 银行机构名称 .cnybop.sbankname
incscale:"", // INCSCALE .cnybop.incscale
},
bptbck:{
bptbckg:[], // .bptbck.bptbckg
......
......@@ -49,7 +49,7 @@ export default {
"dedgrp.cbs.nom1.amt":[
{type: "string", required: true, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{max: 18,message:"整数位不能超过15位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"dedgrp.ben.pts.adrblk":[
......@@ -83,7 +83,7 @@ export default {
],
"dedgrp.cbs.max.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{max: 18,message:"整数位不能超过15位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"dedgrp.ben.pts.extact":[
......@@ -150,7 +150,7 @@ export default {
{type:"number", max:9999, message: "大小不超过9999" }
],
"dedgrp.blk.defdet":[
{type: "string", required: false, message: "必输项"},
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"dedgrp.apl.adrelc":[
......
......@@ -129,6 +129,9 @@ export default class Ditdck{
mattxtlab:"", // Label for MATTXT .bdtp.matp.mattxtlab
},
docgrdm:{
docgrdlst:"",
prsdoc:"",
docdsclab:"",
docgrd:[], // .bdtp.docgrdm.docgrd
},
cre752flg:"", // Create 752 .bdtp.cre752flg
......
......@@ -218,7 +218,7 @@ function defaultLiaallButmissig() {
}
function defaultDitpRevclauseButtxmsel() {
}
function defaultDidgrpCbsNom1Cur(rule, value, callback)
function defaultDidgrpCbsNom1Cur(rule, value, callback)
{
const that = this;
// 摘要
......@@ -251,10 +251,11 @@ function defaultDidgrpRecMytype() {
function defaultSetmodXreflg() {
}
function defaultDidgrpRecAvbwth(rule, value, callback) {
const that = this;
that.executeDefault("didgrp.rec.avbwth").then(res => {
//TODO
callback()
this.executeDefault("didgrp.rec.avbwth").then(res => {
if ((res.respCode == "AAAAAA")) {
console.log("-------------------------------")
Utils.copyValueFromVO(this.model, res.data);
}
})
}
function defaultDidgrpRmbPtsRef() {
......
......@@ -217,6 +217,9 @@ export default {
"gitp.lettername" :Utils.defaultFunction,
"gidgrp.blk.apprulc" :Utils.defaultFunction,
"gidgrp.rec.autrnwflg" :Utils.defaultFunction,
"cfagit.ownextkey" :Utils.defaultFunction,
"cfagit.ownextkey" :Utils.defaultFunction,//新增字段,地区机构号
"cnybop.cnyvou.sbankorgcode" :Utils.defaultFunction,//新增字段,报送银行机构代码
"cnybop.cnyvou.spk" :Utils.defaultFunction,//新增字段,业务主键
"cfagit.recgrp.bas.guarancurr" :Utils.defaultFunction,//新增字段,保函金额
}
//你可以添加自动default处理
......@@ -383,8 +383,8 @@ export default {
{max: 35,message:"长度不能超过35"}
],
"lidgrp.avb.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
{type: "string", required: true},
],
"lidgrp.avb.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
......
......@@ -376,15 +376,15 @@ export default {
"brdgrp.srm.djuusr":[
{type: "string", required: true, message: "必输项"},
{max: 80,message:"长度不能超过80"}
{type: "string", required: true,},
],
"brdgrp.srm.djudat":[
{type: "string", required: true, message: "输入正确的日期"}
{type: "string", required: true, }
],
"brdgrp.srm.djuref":[
{type: "string", required: true, message: "必输项"},
{max: 40,message:"长度不能超过40"}
{type: "string", required: true, },
],
"invtyp" :[
......
......@@ -67,6 +67,7 @@ export default class Litdck{
},
},
docgrdm:{
docgrd:[],
docdsclab:"", // Label of document description .brtp.docgrdm.docdsclab
},
cre752flg:"", // Create 752 .brtp.cre752flg
......@@ -121,6 +122,7 @@ export default class Litdck{
},
},
blk:{
prsdoc:"",
matper:"", // Maturity Period .brdgrp.blk.matper
comcon:"", // Comments and Conclusions .brdgrp.blk.comcon
setinsbr:"", // Settlement Instructions BR .brdgrp.blk.setinsbr
......
......@@ -27,7 +27,7 @@ export default {
"lidgrp.rec.rmbflg" :Utils.defaultFunction,
"lidgrp.ben.pts.extkey" :Utils.defaultFunction,
"lidgrp.adv.pts.extkey" :Utils.defaultFunction,
"lidgrp.avb.pts.extkey" :Utils.defaultFunction,
// "lidgrp.avb.pts.extkey" :Utils.defaultFunction,
"hmdmod2.bennam" :Utils.defaultFunction,
"liaall.limmod.comamt" :Utils.defaultFunction,
"liaall.limmod.ccvamt" :Utils.defaultFunction,
......@@ -39,7 +39,7 @@ export default {
"lidgrp.avb.adrelc" :Utils.defaultFunction,
"lidgrp.avb.namelc" :Utils.defaultFunction,
"lidgrp.avb.dbfadrblkcn" :Utils.defaultFunction,
"lidgrp.avb.pts.adrblk" :Utils.defaultFunction,
//"lidgrp.avb.pts.adrblk" :Utils.defaultFunction,
"cnybop.libflg" :Utils.defaultFunction,
"trnmod.trndia.dspstm" :Utils.defaultFunction,
"lidgrp.a2b.pts.extkey" :Utils.defaultFunction,
......
......@@ -186,7 +186,8 @@ export default {
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
this.model.lidgrp.blk.adlcnd=rtnmsg.data.lidgrp_blk_adlcnd
this.updateModel("rtnmsg.data")
}
else
{
......
......@@ -191,29 +191,36 @@ export default {
{max: 16,message:"长度不能超过16"}
],
"lidgrp.cbs.max2.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
// "lidgrp.cbs.max2.amt":[
// {type: "number", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过14位"},
// // {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
// ],
"lidgrp.cbs.opn2.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
// "lidgrp.cbs.opn2.amt":[
// {type: "number", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过14位"},
// // {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
// ],
"lidgrp.blk.addamtcov":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"lidgrp.blk.preper":[
"lidgrp.rec.avbby":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"lidgrp.rec.prepers18":[
"lidgrp.rec.stacty":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"lidgrp.blk.preper":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
{max: 35,message:"长度不能超过35"}
],
"lidgrp.rec.prepers18":[
{ required: false, },
],
"litp.avbp.ptsget.sdamod.dadsnd":[
......@@ -238,7 +245,7 @@ export default {
{max: 35,message:"长度不能超过35"}
],
"lidgrp.avb.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 180,message:"长度不能超过180"}
],
"lidgrp.avb.dbfadrblkcn":[
......@@ -255,19 +262,19 @@ export default {
{max: 35,message:"长度不能超过35"}
],
"lidgrp.blk.feetxt":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 80,message:"80"}
],
"lidgrp.blk.defdet":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"lidgrp.blk.dftat":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
......@@ -289,7 +296,7 @@ export default {
{max: 35,message:"长度不能超过35"}
],
"lidgrp.drw.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 135,message:"长度不能超过135"}
],
"lidgrp.drw.dbfadrblkcn":[
......@@ -297,20 +304,24 @@ export default {
{max: 35,message:"长度不能超过35"}
],
"lidgrp.blk.mixdet":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"lidgrp.drw.adrelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"lidgrp.rec.avbwth":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"lidgrp.rec.shpfro":[
{type: "string", required: false, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"lidgrp.rec.tenmaxday":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
{ required: true, },
],
"lidgrp.rec.porloa":[
{type: "string", required: false, message: "必输项"},
......@@ -325,7 +336,7 @@ export default {
{max: 65,message:"长度不能超过65"}
],
"lidgrp.blk.shpper":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"lidgrp.ini.pts.ref":[
......@@ -670,7 +681,7 @@ export default {
{max: 20,message:"长度不能超过20"}
],
"cnybop.cnylib.sbanktrano":[
{type: "string", required: false, message: "必输项"},
{type: "string", required: true, message: "必输项"},
{max: 22,message:"长度不能超过22"}
],
"cnybop.cnylib.sbankorgcode":[
......@@ -684,19 +695,19 @@ export default {
"cnybop.cnylib.sforbankswiftbic":[
{type: "string", required: false, message: "必输项"},
{type: "string", required: true, message: "必输项"},
{max: 11,message:"长度不能超过11"}
],
"cnybop.sorgname":[
{type: "string", required: false, message: "必输项"},
{type: "string", required: true, message: "必输项"},
{max: 80,message:"长度不能超过80"}
],
"cnybop.cnylib.sorgcode":[
{type: "string", required: false, message: "必输项"},
{type: "string", required: true, message: "必输项"},
{max: 18,message:"长度不能超过18"}
],
"cnybop.sforeignorgname":[
{type: "string", required: false, message: "必输项"},
{type: "string", required: true, message: "必输项"},
{max: 80,message:"长度不能超过80"}
],
"cnybop.cnylib.sforeigncountrycode":[
......@@ -705,17 +716,23 @@ export default {
],
"cnybop.cnylib.doccurdate":[
{type: "string", required: false, message: "输入正确的日期"}
{type: "string", required: true, message: "输入正确的日期"}
],
"cnybop.cnylib.denddate":[
{type: "string", required: false, message: "输入正确的日期"}
{type: "string", required: true, message: "输入正确的日期"}
],
"cnybop.cnylib.dcreditenddate":[
{type: "string", required: false, message: "输入正确的日期"}
{type: "string", required: true, message: "输入正确的日期"}
],
"cnybop.cnylib.currencycode":[
{type: "string", required: true,}
],
"cnybop.cnylib.stermtype":[
{type: "string", required: true,}
],
"cnybop.cnylib.famt":[
{type: "number", required: false, message: "必输项"},
{type: "number", required: true, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......
export default class Blk {
constructor() {
this.data = {
stamet:"", // 声明 .didgrp.blk.stsament
revcls: "", // Revolving Clause .didgrp.blk.revcls
revnotes: "", // Notes to Applicant .didgrp.blk.revnotes
lcrgod: "", // Description of Goods .didgrp.blk.lcrgod
......
......@@ -3,6 +3,7 @@ export default class Liaall {
constructor() {
this.data = {
tenstm: "",
tensetstm:"",
misamt: "", // Amount not yet assigned .liaall.misamt
concur: "", // External Booking Amount .liaall.concur
outpct: "", // Sight Amount Percentage .liaall.outpct
......
......@@ -5,14 +5,14 @@ export default class Mtabut {
oitinf: {
labinftxt: "", // Label for INFTXT .mtabut.coninf.oitinf.labinftxt
oit: {
inftxt: {}, // Infotext .mtabut.coninf.oitinf.oit.inftxt
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
inftxt: "", // Infotext .mtabut.coninf.oitset.oit.inftxt
inflev: "", // Infotext Level .mtabut.coninf.oitset.oit.inflev
},
},
......
......@@ -27,6 +27,17 @@ export default class Trnmod {
newnomtoname: "",
prepers18: "", //New Presentation Period
strinf: "", // Narrative of Maturity .trnmod.swiadd.strinf
newmatpercnt:"", // New Tenor Data .trnmod.swiadd.newmatpercnt
newmatpertyp:"", // Days/Month or Year for Maturity Period .trnmod.swiadd.newmatpertyp
newmatperbeg:"", // Start of Maturity Period .trnmod.swiadd.newmatperbeg
newmatdat:"", // New Maturity Date .trnmod.swiadd.newmatdat
ametxt:"", // Further Amendments .trnmod.swiadd.ametxt
shptoelc: "", // 货物目的地/交货地(港) .trnmod.swiadd.shptoelc
shpfroelc: "", // Shipment from .trnmod.swiadd.shpfroelc
//nartxtflg: "", // Narrative modified .trnmod.swiadd.nartxtflg
lcrgod: "", // Description of Goods amendment .trnmod.swiadd.lcrgod
lcrdoc: "", // Documents Required amendment .trnmod.swiadd.lcrdoc
//adlcnd: "", // Additional Conditions amendment .trnmod.swiadd.adlcnd
},
trndoc: {
nar754: "", // Narrative :77A: .trnmod.trndoc.nar754
......
......@@ -58,54 +58,16 @@
<c-checkbox v-model="docdisflg">不符点修改</c-checkbox>
</c-col>
<!-- <c-col :span="24" style="height: 24px; margin-top: 20px">
<el-form-item :label="model.bftp.docgrdm.docdsclab" class="messageLabel">
</el-form-item>
</c-col>
<c-col :span="24" style="height: 0px; margin-top: 5px">
<el-divider></el-divider>
</c-col>
<c-col :span="24">
<c-table :data="model.bftp.docgrdm.docgrd" style="width: 100%">
<el-table-column prop="cmail1" label="1st"> </el-table-column>
<el-table-column prop="cmail2" label="2st"> </el-table-column>
<el-table-column label="Document" prop="docnam">
<template slot-scope="scope">
<c-select v-model="scope.row.ptydbt">
<el-option
v-for="item in codes.ptydbt"
:key="item.value"
:label="item.value"
:value="item.value"
>
<span style="float: left">{{ item.label }}</span>
</el-option>
</c-select>
</template>
</el-table-column>
<el-table-column label="" prop="det" width="80px" fixed="right">
<template slot-scope="scope" slot="header">
<el-button
circle
style="padding: 4px"
class="el-icon-plus"
size="mini"
@click="addRow(scope)"
>
</el-button>
<el-button
style="padding: 4px"
circle
class="el-icon-minus"
size="mini"
@click="removeRow(scope)"
>
</el-button>
</template>
</el-table-column>
</c-table>
</c-col> -->
<c-col :span="24" style="height: 24px; margin-top: -10px">
<c-docpre
:model="model"
:argadr="{
path: 'bfdgrp.blk.prsdoc',
grp: 'bftp',
code: 'prsdoc',
}"
>
</c-docpre>
<!-- <c-col :span="24" style="height: 24px; margin-top: -10px">
<el-form-item :label="model.bftp.docgrdm.docdsclab" class="messageLabel">
<c-button style="float: right" @click="addTableValue" type="primary"
>新增单据</c-button
......@@ -146,7 +108,6 @@
</el-table-column>
<el-table-column label="Document" prop="docnam" width="auto">
<template slot-scope="scope">
<!-- {{scope.row.docnam}} -->
<c-select
style="width: 100%"
placeholder="请选择"
......@@ -170,7 +131,7 @@
</template>
</el-table-column>
</c-table>
</c-col>
</c-col> -->
</div>
</template>
<script>
......@@ -179,43 +140,16 @@ import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bftdcr/Event";
import Utils from "~/utils";
import Docpre from "~/views/Public/Docpre";
export default {
name:'Docpre',
components:{"c-docpre": Docpre,},
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
TableValue: [
{
id: 0,
cmail1: "",
cmail2: "",
docnam: "",
serialNum: "",
tableName: "",
tcddoc: "",
},
],
newValue: {
id: 0,
cmail1: "",
cmail2: "",
docnam: "",
serialNum: "",
tableName: "",
tcddoc: "",
},
codeTable: [
{ label: "增值税发票", value: "1" },
{ label: "发票", value: "2" },
{ label: "装箱单", value: "3" },
{ label: "空运单", value: "4" },
{ label: "海运提单", value: "5" },
{ label: "铁路运单", value: "6" },
{ label: "货物收据", value: "7" },
{ label: "邮政收据", value: "8" },
],
};
},
computed:{
......@@ -231,24 +165,9 @@ export default {
},
methods: { ...Event,
addTableValue(index) {
var newTableValue = Object.assign({}, this.newValue);
const serial=Utils.generateUUID();
newTableValue.serialNum=serial;
// this.model.bftp.docgrdm.docgrd.push(newTableValue);
this.model.bftp.docgrdm.docgrd.splice(index-1,0,newTableValue);
},
deleteTable(index) {
this.model.bftp.docgrdm.docgrd.splice(index, 1);
},
},
created: function () {},
};
</script>
<style>
.messageLabel >>> .el-form-item__label {
text-align: left;
font-weight: bold;
font-size: 12px;
}
</style>
......@@ -664,7 +664,6 @@ export default {
},
set(val) {
this.model.advdisflg = val ? "X" : "";
this.model.trnmod.trndoc.addstr750 = "";
},
},
},
......
......@@ -147,76 +147,19 @@
>
</c-ptap>
</c-col>
<!-- <c-col :span="24">
<c-ptap
:model="model"
:argadr="{
title: '付款人',
grp: 'bfdgrp',
rol: 'oth',
}"
:disabled="true"
>
</c-ptap>
</c-col> -->
</c-col>
<!-- <c-col :span="24">
<span
v-text="model.bftp.docgrdm.docdsclab"
data-path=".bftp.docgrdm.docdsclab"
>
</span>
</c-col> -->
<c-docpre
:model="model"
:argadr="{
path: 'bfdgrp.blk.prsdoc',
grp: 'bftp',
code: 'prsdoc',
}"
>
</c-docpre>
<!-- <c-col :span="24" style="height: 24px; margin-top: 20px">
<el-form-item :label="model.bftp.docgrdm.docdsclab" class="messageLabel">
</el-form-item>
</c-col>
<c-col :span="24" style="height: 0px; margin-top: 5px">
<el-divider></el-divider>
</c-col>
<c-col :span="24">
<c-table :data="model.bftp.docgrdm.docgrd" style="width: 100%">
<el-table-column prop="cmail1" label="1st"> </el-table-column>
<el-table-column prop="cmail2" label="2st"> </el-table-column>
<el-table-column label="Document" prop="docnam">
<template slot-scope="scope">
<c-select v-model="scope.row.ptydbt">
<el-option
v-for="item in codes.ptydbt"
:key="item.value"
:label="item.value"
:value="item.value"
>
<span style="float: left">{{ item.label }}</span>
</el-option>
</c-select>
</template>
</el-table-column>
<el-table-column label="" prop="det" width="80px" fixed="right">
<template slot-scope="scope" slot="header">
<el-button
circle
style="padding: 4px"
class="el-icon-plus"
size="mini"
@click="addRow(scope)"
>
</el-button>
<el-button
style="padding: 4px"
circle
class="el-icon-minus"
size="mini"
@click="removeRow(scope)"
>
</el-button>
</template>
</el-table-column>
</c-table>
</c-col> -->
<c-col :span="24" style="height: 24px; margin-top: -10px">
<!-- <c-col :span="24" style="height: 24px; margin-top: -10px">
<el-form-item :label="model.bftp.docgrdm.docdsclab" class="messageLabel">
<c-button style="float: right" @click="addTableValue" type="primary"
>新增单据</c-button
......@@ -257,7 +200,6 @@
</el-table-column>
<el-table-column label="Document" prop="docnam" width="auto">
<template slot-scope="scope">
<!-- {{scope.row.docnam}} -->
<c-select
style="width: 100%"
placeholder="请选择"
......@@ -281,7 +223,7 @@
</template>
</el-table-column>
</c-table>
</c-col>
</c-col> -->
</div>
</template>
<script>
......@@ -291,46 +233,19 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Detdrv/Event";
import Ptap from "~/views/Public/Ptap";
import Utils from "~/utils";
import Docpre from "~/views/Public/Docpre";
export default {
name:'Docpre',
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
components: {
"c-ptap": Ptap,
"c-docpre": Docpre
},
data() {
return {
TableValue: [
{
id: 0,
cmail1: "",
cmail2: "",
docnam: "",
serialNum: "",
tableName: "",
tcddoc: "",
},
],
newValue: {
id: 0,
cmail1: "",
cmail2: "",
docnam: "",
serialNum: "",
tableName: "",
tcddoc: "",
},
codeTable: [
{ label: "增值税发票", value: "1" },
{ label: "发票", value: "2" },
{ label: "装箱单", value: "3" },
{ label: "空运单", value: "4" },
{ label: "海运提单", value: "5" },
{ label: "铁路运单", value: "6" },
{ label: "货物收据", value: "7" },
{ label: "邮政收据", value: "8" },
],
};
},
computed: {
......@@ -345,24 +260,9 @@ export default {
},
methods: {
...Event,
addTableValue(index) {
var newTableValue = Object.assign({}, this.newValue);
const serial=Utils.generateUUID();
newTableValue.serialNum=serial;
// this.model.bftp.docgrdm.docgrd.push(newTableValue);
this.model.bftp.docgrdm.docgrd.splice(index-1,0,newTableValue);
},
deleteTable(index) {
this.model.bftp.docgrdm.docgrd.splice(index, 1);
},
},
created: function () {},
};
</script>
<style>
.messageLabel >>> .el-form-item__label {
text-align: left;
font-weight: bold;
font-size: 12px;
}
</style>
......@@ -419,7 +419,7 @@
<c-col :span="24">
<el-form-item label="" prop="bfdgrp.rec.frepayflg">
<c-checkbox v-model="frepayflg">无偿放单</c-checkbox>
<c-checkbox v-model="frepayflg" >无偿放单</c-checkbox>
</el-form-item>
</c-col>
......@@ -448,6 +448,7 @@
v-model="model.setmod.redamt"
placeholder="请输入扣减金额"
:disabled="frepayflg"
@change="selectOrCheckboxRule('setmod.redamt')"
></c-input>
</el-form-item>
</c-col>
......@@ -484,8 +485,6 @@
</c-table>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="Drag Drop Sender" prop="bftp.dedget.sdamod.dadsnd">
<c-input
......@@ -844,7 +843,7 @@ import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bftset/Event";
import Ptsmsg from "~/views/Public/Ptsmsg";
import Utils from "~/utils/index"
import Utils from "~/utils/index";
// import PtapDome from "~/views/Public/PtapDome";
// import Ptap from "~/views/Public/Ptap"; "c-ptapdome": PtapDome, "c-ptap": Ptap
......@@ -863,7 +862,17 @@ export default {
'4 4 "Cur" 250',
'5 5 "Amt" 250 2 8 1 4',
// '6 6 "Mat.Dat." 250 4 7 1',
{index:6,position:6,width:250,render:(item, scope) => {return scope.row[item.prop] === 'null' ? '' : scope.row[item.prop]},label:'Mat.Dat.'},
{
index: 6,
position: 6,
width: 250,
render: (item, scope) => {
return scope.row[item.prop] === "null"
? ""
: scope.row[item.prop];
},
label: "Mat.Dat.",
},
],
data: [],
},
......@@ -880,40 +889,79 @@ export default {
},
frepayflg: {
get() {
return this.model.bfdgrp.rec.frepayflg === "O";
return this.model.bfdgrp.rec.frepayflg === "X";
},
set(val) {
this.model.bfdgrp.rec.frepayflg = val ? "C" : "O";
this.model.bfdgrp.rec.frepayflg = val ? "X" : "";
this.model.setmod.redamt = "";
},
},
flag() {
return this.model.mtabut.coninf.usr.extkey == "";
},
},
mounted (){
this.$nextTick(() => {
})
mounted() {
this.$nextTick(() => {});
},
methods: {
...Event,
async multipleSelect(selection) {
console.log(selection);
if (selection) {
let selIds = selection.map(x=>x+1);
let params = {selDst:"liaall.tenstm",selIds}
const rtnmsg = await this.executeRule("liaall.tenstm",params);
if (selection.length > 1) {
this.$notify({
title: "失败",
message: "You cannot select more than one tenor",
type: "error",
});
} else {
let selIds;
if (selection.length === 0) {
selIds = []
this.model.liaall.tensetstm.rows = []
// this.model.liaall.tenstm.rows = []
} else {
selIds = [selection[0] + 1]
}
//
console.log(this.model.liaall.tensetstm);
let params = { selDst: "liaall.tenstm", selIds };
const rtnmsg = await this.executeRule("liaall.tenstm", params);
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data)
this.updateModel(rtnmsg.data);
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
// console.log(selection);
// if (selection) {
// let selIds = selection.map(x=>x+1);
// let params = {selDst:"liaall.tenstm",selIds}
// const rtnmsg = await this.executeRule("liaall.tenstm",params);
// if (rtnmsg.respCode == SUCCESS) {
// this.updateModel(rtnmsg.data)
// }
// else
// {
// this.$notify.error({title: '错误',message: '服务请求失败!'});
// }
// }else{
// let selIds = selection.map(x=>x+1);
// let params = {selDst:"liaall.tenstm",selIds}
// const rtnmsg = await this.executeRule("liaall.tenstm",params);
// if (rtnmsg.respCode == SUCCESS) {
// this.updateModel(rtnmsg.data)
// }
// else
// {
// this.$notify.error({title: '错误',message: '服务请求失败!'});
// }
// // this.model.setmod.docamt = "";
// // this.model.setmod.setamt = "";
// // this.model.aamset.utlamt = "";
// }
},
},
created: function () {},
};
</script>
......
......@@ -310,7 +310,16 @@
</c-col>
<!-- next part -->
<c-col :span="24" style="height: 24px; margin-top: -10px">
<c-docpre
:model="model"
:argadr="{
path: 'bfdgrp.blk.prsdoc',
grp: 'bftp',
code: 'prsdoc',
}"
>
</c-docpre>
<!-- <c-col :span="24" style="height: 24px; margin-top: -10px">
<el-form-item :label="model.bftp.docgrdm.docdsclab" class="messageLabel">
<c-button style="float: right" @click="addTableValue" type="primary"
>新增单据</c-button
......@@ -342,7 +351,6 @@
</el-table-column>
<el-table-column label="Document" prop="docnam" width="auto">
<template slot-scope="scope">
<!-- {{scope.row.docnam}} -->
<c-select
style="width: 100%"
placeholder="请选择"
......@@ -367,7 +375,7 @@
</el-table-column>
</c-table>
</el-form-item>
</c-col>
</c-col> -->
<c-col :span="24">
<c-col :span="12">
......@@ -410,7 +418,10 @@
v-model="model.bfdgrp.rec.matdat"
style="width: 100%"
placeholder="请选择到期日期"
:disabled="model.bfdgrp.blk.matper!=''||model.bfdgrp.rec.doctypcod === 'P'"
:disabled="
model.bfdgrp.blk.matper != '' ||
model.bfdgrp.rec.doctypcod === 'P'
"
></c-date-picker>
</el-form-item>
</c-col>
......@@ -509,7 +520,10 @@
maxlength="65"
show-word-limit
placeholder="请输入远期单据到期时间"
:disabled="(model.bfdgrp.rec.matdat &&model.bfdgrp.rec.matdat!='')||model.bfdgrp.rec.doctypcod === 'P'"
:disabled="
(model.bfdgrp.rec.matdat && model.bfdgrp.rec.matdat != '') ||
model.bfdgrp.rec.doctypcod === 'P'
"
></c-input>
</el-form-item>
</c-col>
......@@ -806,45 +820,21 @@ import Ptsmsg from "~/views/Public/Ptsmsg";
import PtapDome from "~/views/Public/PtapDome";
import Ptap from "~/views/Public/Ptap";
import Utils from "~/utils";
import Docpre from "~/views/Public/Docpre";
export default {
components: { "c-ptsmsg": Ptsmsg, "c-ptapdome": PtapDome, "c-ptap": Ptap },
name:'Docpre',
components: {
"c-ptsmsg": Ptsmsg,
"c-ptapdome": PtapDome,
"c-ptap": Ptap,
"c-docpre": Docpre,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
TableValue: [
{
id: 0,
cmail1: "",
cmail2: "",
docnam: "",
serialNum: "",
tableName: "",
tcddoc: "",
},
],
newValue: {
id: 0,
cmail1: "",
cmail2: "",
docnam: "",
serialNum: "",
tableName: "",
tcddoc: "",
},
codeTable: [
{ label: "增值税发票", value: "1" },
{ label: "发票", value: "2" },
{ label: "装箱单", value: "3" },
{ label: "空运单", value: "4" },
{ label: "海运提单", value: "5" },
{ label: "铁路运单", value: "6" },
{ label: "货物收据", value: "7" },
{ label: "邮政收据", value: "8" },
],
};
return {};
},
computed: {
flag() {
......@@ -853,41 +843,9 @@ export default {
},
methods: {
...Event,
addTableValue(index) {
var newTableValue = Object.assign({}, this.newValue);
const serial=Utils.generateUUID();
newTableValue.serialNum=serial;
// this.model.bftp.docgrdm.docgrd.push(newTableValue);
this.model.bftp.docgrdm.docgrd.splice(index-1,0,newTableValue);
},
deleteTable(index) {
this.model.bftp.docgrdm.docgrd.splice(index, 1);
// for (let i = 0; i < this.TableValue.length; i++) {
// if (this.TableValue[i].id == row.id) {
// this.TableValue.splice(i, 1);
// break;
// }
// }
},//表格输入传入数据库
async prsdoc() {
let rtnmsg = await this.executeDefault("bfdgrp.blk.prsdoc")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
},
created: function () {},
};
</script>
<style>
.messageLabel >>> .el-form-item__label {
text-align: left;
font-weight: bold;
font-size: 12px;
}
</style>
......@@ -259,13 +259,13 @@
<c-col :span="24">
<el-form-item label="New Maturity Date" prop="trnmod.swiadd.newmatdat">
<c-date-picker type="date" :disabled="model.bodgrp.rec.doctypcod === 'P'" v-model="model.trnmod.swiadd.newmatdat" style="width:100%" placeholder="请选择New Maturity Date"></c-date-picker>
<c-date-picker type="date" :disabled="model.bodgrp.rec.doctypcod === 'P'" v-model="model.trnmod.swiadd.newmatdat" style="width:100%" placeholder="请选择New Maturity Date"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Further Amendments" prop="trnmod.swiadd.ametxt">
<c-input type="textarea" v-model="model.trnmod.swiadd.ametxt" maxlength="35" show-word-limit placeholder="请输入Further Amendments" ></c-input>
<c-input-format type="textarea" v-model="model.trnmod.swiadd.ametxt" :maxRows="6" :maxCols="35" placeholder="请输入Further Amendments" ></c-input-format>
</el-form-item>
</c-col>
</c-col>
......@@ -292,23 +292,21 @@ export default {
watch:{
"model.bodgrp.rec.doctypcod":function(){
if(this.model.bodgrp.rec.doctypcod=='P'){
this.model.trnmod.swiadd.newmatpercnt="";
this.model.trnmod.swiadd.newmatpertyp="";
this.model.trnmod.swiadd.newmatperbeg="";
this.model.trnmod.swiadd.newmatdat="";
this.model.bodgrp.rec.matdat="";
}
},
"model.trnmod.swiadd.newmatdat":function(){
if(this.model.trnmod.swiadd.newmatdat!=""||this.model.trnmod.swiadd.newmatpercnt!=""){
this.model.bodgrp.rec.matdat=this.model.trnmod.swiadd.newmatdat;
}
else{
this.model.bodgrp.rec.matdat=this.model.oldbodgrp.rec.matdat;
}
}
},
methods:{...Event,
// change() {
// if(this.model.trnmod.swiadd.newmatdat!="" ){
// this.model.bodgrp.rec.matdat=this.model.trnmod.swiadd.newmatdat;
// }
// else{
// this.model.bodgrp.rec.matdat=this.model.oldbodgrp.rec.matdat;
// }
// },
},
methods:{...Event},
created:function(){
}
......
......@@ -321,9 +321,18 @@
</el-table-column>
</c-table>
</c-col> -->
<c-col :span="24">
<c-docpre
:model="model"
:argadr="{
path: 'bodgrp.blk.docpre',
grp: 'botp',
code: 'docpre',
}"
></c-docpre>
<!-- <c-col :span="24">
<c-edit-table :model="model" v-bind="docgrd"> </c-edit-table>
</c-col>
</c-col> -->
</c-col>
<!-- ====================右边======================= -->
<c-col :span="11" :offset="1">
......@@ -404,67 +413,71 @@ import CodeTable from "~/config/CodeTable";
import Event from "~/model/Botame/Event";
import Utils from "~/utils";
import Ptap from "~/views/Public/Ptap";
import Docpre from "~/views/Public/Docpre";
export default {
components: { "c-ptap": Ptap },
components: {
"c-ptap": Ptap,
"c-docpre": Docpre,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
docgrd: {
columns: [
{
title: "lst",
width: "80px",
dataIndex: "cmail1",
show: "input",
},
{
title: "2nd",
width: "80px",
dataIndex: "cmail2",
show: "input",
},
{
title: "Document",
width: "320px",
dataIndex: "docnam",
show: "select",
code: "codeTable",
},
],
urls: "botp.docgrdm.docgrd",
},
// docgrd: {
// columns: [
// {
// title: "lst",
// width: "80px",
// dataIndex: "cmail1",
// show: "input",
// },
// {
// title: "2nd",
// width: "80px",
// dataIndex: "cmail2",
// show: "input",
// },
// {
// title: "Document",
// width: "320px",
// dataIndex: "docnam",
// show: "select",
// code: "codeTable",
// },
// ],
// urls: "botp.docgrdm.docgrd",
// },
invtyp: [{ label: "type1", value: "1" }],
codeTable: [
{ label: "Airway Bills", value: "Airway Bills" },
{
label: "Beneficiary's Declaration",
value: "Beneficiary's Declaration",
},
{ label: "Bill of Lading Copies", value: "Bill of Lading Copies" },
{
label: "Bill of Lading Originals",
value: "Bill of Lading Originals",
},
{ label: "Certificate", value: "Certificate" },
{ label: "Certificate of Analysis", value: "Certificate of Analysis" },
{ label: "Certificate of Origin", value: "Certificate of Origin" },
{ label: "Certificate of Quality", value: "Certificate of Quality" },
{ label: "Certificate of Quantity", value: "Certificate of Quantity" },
{ label: "Commercial Invoice", value: "Commercial Invoice" },
{ label: "Courier Receipt", value: "Courier Receipt" },
{ label: "Draft", value: "Draft" },
{ label: "Export Licence", value: "Export Licence" },
{ label: "Fax Report", value: "Fax Report" },
{ label: "Inspection Cert", value: "Inspection Cert" },
{ label: "Insurance Policy", value: "Insurance Policy" },
{ label: "Packing List", value: "Packing List" },
{ label: "Shipment Advice", value: "Shipment Advice" },
{ label: "Weight List", value: "Weight List" },
],
// codeTable: [
// { label: "Airway Bills", value: "Airway Bills" },
// {
// label: "Beneficiary's Declaration",
// value: "Beneficiary's Declaration",
// },
// { label: "Bill of Lading Copies", value: "Bill of Lading Copies" },
// {
// label: "Bill of Lading Originals",
// value: "Bill of Lading Originals",
// },
// { label: "Certificate", value: "Certificate" },
// { label: "Certificate of Analysis", value: "Certificate of Analysis" },
// { label: "Certificate of Origin", value: "Certificate of Origin" },
// { label: "Certificate of Quality", value: "Certificate of Quality" },
// { label: "Certificate of Quantity", value: "Certificate of Quantity" },
// { label: "Commercial Invoice", value: "Commercial Invoice" },
// { label: "Courier Receipt", value: "Courier Receipt" },
// { label: "Draft", value: "Draft" },
// { label: "Export Licence", value: "Export Licence" },
// { label: "Fax Report", value: "Fax Report" },
// { label: "Inspection Cert", value: "Inspection Cert" },
// { label: "Insurance Policy", value: "Insurance Policy" },
// { label: "Packing List", value: "Packing List" },
// { label: "Shipment Advice", value: "Shipment Advice" },
// { label: "Weight List", value: "Weight List" },
// ],
// newValue: {
// id: 0,
// cmail1: "",
......@@ -475,11 +488,14 @@ export default {
// tableName: "",
// tcddoc: "",
// },
// columns: ['0 0 "lst1" 100 ', '1 1 "lst2" 100', '2 2 "document" 200'],
// columns: ['0 0 "lst1" 100 ', '1 1 "lst2" 100', '2 2 "document" 200'],
};
},
methods: {
...Event,
change() {
this.model.bodgrp.rec.matdat = this.model.oldbodgrp.rec.matdat;
},
// addTableValue(index) {
// var newTableValue = Object.assign({}, this.newValue);
// const serial = Utils.generateUUID();
......@@ -489,6 +505,20 @@ export default {
// deleteTable(index) {
// this.model.botp.docgrdm.docgrd.splice(index, 1);
// },
// async docpre() {
// let rtnmsg = await this.executeDefault('bodgrp.blk.docpre')
// if (rtnmsg.respCode == SUCCESS) {
// //TODO 处理数据逻辑
// this.updateModel(rtnmsg.data)
// }
// else {
// this.$notify.error({ title: '错误', message: '服务请求失败!' });
// }
// },
},
mounted() {
this.change();
console.log(this.model.bodgrp.rec.matdat);
},
computed: {
flag() {
......
......@@ -219,8 +219,12 @@
grp: 'botp',
code: 'docpre',
}"
:disabledDocnam="model.rejtypsel != 'R'"
:disabledCmail2="model.rejtypsel != 'R'"
:disabledCmail1="model.rejtypsel != 'R'"
:ifShowAdd="model.rejtypsel == 'R'"
:ifShowDelete="model.rejtypsel == 'R'"></c-docpre>
:ifShowDelete="model.rejtypsel == 'R'">
</c-docpre>
</c-col>
......@@ -251,50 +255,6 @@ export default {
mixins: [commonProcess],
data() {
return {
codeTable: [
{ label: "Airway Bills", value: "Airway Bills" },
{ label: "Beneficiary's Declaration", value: "Beneficiary's Declaration" },
{ label: "Bill of Lading Copies", value: "Bill of Lading Copies" },
{ label: "Bill of Lading Originals", value: "Bill of Lading Originals" },
{ label: "Certificate", value: "Certificate" },
{ label: "Certificate of Analysis", value: "Certificate of Analysis" },
{ label: "Certificate of Origin", value: "Certificate of Origin" },
{ label: "Certificate of Quality", value: "Certificate of Quality" },
{ label: "Certificate of Quantity", value: "Certificate of Quantity" },
{ label: "Commercial Invoice", value: "Commercial Invoice" },
{ label: "Courier Receipt", value: "Courier Receipt" },
{ label: "Draft", value: "Draft" },
{ label: "Export Licence", value: "Export Licence" },
{ label: "Fax Report", value: "Fax Report" },
{ label: "Inspection Cert", value: "Inspection Cert" },
{ label: "Insurance Policy", value: "Insurance Policy" },
{ label: "Packing List", value: "Packing List" },
{ label: "Shipment Advice", value: "Shipment Advice" },
{ label: "Weight List", value: "Weight List" },
],
TableValue: [
{
id: 0,
cmail1: "",
cmail2: "",
docnam: "",
description: "",
serialNum: "",
tableName: "",
tcddoc: "",
},
],
newValue: {
id: 0,
cmail1: "",
cmail2: "",
docnam: "",
description: "",
serialNum: "",
tableName: "",
tcddoc: "",
},
}
},
computed: {
......@@ -309,15 +269,6 @@ export default {
},
methods: {
...Event,
addTableValue(index) {
var newTableValue = Object.assign({}, this.newValue);
const serial = Utils.generateUUID();
newTableValue.serialNum = serial;
this.model.botp.docgrdm.docgrd.splice(index - 1, 0, newTableValue);
},
deleteTable(index) {
this.model.botp.docgrdm.docgrd.splice(index, 1);
},
},
created: function () {
......
<template>
<div class="eibs-tab">
<el-col :span="11">
<c-col :span="24">
<c-form-item label="业务主键 " prop="cnybop.cnyinc.spk">
<c-input disabled v-model="model.cnybop.cnyinc.spk" maxlength="20" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="银行机构名称" prop="cnybop.sbankname">
<c-input disabled v-model="model.cnybop.sbankname" maxlength="80" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="银行机构代码" prop="cnybop.cnyinc.sbankorgcode">
<c-input disabled v-model="model.cnybop.cnyinc.sbankorgcode" maxlength="12" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="收款人账号" prop="cnybop.cnyinc.spayeeacct">
<c-input v-model="model.cnybop.cnyinc.spayeeacct" maxlength="32" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="收款人名称" prop="cnybop.spayeename">
<c-input v-model="model.cnybop.spayeename" maxlength="80" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="收款人属性" prop="cnybop.cnyinc.cpayeeattr">
<c-select v-model="model.cnybop.cnyinc.cpayeeattr" style="width:100%" placeholder="">
<el-option
v-for="item in codes.cpayeeattr"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="付款人名称" prop="cnybop.spayername">
<c-input v-model="model.cnybop.spayername" maxlength="80" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="结算方式" prop="cnybop.cnyinc.sbalancemode">
<c-select v-model="model.cnybop.cnyinc.sbalancemode" style="width:100%" placeholder="">
<el-option
v-for="item in codes.sbalancemode"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label=" 清算(结算)帐户类型" prop="cnybop.cnyinc.cpayeraccttyp">
<c-select v-model="model.cnybop.cnyinc.cpayeraccttyp" style="width:100%" placeholder="">
<el-option
v-for="item in codes.cpayeraccttyp"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="清算(结算)账户账号" prop="cnybop.cnyinc.spayeracct">
<c-input v-model="model.cnybop.cnyinc.spayeracct" maxlength="32" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="收款日期" prop="cnybop.cnyinc.dpayeedate">
<c-date-picker type="date" v-model="model.cnybop.cnyinc.dpayeedate" style="width:100%" placeholder=""></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="收款币种" prop="cnybop.cnyinc.spayeecny">
<c-select v-model="model.cnybop.cnyinc.spayeecny" style="width:100%" placeholder="">
<el-option
v-for="item in codes.curtxt1"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="原币金额" prop="cnybop.cnyinc.ftotalamt">
<c-input v-model="model.cnybop.cnyinc.ftotalamt" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="货物贸易收款金额" prop="cnybop.cnyinc.fpayeeamt">
<c-input v-model="model.cnybop.cnyinc.fpayeeamt" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="已报关收款金额" prop="cnybop.cnyinc.fcustomsamt">
<c-input v-model="model.cnybop.cnyinc.fcustomsamt" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="已备案收款金额" prop="cnybop.cnyinc.frecordamt">
<c-input v-model="model.cnybop.cnyinc.frecordamt" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="交易附言" prop="cnybop.saddword">
<c-input v-model="model.cnybop.saddword" maxlength="80" placeholder=""></c-input>
</c-form-item>
</c-col>
</el-col>
<!--=====================right ============================= -->
<el-col :span="11" :offset="1">
<c-col :span="24">
<c-form-item label="银行业务编号" prop="cnybop.cnyinc.sbanktrano">
<c-input disabled v-model="model.cnybop.cnyinc.sbanktrano" maxlength="22" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="收款人机构代码或身份证件号码" prop="cnybop.cnyinc.spayeeorgcode">
<c-input v-model="model.cnybop.cnyinc.spayeeorgcode" maxlength="18" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="21">
<c-form-item label="付款人常驻国家(地区)代码" prop="cnybop.cnyinc.spayercountrycode">
<c-input v-model="model.cnybop.cnyinc.spayercountrycode" maxlength="3" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="3">
<c-button size="small" type="primary" icon="el-icon-search" @click="onIncctySelbut1">
</c-button>
</c-col>
<c-col :span="24">
<c-form-item label="付款行SWIFT BIC" prop="cnybop.cnyinc.sswiftbic">
<c-input v-model="model.cnybop.cnyinc.sswiftbic" maxlength="11" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="中间转汇行" prop="cnybop.cnyinc.smidtransbank">
<c-input v-model="model.cnybop.cnyinc.smidtransbank" maxlength="11" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="预收款比例" prop="cnybop.incscale">
<c-input v-model="model.cnybop.incscale" maxlength="4" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="预收款金额" prop="cnybop.cnyinc.fprepayeeamt">
<c-input v-model="model.cnybop.cnyinc.fprepayeeamt" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="结帐期" prop="cnybop.cnyinc.iaccountperiod">
<c-input v-model="model.cnybop.cnyinc.iaccountperiod" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="原申报号码" prop="cnybop.cnyinc.sorilevyno">
<c-input v-model="model.cnybop.cnyinc.sorilevyno" maxlength="24" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="无货物报关进出境物流货物金额" prop="cnybop.cnyinc.fonshoreamt">
<c-input v-model="model.cnybop.cnyinc.fonshoreamt" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="无货物报关离岸转手买卖金额" prop="cnybop.cnyinc.foffshoreamt">
<c-input v-model="model.cnybop.cnyinc.foffshoreamt" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="无货物报关其他金额" prop="cnybop.cnyinc.fnogoodsamt">
<c-input v-model="model.cnybop.cnyinc.fnogoodsamt" placeholder=""></c-input>
</c-form-item>
</c-col>
</el-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Botset/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
......@@ -78,15 +78,15 @@
<m-wg :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane v-if="model.bopmod.szflg=='1' && model.lendoc.actflg=='X'" label="涉外收入申请单-基础信息" name="basp1">
<el-tab-pane v-if="model.bopmod.szflg=='1' && model.lendoc.actflg=='X'" label="涉外收入申请单-基础信息" name="basp3">
<c-content>
<m-basp1 :model="model" :codes="codes"/>
<m-basp3 :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<el-tab-pane v-if="model.bopmod.szflg=='2' && model.lendoc.actflg=='X'" label="境内收入申请单-基础信息" name="basp">
<el-tab-pane v-if="model.bopmod.szflg=='2' && model.lendoc.actflg=='X'" label="境内收入申请单-基础信息" name="basp2">
<c-content>
<m-basp :model="model" :codes="codes"/>
<m-basp2 :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
......@@ -94,6 +94,12 @@
<el-tab-pane label="跨境人民币申报" name="cnyp">
<m-cnyp :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane v-if="model.cnybop.cnyflg=='1'" label="2101跨境收入信息" name="incp">
<c-content>
<m-incp :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<!--统一授信 -->
<el-tab-pane label="统一授信" name="limitbody">
......@@ -135,8 +141,9 @@ import Docpan1 from "./Docpan1"
import Wg from "./Wg"
import Cnyp from "./Cnyp"
import Limitbody from "~/views/Public/Limitbody";
import Basp from "./Basp"
import Basp1 from "./Basp1"
import Basp2 from "./Basp2"
import Basp3 from "./Basp3"
import Incp from "./Incp"
export default {
......@@ -156,8 +163,9 @@ export default {
"m-cnyp" : Cnyp,
"m-limitbody" : Limitbody,
"m-docpan1" : Docpan1,
"m-basp" : Basp,
"m-basp1" : Basp1,
"m-basp2" : Basp2,
"m-basp3" : Basp3,
"m-incp" : Incp,
},
provide() {
return {
......
......@@ -8,7 +8,7 @@
v-model="model.dedgrp.rec.isyifu"
style="width: 100%"
placeholder="请选择是否可议付"
@change="selectOrCheckboxChangeExecuteRule('dedgrp.rec.isyifu')"
@change="selectOrCheckboxRule('dedgrp.rec.isyifu')"
>
<el-option
v-for="item in codes.isyifu"
......
......@@ -388,18 +388,6 @@
</c-col>
<!-- <c-col :span="24">
<c-col :span="13">
<el-form-item label="货运时间" prop="dedgrp.rec.shpdat">
<c-date-picker
type="date"
v-model="model.dedgrp.rec.shpdat"
style="width: 95%"
placeholder="请选择Shipment Date"
></c-date-picker>
</el-form-item>
</c-col>
</c-col> -->
<c-col :span="24">
<c-form-item label="货运时间" prop="dedgrp.rec.shpdat">
<c-date-picker
type="date"
......@@ -408,7 +396,7 @@
placeholder="请选择Shipment Date"
></c-date-picker>
</c-form-item>
</c-col>
</c-col> -->
<c-col :span="24">
<el-form-item label="转运" prop="dedgrp.rec.shptrs">
......@@ -480,17 +468,33 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="远期付款指示" prop="dedgrp.blk.dftat">
<c-input
type="textarea"
v-model="model.dedgrp.blk.dftat"
maxlength="35"
show-word-limit
placeholder="请输入远期付款指示"
></c-input>
</el-form-item>
</c-col>
<div v-if="model.dedgrp.rec.avbby != 'D'">
<c-col :span="24">
<el-form-item label="远期付款指示" prop="dedgrp.blk.dftat">
<c-input
type="textarea"
v-model="model.dedgrp.blk.dftat"
maxlength="35"
show-word-limit
placeholder="请输入远期付款指示"
:disabled="!model.dedgrp.rec.avbby"
></c-input>
</el-form-item>
</c-col>
</div>
<div v-else>
<c-col :span="24">
<el-form-item label="远期付款指示" prop="dedgrp.blk.defdet">
<c-input
type="textarea"
v-model="model.dedgrp.blk.defdet"
maxlength="35"
show-word-limit
placeholder="请输入远期付款指示"
></c-input>
</el-form-item>
</c-col>
</div>
</c-col>
<!-- ========================右边======================= -->
......@@ -597,7 +601,10 @@
-->
<c-col :span="24">
<el-form-item label="受益人开户行联行行号" prop="dedgrp.beb.pts.bankno">
<el-form-item
label="受益人开户行联行行号"
prop="dedgrp.beb.pts.bankno"
>
<c-input
v-model="model.dedgrp.beb.pts.bankno"
maxlength="20"
......
......@@ -64,7 +64,7 @@
</c-col>
<c-col :span="8" :offset="2">
<el-form-item label="">
<c-checkbox v-model="isShow2">Show Outgoing Messages</c-checkbox>
<c-checkbox v-model="isShow2" @change="CONDOCSTM">Show Outgoing Messages</c-checkbox>
</el-form-item>
<!-- <c-checkbox v-model="isShow2">Show Outgoing Messages</c-checkbox> -->
</c-col>
......@@ -230,6 +230,13 @@ export default {
};
},
methods: { ...Event,
CONDOCSTM(){
this.executeDefault("trnmod.trndoc.condocstm").then(res => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
}
})
},
handleNodeClick(){} ,
defaultProps(){}
},
......
......@@ -151,9 +151,9 @@ import Dogpame from "./Dogpame";
import Dorpame from "./Dorpame";
import Adcpame from "./Adcpame";
import Inspame from "./Inspame";
import Doctre from "./Doctre";
import Stament from "./Stament";
import Doctre from "~/views/Public/Doctre";
import Setpan from "~/views/Public/Setpan";
import Engp from "~/views/Public/Engp";
import Ccvpan from "~/views/Public/Ccvpan";
......
......@@ -592,6 +592,7 @@
maxlength="16"
style="width: 100%"
placeholder="请输入交单行BIC"
@keyup.enter.native="showGridPromptDialog(`bddgrp.prb.pts.extkey`)"
:disabled="model.bddgrp.rec.docprbrol == 'PRB' ? false : true"
></c-input>
</el-form-item>
......@@ -676,7 +677,7 @@
<c-col :span="24">
<el-form-item label="">
<c-checkbox v-model="model.bddgrp.rec.dscinsflg" @change="isShowDocpre"
<c-checkbox v-model="model.bddgrp.rec.dscinsflg" @change="isShowDocpre" :disabled="model.bddgrp.blk.docdisflg==='X'"
>录入单据、不符点、结算指示和货运详细信息</c-checkbox
>
</el-form-item>
......@@ -721,7 +722,6 @@ export default {
docprbrolChange(){
this.executeRule("bddgrp.rec.docprbrol").then((res) => {
if ((res.respCode == SUCCESS)) {
debugger;
Utils.copyValueFromVO(this.model, res.data);
}
});
......@@ -729,7 +729,7 @@ export default {
ptsRefEvent(){
this.executeRule("trnmod.ptsmod.wrkptspta.pts.ref").then((res) => {
if ((res.respCode == SUCCESS)) {
debugger;
// debugger;
Utils.copyValueFromVO(this.model, res.data);
}
});
......@@ -737,7 +737,7 @@ export default {
ptsBanknoEvent(){
this.executeRule("bddgrp.skh.pts.bankno").then((res) => {
if ((res.respCode == SUCCESS)) {
debugger;
// debugger;
Utils.copyValueFromVO(this.model, res.data);
}
});
......
......@@ -339,7 +339,7 @@
<c-col :span="24">
<el-form-item label="Decrease limits stream" prop="decstm">
<el-form-item label="修改历史列表" prop="decstm">
<c-istream-table
:list="model.decstm.rows || []"
:columns="trnData.columns"
......
......@@ -53,8 +53,8 @@
></c-input>
</el-form-item> -->
<c-ptapdome
:disabledJigomc="true"
:disabledDizhii="true"
:disabledJigomc="false"
:disabledDizhii="false"
:model="model"
:argadr="{
title: '通知行',
......@@ -65,7 +65,7 @@
<c-col :span="13">
<el-form-item label="通知行邮编" prop="didgrp.adv.pts.youzbm">
<c-input
disabled
:disabled="false"
v-model="model.didgrp.adv.pts.youzbm"
maxlength="6"
placeholder="请输入邮编 电证用"
......@@ -78,7 +78,7 @@
label-width="100px"
>
<c-input
disabled
:disabled="false"
v-model="model.didgrp.adv.pts.dihdig"
maxlength="16"
placeholder="请输入电话"
......@@ -154,9 +154,9 @@
></c-input>
</el-form-item> -->
<c-ptapdome
:disabledBankno="model.didgrp.rec.fenctg != 'Y'"
:disabledBankno="model.didgrp.rec.avbwth != 'S'"
:disabledJigomc="true"
:disabledDizhii="model.didgrp.rec.fenctg != 'Y'"
:disabledDizhii="model.didgrp.rec.avbwth != 'S'"
:model="model"
:argadr="{
title: '议付行',
......@@ -351,7 +351,7 @@
</el-form-item> -->
<c-ptapdome
:disabledBankno="model.didgrp.rec.bdflg != 'Y'"
:disabledJigomc="true"
:disabledJigomc="model.didgrp.rec.bdflg != 'Y'"
:disabledDizhii="model.didgrp.rec.bdflg != 'Y'"
:model="model"
:argadr="{
......
......@@ -49,7 +49,7 @@
</c-col>
<c-col :span="11">
<c-form-item previewLabel="信用证金额" style="text-align: left;" label-width="5px" prop="didgrp.cbs.nom1.amt">
<c-input-currency v-model="model.didgrp.cbs.nom1.amt" placeholder="请输入信用证金额"
<c-input-currency v-model="model.didgrp.cbs.nom1.amt" placeholder="请输入信用证金额" @change="ditpAmt"
@keyup.enter.native="defaultFunction('didgrp.cbs.nom1.amt', model.didgrp.cbs.nom1.amt)">
</c-input-currency>
</c-form-item>
......@@ -191,7 +191,7 @@
<c-col :span="24">
<el-form-item label="假远期信用证" prop="didgrp.rec.jyqflg">
<c-select v-model="model.didgrp.rec.jyqflg" style="width: 100%" placeholder="请选择假远期信用证">
<el-option v-for="item in codes.jyqflg" :key="item.value" :label="item.label" :value="item.value">
<el-option v-for="item in jyqflg" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item>
......@@ -502,12 +502,23 @@ export default {
mixins: [commonProcess],
data() {
return {
jyqflg: [
{ label: "否", value: "" },
{ label: "是", value: "X" },
],
jigomcFlag: false,
trade: "",
};
},
methods: {
...Event,
ditpAmt(){
this.executeDefault("ditp.amt").then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
}
});
},
mytypeChange() {
if (this.model.didgrp.rec.mytype == "F") {
this.model.didgrp.rec.tratyp = "";
......@@ -519,11 +530,11 @@ export default {
}
},
nom1CurEvent() {
this.executeDefault("didgrp.cbs.nom1.cur").then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
}
});
// this.executeDefault("didgrp.cbs.nom1.cur").then((res) => {
// if ((res.respCode == SUCCESS)) {
// Utils.copyValueFromVO(this.model, res.data);
// }
// });
},
},
created: function () {
......
<template>
<div class="eibs-tab">
<!-- <c-col :span="22">
<el-form-item label="声明" prop="didgrp.blk.stamet">
<c-input
type="textarea"
v-model="model.didgrp.blk.stamet"
maxlength="65"
:row="15"
show-word-limit
placeholder="请输入声明"
></c-input>
</el-form-item>
</c-col> -->
<c-col :span="22">
<el-form-item label="声明" prop="didgrp.blk.stamet">
<c-input
type="textarea"
v-model="model.didgrp.blk.stamet"
maxlength="65"
show-word-limit
placeholder="请输入声明"
:rows="15"
></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/Ditopn/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {};
},
methods: { ...Event },
created: function () {
// this.executeDefault("DIDGRP.BLK.STAMET").then((res) => {
// if ((res.respCode == SUCCESS)) {
// Utils.copyValueFromVO(this.model, res.data);
// }
// });
},
};
</script>
<style>
</style>
......@@ -2,11 +2,7 @@
<c-page title="买方信用证开立">
<div class="eContainer">
<!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
<c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">
<el-button size="small">备忘录</el-button>
<el-button size="small" @click="setDraggableContent('cms', '影像信息')">影像信息</el-button>
<!-- <el-button size="small">保存模板</el-button> -->
......@@ -15,21 +11,14 @@
<!-- <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"
>
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small"
:validate-on-rule-change="false">
<c-tabs :value="tabVal" ref="elment" type="card" @tab-click="tabClick">
<el-tab-pane label="基本信息" name="ovwp">
<!--PD000001 -->
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--
......@@ -47,7 +36,7 @@
<el-tab-pane label="其他当事人" name="detp1">
<!--PD000452 -->
<c-content>
<m-detp1 :model="model" :codes="codes" />
<m-detp1 :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="详细信息" name="detp">
......@@ -57,7 +46,7 @@
<el-tab-pane label="单据要求" name="tk">
<!--PD000342 -->
<c-content>
<m-tk :model="model" :codes="codes" />
<m-tk :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
......@@ -81,10 +70,15 @@
<m-setpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="分录" name="glepan">
<m-glepan :model="model" :codes="codes" ref="glepan" />
</el-tab-pane>
<el-tab-pane label="声明" name="stamet">
<m-stamet :model="model" :codes="codes" />
</el-tab-pane>
<el-tab-pane label="表外" name="engp">
<!--PD000027 -->
<c-content>
......@@ -119,7 +113,7 @@
</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>
</div>
</c-page>
</template>
......@@ -146,8 +140,9 @@ import Litapll1 from "./Litapll1";
import Litrmbl1 from "./Litrmbl1";
import Addbcb from "./Addbcb";
import Setpan from "~/views/Public/Setpan";
import Glepan from "~/views/Public/Glepan";
import Setpan from "~/views/Public/Setpan";
import Stamet from "./Stamet";
import Engp from "~/views/Public/Engp";
import Ccvpan from "~/views/Public/Ccvpan";
import Coninfp from "~/views/Public/Coninfp";
......@@ -168,20 +163,21 @@ export default {
"m-litapll1": Litapll1,
"m-litrmbl1": Litrmbl1,
"m-setpan": Setpan,
"m-glepan": Glepan,
"m-stamet": Stamet,
"m-engp": Engp,
"m-addbcb": Addbcb,
"m-docpan": Docpan,
"m-limitbody": Limitbody,
"m-coninfp": Coninfp,
"m-ccvpan": Ccvpan,
"m-glepan": Glepan,
},
provide() {
return {
root: this,
};
},
mixins: [commonProcess,commonFuncs], // 里面包含了Default、Check等的公共处理
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
computed: {},
data() {
return {
......@@ -193,17 +189,18 @@ export default {
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
codes: {
...CodeTable,
avbby0: [
{ label: "即期付款", value: "P" },
{ label: "远期付款", value: "D" },
],
],
},
};
},
methods: {},
created: async function() {
methods: {
},
created: async function () {
console.log("进入ditopn交易");
let rtnmsg = await this.init(this.$route.query);
if (rtnmsg.respCode == SUCCESS) {
......@@ -239,4 +236,5 @@ export default {
},
};
</script>
<style></style>
<style>
</style>
......@@ -93,11 +93,14 @@
<c-col :span="24">
<el-form-item label="Incoming Purpose" prop="gidgrp.rec.purposin">
<c-input
<c-select
v-model="model.gidgrp.rec.purposin"
placeholder="请输入Incoming Purpose"
style="width: 100%"
placeholder="请选择Incoming Purpose "
:code="codes.purposin"
disabled
></c-input>
>
</c-select>
</el-form-item>
</c-col>
......@@ -107,7 +110,8 @@
v-model="model.gidgrp.rec.purpos"
style="width: 100%"
placeholder="请选择Outgoing Purpose"
disabled
:code="codes.purpos"
>
</c-select>
</el-form-item>
......@@ -119,6 +123,7 @@
v-model="model.gidgrp.rec.gartyp"
style="width: 100%"
placeholder="请选择Type of Undertaking"
:code="codes.typgar"
disabled
>
</c-select>
......@@ -143,12 +148,13 @@
label-width="5px"
prop="gidgrp.rec.exptyp"
>
<c-input-currency
<c-select
v-model="model.gidgrp.rec.exptyp"
style="text-align: left; width: 100%"
placeholder=""
disabled
></c-input-currency>
style="width: 100%"
placeholder="请选择Expiry Type"
:code="codes.exptyp"
>
</c-select>
</el-form-item>
</c-col>
......@@ -174,6 +180,7 @@
v-model="model.gidgrp.rec.liatypc"
style="width: 100%"
placeholder="请选择Liability Type "
:code="codes.liatypc"
disabled
>
</c-select>
......@@ -186,6 +193,7 @@
v-model="model.gidgrp.rec.hndtyp"
style="width: 100%"
placeholder="请选择Handling Type"
:code="codes.hndtyp"
disabled
>
</c-select>
......@@ -198,6 +206,7 @@
v-model="model.gidgrp.rec.cnfsta"
style="width: 100%"
placeholder="请选择Confirmation Status "
:code="codes.cnfsta"
disabled
>
</c-select>
......@@ -664,9 +673,9 @@ export default {
data() {
return {};
},
methods: {
methods: {
...Event,
onSeainf(data) {
onSeainf(data) {
this.$emit("onSeainf", data);
},
},
......
......@@ -78,9 +78,6 @@ export default {
mixins: [commonProcess],
data() {
return {
codes: {
...CodeTable,
},
};
},
methods: { ...Event },
......
......@@ -30,32 +30,7 @@
<m-conp :model="model" :codes="codes" />
</el-tab-pane>
<el-tab-pane
v-if="model.gitp.swiftflg == ''"
label="Overview"
name="ovwp"
>
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000002 -->
<el-tab-pane
v-if="model.gitp.swiftflg == 'Y'"
label="Overview"
name="ovwp20"
>
<c-content>
<m-ovwp20 :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane
v-if="model.gitp.swiftflg == 'N'"
label="Overview"
name="ovwp"
>
<el-tab-pane label="Overview" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
......@@ -63,16 +38,6 @@
<!--PD000727 -->
<el-tab-pane
v-if="model.gitp.swiftflg == ''"
label="Presentation/Delivery"
name="preperp"
>
<c-content>
<m-preperp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane
v-if="model.gitp.swiftflg == 'Y'"
label="Presentation/Delivery"
name="preperp"
......@@ -131,7 +96,6 @@
<el-tab-pane label="统一授信" name="limitbody">
<m-limitbody :model="model" :codes="codes" />
</el-tab-pane>
</c-tabs>
</el-form>
</div>
......@@ -147,7 +111,6 @@ import Default from "~/model/Getamc/Default";
import Pattern from "~/model/Getamc/Pattern";
import Conp from "./Conp";
import Ovwp from "./Ovwp";
import Ovwp20 from "./Ovwp20";
import Preperp from "./Preperp";
import Detp from "./Detp";
import Gidtxtp from "./Gidtxtp";
......@@ -166,7 +129,6 @@ export default {
components: {
"m-conp": Conp,
"m-ovwp": Ovwp,
"m-ovwp20" : Ovwp20,
"m-preperp": Preperp,
"m-detp": Detp,
"m-gidtxtp": Gidtxtp,
......@@ -175,7 +137,7 @@ export default {
"m-glepan": Glepan,
"m-coninfp": Coninfp,
"m-docpan": Docpan,
"m-doctre" :Doctre,
"m-doctre": Doctre,
"m-opnp": Opnp,
"m-limitbody": Limitbody,
},
......@@ -200,14 +162,12 @@ export default {
bookings: false,
attachments: false,
};
},
methods: {
myTabClick(tab) {
this.tabClick(tab);
if(tab.name === "setpan"){
this.bookings = true,
this.attachments = true
if (tab.name === "setpan") {
(this.bookings = true), (this.attachments = true);
}
/**
* do it yourself
......@@ -220,6 +180,9 @@ export default {
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
//TODO 处理数据逻辑
if (this.isInDisplay) {
this.restoreDisplay();
}
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
......
......@@ -16,115 +16,125 @@
<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">
<!--PD000019 -->
<el-tab-pane label="Charges" name="gitsetp1">
<m-gitsetp1 :model="model" :codes="codes"/>
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="Settlement" name="setpan">
<m-setpan :model="model" :codes="codes"/>
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="Completion" name="coninfp">
<m-coninfp :model="model" :codes="codes"/>
</el-tab-pane>
<!--PD000529 -->
<el-tab-pane label="Messages" name="docpan">
<m-docpan :model="model" :codes="codes"/>
</el-tab-pane>
<!--PD000546 -->
<el-tab-pane label="Attachments" name="doctre">
<m-doctre :model="model" :codes="codes"/>
</el-tab-pane>
<!--PD000001 -->
<el-tab-pane label="统一授信" name="limitbody">
<m-limitbody :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
<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">
<!--PD000019 -->
<el-tab-pane label="Charges" name="gitsetp1">
<m-gitsetp1 :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="Liability" 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>
<!--PD000000 -->
<el-tab-pane label="Completion" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000529 -->
<el-tab-pane label="Messages" name="docpan">
<m-docpan :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000546 -->
<el-tab-pane label="Attachments" name="doctre">
<m-doctre :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000001 -->
<el-tab-pane label="统一授信" name="limitbody">
<m-limitbody :model="model" :codes="codes" />
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Gitcom from "~/model/Gitcom"
import commonProcess from "~/mixin/commonProcess"
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Gitcom from "~/model/Gitcom";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Gitcom/Check"
import Default from "~/model/Gitcom/Default"
import Pattern from "~/model/Gitcom/Pattern"
import Gitsetp1 from "./Gitsetp1"
import Check from "~/model/Gitcom/Check";
import Default from "~/model/Gitcom/Default";
import Pattern from "~/model/Gitcom/Pattern";
import Gitsetp1 from "./Gitsetp1";
import Engp from "~/views/Public/Engp";
import Setpan from "~/views/Public/Setpan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
import Limitbody from "~/views/Public/Limitbody";
export default {
name: "Gitcom",
components:{
"m-gitsetp1" : Gitsetp1,
"m-setpan" : Setpan,
"m-coninfp" : Coninfp,
"m-docpan" : Docpan,
"m-doctre" : Doctre,
"m-limitbody" : Limitbody,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "gitsetp1",
trnName: "gitcom",
model: new Gitcom().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
...CodeTable
},
}
name: "Gitcom",
components: {
"m-gitsetp1": Gitsetp1,
"m-engp": Engp,
"m-setpan": Setpan,
"m-coninfp": Coninfp,
"m-docpan": Docpan,
"m-doctre": Doctre,
"m-limitbody": Limitbody,
},
provide() {
return {
root: this,
};
},
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "gitsetp1",
trnName: "gitcom",
model: new Gitcom().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
...CodeTable,
},
};
},
methods: {
myTabClick(tab) {
this.tabClick(tab);
/**
* do it yourself
**/
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入gitcom交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
created: async function () {
console.log("进入gitcom交易");
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>
......@@ -6,7 +6,9 @@
<c-col :span="12">
<c-col :span="24">
<el-form-item label="数据采集标志" prop="cfagit.cfaflg">
<c-select v-model="model.cfagit.cfaflg" style="width:100%" placeholder="请选择数据采集标志">
<c-select v-model="model.cfagit.cfaflg"
style="width:100%"
placeholder="请选择数据采集标志">
<el-option
v-for="item in cfaflg"
:key="item.value"
......@@ -89,17 +91,29 @@ export default {
},
watch:{
"model.cfagit.cfaflg":function(){
if(this.model.cfagit.cfaflg=="1"){
this.model.cfagit.basflg="X";
this.model.cfagit.dclflg="X";
}else{
this.model.cfagit.basflg="";
this.model.cfagit.dclflg="";
}
}
// "model.cfagit.cfaflg":function(){
// if(this.model.cfagit.cfaflg=="1"){
// this.model.cfagit.basflg="X";
// this.model.cfagit.dclflg="X";
// }else{
// this.model.cfagit.basflg="";
// this.model.cfagit.dclflg="";
// }
// }
},
methods:{...Event},
methods:{
...Event,
async cfaChange(){
let rtnmsg = await this.executeDefault("cfaflg")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
},
created:function(){
}
......
......@@ -99,7 +99,7 @@
placeholder="请输入Guarantee Amount"
></c-input>
</c-col>
<c-col :span="4" v-if="model.gitp.swiftflg!='Y'" class="centerLable">
<c-col :span="4" v-show="model.gitp.swiftflg!='Y'" class="centerLable">
<c-checkbox disabled v-model="model.gitp.dzbhflg">电子保函标志</c-checkbox>
</c-col>
</c-col>
......@@ -147,7 +147,7 @@
</c-col> -->
<c-col :span="24">
<el-form-item v-if="model.gitp.swiftflg=='Y'" label="Incoming Purpose " prop="gidgrp.rec.purposin">
<el-form-item v-show="model.gitp.swiftflg=='Y'" label="Incoming Purpose " prop="gidgrp.rec.purposin">
<c-select :disabled="model.gitp.inc760==''" v-model="model.gidgrp.rec.purposin" style="width:100%" placeholder="请选择Incoming Purpose ">
<el-option
v-for="item in codes.purposin"
......@@ -161,7 +161,7 @@
</c-col>
<c-col :span="24">
<el-form-item v-if="model.gitp.swiftflg=='Y'" label="Outgoing Purpose" prop="gidgrp.rec.purpos">
<el-form-item v-show="model.gitp.swiftflg=='Y'" label="Outgoing Purpose" prop="gidgrp.rec.purpos">
<c-select v-model="model.gidgrp.rec.purpos" style="width:100%" placeholder="请选择Outgoing Purpose">
<el-option
v-for="item in codes.purpos"
......@@ -186,7 +186,7 @@
placeholder="请选择Handling Type"
>
<el-option
v-for="item in hndtyp"
v-for="item in codes.hndtyp"
:key="item.value"
:label="item.label"
:value="item.value"
......@@ -215,7 +215,7 @@
<c-col :span="24">
<c-col :span="24">
<el-form-item v-if="model.gitp.swiftflg=='Y'" label="Form of Undertaking" prop="gidgrp.rec.legfrm">
<el-form-item v-show="model.gitp.swiftflg=='Y'" label="Form of Undertaking" prop="gidgrp.rec.legfrm">
<c-select v-model="model.gidgrp.rec.legfrm" style="width:100%" placeholder="请选择Form of Undertaking">
<el-option
v-for="item in legfrm"
......@@ -233,7 +233,7 @@
</c-col>
<c-col :span="24">
<el-form-item v-if="model.gitp.swiftflg=='Y'" label="Demand Indicator" prop="gidgrp.rec.demand">
<el-form-item v-show="model.gitp.swiftflg=='Y'" label="Demand Indicator" prop="gidgrp.rec.demand">
<c-select v-model="model.gidgrp.rec.demand" style="width:100%" placeholder="请选择Demand Indicator">
<el-option
v-for="item in codes.demand"
......@@ -323,7 +323,7 @@
<c-col :span="24">
<el-form-item
v-if="model.gitp.swiftflg=='Y'"
v-show="model.gitp.swiftflg=='Y'"
label="Language of Undertak."
prop="gidgrp.rec.giduil"
>
......@@ -382,18 +382,18 @@
<c-col :span="24">
<el-form-item label="Choice of Text" prop="gidgrp.rec.gtxinr">
<c-select
v-model="model.gidgrp.rec.gtxinr"
style="width: 100%"
placeholder="请选择Choice of Text"
:code="codes.gtxinr"
>
<el-option
<!-- <el-option
v-for="item in codes.gtxinr"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-option> -->
</c-select>
</el-form-item>
</c-col>
......@@ -663,11 +663,10 @@
<c-col :span="24">
<c-ptap v-if="(model.gidgrp.rec.hndtyp=='OL'||model.gidgrp.rec.hndtyp=='')&&model.gitp.swiftflg!='Y'" :model="model" :argadr="{
title: '收款行',
title: 'Adv/Rcv bank',
grp: 'gidgrp',
rol: 'adv',
}"
:disabled="true"
@onAplpDet="onAdvpDet">
</c-ptap>
</c-col>
......@@ -1586,17 +1585,11 @@ export default {
mixins: [commonProcess],
data(){
return {
hndtyp: [
{ label: "Transfer", value: "OT" },
{ label: "Direct (we issue)", value: "OL" },
{ label: "Indirect (please issue)", value: "OC" },
],
apprul:[
{label:"UCPR Undertaking is subject to UCP Rules f. Doc. Credit",value:"UCPR" },
{label:"OTHR The guarantee is subject to another set of rules, see Narrative",value:"OTHR" },
{label:"URDG The guarantee is subject to the ICC Rules for Demand Guarantees",value:"URDG" },
{lable:"ISPR The guarantee is not subject to any set of rule",value:"ISPR"},
// {label:"ISPR The undertaking is subject to International Standby Practices ISP",value:"ISPR" },
{label:"ISPR The guarantee is not subject to any set of rule",value:"ISPR"},
{label:"NONE The guarantee is not subject to any set of rule",value:"NONE" },
],
legfrm:[
......@@ -1629,43 +1622,59 @@ export default {
},
},
watch:{
"model.gidgrp.rec.expflg":function () {
if(this.model.gidgrp.rec.expflg=='X'&&this.model.gidgrp.rec.hndtyp=='OC'){
this.model.gidgrp.rec.liaflg='X';
}
},
"model.gidgrp.cbs.opn1.cur":function(){
if(this.model.gidgrp.cbs.opn1.cur!=''){
this.model.cfagit.recgrp.bas.guarancurr=this.model.gidgrp.cbs.opn1.cur;
// "model.gidgrp.rec.expflg":function () {
// if(this.model.gidgrp.rec.expflg=='X'&&this.model.gidgrp.rec.hndtyp=='OC'){
// this.model.gidgrp.rec.liaflg='X';
// }
// },
// "model.gidgrp.cbs.opn1.cur":function(){
// if(this.model.gidgrp.cbs.opn1.cur!=''){
// this.model.cfagit.recgrp.bas.guarancurr=this.model.gidgrp.cbs.opn1.cur;
}
},
"model.gidgrp.cbs.max.amt":function(){
if(this.model.gidgrp.cbs.max.amt!=''){
this.model.cfagit.recgrp.bas.guaranamount=this.model.gidgrp.cbs.max.amt;
}
},
// }
// },
// "model.gidgrp.cbs.max.amt":function(){
// if(this.model.gidgrp.cbs.max.amt!=''){
// this.model.cfagit.recgrp.bas.guaranamount=this.model.gidgrp.cbs.max.amt;
// }
// },
"model.gidgrp.cbs.opn1.cur":function(){
if(this.model.gidgrp.cbs.opn1.cur!=''&&this.model.gidgrp.cbs.opn1.cur!='CNY'){
this.model.cnybop.cnyvou.currencycode=this.model.gidgrp.cbs.opn1.cur;
this.model.cnybop.cnyvou.fvouchamt=this.model.gidgrp.cbs.max.amt;
}
},
// "model.gidgrp.cbs.opn1.cur":function(){
// if(this.model.gidgrp.cbs.opn1.cur!=''&&this.model.gidgrp.cbs.opn1.cur!='CNY'){
// this.model.cnybop.cnyvou.currencycode=this.model.gidgrp.cbs.opn1.cur;
// this.model.cnybop.cnyvou.fvouchamt=this.model.gidgrp.cbs.max.amt;
// }
// },
"model.gidgrp.cbs.max.amt":function(){
if(this.model.gidgrp.cbs.max.amt!=''){
this.model.cnybop.cnyvou.fvouchamt=this.model.gidgrp.cbs.max.amt;
}
},
// "model.gidgrp.cbs.max.amt":function(){
// if(this.model.gidgrp.cbs.max.amt!=''){
// this.model.cnybop.cnyvou.fvouchamt=this.model.gidgrp.cbs.max.amt;
// }
// },
// "model.gidgrp.rec.giduil":function(){
// if(this.model.gidgrp.rec.giduil=='CN'){
// this.model.gidgrp.rec.gtxinr.code=this.codes.gtxinr1;
// }else if(this.model.gidgrp.rec.giduil=='EN'){
// this.model.gidgrp.rec.gtxinr.code=this.codes.gtxinr;
// }
// }
},
methods:{
...Event,
onSeainf(data) {
this.$emit("onSeainf",data);
this.$emit("onSeainf",data);
},
// lanChange(){
// if(this.model.gidgrp.rec.giduil=='CN'){
// this.model.gidgrp.rec.gtxinr=this.codes.gtxinr1;
// }else if(this.model.gidgrp.rec.giduil=='EN'){
// this.model.gidgrp.rec.gtxinr=this.codes.gtxinr;
// }
// },
valueChange() {
if (this.onlySearch) return;
// this.showGridPromptDialog(
......
......@@ -122,7 +122,7 @@
<m-cnyp :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane v-if="model.gidgrp.rec.fingua=='Y'&&model.gidgrp.cbs.max.cur!='CNY'" label="2122跨境担保登记业务信息" name="voup">
<el-tab-pane v-if="model.cnybop.vouflg=='1'" label="2122跨境担保登记业务信息" name="voup">
<m-voup :model="model" :codes="codes"/>
</el-tab-pane>
......@@ -312,12 +312,42 @@ export default {
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
myTabClick(tab) {
this.tabClick(tab)
const name = tab.name
let rulePath;
if (name === "conp") {
rulePath = "recp.conp";
}
// if (name === "glepan") {
// rulePath = "glepan";
// }
// if (name === "coninfp") {
// rulePath = "coninfp";
// }
// if (name === "docpan") {
// rulePath = "oit.inftxt";
// }
// if (name === "doctre") {
// rulePath = "doctre";
// }
// if (name === "sbxx") {
// rulePath = "trd.ownref,cnyp";
// }
if (!!rulePath) {
this.executeRule(rulePath).then(res => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data)
}
})
}
},
// myTabClick(tab){
// this.tabClick(tab)
// /**
// * do it yourself
// **/
// }
},
created:async function(){
console.log("进入gitopn交易");
......
......@@ -365,7 +365,7 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Choice of Text" prop="gidgrp.rec.gtxinr">
<el-form-item v-if="model.gitp.swiftflg!='Y'" label="Choice of Text" prop="gidgrp.rec.gtxinr">
<c-select
v-model="model.gidgrp.rec.gtxinr"
style="width: 100%"
......@@ -381,6 +381,13 @@
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item v-if="model.gitp.swiftflg=='Y'" label="Choice of Text" prop="gidgrp.rec.atxinr">
<c-select v-model="model.gidgrp.rec.atxinr" style="width:100%" placeholder="请选择Choice of Text">
</c-select>
</el-form-item>
</c-col>
<!-- <c-col :span="24">
<el-form-item label="是否分离式保函" prop="gidgrp.rec.fenlishi">
<c-select v-model="model.gidgrp.rec.fenlishi" style="width:100%" placeholder="请选择是否分离式保函">
......@@ -1675,8 +1682,8 @@ export default {
},
},
methods: {
...Event ,
onSeainf(data) {
...Event ,
onSeainf(data) {
this.$emit("onSeainf", data);
},
},
......
......@@ -228,12 +228,9 @@
</c-istream-table>
</c-col>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" :model="BctselModel" ownrefPath="bcdgrp" trnCode="bctsel"
@onChoose="onChoose">11</m-busbtn>
</div>
</el-dialog>
</div>
</template>
<script>
......@@ -255,7 +252,6 @@ export
return {
BctselModel: new BctselModel().data,
ownref: "",
initdialog: false,
dialogTableVisible: false,
trnData: {
columns: [
......@@ -299,17 +295,14 @@ export
methods: {
...Event,
async getButtons(ownref) {
this.initdialog = true;
this.$refs.childs.initdialog = true
this.ownref = ownref
console.log("ownref:" + ownref);
setTimeout(() => {
this.$refs.childs.$emit("childmethods")
}, 10)
},
async onChoose(code) {
//跳转交易
this.$router.history.push("/business/" + code)
this.initdialog = false;
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
},
closeTrn(refId) {
this.$refs[refId].doClose();
......@@ -331,32 +324,10 @@ export
console.log(this.trnData.data);
}
},
async getDitSelInfo(idx, row) {
//TD中选中行触发
var params = { selDst: "infbut.dspstm", selIds: [idx + 1] }
let rtnmsg = await this.executeRule("infbut.dspstm", params);
if (rtnmsg.respCode = SUCCESS) {
this.updateModel(rtnmsg.data);
// Utils.copyValueFromVO(this.model, rtnmsg.data);
//TD中点击display时触发
params = { selDst: "infbut.dsp", selIds: [idx + 1] }
let rtnmsgNew = await this.executeRule("infbut.dsp", params);
if (rtnmsgNew.respCode = SUCCESS) {
console.log(rtnmsgNew);
this.updateModel(rtnmsgNew.data);
let rtnmsgOitset = await this.executeDefault("mtabut.coninf.oitset.oit");
if (rtnmsgOitset.respCode = SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsgOitset.data);
}
}
}
//触发父组件中updateShowPanel 事件,修改index中showPanel ,控制 index中组件的显示和隐藏
this.$emit('updateShowPanel', true)
async getDitSelInfo(code) {
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
},
toBctdav() {
......
......@@ -305,11 +305,7 @@
</c-col>
</el-row>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" trnCode="ditsel" :model="ditselModel" ownrefPath="bddgrp" tabIndex=3 @onChoose="onChoose" >11</m-busbtn>
</div>
</el-dialog>
<m-busbtn ref="childs" :ownref="ownref" trnCode="ditsel" :model="ditselModel" ownrefPath="bddgrp" tabIndex=3 @onChoose="onChoose" >11</m-busbtn>
</div>
</template>
<script>
......@@ -328,10 +324,9 @@ export default {
components:{'m-busbtn':BusNavbar},
data() {
return {
ditselModel: new DitselModel().data,
ownref:"",
initdialog:false,
trnData: {
ditselModel: new DitselModel().data,
ownref:"",
trnData: {
columns: [
'1 1 "编号" 200',
'2 2 "交易名称" 120',
......@@ -369,23 +364,20 @@ export default {
},
methods: {
...Event,
async getButtons(ownref){
this.initdialog = true
async getButtons(ownref){
this.ownref = ownref
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref);
setTimeout(()=>{
this.$refs.childs.$emit("childmethods")
},10)
},
async onChoose(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.initdialog = false
this.$refs.childs.initdialog = false
} ,
async getDitSelInfo(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.initdialog = false
this.$refs.childs.initdialog = false
},
closeTrn(refId){
this.$refs[refId].doClose();
......
......@@ -236,11 +236,8 @@
</c-col>
</el-row>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" trnCode="letsel" ownrefPath="bedgrp" tabIndex=3 :model="letselModel" @onChoose="onChoose" >11</m-busbtn>
</div>
</el-dialog>
</div>
</template>
<script>
......@@ -261,7 +258,6 @@ export default {
return {
letselModel: new LetselModel().data,
ownref:"",
initdialog:false,
trnData: {
columns: [
'1 1 "编号" 200',
......@@ -344,17 +340,14 @@ export default {
},
methods:{...Event,
async getButtons(ownref){
this.initdialog = true
this.ownref = ownref
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref);
setTimeout(()=>{
this.$refs.childs.$emit("childmethods")
},10)
},
async onChoose(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.initdialog = false
this.$refs.childs.initdialog = false
} ,
async getDitSelInfo(code){
//跳转交易
......
......@@ -447,18 +447,10 @@
</c-col>
</c-row>
-->
<m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose"
>11</m-busbtn
>
<el-dialog
:visible.sync="initdialog"
:title="'交易列表'"
append-to-body
>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose"
>11</m-busbtn
>
</div>
</el-dialog>
</div>
</template>
<script>
......@@ -527,53 +519,20 @@ export default {
*/
methods: {
...Event,
async getButtons(ownref, frm) {
this.initdialog = true;
this.ownref = ownref;
console.log("ownref:" + ownref);
setTimeout(() => {
this.$refs.childs.$emit("childmethods");
}, 10);
// setTimeout(()=>{
// // this.$refs.childs.$emit("childmethods")
// console.log(this)
// console.log(this.$refs)
// console.log(this.$refs.childs)
// },10)
//this.$router.history.push({ path: "/business/" + frm, query: { ownref } })
},
async onChoose(code) {
async getButtons(ownref){
this.ownref = ownref
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref);
},
async onChoose(code){
//跳转交易
this.$router.history.push("/business/" + code);
this.initdialog = false;
},
async getDitSelInfo(idx, row) {
//TD中选中行触发
var params = { selDst: "infbut.dspstm", selIds: [idx + 1] };
let rtnmsg = await this.executeRule("infbut.dspstm", params);
if ((rtnmsg.respCode = SUCCESS)) {
this.updateModel(rtnmsg.data);
// Utils.copyValueFromVO(this.model, rtnmsg.data);
//TD中点击display时触发
params = { selDst: "infbut.dsp", selIds: [idx + 1] };
let rtnmsgNew = await this.executeRule("infbut.dsp", params);
if ((rtnmsgNew.respCode = SUCCESS)) {
console.log(rtnmsgNew);
this.updateModel(rtnmsgNew.data);
let rtnmsgOitset = await this.executeDefault(
"mtabut.coninf.oitset.oit"
);
if ((rtnmsgOitset.respCode = SUCCESS)) {
Utils.copyValueFromVO(this.model, rtnmsgOitset.data);
}
}
}
//触发父组件中updateShowPanel 事件,修改index中showPanel ,控制 index中组件的显示和隐藏
this.$emit("updateShowPanel", true);
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
} ,
async getDitSelInfo(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
},
async getTrnInfo(idx, row) {
......
......@@ -243,11 +243,8 @@
</c-istream-table>
</c-col>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" :model="BotselModel" ownrefPath="bodgrp" trnCode="botsel" @onChoose="onChoose">11</m-busbtn>
</div>
</el-dialog>
</div>
</template>
<script>
......@@ -311,17 +308,14 @@ export default {
methods: {
...Event,
async getButtons(ownref) {
this.initdialog = true;
this.ownref = ownref
console.log("ownref:" + ownref);
setTimeout(() => {
this.$refs.childs.$emit("childmethods")
}, 10)
this.ownref = ownref
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref);
},
async onChoose(code) {
//跳转交易
this.$router.history.push("/business/" + code)
this.initdialog = false;
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
},
closeTrn(refId) {
this.$refs[refId].doClose();
......@@ -343,32 +337,10 @@ export default {
console.log(this.trnData.data);
}
},
async getDitSelInfo(idx, row) {
async getDitSelInfo(code) {
//TD中选中行触发
var params = { selDst: "infbut.dspstm", selIds: [idx + 1] }
let rtnmsg = await this.executeRule("infbut.dspstm", params);
if (rtnmsg.respCode = SUCCESS) {
this.updateModel(rtnmsg.data);
// Utils.copyValueFromVO(this.model, rtnmsg.data);
//TD中点击display时触发
params = { selDst: "infbut.dsp", selIds: [idx + 1] }
let rtnmsgNew = await this.executeRule("infbut.dsp", params);
if (rtnmsgNew.respCode = SUCCESS) {
console.log(rtnmsgNew);
this.updateModel(rtnmsgNew.data);
let rtnmsgOitset = await this.executeDefault("mtabut.coninf.oitset.oit");
if (rtnmsgOitset.respCode = SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsgOitset.data);
}
}
}
//触发父组件中updateShowPanel 事件,修改index中showPanel ,控制 index中组件的显示和隐藏
this.$emit('updateShowPanel', true)
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
},
toBotdav() {
......
......@@ -434,13 +434,9 @@
</c-istream-table>
</c-col>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose"
>11</m-busbtn
>
</div>
</el-dialog>
</div>
</template>
<script>
......@@ -459,7 +455,6 @@ export default {
data() {
return {
ownref: "",
initdialog: false,
dialogTableVisible: false,
searchToggle: true,
stmData: {
......@@ -588,46 +583,21 @@ export default {
},
methods: {
...Event,
async getButtons(ownref) {
this.initdialog = true;
this.ownref = ownref;
console.log("ownref:" + ownref);
setTimeout(() => {
this.$refs.childs.$emit("childmethods");
}, 10);
},
async onChoose(code) {
//跳转交易
this.$router.history.push("/business/" + code);
this.initdialog = false;
},
async getBpdSelInfo(idx, row) {
//TD中选中行触发
var params = { selDst: "infbut.dspstm", selIds: [idx + 1] };
let rtnmsg = await this.executeRule("infbut.dspstm", params);
if ((rtnmsg.respCode = SUCCESS)) {
this.updateModel(rtnmsg.data);
// Utils.copyValueFromVO(this.model, rtnmsg.data);
//TD中点击display时触发
params = { selDst: "infbut.dsp", selIds: [idx + 1] };
let rtnmsgNew = await this.executeRule("infbut.dsp", params);
if ((rtnmsgNew.respCode = SUCCESS)) {
console.log(rtnmsgNew);
this.updateModel(rtnmsgNew.data);
let rtnmsgOitset = await this.executeDefault(
"mtabut.coninf.oitset.oit"
);
if ((rtnmsgOitset.respCode = SUCCESS)) {
Utils.copyValueFromVO(this.model, rtnmsgOitset.data);
}
}
}
//触发父组件中updateShowPanel 事件,修改index中showPanel ,控制 index中组件的显示和隐藏
this.$emit("updateShowPanel", true);
},
async getButtons(ownref){
this.ownref = ownref
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref);
},
async onChoose(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
} ,
async getDitSelInfo(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
},
async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"];
this.model.bpdgrp.rec.inr = row["INR"];
......
......@@ -289,11 +289,8 @@
</c-istream-table>
</c-col>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose"></m-busbtn>
</div>
</el-dialog>
</div>
</template>
<script>
......@@ -311,7 +308,6 @@ export default {
data() {
return {
ownref: "",
initdialog: false,
trnData: {
columns: [
'1 1 "编号" 200',
......@@ -356,20 +352,21 @@ export default {
};
},
methods: {
...Event,
async getButtons(ownref) {
this.initdialog = true;
this.ownref = ownref;
console.log("ownref:" + ownref);
setTimeout(() => {
this.$refs.childs.$emit("childmethods");
}, 10);
},
async onChoose(code) {
//跳转交易
this.$router.history.push("/business/" + code);
this.initdialog = false;
},
...Event,async getButtons(ownref){
this.ownref = ownref
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref);
},
async onChoose(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
} ,
async getDitSelInfo(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
},
async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"];
this.model.brdgrp.rec.inr = row["INR"];
......
......@@ -403,13 +403,9 @@
</el-table-column>
</c-istream-table>
</c-col>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose"
></m-busbtn
>
</div>
</el-dialog>
</div>
</template>
<script>
......@@ -427,7 +423,6 @@ export default {
return {
searchToggle: true,
ownref: "",
initdialog: false,
dialogTableVisible: false,
trnData: {
columns: [
......@@ -513,17 +508,20 @@ export default {
}, 1000);
}, */
async getButtons(ownref){
this.initdialog = true
this.ownref = ownref
setTimeout(()=>{
this.$refs.childs.$emit("childmethods")
},10)
},
async onChoose(code){
this.ownref = ownref
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref);
},
async onChoose(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
} ,
async getDitSelInfo(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.initdialog = false
} ,
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
},
async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"];
this.model.cpdgrp.rec.inr = row["INR"];
......
......@@ -644,13 +644,10 @@
</template>
</el-table-column>
-->
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" trnCode="detsel" ownrefPath="dedgrp" :model="detselModel" @onChoose="onChoose"
>11</m-busbtn
>
</div>
</el-dialog>
</div>
</template>
<script>
......@@ -672,7 +669,6 @@ export default {
return {
detselModel:new DetselModel().data,
ownref: "",
initdialog: false,
dialogTableVisible: false,
trnData: {
columns: [
......@@ -719,47 +715,21 @@ export default {
*/
methods: {
...Event,
async getButtons(ownref) {
this.initdialog = true;
this.ownref = ownref;
console.log("ownref:" + ownref);
setTimeout(() => {
this.$refs.childs.$emit("childmethods");
}, 10);
//this.$router.history.push({ path: "/business/" + frm, query: { ownref } })
},
async onChoose(code) {
//跳转交易
this.$router.history.push("/business/" + code);
this.initdialog = false;
},
async getDitSelInfo(idx, row) {
//TD中选中行触发
var params = { selDst: "infbut.dspstm", selIds: [idx + 1] };
let rtnmsg = await this.executeRule("infbut.dspstm", params);
if ((rtnmsg.respCode = SUCCESS)) {
this.updateModel(rtnmsg.data);
// Utils.copyValueFromVO(this.model, rtnmsg.data);
//TD中点击display时触发
params = { selDst: "infbut.dsp", selIds: [idx + 1] };
let rtnmsgNew = await this.executeRule("infbut.dsp", params);
if ((rtnmsgNew.respCode = SUCCESS)) {
console.log(rtnmsgNew);
this.updateModel(rtnmsgNew.data);
let rtnmsgOitset = await this.executeDefault(
"mtabut.coninf.oitset.oit"
);
if ((rtnmsgOitset.respCode = SUCCESS)) {
Utils.copyValueFromVO(this.model, rtnmsgOitset.data);
}
}
}
//触发父组件中updateShowPanel 事件,修改index中showPanel ,控制 index中组件的显示和隐藏
this.$emit("updateShowPanel", true);
},
async getButtons(ownref){
this.ownref = ownref
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref);
},
async onChoose(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
} ,
async getDitSelInfo(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
},
async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"];
......
......@@ -385,12 +385,8 @@
</c-col>
<!-- </el-row> -->
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" trnCode="ditsel" :model="ditselModel" @onChoose="onChoose"></m-busbtn>
</div>
</el-dialog>
<!-- <c-col :span="12">
......@@ -640,46 +636,20 @@ export default {
methods: {
...Event,
async getButtons(ownref){
this.initdialog = true
this.ownref = ownref
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref);
setTimeout(()=>{
this.$refs.childs.$emit("childmethods")
},10)
},
async onChoose(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.initdialog = false
this.$refs.childs.initdialog = false
} ,
async getDitSelInfo(idx,row){
//TD中选中行触发
var params = {selDst:"infbut.dspstm",selIds:[idx+1]}
let rtnmsg = await this.executeRule("infbut.dspstm", params);
if(rtnmsg.respCode = SUCCESS){
this.updateModel(rtnmsg.data);
// Utils.copyValueFromVO(this.model, rtnmsg.data);
//TD中点击display时触发
params = {selDst:"infbut.dsp",selIds:[idx+1]}
let rtnmsgNew = await this.executeRule("infbut.dsp", params);
if(rtnmsgNew.respCode = SUCCESS){
console.log(rtnmsgNew);
this.updateModel(rtnmsgNew.data);
let rtnmsgOitset = await this.executeDefault("mtabut.coninf.oitset.oit");
if(rtnmsgOitset.respCode = SUCCESS){
Utils.copyValueFromVO(this.model, rtnmsgOitset.data);
}
}
}
//触发父组件中updateShowPanel 事件,修改index中showPanel ,控制 index中组件的显示和隐藏
this.$emit('updateShowPanel', true)
},
async getDitSelInfo(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
},
async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"];
......
<template>
<div class="busnavbar">
<div class="busnavbar-items">
<c-button style="margin-left:7px;" size="medium" type="primary" class="medium_bcs" v-for="(item,index) in codeList" v-bind:key="index" @click.native="onNarBtnClick(item.code,index)" :title="item.title" :disabled="item.isDis==='N'">{{item.label}}</c-button>
</div>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Gitsel from "~/model/Gitsel"
import commonProcess from "~/mixin/commonProcess"
export default {
props:["ownref"],
components:{
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
trnName:'gitsel',
model:new Gitsel().data,
navcode:[
// {code:"",label:"",isDis:"",title:""},
],
}
},
methods:{
//各入口按钮请求
async onNarBtnClick(code,i){
this.model.cfgfil.subtrn1= code
let rtnmsg = await this.executeRule("cfgfil.hotsub1")
console.log("cfgfil.code:" + this.model.cfgfil.subtrn1);
if(rtnmsg.respCode == SUCCESS){
this.navcode = []
this.$emit("onChoose",code.toLowerCase());
}else{
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
},
computed:{
codeList(){
//将model中的数据映射成数组
return this.navcode.map(item=>{
let entireItem = {...item}
this.navcode = [];
//TODO 根据数据判断当前的code,是否可以继续
// entireItem.enable = item.isDis
return entireItem
})
}
},
watch:{
"ownref":async function(n, o){
if(!this.ownref){
console.log("11111")
// onTigger()
return;
}
}
},
mounted(){
this.$nextTick(function(){
this.$on('childmethods',async function(){
this.navcode = []
//请求按钮数据
this.model.gidgrp.rec.ownref = this.ownref
console.log("ownref:" + this.ownref );
let rtnmsg = await this.executeRule("gidgrp.rec.ownref");//gidgrp_rec_ownref
if(rtnmsg.respCode == SUCCESS){
//重置数组
this.navcode = []
this.updateModel(rtnmsg.data)
//this.model.cfgfil.btnstm = rtnmsg.data.cfgfil_btnstm.rows
//给inr赋值,后面弹窗里面的按钮请求会用到
//this.model.gidgrp.rec.inr = rtnmsg.data.gidgrp_rec_inr
const length = this.model.cfgfil.btnstm.rows.length
let btnStr = this.model.cfgfil.btnstm.rows
let j = 0;
let m = 0;
// const buttonIndex = ['保证金收取','保证金注销','保证金调整','开立信用证','信用证修改','减额修改接受','修改通知行','到单']
const buttonIndex = ['信用证修改','减额修改接受','到单','修改通知行']
for(let i=0; i < length; i++){
//获取数组中每行的数据
if(!( btnStr[i].indexOf("保证金") >= 0) && !(btnStr[i].indexOf("开立信用证") >= 0)){
let arr = btnStr[i].split("\t");
let newList = {
code:arr[0],
label:arr[1],
isDis:arr[2],
title:arr[3]
}
m++;
j = buttonIndex.indexOf(arr[1].replace(/(^\s*)|(\s*$)/g, ""));
if(j<0){
j = m;
}
//添加到navcode数组中
this.navcode.splice(j,0,newList)
}
}
}else{
this.navcode = []
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
})
})
}
}
</script>
<style>
</style>
......@@ -348,9 +348,8 @@
v-model="model.seagtyp"
style="width: 100%"
placeholder="请选择Undertaking Type"
:code="codes.seagtyp"
:code="codes.typgar"
>
</c-select>
</el-form-item>
</c-col>
......@@ -439,90 +438,116 @@
</c-list-search>
<el-row>
<c-col :span="24" style="margin-top: 10px">
<c-button
class="medium_bcs"
size="medium"
type="primary"
@click="toGitopn"
>进口保函开立</c-button
>
</c-col>
<c-col :span="24" style="margin-top: 10px">
<c-button
class="medium_bcs"
size="medium"
type="primary"
@click="toGitopn"
>进口保函开立</c-button
>
<c-button
style="margin-left: 20"
class="medium_bcs"
size="medium"
type="primary"
@click="toGetopn"
>出口保函通知</c-button
>
</c-col>
<c-col :span="24" style="text-align: right; height: 100px">
<c-istream-table :list="stmData.data" :columns="stmData.columns">
<el-table-column fixed="right" prop="op" label="操作" width="140px">
<template slot="header">
<c-col :span="11" style="text-align: left">
<span>操作</span>
</c-col>
<c-col :span="12" style="text-align: right">
<c-button icon="el-icon-s-tools"></c-button>
</c-col>
</template>
<template slot-scope="scope">
<el-popover
placement="top-start"
title="历史信息"
width="800"
trigger="click"
:ref="'popover_' + scope.row.IDX"
>
<div
style="
text-align: right;
margin-top: -30px;
margin-right: 5px;
font-size: 16px;
"
<c-col :span="24" style="text-align: right; height: 100px">
<c-istream-table :list="stmData.data" :columns="stmData.columns">
<el-table-column fixed="right" prop="op" label="操作" width="140px">
<template slot="header">
<c-col :span="11" style="text-align: left">
<span>操作</span>
</c-col>
<c-col :span="12" style="text-align: right">
<c-button icon="el-icon-s-tools"></c-button>
</c-col>
</template>
<template slot-scope="scope">
<el-popover
placement="top-start"
title="历史信息"
width="800"
trigger="click"
:ref="'popover_' + scope.row.IDX"
>
<span
class="el-icon-close"
@click="closeTrn('popover_' + scope.row.IDX)"
/>
</div>
<c-istream-table :list="trnData.data" :columns="trnData.columns">
<el-table-column prop="op" label="操作" width="0">
<template slot-scope="scope">
<c-button
style="margin-left: 0"
size="small"
@click="display(scope.row['INR'])"
>详情</c-button
>
</template>
</el-table-column>
</c-istream-table>
<div
style="
text-align: right;
margin-top: -30px;
margin-right: 5px;
font-size: 16px;
"
>
<span
class="el-icon-close"
@click="closeTrn('popover_' + scope.row.IDX)"
/>
</div>
<c-istream-table
:list="trnData.data"
:columns="trnData.columns"
>
<el-table-column prop="op" label="操作" width="0">
<template slot-scope="scope">
<c-button
style="margin-left: 0"
size="small"
@click="display(scope.row['INR'])"
>详情</c-button
>
</template>
</el-table-column>
</c-istream-table>
<c-button
style="margin-left: 0"
size="small"
@click="getTrnInfo(scope.$index, scope.row)"
slot="reference"
>详情</c-button
>
</el-popover>
<c-button
style="margin-left: 0"
size="small"
@click="getTrnInfo(scope.$index, scope.row)"
slot="reference"
>详情</c-button
type="primary"
@click="getButtons(scope.row['Reference'])"
>处理</c-button
>
</el-popover>
<c-button
style="margin-left: 0"
size="small"
type="primary"
@click="getButtons(scope.row['Reference'])"
>处理</c-button
>
</template>
</el-table-column>
</c-istream-table>
</c-col>
</template>
</el-table-column>
</c-istream-table>
</c-col>
</el-row>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div v-if="dialogFlag" class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" trnCode="gitsel" ownrefPath="gidgrp" :model="gitselModel" tabIndex=1 @onChoose="onChoose">11</m-busbtn>
<m-busbtn
ref="childs"
:ownref="ownref"
trnCode="gitsel"
ownrefPath="gidgrp"
:model="gitselModel"
tabIndex="1"
@onChoose="onChoose"
>11</m-busbtn
>
</div>
<div v-else >
<m-busbtn ref="childs" :ownref="ownref" trnCode="getsel" ownrefPath="gidgrp" :model="getselModel" tabIndex=1 @onChoose="onChoose">11</m-busbtn>
<div v-else>
<m-busbtn
ref="childs"
:ownref="ownref"
trnCode="getsel"
ownrefPath="gidgrp"
:model="getselModel"
tabIndex="1"
@onChoose="onChoose"
>11</m-busbtn
>
</div>
</el-dialog>
<!-- <c-col :span="12">
<el-form-item label="Own Reference" prop="infcon.seaownref">
......@@ -699,7 +724,6 @@
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
......@@ -719,7 +743,6 @@ export default {
gitselModel: new GitselModel().data,
getselModel: new GetselModel().data,
ownref: "",
initdialog: false,
dialogTableVisible: false,
dialogFlag: true,
trnData: {
......@@ -739,7 +762,15 @@ export default {
columns: [
'1 1 "Reference" 150',
'2 2 "Resp. User" 150',
'8 3 "保函品种" 150',
// '8 3 "保函品种" 150',
{
index: 8,
position: 3,
width: 150,
pattern: "code",
label: "保函品种",
code: this.codes.typgar,
},
'11 4 "Party Number" 150',
'12 5 "Applicant" 150',
'15 6 "Cur" 150',
......@@ -756,7 +787,15 @@ export default {
'21 17 "Cur" 150',
'16 18 "Guar. Amount" 150',
'20 19 "Open Amount" 150',
'9 20 "Handling Type" 150',
// '9 20 "Handling Type" 150',
{
index: 9,
position: 20,
width: 150,
pattern: "code",
label: "Handling Type",
code: this.codes.hndtyp,
},
'6 21"电子渠道类型" 150',
'7 22"OTHERSNO" 150',
],
......@@ -766,21 +805,21 @@ export default {
},
methods: {
...Event,
async getButtons(ownref) {
this.initdialog = true;
this.ownref = ownref;
this.dialogFlag = ownref.startsWith("LG");
console.log("dialogFlag:" + this.dialogFlag);
console.log("ownref:" + ownref);
setTimeout(() => {
this.$refs.childs.$emit("childmethods")
}, 10)
},
async onChoose(code) {
//跳转交易
this.$router.history.push("/business/" + code);
this.initdialog = false;
},
async getButtons(ownref){
this.ownref = ownref
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref);
},
async onChoose(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
} ,
async getDitSelInfo(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
},
async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"];
......@@ -800,6 +839,9 @@ export default {
toGitopn() {
this.$router.history.push("/business/gitopn");
},
toGetopn() {
this.$router.history.push("/business/getopn");
},
handleReset: function () {
this.model = {
instNo: "",
......@@ -808,10 +850,8 @@ export default {
},
},
created: function () {},
watch:{
"model.gidgrp.rec.ownref":function(){
}
watch: {
"model.gidgrp.rec.ownref": function () {},
},
};
</script>
......
......@@ -8,7 +8,7 @@
<m-infsea :model="model" :codes="codes"/>
</el-tab-pane> -->
<c-content>
<c-content :height="180">
<m-infsea :model="model" :codes="codes" ref="infsea" />
</c-content>
......
......@@ -459,13 +459,9 @@
</c-istream-table>
</c-col>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" trnCode="letsel" ownrefPath="ledgrp" :model="letselModel" @onChoose="onChoose"
>11</m-busbtn
>
</div>
</el-dialog>
</div>
</template>
<script>
......@@ -487,7 +483,6 @@ export default {
letselModel:new LetselModel().data,
curinr:"",
ownref: "",
initdialog: false,
dialogTableVisible: false,
trnData: {
columns: [
......@@ -591,21 +586,21 @@ export default {
methods: {
...Event,
//获取按钮butstm的事件
async getButtons(ownref) {
this.initdialog = true;
this.ownref = ownref;
console.log("ownref:" + ownref);
setTimeout(() => {
this.$refs.childs.$emit("childmethods");
}, 10);
},
async onChoose(code) {
//跳转交易
this.$router.history.push("/business/" + code);
this.initdialog = false;
},
async getButtons(ownref){
this.ownref = ownref
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref);
},
async onChoose(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
} ,
async getDitSelInfo(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
},
async getTrnInfo(idx, row) {
......
......@@ -441,13 +441,9 @@
</c-istream-table>
</c-col>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose"
>11</m-busbtn
>
</div>
</el-dialog>
</div>
</template>
<script>
......@@ -533,21 +529,21 @@ export default {
methods: {
...Event,
//获取按钮butstm的事件
async getButtons(ownref) {
this.initdialog = true;
this.ownref = ownref;
console.log("ownref:" + ownref);
setTimeout(() => {
this.$refs.childs.$emit("childmethods");
}, 10);
},
async onChoose(code) {
//跳转交易
this.$router.history.push("/business/" + code);
this.initdialog = false;
},
async getButtons(ownref){
this.ownref = ownref
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref);
},
async onChoose(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
} ,
async getDitSelInfo(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
},
async getTrnInfo(idx, row) {
......
......@@ -287,13 +287,9 @@
<!--el-table-column prop="op" label="OP" width="100">placeholder="请输入display stream"</el-table-column-->
</c-istream-table>
</c-col>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose"
>11</m-busbtn
>
</div>
</el-dialog>
</div>
</template>
<script>
......@@ -351,11 +347,6 @@ export default {
closeTrn(refId){
this.$refs[refId].doClose();
},
async onChoose(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.initdialog = false
} ,
async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"];
......@@ -370,40 +361,20 @@ export default {
}
},
async getButtons(ownref){
this.initdialog = true
this.ownref = ownref
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref);
setTimeout(()=>{
this.$refs.childs.$emit("childmethods")
},10)
},
async getDitSelInfo(idx,row){
//TD中选中行触发
var params = {selDst:"infbut.dspstm",selIds:[idx+1]}
let rtnmsg = await this.executeRule("infbut.dspstm", params);
if(rtnmsg.respCode = SUCCESS){
this.updateModel(rtnmsg.data);
// Utils.copyValueFromVO(this.model, rtnmsg.data);
//TD中点击display时触发
params = {selDst:"infbut.dsp",selIds:[idx+1]}
let rtnmsgNew = await this.executeRule("infbut.dsp", params);
if(rtnmsgNew.respCode = SUCCESS){
console.log(rtnmsgNew);
this.updateModel(rtnmsgNew.data);
let rtnmsgOitset = await this.executeDefault("mtabut.coninf.oitset.oit");
if(rtnmsgOitset.respCode = SUCCESS){
Utils.copyValueFromVO(this.model, rtnmsgOitset.data);
}
}
}
//触发父组件中updateShowPanel 事件,修改index中showPanel ,控制 index中组件的显示和隐藏
this.$emit('updateShowPanel', true)
},
async onChoose(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
} ,
async getDitSelInfo(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
},
},
created: function () {},
};
......
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