Commit cab71a1a by panziyi

bctcan修改

parent 8ad6f840
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.bcdgrp.dre.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bcdgrp.dre));
}
if (model.bcdgrp.rmi.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bcdgrp.rmi));
}
if (model.bcdgrp.drr.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bcdgrp.drr));
}
let dataObj = {
rec: {
objtyp: 'BCD',
objinr: model.bcdgrp.rec.inr,
ownref: model.bcdgrp.rec.ownref,
opndat: model.bcdgrp.rec.opndat,
expdat: model.bcdgrp.rec.expdat,
branchInr: model.bcdgrp.rec.branchinr,
nam: model.bcdgrp.rec.nam,
oridre: model.bcdgrp.rec.oridre,
rejtypsel: model.rejtypsel,
// bflg: model.cbsdcr.bflg,
mattxtflg:model.bcdgrp.rec.mattxtflg,
doccur: model.setmod.doccur,
docamt: model.setmod.docamt,
},
cbsMap: {
MAX: model.bcdgrp.cbs.max,
OPN1: model.bcdgrp.cbs.opn1,
// MAC: model.bcdgrp.cbs.mac,
// MAC2: model.bcdgrp.cbs.mac2,
// OPC2: model.bcdgrp.cbs.opc2,
// CNF: model.bcdgrp.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: 'BCD',
objinr: model.bcdgrp.rec.inr,
ownref: model.bcdgrp.rec.ownref,
},
};
return params
},
buildDoctre (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'BCD',
objinr: model.bcdgrp.rec.inr,
ownref: model.bcdgrp.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)),
// trnmod:{
// trn:JSON.parse(localStorage.getItem('review_'+this.trnName))
// }
}
const res = await Api.post('/service/bctcan/init', {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
bcdgrp:{
rec:{
inr: this.$route.query.inr
}
},
});
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',保函用的是LG
// tbl: 'LG',
// };
// const loading = this.loading();
// let res = await Api.post('/service/gitopn/getOwnRef', params);
// if (res.respCode == SUCCESS) {
// loading.close();
// this.model.gidgrp.rec.ownref = res.data;
// }
// },
// 获取弹框表格数据
async queryGridEtyPromptDialogData(type, ptytyp) {
let params = {
userId: window.sessionStorage.userId || 'ZL',
ptytyp: ptytyp,
extkey: this.model.bcdgrp[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;
}
},
// 选中弹框表格的行数据
async selectGridEtyPromptData(row) {
let params = {
...row,
};
let res = await Api.post('/service/ptspta/fetch', params);
if (res.respCode == SUCCESS) {
this.$set(this.model.bcdgrp, row.role.toLowerCase(), res.data);
}
},
// 业务信息=》基本信息=》支出目的
purposChange(key, value) {
this.handleChangeForm(key, value);
},
// 初始化保函开立类型码表下拉列表
async queryHndtypCodeTableList(trnName) {
let params = {
botp: {
swiftflg: this.model.botp.swiftflg,
},
bcdgrp: {
rec: {
purpos: this.model.bcdgrp.rec.purpos,
},
},
transName: trnName.toUpperCase(),
};
let res = await Api.post('/service/bctdav/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"
let checkObj = {
"liaall.limmod.limpts.oth.pts.extkey" :Utils.defaultFunction,
"bpdgrp.fia.pts.extkey" :Utils.defaultFunction,
"bpdgrp.fia.adrelc" :Utils.defaultFunction,
"bpdgrp.fia.namelc" :Utils.defaultFunction,
"bpdgrp.fia.dbfadrblkcn" :Utils.defaultFunction,
"bpdgrp.fia.pts.adrblk" :Utils.defaultFunction,
"setmod.doccur" :Utils.defaultFunction,
"setmod.dspflg" :Utils.defaultFunction,
"setmod.docamt" :Utils.defaultFunction,
"trnmod.trndoc.condocstm" :Utils.defaultFunction,
"trnmod.trndoc.shwinc" :Utils.defaultFunction,
"trnmod.trndoc.shwout" :Utils.defaultFunction,
"trnmod.cipmod.cskfzh" :Utils.defaultFunction,
"liaall.limmod.limpts.wrk.pts.extkey" :Utils.defaultFunction,
"liaall.limmod.limpts.nonrevflg2" :Utils.defaultFunction,
"liaall.limmod.limpts.nonrevflg1" :Utils.defaultFunction,
"trnmod.cipmod.feecod" :Utils.defaultFunction,
"trnmod.cipmod.cfkzjl" :Utils.defaultFunction,
"liaall.limmod.comamt" :Utils.defaultFunction,
"liaall.limmod.ccvamt" :Utils.defaultFunction,
"liaall.limmod.limpts.wrk.pts.nam" :Utils.defaultFunction,
"bpdgrp.rec.fintyp" :Utils.defaultFunction,
"trnmod.cipmod.ddmisu" :Utils.defaultFunction,
"trnmod.cipmod.ddmsu1" :Utils.defaultFunction,
"bpdgrp.cbs.max.amt" :Utils.defaultFunction,
"trnmod.cipmod.ddbhao" :Utils.defaultFunction,
"bpdgrp.rec.ownref" :Utils.defaultFunction,
"liaall.limmod.limpts.oth.pts.nam" :Utils.defaultFunction,
"trnmod.cipmod.cskzjl" :Utils.defaultFunction,
"trnmod.cipmod.covflg" :Utils.defaultFunction,
"trnmod.cipmod.cfkfzh" :Utils.defaultFunction,
"bptp0.brdget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bptp0.bodget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bptp0.bedget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bptp0.btdget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bpdgrp.rec.pntref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bptp0.bodget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"bptp0.bedget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"bptp0.brdget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"bptp0.btdget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"bpdgrp.rec.pntnam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"bptp0.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bpdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bptp0.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"bpdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"bpdgrp.fia.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bpdgrp.rec.intrat":[
{type: "string", required: false, message: "必输项"},
{max: 14,message:"长度不能超过14"}
],
"bptp0.fiap.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bpdgrp.fia.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bptp0.fiap.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"bpdgrp.fia.namelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"bpdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"bpdgrp.fia.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"bpdgrp.fia.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"bpdgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"bpdgrp.fia.adrelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
// "strinf":[
// {type: "string", required: true, message: "必输项"},
// {max: 50,message:"长度不能超过50"}
// ],
"setmod.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
// "setmod.docamt":[
// {type: "number", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过14位"},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
// ],
"setmod.zmqacc":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
// "mtabut.coninf.oitinf.oit.inftxt":[
// {type: "string", required: true, message: "必输项"},
// {max: 60,message:"长度不能超过60"}
// ],
// "mtabut.coninf.oitset.oit.inftxt":[
// {type: "string", required: true, message: "必输项"},
// {max: 60,message:"长度不能超过60"}
// ],
// "mtabut.coninf.conexedat":[
// {type: "date", required: false, message: "输入正确的日期"}
// ],
// "mtabut.coninf.usr.extkey":[
// {type: "string", required: false, message: "必输项"},
// {max: 8,message:"长度不能超过8"}
// ],
// "mtabut.coninf.contag72his":[
// {type: "string", required: true, message: "必输项"},
// {max: 35,message:"长度不能超过35"}
// ],
// "mtabut.coninf.contag79his":[
// {type: "string", required: true, message: "必输项"},
// {max: 50,message:"长度不能超过50"}
// ],
// "mtabut.coninf.contag72":[
// {type: "string", required: true, message: "必输项"},
// {max: 35,message:"长度不能超过35"}
// ],
// "mtabut.coninf.contag79":[
// {type: "string", required: true, message: "必输项"},
// {max: 50,message:"长度不能超过50"}
// ],
"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"}
],
"trnmod.trndoc.dtemod.dtetagm06":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"trnmod.trndoc.dtemod.dtetagm53nam":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.trndoc.dtemod.dtetagm53num":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.trndoc.dtemod.dtetagm07":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"trnmod.trndoc.dtemod.dtetagm08":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"trnmod.cipmod.dafnzh":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"trnmod.cipmod.dafnmc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.dddbsh":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.zjg1hh":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.zjg2hh":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.zjg1mc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.zjg2mc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.pyebchkey":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.fkrkhh":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.pyebchnam":[
{type: "string", required: true, message: "必输项"},
{max: 70,message:"长度不能超过70"}
],
"trnmod.cipmod.fukrhm":[
{type: "string", required: true, message: "必输项"},
{max: 70,message:"长度不能超过70"}
],
"trnmod.cipmod.recsehbch":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.fuyns1":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.recsehbchnam":[
{type: "string", required: true, message: "必输项"},
{max: 100,message:"长度不能超过100"}
],
"trnmod.cipmod.staonebch":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.fuyns2":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.staonebchnam":[
{type: "string", required: true, message: "必输项"},
{max: 100,message:"长度不能超过100"}
],
"trnmod.cipmod.stasehbch":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.fuyns3":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.stasehbchnam":[
{type: "string", required: false, message: "必输项"},
{max: 100,message:"长度不能超过100"}
],
"trnmod.cipmod.skrdz2":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.fuyns4":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.skrdz3":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.fkrdz2":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.fkhkhh":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.skkhhh":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.skrdz4":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.fkrdz3":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.fkkhmc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.skkhhm":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.skrdz5":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.fkrdz4":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.fkhdzh":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.skkhdz":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.skrdz6":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.fkrdz5":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.fkkhzh":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.skkhzh":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.skrdz7":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.fkrdz6":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.fuynh2":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.fkrdz7":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.fuynh4":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.fuynh3":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.ddbhao":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.feiyon":[
{type: "string", required: false, message: "必输项"},
{max: 15,message:"长度不能超过15"}
],
"trnmod.cipmod.fufeih":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.ddmisu":[
{type: "string", required: true, message: "必输项"},
{max: 100,message:"长度不能超过100"}
],
"trnmod.cipmod.feiyn2":[
{type: "string", required: false, message: "必输项"},
{max: 15,message:"长度不能超过15"}
],
"trnmod.cipmod.ffeih2":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.fyo1bz":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"trnmod.cipmod.fyo2bz":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"trnmod.cipmod.fkreid":[
{type: "string", required: false, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
"trnmod.cipmod.cskeid":[
{type: "string", required: false, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
"trnmod.cipmod.skreid":[
{type: "string", required: false, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
"trnmod.cipmod.cskfzh":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"trnmod.cipmod.cskrzj":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.fkrzjh":[
{type: "string", required: true, message: "必输项"},
{max: 70,message:"长度不能超过70"}
],
"trnmod.cipmod.csfdz1":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.skrzjh":[
{type: "string", required: true, message: "必输项"},
{max: 70,message:"长度不能超过70"}
],
"trnmod.cipmod.csfdz2":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.fkrzhj":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.skrzhj":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.csfdz3":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.fkfyzh":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"trnmod.cipmod.skfyzh":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"trnmod.cipmod.csfdz4":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.fkfdz1":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.skfdz1":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.csfdz5":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.fkfdz2":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.skfdz2":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.csfdz6":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.fkfdz3":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.skfdz3":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.csfdz7":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.fkfdz4":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.skfdz4":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.cskzjh":[
{type: "string", required: true, message: "必输项"},
{max: 70,message:"长度不能超过70"}
],
"trnmod.cipmod.fkfdz5":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.skfdz5":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.fkfdz6":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.skfdz6":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.cfkeid":[
{type: "string", required: false, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
"trnmod.cipmod.fkfdz7":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.skfdz7":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.cfkfzh":[
{type: "string", required: false, message: "必输项"},
{max: 34,message:"长度不能超过34"}
],
"trnmod.cipmod.cfkrzj":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.ddmsu1":[
{type: "string", required: true, message: "必输项"},
{max: 70,message:"长度不能超过70"}
],
"trnmod.cipmod.cffdz1":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.ddmsu2":[
{type: "string", required: true, message: "必输项"},
{max: 70,message:"长度不能超过70"}
],
"trnmod.cipmod.cffdz2":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.ddmsu3":[
{type: "string", required: true, message: "必输项"},
{max: 70,message:"长度不能超过70"}
],
"trnmod.cipmod.cffdz3":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.ddmsu4":[
{type: "string", required: true, message: "必输项"},
{max: 70,message:"长度不能超过70"}
],
"trnmod.cipmod.cffdz4":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.ddmsu5":[
{type: "string", required: true, message: "必输项"},
{max: 70,message:"长度不能超过70"}
],
"trnmod.cipmod.cffdz5":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.ddmsu6":[
{type: "string", required: true, message: "必输项"},
{max: 70,message:"长度不能超过70"}
],
"trnmod.cipmod.cffdz6":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.ddmsu7":[
{type: "string", required: true, message: "必输项"},
{max: 70,message:"长度不能超过70"}
],
"trnmod.cipmod.cffdz7":[
{type: "string", required: true, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"trnmod.cipmod.ddmsu8":[
{type: "string", required: true, message: "必输项"},
{max: 70,message:"长度不能超过70"}
],
"trnmod.cipmod.cfkzjh":[
{type: "string", required: true, message: "必输项"},
{max: 70,message:"长度不能超过70"}
],
"trnmod.cipmod.mxywbs":[
{type: "string", required: false, message: "必输项"},
{max: 15,message:"长度不能超过15"}
],
"trnmod.cipmod.fqzyhh":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.mxywje":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"长度不能超过18"}
],
"trnmod.cipmod.jszyhh":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.cipmod.mxywsh":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trnmod.ptsmod.fecinf.fecstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"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: "number", 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: "number", 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 Bctcan {
constructor() {
this.data = {
setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod,
liaall: new Pub().data.Liaall,
liaccv: new Pub().data.Liaccv,
docpan: new Pub().data.Docpan,
bcdgrp:{
rec:{
inr:"",
branchinr:"",
ownref:"", // Collection Number .bcdgrp.rec.ownref
nam:"", // Name .bcdgrp.rec.nam
rcvdat:"", // Docs Received on .bcdgrp.rec.rcvdat
advdat:"", // Date of Advice of Documents Received .bcdgrp.rec.advdat
matdat:"", // Maturity Date .bcdgrp.rec.matdat
predat:"", // Maturity Date .bcdgrp.rec.predat
doctypcod:"", // Payment Condition .bcdgrp.rec.doctypcod
docsta:"", // Document Status .bcdgrp.rec.docsta
},
cbs:{
max:{
cur:"", // Document Amount .bcdgrp.cbs.max.cur
amt:"", // Document Amount .bcdgrp.cbs.max.amt
},
opn1:{
cur:"", // Open Amount .bcdgrp.cbs.opn1.cur
amt:"", // Open Amount .bcdgrp.cbs.opn1.amt
},
},
dre:{
pts:new Pts().data,
},
rmi:{
pts:new Pts().data,
},
drr:{
pts:new Pts().data,
},
},
bctp0:{
recget:{
sdamod:{
seainf:"", // .bctp0.recget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bctp0.recget.sdamod.dadsnd
},
},
matp:{
mattxtlab:"", // Label for MATTXT .bctp0.matp.mattxtlab
},
},
sndmsg:"", // Send message .sndmsg
strinf:"", // Narrative .strinf
pageId: "" // ctx的key
}
}
}
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames" @change="handleChange">
<!--el-collapse-item title="备查表" name="addbcb1">
<m-addbcb1 :model="model" :codes="codes" />
</el-collapse-item-->
<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 Utils from "~/utils";
import Event from "~/model/Litcan/Event";
//import Addbcb1 from "~/views/Public/Addbcb1";
import Coninfp from "~/views/Public/Coninfp";
export default {
components: {
"m-coninfp": Coninfp,
//"m-addbcb1": Addbcb1,
},
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">
<el-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<el-form-item label="代收闭卷编号" prop="bcdgrp.rec.ownref">
<c-fullbox>
<c-input
disabled
v-model="model.bcdgrp.rec.ownref"
maxlength="16"
placeholder="请输入代收闭卷编号"
></c-input>
<template slot="footer">
<c-button
size="small"
style="margin-left: 10px; padding: 0 10px"
type="primary"
>
<i class="el-icon-info"></i>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="14">
<el-form-item label="代收币种及金额" prop="bcdgrp.cbs.max.cur">
<c-select
disabled
v-model="model.bcdgrp.cbs.max.cur"
style="width: 100%"
placeholder="请选择代收币种及金额"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="10">
<el-form-item label="" label-width="0" style="margin-left: 5px" prop="bcdgrp.cbs.max.amt">
<c-input
disabled
v-model="model.bcdgrp.cbs.max.amt"
placeholder="请输入代收币种及金额"
></c-input>
</el-form-item>
</c-col>
<c-col :span="14">
<el-form-item label="代收币种及余额" prop="bcdgrp.cbs.opn1.cur">
<c-select
disabled
v-model="model.bcdgrp.cbs.opn1.cur"
style="width: 100%"
placeholder="请选择代收币种及余额"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="10">
<el-form-item label="" label-width="0" style="margin-left: 5px" prop="bcdgrp.cbs.opn1.amt">
<c-input
disabled
v-model="model.bcdgrp.cbs.opn1.amt"
placeholder="请输入代收币种及余额"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="收单日期" prop="bcdgrp.rec.rcvdat">
<c-date-picker
disabled
type="date"
v-model="model.bcdgrp.rec.rcvdat"
style="width: 100%"
placeholder="请选择收单日期"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="通知日期" prop="bcdgrp.rec.advdat">
<c-date-picker
disabled
type="date"
v-model="model.bcdgrp.rec.advdat"
style="width: 100%"
placeholder="请选择"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="单据到期日" prop="bcdgrp.rec.matdat">
<c-date-picker
disabled
type="date"
v-model="model.bcdgrp.rec.matdat"
style="width: 100%"
placeholder="请选择单据到期日"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="托收日期" prop="bcdgrp.rec.predat">
<c-date-picker
disabled
type="date"
v-model="model.bcdgrp.rec.predat"
style="width: 100%"
placeholder="请选择"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="支付条件" prop="bcdgrp.rec.doctypcod">
<c-select
disabled
:code="codes.doctypcod"
v-model="model.bcdgrp.rec.doctypcod"
style="width: 100%"
placeholder="请选择支付条件"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="单据状态" prop="bcdgrp.rec.docsta">
<c-select
disabled
:code="codes.docstabot"
v-model="model.bcdgrp.rec.docsta"
style="width:100%"
placeholder="请输入单据状态"
></c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="描述" prop="strinf">
<c-fullbox>
<c-input
disabled
:rows="6"
type="textarea"
v-model="model.strinf"
maxlength="50"
show-word-limit
placeholder="请输入描述"
></c-input>
<template slot="footer">
<c-button
disabled
size="small" type="primary">
<i class="el-icon-more"></i>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
</el-col>
<el-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<el-form-item label="简略信息" prop="bcdgrp.rec.nam">
<c-input
disabled
v-model="model.bcdgrp.rec.nam"
maxlength="40"
placeholder="请输入简略信息"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="付款人参考号" prop="bcdgrp.dre.pts.ref">
<c-input
disabled
v-model="model.bcdgrp.dre.pts.ref"
maxlength="16"
placeholder="请输入付款人参考号"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="付款人名称" prop="bcdgrp.dre.pts.nam">
<c-input
disabled
v-model="model.bcdgrp.dre.pts.nam"
maxlength="40"
placeholder="请输入付款人名称"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="托收行参考号" prop="bcdgrp.rmi.pts.ref">
<c-input
disabled
v-model="model.bcdgrp.rmi.pts.ref"
maxlength="16"
placeholder="请输入托收行参考号"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="托收行名称" prop="bcdgrp.rmi.pts.nam">
<c-input
disabled
v-model="model.bcdgrp.rmi.pts.nam"
maxlength="40"
placeholder="请输入托收行名称"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="收款人参考号" prop="bcdgrp.drr.pts.ref">
<c-input
disabled
v-model="model.bcdgrp.drr.pts.ref"
maxlength="16"
placeholder="请输入收款人参考号"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="收款人名称" prop="bcdgrp.drr.pts.nam">
<c-input
disabled
v-model="model.bcdgrp.drr.pts.nam"
maxlength="40"
placeholder="请输入收款人名称"
></c-input>
</el-form-item>
</c-col>
</el-col>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bctcan/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {};
},
methods: { ...Event },
created: function () {},
};
</script>
<style></style>
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames" @change="handleChange">
<el-collapse-item title="取消" name="canp">
<m-canp :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import Canp from "./Canp";
import commonProcess from "~/mixin/commonProcess";
import Event from "~/model/Litopn/Event";
export default {
components: {
"m-canp": Canp,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
flag: true,
activeNames: ["canp"],
}
},
methods: {
...Event,
handleChange(val) {
console.log(val)
}
},
}
</script>
<style scoped>
</style>
\ No newline at end of file
<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="150">
</el-table-column>
<el-table-column
prop="cur"
label="业务币种"
sortable
width="80">
</el-table-column>
<el-table-column
prop="cbeamt"
label="业务发生额"
sortable
width="90">
</el-table-column>
<el-table-column
prop="reqtyp1"
label="Req.Typel"
sortable
width="100">
</el-table-column>
<el-table-column
prop="limcbeamt"
label="额度发生额"
sortable
width="100">
</el-table-column>
<el-table-column
prop="reqtyp2"
label="Req.Type2"
sortable
width="100">
</el-table-column>
<el-table-column
prop="ckcbeamt"
label="敞口发生额"
sortable
width="100">
</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="100">
</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="pager.liaall_limmod_limpfp_clmcbe.total">
</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="100">
</el-table-column>
<el-table-column
prop="tzhccv"
label="调整后保证金比例"
sortable
width="100">
</el-table-column>
<el-table-column
prop="tzhlimamt"
label="调整后拟占用额度"
sortable
width="100">
</el-table-column>
<el-table-column
prop="tzhlimck"
label="调整后拟占用敞口"
sortable
width="100">
</el-table-column>
<el-table-column
prop="tzqamt"
label="调整前业务余额"
sortable
width="100">
</el-table-column>
<el-table-column
prop="tzqccv"
label="调整后保证金比例"
sortable
width="100">
</el-table-column>
<el-table-column
prop="tzqlimamt"
label="调整前已占用额度"
sortable
width="100">
</el-table-column>
<el-table-column
prop="tzqlimck"
label="调整前已占用敞口"
sortable
width="100">
</el-table-column>
</el-table>
<el-pagination
layout="prev, pager, next"
:total="pager.liaall_limmod_limpfp_clmcbb.total">
</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="100">
</el-table-column>
<el-table-column
prop="dgccvbl"
label="保证金比例"
sortable
width="100">
</el-table-column>
</el-table>
<el-pagination
layout="prev, pager, next"
:total="pager.liaall_limmod_limpfp_clmpty.total">
</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/Bptcan/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="tabClick">
<!--取消 -->
<!-- <el-tab-pane label="取消" name="canp">-->
<!-- <m-canp :model="model" :codes="codes" />-->
<!-- </el-tab-pane>-->
<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">-->
<!-- <m-engp :model="model" :codes="codes" />-->
<!-- </el-tab-pane>-->
<!-- <el-tab-pane label="结算" name="setpan">-->
<!-- <c-content>-->
<!-- <m-setpan :model="model" :codes="codes" />-->
<!-- </c-content>-->
<!-- </el-tab-pane>-->
<!-- &lt;!&ndash;账务 &ndash;&gt;-->
<!-- <el-tab-pane label="账务" name="glepan">-->
<!-- <m-glepan :model="model" :codes="codes" />-->
<!-- </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="setmod">
<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>
<m-coninfp :model="model" :codes="codes" />
</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 Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Bctcan from "../model";
import formRules from '../model/check'
// import Canp from "./Canp";
import Engp from "~/components/business/engp/views";
import Setmod from "~/components/business/setmod/views"
import Glentry from "~/components/business/glentry/views";
import Coninfp from "~/components/business/coninfp/views";
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/views/Public/Doctre"
import event from "../event";
import operationFunc from "@/mixin/operationFunc";
import Ovwp from "./Ovwp";
export default {
name: "Bctcan",
components: {
// "m-canp": Canp,
"m-ovwp": Ovwp,
"m-engp": Engp,
"m-glentry": Glentry,
"m-setmod": Setmod,
"m-coninfp": Coninfp,
"m-docpan": Docpan,
"m-doctre": Doctre,
},
provide() {
return {
root: this,
};
},
mixins: [operationFunc, event], // 里面包含了Default、Check等的公共处理
data() {
return {
activeNames:["engp"],
tabVal: "ovwp",
trnName: "bctcan",
model: new Bctcan().data,
rules: formRules,
codes: { ...CodeTable },
};
},
methods: {
mimeTabClick(tab) {
this.tabClick(tab);
const name = tab.name;
let rulePath;
if (name === "doctre") {
rulePath = "trnmod.trndoc.doctre"
}
if (!!rulePath) {
this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
});
}
},
},
created: async function () {
console.log("进入bctcan交易");
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
//更新数据
this.updateModel(rtnmsg.data);
if (this.isInDisplay) {
this.restoreDisplay();
}
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
mounted () {
this.init()
// this.queryHndtypCodeTableList(this.trnName)
},
};
</script>
<style>
</style>
import Api from '~/service/Api';
import { getTrnNameByInr } from "~/service/business/common";
import moment from 'moment';
export default {
methods: {
async handleSearch() {
let opndatfrom = this.model.infcon.opndatfrom;
if (!opndatfrom || opndatfrom == '') {
this.$notify.error({ title: '错误', message: '查询开始日期必输!' });
return;
}
let opndatto = this.model.infcon.opndatto;
if (!opndatto || opndatto == '') {
this.$notify.error({ title: '错误', message: '查询结束日期必输!' });
return;
}
let params = {
...this.model.infcon,
pageIndex: this.pagination.pageIndex,
pageSize: this.pagination.pageSize,
opndatfrom:moment(opndatfrom).format('YYYY-MM-DD'),
opndatto:moment(opndatto).format('YYYY-MM-DD'),
};
let rtnmsg = await Api.post('/service/infcld/getList', params);
if (rtnmsg.respCode == SUCCESS) {
this.stmData.data = [];
this.stmData.data = rtnmsg.data.list;
// debugger
this.pagination.total = rtnmsg.data.total;
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async handleReset() {
this.model.infcon.seaownref = '';
this.model.infcon.opndatfrom = new Date();
this.model.infcon.opndatto = new Date();
this.model.infcon.searef = '';
this.model.infcon.pty.extkey = '';
this.model.infcon.usr.extkey = '';
this.model.infcon.searol = '';
this.model.infcon.pty.nam = '';
this.model.infcon.seapty = '';
this.model.infcon.curtxt1 = '';
this.model.infcon.nam = '';
this.model.infcon.seaamtfr = '';
this.model.infcon.seaamtto = '';
this.model.infcon.seasta = '';
this.model.infcon.doctypcod = '';
},
// pageSize改变
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
this.pagination.pageIndex = 1;
this.pagination.pageSize = val;
this.handleSearch();
},
// 页码改变
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.pagination.pageIndex = val;
this.handleSearch();
},
// 详情
async details(row) {
const params = {
//根据xx字段 查询详情表的数据
inr:row.inr,
userId: window.sessionStorage.userId || 'ZL',
ownref: row.ownref,
};
const res = await Api.post('/service/infcld/getDetail', params);
if (res.respCode === SUCCESS) {
this.trnData.data = res.data;
}
},
toBotdav() {
// 点击开立,清空从待经办进来的时候带的行参数
localStorage.setItem('row_botdav', null)
localStorage.setItem('review_botdav',null)
this.$router.history.push('/business-new/bottdav');
},
// 关闭详情弹框
closeDetailsDialog(refId) {
this.$refs[refId].doClose();
console.log('close');
},
// 处理
async handler(row) {
this.initdialog = true;
this.currentHandleRow = row
const params = {
//根据xx字段 查询处理的数据
seaownref: row.seaownref,
};
const res = await Api.post('/service/infcld/dealWithByOwnref', params);
if (res.respCode === SUCCESS) {
if (res.data) {
this.handlerDataList = []
Object.keys(res.data).map((item) => {
this.handlerDataList.push({
label: item,
value: res.data[item]
})
})
}
}
},
handleClick (btn) {
if (btn.value === 'N') {
return
}
let filterRoute = this.btnRouteMap.filter((item) => {
return item.label === btn.label
})
this.$router.history.push({
path: filterRoute[0].route,
query: {
inr: this.currentHandleRow.inr
}
});
},
// 关闭处理弹框
closeHandlerDialog() {
this.initdialog = false;
},
/**
* 打开详情页面
* @param {string} inr
*/
display(inr) {
getTrnNameByInr({ inr }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
let viewurl = "/#/display/" + trnName + "?trn=" + inr
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
},
},
};
import Api from "~/service/Api"
import Pts from "../Common/Pts"
import Pub from "../Public"
export default class Infcld {
constructor() {
this.data = {
infcon: {
objinr:"",
cldgrp: {
rec: {
ownref: "", // Reference .cldgrp.rec.ownref
nam: "", // Name of CC contract .cldgrp.rec.nam
colref: "", // Coll.bank ref. .cldgrp.rec.colref
colptynam: "", // Col.bank name .cldgrp.rec.colptynam
credat: "", // Date of creation .cldgrp.rec.credat
count: "", // Item Count .cldgrp.rec.count
chktyp: "", // Type of Draft .cldgrp.rec.chktyp
colflg: "", // Payemnt Disposition .cldgrp.rec.colflg
inr: "",
},
cbs: {
max: {
amt: "", // Document Amount .cldgrp.cbs.max.amt
cur: "", // Document Amount .cldgrp.cbs.max.cur
},
opn1: {
cur: "", // Open Amount .cldgrp.cbs.opn1.cur
amt: "", // Open Amount .cldgrp.cbs.opn1.amt
},
},
},
seaownref: "", // Own Reference .infcon.seaownref
nam: "", // Name .infcon.nam
searef: "", // Party Reference .infcon.searef
pty: {
extkey: "", // Select Single Party .infcon.pty.extkey
nam: "", // External Visible Name .infcon.pty.nam
},
seapty: "", // Party Name/BIC .infcon.seapty
searol: "", // Role .infcon.searol
opndatfrom: "", // Opening between .infcon.opndatfrom
opndatto: "", // Open Date to .infcon.opndatto
usr: {
extkey: "", // User ID .infcon.usr.extkey
},
seasta: "", // Status .infcon.seasta
seacur: "", // Currency .infcon.seacur
seaamtfr: "", // Amount between .infcon.seaamtfr
seaamtto: "", // Amount to .infcon.seaamtto
relflg: "", // Release Status .infcon.relflg
cxmflg: "", // 是否显示查询码 .infcon.cxmflg
hndtyp: "", // Handling Type .infcon.hndtyp
chksubcon: "", // incl. all subcontracts .infcon.chksubcon
chktrnsta: "", // only active transactions .infcon.chktrnsta
trnstm: "", // stream for TRN to selected contract .infcon.trnstm
cbctxt: "", // CBS Column .infcon.cbctxt
cbbstm: "", // stream of CBBs .infcon.cbbstm
cbestm: "", // stream of CBEs .infcon.cbestm
feptxtlbl: "", // label used on FEP-Panel .infcon.feptxtlbl
fcptxtlbl: "", // Text label used on FCP-panel .infcon.fcptxtlbl
fepfeecod: "", // Fee Code .infcon.fepfeecod
fepdsp: "", // Disposition .infcon.fepdsp
fepstm: "", // stream for FEPs to selected contract .infcon.fepstm
fcpstm: "", // stream of foreign charges .infcon.fcpstm
fcpdsp: "", // Disposition .infcon.fcpdsp
setflg: "", // show temporary settlement that already settled .infcon.setflg
sepdelflg: "", // show temporary settlement that already deleted .infcon.sepdelflg
sepstm: "", // stream of SEPs .infcon.sepstm
sepp: {
feptxtlbl: "", // label used for FEP-Stream .infcon.sepp.feptxtlbl
fcptxtlbl: "", // label used for FCP-Stream .infcon.sepp.fcptxtlbl
sepstm: "", // Stream of selected SEP .infcon.sepp.sepstm
fcpstm: "", // Stream of FCP .infcon.sepp.fcpstm
fepstm: "", // Stream of FEP .infcon.sepp.fepstm
glpstm: "", // Stream of GLP .infcon.sepp.glpstm
},
seabucdatfro: "", // Booking date from .infcon.seabucdatfro
seabucdatto: "", // Booking date till used on GLEINFP .infcon.seabucdatto
seatrninr: "", // Transaction INR .infcon.seatrninr
glestm: "", // Stream of GLEs .infcon.glestm
smhcortyp: "", // Type of Document .infcon.smhcortyp
smhdatfrom: "", // Created between .infcon.smhdatfrom
smhdatto: "", // created till .infcon.smhdatto
smhdir: "", // Direction .infcon.smhdir
chktrn: "", // Active only .infcon.chktrn
smhstm: "", // stream of documents to selected contract .infcon.smhstm
sptinc: "", // Incoming .infcon.sptinc
sptreg: "", // Registered .infcon.sptreg
sptpen: "", // Pending .infcon.sptpen
sptcor: "", // Correction .infcon.sptcor
sptdel: "", // Deleted .infcon.sptdel
sptstm: "", // stream for SPT to selected contract .infcon.sptstm
diadatfrom: "", // Date from .infcon.diadatfrom
diadatto: "", // date till .infcon.diadatto
diasta: "", // Status .infcon.diasta
diastm: "", // stream for diaries to selected contract .infcon.diastm
liastm: "", // Stream for all engagements to selected contract .infcon.liastm
ordstm: "", // Stream for Orders for Contract .infcon.ordstm
trnp: {
sptp: {
ordp0: {
orddur: "", // Duration .infcon.trnp.sptp.ordp0.orddur
recget: {
sdamod: {
dadsnd: "", // Drag Drop Sender .infcon.trnp.sptp.ordp0.recget.sdamod.dadsnd
seainf: "", // .infcon.trnp.sptp.ordp0.recget.sdamod.seainf
},
},
conarg: {
sector: "", // Sector .infcon.trnp.sptp.ordp0.conarg.sector
selref: "", // Contract .infcon.trnp.sptp.ordp0.conarg.selref
selnam: "", // name of selected contract .infcon.trnp.sptp.ordp0.conarg.selnam
},
pta: {
ptyextkey: "", // Ordering Party .infcon.trnp.sptp.ordp0.pta.ptyextkey
nam: "", // Externally Visible Name of Address .infcon.trnp.sptp.ordp0.pta.nam
},
},
ord: {
extkey: "", // Order Number .infcon.trnp.sptp.ord.extkey
nam: "", // External Readable Identification .infcon.trnp.sptp.ord.nam
inr: "", // Internal Unique ID of Transaction .infcon.trnp.sptp.ord.inr
ownusr: "", // Responsible User .infcon.trnp.sptp.ord.ownusr
ownusg: "", // Responsible Group Optional .infcon.trnp.sptp.ord.ownusg
sta: "", // Status .infcon.trnp.sptp.ord.sta
chkflg: "", // Order OK .infcon.trnp.sptp.ord.chkflg
inftxt: "", // Infotext .infcon.trnp.sptp.ord.inftxt
infdsp: "", // Infotext .infcon.trnp.sptp.ord.infdsp
inidattim: "", // Group .infcon.trnp.sptp.ord.inidattim
stadattim: "", // Timestamp of Last Status Update .infcon.trnp.sptp.ord.stadattim
cpldattim: "", // Timestamp of Completion .infcon.trnp.sptp.ord.cpldattim
tardattim: "", // Target for Completion .infcon.trnp.sptp.ord.tardattim
},
},
ordp0: {
orddur: "", // Duration .infcon.trnp.ordp0.orddur
recget: {
sdamod: {
dadsnd: "", // Drag Drop Sender .infcon.trnp.ordp0.recget.sdamod.dadsnd
seainf: "", // .infcon.trnp.ordp0.recget.sdamod.seainf
},
},
conarg: {
sector: "", // Sector .infcon.trnp.ordp0.conarg.sector
selref: "", // Contract .infcon.trnp.ordp0.conarg.selref
selnam: "", // name of selected contract .infcon.trnp.ordp0.conarg.selnam
},
pta: {
ptyextkey: "", // Ordering Party .infcon.trnp.ordp0.pta.ptyextkey
nam: "", // Externally Visible Name of Address .infcon.trnp.ordp0.pta.nam
},
},
ord: {
extkey: "", // Order Number .infcon.trnp.ord.extkey
nam: "", // External Readable Identification .infcon.trnp.ord.nam
inr: "", // Internal Unique ID of Transaction .infcon.trnp.ord.inr
ownusr: "", // Responsible User .infcon.trnp.ord.ownusr
ownusg: "", // Responsible Group Optional .infcon.trnp.ord.ownusg
sta: "", // Status .infcon.trnp.ord.sta
chkflg: "", // Order OK .infcon.trnp.ord.chkflg
inftxt: "", // Infotext .infcon.trnp.ord.inftxt
infdsp: "", // Infotext .infcon.trnp.ord.infdsp
inidattim: "", // Group .infcon.trnp.ord.inidattim
stadattim: "", // Timestamp of Last Status Update .infcon.trnp.ord.stadattim
cpldattim: "", // Timestamp of Completion .infcon.trnp.ord.cpldattim
tardattim: "", // Target for Completion .infcon.trnp.ord.tardattim
},
},
ordp0: {
orddur: "", // Duration .infcon.ordp0.orddur
recget: {
sdamod: {
dadsnd: "", // Drag Drop Sender .infcon.ordp0.recget.sdamod.dadsnd
seainf: "", // .infcon.ordp0.recget.sdamod.seainf
},
},
conarg: {
sector: "", // Sector .infcon.ordp0.conarg.sector
selref: "", // Contract .infcon.ordp0.conarg.selref
selnam: "", // name of selected contract .infcon.ordp0.conarg.selnam
},
pta: {
ptyextkey: "", // Ordering Party .infcon.ordp0.pta.ptyextkey
nam: "", // Externally Visible Name of Address .infcon.ordp0.pta.nam
},
},
ord: {
extkey: "", // Order Number .infcon.ord.extkey
nam: "", // External Readable Identification .infcon.ord.nam
inr: "", // Internal Unique ID of Transaction .infcon.ord.inr
ownusr: "", // Responsible User .infcon.ord.ownusr
ownusg: "", // Responsible Group Optional .infcon.ord.ownusg
sta: "", // Status .infcon.ord.sta
chkflg: "", // Order OK .infcon.ord.chkflg
inftxt: "", // Infotext .infcon.ord.inftxt
infdsp: "", // Infotext .infcon.ord.infdsp
inidattim: "", // Group .infcon.ord.inidattim
stadattim: "", // Timestamp of Last Status Update .infcon.ord.stadattim
cpldattim: "", // Timestamp of Completion .infcon.ord.cpldattim
tardattim: "", // Target for Completion .infcon.ord.tardattim
},
},
infbut: {
dspstm: "", // display stream .infbut.dspstm
},
seadoctypcod: "", // Payment Disposition .seadoctypcod
prtpanblk: "", // XMLPanel prtpan的内置block .prtpanblk
trnmod: {
trndoc: {
dtemod: {
dtetagm06: "", // Information about Confirmation Instruction .trnmod.trndoc.dtemod.dtetagm06
dtetagm07: "", // Notes from Advising Bank .trnmod.trndoc.dtemod.dtetagm07
dtetagm08: "", // Fee of Advising Bank .trnmod.trndoc.dtemod.dtetagm08
dtetagm53typ: "", // Document Sending Type .trnmod.trndoc.dtemod.dtetagm53typ
dtetagm53nam: "", // Courier Name .trnmod.trndoc.dtemod.dtetagm53nam
dtetagm53num: "", // Courier Number .trnmod.trndoc.dtemod.dtetagm53num
},
},
ptsmod: {
fecinf: {
fecstm: "", // Stream of fee conditions of passed object .trnmod.ptsmod.fecinf.fecstm
},
},
cipmod: {
dddbsh: "", // 端到端标识号 .trnmod.cipmod.dddbsh
zjg1hh: "", // 中介机构1行号 .trnmod.cipmod.zjg1hh
zjg1mc: "", // 中介机构1名称 .trnmod.cipmod.zjg1mc
zjg2hh: "", // 中介机构2行号 .trnmod.cipmod.zjg2hh
zjg2mc: "", // 中介机构2名称 .trnmod.cipmod.zjg2mc
dafnzh: "", // 借记记账账号 .trnmod.cipmod.dafnzh
dafnmc: "", // 借记记账名称 .trnmod.cipmod.dafnmc
recsehbch: "", // 收款间接参与者行号 .trnmod.cipmod.recsehbch
staonebch: "", // 付款直接参与者行号 .trnmod.cipmod.staonebch
recsehbchnam: "", // 收款间接参与者名称 .trnmod.cipmod.recsehbchnam
staonebchnam: "", // 付款直接参与者名称 .trnmod.cipmod.staonebchnam
fuynh2: "", // 附言2 .trnmod.cipmod.fuynh2
fuynh3: "", // 附言3 .trnmod.cipmod.fuynh3
fuynh4: "", // 附言4 .trnmod.cipmod.fuynh4
skrdz2: "", // 收款人地址2 .trnmod.cipmod.skrdz2
skrdz3: "", // 收款人地址3 .trnmod.cipmod.skrdz3
skrdz4: "", // 收款人地址4 .trnmod.cipmod.skrdz4
skrdz5: "", // 收款人地址5 .trnmod.cipmod.skrdz5
fkrdz2: "", // 付款人地址2 .trnmod.cipmod.fkrdz2
fkrdz3: "", // 付款人地址3 .trnmod.cipmod.fkrdz3
fkrdz4: "", // 付款人地址4 .trnmod.cipmod.fkrdz4
fkrdz5: "", // 付款人地址5 .trnmod.cipmod.fkrdz5
pyebchkey: "", // 收款行开户行行号 .trnmod.cipmod.pyebchkey
pyebchnam: "", // 收款行开户行名称 .trnmod.cipmod.pyebchnam
stasehbch: "", // 付款间接参与者行号 .trnmod.cipmod.stasehbch
stasehbchnam: "", // 付款间接参与者名称 .trnmod.cipmod.stasehbchnam
fkrdz6: "", // 付款人地址6 .trnmod.cipmod.fkrdz6
fkrdz7: "", // 付款人地址7 .trnmod.cipmod.fkrdz7
skrdz6: "", // 收款人地址6 .trnmod.cipmod.skrdz6
skrdz7: "", // 收款人地址7 .trnmod.cipmod.skrdz7
covflg: "", // 112COV .trnmod.cipmod.covflg
fufeih: "", // 付费行号1 .trnmod.cipmod.fufeih
ffeih2: "", // 付费行号2 .trnmod.cipmod.ffeih2
fkrkhh: "", // 付款行开户行行号 .trnmod.cipmod.fkrkhh
fukrhm: "", // 付款行开户行名称 .trnmod.cipmod.fukrhm
feecod: "", // 费用承担方 .trnmod.cipmod.feecod
feiyon: "", // 费用1 .trnmod.cipmod.feiyon
feiyn2: "", // 费用2 .trnmod.cipmod.feiyn2
fuyns1: "", // 致收款人银行附言1 .trnmod.cipmod.fuyns1
fuyns2: "", // 致收款人银行附言2 .trnmod.cipmod.fuyns2
fuyns3: "", // 致收款人银行附言3 .trnmod.cipmod.fuyns3
fuyns4: "", // 致收款人银行附言4 .trnmod.cipmod.fuyns4
fyo1bz: "", // 费用1币种 .trnmod.cipmod.fyo1bz
fyo2bz: "", // 费用2币种 .trnmod.cipmod.fyo2bz
fkhkhh: "", // 付款行行号 .trnmod.cipmod.fkhkhh
fkkhmc: "", // 付款行行名 .trnmod.cipmod.fkkhmc
fkkhzh: "", // 付款行账号 .trnmod.cipmod.fkkhzh
fkhdzh: "", // 付款行地址 .trnmod.cipmod.fkhdzh
skkhhh: "", // 收款行行号 .trnmod.cipmod.skkhhh
skkhhm: "", // 收款行行名 .trnmod.cipmod.skkhhm
skkhzh: "", // 收款行账号 .trnmod.cipmod.skkhzh
skkhdz: "", // 收款行地址 .trnmod.cipmod.skkhdz
ddbhao: "", // 订单编号 .trnmod.cipmod.ddbhao
ddmisu: "", // 订单描述 .trnmod.cipmod.ddmisu
fkrzhj: "", // 付款人组织机构代码 .trnmod.cipmod.fkrzhj
fkrzjh: "", // 付款人证件号码 .trnmod.cipmod.fkrzjh
fkrzgj: "", // 付款人常驻国家(地区)代码 .trnmod.cipmod.fkrzgj
fkreid: "", // 付款人EID .trnmod.cipmod.fkreid
fkfyzh: "", // 付款非银行支付机构帐号 .trnmod.cipmod.fkfyzh
fkfdz1: "", // 付款非银行支付机构地址1 .trnmod.cipmod.fkfdz1
fkfdz2: "", // 付款非银行支付机构地址2 .trnmod.cipmod.fkfdz2
fkfdz3: "", // 付款非银行支付机构地址3 .trnmod.cipmod.fkfdz3
fkfdz4: "", // 付款非银行支付机构地址4 .trnmod.cipmod.fkfdz4
fkfdz5: "", // 付款非银行支付机构地址5 .trnmod.cipmod.fkfdz5
fkfdz6: "", // 付款非银行支付机构地址6 .trnmod.cipmod.fkfdz6
fkfdz7: "", // 付款非银行支付机构地址7 .trnmod.cipmod.fkfdz7
skrzhj: "", // 收款人组织机构代码 .trnmod.cipmod.skrzhj
skrzjh: "", // 收款人证件号码 .trnmod.cipmod.skrzjh
skrzgj: "", // 收款人常驻国家(地区)代码 .trnmod.cipmod.skrzgj
skreid: "", // 收款人EID .trnmod.cipmod.skreid
skfyzh: "", // 收款非银行支付机构帐号 .trnmod.cipmod.skfyzh
skfdz1: "", // 收款非银行支付机构地址1 .trnmod.cipmod.skfdz1
skfdz2: "", // 收款非银行支付机构地址2 .trnmod.cipmod.skfdz2
skfdz3: "", // 收款非银行支付机构地址3 .trnmod.cipmod.skfdz3
skfdz4: "", // 收款非银行支付机构地址4 .trnmod.cipmod.skfdz4
skfdz5: "", // 收款非银行支付机构地址5 .trnmod.cipmod.skfdz5
skfdz6: "", // 收款非银行支付机构地址6 .trnmod.cipmod.skfdz6
skfdz7: "", // 收款非银行支付机构地址7 .trnmod.cipmod.skfdz7
ddmsu1: "", // 订单描述1 .trnmod.cipmod.ddmsu1
ddmsu2: "", // 订单描述2 .trnmod.cipmod.ddmsu2
ddmsu3: "", // 订单描述3 .trnmod.cipmod.ddmsu3
ddmsu4: "", // 订单描述4 .trnmod.cipmod.ddmsu4
ddmsu5: "", // 订单描述5 .trnmod.cipmod.ddmsu5
ddmsu6: "", // 订单描述6 .trnmod.cipmod.ddmsu6
ddmsu7: "", // 订单描述7 .trnmod.cipmod.ddmsu7
ddmsu8: "", // 订单描述8 .trnmod.cipmod.ddmsu8
skrzjl: "", // 收款人证件类型 .trnmod.cipmod.skrzjl
fkrzjl: "", // 付款人证件类型 .trnmod.cipmod.fkrzjl
cfkfzh: "", // COV付款非银行支付机构帐号 .trnmod.cipmod.cfkfzh
cffdz1: "", // COV付款非银行支付机构地址1 .trnmod.cipmod.cffdz1
cffdz2: "", // COV付款非银行支付机构地址2 .trnmod.cipmod.cffdz2
cffdz3: "", // COV付款非银行支付机构地址3 .trnmod.cipmod.cffdz3
cffdz4: "", // COV付款非银行支付机构地址4 .trnmod.cipmod.cffdz4
cffdz5: "", // COV付款非银行支付机构地址5 .trnmod.cipmod.cffdz5
cffdz6: "", // COV付款非银行支付机构地址6 .trnmod.cipmod.cffdz6
cffdz7: "", // COV付款非银行支付机构地址7 .trnmod.cipmod.cffdz7
cfkrzj: "", // COV付款人组织机构代码 .trnmod.cipmod.cfkrzj
cfkzjh: "", // COV付款人证件号码 .trnmod.cipmod.cfkzjh
cfkrgj: "", // COV付款人常驻国家(地区)代码 .trnmod.cipmod.cfkrgj
cfkeid: "", // COV付款人EID .trnmod.cipmod.cfkeid
cskfzh: "", // COV收款非银行支付机构帐号 .trnmod.cipmod.cskfzh
csfdz1: "", // COV收款非银行支付机构地址1 .trnmod.cipmod.csfdz1
csfdz2: "", // COV收款非银行支付机构地址2 .trnmod.cipmod.csfdz2
csfdz3: "", // COV收款非银行支付机构地址3 .trnmod.cipmod.csfdz3
csfdz4: "", // COV收款非银行支付机构地址4 .trnmod.cipmod.csfdz4
csfdz6: "", // COV收款非银行支付机构地址6 .trnmod.cipmod.csfdz6
csfdz7: "", // COV收款非银行支付机构地址7 .trnmod.cipmod.csfdz7
cskrzj: "", // COV收款人组织机构代码 .trnmod.cipmod.cskrzj
csfdz5: "", // COV收款非银行支付机构地址5 .trnmod.cipmod.csfdz5
cskzjh: "", // COV收款人证件号码 .trnmod.cipmod.cskzjh
cskrgj: "", // COV收款人常驻国家(地区)代码 .trnmod.cipmod.cskrgj
cskeid: "", // COV收款人EID .trnmod.cipmod.cskeid
cskzjl: "", // COV收款人证件类型 .trnmod.cipmod.cskzjl
cfkzjl: "", // COV付款人证件类型 .trnmod.cipmod.cfkzjl
fqzyhh: "", // 发起直接参与者行号 .trnmod.cipmod.fqzyhh
jszyhh: "", // 接收直接参与者行号 .trnmod.cipmod.jszyhh
mxywbs: "", // 明细业务总笔数 .trnmod.cipmod.mxywbs
mxywje: "", // 明细业务总金额 .trnmod.cipmod.mxywje
mxywsh: "", // 明细业务标识号 .trnmod.cipmod.mxywsh
},
},
pageId: "", // ctx的key
mtabut: new Pub().data.Mtabut,
}
}
}
\ No newline at end of file
<template>
<el-dialog
:visible.sync="initdialog"
:title="'交易列表'"
append-to-body
:before-close="beforeClose"
@opened="opened"
>
<div class="m-list-btns">
<div class="busnavbar">
<div class="busnavbar-items">
<c-button
style="margin-left: 7px"
size="medium"
type="primary"
class="medium_bcs"
v-for="(item, index) in navcode"
v-bind:key="index"
@click.native="onNarBtnClick(item.code, item.index)"
:title="item.title"
:disabled="item.isDis === 'N'"
>{{ item.label }}</c-button
>
</div>
</div>
</div>
</el-dialog>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import _ from "~/utils/Lodash"
export default {
props: {
ownref: {
required: true,
},
trnCode: {
required: true,
},
model: {
required: true,
},
ownrefPath: {
required: false,
default: "didgrp",
},
tabIndex: {
required: false,
default: 1,
},
amt: {
required: false,
default: 0,
},
inr: {
required: false,
default: '',
},
opndat: {
required: false,
default: 0.000,
},
},
components: {},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() {
return {
initdialog: false,
navcode: [
// {code:"",label:"",isDis:"",title:""},
],
};
},
methods: {
//各入口按钮请求
async onNarBtnClick(code, i) {
this.model.cfgfil[`subtrn${i}`] = code;
let rtnmsg = await this.executeRule(`cfgfil.hotsub${i}`);
if (rtnmsg.respCode == SUCCESS) {
this.navcode = [];
this.$emit("onChoose", code.toLowerCase(), this.model.pageId);
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
getIndex(module) {
for (let i = 1; i <= 12; i++) {
var temp = this.model.cfgfil[`subtxt${i}`];
if (module == temp) {
return i;
}
}
return 1;
},
opened() {
this.tState = []
this.$emit("childmethods");
},
beforeClose() {
this.navcode = [];
this.initdialog = false;
},
},
mounted() {
this.trnName = this.trnCode;
this.$nextTick(function () {
this.$on("childmethods", async function () {
this.model.cldgrp.cbs.opn1.amt = this.amt;
this.model.cldgrp.rec.inr = this.inr;
this.model.cldgrp.rec.ownref = this.ownref;
this.model.cldgrp.rec.opndat = this.opndat;
let res = await this.executeRule(`cfgfil.hotreg${this.tabIndex}`);
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
} else {
this.$notify.error({
title: "错误",
message: "服务请求失败!",
});
}
this.navcode = [];
//请求按钮数据
let rulePath
if (this.ownrefPath.endsWith(".ownref")) {
_.set(this.model, this.ownrefPath, this.ownref);
rulePath = this.ownrefPath
} else {
this.model[this.ownrefPath].rec.ownref = this.ownref;
rulePath = this.ownrefPath + ".rec.ownref"
}
let rtnmsg = await this.executeRule(rulePath); //didgrp_rec_ownref
if (rtnmsg.respCode == SUCCESS) {
//重置数组
this.navcode = [];
this.updateModel(rtnmsg.data);
//this.model.cfgfil.btnstm = rtnmsg.data.cfgfil_btnstm.rows
//给inr赋值,后面弹窗里面的按钮请求会用到
//this.model.didgrp.rec.inr = rtnmsg.data.didgrp_rec_inr
const length = this.model.cfgfil.btnstm.rows.length;
let btnStr = this.model.cfgfil.btnstm.rows;
for (let i = 0; i < length; i++) {
let arr = btnStr[i].split("\t");
var index = this.getIndex(arr[1]);
let newList = {
code: arr[0],
label: arr[1],
isDis: arr[2],
title: arr[3],
index: index,
};
this.navcode.push(newList);
}
// 交易状态信息
const selbut = this.model.selbut ?? {}
const arr = Object.keys(selbut)
.filter(key => key.startsWith("dsp"))
.map(key => selbut[key] || "")
.filter(s => s.trim()!== "")
this.tState = arr
} else {
this.navcode = [];
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
});
});
},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-list-search @form-reset="handleReset" @form-search="handleSearch">
<!-- 持续展示区 -->
<template v-slot="searchSlot">
<el-form class="m-table-search-form" ref="paramsForm" label-position="right"
label-width="110px" size="small">
<c-row>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="打包托收编号" prop="infcon.seaownref" style="width: 100%">
<c-input v-model="model.infcon.seaownref" maxlength="16"
placeholder="请输入打包托收编号">
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="开立日期" prop="infcon.opndatfrom" style="width: 100%">
<c-col :span="11">
<c-date-picker type="date" v-model="model.infcon.opndatfrom" style="width:100%"
placeholder="请选择"></c-date-picker>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-date-picker type="date" v-model="model.infcon.opndatto" style="width:100%"
placeholder="请选择"></c-date-picker>
</c-col>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="当事人参考号" prop="infcon.searef" style="width: 100%">
<c-input v-model="model.infcon.searef" maxlength="16"
placeholder="请输入当事人参考号">
</c-input>
</el-form-item>
</c-col>
</c-col>
</c-row>
<c-row v-show="searchSlot.searchToggle">
<c-col :span="24">
<c-col :span="8">
<el-form-item label="简略信息" prop="infcon.nam" style="width: 100%">
<c-input v-model="model.infcon.nam" maxlength="40" placeholder="请输入简略信息"></c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="当事人名称" prop="infcon.pty.nam" style="width: 100%">
<c-input v-model="model.infcon.pty.nam" maxlength="40" placeholder="请输入当事人名称" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="当事人BIC编码" prop="infcon.seapty" style="width: 100%">
<c-input v-model="model.infcon.seapty" maxlength="24"
placeholder="请输入当事人BIC编码">
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="当事人编号" prop="infcon.pty.extkey" style="width: 100%">
<c-input v-model="model.infcon.pty.extkey" maxlength="24"
placeholder="请输入当事人编号"></c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="客户经理" prop="infcon.usr.extkey" style="width: 100%">
<c-input v-model="model.infcon.usr.extkey" maxlength="8" placeholder="请输入客户经理" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="角色" prop="infcon.searol" style="width: 100%">
<c-select v-model="model.infcon.searol" style="width:100%" placeholder="请选择角色">
<el-option v-for="item in codes.searol2" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="状态" prop="infcon.seasta" style="width:100%">
<c-select v-model="model.infcon.seasta" style="width:100%" placeholder="请选择状态">
<el-option v-for="item in codes.seasta" :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="金额区间" prop="infcon.seaamtfr" style="width: 100%">
<c-col :span="11">
<c-input v-model="model.infcon.seaamtfr" placeholder="请输入金额区间">
</c-input>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-input v-model="model.infcon.seaamtto" placeholder="请输入Amount to"></c-input>
</c-col>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="币种" prop="infcon.seacur" style="width:100%">
<c-select v-model="model.infcon.seacur" style="width:100%"
placeholder="请选择币种">
<el-option v-for="item in codes.curtxt1" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="付款条件" prop="seadoctypcod" style="width:100%">
<c-select v-model="model.seadoctypcod" style="width:100%"
placeholder="请选择付款条件">
<el-option v-for="item in codes.seadoctypcod" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
</c-row>
</el-form>
</template>
</c-list-search>
<c-col :span="24" style="margin-top: 10px">
<c-button class="medium_bcs" size="medium" style="margin-left: 0px" type="primary" @click="toCltdav">开立
</c-button>
</c-col>
<c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
<el-table-column fixed="right" prop="op" width="140px">
<template slot="header">
<c-col :span="11" style="text-align: center"><span>操作</span></c-col>
</template>
<template slot-scope="scope">
<el-popover placement="top-start" title="历史信息" width="800" trigger="click"
:ref="'popover_' + scope.row.IDX">
<div style=" text-align: right; margin-top: -30px; margin-right: 5px; font-size: 16px;">
<span class="el-icon-close" @click="closeTrn('popover_' + scope.row.IDX)" />
</div>
<c-istream-table :list="trnData.data" :columns="trnData.columns">
<el-table-column prop="op" label="操作" width="0">
<template slot-scope="scope">
<c-button style="margin-left: 0" size="small"
@click="display(scope.row['INR'])">详情</c-button>
</template>
</el-table-column>
</c-istream-table>
<c-button style="margin-left: 0" size="small" @click="getTrnInfo(scope.$index, scope.row)"
slot="reference">详情</c-button>
</el-popover>
<c-button style="margin-left: 5px" size="small" type="primary"
@click="getButtons(scope.row['打包托收编号'],scope.row['打包托收余额'], scope.row['编号'],scope.row['开立日期'],scope.row['关闭日期'])">处理
</c-button>
</template>
</el-table-column>
</c-istream-table>
</c-col>
<m-busbtn ref="childs" :ownref="ownref" :amt="amt" :model="CltselModel" ownrefPath="cldgrp" trnCode="cltsel" :inr="inr" :opndat="opndat"
@onChoose="onChoose">11</m-busbtn>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Infcld/Event"
import CltselModel from "~/model/Cltsel"
import BusNavbar from "./BusNavbar";
export default {
inject: ['root'],
props: ["model", "codes"],
mixins: [commonProcess],
components: { "m-busbtn": BusNavbar },
data() {
return {
amt: '',
inr: '',
opndat: '',
CltselModel: new CltselModel().data,
ownref: "",
initdialog: false,
transactionStatus: {
busiNo: "",
modTimes: 0,
postCount: 0,
accCount: 0,
earnCount: 0,
earnAmt: 0
},
trnData: {
columns: [
'1 1 "编号" 200',
'2 2 "交易名称" 120',
// '3 3 "日期" 200',
{ index: 3, position: 3, width: 110, pattern: 'date', label: '日期' },
// '4 4 "状态" 50',
{ index: 4, position: 4, width: 100, pattern: 'code', label: '状态', code: this.codes.relstaEN },
'5 5 "币种" 80',
'6 6 "金额" 110',
],
data: [],
},
stmData: {
columns: [
"1 1 \"打包托收编号\" 150",
"2 2 \"客户经理\" 150",
"3 5 \"开立日期\" 200 4 7",
"4 6 \"关闭日期\" 200 4 7",
"5 3 \"当事人编号\" 150",
"6 4 \"代收行\" 180",
"7 7 \"打包托收币种\" 150",
"8 8 \"打包托收金额\" 150 8 1 7",
"9 9 \"打包托收币种\" 150",
"10 10 \"打包托收余额\" 150 2 8 1 9",
],
data: [
]
}
}
},
methods: {
...Event,
async getButtons(ownref,amt,inr,opndat,closedDate) {
this.CltselModel.clsflg = (closedDate ?? "").trim() === "" ? "" : "C";
this.$refs.childs.initdialog = true
this.ownref = ownref
this.amt = amt;
this.inr = inr;
this.opndat = opndat;
console.log("ownref:" + ownref);
},
async onChoose(code, prePageId) {
//跳转交易
// this.$router.history.push("/business/" + code)
this.$router.push({ name: code.charAt(0).toUpperCase() + code.substring(1), params: { prePageId } });
this.$refs.childs.initdialog = false
},
closeTrn(refId) {
this.$refs[refId].doClose();
},
async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"];
this.model.infcon.cldgrp.rec.inr = row["INR"];
this.model.infcon.chksubcon = "X";
let rtnmsg = await this.executeDefault("infcon.chksubcon");
if ((rtnmsg.respCode = SUCCESS)) {
this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
console.log(this.trnData.data);
}
},
async getDitSelInfo(idx, row) {
//TD中选中行触发
var params = { selDst: "infbut.dspstm", selIds: [idx + 1] }
let rtnmsg = await this.executeRule("infbut.dspstm", params);
if (rtnmsg.respCode = SUCCESS) {
this.updateModel(rtnmsg.data);
// Utils.copyValueFromVO(this.model, rtnmsg.data);
//TD中点击display时触发
params = { selDst: "infbut.dsp", selIds: [idx + 1] }
let rtnmsgNew = await this.executeRule("infbut.dsp", params);
if (rtnmsgNew.respCode = SUCCESS) {
console.log(rtnmsgNew);
this.updateModel(rtnmsgNew.data);
let rtnmsgOitset = await this.executeDefault("mtabut.coninf.oitset.oit");
if (rtnmsgOitset.respCode = SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsgOitset.data);
}
}
}
//触发父组件中updateShowPanel 事件,修改index中showPanel ,控制 index中组件的显示和隐藏
this.$emit('updateShowPanel', true)
},
toCltdav() {
this.$router.history.push("/business/cltdav")
}
},
created: function () {
}
}
</script>
<style>
</style>
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small"
:validate-on-rule-change="false">
<!--PD000006 -->
<c-content>
<m-infsea v-show="!showPanel" :model="model" :codes="codes" ref="infsea" />
</c-content>
<c-tabs v-model="tabVal" v-show="showPanel" ref="elment" type="card" @tab-click="tabClick">
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Infcld from "~/model/Infcld"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Infcld/Check"
import Default from "~/model/Infcld/Default"
import Pattern from "~/model/Infcld/Pattern"
import Infsea from "./Infsea"
export default {
name: "Infcld",
components: {
"m-infsea": Infsea,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "infsea",
trnName: "infcld",
model: new Infcld().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
showPanel: false,
codes: {
...CodeTable
},
}
},
methods: {
tabClick() {
}
},
created: async function () {
console.log("进入infcld交易");
let rtnmsg = await this.init({})
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
}
</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