Commit cde1b23a by wanggang_yf

brtacp 前端页面调整

parent 2f521701
export default {
buildPtspta (ptsptaObj) {
let pts = ptsptaObj.pts;
let ptspta = {
rol: pts.rol,
name: pts.nam,
ptyinr: pts.ptyinr,
ptainr: pts.ptainr,
extkey: pts.extkey,
dftdsp: pts.dftdsp,
dftcur: pts.dftcur,
dftact: pts.dftact,
dftfeecur: pts.dftfeecur,
dftactptainr: pts.dftactptainr,
glggrpflg: pts.glggrpflg,
adrblk: pts.adrblk
};
return ptspta;
},
buildCommonData (model, trnName) {
let ptsptaList = [];
if (model.gidgrp.apl.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.gidgrp.apl));
}
if (model.gidgrp.adv.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.gidgrp.adv));
}
if (model.gidgrp.ben.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.gidgrp.ben));
}
let dataObj = {
rec: {
objtyp: 'GID',
ownref: model.gidgrp.rec.ownref,
opndat: model.gidgrp.rec.opndat,
expdat: model.gidgrp.rec.expdat,
branchInr: model.gidgrp.rec.branchInr,
hndtyp: model.gidgrp.rec.hndtyp,
gartyp: model.gidgrp.rec.gartyp,
fingua: model.gidgrp.rec.fingua,
segtyp: model.gidgrp.ghd.segtyp,
fromflg: model.gidgrp.rec.fromflg,
othersno: model.gidgrp.rec.othersno,
sndto: model.gidgrp.rec.sndto,
swiftflg: model.gitp.swiftflg,
giduil: model.gidgrp.rec.giduil,
purpos: model.gidgrp.rec.purpos,
revflg: model.gidgrp.rec.revflg,
cnfsta: model.gidgrp.rec.cnfsta,
},
cbsMap: {
MAX: model.gidgrp.cbs.max,
OPN1: model.gidgrp.cbs.opn1,
MAC: model.gidgrp.cbs.mac,
MAC2: model.gidgrp.cbs.mac2,
OPC2: model.gidgrp.cbs.opc2,
CNF: model.gidgrp.cbs.cnf,
},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : 'ZL'
};
return dataObj
},
buildSetfeg (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaall: model.liaall,
liaccv: model.liaccv,
doceot: model.trnmod.trndoc.doceot,
};
return params
},
buildSetglg (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
setfeg: model.setmod.setfeg,
liaall: model.liaall,
liaccv: model.liaccv,
};
return params
},
buildGlentry (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg,
setfog: model.setmod.setfog,
setfeg: model.setmod.setfeg,
setglg: model.setmod.setglg,
};
return params
},
buildEngp (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg,
};
return params
},
buildDocpan (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
};
return params
},
buildCcvpan (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaccvg: model.liaccv.liaccvg,
oldamt: model.liaccv.oldamt,
chgamt: model.liaccv.chgamt,
concur: model.liaccv.concur,
};
return params
},
buildLimitbody (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'GID',
objinr: model.gidgrp.rec.objinr,
ownref: model.gidgrp.rec.ownref,
},
};
return params
},
buildDoctre (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'GID',
objinr: model.gidgrp.rec.objinr,
ownref: model.gidgrp.rec.ownref,
swiftflg: model.gitp.swiftflg,
},
};
return params
},
// 公共组件setmod中dsp字段改变,触发联动时候的入参
buildSetgllAccts (model, trnName, setglg) {
let params = {
...this.buildCommonData(model, trnName),
setglg
};
return params
}
}
\ No newline at end of file
import Api from '~/service/Api';
import commonFunctions from '~/mixin/commonFunctions.js';
import buildFn from './buildCommons.js';
import setmod from '~/components/business/setmod/event';
import glentry from '~/components/business/glentry/event';
import engp from '~/components/business/engp/event';
import docpan from '~/components/business/docpan/event';
import ccvpan from '~/components/business/ccvpan/event';
import limitbody from '~/components/business/limitbody/event';
import doctre from '~/components/business/doctre/event';
import Utils from "~/utils"
export default {
mixins: [commonFunctions],
methods: {
...setmod,
...glentry,
...engp,
...docpan,
...ccvpan,
...limitbody,
...doctre,
async init () {
const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName))
}
const res = await Api.post('/service/brtacp/init', {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
});
if (!res.data) {
return
}
this.copyValueFromVoData(this.model, res.data)
this.copyValueFromVoData(this.model.setmod.setfeg, res.data.setfeg)
this.copyValueFromVoData(this.model.setmod.setfog, res.data.setfog)
this.copyValueFromVoData(this.model.setmod.setglg, res.data.setglg)
},
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
copyValueFromVoData (model, data) {
let keysList = Object.keys(model)
keysList.map((key) => {
if (data[key]) {
if (Utils.typeOf(model[key]) === 'Object') {
this.copyValueFromVoData(model[key], data[key])
} else {
this.$set(model, key, data[key])
}
}
})
},
async tabClick(tab) {
if (this.isInDisplay) {
return;
}
let name = tab.name;
switch (name) {
case 'ccvpan':
let ccvpanRequest = buildFn.buildCcvpan(this.model, this.trnName);
this.processLiaccv(ccvpanRequest);
break;
case 'engp':
let engpRequest = buildFn.buildEngp(this.model, this.trnName);
this.processLiaall(engpRequest);
break;
case 'setpan':
let setfegRequest = buildFn.buildSetfeg(this.model, this.trnName);
// 此处利用回调是为了等setfeg的接口调用完成后才去获取setglg参数,由于setglg参数依赖于setfeg函数的返回值
this.processSetpan(setfegRequest, () => {
return buildFn.buildSetglg(this.model, this.trnName);
});
break;
case 'docpan':
let docpanRequest = buildFn.buildDocpan(this.model, this.trnName);
this.processTrndoc(docpanRequest);
break;
case 'glepan':
let glentryRequest = buildFn.buildGlentry(this.model, this.trnName);
this.processGlentry(glentryRequest);
break;
case 'limitbody':
let limitbodyRequest = buildFn.buildLimitbody(this.model, this.trnName);
this.processLimitbody(limitbodyRequest);
break;
case 'doctre':
let doctreRequest = buildFn.buildDoctre(this.model, this.trnName);
this.processDoctre(doctreRequest);
break;
default:
return;
}
},
// 点击获取按钮拉取当前key字段下的表单数据
queryFormData(key) {
console.log(key);
},
// 业务信息=》基本信息=》保函编号-----获取保函编号
async queryOwnref() {
let params = {
ptainr: this.model.gidgrp.apl.pts.ptainr,
businessType: 'LG',
tbl: 'LG',
};
const loading = this.loading();
let res = await Api.post('/service/brtacp/getOwnRef', params);
if (res.respCode == SUCCESS) {
loading.close();
this.model.gidgrp.rec.ownref = res.data;
}
},
// 获取brtacp弹框表格数据
async queryGridEtyPromptDialogData(type, ptytyp) {
let params = {
userId: window.sessionStorage.userId || 'ZL',
ptytyp: ptytyp,
extkey: this.model.gidgrp[type.toLowerCase()].pts.extkey,
};
let res = await Api.post('/service/ptspta/list', params);
if (res.respCode == SUCCESS) {
this.root.$refs['etyDialog'].show = true;
this.root.promptData.data = res.data.ptaInfos;
this.root.promptData.type = type;
}
},
// 选中brtacp弹框表格的行数据
async selectGridEtyPromptData(row) {
let params = {
...row,
};
let res = await Api.post('/service/ptspta/fetch', params);
if (res.respCode == SUCCESS) {
this.$set(this.model.gidgrp, row.role.toLowerCase(), res.data);
}
},
// 业务信息=》基本信息=》支出目的
purposChange(key, value) {
this.handleChangeForm(key, value);
},
// 初始化保函开立类型码表下拉列表
async queryHndtypCodeTableList(trnName) {
let params = {
gitp: {
swiftflg: this.model.gitp.swiftflg,
},
gidgrp: {
rec: {
purpos: this.model.gidgrp.rec.purpos,
},
},
transName: trnName.toUpperCase(),
};
let res = await Api.post('/service/brtacp/initHndtyp', params);
if (res.respCode == SUCCESS) {
this.$set(this.codes, 'voHndtyp', res.data);
}
},
// 是否SWIFT格式修改--联动保函开立类型
handleChangeSwiftflg() {
this.queryHndtypCodeTableList(this.root.trnName);
},
// 支出目的修改--联动保函开立类型
handleChangePurpos() {
this.queryHndtypCodeTableList(this.root.trnName);
},
buildLiaccv () {
let params = {
...buildFn.buildCommonData(this.model, this.trnName),
liaccvg: this.model.liaccv.liaccvg,
oldamt: this.model.liaccv.oldamt,
chgamt: this.model.liaccv.chgamt,
concur: this.model.liaccv.concur,
};
return params
},
// 公共组件setmod处理方式改变触发联动
changeSetmodModel (emitParams) {
let reqParams = {}
switch (emitParams.code) {
case 'processMethods':
reqParams = buildFn.buildSetglg(this.model, this.trnName);
this.calcPayDetail(reqParams)
break
case 'changeDsp':
let index = emitParams.index;
let setglgRequest = buildFn.buildSetglg(this.model, this.trnName);
setglgRequest.setglg = {setgll: emitParams.list};
this.setgllAccts(setglgRequest, index);
break
default:
return
}
}
},
};
export default {
"brtp.lidget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"lidgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"brtp.lidget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"lidgrp.rec.expdat":[
//{type: "date", required: false, message: "输入正确的日期"}
],
"lidgrp.cbs.opn1.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"lidgrp.cbs.opn1.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
],
"brtp.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"brdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"brtp.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"brdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"brdgrp.cbs.max.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"brdgrp.apl.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"brdgrp.cbs.opn1.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"brdgrp.cbs.opn1.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"brdgrp.apl.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"brdgrp.rec.rcvdat":[
//{type: "date", required: false, message: "输入正确的日期"}
],
"brdgrp.rec.advdat":[
//{type: "date", required: false, message: "输入正确的日期"}
],
"brdgrp.ben.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"brdgrp.rec.matdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"brdgrp.rec.stadat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"brdgrp.ben.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
// "brdgrp.rec.tenmaxday":[
// {type: "number", required: false, message: "必输项"},
// {max: 3,message:"长度不能超过3"}
// ],
"brdgrp.prb.pts.ref":[
{type: "string", required: true, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"brdgrp.prb.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"brtp.prbp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"brdgrp.rec.disdat":[
{type: "date", required: true, message: "输入正确的日期"}
],
"brdgrp.prb.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"brtp.prbp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"brdgrp.prb.namelc":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"brdgrp.rec.totcur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"brdgrp.rec.totamt":[
{max: 18,required: true,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"brdgrp.prb.pts.adrblk":[
{type: "string", required: false, message: "必输项"},
{max: 140,message:"长度不能超过140"}
],
"brdgrp.prb.dbfadrblkcn":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"brdgrp.prb.adrelc":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"brdgrp.cbs.max2.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"brdgrp.blk.chaded":[
//{type: "string", required: false, message: "必输项"},
{max: 210,message:"长度不能超过210"}
],
"brdgrp.blk.chaadd":[
//{type: "string", required: false, message: "必输项"},
{max: 210,message:"长度不能超过210"}
],
"brdgrp.rec.totcur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"brtp.acbp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"brdgrp.acb.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"brtp.acbp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"brdgrp.acb.namelc":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"brdgrp.acb.pts.adrblk":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"brdgrp.acb.dbfadrblkcn":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"brdgrp.acb.adrelc":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"brdgrp.blk.docdis":[
//{type: "string", required: false, message: "必输项"},
{max: 3500,message:"长度不能超过3500"}
],
"setmod.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"setmod.docamt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"setmod.zmqacc":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"mtabut.coninf.oitinf.oit.inftxt":[
//{type: "string", required: false, message: "必输项"},
//{max: 60,message:"长度不能超过60"}
],
"mtabut.coninf.oitset.oit.inftxt":[
//{type: "string", required: false, message: "必输项"},
//{max: 60,message:"长度不能超过60"}
],
"mtabut.coninf.conexedat":[
//{type: "date", required: false, message: "输入正确的日期"}
],
"mtabut.coninf.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"trnmod.trndoc.advnam":[
{type: "string", required: false, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"trnmod.trndoc.amdapl":[
{type: "string", required: false, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"trnmod.trndoc.advdoc":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"trnmod.trndoc.filrecv":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"trnmod.trndoc.doctrestm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"trnmod.trndoc.condocstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"trnmod.trndoc.rcvatt.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"brtp.furide":[
{type: "string", required: true, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"brdgrp.acb.namelc" :null,
"brdgrp.prb.adrelc" :null,
"brdgrp.blk.docdis" :null,
"brtp.furide" :null,
"brdgrp.acb.adrelc" :null,
"brdgrp.prb.pts.adrblk" :null,
"brdgrp.prb.namelc" :null,
"setmod.dspflg" :null,
"brdgrp.acb.pts.extkey" :null,
"brdgrp.rec.disdat" :null,
"brdgrp.prb.pts.nam" :null,
"brdgrp.ben.pts.nam" :null,
"brdgrp.acb.pts.adrblk" :null,
"brdgrp.prb.pts.extkey" :null,
"mtabut.coninf.conexedat" :null,
"brdgrp.prb.pts.ref" :null,
"brdgrp.apl.pts.nam" :null,
"setmod.docamt" :null,
"brdgrp.rec.totamt" :null,
}
\ No newline at end of file
import Pts from '~/components/business/commonModel/Pts';
import Pub from '~/components/business/commonModel/index.js';
export default class Brtacp{
constructor () {
this.data = {
gitp: {
swiftflg: '',
},
gidgrp: {
rec: {
branchinr: '00000047',
ownref: '', // Reference .gidgrp.rec.ownref
purposin: '', // Incoming Purpose .gidgrp.rec.purposin
purpos: '', // Outgoing Purpose .gidgrp.rec.purpos
hndtyp: '', // Handling Type .gidgrp.rec.hndtyp
gartyp: '', // Type of Undertaking .gidgrp.rec.gartyp
legfrm: '', // Form of Undertaking .gidgrp.rec.legfrm
demand: '', // Demand Indicator .gidgrp.rec.demand
fingua: '', // 是否对外担保 .gidgrp.rec.fingua
cfaguatyp: '', // 对外担保类型 .gidgrp.rec.cfaguatyp
cmtflg: '', // 跨境人民币保函 .gidgrp.rec.cmtflg
giduil: '', // Language of Undertak. .gidgrp.rec.giduil
vrfdat: '', // 核销日期 .gidgrp.rec.vrfdat
gtxinr: '', // Choice of Text .gidgrp.rec.gtxinr
fenlishi: '', // 是否分离式保函 .gidgrp.rec.fenlishi
atxinr: '', // Choice of Text .gidgrp.rec.atxinr
orddat: '', // Order Date .gidgrp.rec.orddat
expflg: '', // Unlimited Guarantee .gidgrp.rec.expflg
expdat: '', // Valid until .gidgrp.rec.expdat
liaflg: '', // Unlimited Liability .gidgrp.rec.liaflg
liadat: '', // Our Liability until .gidgrp.rec.liadat
inudat: '', // Inure Date .gidgrp.rec.inudat
nam: '', // Name .gidgrp.rec.nam
liatxtc: '', // Liability Condition .gidgrp.blk.liatxtc
delori: '', // Delivery of Undertak. .gidgrp.rec.delori
deloritxt: '', // Delivery of Undertak. .gidgrp.rec.deloritxt
sndto: '', // Undertaking Send to .gidgrp.rec.sndto
delto: '', // Deliv. To/Collection By .gidgrp.rec.delto
chato: '', // Own Charges Borne by .gidgrp.rec.chato
orcref: '', // Contract Reference .gidgrp.rec.orcref
orcdat: '', // Date from Original Contract .gidgrp.rec.orcdat
tenclsdat: '', // Closing Date .gidgrp.rec.tenclsdat
orccur: '', // Contract Amount .gidgrp.rec.orccur
orcamt: '0.00', // Contract Amount .gidgrp.rec.orcamt
acc: '', // A/c for Adv. Paym. Guar. .gidgrp.rec.acc
jurlaws20: '', // Governing Law .gidgrp.rec.jurlaws20
jurlaw: '', // Law of Jurisdiction .gidgrp.rec.jurlaw
tenref: '', // Tender Reference .gidgrp.rec.tenref
tendat: '', // Tender Date .gidgrp.rec.tendat
trmdat: '', // Latest Transmiss. Date .gidgrp.rec.trmdat
mannum: '', // 手册号码 .gidgrp.rec.mannum
bngcod: '', // 企业海关编码 .gidgrp.rec.bngcod
juscod: '', // 组织机构代码 .gidgrp.rec.juscod
cunqii: '', // 流动资金贷款利率档次 .gidgrp.rec.cunqii
bilvvv: 0, // 上浮比率 .gidgrp.rec.bilvvv
jurplc: '', // Place of Jurisdiction .gidgrp.rec.jurplc
reccnfdet: '', // Confirm. Instr. .gidgrp.rec.reccnfdet
cnfdet: '',
cnfsta: '', // Confirmation Status .gidgrp.rec.cnfsta
partcon: 0, // Partial Confirmation .gidgrp.rec.partcon
cnfdat: '', // Confirmation Date .gidgrp.rec.cnfdat
opndat: '',
opndatc: '', // Requested Issue Date .gidgrp.rec.opndatc
gartypc: '', // Undertaking Type .gidgrp.rec.gartypc
gartyptxtc: '', // Undertaking Type .gidgrp.blk.gartyptxtc
legfrmc: '', // Form of Undertaking .gidgrp.rec.legfrmc
demandc: '', // Demand Indicator .gidgrp.rec.demandc
stdwrduilc: '', // Requested Language .gidgrp.rec.stdwrduilc
gtxinrc: '', // Choice of Text .gidgrp.rec.gtxinrc
exptyp: '', // Expiry Type .gidgrp.rec.exptyp
deloritxtc: '', // Delivery of Undertak. .gidgrp.rec.deloritxtc
orcrefc: '', // Contract Reference .gidgrp.rec.orcrefc
tenclsdatc: '', // Closing Date .gidgrp.rec.tenclsdatc
orccurc: '', // Contract Amount .gidgrp.rec.orccurc
orcamtc: '', // Contract Amount .gidgrp.rec.orcamtc
accc: '', // A/c Adv. Paym. Guar. .gidgrp.rec.accc
jurlawc: '', // Governing Law .gidgrp.rec.jurlawc
jurlawtxtc: '', // Governing Law .gidgrp.rec.jurlawtxtc
jurplcc: '', // Place of Jurisdiction .gidgrp.rec.jurplcc
tenrefc: '', // Tender Reference .gidgrp.rec.tenrefc
tendatc: '', // Tender Date .gidgrp.rec.tendatc
trmdatc: '', // Latest Transmission .gidgrp.rec.trmdatc
orcratc: '', // Original Perc./ Rate .gidgrp.rec.orcratc
},
cbs: {
cnf: {
cur: '', // Confirmation Amount .gidgrp.cbs.cnf.cur
amt: '0.00', // Balance .gidgrp.cbs.cnf.amt
},
mac2: {
cur: '',
amt: '0.00',
},
mac: {
cur: '',
amt: '0.00',
},
max: {
cur: '', // Guarantee Amount .gidgrp.cbs.max.cur
amt: '0.00', // Guarantee Amount .gidgrp.cbs.max.amt
},
max2: {
cur: '',
amt: '0.00',
},
opc2: {
cur: '',
amt: '0.00',
},
opn1: {
cur: '', // Open Amount .gidgrp.cbs.opn1.cur
amt: '0.00', // Balance .gidgrp.cbs.opn1.amt
},
},
blk: {
apprul: '', // Applicable Rules .gidgrp.blk.apprul
apprultxt: '', // Applicable Rules .gidgrp.blk.apprultxt
exptxt: '', // Expiry Condition/ Evt. .gidgrp.blk.exptxt
atxexptxt: '', // Expiry Condition/ Evt. .gidgrp.blk.atxexptxt
liatxtc: '', // Liability Condition .gidgrp.blk.liatxtc
atxliatxtc: '', // Liability Condition .gidgrp.blk.atxliatxtc
deltoadr: '', // Delivery to Address .gidgrp.blk.deltoadr
trfcond: '', // Transfer Conditions .gidgrp.blk.trfcond
feetxt: '', // Additional Details to Code for Charges .gidgrp.blk.feetxt
preper: '',
atxpreper: '', // Presentation Instr. .gidgrp.blk.atxpreper
covgodsrv: '', // Object of Contract .gidgrp.blk.covgodsrv
orcplc: '', // Original Contract Place .gidgrp.blk.orcplc
addinf: '', // Additional Info .gidgrp.blk.addinf
gidtxt: '', // Guarantee Text with Variables .gidgrp.blk.gidtxt
gtxgidtxt: '', // Guarantee Text with Variables .gidgrp.blk.gtxgidtxt
apprulc: '', // Applicable Rules .gidgrp.blk.apprulc
feetxtc: '', // Additional Details to Code for Charges .gidgrp.blk.feetxtc
preperc: '', // Presentation Instr. .gidgrp.blk.preperc
orcplcc: '', // Original Contract Place - Local Undertaking Seq. C .gidgrp.blk.orcplcc
addinfc: '', // Additional Info - Local Undertaking Seq. C .gidgrp.blk.addinfc
gtxgidtxtc: '', // Guarantee Text with Variables - Counter Undertaking .gidgrp.blk.gtxgidtxtc
addamtcovc: '', // Covered .gidgrp.blk.addamtcovc
covgodsrvc: '', // Object of Contract - Local Undertaking Seq. C .gidgrp.blk.covgodsrvc
atxcovgodsrv: '',
atxcovgodsrvc: '', // Underly. Transact. Det. .gidgrp.blk.atxcovgodsrvc
},
ghd: {
segtyp: '', // 特殊保函类型 .gidgrp.ghd.segtyp
bustyp: '', // 业务类型 .gidgrp.ghd.bustyp
remark: '', // 备注 .gidgrp.ghd.remark
},
gidcxm: {
warran: '', // 被保证人 .gidgrp.gidcxm.warran
cxmflg: '', // 是否显示查询码 .gidgrp.gidcxm.cxmflg
benefi: '', // 受益人名称 .gidgrp.gidcxm.benefi
},
apc: {
pts: new Pts().data,
},
ctc: {
pts: new Pts().data,
},
bec: {
pts: new Pts().data,
},
ben: {
pts: new Pts().data,
},
iss: {
pts: new Pts().data,
},
adv: {
pts: new Pts().data,
},
apl: {
pts: new Pts().data,
},
con: {
pts: new Pts().data,
},
ctr: {
pts: new Pts().data,
},
atb: {
pts: new Pts().data,
},
avc: {
pts: new Pts().data,
},
cnr: {
pts: new Pts().data,
},
at2: {
pts: new Pts().data,
},
},
brdgrp: {
blk: {
chaded: '',
docdisflg: '',
chaadd: '',
docdis: ''
},
rec: {
totcur: '',
ownref: '',
disdat: '',
totamt: '',
nam: '',
docprbrol: ''
},
cbs: {
opn2: {
cur: ''
},
max: {
cur: '',
amt: ''
},
max2: {
amt: ''
}
}
},
brtp: {
furide: ''
},
lidgrp: {
rec: {
expdat: '',
ownref: ''
},
cbs: {
opn1: {
cur: '',
amt: ''
}
}
},
gcdgrp: {
prb: {
adrelc: '',
dbfadrblkcn: '',
namelc: '',
pts: new Pts().data,
},
rec: {
clmdat: '',
ownref: '',
payrol: '',
nam: '',
docprbrol: '',
},
oth: {
adrelc: '',
dbfadrblkcn: '',
namelc: '',
pts: new Pts().data,
},
cbs: {
opn1: {
cur: '',
amt: ''
},
max: {
cur: '',
amt: ''
}
},
ben: {
pts: new Pts().data,
},
apl: {
pts: new Pts().data,
},
adv: {
pts: new Pts().data,
},
apl: {
pts: new Pts().data,
},
},
liaall: {
concur: '',
liaccv: {
concur: '',
newamt: '',
dnfmod: {
zhruzh: '',
kehuzh: '',
intdsp: '',
lxzyzh: '',
pridsp: '',
yewudh: '',
qicuje: '',
ccvtyp: '',
tizamt: '',
zhqtyp: '',
stm8023: '',
zhhuye: '',
zhqucs: ''
},
relcshpct: '',
gleflg: '',
addinf: '',
newresamt: '',
chgcurflg: '',
pctresamt: '',
cshpct: '',
totcovamt: ''
},
outpct: '',
exttotamt: '',
exttotoldamt: '',
outamt: '',
misamt: '',
con: {
pts: new Pts().data,
},
iss: {
pts: new Pts().data,
},
ben: {
pts: new Pts().data,
},
atb: {
pts: new Pts().data,
},
avc: {
pts: new Pts().data,
},
},
trnmod: {
trndia: {
usrget: {
sdamod: {
seainf: ''
}
},
atpget: {
sdamod: {
seainf: '',
dadsnd: ''
}
},
usr: {
extkey: ''
},
diamodflg: '',
dspstm: '',
atp: {
cod: ''
},
diarec: {
prechkdat: '',
inftxt: '',
usr: '',
ptyextkey: '',
paycur: '',
dat: '',
ownusg: '',
cod: '',
donflg: '',
nam: '',
payamt: '',
ptynam: ''
},
atptxt: ''
},
ptsmod: {
adrp: {
prtpanblk: ''
}
},
trndoc: {
condocstm: '',
filrecv: '',
amdapl: '',
doclbl: '',
doctrestm: '',
shwout: '',
shwinc: '',
amdnam: '',
advnam: '',
advdoc: '',
advlabel: '',
rcvatt: {
seainf: ''
}
},
docimm: {
xmldocblk: '',
prtswtpblk: '',
ascin: '',
prtswtrpblk: ''
},
ctr: {
pts: new Pts().data,
},
con: {
pts: new Pts().data,
},
iss: {
pts: new Pts().data,
},
},
setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod,
liaall: new Pub().data.Liaall,
liaccv: new Pub().data.Liaccv,
docpan: new Pub().data.Docpan,
};
}
}
<template>
<div class="eibs">
<c-col :span="24">
<!-- ---------------Left--------------- -->
<c-col :span="12">
<c-col :span="24">
<el-form-item label="信用证编号" prop="lidgrp.rec.ownref">
<c-fullbox>
<c-input
v-model="model.lidgrp.rec.ownref"
maxlength="16"
placeholder="请输入信用证编号"
disabled
></c-input>
<template slot="footer">
<c-button
style="
margin: 0 10px 0 10px;
padding: 0 12px;
"
size="small"
type="primary"
>
<i class="el-icon-info" style="font-size:15px"></i>
</c-button>
<c-button
style="margin: 0 0"
size="small"
type="primary"
:disabled="!this.flag && model.lidgrp.rec.ownref == ''? false:true"
>
获取
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="单据编号" prop="brdgrp.rec.ownref">
<c-fullbox>
<c-input
v-model="model.brdgrp.rec.ownref"
maxlength="16"
placeholder="请输入单据参考号"
disabled
></c-input>
<template slot="footer">
<c-button
style="
margin: 0 10px 0 10px;
padding: 0 12px;
"
size="small"
type="primary"
>
<i class="el-icon-info" style="font-size:15px"></i>
</c-button>
<c-button
style="margin: 0 0"
size="small"
type="primary"
:disabled="!this.flag && model.brdgrp.rec.ownref == ''? false:true"
>
获取
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="生效日期" prop="lidgrp.rec.expdat">
<c-date-picker
type="date"
v-model="model.lidgrp.rec.expdat"
style="width: 100%"
placeholder="请选择日期"
disabled
></c-date-picker>
</el-form-item>
</c-col>
</c-col>
<!-- ---------------Right--------------- -->
<c-col :span="12">
<c-col :span="12">
<el-form-item label="开证金额" prop="lidgrp.cbs.opn1.cur">
<c-select
disabled
v-model="model.lidgrp.cbs.opn1.cur"
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="12">
<el-form-item
style="text-align: left"
label-width="5px"
prop="lidgrp.cbs.opn1.amt"
>
<c-input
disabled
v-model="model.lidgrp.cbs.opn1.amt"
style="text-align: left; width: 100%"
placeholder=""
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="单据简略信息"
prop="brdgrp.rec.nam"
>
<c-input
v-model="model.brdgrp.rec.nam"
placeholder=""
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
</c-col>
<c-col :span="24">
<c-litTemp
:model="model"
:argadr="{
title: '',
trans: 'brdgrp',
trans1:'brtp',
}"
:rol="[
{
title: '申请人',
trans: 'apl',
},
{
title: '受益人',
trans: 'ben',
},
{
title: '寄单行',
trans: 'prb',
},
]"
:isAdvdat="true"
:isMattxtlab="true"
:isTenmaxday="true"
>
</c-litTemp>
</c-col>
<c-col :span="24">
<!-- ---------------Left--------------- -->
<c-col :span="12">
<c-col :span="24">
<el-form-item
label="进一步确认"
prop="brtp.furide"
>
<c-select
v-model="model.brtp.furide"
style="width: 100%"
placeholder="请选择内容"
>
<el-option
v-for="item in furide"
: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="brdgrp.rec.disdat"
>
<c-date-picker
type="date"
v-model="model.brdgrp.rec.disdat"
style="width: 100%"
placeholder="请选择不符点通知日期"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="13">
<el-form-item
label="通知金额总和"
prop="brdgrp.rec.totcur"
>
<c-input
v-model="model.brdgrp.rec.totcur"
maxlength="3"
placeholder="请选择币种"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item
label=""
prop="brdgrp.rec.totamt"
label-width="5px"
>
<c-input
v-model="model.brdgrp.rec.totamt"
placeholder="请输入金额"
></c-input>
</el-form-item>
</c-col>
</c-col>
</c-col>
<!-- ---------------Right--------------- -->
<c-col :span="12">
<c-col :span="24">
<el-form-item
label="交单行角色"
prop="brdgrp.rec.docprbrol"
>
<c-select
disabled
v-model="model.brdgrp.rec.docprbrol"
style="width: 100%"
placeholder="请选择"
>
<el-option
v-for="item in codes.docprbrol"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-ptap1
:model="model"
:argadr="{
title: '',
grp: 'brdgrp',
rol: 'prb',
}"
:disabled="true"
:isAdrblk="false"
>
</c-ptap1>
</c-col>
</c-col>
</c-col>
</div>
</template>
<script>
import event from '../event'
import CurAmt from "~/views/Public/CurAmt";
import LitTemp from "~/views/Public/LitTemp";
import Ptap1 from "~/views/Public/Ptap1";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
components: {
"c-curAmt": CurAmt,
"c-litTemp": LitTemp,
"c-ptap1": Ptap1,
},
data() {
return {
furide: [
{ label: "议付", value: "NEG" },
{ label: "偿付", value: "REI" },
{ label: "见72域", value: "SEE" },
],
flag: true,
};
},
methods: {},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames">
<!--el-collapse-item title="备查表" name="addbcb">
<c-addbcb :model="model" :codes="codes" />
</el-collapse-item-->
<el-collapse-item title="附言" name="coninfp">
<c-coninfp :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import event from '../event'
import Coninfp from "~/views/Public/Coninfp";
export default {
components: {
"c-coninfp": Coninfp,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ["coninfp"],
};
},
methods: {},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs">
<!-- ---------------Left--------------- -->
<c-col :span="12">
<c-col :span="24">
<c-col :span="13">
<el-form-item
label="单据金额"
prop="brdgrp.cbs.max.cur"
>
<c-select
v-model="model.brdgrp.cbs.max.cur"
style="width: 100%"
placeholder="请选择单据金额"
disabled
>
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item
label=""
label-width="5px"
prop="brdgrp.cbs.max.amt"
>
<c-input
v-model="model.brdgrp.cbs.max.amt"
placeholder="请输入单据金额"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="13">
<el-form-item label="提取附加金额" prop="brdgrp.cbs.opn2.cur">
<c-select
v-model="model.brdgrp.cbs.opn2.cur"
style="width: 100%"
placeholder="请选择附加金额"
disabled
>
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item
label=""
label-width="5px"
prop="brdgrp.cbs.max2.amt"
>
<c-input
v-model="model.brdgrp.cbs.max2.amt"
placeholder="请输入附加金额"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="13">
<el-form-item
label="待支付金额"
prop="brdgrp.rec.totcur"
>
<c-select
v-model="model.brdgrp.rec.totcur"
style="width: 100%"
placeholder="请选择币种"
disabled
>
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item
label=""
label-width="5px"
prop="brdgrp.rec.totamt"
>
<c-input
v-model="model.brdgrp.rec.totamt"
placeholder="请输入"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-ptap1
:model="model"
:argadr="{
title: '账户银行',
grp: 'brdgrp',
rol: 'acb',
}"
:disabled="true"
:disabled1="true"
>
</c-ptap1>
</c-col>
</c-col>
<!-- ---------------Right--------------- -->
<c-col :span="12">
<c-col :span="24">
<el-form-item label="已扣除费用" prop="brdgrp.blk.chaded">
<c-input
type="textarea"
v-model="model.brdgrp.blk.chaded"
maxlength="210"
:rows="4"
show-word-limit
placeholder="请输入已扣除费用"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="已添加费用" prop="brdgrp.blk.chaadd">
<c-input
type="textarea"
v-model="model.brdgrp.blk.chaadd"
maxlength="210"
:rows="4"
show-word-limit
placeholder="请输入已添加费用"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="不符点信息" prop="brdgrp.blk.docdis">
<c-input
type="textarea"
v-model="model.brdgrp.blk.docdis"
maxlength="3500"
:rows="8"
show-word-limit
placeholder="请输入不符点"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="brdgrp.blk.docdisflg">
<c-checkbox v-model="model.brdgrp.blk.docdisflg" disabled
>不符点修改</c-checkbox
>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import event from '../event'
import Ptap1 from "~/views/Public/Ptap1";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
components: {
"c-ptap1": Ptap1,
},
data() {
return {};
},
methods: {},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames">
<el-collapse-item title="接受不符点" name="acpp">
<c-acpp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="不符点通知" name="mt750p">
<c-mt750p :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import event from '../event'
import Acpp from "./Acpp";
import Mt750p from "./Mt750p";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
components: {
"c-acpp":Acpp,
"c-mt750p":Mt750p,
},
data() {
return {
activeNames:["acpp"],
};
},
methods: {},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eContainer">
<c-page title="进口信用证单据接受不符点">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<el-tab-pane label="业务信息" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="费用/账务" name="setmod">
<c-content>
<m-setmod
:model="model"
:codes="codes"
@changeSetmodModel="changeSetmodModel"
/>
</c-content>
</el-tab-pane>
<!--PD000510 -->
<el-tab-pane label="备查/附言" name="addbcb">
<c-content>
<div class="eibs-tab">
<m-addbcb :model="model" :codes="codes" />
</div>
</c-content>
</el-tab-pane>
<!--PD000529 -->
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<m-docpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000546 -->
<el-tab-pane label="附件信息" name="doctre">
<c-content>
<m-doctre :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
</c-function-btn>
</c-page>
</div>
</template>
<script>
import event from '../event';
import commonFuncs from "~/mixin/commonFuncs";
import CodeTable from "~/config/CodeTable"
import formRules from '../model/check'
import Brtacp from "../model"
import Acpp from "./Acpp"
import Ovwp from "./Ovwp"
import Mt750p from "./Mt750p"
import Addbcb from "./Addbcb";
import Engp from "~/components/business/engp/views";
import Ccvpan from "~/components/business/ccvpan/views";
import Setmod from "~/components/business/setmod/views";
import Glentry from "~/components/business/glentry/views";
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/components/business/doctre/views";
import Limitbody from "~/components/business/limitbody/views";
export default {
name: "Brtacp",
components:{
"m-acpp" : Acpp,
"m-mt750p" : Mt750p,
"m-docpan" : Docpan,
"m-doctre" : Doctre,
"m-addbcb": Addbcb,
"m-ovwp": Ovwp,
"m-engp": Engp,
"m-ccvpan": Ccvpan,
"m-setmod": Setmod,
"m-glentry": Glentry,
"m-docpan": Docpan,
"m-doctre": Doctre,
"m-limitbody": Limitbody,
},
provide() {
return {
root: this
}
},
mixins: [event,commonFuncs],
data(){
return {
tabVal: "ovwp",
trnName: "brtacp",
model: new Brtacp().data,
rules: formRules,
codes: {
...CodeTable
},
activeNames: ["setpan"],
}
},
methods:{
},
mounted () {
this.init()
},
}
</script>
<style>
</style>
......@@ -27,5 +27,7 @@ const Business = [
{ path: 'gitfre', component: () => import('~/business/gitfre/views'), name: 'gitfre', meta: { title: '保函自由格式报文' } },
{ path: 'fctopn', component: () => import('~/business/fctopn/views'), name: 'fctopn', meta: { title: '保证金收取' } },
{ path: 'brtacp', component: () => import('~/business/brtacp/views'), name: 'brtacp', meta: { title: '进口信用证单据接受不符点' } },
]
export default Business
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment