Commit 0e033694 by liaoxing

cctdav添加

parent 774c4437
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.ccdgrp.col.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ccdgrp.col));
}
if (model.ccdgrp.drr.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ccdgrp.drr));
}
if (model.ccdgrp.dre.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ccdgrp.dre));
}
let dataObj = {
rec: {
objtyp: 'CCD',
ownref: model.ccdgrp.rec.ownref,
opndat: model.ccdgrp.rec.opndat,
expdat: model.ccdgrp.rec.expdat,
branchInr: model.ccdgrp.rec.branchInr,
hndtyp: model.ccdgrp.rec.hndtyp,
},
cbsMap: {
MAX: model.ccdgrp.cbs.max,
OPN1: model.ccdgrp.cbs.opn1,
// MAC: model.bodgrp.cbs.mac,
// MAC2: model.bodgrp.cbs.mac2,
// OPC2: model.bodgrp.cbs.opc2,
// CNF: model.bodgrp.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: 'CCD',
objinr: model.ccdgrp.rec.inr,
ownref: model.ccdgrp.rec.ownref,
},
};
return params
},
buildDoctre (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'CCD',
objinr: model.ccdgrp.rec.inr,
ownref: model.ccdgrp.rec.ownref,
// swiftflg: model.gitp.swiftflg,
},
};
return params
},
// 公共组件setmod中dsp字段改变,触发联动时候的入参
buildSetgllAccts (model, trnName, setglg) {
let params = {
...this.buildCommonData(model, trnName),
setglg
};
return params
}
}
\ No newline at end of file
import Api from '~/service/Api';
import commonFunctions from '~/mixin/commonFunctions.js';
import buildFn from './buildCommons.js';
import setmod from '~/components/business/setmod/event';
import glentry from '~/components/business/glentry/event';
import engp from '~/components/business/engp/event';
import docpan from '~/components/business/docpan/event';
import ccvpan from '~/components/business/ccvpan/event';
import limitbody from '~/components/business/limitbody/event';
import doctre from '~/components/business/doctre/event';
import Utils from "~/utils"
export default {
mixins: [commonFunctions],
methods: {
...setmod,
...glentry,
...engp,
...docpan,
...ccvpan,
...limitbody,
...doctre,
async init () {
const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName))
}
const res = await Api.post('/service/cctdav/init', {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
});
if (!res.data) {
return
}
this.copyValueFromVoData(this.model, res.data)
this.copyValueFromVoData(this.model.setmod.setfeg, res.data.setfeg)
this.copyValueFromVoData(this.model.setmod.setfog, res.data.setfog)
this.copyValueFromVoData(this.model.setmod.setglg, res.data.setglg)
},
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
copyValueFromVoData (model, data) {
let keysList = Object.keys(model)
keysList.map((key) => {
if (data[key]) {
if (Utils.typeOf(model[key]) === 'Object') {
this.copyValueFromVoData(model[key], data[key])
} else {
this.$set(model, key, data[key])
}
}
})
},
async tabClick(tab) {
if (this.isInDisplay) {
return;
}
let name = tab.name;
switch (name) {
case 'ccvpan':
let ccvpanRequest = buildFn.buildCcvpan(this.model, this.trnName);
this.processLiaccv(ccvpanRequest);
break;
case 'engp':
let engpRequest = buildFn.buildEngp(this.model, this.trnName);
this.processLiaall(engpRequest);
break;
case '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;
}
},
// 业务信息=》基本信息=》托收业务编号-----获取托收业务编号
async getCcdgrpOwnRef() {
let params = {
ptainr: this.model.ccdgrp.drr.pts.ptainr,
businessType: 'CC',
tbl: 'CC',
};
const loading = this.loading();
let res = await Api.post('/service/cctdav/getOwnRef', params);
if (res.respCode == SUCCESS) {
loading.close();
this.model.ccdgrp.rec.ownref = res.data;
}
},
// 点击获取按钮拉取当前key字段下的表单数据
queryFormData(key) {
console.log(key);
},
// 获取cctdav弹框表格数据
async queryGridEtyPromptDialogData(type, ptytyp) {
let params = {
userId: window.sessionStorage.userId || 'ZL',
ptytyp: ptytyp,
extkey: this.model.ccdgrp[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;
}
},
// 选中cctdav弹框表格的行数据
async selectGridEtyPromptData(row) {
let params = {
...row,
};
let res = await Api.post('/service/ptspta/fetch', params);
if (res.respCode == SUCCESS) {
this.$set(this.model.ccdgrp, row.role.toLowerCase(), res.data);
}
},
// 业务信息=》基本信息=》支出目的
purposChange(key, value) {
this.handleChangeForm(key, value);
},
// 初始化保函开立类型码表下拉列表
async queryHndtypCodeTableList(trnName) {
let params = {
cctp: {
swiftflg: this.model.cctp.swiftflg,
},
ccdgrp: {
rec: {
purpos: this.model.ccdgrp.rec.purpos,
},
},
transName: trnName.toUpperCase(),
};
let res = await Api.post('/service/cctdav/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"
/**
* Cctdav Check规则
*/
let checkObj = {
// "ccdgrp.cbs.max.cur" :null,
// "ccdgrp.dro.pts.extkey" :null,
// "setmod.dspflg" :null,
// "ccdgrp.cor.pts.adrblk" :null,
// "ccdgrp.cbs.max.amt" :null,
// "ccdgrp.rec.purflg" :null,
// "ccdgrp.col.pts.extkey" :null,
// "ccdgrp.col.pts.adrblk" :null,
// "ccdgrp.pre.adrelc" :null,
// "ccdgrp.dro.pts.adrblk" :null,
// "ccdgrp.cor.namelc" :null,
// "ccdgrp.col.namelc" :null,
// "ccdgrp.dro.namelc" :null,
// "ccdgrp.rec.tocsel" :null,
// "ccdgrp.pre.namelc" :null,
// "ccdgrp.rec.modset" :null,
// "mtabut.coninf.conexedat" :null,
// "ccdgrp.cor.adrelc" :null,
// "ccdgrp.cor.pts.extkey" :null,
// "ccdgrp.rec.ownref" :null,
// "ccdgrp.dro.adrelc" :null,
// "ccdgrp.col.adrelc" :null,
// "ccdgrp.blk.setins" :null,
// "ccdgrp.pre.pts.adrblk" :null,
// "setmod.docamt" :null,
// "ccdgrp.pre.pts.extkey" :null,
"ccdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"cctp.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"cctp.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ccdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ccdgrp.rec.regref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ccdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ccdgrp.pre.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ccdgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cctp.prep.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ccdgrp.pre.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"cctp.prep.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ccdgrp.pre.namelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ccdgrp.pre.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 150,message:"长度不能超过150"}
],
"ccdgrp.pre.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ccdgrp.pre.adrelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ccdgrp.dro.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"cctp.drop.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ccdgrp.dro.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"cctp.drop.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ccdgrp.dro.namelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ccdgrp.dro.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 150,message:"长度不能超过150"}
],
"ccdgrp.dro.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ccdgrp.rec.chcknum":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ccdgrp.orddat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ccdgrp.dro.adrelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ccdgrp.rec.chkdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"cctp.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"cctp.usrget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ccdgrp.col.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"cctp.corp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"cctp.colp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ccdgrp.cor.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"cctp.corp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ccdgrp.col.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"cctp.colp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ccdgrp.cor.namelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ccdgrp.col.namelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ccdgrp.cor.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 150, message:"长度不能超过150"}
],
"ccdgrp.cor.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ccdgrp.col.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 150,message:"长度不能超过150"}
],
"ccdgrp.col.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ccdgrp.cor.adrelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"ccdgrp.col.adrelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"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"}
],
"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"}
],
"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"}
],
"setmod.glemod.gleshwstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"ccdgrp.blk.setins":[
{type: "string", required: true, message: "必输项"},
{max: 600,message:"长度不能超过600"}
],
}
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 Cctdav {
constructor() {
this.data = {
cctdavl1blk: "",
ccdgrp: {
rec: {
ownref: "", // Our Reference .ccdgrp.rec.ownref
nam: "", // Name of CC contract .ccdgrp.rec.nam
regref: "", // Register Ref. .ccdgrp.rec.regref
ccform: "", // Form of Clean Coll. .ccdgrp.rec.ccform
modset: "", // Mode of Collection .ccdgrp.rec.modset
purflg: "", // Payment Disposition .ccdgrp.rec.purflg
tocsel: "", // Type of Check .ccdgrp.rec.tocsel
pretyp: "", // TYPE OF PRESENTER .ccdgrp.rec.pretyp
chcknum: "", // Check Number .ccdgrp.rec.chcknum
chkdat: "", // Date of Draft .ccdgrp.rec.chkdat
},
cbs: {
opn1: {
cur: "", // Open Amount .ccdgrp.cbs.opn1.cur
amt: "0", // Open Amount .ccdgrp.cbs.opn1.amt
},
max: {
cur: "", // Draft Amount .ccdgrp.cbs.max.cur
amt: "0", // Draft Amount .ccdgrp.cbs.max.amt
},
},
cor: {
pts: new Pts().data,
namelc: "", // 名称 .ccdgrp.cor.namelc
adrelc: "", // 地址 .ccdgrp.cor.adrelc
dbfadrblkcn: "", // Chinese address .ccdgrp.cor.dbfadrblkcn
},
pre: {
pts: new Pts().data,
namelc: "", // 名称 .ccdgrp.pre.namelc
adrelc: "", // 地址 .ccdgrp.pre.adrelc
dbfadrblkcn: "", // Chinese address .ccdgrp.pre.dbfadrblkcn
},
dro: {
pts: new Pts().data,
namelc: "", // 名称 .ccdgrp.dro.namelc
adrelc: "", // 地址 .ccdgrp.dro.adrelc
dbfadrblkcn: "", // Chinese address .ccdgrp.dro.dbfadrblkcn
},
col: {
pts: new Pts().data,
namelc: "", // 名称 .ccdgrp.col.namelc
adrelc: "", // 地址 .ccdgrp.col.adrelc
dbfadrblkcn: "", // Chinese address .ccdgrp.col.dbfadrblkcn
},
orddat: "", // Date of Order .ccdgrp.orddat
blk: {
setins: "", // Settlement Instructions .ccdgrp.blk.setins
},
},
cctp: {
recget: {
sdamod: {
seainf: "", // .cctp.recget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .cctp.recget.sdamod.dadsnd
},
},
corp: {
ptsget: {
sdamod: {
seainf: "", // .cctp.corp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .cctp.corp.ptsget.sdamod.dadsnd
},
},
},
prep: {
ptsget: {
sdamod: {
seainf: "", // .cctp.prep.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .cctp.prep.ptsget.sdamod.dadsnd
},
},
},
drop: {
ptsget: {
sdamod: {
seainf: "", // .cctp.drop.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .cctp.drop.ptsget.sdamod.dadsnd
},
},
},
colp: {
ptsget: {
sdamod: {
seainf: "", // .cctp.colp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .cctp.colp.ptsget.sdamod.dadsnd
},
},
},
usr: {
extkey: "", // User ID .cctp.usr.extkey
},
usrget: {
sdamod: {
seainf: "", // .cctp.usrget.sdamod.seainf
},
},
},
setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod,
liaall: new Pub().data.Liaall,
liaccv: new Pub().data.Liaccv,
docpan: new Pub().data.Docpan,
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-row>
<!-- ====================左边======================= -->
<c-col :span="11">
<c-col :span="24">
<el-form-item label="光票托收编号" prop="ccdgrp.rec.ownref">
<c-fullbox>
<c-input
v-model="model.ccdgrp.rec.ownref"
maxlength="16"
placeholder="请输入光票托收编号"
disabled
></c-input>
<template slot="footer">
<c-button
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf"
>
<i class="el-icon-info"></i>
</c-button>
<c-button
style="margin: 0 0"
size="small"
type="primary"
@click="onCctmodButgetref"
:disabled="model.ccdgrp.pre.pts.extkey !== ''"
>
获取
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="托收币种金额" prop="ccdgrp.cbs.max.cur">
<c-select
v-model="model.ccdgrp.cbs.max.cur"
style="width: 100%"
placeholder="请选择托收币种"
>
<el-option
v-for="item in codes.curtxt1"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
style="text-align: left"
label-width="20px"
prop="ccdgrp.cbs.max.amt"
>
<c-input-currency
v-model="model.ccdgrp.cbs.max.amt"
style="text-align: left; width: 100%"
placeholder="请输入托收金额"
@keyup.enter.native="
defaultFunction('ccdgrp.cbs.max.amt', model.ccdgrp.cbs.max.amt)
"
></c-input-currency>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="托收币种余额" prop="ccdgrp.cbs.opn1.cur">
<c-select
disabled
v-model="model.ccdgrp.cbs.opn1.cur"
style="width: 100%"
placeholder="请选择托收币种"
>
<el-option
v-for="item in codes.curtxt1"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
style="text-align: left"
label-width="20px"
prop="ccdgrp.cbs.opn1.amt"
>
<c-input-currency
v-model="model.ccdgrp.cbs.opn1.amt"
style="text-align: left; width: 100%"
placeholder="请输入托收余额"
:disabled="true"
@keyup.enter.native="
defaultFunction(
'ccdgrp.cbs.opn1.amt',
model.ccdgrp.cbs.opn1.amt
)
"
></c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="光票托收形式" prop="ccdgrp.rec.ccform">
<c-select
v-model="model.ccdgrp.rec.ccform"
style="width: 100%"
placeholder="请选择光票托收形式"
:code="codes.ccform"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="收款方式" prop="ccdgrp.rec.modset">
<c-select
v-model="model.ccdgrp.rec.modset"
style="width: 100%"
placeholder="请选择收款方式"
:code="codes.modset"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="托收方式" prop="ccdgrp.rec.purflg">
<c-select
v-model="model.ccdgrp.rec.purflg"
style="width: 100%"
placeholder="请选择托收方式"
:disabled="model.ccdgrp.rec.modset == '1'"
:code="codes.purflg"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="票据类型" prop="ccdgrp.rec.tocsel">
<c-select
v-model="model.ccdgrp.rec.tocsel"
style="width: 100%"
placeholder="请选择票据类型"
:code="codes.tocsel"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="交单形式" prop="ccdgrp.rec.pretyp">
<c-select
v-model="model.ccdgrp.rec.pretyp"
style="width: 100%"
placeholder="请选择交单形式"
:code="codes.pretyp"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="票据号码" prop="ccdgrp.rec.chcknum">
<c-input
v-model="model.ccdgrp.rec.chcknum"
maxlength="16"
placeholder="请输入票据号码"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="订单日期" prop="ccdgrp.orddat">
<c-date-picker
type="date"
v-model="model.ccdgrp.orddat"
style="width: 100%"
placeholder="请选择订单日期"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="出票日期" prop="ccdgrp.rec.chkdat">
<c-date-picker
type="date"
v-model="model.ccdgrp.rec.chkdat"
style="width: 100%"
placeholder="请选择出票日期"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="当前柜员" prop="cctp.usr.extkey">
<c-fullbox>
<c-input
v-model="model.cctp.usr.extkey"
maxlength="8"
placeholder="请输入当前柜员"
disabled
></c-input>
<template slot="footer">
<c-button
size="small"
type="primary"
@click="onSeainf"
>
<i class="el-icon-info"></i>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="出票人" prop="ccdgrp.cor.pts.extkey">
<c-fullbox>
<c-input
v-model="model.ccdgrp.cor.pts.extkey"
maxlength="16"
@keyup.enter.native="
showGridPromptDialog('ccdgrp.cor.pts.extkey')
"
></c-input>
<template slot="footer">
<c-button
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf"
>
<i class="el-icon-info"></i>
</c-button>
<c-button style="margin: 0 0" size="small" type="primary">
详情
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="名称地址" prop="ccdgrp.cor.pts.adrblk">
<c-input
type="textarea"
:rows="4"
v-model="model.ccdgrp.cor.pts.adrblk"
maxlength="150"
show-word-limit
placeholder="请输入名称地址"
:disabled="this.flag1"
></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- ====================右边======================= -->
<c-col :span="11" :offset="1">
<c-col :span="24">
<el-form-item label="业务名称" prop="ccdgrp.rec.nam">
<c-input
v-model="model.ccdgrp.rec.nam"
maxlength="40"
placeholder="请输入业务名称"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="收单行登记编号" prop="ccdgrp.rec.regref">
<c-input
v-model="model.ccdgrp.rec.regref"
maxlength="16"
placeholder="请输入收单行登记编号"
disabled
></c-input>
</el-form-item>
</c-col>
<c-ptap
:model="model"
:argadr="{
title: '委托人',
grp: 'ccdgrp',
rol: 'pre',
}"
disabled
>
</c-ptap>
<c-ptap
:model="model"
:argadr="{
title: '付款人账户行',
grp: 'ccdgrp',
rol: 'dro',
}"
:disabled="this.flag2"
>
</c-ptap>
<c-col :span="24">
<el-form-item label="托收委托人参考号" prop="ccdgrp.col.pts.ref">
<c-input
v-model="model.ccdgrp.col.pts.ref"
maxlength="16"
placeholder="请输入托收委托人参考号"
:disabled="model.ccdgrp.rec.modset == '2'"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="托收委托人编号" prop="ccdgrp.col.pts.extkey">
<c-fullbox>
<c-input
v-model="model.ccdgrp.col.pts.extkey"
maxlength="16"
placeholder="请输入托收委托人编号"
@keyup.enter.native="
showGridPromptDialog('ccdgrp.col.pts.extkey')
"
:disabled="model.ccdgrp.rec.modset == '2'"
></c-input>
<template slot="footer">
<c-button
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf"
>
<i class="el-icon-info"></i>
</c-button>
<c-button style="margin: 0 0" size="small" type="primary">
详情
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="名称地址" prop="ccdgrp.col.pts.adrblk">
<c-input
type="textarea"
:rows="4"
v-model="model.ccdgrp.col.pts.adrblk"
maxlength="150"
show-word-limit
placeholder="请输入名称地址"
:disabled="model.ccdgrp.rec.modset == '2' || this.flag3"
></c-input>
</el-form-item>
</c-col>
</c-col>
</c-row>
</div>
</template>
<script>
import event from "../event";
import Ptap from "~/views/Public/Ptap";
export default {
components: {
"c-ptap": Ptap,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
flag1: false,
flag2: false,
flag3: false,
};
},
watch: {
"model.ccdgrp.cor.pts.extkey": {
immediate: true,
handler(val, oldVal) {
if (this.model.ccdgrp.cor.pts.extkey != "") {
this.flag1 = true;
} else {
this.flag1 = false;
}
},
},
"model.ccdgrp.dro.pts.extkey": {
immediate: true,
handler(val, oldVal) {
if (this.model.ccdgrp.dro.pts.extkey != "") {
this.flag2 = true;
} else {
this.flag2 = false;
}
},
},
"model.ccdgrp.col.pts.extkey": {
immediate: true,
handler(val, oldVal) {
if (this.model.ccdgrp.col.pts.extkey != "") {
this.flag3 = true;
} else {
this.flag3 = false;
}
},
},
"model.ccdgrp.rec.modset": function () {
if (this.model.ccdgrp.rec.modset == "2") {
this.model.ccdgrp.col.pts.extkey = "";
this.model.ccdgrp.col.pts.adrblk = "";
}
},
},
methods: { ...Event },
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-form-item label="付款指示" prop="ccdgrp.blk.setins">
<c-input
type="textarea"
:rows="6"
v-model="model.ccdgrp.blk.setins"
maxlength="600"
show-word-limit
placeholder="请输入付款指示"
:disabled="model.ccdgrp.rec.modset == '2'"
></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button
size="small"
type="primary"
@click="
showGridPromptDialog(
'cctp.setins.buttxmsel',
null,
null,
{ TXT: 'ccdgrp.blk.setins' },
{ TXT: false },
'doxpDialog'
)
"
>
...
</c-button>
</c-col>
</div>
</template>
<script>
import event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
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">
<!--cctdav PD000001 -->
<el-tab-pane label="建立光票托收" name="cctdav1">
<c-content>
<m-cctdav1 :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--engp PD000000 表外记账 -->
<el-tab-pane label="表外记账" name="engp">
<m-engp :model="model" :codes="codes" />
</el-tab-pane>
<!--setmod PD000000 结算 -->
<el-tab-pane label="费用账务" name="setmod">
<m-setmod :model="model" :codes="codes" />
</el-tab-pane>
<!--glemod PD000001 -->
<el-tab-pane label="会计分录" name="glentry">
<m-glentry :model="model" :codes="codes" />
</el-tab-pane>
<!--coninf PD000000 提示信息 -->
<el-tab-pane label="备查附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-tab-pane>
<!--trndoc PD000529 &Messages -->
<el-tab-pane label="报文和面函" name="docpan">
<m-docpan :model="model" :codes="codes" />
</el-tab-pane>
<!--trndoc PD000546 附件 -->
<el-tab-pane label="附件" name="doctre">
<m-doctre :model="model" :codes="codes" />
</el-tab-pane>
<!--cctp PD000065 Settlement Instructions -->
<el-tab-pane label="结算说明" name="setinsp">
<m-setinsp :model="model" :codes="codes" />
</el-tab-pane>
</c-tabs>
</el-form>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
@select-ety="selectGridEtyPromptData"
>
<!-- v-on:select-ety="selectEty" -->
</c-grid-ety-prompt-dialog>
<!-- <c-grid-ety-prompt-dialog
ref="doxpDialog"
:isPty="false"
:promptData="promptData"
@select-ety="selectMsg"
>
</c-grid-ety-prompt-dialog> -->
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
</c-function-btn>
</c-page>
</div>
</template>
<script>
import CodeTable from "~/config/CodeTable";
import Cctdav from "../model"
import formRules from '../model/check'
import Cctdav1 from "./Cctdav1";
import Setinsp from "./Setinsp";
import Setmod from "~/components/business/setmod/views"
import Coninfp from "~/components/business/coninfp/views";
import Docpan from "~/components/business/docpan/views";
import Engp from "~/components/business/engp/views";
import Glentry from "~/components/business/glentry/views";
import Doctre from "~/views/Public/Doctre"
import operationFunc from "@/mixin/operationFunc";
import event from "../event";
export default {
name: "Cctdav",
components: {
"m-cctdav1": Cctdav1,
"m-docpan": Docpan,
"m-doctre": Doctre,
"m-coninfp": Coninfp,
"m-setmod": Setmod,
"m-glentry": Glentry,
"m-setinsp": Setinsp,
"m-engp": Engp,
},
provide() {
return {
root: this,
};
},
mixins: [operationFunc, event], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "cctdav1",
trnName: "cctdav",
trnType: "",
model: new Cctdav().data,
rules: formRules,
codes: { ...CodeTable },
};
},
activeNames: ["engp"],
methods: {
// myTabClick(tab) {
// this.tabClick(tab);
/**
* do it yourself
**/
// },
},
created: async function () {
// console.log("进入cctdav交易");
// 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()
// this.queryHndtypCodeTableList(this.trnName)
},
};
</script>
<style>
</style>
......@@ -553,10 +553,10 @@ export default {
label: '光票托收催收',
route: '/business-new/ccttra'
},
{
label: '光票托收开立',
route: '/business-new/cctdav'
},
// {
// label: '光票托收开立',
// route: '/business-new/cctdav'
// },
{
label: '光票托收结汇',
route: '/business-new/cctset'
......@@ -613,7 +613,7 @@ export default {
// }
// },
toCctdav() {
this.$router.history.push("/business/cctdav");
this.$router.history.push("/business-new/cctdav");
},
},
created: function () {},
......
......@@ -16,7 +16,6 @@
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
v-on:select-ety="selectEty"
>
</c-grid-ety-prompt-dialog>
</c-tabs>
......
......@@ -86,6 +86,7 @@ const Business = [
// { path: 'bctcan', component: () => import('~/business/bctcan/views'), name: 'bctcan', meta: { title: '进口代收注销' }},
{ path: 'bctrad', component: () => import('~/business/bctrad/views'), name: 'bctrad', meta: { title: '进口代收二次收单' }},
{ path: 'infccd', component: () => import('~/business/infccd/views'), name: 'infccd', meta: { title: '光票托收入口交易' }},
{ path: 'cctdav', component: () => import('~/business/cctdav/views'), name: 'cctdav', 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