Commit e5071b3b by panziyi

trtset前端

parent 36100273
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.trdgrp.fip.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.trdgrp.fip));
}
let dataObj = {
rec: {
objtyp: 'trd',
ownref: model.trdgrp.rec.ownref,
objinr: model.trdgrp.rec.inr,
opndat: model.trdgrp.rec.opndat,
expdat: model.trdgrp.rec.expdat,
branchInr: model.trdgrp.rec.branchinr,
},
cbsMap: {
MAX: model.brdgrp.cbs.max,
OPN1: model.brdgrp.cbs.opn1,
// OPN2: model.brdgrp.cbs.opn2,
// MAC: model.brdgrp.cbs.mac,
// MAC2: model.brdgrp.cbs.mac2,
// OPC2: model.brdgrp.cbs.opc2,
// CNF: model.brdgrp.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: 'lid',
objinr: model.brdgrp.rec.objinr,
ownref: model.brdgrp.rec.ownref,
},
};
return params
},
buildDoctre (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'lid',
objinr: model.brdgrp.rec.objinr,
ownref: model.brdgrp.rec.ownref,
swiftflg: model.brtp.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)),
trninr: this.$route.query.trninr,
}
if( typeof(this.$route.query.inr) == 'string') {
params.spt = null
}
const loading = this.loading();
const res = await Api.post('/service/trtset/init', {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
trdgrp:{
rec:{
inr:this.$route.query.inr
}
}
});
// debugger
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 'setmod':
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/trtset/getOwnRef', params);
if (res.respCode == SUCCESS) {
loading.close();
this.model.gidgrp.rec.ownref = res.data;
}
},
// 获取trtset弹框表格数据
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;
}
},
// 选中brtset弹框表格的行数据
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 = {
brtp: {
swiftflg: this.model.gitp.swiftflg,
},
brdgrp: {
rec: {
purpos: this.model.gidgrp.rec.purpos,
},
},
transName: trnName.toUpperCase(),
};
let res = await Api.post('/service/brtset/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 Utils from "~/utils"
/**
* Trtset Check规则
*/
let checkObj = {
"trtp0.ledget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"trtp0.bcdget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"trtp0.brdget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"trtp0.bedget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"trdgrp.rec.pntref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"trtp0.bcdget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"trtp0.ledget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"trtp0.brdget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"trtp0.bedget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"trdgrp.rec.pntnam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"trtp0.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"trdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"trtp0.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"trdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"trdgrp.rec.pctfin":[
{type: "string", required: false, message: "必输项"},
{max: 5,message:"长度不能超过5"}
],
"trdgrp.fip.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"trdgrp.cbs.max.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"trdgrp.fip.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"trdgrp.cbs.opn1.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"trdgrp.cbs.opn1.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"trdgrp.rec.fintyp":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"trdgrp.rec.stttendat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"trdgrp.rec.matdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"trdgrp.rec.finact":[
{type: "string", required: false, message: "必输项"},
{max: 21,message:"长度不能超过21"}
],
"trtmod.finmod.fincod":[
{type: "string", required: false, message: "必输项"},
{max: 17,message:"长度不能超过17"}
],
"setamt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"setact":[
{type: "string", required: false, message: "必输项"},
{max: 21,message:"长度不能超过21"}
],
"trtmod.finmod.act3":[
{type: "string", required: false, message: "必输项"},
{max: 21,message:"长度不能超过21"}
],
"trtmod.finmod.cbs.cbb.intamt1":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"trtmod.finmod.cbs.cbe.intamt1":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"trtmod.finmod.cbs.cbb.intamty1":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"trtmod.finmod.cbs.cbe.intamty1":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"trtmod.finmod.cbs.cbb.intamt2":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"trtmod.finmod.cbs.cbe.intamt2":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"trtmod.finmod.cbs.cbb.intamty2":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"trtmod.finmod.cbs.cbe.intamty2":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"trtmod.finmod.cbs.cbb.intamt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"trtmod.finmod.cbs.cbe.intamt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"trtmod.finmod.cbs.cbb.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"trtmod.finmod.cbs.cbe.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"trtmod.finmod.cbs.totint":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"trdgrp.rec.actrat":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"setact1":[
{type: "string", required: false, message: "必输项"},
{max: 21,message:"长度不能超过21"}
],
"liaall.outamt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.outpct":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"liaall.concur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"liaall.misamt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.exttotoldamt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.exttotamt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"setmod.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"setmod.docamt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"setmod.zmqacc":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"setmod.glemod.gleshwstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"trnmod.trndoc.advnam":[
{type: "string", required: false, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"trnmod.trndoc.amdapl":[
{type: "string", required: true, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"trnmod.trndoc.advdoc":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"trnmod.trndoc.filrecv":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"trnmod.trndoc.doctrestm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"trnmod.trndoc.condocstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"trnmod.trndoc.rcvatt.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"liaall.limmod.ecifno":[
{type: "string", required: false, message: "必输项"},
{max: 22,message:"长度不能超过22"}
],
"liaall.limmod.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"liaall.limmod.wrkp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"liaall.limmod.othp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"liaall.limmod.limpts.wrk.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"liaall.limmod.wrkp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"liaall.limmod.limpts.oth.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"liaall.limmod.othp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"liaall.limmod.comamt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.limmod.limpts.wrk.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"liaall.limmod.limpts.oth.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"liaall.limmod.ccvamt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.limmod.limpts.pfcod1":[
{type: "string", required: false, message: "必输项"},
{max: 14,message:"长度不能超过14"}
],
"liaall.limmod.limpts.pfcod2":[
{type: "string", required: false, message: "必输项"},
{max: 14,message:"长度不能超过14"}
],
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
import Pts from '~/components/business/commonModel/Pts';
import Pub from '~/components/business/commonModel/index.js';
export default class Trtset{
constructor () {
this.data = {
trdgrp:{
rec:{
inr:"",
pntref:"", // 父交易参考号 .trdgrp.rec.pntref
pntnam:"", // Name .trdgrp.rec.pntnam
ownref:"", // 参考号 .trdgrp.rec.ownref
nam:"", // Name .trdgrp.rec.nam
pctfin:"", // 融资比例 .trdgrp.rec.pctfin
stttendat:"", // 起息日期 .trdgrp.rec.stttendat
matdat:"", // Maturity Date .trdgrp.rec.matdat
fintyp:"", // 融资品种 .trdgrp.rec.fintyp
finact:"", // 融资账号 .trdgrp.rec.finact
ovdflg:"", // Overdue Flag .trdgrp.rec.ovdflg
actrat:"", // 执行利率 .trdgrp.rec.actrat
branchinr: "",
},
cbs:{
max:{
cur:"", // 融资金额 .trdgrp.cbs.max.cur
amt:"", // 融资金额 .trdgrp.cbs.max.amt
},
opn1:{
cur:"", // 余额 .trdgrp.cbs.opn1.cur
amt:"", // Balance .trdgrp.cbs.opn1.amt
},
},
fip:{
pts:new Pts().data,
},
},
trtp0:{
bcdget:{
sdamod:{
seainf:"", // .trtp0.bcdget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .trtp0.bcdget.sdamod.dadsnd
},
},
ledget:{
sdamod:{
seainf:"", // .trtp0.ledget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .trtp0.ledget.sdamod.dadsnd
},
},
brdget:{
sdamod:{
seainf:"", // .trtp0.brdget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .trtp0.brdget.sdamod.dadsnd
},
},
bedget:{
sdamod:{
seainf:"", // .trtp0.bedget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .trtp0.bedget.sdamod.dadsnd
},
},
recget:{
sdamod:{
seainf:"", // .trtp0.recget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .trtp0.recget.sdamod.dadsnd
},
},
},
trtmod:{
finmod:{
setlab:"", // Settlement Label .trtmod.finmod.setlab
fincod:"", // 借据号 .trtmod.finmod.fincod
reptyp:"", // 还款方式 .trtmod.finmod.reptyp
cbs:{
cbb:{
intamt1:"", // 表外欠息利息 .trtmod.finmod.cbs.cbb.intamt1
intamty1:"", // 表外本年欠息 .trtmod.finmod.cbs.cbb.intamty1
intamt2:"", // 表内欠息利息 .trtmod.finmod.cbs.cbb.intamt2
intamty2:"", // 表内本年欠息 .trtmod.finmod.cbs.cbb.intamty2
intamt:"", // 利息 .trtmod.finmod.cbs.cbb.intamt
amt:"", // 本金 .trtmod.finmod.cbs.cbb.amt
},
cbe:{
intamt1:"", // 偿还表外欠息利息 .trtmod.finmod.cbs.cbe.intamt1
intamty1:"", // 偿还表外欠息 .trtmod.finmod.cbs.cbe.intamty1
intamt2:"", // 偿还表内欠息利息 .trtmod.finmod.cbs.cbe.intamt2
intamty2:"", // 偿还表内欠息 .trtmod.finmod.cbs.cbe.intamty2
intamt:"", // 偿还本金利息 .trtmod.finmod.cbs.cbe.intamt
amt:"", // 偿还本金 .trtmod.finmod.cbs.cbe.amt
},
totint:"", // 偿还利息总额 .trtmod.finmod.cbs.totint
},
acttyp:"", // 第三方还款方式 .trtmod.finmod.acttyp
act3:"", // 第三方还款账号 .trtmod.finmod.act3
intprd:"", // 计息周期 .trtmod.finmod.intprd
},
},
setamt:"", // Settlement Amount .setamt
setact:"", // Settlement Account .setact
clsflg:"", // 抹�'� .clsflg
setact1:"", // 我行借记�'�户 .setact1
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,
pageId: "", // ctx的key
trtfipl1blk:"",
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames" @change="handleChange">
<el-collapse-item title="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import Event from "~/model/Bptcan/Event";
import Coninfp from "~/views/Public/Coninfp";
export default {
components: {
"m-coninfp": Coninfp,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
activeNames: ["coninfp"],
};
},
methods: {
...Event,
handleChange(val) {
console.log(val);
},
},
created: function () {},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- 左边-->
<c-col :span="8">
<!-- line2 -->
<c-row>
<c-col :span="24">
<el-form-item
label="额度主体"
prop="liaall.limmod.limpts.wrk.pts.extkey"
style="width: 100%"
>
<c-fullbox>
<c-input
v-model="model.liaall.limmod.limpts.wrk.pts.extkey"
maxlength="16"
placeholder="请输入地址编码"
style="width: 100%"
:disabled = "true"
></c-input>
<template slot="footer">
<c-button
style="margin: 0 5px 0 10px; padding: 0 12px"
size="small"
type="primary"
icon="el-icon-search"
@click="onSeainf"
/>
<c-button
style="margin: 0 0"
size="small"
type="primary"
@click="onWrkpDet"
icon="el-icon-info"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
</c-row>
<!-- line3 -->
<c-row>
<c-col :span="24">
<el-form-item
label="主体名称"
prop="liaall.limmod.limpts.wrk.pts.nam"
>
<c-input
v-model="model.liaall.limmod.limpts.wrk.pts.nam"
maxlength="16"
placeholder=""
:disabled="true"
style="width: 100%"
></c-input>
</el-form-item>
</c-col>
</c-row>
<!-- line4 -->
<c-row>
<c-col :span="24" style="text-align: right">
<el-form-item label="额度类型" prop="liaall.limmod.limpts.nonrevflg1">
<c-fullbox>
<c-select
v-model="model.liaall.limmod.limpts.nonrevflg1"
style="width: 100%"
placeholder="请选择额度类型"
@change="nonrevflg1Change"
:disabled = "true"
>
<el-option
v-for="item in codes.nonrevflg1"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
<template slot="footer">
<c-button
style="padding: 0 12px"
size="small"
type="primary"
icon="el-icon-search"
@click="onLimptsGet1"
:disabled = "true"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
</c-row>
<!-- line5 -->
<c-row>
<c-col :span="24">
<el-form-item label="合同流水号" prop="liaall.limmod.limpts.pfcod1">
<c-input
v-model="model.liaall.limmod.limpts.pfcod1"
maxlength="14"
placeholder="请输入合同流水号"
:disabled="this.model.liaall.limmod.limpts.nonrevflg1 != '2'"
style="width: 100%"
></c-input>
</el-form-item>
</c-col>
</c-row>
</c-col>
<!-- 中间 -->
<!-- 随event方法改变 -->
<c-col :span="8" v-show="same" @change="show">
<!-- line2 -->
<c-row>
<c-col :span="24">
<el-form-item
label="对公账户"
prop="liaall.limmod.limpts.oth.pts.extkey"
style="width: 100%"
>
<c-fullbox>
<c-input
v-model="model.liaall.limmod.limpts.oth.pts.extkey"
maxlength="16"
placeholder="请输入地址编号"
style="width: 100%"
></c-input>
<template slot="footer">
<c-button
style="margin: 0 5px 0 10px; padding: 0 12px"
size="small"
type="primary"
icon="el-icon-search"
@click="onSeainf"
/>
<c-button
style="margin: 0 0"
size="small"
type="primary"
@click="onOthpDet"
icon="el-icon-info"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
</c-row>
<!-- line3 -->
<c-row>
<c-col :span="24">
<el-form-item
label="主体名称"
prop="liaall.limmod.limpts.oth.pts.nam"
>
<c-input
v-model="model.liaall.limmod.limpts.oth.pts.nam"
maxlength="16"
placeholder=""
:disabled="true"
style="width: 100%"
></c-input>
</el-form-item>
</c-col>
</c-row>
<!-- line4 -->
<c-row>
<c-col :span="24" style="text-align: right">
<el-form-item label="额度类型" prop="liaall.limmod.limpts.nonrevflg2">
<c-fullbox>
<c-select
v-model="model.liaall.limmod.limpts.nonrevflg2"
style="width: 100%"
placeholder="请选择额度类型"
@change="nonrevflg2Change"
>
<el-option
v-for="item in codes.nonrevflg2"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
<template slot="footer">
<c-button
style="padding: 0 12px"
size="small"
type="primary"
icon="el-icon-search"
@click="onLimptsGet2"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
</c-row>
<!-- line5 -->
<c-row>
<c-col :span="24">
<el-form-item label="合同流水号" prop="liaall.limmod.limpts.pfcod2">
<c-input
v-model="model.liaall.limmod.limpts.pfcod2"
maxlength="14"
placeholder="请输入合同流水号"
:disabled="this.model.liaall.limmod.limpts.nonrevflg2 != '2'"
style="width: 100%"
></c-input>
</el-form-item>
</c-col>
</c-row>
</c-col>
<!-- 右边-->
<c-col :span="8">
<!-- line1 -->
<c-row>
<c-col :span="24">
<el-form-item label="业务编号" prop="liaall.limmod.ownref">
<c-input
v-model="model.liaall.limmod.ownref"
maxlength="16"
placeholder="请输入国结业务编号"
:disabled="true"
style="width: 100%"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="业务余额" prop="liaall.limmod.comamt">
<c-input
v-model="model.liaall.limmod.comamt"
placeholder="请输入业务余额"
:disabled="true"
style="width: 100%"
></c-input>
</el-form-item>
</c-col>
</c-row>
<!-- line1 -->
<c-row>
<c-col :span="24">
<el-form-item label="保证金余额" prop="liaall.limmod.ccvamt">
<c-input
v-model="model.liaall.limmod.ccvamt"
placeholder="请输入保证金余额"
:disabled="true"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24" style="text-align: right">
<c-button size="small" type="primary" @click="onLimmodTrycal">
试算
</c-button>
</c-col>
</c-row>
</c-col>
<br /><br /><br /><br /><br />
<c-col :span="24" style="">
<c-table :list="model.liaall.limmod.limgrd" :border="true">
<el-table-column prop="flg" label="可否串用" width="70px">
</el-table-column>
<el-table-column prop="shxh" label="序号" width="50px">
</el-table-column>
<el-table-column prop="limtyp" label="额度类型" width="70px">
</el-table-column>
<el-table-column prop="ruzhjg" label="入账机构" width="70px">
</el-table-column>
<el-table-column prop="limref" label="额度编号" width="70px">
</el-table-column>
<el-table-column prop="infref" label="额度明细编号" width="100px">
</el-table-column>
<el-table-column prop="limcodsave" label="额度品种代码" width="100px">
</el-table-column>
<el-table-column prop="limcod" label="品种代码描述" width="100px">
</el-table-column>
<el-table-column prop="cur" label="额度明细币种" width="100px">
</el-table-column>
<el-table-column prop="ccvpct" label="保证金比例" width="100px">
</el-table-column>
<el-table-column prop="cpsxed" label="产品授信额度" width="100px">
</el-table-column>
<el-table-column prop="balamt" label="产品可用额度" width="100px">
</el-table-column>
<el-table-column prop="useamt" label="产品已用额度" width="100px">
</el-table-column>
<el-table-column prop="cpsxck" label="产品授信敞口" width="100px">
</el-table-column>
<el-table-column prop="cpkyck" label="产品可用敞口" width="100px">
</el-table-column>
<el-table-column prop="cpyyck" label="产品已用敞口" width="100px">
</el-table-column>
<el-table-column prop="bxh" label="是否可循环" width="90px">
</el-table-column>
<el-table-column prop="bcy" label="是否可串用" width="90px">
</el-table-column>
<el-table-column prop="cyremark" label="串用说明" width="100px">
</el-table-column>
<el-table-column prop="credat" label="产品额度生效日期" width="120px">
</el-table-column>
<el-table-column prop="matdat" label="产品额度到期日" width="120px">
</el-table-column>
<el-table-column prop="lcpsta" label="额度产品状态" width="100px">
</el-table-column>
<el-table-column prop="fentyp" label="暴露分类" width="100px">
</el-table-column>
<el-table-column prop="fentxt" label="暴露分类说明" width="100px">
</el-table-column>
<el-table-column prop="limcur" label="额度币种" width="90px">
</el-table-column>
<el-table-column prop="bfx" label="是否低风险" width="90px">
</el-table-column>
</c-table>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
// import Event from "~/model/Ditopn/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
tableData: {},
same:false
};
},
methods: {
onSeainf() {},
async onPreperButtxmsel() {
let rtnmsg = await this.executeRule("preper_buttxmsel");
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({
title: "错误",
message: "服务请求失败!",
});
}
},
async onLimptsGet1() {
let rtnmsg = await this.executeRule("limpts_get1");
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({
title: "错误",
message: "服务请求失败!",
});
}
},
async onLimptsGet2() {
let rtnmsg = await this.executeRule("limpts_get2");
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({
title: "错误",
message: "服务请求失败!",
});
}
},
nonrevflg1Change() {
if (this.model.liaall.limmod.limpts.nonrevflg1 == "1") {
this.model.liaall.limmod.limpts.pfcod1 = "";
}
},
nonrevflg2Change() {
if (this.model.liaall.limmod.limpts.nonrevflg2 == "1") {
this.model.liaall.limmod.limpts.pfcod2 = "";
}
},
async onWrkpDet() {
let rtnmsg = await this.executeRule("liaall.limmod.wrkp.det");
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
console.log(rtnmsg.data);
} else {
this.$notify.error({
title: "错误",
message: "服务请求失败!",
});
}
},
async onOthpDet() {
let rtnmsg = await this.executeRule("liaall.limmod.othp.det");
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
console.log(rtnmsg.data);
} else {
this.$notify.error({
title: "错误",
message: "服务请求失败!",
});
}
},
async onLimmodTrycal() {
let rtnmsg = await this.executeRule("liaall.limmod.trycal");
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
show(){
let len1 = this.model.liaall.limmod.tygrd["rows"].length||[];
let len2 = this.model.liaall.limmod.dggrd["rows"].length||[];
if(len1>0&&len2>0){
this.same = true;
}
}
},
created: function () {},
};
</script>
<style>
</style>
<!-- <el-tab-pane label="统一授信" name="shisuan,limitbody">
<c-content>
<div class="eibs-tab">
<el-collapse v-model="activeNames">
<el-collapse-item title="试算结果" name="shisuan">
试算结果
<m-shisuan :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="统一授信" name="limitbody">
统一授信
<m-limitbody :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</c-content>
</el-tab-pane> -->
<template>
<div class="eibs-tab">
<c-content>
<el-collapse v-model="activeNames" @change="handleChange">
<el-collapse-item title="统一授信" name="limitbody">
<!-- 统一授信 -->
<m-limitbody :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="试算结果" name="shisuan">
<!-- 试算结果 -->
<m-shisuan :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</c-content>
</div>
</template>
<script>
// import Limitbody from '~/views/Public/Limitbody';
import Shisuan from "./Shisuan";
import Limitbody from "./Limitbody";
export default {
components: {
"m-limitbody" : Limitbody,
"m-shisuan" : Shisuan,
},
inject: ["root"],
props: ["model", "codes"],
data() {
return {
activeNames: ["limitbody"],
};
},
};
</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>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Trtame/Event";
import Ovwp1 from "./Ovwp1";
export default {
components: {
"m-ovwp1": Ovwp1,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
activeNames: ["ovwp1"],
};
},
methods: {
...Event,
},
created: function () {},
computed: {
},
};
</script>
<style>
.marginLable {
padding-left: 160px;
}
</style>
<template>
<div class="eibs">
<!-- <c-content :height="300"> -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<c-form-item label="父交易参考号" prop="trdgrp.rec.pntref">
<c-input
v-model="model.trdgrp.rec.pntref"
maxlength="16"
:disabled="true"
placeholder="请输入父交易参考号"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="参考号" prop="trdgrp.rec.ownref">
<c-input
v-model="model.trdgrp.rec.ownref"
maxlength="16"
:disabled="true"
placeholder="请输入参考号"
></c-input>
</c-form-item>
</c-col>
<!-- <c-col :span="24">
<c-form-item label="融资比例" prop="trdgrp.rec.pctfin">
<c-fullbox>
<c-input
v-model="model.trdgrp.rec.pctfin"
style="width: 96%"
:disabled="true"
placeholder="请输入融资比例"
></c-input
>%
</c-fullbox>
</c-form-item>
</c-col> -->
<c-col :span="24">
<c-form-item label="融资比例" prop="trdgrp.rec.pctfin">
<c-input
v-model="model.trdgrp.rec.pctfin"
style="width: 97%"
:disabled="true"
placeholder="请输入融资比例"
></c-input>%
</c-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="融资金额" prop="trdgrp.cbs.max.cur">
<c-select
style="width: 100%"
v-model="model.trdgrp.cbs.max.cur"
:disabled="true"
>
<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="12">
<el-form-item label-width="5px">
<c-input
v-model="model.trdgrp.cbs.max.amt"
:disabled="true"
></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- <c-col :span="24">
style="width: 70%"111
<el-form-item label="融资金额" prop="trdgrp.cbs.max.cur">
<c-fullbox>111
<c-col :span="12">
<c-select
v-model="model.trdgrp.cbs.max.cur"
:disabled="true"
>
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</c-col>
<c-col :span="12">
<el-form-item
style="text-align: left; margin-left: 5px"
label-width="0px">
<c-input
v-model="model.trdgrp.cbs.max.amt"
:disabled="true"
></c-input>
</el-form-item>
</c-col>
</c-fullbox>111
</el-form-item>
</c-col> -->
<c-col :span="24">
<c-col :span="12">
<c-form-item label="余额" prop="trdgrp.cbs.opn1.cur">
<c-select
v-model="model.trdgrp.cbs.opn1.cur"
style="width: 100%"
:disabled="true"
:code="codes.cur"
></c-select>
</c-form-item>
</c-col>
<c-col :span="12" >
<el-form-item label-width="5px">
<c-input
v-model="model.trdgrp.cbs.opn1.amt"
:disabled="true"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12">
<el-form-item label="起息日期" prop="trdgrp.rec.stttendat">
<c-date-picker
type="date"
v-model="model.trdgrp.rec.stttendat"
style="width: 100%"
:disabled="true"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="到期日期" prop="trdgrp.rec.matdat">
<c-date-picker
type="date"
v-model="model.trdgrp.rec.matdat"
style="width: 100%"
:disabled="true"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="20">
<c-form-item label="借据号" prop="trtmod.finmod.fincod">
<c-input
v-model="model.trtmod.finmod.fincod"
maxlength="17"
:disabled="true"
></c-input>
</c-form-item>
</c-col>
<c-col :span="4">
<c-checkbox
v-model="model.clsflg"
:disabled="checkDate(model.trdgrp.rec.stttendat)"
@change="change(model.clsflg)"
>{{ $t("抹账") }}</c-checkbox
>
</c-col>
</c-col>
<c-col :span="24">
<c-form-item label="结算账户" prop="setact">
<c-input
v-model="model.setact"
maxlength="21"
:disabled="true"
:placeholder="$t('other.please_enter') + '结算账户'"
></c-input>
</c-form-item>
</c-col>
<!-- <c-col :span="24">
<span v-text="model.trtmod.finmod.setlab" data-path=".trtmod.finmod.setlab" > </span>
</c-col> -->
<c-col :span="24">
<el-form-item label="第三方还款方式" prop="trtmod.finmod.acttyp">
<c-select
v-model="model.trtmod.finmod.acttyp"
style="width: 100%"
:disabled="true"
placeholder="请选择第三方还款方式"
>
<el-option v-for="item in codes.acttyp1" :key="item.value" :label="item.label" :value="item.value"></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-form-item
label="表外欠息利息"
prop="trtmod.finmod.cbs.cbb.intamt1"
>
<c-input
v-model="model.trtmod.finmod.cbs.cbb.intamt1"
:disabled="true"
placeholder="请输入表外欠息利息"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item
label="表外本年欠息"
prop="trtmod.finmod.cbs.cbb.intamty1"
>
<c-input
v-model="model.trtmod.finmod.cbs.cbb.intamty1"
:disabled="true"
placeholder="请输入表外本年欠息"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item
label="表内欠息利息"
prop="trtmod.finmod.cbs.cbb.intamt2"
>
<c-input
v-model="model.trtmod.finmod.cbs.cbb.intamt2"
:disabled="true"
placeholder="请输入表内欠息利息"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item
label="表内本年欠息"
prop="trtmod.finmod.cbs.cbb.intamty2"
>
<c-input
v-model="model.trtmod.finmod.cbs.cbb.intamty2"
:disabled="true"
placeholder="请输入表内本年欠息"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="利息" prop="trtmod.finmod.cbs.cbb.intamt">
<c-input
v-model="model.trtmod.finmod.cbs.cbb.intamt"
:disabled="true"
:placeholder="$t('other.please_enter') + '利息'"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="本金" prop="trtmod.finmod.cbs.cbb.amt">
<c-input
v-model="model.trtmod.finmod.cbs.cbb.amt"
:disabled="true"
:placeholder="$t('other.please_enter') + '本金'"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="融资状态" prop="trdgrp.rec.ovdflg">
<c-select
v-model="model.trdgrp.rec.ovdflg"
style="width: 100%"
:disabled="true"
:placeholder="$t('other.please_enter') + 'Overdue Flag'"
>
<el-option
v-for="item in codes.ovdflg"
: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="trtmod.finmod.intprd">
<c-select
v-model="model.trtmod.finmod.intprd"
style="width: 100%"
:disabled="true"
:placeholder="$t('other.please_enter') + '计息周期'"
>
<el-option
v-for="item in codes.intprd"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="我行借记账户" prop="setact1">
<c-input
v-model="model.setact1"
maxlength="21"
:placeholder="$t('other.please_enter') + '我行借记账户'"
></c-input>
</c-form-item>
</c-col>
</c-col>
<!--=================右部================= -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<c-form-item label="简略信息" prop="trdgrp.rec.pntnam">
<c-input
v-model="model.trdgrp.rec.pntnam"
maxlength="40"
:disabled="true"
placeholder="请输入简略信息"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="简略信息" prop="trdgrp.rec.nam">
<c-input
v-model="model.trdgrp.rec.nam"
maxlength="40"
:disabled="true"
placeholder="请输入简略信息"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="融资客户" prop="trdgrp.fip.pts.ref">
<c-input
v-model="model.trdgrp.fip.pts.ref"
maxlength="16"
:disabled="true"
placeholder="融资客户"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="当事人名称" prop="trdgrp.fip.pts.nam">
<c-input
v-model="model.trdgrp.fip.pts.nam"
maxlength="40"
:disabled="true"
:placeholder="$t('other.please_enter') + '当事人名称'"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="融资品种" prop="trdgrp.rec.fintyp">
<c-select
v-model="model.trdgrp.rec.fintyp"
maxlength="3"
:disabled="true"
placeholder="请输入融资品种"
style="width:100%"
>
<el-option
v-for="item in codes.fintyp1"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="融资账号" prop="trdgrp.rec.finact">
<c-input
v-model="model.trdgrp.rec.finact"
maxlength="21"
:disabled="true"
placeholder="请输入融资账号"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="还本金金额" prop="setmod.doccur">
<!-- <c-fullbox> -->
<c-col :span="6">
<c-select
v-model="model.setmod.doccur"
:disabled="true"
:placeholder="
$t('other.please_enter') + 'document currency'
"
>
<el-option
v-for="item in codes.doccur"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</c-col>
<c-col :span="14">
<c-input
v-model="model.setamt"
style="margin-left: 5px;"
:disabled="model.trtmod.finmod.reptyp != '2'"
></c-input>
</c-col>
<c-col :span="4">
<c-button v-model="model.trtmod.finmod.cal" size="small" type="primary" @click="onFinmodCal">
计算
</c-button>
</c-col>
<!-- </c-fullbox> -->
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="还款方式" prop="trtmod.finmod.reptyp">
<c-select
v-model="model.trtmod.finmod.reptyp"
:disabled="model.clsflg == 'X'"
style="width: 100%"
@change="selChange(model.trtmod.finmod.reptyp)"
placeholder="请选择还款方式"
>
<el-option
v-for="item in codes.reptyp"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="第三方还款账号" prop="trtmod.finmod.act3">
<c-input
v-model="model.trtmod.finmod.act3"
maxlength="21"
:disabled="true"
placeholder="请输入第三方还款账号"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item
label="偿还表外欠息利息"
prop="trtmod.finmod.cbs.cbe.intamt1"
>
<c-input
v-model="model.trtmod.finmod.cbs.cbe.intamt1"
:disabled="true"
placeholder="请输入偿还表外欠息利息"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item
label="偿还表外欠息"
prop="trtmod.finmod.cbs.cbe.intamty1"
>
<c-input
v-model="model.trtmod.finmod.cbs.cbe.intamty1"
:disabled="true"
placeholder="请输入偿还表外欠息"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item
label="偿还表内欠息利息"
prop="trtmod.finmod.cbs.cbe.intamt2"
>
<c-input
v-model="model.trtmod.finmod.cbs.cbe.intamt2"
:disabled="true"
placeholder="请输入偿还表内欠息利息"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item
label="偿还表内欠息"
prop="trtmod.finmod.cbs.cbe.intamty2"
>
<c-input
v-model="model.trtmod.finmod.cbs.cbe.intamty2"
:disabled="true"
placeholder="请输入偿还表内欠息"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item
label="偿还本金利息"
prop="trtmod.finmod.cbs.cbe.intamt"
>
<c-input
v-model="model.trtmod.finmod.cbs.cbe.intamt"
:disabled="true"
placeholder="请输入还本金利息"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="偿还本金" prop="trtmod.finmod.cbs.cbe.amt">
<c-input
v-model="model.trtmod.finmod.cbs.cbe.amt"
:disabled="true"
placeholder="请输入偿还本金"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="偿还利息总额" prop="trtmod.finmod.cbs.totint">
<c-input
v-model="model.trtmod.finmod.cbs.totint"
:disabled="true"
placeholder="偿还利息总额"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="执行利率" prop="trdgrp.rec.actrat">
<c-input
v-model="model.trdgrp.rec.actrat"
:disabled="true"
placeholder="请输入执行利率"
></c-input>
</c-form-item>
</c-col>
<!-- <c-col :span="20" class="bctdav_bctp_bctovw_cheak"> -->
<c-col :span="20">
<el-form-item label="" prop="" class="checkbox-left">
<c-checkbox v-model="model.mtabut.clsflg"
true-label="C" false-label="O"
:disabled="flag1">{{
$t("闭卷")
}}</c-checkbox>
</el-form-item>
</c-col>
</c-col>
<!-- </c-content> -->
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Trtset/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
flag1:true,
flag2:false
};
},
methods: {
...Event,
checkDate(date) {
var d = new Date().getDate();
var m = new Date().getMonth();
var y = new Date().getFullYear();
var dd = new Date(this.model.trdgrp.rec.stttendat).getDate();
var mm = new Date(this.model.trdgrp.rec.stttendat).getMonth();
var yy = new Date(this.model.trdgrp.rec.stttendat).getFullYear();
if (d != dd || m != mm || y != yy) {
return true;
} else {
return false;
}
},
change(a){
this.executeRule("clsflg").then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
}
});
if (a = 'X'){
this.model.trtmod.finmod.reptyp = "1"
if(this.flag1 == true){
this.flag1 = false
this.model.mtabut.clsflg = "C"
}
}
},
selChange(b){
if(b == '2'||this.flag2 == false){
this.model.mtabut.clsflg = 'O'
this.flag1 = true
}
},
},
created: function () {},
};
</script>
<style></style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<div class="e-table-wrapper">
<el-table
:data="model.liaall.limmod.limpfp.clmcbe"
style="width: 100%"
>
<el-table-column
prop="limtyp"
label="限制类型"
sortable
width="100">
</el-table-column>
<el-table-column
prop="cur"
label="业务币种"
sortable
width="100">
</el-table-column>
<el-table-column
prop="cbeamt"
label="业务发生额"
sortable
width="120">
</el-table-column>
<el-table-column
prop="reqtyp1"
label="Req.Typel"
sortable
width="130">
</el-table-column>
<el-table-column
prop="limcbeamt"
label="额度发生额"
sortable
width="120">
</el-table-column>
<el-table-column
prop="reqtyp2"
label="Req.Type2"
sortable
width="130">
</el-table-column>
<el-table-column
prop="ckcbeamt"
label="敞口发生额"
sortable
width="120">
</el-table-column>
<el-table-column
prop="credat"
label="额度日期"
sortable
width="100">
</el-table-column>
<el-table-column
prop="ptyextkey"
label="客户编号"
sortable
width="100">
</el-table-column>
<el-table-column
prop="ptynam"
label="客户名称"
sortable
width="100">
</el-table-column>
<el-table-column
prop="ownref"
label="业务编号"
sortable
width="100">
</el-table-column>
<el-table-column
prop="ccvbl"
label="合同保证金比例"
sortable
width="130">
</el-table-column>
<el-table-column
prop="limvar"
label="额度类型"
sortable
width="100">
</el-table-column>
<el-table-column
prop="dgzylimref"
label="额度编号"
sortable
width="100">
</el-table-column>
</el-table>
<el-pagination
layout="prev, pager, next"
:total="1">
</el-pagination>
</div>
</c-col>
<c-col :span="24">
<div class="e-table-wrapper">
<el-table
:data="model.liaall.limmod.limpfp.clmcbb"
style="width: 100%"
>
<el-table-column
prop="dgzylimvar"
label="额度品种"
sortable
width="100">
</el-table-column>
<el-table-column
prop="tzhamt"
label="调整后业务余额"
sortable
width="130">
</el-table-column>
<el-table-column
prop="tzhccv"
label="调整后保证金比例"
sortable
width="140">
</el-table-column>
<el-table-column
prop="tzhlimamt"
label="调整后拟占用额度"
sortable
width="140">
</el-table-column>
<el-table-column
prop="tzhlimck"
label="调整后拟占用敞口"
sortable
width="140">
</el-table-column>
<el-table-column
prop="tzqamt"
label="调整前业务余额"
sortable
width="130">
</el-table-column>
<el-table-column
prop="tzqccv"
label="调整后保证金比例"
sortable
width="140">
</el-table-column>
<el-table-column
prop="tzqlimamt"
label="调整前已占用额度"
sortable
width="140">
</el-table-column>
<el-table-column
prop="tzqlimck"
label="调整前已占用敞口"
sortable
width="140">
</el-table-column>
</el-table>
<el-pagination
layout="prev, pager, next"
:total="1">
</el-pagination>
</div>
</c-col>
<c-col :span="24">
<div class="e-table-wrapper">
<el-table
:data="model.liaall.limmod.limpfp.clmpty"
style="width: 100%"
>
<el-table-column
prop="limvar"
label="额度类型"
sortable
width="100">
</el-table-column>
<el-table-column
prop="dgzylimvar"
label="额度品种"
sortable
width="100">
</el-table-column>
<el-table-column
prop="dglimcur"
label="额度币种"
sortable
width="100">
</el-table-column>
<el-table-column
prop="dgsxlimamt"
label="授信额度"
sortable
width="100">
</el-table-column>
<el-table-column
prop="dgyylimamt"
label="已用额度"
sortable
width="100">
</el-table-column>
<el-table-column
prop="dgkylimamt"
label="可用额度"
sortable
width="100">
</el-table-column>
<el-table-column
prop="dgcklimamt"
label="授信敞口"
sortable
width="100">
</el-table-column>
<el-table-column
prop="dgyylimck"
label="已用敞口"
sortable
width="100">
</el-table-column>
<el-table-column
prop="dgkylimck"
label="可用敞口"
sortable
width="100">
</el-table-column>
<el-table-column
prop="dghfxh"
label="恢复序号"
sortable
width="100">
</el-table-column>
<el-table-column
prop="dgzylimref"
label="额度编号"
sortable
width="100">
</el-table-column>
<el-table-column
prop="dgzyliminfref"
label="额度明细编号"
sortable
width="130">
</el-table-column>
<el-table-column
prop="dgccvbl"
label="保证金比例"
sortable
width="120">
</el-table-column>
</el-table>
<el-pagination
layout="prev, pager, next"
:total="1">
</el-pagination>
</div>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Trtset/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
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="myTabClick">
<!--trtset PD000015 Settle -->
<el-tab-pane label="业务信息" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--limmod PD000001 统一授信 -->
<el-tab-pane label="统一授信" name="limitbody,shisuan">
<c-content>
<div class="eibs-tab">
<el-collapse >
<el-collapse-item title="统一授信" name="limitbody">
<m-limitbody :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="试算结果" name="shisuan">
<m-shisuan :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="setmod">
<c-content>
<m-setmod :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="会计分录" name="glentry">
<c-content>
<!-- 会计分录 -->
<m-glentry :model="model" :codes="codes" />
</c-content>'m-glentry': Glentry,
</el-tab-pane>
<el-tab-pane label="备查/附言" name="addbcb">
<c-content>
<m-addbcb :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--trndoc PD000529 &Messages -->
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<m-docpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--trndoc PD000546 Attachments -->
<el-tab-pane label="附件信息" name="doctre">
<c-content>
<m-doctre :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--limmod PD001139 试算结果 -->
<!-- <el-tab-pane label="试算结果" name="shisuan">
<c-content>
<m-shisuan :model="model" :codes="codes" />
</c-content>
</el-tab-pane> -->
</c-tabs>
</el-form>
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
<!-- <el-button size="small">备忘录</el-button>
<el-button size="small">影像信息</el-button>
<el-button size="small">保存模板</el-button>
<el-button size="small">使用模板</el-button>
<el-button size="small">制裁信息</el-button>
<el-button size="small">拆分报文</el-button>
<el-button size="small">提示</el-button> -->
</c-function-btn>
</c-page>
</div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Trtset from "../model";
import event from '../event'
import operationFunc from "~/mixin/operationFunc";
import Ovwp from "./Ovwp";
import Shisuan from "./Shisuan";
import Addbcb from "./Addbcb";
import Limitbody from "~/components/business/limitbody/views";
import Engp from "~/components/business/engp/views";
import Coninfp from "~/components/business/coninfp/views";
import Setmod from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/components/business/doctre/views";
import Glentry from "~/components/business/glentry/views";
export default {
name: "Trtset",
components: {
"m-ovwp": Ovwp,
"m-engp": Engp,
"m-setmod": Setmod,
"m-coninfp": Coninfp,
"m-docpan": Docpan,
"m-doctre": Doctre,
"m-shisuan": Shisuan,
"m-limitbody": Limitbody,
'm-glentry': Glentry,
"m-addbcb": Addbcb,
},
provide() {
return {
root: this,
};
},
mixins: [event, operationFunc], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "ovwp",
trnName: "trtset",
model: new Trtset().data,
rules: null,
codes: { ...CodeTable },
activeNames: ["engp"],
// activeNames1: ["limitbody"],
};
},
methods: {
myTabClick(tab) {
this.tabClick(tab);
/**
* do it yourself
**/
},
},
created: async function () {
// console.log("进入trtset交易");
// let rtnmsg = await this.init({});
// if (rtnmsg.respCode == SUCCESS) {
// this.updateModel(rtnmsg.data);
// //TODO 处理数据逻辑
// if (this.isInDisplay) {
// this.restoreDisplay();
// }
// } else {
// this.$notify.error({ title: "错误", message: "服务请求失败!" });
// }
},
mounted () {
this.init()
},
};
</script>
<style></style>
......@@ -97,5 +97,8 @@ const Business = [
{ path: 'infcld', component: () => import('~/business/infcld/views'), name: 'Infcld', meta: { title: '打包托收查询' }},
{ path: 'inftrd', component: () => import('~/business/inftrd/views'), name: 'Inftrd', meta: { title: '进口融资查询' }},
{ path: 'trtset', component: () => import('~/business/trtset/views'), name: 'Trtset', meta: { title: '进口融资还款' }},
]
export default Business
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment