Commit 02a26335 by panziyi

bctame添加

parent fb1c394f
...@@ -34,24 +34,13 @@ export default { ...@@ -34,24 +34,13 @@ export default {
let dataObj = { let dataObj = {
rec: { rec: {
objtyp: 'BCD', objtyp: 'BCD',
objinr: model.bcdgrp.rec.inr, // objinr: model.bcdgrp.rec.inr,
ownref: model.bcdgrp.rec.ownref, ownref: model.bcdgrp.rec.ownref,
opndat: model.bcdgrp.rec.opndat, opndat: model.bcdgrp.rec.opndat,
expdat: model.bcdgrp.rec.expdat, expdat: model.bcdgrp.rec.expdat,
branchInr: model.bcdgrp.rec.branchinr, branchinr: model.bcdgrp.rec.branchInr,
docamt: model.setmod.docamt, nam: model.bcdgrp.rec.nam,
doccur: model.setmod.doccur, oridre: model.bcdgrp.rec.oridre,
doctypcod: model.bcdgrp.rec.doctypcod,
// hndtyp: model.bcdgrp.rec.hndtyp,
// gartyp: model.bcdgrp.rec.gartyp,
// fingua: model.bcdgrp.rec.fingua,
// fromflg: model.bcdgrp.rec.fromflg,
// othersno: model.bcdgrp.rec.othersno,
// sndto: model.bcdgrp.rec.sndto,
// giduil: model.bcdgrp.rec.giduil,
// purpos: model.bcdgrp.rec.purpos,
// revflg: model.bcdgrp.rec.revflg,
// cnfsta: model.bcdgrp.rec.cnfsta,
}, },
cbsMap: { cbsMap: {
MAX: model.bcdgrp.cbs.max, MAX: model.bcdgrp.cbs.max,
...@@ -72,7 +61,7 @@ export default { ...@@ -72,7 +61,7 @@ export default {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
liaall: model.liaall, liaall: model.liaall,
liaccv: model.liaccv, liaccv: model.liaccv,
// doceot: model.trnmod.trndoc.doceot, doceot: model.trnmod.trndoc.doceot,
}; };
return params return params
}, },
...@@ -121,22 +110,23 @@ export default { ...@@ -121,22 +110,23 @@ export default {
buildLimitbody (model, trnName) { buildLimitbody (model, trnName) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
rec: { // rec: {
objtyp: 'BCD', // objtyp: 'BCD',
objinr: model.bcdgrp.rec.inr, // objinr: model.bcdgrp.rec.inr,
ownref: model.bcdgrp.rec.ownref, // ownref: model.bcdgrp.rec.ownref,
}, // },
}; };
return params return params
}, },
buildDoctre (model, trnName) { buildDoctre (model, trnName) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
rec: { // rec: {
objtyp: 'BCD', // objtyp: 'BCD',
objinr: model.bcdgrp.rec.inr, // objinr: model.bcdgrp.rec.inr,
ownref: model.bcdgrp.rec.ownref, // ownref: model.bcdgrp.rec.ownref,
}, // // swiftflg: model.gitp.swiftflg,
// },
}; };
return params return params
}, },
......
...@@ -24,15 +24,11 @@ export default { ...@@ -24,15 +24,11 @@ export default {
const params = { const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)), spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trnmod:{ // trnmod:{
trn:JSON.parse(localStorage.getItem('review_'+this.trnName)) // trn:JSON.parse(localStorage.getItem('review_'+this.trnName))
// }
} }
} const res = await Api.post('/service/bctame/init', {
if ( typeof(this.$route.query.inr) == 'string' ){
params.spt = null
params.trnmod.trn =null
}
const res = await Api.post('/service/bctacc/init', {
...params, ...params,
transName: this.trnName, transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL', userId: window.sessionStorage.userId || 'ZL',
...@@ -108,21 +104,22 @@ export default { ...@@ -108,21 +104,22 @@ export default {
queryFormData(key) { queryFormData(key) {
console.log(key); console.log(key);
}, },
// 业务信息=》基本信息=》保函编号-----获取保函编号 // 业务信息=》基本信息=》编号-----获取编号
async queryOwnref() { async queryOwnref() {
let params = { let params = {
ptainr: this.model.bcdgrp.apl.pts.ptainr, ptainr: this.model.bcdgrp.dre.pts.ptainr,
businessType: 'LG', businessType: 'IC',
tbl: 'LG', tbl: 'IC',
}; };
const loading = this.loading(); const loading = this.loading();
let res = await Api.post('/service/gitopn/getOwnRef', params); let res = await Api.post('/service/bctdav/getOwnRef', params);
if (res.respCode == SUCCESS) { if (res.respCode == SUCCESS) {
loading.close(); loading.close();
this.model.bcdgrp.rec.ownref = res.data; this.model.bcdgrp.rec.ownref = res.data;
} }
}, },
// 获取gitopn弹框表格数据
// 获取弹框表格数据
async queryGridEtyPromptDialogData(type, ptytyp) { async queryGridEtyPromptDialogData(type, ptytyp) {
let params = { let params = {
userId: window.sessionStorage.userId || 'ZL', userId: window.sessionStorage.userId || 'ZL',
...@@ -136,7 +133,7 @@ export default { ...@@ -136,7 +133,7 @@ export default {
this.root.promptData.type = type; this.root.promptData.type = type;
} }
}, },
// 选中gitopn弹框表格的行数据 // 选中弹框表格的行数据
async selectGridEtyPromptData(row) { async selectGridEtyPromptData(row) {
let params = { let params = {
...row, ...row,
...@@ -153,8 +150,8 @@ export default { ...@@ -153,8 +150,8 @@ export default {
// 初始化保函开立类型码表下拉列表 // 初始化保函开立类型码表下拉列表
async queryHndtypCodeTableList(trnName) { async queryHndtypCodeTableList(trnName) {
let params = { let params = {
gitp: { botp: {
swiftflg: this.model.gitp.swiftflg, swiftflg: this.model.botp.swiftflg,
}, },
bcdgrp: { bcdgrp: {
rec: { rec: {
...@@ -163,7 +160,7 @@ export default { ...@@ -163,7 +160,7 @@ export default {
}, },
transName: trnName.toUpperCase(), transName: trnName.toUpperCase(),
}; };
let res = await Api.post('/service/gitopn/initHndtyp', params); let res = await Api.post('/service/bctdav/initHndtyp', params);
if (res.respCode == SUCCESS) { if (res.respCode == SUCCESS) {
this.$set(this.codes, 'voHndtyp', res.data); this.$set(this.codes, 'voHndtyp', res.data);
} }
......
import Utils from "~/utils" import Utils from "~/utils"
/** /**
* Bctame Check规则 * Bctame Check规则
*/ */
let checkObj = { let checkObj = {
"bctp.drrp.ptsget.sdamod.dadsnd" :null,
"bcdgrp.dre.namelc" :null,
"bctp.usr.extkey" :null,
"trnmod.swiadd.newamt" :null, "trnmod.swiadd.newamt" :null,
"bcdgrp.rmi.adrelc" :null,
"bcdgrp.blk.dftins" :null,
"bctp.recget.sdamod.dadsnd" :null,
"bcdgrp.dre.adrelc" :null,
"bcdgrp.blk.othins" :null,
"bctp.drep.ptsget.sdamod.dadsnd" :null,
"bcdgrp.rmi.namelc" :null,
"setmod.dspflg" :null, "setmod.dspflg" :null,
"bctp.rmip.ptsget.sdamod.dadsnd" :null,
"bcdgrp.rec.invtyp" :null, "bcdgrp.rec.invtyp" :null,
"bcdgrp.rec.stacty" :null, "bcdgrp.rec.stacty" :null,
"bcdgrp.drr.namelc" :null,
"bcdgrp.rmi.pts.extkey" :null,
"bcdgrp.drr.adrelc" :null,
"bcdgrp.blk.colins" :null,
"bcdgrp.rec.oridre" :null, "bcdgrp.rec.oridre" :null,
"bcdgrp.drr.pts.adrblk" :null,
"mtabut.coninf.conexedat" :null,
"bcdgrp.blk.chgtxt" :null,
"bcdgrp.drr.pts.extkey" :null,
"bcdgrp.dre.pts.adrblk" :null,
"setmod.docamt" :null,
"bcdgrp.rmi.pts.ref" :null,
"bcdgrp.dre.pts.extkey" :null,
"bcdgrp.rmi.pts.adrblk" :null,
"trnmod.swiadd.newmatdat" :null,
"bctp.recget.sdamod.dadsnd":[ "bctp.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"bcdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bctp.recget.sdamod.seainf":[ "bctp.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"bcdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"amedat":[ "amedat":[
{type: "string", required: false, message: "输入正确的日期"} {type: "string", required: false, message: "输入正确的日期"}
], ],
// "amenbr":[
// {type: "string", required: false, message: "必输项"},
// {max: 2,message:"长度不能超过2"}
// ],
// "oldbcdgrp.cbs.max.amt":[
// {type: "number", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过14位"},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
// ],
// "trnmod.swiadd.ameamt":[
// {type: "number", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过14位"},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
// ],
"trnmod.swiadd.newcur":[ "trnmod.swiadd.newcur":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
// "trnmod.swiadd.newamt":[
// {type: "number", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过14位"},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
// ],
// "oldbcdgrp.rec.matpercnt":[
// {type: "string", required: false, message: "必输项"},
// {max: 3,message:"长度不能超过3"}
// ],
"oldbcdgrp.rec.matpertyp":[ "oldbcdgrp.rec.matpertyp":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"} {max: 1,message:"长度不能超过1"}
], ],
// "trnmod.swiadd.newmatpercnt":[
// {type: "string", required: false, message: "必输项"},
// {max: 3,message:"长度不能超过3"}
// ],
"oldbcdgrp.rec.matdat":[ "oldbcdgrp.rec.matdat":[
{type: "string", required: false, message: "输入正确的日期"} {type: "string", required: false, message: "输入正确的日期"}
], ],
...@@ -46,6 +113,7 @@ let checkObj = { ...@@ -46,6 +113,7 @@ let checkObj = {
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"} {max: 40,message:"长度不能超过40"}
], ],
"bctp.usr.extkey":[ "bctp.usr.extkey":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"} {max: 8,message:"长度不能超过8"}
...@@ -58,6 +126,7 @@ let checkObj = { ...@@ -58,6 +126,7 @@ let checkObj = {
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"bctp.drep.ptsget.sdamod.dadsnd":[ "bctp.drep.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
...@@ -70,10 +139,23 @@ let checkObj = { ...@@ -70,10 +139,23 @@ let checkObj = {
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
// "bcdgrp.cbs.max.amt":[
// {type: "number", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过14位"},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
// ],
"bcdgrp.dre.namelc":[ "bcdgrp.dre.namelc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
// "bcdgrp.cbs.opn1.amt":[
// {type: "number", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过14位"},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
// ],
"bcdgrp.dre.pts.adrblk":[ "bcdgrp.dre.pts.adrblk":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 150,message:"长度不能超过135"} {max: 150,message:"长度不能超过135"}
...@@ -95,10 +177,12 @@ let checkObj = { ...@@ -95,10 +177,12 @@ let checkObj = {
"bcdgrp.rec.advdat":[ "bcdgrp.rec.advdat":[
{type: "string", required: false, message: "输入正确的日期"} {type: "string", required: false, message: "输入正确的日期"}
], ],
"bcdgrp.rmi.pts.ref":[ "bcdgrp.rmi.pts.ref":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"bctp.rmip.ptsget.sdamod.dadsnd":[ "bctp.rmip.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
...@@ -111,9 +195,11 @@ let checkObj = { ...@@ -111,9 +195,11 @@ let checkObj = {
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"bcdgrp.rec.matdat":[ "bcdgrp.rec.matdat":[
{type: "string", required: false, message: "输入正确的日期"} {type: "string", required: false, message: "输入正确的日期"}
], ],
"bcdgrp.rmi.namelc":[ "bcdgrp.rmi.namelc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
...@@ -126,6 +212,12 @@ let checkObj = { ...@@ -126,6 +212,12 @@ let checkObj = {
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
// "bcdgrp.rec.matpercnt":[
// {type: "string", required: false, message: "必输项"},
// {max: 3,message:"长度不能超过3"}
// ],
"bcdgrp.rmi.adrelc":[ "bcdgrp.rmi.adrelc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
...@@ -138,6 +230,8 @@ let checkObj = { ...@@ -138,6 +230,8 @@ let checkObj = {
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"bctp.drrp.ptsget.sdamod.dadsnd":[ "bctp.drrp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
...@@ -150,6 +244,7 @@ let checkObj = { ...@@ -150,6 +244,7 @@ let checkObj = {
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"bcdgrp.drr.namelc":[ "bcdgrp.drr.namelc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
...@@ -166,10 +261,16 @@ let checkObj = { ...@@ -166,10 +261,16 @@ let checkObj = {
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"bcdgrp.blk.colins":[ "bcdgrp.blk.colins":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"} {max: 65,message:"长度不能超过65"}
], ],
"bcdgrp.blk.chgtxt":[ "bcdgrp.blk.chgtxt":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
...@@ -178,31 +279,51 @@ let checkObj = { ...@@ -178,31 +279,51 @@ let checkObj = {
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"} {max: 65,message:"长度不能超过65"}
], ],
"bcdgrp.blk.othins":[ "bcdgrp.blk.othins":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"} {max: 65,message:"长度不能超过65"}
], ],
"setmod.ref":[ "setmod.ref":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"setmod.docamt":[ "setmod.docamt":[
{type: "number", required: false, message: "必输项"}, {type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
"setmod.zmqacc":[ "setmod.zmqacc":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"} {max: 20,message:"长度不能超过20"}
], ],
"mtabut.coninf.oitinf.oit.inftxt":[ "mtabut.coninf.oitinf.oit.inftxt":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 60,message:"长度不能超过60"} {max: 60,message:"长度不能超过60"}
], ],
"mtabut.coninf.oitset.oit.inftxt":[ "mtabut.coninf.oitset.oit.inftxt":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 60,message:"长度不能超过60"} {max: 60,message:"长度不能超过60"}
], ],
"mtabut.coninf.conexedat":[ "mtabut.coninf.conexedat":[
{type: "string", required: false, message: "输入正确的日期"} {type: "string", required: false, message: "输入正确的日期"}
], ],
...@@ -210,6 +331,7 @@ let checkObj = { ...@@ -210,6 +331,7 @@ let checkObj = {
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"} {max: 8,message:"长度不能超过8"}
], ],
"trnmod.trndoc.advnam":[ "trnmod.trndoc.advnam":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 50,message:"长度不能超过50"} {max: 50,message:"长度不能超过50"}
...@@ -218,6 +340,7 @@ let checkObj = { ...@@ -218,6 +340,7 @@ let checkObj = {
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 50,message:"长度不能超过50"} {max: 50,message:"长度不能超过50"}
], ],
"trnmod.trndoc.advdoc":[ "trnmod.trndoc.advdoc":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"} {max: 1,message:"长度不能超过1"}
...@@ -230,6 +353,15 @@ let checkObj = { ...@@ -230,6 +353,15 @@ let checkObj = {
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"} {max: 1,message:"长度不能超过1"}
], ],
"trnmod.trndoc.condocstm":[ "trnmod.trndoc.condocstm":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"} {max: 1,message:"长度不能超过1"}
...@@ -239,9 +371,11 @@ let checkObj = { ...@@ -239,9 +371,11 @@ let checkObj = {
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
} }
for (const key in checkObj) { for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) { if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key) checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
} }
} }
export default checkObj export default checkObj
import Pts from '~/components/business/commonModel/Pts'; import Pts from '~/components/business/commonModel/Pts';
import Pub from '~/components/business/commonModel/index.js'; import Pub from '~/components/business/commonModel/index.js';
export default class Bctame{
export default class Bctame { constructor () {
constructor() {
this.data = { this.data = {
amenbr: '', bcdgrp:{
bctp: { rec:{
usr: { ownref:"", // Reference .bcdgrp.rec.ownref
extkey: '' nam:"", // Name .bcdgrp.rec.nam
} resflg:"", // Reserved Contract .bcdgrp.rec.resflg
dftgarflg:"", // Draft to be Guaranteed .bcdgrp.rec.dftgarflg
rcvdat:"", // Docs received on .bcdgrp.rec.rcvdat
predat:"", // Date of Remittance Lt. .bcdgrp.rec.predat
advdat:"", // Advised on .bcdgrp.rec.advdat
oridre:"", // Send Original Documents to Drawee .bcdgrp.rec.oridre
doctypcod:"", // Collection Condition .bcdgrp.rec.doctypcod
matdat:"", // Maturity Date .bcdgrp.rec.matdat
matpercnt:"", // Tenor Specification .bcdgrp.rec.matpercnt
matpertyp:"", // Days/Months or Years for Maturity Period .bcdgrp.rec.matpertyp
matperbeg:"", // Tenor Starting from .bcdgrp.rec.matperbeg
stacty:"", // Country Code Risk Country .bcdgrp.rec.stacty
invtyp:"", // 发票类型 .bcdgrp.rec.invtyp
chato:"", // Our Charges to .bcdgrp.rec.chato
focflg:"", // Free of Payment .bcdgrp.rec.focflg
waicolcod:"", // Waive Collecting Bank Charges .bcdgrp.rec.waicolcod
wairmtcod:"", // Waive Remitting Bank Charges .bcdgrp.rec.wairmtcod
othins:"", // Defer Payment until .bcdgrp.rec.othins
stagod:"", // Good's Code (for Statistics) .bcdgrp.rec.stagod
proins:"", // Protest Instructions .bcdgrp.rec.proins
}, },
amedat: '', cbs:{
newdoctypcod: '', max:{
oldbcdgrp: { cur:"", // Document Amount .bcdgrp.cbs.max.cur
rec: { amt:"", // Document Amount .bcdgrp.cbs.max.amt
matpertyp: '',
matpercnt: '',
matdat: '',
matperbeg: ''
},
cbs: {
max: {
cur: '',
amt: ''
}
}
}, },
bcdgrp: { opn1:{
blk: { cur:"", // Open Amount .bcdgrp.cbs.opn1.cur
colins: '', amt:"", // Open Amount .bcdgrp.cbs.opn1.amt
bcgdet: '',
dftins: '',
bcgdetflg: '',
othins: '',
chgtxt: ''
},
rec: {
inr:'',
predat: '',
rcvdat: '',
matpertyp: '',
stacty: '',
matpercnt: '',
ownref: '',
invtyp: '',
matperbeg: '',
dftgarflg: '',
wairmtcod: '',
stagod: '',
doctypcod: '',
chato: '',
othins: '',
proins: '',
waicolcod: '',
advdat: '',
matdat: '',
nam: '',
focflg: '',
branchinr: ''
},
cbs: {
opn1: {
cur: '',
amt: ''
},
max: {
cur: '',
amt: ''
}
}, },
drr: {
pts: new Pts().data
}, },
dre: { blk:{
pts: new Pts().data docpre:"",
bcgdet:"", // Maturity Text .bcdgrp.blk.bcgdet
bcgdetflg:"", // BC Tenor Details modified .bcdgrp.blk.bcgdetflg
colins:"", // Collection Instructions .bcdgrp.blk.colins
dftins:"", // Draft Instructions .bcdgrp.blk.dftins
othins:"", // Other Instructions .bcdgrp.blk.othins
chgtxt:"", // Charges Text .bcdgrp.blk.chgtxt
}, },
co2: { dre:{
pts: new Pts().data pts:new Pts().data,
}, },
rmi: { rmi:{
pts: new Pts().data pts:new Pts().data,
}
},
drr:{
pts:new Pts().data,
}, },
co2:{
pts:new Pts().data,
},
},
bctp:{
recget:{
sdamod:{
seainf:"", // .bctp.recget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bctp.recget.sdamod.dadsnd
},
},
usrget:{
sdamod:{
seainf:"", // .bctp.usrget.sdamod.seainf
},
},
usr:{
extkey:"", // Responsible User .bctp.usr.extkey
},
docgrdm:{
docgrd:[],
docdsclab:"", // Label of document description .bctp.docgrdm.docdsclab
},
drep:{
ptsget:{
sdamod:{
seainf:"", // .bctp.drep.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bctp.drep.ptsget.sdamod.dadsnd
},
},
},
rmip:{
ptsget:{
sdamod:{
seainf:"", // .bctp.rmip.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bctp.rmip.ptsget.sdamod.dadsnd
},
},
},
drrp:{
ptsget:{
sdamod:{
seainf:"", // .bctp.drrp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bctp.drrp.ptsget.sdamod.dadsnd
},
},
},
sblx:"", // 申报类型 .bctp.sblx
acttyplab:"", // 款项去向 .bctp.acttyplab
acttyp:"", // ACTTYP .bctp.acttyp
co2p:{
ptsget:{
sdamod:{
seainf:"", // .bctp.co2p.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bctp.co2p.ptsget.sdamod.dadsnd
},
},
},
},
amedat:"", // Amendment Date .amedat
amenbr:"", // No. of Amendment .amenbr
oldbcdgrp:{
cbs:{
max:{
cur:"", // Original Amount .oldbcdgrp.cbs.max.cur
amt:"", // Original Amount .oldbcdgrp.cbs.max.amt
},
},
rec:{
matpercnt:"", // Tenor Data .oldbcdgrp.rec.matpercnt
matpertyp:"", // Days/Months or Years for Maturity Period .oldbcdgrp.rec.matpertyp
matperbeg:"", // Start of Maturity Period MATBEG .oldbcdgrp.rec.matperbeg
matdat:"", // Maturity Date .oldbcdgrp.rec.matdat
},
},
setmod: new Pub().data.Setmod, setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut, mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod, trnmod: new Pub().data.Trnmod,
liaall: new Pub().data.Liaall, liaall: new Pub().data.Liaall,
liaccv: new Pub().data.Liaccv, liaccv: new Pub().data.Liaccv,
docpan: new Pub().data.Docpan, docpan: new Pub().data.Docpan,
}; newdoctypcod:"", // Amend Condition .newdoctypcod
pageId: "" // ctx的key
} }
}
} }
\ No newline at end of file
...@@ -351,18 +351,22 @@ ...@@ -351,18 +351,22 @@
</div> </div>
</template> </template>
<script> <script>
import event from "../event"; import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bctame/Event";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [event], mixins: [commonProcess],
data() { data() {
return {}; return {};
}, },
methods: {}, methods: {
created: function () { ...Event,
}, },
created: function () {},
}; };
</script> </script>
<style> <style>
......
<template> <template>
<div class="eContainer"> <div class="eContainer">
<c-page title="进口代收修改"> <c-page title="进口代收修改">
<el-form <el-form
:model="model" :model="model"
:rules="rules" :rules="rules"
...@@ -11,30 +13,88 @@ ...@@ -11,30 +13,88 @@
:validate-on-rule-change="false" :validate-on-rule-change="false"
> >
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--修改 -->
<!-- <el-tab-pane label="修改" name="amep">-->
<!-- <c-content>-->
<!-- <m-amep :model="model" :codes="codes" />-->
<!-- </c-content>-->
<!-- </el-tab-pane>-->
<!-- &lt;!&ndash;概要 &ndash;&gt;-->
<!-- <el-tab-pane label="概要" name="ovwp">-->
<!-- <c-content>-->
<!-- <m-ovwp :model="model" :codes="codes" />-->
<!-- </c-content>-->
<!-- </el-tab-pane>-->
<!-- &lt;!&ndash;指示条款 &ndash;&gt;-->
<!-- <el-tab-pane label="指示条款" name="detp">-->
<!-- <m-detp :model="model" :codes="codes" />-->
<!-- </el-tab-pane>-->
<!-- <el-tab-pane label="参与方" name="ptyp">-->
<!-- <c-content>-->
<!-- <m-ptyp :model="model" :codes="codes" />-->
<!-- </c-content>-->
<!-- </el-tab-pane>-->
<!-- <el-tab-pane label="表外记账" name="engp">-->
<!-- <m-engp :model="model" :codes="codes" />-->
<!-- </el-tab-pane>-->
<!-- &lt;!&ndash;账务 &ndash;&gt;-->
<!-- <el-tab-pane label="结算" name="setpan">-->
<!-- <c-content>-->
<!-- <m-setpan :model="model" :codes="codes" />-->
<!-- </c-content>-->
<!-- </el-tab-pane>-->
<!-- <el-tab-pane label="账务" name="glepan">-->
<!-- <m-glepan :model="model" :codes="codes" />-->
<!-- </el-tab-pane>-->
<!-- &lt;!&ndash;附言 &ndash;&gt;-->
<!-- <el-tab-pane label="提示信息" name="coninfp">-->
<!-- <m-coninfp :model="model" :codes="codes" />-->
<!-- </el-tab-pane>-->
<!-- &lt;!&ndash;报文和面函 &ndash;&gt;-->
<!-- <el-tab-pane label="报文和面函" name="docpan">-->
<!-- <m-docpan :model="model" :codes="codes" />-->
<!-- </el-tab-pane>-->
<!-- &lt;!&ndash;附件 &ndash;&gt;-->
<!-- <el-tab-pane label="附件" name="doctre">-->
<!-- <m-doctre :model="model" :codes="codes" />-->
<!-- </el-tab-pane>-->
<el-tab-pane label="业务信息" name="ovwp"> <el-tab-pane label="业务信息" name="ovwp">
<c-content> <c-content>
<m-ovwp :model="model" :codes="codes" /> <m-ovwp :model="model" :codes="codes" />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="费用/账务" name="engp,setpan,glepan"> <el-tab-pane label="表外记账" name="engp">
<c-content> <c-content>
<div class="eibs-tab">
<el-collapse v-model="activeNames">
<el-collapse-item title="表外记账" name="engp">
<!-- 表外记账 --> <!-- 表外记账 -->
<m-engp :model="model" :codes="codes" /> <m-engp :model="model" :codes="codes" />
</el-collapse-item> </c-content>
<el-collapse-item title="结算" name="setpan"> </el-tab-pane>
<!-- 结算 -->
<m-setpan :model="model" :codes="codes" /> <!--PD000027 -->
</el-collapse-item> <el-tab-pane label="费用/账务" name="setmod">
<el-collapse-item title="会计分录" name="glepan"> <c-content>
<!-- 会计分录 --> <m-setmod
<m-glepan :model="model" :codes="codes" /> :model="model"
</el-collapse-item> :codes="codes"
</el-collapse> @changeSetmodModel="changeSetmodModel"
</div> />
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="会计分录" name="glepan">
<c-content>
<m-glentry :model="model" :codes="codes" />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
...@@ -81,25 +141,36 @@ ...@@ -81,25 +141,36 @@
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Bctame from "~/model/Bctame"; import Bctame from "../model";
import formRules from "@/business/bctacc/model/check"; import formRules from '../model/check'
import event from "../event";
// import Amep from "./Amep";
import Ovwp from "./Ovwp"; import Ovwp from "./Ovwp";
// import Detp from "./Detp";
// import Ptyp from "./Ptyp";
import Addbcb from "./Addbcb"; import Addbcb from "./Addbcb";
import Engp from "~/components/business/engp/views";
import Setmod from "~/components/business/setmod/views" import Setmod from "~/components/business/setmod/views"
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/components/business/doctre/views";
import Coninfp from "~/components/business/coninfp/views";
import Glentry from "~/components/business/glentry/views"; import Glentry from "~/components/business/glentry/views";
import Engp from "~/components/business/engp/views"; import Coninfp from "~/components/business/coninfp/views";
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/views/Public/Doctre"
import event from "../event";
import operationFunc from "@/mixin/operationFunc"; import operationFunc from "@/mixin/operationFunc";
export default { export default {
name: "Bctame", name: "Bctame",
components: { components: {
// "m-amep": Amep,
"m-ovwp": Ovwp, "m-ovwp": Ovwp,
// "m-detp": Detp,
// "m-ptyp": Ptyp,
"m-setmod": Setmod, "m-setmod": Setmod,
"m-engp": Engp, "m-engp": Engp,
"m-coninfp": Coninfp, "m-coninfp": Coninfp,
...@@ -122,54 +193,28 @@ export default { ...@@ -122,54 +193,28 @@ export default {
model: new Bctame().data, model: new Bctame().data,
rules: formRules, rules: formRules,
codes: { ...CodeTable }, codes: { ...CodeTable },
promptData: { };
title: 'Select a Party',
columns: [
{
prop: 'ptyInr',
label: 'Party Number'
},
{
prop: 'inr',
label: 'Address Number'
},
{
prop: 'branch',
label: 'Branch Code'
},
{
prop: 'bchName',
label: 'Branch Name'
},
{
prop: 'adrName',
label: 'Address Name'
},
{
prop: 'adr1',
label: 'Address1'
},
{
prop: 'locCty',
label: 'City'
}, },
{ methods: {
prop: 'locZip',
label: 'Zip'
}, },
{ created: async function () {
prop: 'bicCode', console.log("进入bctame交易");
label: 'BIC' let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
//更新数据
this.updateModel(rtnmsg.data);
if (this.isInDisplay) {
this.restoreDisplay();
}
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
} }
],
data: []
},
};
}, },
methods: {},
created: async function () {},
mounted () { mounted () {
this.init() this.init()
// this.queryHndtypCodeTableList(this.trnName)
}, },
}; };
</script> </script>
......
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