Commit 7b91eb91 by WF1020

Merge branch 'settle-test-20230110' of http://114.115.138.98:8900/fukai/vue-gjjs…

Merge branch 'settle-test-20230110' of http://114.115.138.98:8900/fukai/vue-gjjs into settle-test-20230110
parents 6169472c ddacf484
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/gctrop/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/gctrop/getOwnRef', params);
if (res.respCode == SUCCESS) {
loading.close();
this.model.gidgrp.rec.ownref = res.data;
}
},
// 获取gctrop弹框表格数据
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;
}
},
// 选中gctrop弹框表格的行数据
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/gctrop/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
}
}
},
};
import Pts from '~/components/business/commonModel/Pts';
import Pub from '~/components/business/commonModel/index.js';
export default class Gctrop{
constructor () {
this.data = {
setmod: {
setglg: {
labdspflg: ''
},
ref: '',
docamttyplab: '',
doccur: '',
zmqacc: '',
dspflg: '',
xreflg: '',
zmqacclab: '',
retmsg: '',
docamt: ''
},
mtabut: {
coninf: {
oitset: {
labinftxt: '',
oit: {
inftxt: '',
inflev: ''
}
},
oitinf: {
labinftxt: '',
oit: {
inftxt: '',
inflev: ''
}
},
usr: {
extkey: ''
},
conexedat: ''
}
},
gctp: {
recget: {
sdamod: {
seainf: '',
dadsnd: ''
}
},
aplmullab: '',
prechkdat: '',
prbp: {
ptsget: {
sdamod: {
seainf: '',
dadsnd: ''
}
}
},
liafldlab: '',
adaflg: '',
othp: {
ptsget: {
sdamod: {
seainf: '',
dadsnd: ''
}
}
},
explab: '',
lialab: '',
expfldlab: '',
ischktyp: '',
gidget: {
sdamod: {
seainf: '',
dadsnd: ''
}
}
},
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,
},
},
gidgrp: {
rec: {
expdat: '',
liadat: '',
ownref: '',
gartyp: ''
},
ghd: {
wahnum: '',
remark: '',
bustyp: '',
segtyp: ''
},
cbs: {
opn1: {
cur: '',
amt: ''
}
},
ctr: {
pts: new Pts().data,
},
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,
},
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,
},
},
gitp: {
chkpreper: '',
oldgidtxt: '',
swiftflg: '',
gidtxtmodflgc: '',
indirectswiadd: '',
exptxtmodflg: '',
prepercmodflg: '',
covgodsrvmodflg: '',
covgodc: {
chkast: ''
},
gidtxt: '',
liatxtcmodflg: '',
usr: {
extkey: ''
},
chkgidtxtc: '',
prepermodflg: '',
aacp: {
aacmod: {
addamtflg: ''
}
},
chargic: {
chkast: ''
},
gidtxtmodflg: '',
gtx: {
gidtxt: ''
},
covgodsrvcmodflg: '',
chargi: {
chkast: ''
},
covgod: {
chkast: ''
},
chkgidtxt: '',
dzbhflg: '',
chkpreperc: '',
oldgtxgidtxt: '',
inc760: ''
},
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,
};
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndiaSavdia">
{{$t('trndia.CF001000')}}
</c-button>
</c-col>
<!-- SF001004 : Diary Reason -->
<c-col :span="12">
<el-form-item :label="$t('trndia.SF001004')" prop="trnmod.trndia.diarec.cod">
<c-select v-model="model.trnmod.trndia.diarec.cod" style="width:100%" :placeholder="$t('other.please_enter')+$t('trndia.SF001004')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.trnmod.trndia.diarec.donflg">{{$t('trndia.CF001001')}}</c-checkbox>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndiaDiaprt">
{{$t('trndia.CF001083')}}
</c-button>
</c-col>
<!-- SF001006 : Date of Diary -->
<c-col :span="12">
<el-form-item :label="$t('trndia.SF001006')" prop="trnmod.trndia.diarec.dat">
<c-date-picker type="date" v-model="model.trnmod.trndia.diarec.dat" style="width:100%" :placeholder="$t('other.please_enter')+$t('trndia.SF001006')"></c-date-picker>
</el-form-item>
</c-col>
<!-- SF001077 : Status -->
<!-- SF001005 : Description -->
<c-col :span="12">
<c-form-item :label="$t('trndia.SF001005')" prop="trnmod.trndia.diarec.nam">
<c-input v-model="model.trnmod.trndia.diarec.nam" maxlength="40" :placeholder="$t('other.please_enter')+$t('trndia.SF001005')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="used to define a codetable that to be show as status in Grid" prop="trnmod.trndia.diamodflg">
<c-select v-model="model.trnmod.trndia.diamodflg" style="width:100%" :placeholder="$t('other.please_enter')+'used to define a codetable that to be show as status in Grid'">
</c-select>
</el-form-item>
</c-col>
<!-- SF001011 : Detailed Information -->
<c-col :span="12">
<c-form-item :label="$t('trndia.SF001011')" prop="trnmod.trndia.diarec.inftxt">
<c-input type="textarea" v-model="model.trnmod.trndia.diarec.inftxt" maxlength="65" show-word-limit :placeholder="$t('other.please_enter')+$t('trndia.SF001011')" ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="pty extkey" prop="trnmod.trndia.diarec.ptyextkey">
<c-input v-model="model.trnmod.trndia.diarec.ptyextkey" maxlength="24" :placeholder="$t('other.please_enter')+'pty extkey'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Pay CUR" prop="trnmod.trndia.diarec.paycur">
<c-input v-model="model.trnmod.trndia.diarec.paycur" maxlength="3" :placeholder="$t('other.please_enter')+'Pay CUR'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item :label="$t('trndia.SG001129')" prop="trnmod.trndia.diarec.payamt">
<c-input v-model="model.trnmod.trndia.diarec.payamt" :placeholder="$t('other.please_enter')+$t('trndia.SG001129')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="预计核验日期" prop="trnmod.trndia.diarec.prechkdat">
<c-date-picker type="date" v-model="model.trnmod.trndia.diarec.prechkdat" style="width:100%" :placeholder="$t('other.please_enter')+'预计核验日期'"></c-date-picker>
</el-form-item>
</c-col>
<!-- SG001128 : 客户号 -->
<!-- SG001129 : 付款币种 -->
<!-- SG001130 : 付款金额 -->
<!-- SG001126 : 预计核验日期 -->
<c-col :span="12">
<c-form-item label="pty name" prop="trnmod.trndia.diarec.ptynam">
<c-input v-model="model.trnmod.trndia.diarec.ptynam" maxlength="100" :placeholder="$t('other.please_enter')+'pty name'"></c-input>
</c-form-item>
</c-col>
<!-- SG001127 : 客户名称 -->
<c-col :span="12">
<c-form-item label="Drag Drop Sender" prop="trnmod.trndia.atpget.sdamod.dadsnd">
<c-input v-model="model.trnmod.trndia.atpget.sdamod.dadsnd" :placeholder="$t('other.please_enter')+'Drag Drop Sender'"></c-input>
</c-form-item>
</c-col>
<!-- SF001010 : Start Transaction -->
<c-col :span="12">
<c-form-item :label="$t('trndia.SF001010')" prop="trnmod.trndia.atp.cod">
<c-input v-model="model.trnmod.trndia.atp.cod" maxlength="6" :placeholder="$t('other.please_enter')+$t('trndia.SF001010')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="" prop="trnmod.trndia.atpget.sdamod.seainf">
<c-input v-model="model.trnmod.trndia.atpget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Application Transaction Profile Text" prop="trnmod.trndia.atptxt">
<c-input v-model="model.trnmod.trndia.atptxt" maxlength="50" :placeholder="$t('other.please_enter')+'Application Transaction Profile Text'"></c-input>
</c-form-item>
</c-col>
<!-- SF001008 : Responsible User -->
<c-col :span="12">
<c-form-item :label="$t('trndia.SF001008')" prop="trnmod.trndia.usr.extkey">
<c-input v-model="model.trnmod.trndia.usr.extkey" maxlength="8" :placeholder="$t('other.please_enter')+$t('trndia.SF001008')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="" prop="trnmod.trndia.usrget.sdamod.seainf">
<c-input v-model="model.trnmod.trndia.usrget.sdamod.seainf" :placeholder="$t('other.please_enter')+''"></c-input>
</c-form-item>
</c-col>
<!-- SF001007 : Entered by -->
<!-- SF001009 : Resp. Group -->
<c-col :span="12">
<el-form-item :label="$t('trndia.SF001009')" prop="trnmod.trndia.diarec.ownusg">
<c-select v-model="model.trnmod.trndia.diarec.ownusg" style="width:100%" :placeholder="$t('other.please_enter')+$t('trndia.SF001009')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Entered by" prop="trnmod.trndia.diarec.usr">
<c-input v-model="model.trnmod.trndia.diarec.usr" maxlength="8" :placeholder="$t('other.please_enter')+'Entered by'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndiaDiaexi">
{{$t('trndia.CF001002')}}
</c-button>
</c-col>
</div>
</template>
<script>
import event from '../event'
export default {
components: { },
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
methods: {},
created () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-form-item label="Display Stream of Diaries" prop="trnmod.trndia.dspstm">
<c-input v-model="model.trnmod.trndia.dspstm" :placeholder="$t('other.please_enter')+'Display Stream of Diaries'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndiaDia">
{{$t('trndia.CF001030')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndiaDiadsp">
{{$t('trndia.CF001029')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndiaDiamod">
{{$t('trndia.CF001025')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" icon="el-icon-delete" @click="onTrndiaDiadel">
{{$t('trndia.CF001026')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndiaDiaexi2">
{{$t('trndia.CF001027')}}
</c-button>
</c-col>
</div>
</template>
<script>
import event from '../event'
export default {
components: { },
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
methods: {},
created () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<!-- S0000004 : 保证金账户 -->
<c-col :span="12">
<c-form-item :label="$t('dnfmod.S0000004')" prop="liaall.liaccv.dnfmod.kehuzh">
<c-input v-model="model.liaall.liaccv.dnfmod.kehuzh" maxlength="21" :placeholder="$t('other.please_enter')+$t('dnfmod.S0000004')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onDnfmodGet">
{{$t('dnfmod.C0000101')}}
</c-button>
</c-col>
<!-- S0000003 : 操作类型 -->
<c-col :span="12">
<el-form-item :label="$t('dnfmod.S0000003')" prop="liaall.liaccv.dnfmod.ccvtyp">
<c-select v-model="model.liaall.liaccv.dnfmod.ccvtyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('dnfmod.S0000003')">
</c-select>
</el-form-item>
</c-col>
<!-- S0000102 : 支取类型 -->
<c-col :span="12">
<el-form-item :label="$t('dnfmod.S0000102')" prop="liaall.liaccv.dnfmod.zhqtyp">
<c-select v-model="model.liaall.liaccv.dnfmod.zhqtyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('dnfmod.S0000102')">
</c-select>
</el-form-item>
</c-col>
<!-- S0000105 : 支取次数 -->
<c-col :span="12">
<c-form-item label="支取次数" prop="liaall.liaccv.dnfmod.zhqucs">
<c-input v-model="model.liaall.liaccv.dnfmod.zhqucs" maxlength="2" :placeholder="$t('other.please_enter')+'支取次数'"></c-input>
</c-form-item>
</c-col>
<!-- S0000103 : 部分提支金额 -->
<c-col :span="12">
<c-form-item :label="$t('dnfmod.S0000103')" prop="liaall.liaccv.dnfmod.tizamt">
<c-input v-model="model.liaall.liaccv.dnfmod.tizamt" :placeholder="$t('other.please_enter')+$t('dnfmod.S0000103')"></c-input>
</c-form-item>
</c-col>
<!-- S0000108 : 业务代号 -->
<c-col :span="12">
<c-form-item label="业务代号" prop="liaall.liaccv.dnfmod.yewudh">
<c-input v-model="model.liaall.liaccv.dnfmod.yewudh" maxlength="4" :placeholder="$t('other.please_enter')+'业务代号'"></c-input>
</c-form-item>
</c-col>
<!-- S0000026 : 本金转入账户 -->
<c-col :span="12">
<el-form-item :label="$t('dnfmod.S0000026')" prop="liaall.liaccv.dnfmod.pridsp">
<c-select v-model="model.liaall.liaccv.dnfmod.pridsp" style="width:100%" :placeholder="$t('other.please_enter')+$t('dnfmod.S0000026')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('dnfmod.S0000026')" prop="liaall.liaccv.dnfmod.zhruzh">
<c-select v-model="model.liaall.liaccv.dnfmod.zhruzh" style="width:100%" :placeholder="$t('other.please_enter')+$t('dnfmod.S0000026')">
</c-select>
</el-form-item>
</c-col>
<!-- S0000111 : 起存金额 -->
<c-col :span="12">
<c-form-item label="起存金额" prop="liaall.liaccv.dnfmod.qicuje">
<c-input v-model="model.liaall.liaccv.dnfmod.qicuje" :placeholder="$t('other.please_enter')+'起存金额'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onDnfmodQcget">
{{$t('dnfmod.C0000115')}}
</c-button>
</c-col>
<!-- S0000106 : 利息转入账户 -->
<c-col :span="12">
<el-form-item :label="$t('dnfmod.S0000106')" prop="liaall.liaccv.dnfmod.intdsp">
<c-select v-model="model.liaall.liaccv.dnfmod.intdsp" style="width:100%" :placeholder="$t('other.please_enter')+$t('dnfmod.S0000106')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('dnfmod.S0000106')" prop="liaall.liaccv.dnfmod.lxzyzh">
<c-select v-model="model.liaall.liaccv.dnfmod.lxzyzh" style="width:100%" :placeholder="$t('other.please_enter')+$t('dnfmod.S0000106')">
</c-select>
</el-form-item>
</c-col>
<!-- S0000104 : 帐户余额 -->
<c-col :span="12">
<c-form-item label="帐户余额" prop="liaall.liaccv.dnfmod.zhhuye">
<c-input v-model="model.liaall.liaccv.dnfmod.zhhuye" :placeholder="$t('other.please_enter')+'帐户余额'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="8023STREAM" prop="liaall.liaccv.dnfmod.stm8023">
<c-input v-model="model.liaall.liaccv.dnfmod.stm8023" :placeholder="$t('other.please_enter')+'8023STREAM'"></c-input>
</c-form-item>
</c-col>
</div>
</template>
<script>
import event from '../event'
export default {
components: { },
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
methods: {},
created () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<!-- S0000552 : Outgoing Correspondence, Attachments and other Documents -->
<c-col :span="12">
<c-form-item label="File Receiver" prop="trnmod.trndoc.filrecv">
<c-input v-model="model.trnmod.trndoc.filrecv" :placeholder="$t('other.please_enter')+'File Receiver'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="Document tree" prop="trnmod.trndoc.doctrestm">
<c-input v-model="model.trnmod.trndoc.doctrestm" :placeholder="$t('other.please_enter')+'Document tree'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndocButshw">
{{$t('trndoc.CF000547')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndocButadd">
{{$t('trndoc.CF000548')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndocButnew">
{{$t('trndoc.CF000553')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndocButattto">
{{$t('trndoc.CG001184')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" icon="el-icon-delete" @click="onTrndocButdel">
{{$t('trndoc.CF000549')}}
</c-button>
</c-col>
<c-col :span="12">
<span v-text="model.trnmod.trndoc.doclbl" data-path=".trnmod.trndoc.doclbl" > </span>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.trnmod.trndoc.shwinc">{{$t('trndoc.CF000556')}}</c-checkbox>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.trnmod.trndoc.shwout">{{$t('trndoc.CF000557')}}</c-checkbox>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onTrndocButatt">
{{$t('trndoc.CF000551')}}
</c-button>
</c-col>
<c-col :span="12">
<c-form-item label="Connected Documents" prop="trnmod.trndoc.condocstm">
<c-input v-model="model.trnmod.trndoc.condocstm" :placeholder="$t('other.please_enter')+'Connected Documents'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="" prop="trnmod.trndoc.rcvatt.seainf">
<c-input v-model="model.trnmod.trndoc.rcvatt.seainf" :placeholder="$t('other.please_enter')+''"></c-input>
</c-form-item>
</c-col>
</div>
</template>
<script>
import event from '../event'
export default {
components: { },
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
methods: {},
created () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-form-item label="XMLPanel prtpan的内置block" prop="trnmod.ptsmod.adrp.prtpanblk">
<c-input type="textarea" v-model="model.trnmod.ptsmod.adrp.prtpanblk" maxlength="200" show-word-limit :placeholder="$t('other.please_enter')+'XMLPanel prtpan的内置block'" ></c-input>
</c-form-item>
</c-col>
</div>
</template>
<script>
import event from '../event'
export default {
components: { },
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
methods: {},
created () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-form-item label="XMLPanel prtswtp的内置block" prop="trnmod.docimm.prtswtpblk">
<c-input type="textarea" v-model="model.trnmod.docimm.prtswtpblk" maxlength="200" show-word-limit :placeholder="$t('other.please_enter')+'XMLPanel prtswtp的内置block'" ></c-input>
</c-form-item>
</c-col>
</div>
</template>
<script>
import event from '../event'
export default {
components: { },
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
methods: {},
created () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-form-item label="Message as stream" prop="trnmod.docimm.ascin">
<c-input v-model="model.trnmod.docimm.ascin" :placeholder="$t('other.please_enter')+'Message as stream'"></c-input>
</c-form-item>
</c-col>
</div>
</template>
<script>
import event from '../event'
export default {
components: { },
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
methods: {},
created () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-form-item label="XMLPanel prtswtrp的内置block" prop="trnmod.docimm.prtswtrpblk">
<c-input type="textarea" v-model="model.trnmod.docimm.prtswtrpblk" maxlength="200" show-word-limit :placeholder="$t('other.please_enter')+'XMLPanel prtswtrp的内置block'" ></c-input>
</c-form-item>
</c-col>
</div>
</template>
<script>
import event from '../event'
export default {
components: { },
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
methods: {},
created () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-form-item label="XMLPanel xmldoc的内置block" prop="trnmod.docimm.xmldocblk">
<c-input type="textarea" v-model="model.trnmod.docimm.xmldocblk" maxlength="200" show-word-limit :placeholder="$t('other.please_enter')+'XMLPanel xmldoc的内置block'" ></c-input>
</c-form-item>
</c-col>
</div>
</template>
<script>
import event from '../event'
export default {
components: { },
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
methods: {},
created () {},
};
</script>
<style>
</style>
<template>
<div class="eContainer">
<c-page title="保函索赔注销后激活">
<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="tabClick">
<!--gctp PD000047 Overview -->
<el-tab-pane :label="$t('gctp.PD000047')" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="费用/账务" name="setpan">
<c-content>
<m-setmod
:model="model"
:codes="codes"
@changeSetmodModel="changeSetmodModel"
/>
</c-content>
</el-tab-pane>
<el-tab-pane label="备查/附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000529 -->
<el-tab-pane label="报文/面函" name="docpan">
<m-docpan :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000546 -->
<el-tab-pane label="附件信息" name="doctre">
<m-doctre :model="model" :codes="codes" />
</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 Api from "~/service/Api"
import event from '../event'
import operationFunc from "~/mixin/operationFunc";
import formRules from '../model/check'
import CodeTable from "~/config/CodeTable";
import Gctrop from "../model";
import Ovwp from "./Ovwp"
import Docpan from "~/components/business/docpan/views";
import Coninfp from "~/components/business/coninfp/views";
import Doctre from "~/components/business/doctre/views";
import Setmod from "~/components/business/setmod/views";
export default {
name: "Gctrop",
components:{
"m-ovwp" : Ovwp,
"m-docpan" : Docpan,
"m-coninfp" : Coninfp,
"m-doctre" : Doctre,
"m-setmod": Setmod,
},
provide() {
return {
root: this
}
},
mixins: [event,operationFunc],
data(){
return {
tabVal: "ovwp",
trnName: "gctrop",
model: new Gctrop().data,
rules: formRules,
codes: {
...CodeTable
},
}
},
methods:{},
mounted () {
this.init()
},
};
</script>
<style>
</style>
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 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";
import buildFn from './buildCommons.js';
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/gitadd/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/gitadd/getOwnRef', params);
if (res.respCode == SUCCESS) {
loading.close();
this.model.gidgrp.rec.ownref = res.data;
}
},
// 获取gitadd弹框表格数据
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;
}
},
// 选中gitadd弹框表格的行数据
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/gitadd/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
}
}
},
};
import Pts from '~/components/business/commonModel/Pts';
import Pub from '~/components/business/commonModel/index.js';
export default class Gitadd {
constructor() {
this.data = {
rskmod: {
cda: {
cfeogudamount: '',
cfeogudcurr: '',
useofunds: '',
cfeogudad: ''
},
inftxt: '',
fentyp: '',
cdaflg: ''
},
gidgrp: {
blk: {
covgodsrv: '',
deltoadr: '',
gtxgidtxtc: '',
gartyptxtc: '',
atxpreper: '',
atxliatxtc: '',
preper: '',
preperc: '',
addinfc: '',
atxexptxt: '',
gidtxt: '',
addinf: '',
orcplc: '',
axtcovgodsrv: '',
exptxt: '',
atxcovgodsrvc: '',
trfcondc: '',
covgodsrvc: '',
apprulc: '',
feetxtc: '',
apprultxtc: '',
feetxt: '',
liatxtc: '',
trfcond: '',
apprul: '',
gtxgidtxt: '',
addamtcovc: '',
gidtxtc: '',
deltoadrc: '',
apprultxt: '',
orcplcc: ''
},
ctr: {
pts: new Pts().data,
},
bec: {
pts: new Pts().data,
},
ghd: {
wahnum: '',
remark: '',
bustyp: '',
segtyp: ''
},
con: {
dbfadrblkcn: '',
pts: new Pts().data,
},
cnr: {
pts: new Pts().data,
},
iss: {
pts: new Pts().data,
},
ben: {
pts: new Pts().data,
},
atb: {
pts: new Pts().data,
},
avc: {
pts: new Pts().data,
},
gidcxm: {
benefi: '',
cxmflg: '',
warran: ''
},
rec: {
acc: '',
deloritxt: '',
cunqii: '',
bngcod: '',
orcamtc: '',
jurplc: '',
atxinr: '',
expflg: '',
fenlishi: '',
opndat: '',
demandc: '',
partcon: '',
orcrefc: '',
jurplcc: '',
hndtyp: '',
orcrat: '',
cfaguatyp: '',
nam: '',
delori: '',
liaflg: '',
tendatc: '',
gtxinrc: '',
tenrefc: '',
bilvvv: '',
legfrmc: '',
deloric: '',
sndto: '',
demand: '',
purposin: '',
guaflg: '',
accc: '',
gartypc: '',
chato: '',
orcamt: '',
orcratc: '',
deltoc: '',
jurlaw: '',
orccur: '',
gtxinr: '',
fingua: '',
cnfsta: '',
jurlaws20: '',
orddat: '',
stdwrduilc: '',
jurlawtxtc: '',
trmdatc: '',
liadat: '',
inudat: '',
legfrm: '',
purpos: '',
tenref: '',
trmdat: '',
mannum: '',
deloritxtc: '',
liatypc: '',
exptyp: '',
ownref: '',
orcdat: '',
giduil: '',
orcref: '',
reccnfdet: '',
tendat: '',
cnfdat: '',
cmtflg: '',
orcdatc: '',
expdat: '',
cnfdet: '',
opndatc: '',
delto: '',
juscod: '',
tenclsdatc: '',
jurlawc: '',
gartyp: '',
orccurc: '',
vrfdat: ''
},
adv: {
pts: new Pts().data,
},
ctc: {
pts: new Pts().data,
},
apc: {
pts: new Pts().data,
},
cbs: {
opn1: {
cur: '',
amt: ''
},
mac2: {
cur: '',
amt: ''
},
opc2: {
cur: '',
amt: ''
},
max: {
cur: '',
amt: ''
},
cnf: {
cur: '',
amt: ''
},
mac: {
cur: '',
amt: ''
}
},
apl: {
pts: new Pts().data,
},
gartyp: ''
},
gitp: {
aacp: {
aacmod: {
addamtflg: ''
}
},
chkpreper: '',
swiftflg: '',
chargic: {
chkast: ''
},
gidtxtmodflgc: '',
indirectswiadd: '',
gidtxtmodflg: '',
exptxtmodflg: '',
covgodsrvcmodflg: '',
prepercmodflg: '',
covgodsrvmodflg: '',
chargi: {
chkast: ''
},
covgod: {
chkast: ''
},
chkgidtxt: '',
dzbhflg: '',
covgodc: {
chkast: ''
},
chkpreperc: '',
liatxtcmodflg: '',
usr: {
extkey: ''
},
oppbnkl: '',
chkgidtxtc: '',
prepermodflg: '',
lettername: '',
inc760: ''
},
cfagit: {
cfaflg: ''
},
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,
}
}
}
\ No newline at end of file
<template>
<div class="eibs">
<c-row>
<c-col :span="24">
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<c-col :span="12">
<el-form-item
label="附加金额"
prop="gidgrp.cbs.mac2.cur"
>
<c-input
disabled
v-model="model.gidgrp.cbs.mac2.cur"
maxlength="3"
placeholder="请输入附加金额"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label-width="5px" prop="gidgrp.cbs.mac2.amt">
<c-input
v-model="model.gidgrp.cbs.mac2.amt"
placeholder="请输入"
@keyup.enter.native="
defaultFunction('gidgrp.cbs.mac2.amt', model.gidgrp.cbs.mac2.amt)
"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="附加金额余额" prop="gidgrp.cbs.opc2.cur">
<c-input
disabled
v-model="model.gidgrp.cbs.opc2.cur"
maxlength="3"
placeholder="请输入附加金额余额"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label-width="5px" prop="gidgrp.cbs.opc2.amt">
<c-input
disabled
v-model="model.gidgrp.cbs.opc2.amt"
placeholder="请输入"
></c-input>
</el-form-item>
</c-col>
</c-col>
</c-col>
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="24">
<el-form-item label="39C场" prop="gidgrp.blk.addamtcovc">
<c-input
type="textarea"
:rows="4"
v-model="model.gidgrp.blk.addamtcovc"
maxlength="780"
show-word-limit
placeholder="请输入39C场"
></c-input>
</el-form-item>
</c-col>
</c-col>
</c-col>
</c-row>
</div>
</template>
<script>
import event from '../event'
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
methods: {},
created: function () {},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab" >
<el-collapse v-model="activeNames" >
<el-collapse-item title="附言" name="coninfp">
<m-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: {
"m-coninfp": Coninfp,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ["coninfp"],
};
},
methods: {},
created: function () {},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs">
<c-row>
<c-col :span="24">
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item label="">
接收确认说明:
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="确认指示" prop="gidgrp.rec.reccnfdet">
<c-select
disabled
v-model="model.gidgrp.rec.reccnfdet"
style="width: 100%"
placeholder="请选择确认指示"
>
<el-option
v-for="item in codes.cnfsta"
: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="gidgrp.cnr.pts.ref">
<c-input
disabled
v-model="model.gidgrp.cnr.pts.ref"
maxlength="16"
placeholder="请输入确认行参考号"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="确认行" prop="gidgrp.cnr.pts.extkey">
<c-fullbox>
<c-input
disabled
v-model="model.gidgrp.cnr.pts.extkey"
maxlength="16"
placeholder="请输入"
@keyup.enter.native="
showGridPromptDialog(`gidgrp.cnr.pts.extkey`)
"
></c-input>
<template slot="footer">
<c-button
size="small"
type="primary"
>
<i class="el-icon-info"></i>
</c-button>
<c-button
disabled
size="small"
type="primary"
>
详情
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址名称" prop="gidgrp.cnr.pts.adrblk">
<c-input
disabled
type="textarea"
v-model="model.gidgrp.cnr.pts.adrblk"
maxlength="35"
show-word-limit
placeholder="请输入地址名称"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="24">
<el-form-item label="">
支出确认说明:
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="确认指示" prop="gidgrp.rec.cnfdet">
<c-select
v-model="model.gidgrp.rec.cnfdet"
style="width: 100%"
placeholder="请选择确认指示"
disabled
>
<el-option
v-for="item in codes.cnfdet"
: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="gidgrp.con.pts.ref">
<c-input
disabled
v-model="model.gidgrp.con.pts.ref"
maxlength="16"
placeholder="请输入确认行参考号 "
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="确认行" prop="gidgrp.con.pts.extkey">
<c-fullbox>
<c-input
disabled
v-model="model.gidgrp.con.pts.extkey"
maxlength="16"
placeholder="请输入"
@keyup.enter.native="
showGridPromptDialog(`gidgrp.con.pts.extkey`)
"
></c-input>
<template slot="footer">
<c-button
size="small"
type="primary"
>
<i class="el-icon-info"></i>
</c-button>
<c-button
disabled
size="small"
type="primary"
>
详情
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址名称" prop="gidgrp.con.dbfadrblkcn">
<c-input
disabled
type="textarea"
v-model="model.gidgrp.con.dbfadrblkcn"
maxlength="35"
show-word-limit
placeholder="请输入"
></c-input>
</el-form-item>
</c-col>
</c-col>
</c-col>
</c-row>
<c-row>
<c-col :span="24">
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item v-if="model.gidgrp.rec.purposin == 'ISSU'" label="">
我行确认详细信息:
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
v-if="model.gidgrp.rec.purposin == 'ISSU'"
label="确认状态 "
prop="gidgrp.rec.cnfsta"
>
<c-select
v-model="model.gidgrp.rec.cnfsta"
style="width: 100%"
placeholder="请选择确认状态 "
>
<el-option
v-for="item in codes.cnfsta"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="10">
<el-form-item
v-if="model.gidgrp.rec.purposin == 'ISSU'"
label="确认金额"
prop="gidgrp.cbs.cnf.cur"
>
<c-input
disabled
v-model="model.gidgrp.cbs.cnf.cur"
maxlength="3"
placeholder="请输入确认金额"
></c-input>
</el-form-item>
</c-col>
<c-col v-if="model.gidgrp.rec.purposin == 'ISSU'" :span="4">
<el-form-item label-width="5px" prop="gidgrp.cbs.cnf.amt">
<c-input
v-model="model.gidgrp.cbs.cnf.amt"
placeholder="请输入"
></c-input>
</el-form-item>
</c-col>
<c-col
v-if="model.gidgrp.rec.purposin == 'ISSU'"
:span="2"
style="margin-left: 20px"
>
<span>or</span>
</c-col>
<c-col v-if="model.gidgrp.rec.purposin == 'ISSU'" :span="4">
<el-form-item label-width="5px" prop="gidgrp.rec.partcon">
<c-input
v-model="model.gidgrp.rec.partcon"
placeholder="请输入"
></c-input>
</el-form-item>
</c-col>
<c-col
v-if="model.gidgrp.rec.purposin == 'ISSU'"
:span="2"
style="margin-left: 20px"
>
<span>%</span>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item
v-if="model.gidgrp.rec.purposin == 'ISSU'"
label="确认日期"
prop="gidgrp.rec.cnfdat"
>
<c-date-picker
type="date"
v-model="model.gidgrp.rec.cnfdat"
style="width: 100%"
placeholder="请选择确认日期"
></c-date-picker>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" style="padding-left: 20px;"> </c-col>
</c-col>
</c-row>
</div>
</template>
<script>
import event from '../event'
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
methods: {},
created: function () {},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs">
<c-row>
<c-col :span="24">
<c-col :span="18">
<c-col :span="24">
<el-form-item
v-if="model.gitp.gidtxtmodflg == ''"
label="保函文本可变因素"
prop="gidgrp.blk.gidtxt"
>
<c-xml-format-editor-new
v-model="model.gidgrp.blk.gidtxt"
:disabled="model.gitp.gidtxtmodflg == ''"
placeholder="请输入保函文本可变因素"
></c-xml-format-editor-new>
</el-form-item>
<el-form-item
v-if="model.gitp.gidtxtmodflg == 'X'"
label="保函文本可变因素"
prop="gidgrp.blk.gtxgidtxt"
>
<c-xml-format-editor-new
style=""
:model="model.gidgrp.blk.gtxgidtxt"
placeholder="请输入保函文本可变因素"
></c-xml-format-editor-new>
</el-form-item>
</c-col>
</c-col>
<c-col :span="6">
<c-col :span="24">
<c-checkbox
v-model="model.gitp.gidtxtmodflg"
style="margin: 0 0 0 10px"
class="checkbox-left"
disabled
>修改保函文本</c-checkbox
>
</c-col>
<c-col :span="24">
<c-checkbox
v-model="model.gitp.chkgidtxt"
style="margin: 0 0 0 10px"
class="checkbox-left"
>允许</c-checkbox
>
</c-col>
<c-col :span="24">
<c-button
:disabled="model.gitp.gidtxtmodflg == ''"
size="small"
type="primary"
style="margin: 5px 0 0 10px; width: 50%"
>
查看系统文本
</c-button>
</c-col>
<c-col :span="24">
<c-button
size="small"
type="primary"
style="margin: 5px 0 0 10px; width: 50%"
>
查看历史文本
</c-button>
</c-col>
<template v-if="model.gitp.gidtxtmodflg == 'X'">
<c-col :span="24">
<c-button
size="small"
type="primary"
style="margin: 5px 0 0 10px; width: 50%"
>
显示文本
</c-button>
</c-col>
</template>
<c-col :span="24">
<c-input
style="margin: 5px 0 0 10px; width: 50%"
v-model="model.gidgrp.rec.ownref"
maxlength="16"
placeholder="请输入"
></c-input>
</c-col>
<c-col :span="24">
<c-button
disabled
style="margin: 5px 0 0 10px"
size="small"
type="primary"
>
获取
</c-button>
</c-col>
<c-col :span="24">
<c-button
:disabled="model.gitp.gidtxtmodflg == '' || model.gidgrp.rec.giduil != 'CN'"
size="small"
type="primary"
style="margin: 5px 0 0 10px; width: 50%"
>
修改中文保函文本
</c-button>
</c-col>
</c-col>
</c-col>
</c-row>
</div>
</template>
<script>
import event from '../event'
import InputXml from "~/components/InputXml";
export default {
components: { InputXml },
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
methods: {},
created: function () {},
};
</script>
<style scoped>
.quill-editor >>> .ql-editor {
min-height: 250px;
max-height: 500px;
}
</style>
\ No newline at end of file
<template>
<div class="eibs">
<c-row>
<c-col :span="24">
<c-col :span="16">
<c-col :span="24">
<el-form-item
v-if="model.gitp.gidtxtmodflgc == ''"
label="保函文本可变因素"
prop="gidgrp.blk.gidtxtc"
>
<c-input-xml
:disabled="model.gitp.gidtxtmodflgc == ''"
type="textarea"
:maxRows="14"
:model="model.gidgrp.blk.gidtxtc"
maxlength="32500"
show-word-limit
placeholder="请输入保函文本可变因素"
></c-input-xml>
</el-form-item>
<el-form-item
v-if="model.gitp.gidtxtmodflgc == 'X'"
label="保函文本可变因素 - 抵消保函文本"
prop="gidgrp.blk.gtxgidtxtc"
>
<c-input-textarea
:model="model.gidgrp.blk.gtxgidtxtc"
:maxRows="16"
maxlength="32500"
show-word-limit
placeholder="请输入保函文本可变因素 - 抵消保函文本"
></c-input-textarea>
</el-form-item>
</c-col>
</c-col>
<c-col :span="6">
<c-col :span="24">
<el-form-item label-width="0px" prop="gidgrp.rec.ownref">
<c-input
style="margin: 0 0 0 10px; width: 50%"
v-model="model.gidgrp.rec.ownref"
maxlength="16"
placeholder="请输入"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-button
disabled
style="margin: 5px 0 5px 10px"
size="small"
type="primary"
>
获取
</c-button>
</c-col>
<c-col :span="24">
<c-checkbox
v-model="model.gitp.gidtxtmodflgc"
style="margin: 0 0 0 10px;float:left;"
>修改保函文本</c-checkbox
>
</c-col>
<c-col :span="24">
<c-checkbox
v-model="model.gitp.chkgidtxtc"
style="margin: 0 0 0 10px;float:left;"
disabled
>允许</c-checkbox
>
</c-col>
<c-col :span="24">
<c-button
disabled
size="small"
type="primary"
style="margin: 5px 0 0 10px; width: 50%"
>
查看系统文本
</c-button>
</c-col>
<c-col :span="24">
<c-button
disabled
size="small"
type="primary"
style="margin: 5px 0 0 10px; width: 50%"
>
查看历史文本
</c-button>
</c-col>
<template v-if="model.gitp.gidtxtmodflgc == 'X'">
<c-col :span="24">
<c-button
size="small"
type="primary"
style="margin: 5px 0 0 10px; width: 50%"
>
显示文本
</c-button>
</c-col>
</template>
<c-col :span="24">
<c-button
:disabled="model.gitp.gidtxtmodflg == '' || model.gidgrp.rec.giduil != 'CN'"
size="small"
type="primary"
style="margin: 5px 0 0 10px; width: 50%"
>
修改中文保函文本
</c-button>
</c-col>
</c-col>
</c-col>
</c-row>
</div>
</template>
<script>
import IStreamInput from "~/components/IStreamInput";
import event from '../event'
export default {
components: { IStreamInput },
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
methods: {},
created: function () {},
};
</script>
<style scoped>
.quill-editor >>> .ql-editor {
min-height: 250px;
max-height: 500px;
}
</style>
\ No newline at end of file
<template>
<div class="eibs">
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item label="是否SWIFT格式" prop="gitp.swiftflg">
<c-select
v-model="model.gitp.swiftflg"
style="width: 100%"
placeholder="请选择是否SWIFT格式"
:code="codes.swiftflg"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="model.gidgrp.cbs.max.cur == 'CNY'? 20 : 24">
<el-form-item label="对外担保类型" prop="gidgrp.rec.cfaguatyp">
<c-select
disabled
v-model="model.gidgrp.rec.cfaguatyp"
:style="model.gidgrp.cbs.max.cur == 'CNY'? 'width: 90%' :'width: 100%'"
placeholder="请选择对外担保类型"
:code="codes.cfaguatyp"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="4" class="centerLable" v-if="model.gidgrp.cbs.max.cur == 'CNY'">
<c-checkbox disabled v-model="model.gidgrp.rec.cmtflg"
>跨境人民币保函</c-checkbox
>
</c-col>
</c-col>
</c-col>
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="24">
<el-form-item label="是否对外担保" prop="gidgrp.rec.fingua">
<c-select
v-model="model.gidgrp.rec.fingua"
style="width: 100%"
placeholder="请选择是否对外担保"
:code="codes.fingua"
disabled
>
</c-select>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import event from '../event'
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
computed: {},
methods: {},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames" >
<el-collapse-item title="基本信息" name="ovwp1">
<m-ovwp1 :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="当事人描述" name="ptyp">
<m-ptyp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="演示/交付" name="preperp" v-if="model.gitp.swiftflg == 'Y'">
<m-preperp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="详细信息" name="detp">
<m-detp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="保函文本" name="gidtxtp">
<m-gidtxtp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item
title="确认详细信息"
name="confp"
v-if="model.gidgrp.rec.legfrm == 'STBY'"
>
<m-confp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="Risk" name="rskpan">
<m-rskpan :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="Seq C : 基本信息" name="ovwpc" v-if="
model.gidgrp.rec.purpos == 'ISCO' ||
model.gidgrp.rec.purpos == 'ICCO'
">
<m-ovwpc :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="Seq C : 当事人描述" name="ptypc" v-if="
model.gidgrp.rec.purpos == 'ISCO' ||
model.gidgrp.rec.purpos == 'ICCO'
">
<m-ptypc :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="Seq C : 演示/交付" name="preperpc" v-if="
model.gidgrp.rec.purpos == 'ISCO' ||
model.gidgrp.rec.purpos == 'ICCO'
">
<m-preperpc :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="Seq C : 详情" name="detpc" v-if="
model.gidgrp.rec.purpos == 'ISCO' ||
model.gidgrp.rec.purpos == 'ICCO'
">
<m-detpc :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="Seq C : 保函文本" name="gidtxtpc" v-if="
model.gidgrp.rec.purpos == 'ISCO' ||
model.gidgrp.rec.purpos == 'ICCO'
">
<m-gidtxtpc :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="Seq C : 附加金额" name="aacp" v-if="model.gitp.aacp.aacmod.addamtflg == 'X'">
<m-aacp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="开立方式" name="opnp">
<m-opnp :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import Ovwp1 from "./Ovwp1";
import Opnp from "./Opnp";
import Ptyp from "./Ptyp";
import Preperp from "./Preperp";
import Detp from "./Detp";
import Gidtxtp from "./Gidtxtp";
import Confp from "./Confp";
import Ovwpc from "./Ovwpc";
import Ptypc from "./Ptypc";
import Preperpc from "./Preperpc";
import Detpc from "./Detpc";
import Gidtxtpc from "./Gidtxtpc";
import Aacp from "./Aacp";
import Rskpan from "./Rskpan";
import event from '../event'
const tabNameToRulePathMapping = {
"conp": "cfagit.recp.conp",
"voup": "cnybop.voup",
"cfap": "cfagit.cfap",
"gidtxtp": "gitp.gidtxtp",
"ptypc": "gitp.ptypc",
"detp": "gitp.detp",
}
export default {
name: "Opnp",
components: {
"m-opnp": Opnp,
"m-ovwp1": Ovwp1,
"m-ptyp": Ptyp,
"m-preperp": Preperp,
"m-detp": Detp,
"m-gidtxtp": Gidtxtp,
"m-confp": Confp,
"m-ovwpc": Ovwpc,
"m-ptypc": Ptypc,
"m-preperpc": Preperpc,
"m-detpc": Detpc,
"m-gidtxtpc": Gidtxtpc,
"m-aacp": Aacp,
"m-rskpan": Rskpan,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ["ovwp1"],
};
},
computed: {
},
methods: {},
created: function () {},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs">
<c-row>
<c-col :span="24">
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item
label="请求开证日期"
prop="gidgrp.rec.opndatc"
>
<c-date-picker
type="date"
v-model="model.gidgrp.rec.opndatc"
style="width: 100%"
placeholder="请选择请求开证日期"
disabled
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="保函币种和金额" prop="gidgrp.cbs.mac.cur">
<c-select
:code="codes.gitopn_cur"
v-model="model.gidgrp.cbs.mac.cur"
style="width: 100%"
placeholder="请选择保函币种"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label-width="0px" prop="gidgrp.cbs.mac.amt">
<c-input
v-model="model.gidgrp.cbs.mac.amt"
style="margin: 0 0 0 10px; width: 80%"
placeholder="请输入保函金额"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="4" class="centerLable">
<c-checkbox v-model="model.gitp.aacp.aacmod.addamtflg" disabled
>附加金额</c-checkbox
>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="保函类型 " prop="gidgrp.rec.gartypc">
<c-select
v-model="model.gidgrp.rec.gartypc"
style="width: 100%"
placeholder="请选择保函类型 "
:code="codes.gartypc"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label-width="5px" prop="gidgrp.rec.gartyptxtc">
<c-input
disabled
v-model="model.gidgrp.blk.gartyptxtc"
style="width: 100%"
placeholder="请输入保函类型 "
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="保函形式" prop="gidgrp.rec.legfrmc">
<c-select
v-model="model.gidgrp.rec.legfrmc"
style="width: 100%"
placeholder="请选择保函形式"
disabled
>
<el-option
v-for="item in codes.legfrmc1"
: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="gidgrp.rec.demandc">
<c-select
v-model="model.gidgrp.rec.demandc"
style="width: 100%"
placeholder="请选择需求指示 "
disabled
>
<el-option
v-for="item in codes.demandc"
: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="gidgrp.rec.stdwrduilc"
>
<c-select
v-model="model.gidgrp.rec.stdwrduilc"
style="width: 100%"
placeholder="请选择要求语言"
disabled
>
<el-option
v-for="item in codes.uiltxt"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="24">
<el-form-item label="保函文本格式" prop="gidgrp.rec.gtxinrc">
<c-select
v-model="model.gidgrp.rec.gtxinrc"
style="width: 100%"
placeholder="请选择保函文本格式"
disabled
>
<el-option
v-for="item in codes.gtxinr"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="申请条款" prop="gidgrp.blk.apprulc">
<c-select
v-model="model.gidgrp.blk.apprulc"
style="width: 100%"
placeholder="请选择申请条款"
disabled
>
<el-option
v-for="item in codes.apprulc"
: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 label-width="5px" prop="gidgrp.blk.apprultxtc">
<c-input
disabled
style="width: 100%"
v-model="model.gidgrp.blk.apprultxtc"
maxlength="35"
placeholder="请输入申请条款"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="到期类型" prop="gidgrp.rec.exptyp">
<c-select
v-model="model.gidgrp.rec.exptyp"
style="width: 100%"
placeholder="请选择到期类型"
disabled
>
<el-option
v-for="item in codes.exptyp"
: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="gidgrp.rec.expdat">
<c-date-picker
disabled
type="date"
v-model="model.gidgrp.rec.expdat"
style="width: 100%"
placeholder="请选择保函效期"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="17">
<el-form-item
label="到期条件"
prop="gidgrp.blk.exptxt"
>
<c-input
type="textarea"
rows="5"
disabled
maxlength="780"
show-word-limit
placeholder="请输入到期条件"
></c-input>
</el-form-item>
</c-col>
<c-col :span="7">
<c-checkbox
v-model="model.gitp.exptxtmodflg"
disabled
style="margin: 0 0 0 10px;float:left"
>是否手工修改保函文本</c-checkbox
>
<c-button
disabled
size="small"
type="primary"
style="margin: 5px 0 0 10px;width:100px;float:left"
>
查看系统文本
</c-button>
<c-button
disabled
size="small"
type="primary"
style="margin: 5px 0 0 10px;width:100px;float:left"
>
查看历史文本
</c-button>
</c-col>
</c-col>
</c-col>
</c-col>
</c-row>
</div>
</template>
<script>
import event from '../event'
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
methods: {},
created: function () {},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs">
<!-- <c-row> -->
<c-col :span="24">
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<c-col :span="16">
<c-form-item label="保函文本交付" prop="gidgrp.rec.delori">
<c-select
disabled
v-model="model.gidgrp.rec.delori"
style="width: 100%"
placeholder="请选择保函文本交付"
>
<el-option
v-for="item in codes.delori1"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</c-form-item>
</c-col>
<c-col :span="8">
<el-form-item label-width="5px" prop="gidgrp.rec.deloritxt">
<c-input
disabled
v-model="model.gidgrp.rec.deloritxt"
maxlength="35"
placeholder="请输入保函文本交付"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="发送保函文本" prop="gidgrp.rec.sndto">
<c-select
disabled
v-model="model.gidgrp.rec.sndto"
style="width: 100%"
placeholder="请选择发送保函文本"
:code="codes.sndto"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="交付收款人" prop="gidgrp.rec.delto">
<c-select
disabled
v-model="model.gidgrp.rec.delto"
style="width: 100%"
placeholder="请选择交付收款人"
:code="getDelto"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="交付地址" prop="gidgrp.blk.deltoadr">
<c-input
disabled
rows="4"
type="textarea"
v-model="model.gidgrp.blk.deltoadr"
maxlength="210"
show-word-limit
placeholder="请输入交付地址"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="转让条件" prop="gidgrp.blk.trfcond">
<c-input
disabled
type="textarea"
rows="4"
v-model="model.gidgrp.blk.trfcond"
maxlength="6630"
show-word-limit
placeholder="请输入转让条件"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<el-form-item label="费用承担人" prop="gidgrp.rec.chato">
<c-select
v-model="model.gidgrp.rec.chato"
style="width: 100%"
placeholder="请选择费用承担人"
:code="codes.gitopn_chato"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="收费">
<c-fullbox>
<template slot="footer">
<c-checkbox v-model="model.gitp.chargi.chkast" class="checkbox-left" disabled>允许</c-checkbox>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="收费代码的附加详情" prop="gidgrp.blk.feetxt">
<c-fullbox>
<c-input
type="textarea"
v-model="model.gidgrp.blk.feetxt"
maxlength="210"
show-word-limit
placeholder="请输入收费代码的附加详情"
disabled
></c-input>
<template slot="footer">
<!-- @click="onAcctagButtxmsel" -->
<c-button
size="small"
type="primary"
icon="el-icon-more"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="17">
<el-form-item
v-if="model.gitp.prepermodflg == ''"
label="演示说明"
prop="gidgrp.blk.preper"
>
<c-input
disabled
type="textarea"
:rows="7"
v-model="model.gidgrp.blk.preper"
maxlength="6500"
show-word-limit
placeholder="请输入演示说明"
></c-input>
</el-form-item>
<el-form-item
v-if="model.gitp.prepermodflg == 'X'"
label="演示说明"
prop="gidgrp.blk.atxpreper"
>
<c-input
type="textarea"
:rows="6"
v-model="model.gidgrp.blk.atxpreper"
maxlength="6500"
show-word-limit
placeholder="请输入演示说明"
></c-input>
</el-form-item>
</c-col>
<c-col :span="7">
<c-checkbox
v-model="model.gitp.prepermodflg"
style="margin: 0 0 0 10px"
class="checkbox-left"
>是否手工修改保函文本</c-checkbox
>
<c-checkbox
v-model="model.gitp.chkpreper"
class="checkbox-left"
style="margin: 0 0 0 10px"
disabled
>允许</c-checkbox
>
<c-button
disabled
size="small"
type="primary"
style="margin: 5px 0 0 10px; width: 100px;float:left;"
>
查看系统文本
</c-button>
<c-button
disabled
size="small"
style="margin: 5px 0 0 10px; width: 100px;float:left;"
type="primary"
>
查看历史文本
</c-button>
</c-col>
</c-col>
</c-col>
</c-col>
<!-- </c-row> -->
</div>
</template>
<script>
import event from '../event'
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
methods: {},
created: function () {},
};
</script>
<style scoped>
</style>
\ No newline at end of file
<template>
<div class="eibs">
<c-row>
<c-col :span="24">
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<c-col :span="12">
<el-form-item
label="保函文本交付"
prop="gidgrp.rec.deloric"
>
<c-select
v-model="model.gidgrp.rec.deloric"
style="width: 100%"
placeholder="请选择保函文本交付"
:code="codes.deloric"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label-width="5px" prop="gidgrp.rec.deloritxtc">
<c-input
disabled
v-model="model.gidgrp.rec.deloritxtc"
maxlength="35"
placeholder="请输入保函文本交付"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item
label="交付收款人"
prop="gidgrp.rec.deltoc"
>
<c-select
v-model="model.gidgrp.rec.deltoc"
style="width: 100%"
placeholder="请选择交付收款人"
disabled
>
<el-option
v-for="item in codes.deltoc"
: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="gidgrp.blk.deltoadrc"
>
<c-input
disabled
type="textarea"
rows="4"
v-model="model.gidgrp.blk.deltoadrc"
maxlength="210"
show-word-limit
placeholder="请输入交付地址"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="转让条件"
prop="gidgrp.blk.trfcondc"
>
<c-input
disabled
rows="5"
type="textarea"
v-model="model.gidgrp.blk.trfcondc"
maxlength="780"
show-word-limit
placeholder="请输入转让条件"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="24">
<c-col :span="17">
<el-form-item
label="收费代码的附加详情"
prop="gidgrp.blk.feetxtc"
>
<c-input
rows="4"
type="textarea"
v-model="model.gidgrp.blk.feetxtc"
maxlength="210"
show-word-limit
placeholder="请输入收费代码的附加详情"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="7">
<c-button
style="margin: 0 0 0 10px"
size="small"
type="primary"
icon="el-icon-more"
>
</c-button>
<c-checkbox
style="margin: 0 0 0 10px"
v-model="model.gitp.chargic.chkast"
disabled
>允许</c-checkbox
>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="17">
<el-form-item
label="演示说明 "
prop="gidgrp.blk.preperc"
>
<c-input
:disabled="model.gitp.prepercmodflg == ''"
rows="6"
type="textarea"
v-model="model.gidgrp.blk.preperc"
maxlength="6500"
show-word-limit
placeholder="请输入演示说明 "
></c-input>
</el-form-item>
</c-col>
<c-col :span="7">
<c-checkbox
v-model="model.gitp.prepercmodflg"
style="margin: 0 0 0 10px;float:left"
>是否手工修改保函文本</c-checkbox
>
<c-checkbox
v-model="model.gitp.chkpreperc"
style="margin: 0 0 0 10px;float:left"
disabled
>允许</c-checkbox
>
<c-button
disabled
size="small"
type="primary"
style="margin: 5px 0 0 10px; width: 98px"
>
查看系统文本
</c-button>
<c-button
disabled
size="small"
style="margin: 5px 0 0 10px; width: 98px"
type="primary"
>
查看历史文本
</c-button>
</c-col>
</c-col>
</c-col>
</c-col>
</c-row>
</div>
</template>
<script>
import event from '../event'
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
methods: {},
created: function () {},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs">
<c-col :span="12" style="padding-right: 20px">
<!-- S0000002 : 风险分类 -->
<c-col :span="24">
<el-form-item label="风险分类" prop="rskmod.fentyp">
<c-select
v-model="model.rskmod.fentyp"
style="width: 100%"
placeholder="请输入风险分类"
:code="codes.fentyp"
>
</c-select>
</el-form-item>
</c-col>
<!-- S0000003 : 分类说明 -->
<c-col :span="24">
<c-form-item label="分类说明" prop="rskmod.inftxt">
<c-input
type="textarea"
v-model="model.rskmod.inftxt"
:rows="3"
maxlength="30"
show-word-limit
placeholder="请输入分类说明"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="">
<c-checkbox v-model="model.rskmod.cdaflg" disabled>补录暴露分类</c-checkbox>
</el-form-item>
</c-col>
<!-- S0000005 : 资金用途 -->
<c-col :span="24">
<el-form-item label="资金用途" prop="rskmod.cda.useofunds">
<c-select
v-model="model.rskmod.cda.useofunds"
style="width: 100%"
:code="codes.useofunds"
placeholder="请输入资金用途"
disabled
>
</c-select>
</el-form-item>
</c-col>
<!-- S0000007 : 中资企业境外担保项下 -->
<c-col :span="24">
<el-form-item
label="中资企业境外担保项下境内贷款额度币种"
prop="rskmod.cda.cfeogudcurr"
>
<c-select
v-model="model.rskmod.cda.cfeogudcurr"
style="width: 100%"
:code="codes.curtxt1"
placeholder="请输入币种"
disabled
>
</c-select>
</el-form-item>
</c-col>
<!-- S0000009 : 境内贷款额度币种 -->
<!-- S0000008 : 中资企业境外担保项下 -->
<c-col :span="24">
<c-form-item
label="中资企业境外担保项下境内贷款额度金额"
prop="rskmod.cda.cfeogudamount"
>
<c-input-currency-min
v-model="model.rskmod.cda.cfeogudamount"
placeholder="请输入金额"
disabled
></c-input-currency-min>
</c-form-item>
</c-col>
<!-- S0000010 : 境内贷款额度金额 -->
<!-- S0000006 : 中资企业境外担保项下 -->
<c-col :span="24">
<c-form-item
label="中资企业境外担保项下贷款业务批准文件号"
prop="rskmod.cda.cfeogudad"
>
<c-input
type="textarea"
v-model="model.rskmod.cda.cfeogudad"
:rows="3"
maxlength="32"
show-word-limit
placeholder="请输入批准文件号"
disabled
></c-input>
</c-form-item>
</c-col>
<!-- S0000011 : 贷款业务批准文件号 -->
</c-col>
</div>
</template>
<script>
import event from '../event'
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
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">
<!--PD000001 -->
<el-tab-pane label="业务信息" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="表外记账" name="engp">
<c-content>
<!-- 表外记账 -->
<m-engp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="费用/账务" name="setpan">
<c-content>
<m-setmod
:model="model"
:codes="codes"
@changeSetmodModel="changeSetmodModel"
/>
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="会计分录" name="glepan">
<c-content>
<m-glentry :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000510 -->
<el-tab-pane label="备查/附言" name="addbcb">
<c-content>
<m-addbcb :model="model" :codes="codes" />
</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-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
@select-ety="selectGridEtyPromptData"
>
</c-grid-ety-prompt-dialog>
</c-page>
</div>
</template>
<script>
import event from '../event'
import operationFunc from "~/mixin/operationFunc";
import CodeTable from "~/config/CodeTable"
import Gitadd from "../model"
// import commonProcess from "~/mixin/commonProcess";
// import commonFuncs from "~/mixin/commonFuncs";
import formRules from '../model/check'
import Ovwp from "./Ovwp"
import Ptyp from "./Ptyp"
import Preperp from "./Preperp"
import Detp from "./Detp"
import Gidtxtp from "./Gidtxtp"
import Rskpan from "./Rskpan"
import Ovwpc from "./Ovwpc"
import Ptypc from "./Ptypc"
import Preperpc from "./Preperpc"
import Detpc from "./Detpc"
import Gidtxtpc from "./Gidtxtpc"
import Opnp from "./Opnp"
import Addbcb from "./Addbcb";
import Engp from "~/components/business/engp/views";
import Glentry from "~/components/business/glentry/views";
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/components/business/doctre/views";
import Setmod from "~/components/business/setmod/views";
export default {
name: "Gitadd",
components:{
"m-ovwp" : Ovwp,
"m-ptyp" : Ptyp,
"m-preperp" : Preperp,
"m-detp" : Detp,
"m-gidtxtp" : Gidtxtp,
"m-docpan" : Docpan,
"m-doctre" : Doctre,
"m-rskpan" : Rskpan,
"m-ovwpc" : Ovwpc,
"m-ptypc" : Ptypc,
"m-preperpc" : Preperpc,
"m-detpc" : Detpc,
"m-gidtxtpc" : Gidtxtpc,
"m-opnp" : Opnp,
"m-addbcb": Addbcb,
"m-engp": Engp,
"m-glentry": Glentry,
"m-setmod": Setmod,
},
provide() {
return {
root: this
}
},
// mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
mixins: [operationFunc, event],
data(){
return {
tabVal: "ovwp",
trnName: "gitadd",
model: new Gitadd().data,
// checkRules: Check,
// defaultRules: Default,
// pattern: Pattern,
rules: formRules,
codes: {...CodeTable,},
activeNames: ["engp"],
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'
},
{
prop: 'locZip',
label: 'Zip'
},
{
prop: 'bicCode',
label: 'BIC'
}
],
data: []
}
}
},
methods: {},
mounted () {
this.init()
},
}
</script>
<style>
</style>
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/giteng/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/giteng/getOwnRef', params);
if (res.respCode == SUCCESS) {
loading.close();
this.model.gidgrp.rec.ownref = res.data;
}
},
// 获取gitopn弹框表格数据
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;
}
},
// 选中gitopn弹框表格的行数据
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/giteng/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
}
}
},
};
import Pts from '~/components/business/commonModel/Pts';
import Pub from '~/components/business/commonModel/index.js';
export default class Giteng {
constructor() {
this.data = {
setmod: {
refdat: ''
},
gidgrp: {
ctr: {
pts: new Pts().data,
},
rec: {
expdat: '',
purpos: '',
liadat: '',
liatypc: '',
ownref: '',
exptyp: '',
nam: '',
gartyp: '',
purposin: ''
},
cbs: {
opn1: {
cur: '',
amt: ''
},
max: {
cur: '',
amt: ''
}
},
iss: {
pts: new Pts().data,
},
ben: {
pts: new Pts().data,
},
apl: {
pts: new Pts().data,
},
adv: {
pts: new Pts().data,
}
},
gitp0: {
aamgid: {
addamtflg: ''
}
},
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,
}
}
}
\ No newline at end of file
<template>
<div class="eibs">
<!-- ====================左边======================= -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<el-form-item label="保函编号" prop="gidgrp.rec.ownref">
<c-fullbox>
<c-input
v-model="model.gidgrp.rec.ownref"
maxlength="16"
placeholder="请输入保函编号"
disabled
></c-input>
<template slot="footer">
<c-button
style="margin: 0 0 0 10px; padding: 0 12px"
size="small"
type="primary"
icon="el-icon-info"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="保函币种和金额" prop="gidgrp.cbs.max.cur">
<c-select
v-model="model.gidgrp.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="8">
<el-form-item label-width="5px" prop="gidgrp.cbs.max.amt">
<c-input-currency
disabled
v-model="model.gidgrp.cbs.max.amt"
></c-input-currency>
</el-form-item>
</c-col>
<c-col :span="4" class="centerLable">
<c-checkbox disabled v-model="model.gitp0.aamgid.addamtflg"
>附加金额</c-checkbox
>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="保函余额" prop="gidgrp.cbs.opn1.cur">
<c-select
disabled
v-model="model.gidgrp.cbs.opn1.cur"
style="width: 100%"
placeholder="请选择保函余额币种"
@keyup.enter.native="nom1CurEvent"
>
<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="8">
<el-form-item label-width="5px" prop="gidgrp.cbs.opn1.amt">
<c-input-currency
disabled
v-model="model.gidgrp.cbs.opn1.amt"
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="接收目的" prop="gidgrp.rec.purposin">
<c-select
v-model="model.gidgrp.rec.purposin"
style="width: 100%"
placeholder="请选择接收目的 "
:code="codes.purposin"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="报文目的" prop="gidgrp.rec.purpos">
<c-select
v-model="model.gidgrp.rec.purpos"
style="width: 100%"
placeholder="请选择报文目的"
:code="codes.purpos"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="保函类型" prop="gidgrp.rec.gartyp">
<c-select
disabled
v-model="model.gidgrp.rec.gartyp"
style="width: 100%"
placeholder="请选择保函类型"
:code="codes.typgar"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="13">
<el-form-item label="到期" prop="gidgrp.rec.expdat">
<c-date-picker
disabled
type="date"
v-model="model.gidgrp.rec.expdat"
style="width: 100%"
placeholder="请选择"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item
style="text-align: left"
label-width="5px"
prop="gidgrp.rec.exptyp"
>
<c-select
v-model="model.gidgrp.rec.exptyp"
style="width: 100%"
placeholder="请选择到期类型"
:code="codes.exptyp"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="13">
<el-form-item
v-show="model.gidgrp.rec.liadat != ''"
label="责任日期"
prop="gidgrp.rec.liadat"
>
<c-date-picker
disabled
type="date"
v-show="model.gidgrp.rec.liadat != ''"
v-model="model.gidgrp.rec.liadat"
style="width: 100%"
placeholder="请选择责任日期"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="11" v-show="model.gidgrp.rec.liadat != ''">
<el-form-item
style="text-align: left"
label-width="5px"
prop="gidgrp.rec.liatypc"
>
<c-select
v-model="model.gidgrp.rec.liatypc"
style="width: 100%"
placeholder="请选择责任类型"
:code="codes.liatypc"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="参考日期 " prop="setmod.refdat">
<c-date-picker
disabled
type="date"
v-model="model.setmod.refdat"
style="width: 100%"
placeholder="请选择参考日期 "
></c-date-picker>
</el-form-item>
</c-col>
</c-col>
<!-- ========================右边======================= -->
<c-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<el-form-item label="简略信息" prop="gidgrp.rec.nam">
<c-input
disabled
v-model="model.gidgrp.rec.nam"
maxlength="40"
placeholder="请输入简略信息"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="申请人" prop="gidgrp.apl.pts.nam">
<c-input
disabled
v-model="model.gidgrp.apl.pts.nam"
maxlength="40"
placeholder="请输入"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="受益人" prop="gidgrp.ben.pts.nam">
<c-input
disabled
v-model="model.gidgrp.ben.pts.nam"
maxlength="40"
placeholder="请输入"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="帐户行" prop="gidgrp.ctr.pts.nam">
<c-input
disabled
v-model="model.gidgrp.ctr.pts.nam"
maxlength="40"
placeholder="请输入"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="开证行" prop="gidgrp.iss.pts.nam">
<c-input
disabled
v-model="model.gidgrp.iss.pts.nam"
maxlength="40"
placeholder="请输入开证行"
></c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
methods: {},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames">
<el-collapse-item title="收费详情" name="gitsetp1">
<m-gitsetp1 :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import event from "../event";
import Gitsetp1 from "./Gitsetp1";
export default {
components: {
"m-gitsetp1": Gitsetp1,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ["gitsetp1"],
};
},
methods: {},
created: function () {},
};
</script>
<style>
</style>
\ No newline at end of file
<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>
<el-tab-pane label="保证金" name="ccvpan">
<c-content>
<m-ccvpan
:model="model"
:codes="codes"
:buildLiaccv="buildLiaccv"
/>
</c-content>
</el-tab-pane>
<el-tab-pane label="统一授信" name="limitbody">
<c-content>
<div class="eibs-tab">
<el-collapse v-model="activeNames1">
<el-collapse-item title="统一授信" name="limitbody">
<m-limitbody :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="表外记账" name="engp">
<c-content>
<!-- 表外记账 -->
<m-engp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="费用/账务" name="setpan">
<c-content>
<m-setmod
:model="model"
:codes="codes"
@changeSetmodModel="changeSetmodModel"
/>
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="会计分录" name="glepan">
<c-content>
<m-glentry :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="备查/附言" name="coninfp">
<c-content>
<div class="eibs-tab">
<el-collapse v-model="activeNames">
<el-collapse-item title="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</c-content>
</el-tab-pane>
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<m-docpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<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 operationFunc from "~/mixin/operationFunc";
import formRules from "../model/check";
import CodeTable from "~/config/CodeTable";
import Giteng from "../model";
import Ovwp from "./Ovwp";
import Engp from "~/components/business/engp/views";
import Ccvpan from "~/components/business/ccvpan/views";
import Coninfp from "~/components/business/coninfp/views";
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/components/business/doctre/views";
import Limitbody from "~/components/business/limitbody/views";
import Glentry from "~/components/business/glentry/views";
import Setmod from "~/components/business/setmod/views";
export default {
name: "Giteng",
components: {
"m-ovwp": Ovwp,
"m-engp": Engp,
"m-ccvpan": Ccvpan,
"m-coninfp": Coninfp,
"m-docpan": Docpan,
"m-doctre": Doctre,
"m-limitbody": Limitbody,
"m-glentry": Glentry,
"m-setmod": Setmod,
},
provide() {
return {
root: this,
activeNames: ["ovwp"],
};
},
mixins: [operationFunc, event], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "ovwp",
trnName: "giteng",
model: new Giteng().data,
rules: formRules,
codes: { ...CodeTable },
activeNames: ["engp", "coninfp"],
activeNames1: ["limitbody"],
};
},
methods: {},
mounted() {
this.init();
},
};
</script>
<style>
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment