Commit 6519243e by WH

betdcr前端代码清理

parent f956abcc
export default {
buildPtspta (ptsptaObj) {
let pts = ptsptaObj.pts;
let ptspta = {
rol: pts.rol,
name: pts.nam,
ptyinr: pts.ptyinr,
ptainr: pts.ptainr,
extkey: pts.extkey,
dftdsp: pts.dftdsp,
dftcur: pts.dftcur,
dftact: pts.dftact,
dftfeecur: pts.dftfeecur,
dftactptainr: pts.dftactptainr,
glggrpflg: pts.glggrpflg,
adrblk: pts.adrblk
};
return ptspta;
},
buildCommonData (model, trnName) {
let ptsptaList = [];
if (model.gidgrp.apl.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.gidgrp.apl));
}
if (model.gidgrp.adv.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.gidgrp.adv));
}
if (model.gidgrp.ben.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.gidgrp.ben));
}
let dataObj = {
rec: {
objtyp: 'LID',
ownref: model.brdgrp.rec.ownref,
opndat: model.brdgrp.rec.opndat,
expdat: model.brdgrp.rec.expdat,
branchInr: model.brdgrp.rec.branchInr,
hndtyp: model.brdgrp.rec.hndtyp,
gartyp: model.brdgrp.rec.gartyp,
fingua: model.brdgrp.rec.fingua,
// segtyp: model.brdgrp.ghd.segtyp,
fromflg: model.brdgrp.rec.fromflg,
othersno: model.brdgrp.rec.othersno,
sndto: model.brdgrp.rec.sndto,
// swiftflg: model.gitp.swiftflg,
giduil: model.brdgrp.rec.giduil,
purpos: model.brdgrp.rec.purpos,
revflg: model.brdgrp.rec.revflg,
cnfsta: model.brdgrp.rec.cnfsta,
},
cbsMap: {
MAX: model.brdgrp.cbs.max,
OPN1: model.brdgrp.cbs.opn1,
MAC: model.brdgrp.cbs.mac,
MAC2: model.brdgrp.cbs.mac2,
OPC2: model.brdgrp.cbs.opc2,
CNF: model.brdgrp.cbs.cnf,
},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : 'ZL'
};
return dataObj
},
buildSetfeg (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaall: model.liaall,
liaccv: model.liaccv,
// doceot: model.trnmod.trndoc.doceot,
};
return params
},
buildSetglg (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
setfeg: model.setmod.setfeg,
liaall: model.liaall,
liaccv: model.liaccv,
};
return params
},
buildGlentry (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg,
setfog: model.setmod.setfog,
setfeg: model.setmod.setfeg,
setglg: model.setmod.setglg,
};
return params
},
buildEngp (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg,
};
return params
},
buildDocpan (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
};
return params
},
buildCcvpan (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaccvg: model.liaccv.liaccvg,
oldamt: model.liaccv.oldamt,
chgamt: model.liaccv.chgamt,
concur: model.liaccv.concur,
};
return params
},
buildLimitbody (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'LID',
objinr: model.brdgrp.rec.objinr,
ownref: model.brdgrp.rec.ownref,
},
};
return params
},
buildDoctre (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'LID',
objinr: model.brdgrp.rec.objinr,
ownref: model.brdgrp.rec.ownref,
// swiftflg: model.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/brtdcr/init', {
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
// brdinr: this.$route.query.inr,
brdgrp:{
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',
tbl: 'LG',
};
const loading = this.loading();
let res = await Api.post('/service/brtdcr/getOwnRef', params);
if (res.respCode == SUCCESS) {
loading.close();
this.model.gidgrp.rec.ownref = res.data;
}
},
// 获取brtdcr弹框表格数据
async queryGridEtyPromptDialogData(type, ptytyp) {
let params = {
userId: window.sessionStorage.userId || 'ZL',
ptytyp: ptytyp,
extkey: this.model.brdgrp[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;
}
},
// 选中brtdcr弹框表格的行数据
async selectGridEtyPromptData(row) {
let params = {
...row,
};
let res = await Api.post('/service/ptspta/fetch', params);
if (res.respCode == SUCCESS) {
this.$set(this.model.gidgrp, row.role.toLowerCase(), res.data);
}
},
// 业务信息=》基本信息=》支出目的
purposChange(key, value) {
this.handleChangeForm(key, value);
},
// 初始化保函开立类型码表下拉列表
async queryHndtypCodeTableList(trnName) {
let params = {
gitp: {
swiftflg: this.model.gitp.swiftflg,
},
gidgrp: {
rec: {
purpos: this.model.gidgrp.rec.purpos,
},
},
transName: trnName.toUpperCase(),
};
let res = await Api.post('/service/brtdcr/initHndtyp', params);
if (res.respCode == SUCCESS) {
this.$set(this.codes, 'voHndtyp', res.data);
}
},
// 是否SWIFT格式修改--联动保函开立类型
handleChangeSwiftflg() {
this.queryHndtypCodeTableList(this.root.trnName);
},
// 支出目的修改--联动保函开立类型
handleChangePurpos() {
this.queryHndtypCodeTableList(this.root.trnName);
},
buildLiaccv () {
let params = {
...buildFn.buildCommonData(this.model, this.trnName),
liaccvg: this.model.liaccv.liaccvg,
oldamt: this.model.liaccv.oldamt,
chgamt: this.model.liaccv.chgamt,
concur: this.model.liaccv.concur,
};
return params
},
// 公共组件setmod处理方式改变触发联动
changeSetmodModel (emitParams) {
let reqParams = {}
switch (emitParams.code) {
case 'processMethods':
reqParams = buildFn.buildSetglg(this.model, this.trnName);
this.calcPayDetail(reqParams)
break
case 'changeDsp':
let index = emitParams.index;
let setglgRequest = buildFn.buildSetglg(this.model, this.trnName);
setglgRequest.setglg = {setgll: emitParams.list};
this.setgllAccts(setglgRequest, index);
break
default:
return
}
}
},
};
export default {
"liaall.limmod.limpts.nonrevflg1" :null,
"mtabut.clsflg" :null,
"betp.ledget.sdamod.dadsnd": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"ledgrp.rec.ownref": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"betp.ledget.sdamod.seainf": [
{ type: "string", required: false, message: "必输项" },
{ max: 3, message: "长度不能超过3" }
],
"ledgrp.cbs.opn1.cur": [
{ type: "string", required: false, message: "必输项" },
{ max: 3, message: "长度不能超过3" }
],
"ledgrp.cbs.opn1.amt": [
{ type: "string", required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^-?\d+$)|(^\.\d{1,3}$)|(^-?\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"betp.recget.sdamod.dadsnd": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"bedgrp.rec.ownref": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"betp.recget.sdamod.seainf": [
{ type: "string", required: false, message: "必输项" },
{ max: 3, message: "长度不能超过3" }
],
"bedgrp.rec.nam": [
{ type: "string", required: false, message: "必输项" },
{ max: 40, message: "长度不能超过40" }
],
"bedgrp.cbs.max.amt": [
{ type: "string", required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"bedgrp.prb.pts.ref": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"bedgrp.cbs.opn1.cur": [
{ type: "string", required: false, message: "必输项" },
{ max: 3, message: "长度不能超过3" }
],
"bedgrp.cbs.opn1.amt": [
{ type: "number", required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"bedgrp.prb.pts.nam": [
{ type: "string", required: false, message: "必输项" },
{ max: 40, message: "长度不能超过40" }
],
"bedgrp.iss.pts.ref": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"bedgrp.iss.pts.nam": [
{ type: "string", required: false, message: "必输项" },
{ max: 40, message: "长度不能超过40" }
],
"bedgrp.rec.matdat": [
{ type: "date", required: false, message: "输入正确的日期" }
],
"bedgrp.rec.rcvdat": [
{ type: "date", required: false, message: "输入正确的日期" }
],
"bedgrp.rec.predat": [
{ type: "date", required: false, message: "输入正确的日期" }
],
"bedgrp.apl.pts.ref": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"bedgrp.rec.docsta": [
{ type: "string", required: false, message: "必输项" },
{ max: 40, message: "长度不能超过40" }
],
"bedgrp.apl.pts.nam": [
{ type: "string", required: false, message: "必输项" },
{ max: 40, message: "长度不能超过40" }
],
"betp.othp.ptsget.sdamod.dadsnd": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"bedgrp.oth.pts.extkey": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"betp.othp.ptsget.sdamod.seainf": [
{ type: "string", required: false, message: "必输项" },
{ max: 3, message: "长度不能超过3" }
],
"bedgrp.oth.namelc": [
{ type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
"bedgrp.oth.pts.adrblk": [
{ type: "string", required: true, message: "必输项" },
{ type: "string", max: 999, message: "长度不能超过35" }
],
"bedgrp.oth.dbfadrblkcn": [
{ type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
"bedgrp.oth.adrelc": [
{ type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
"betp.prbp.ptsget.sdamod.dadsnd": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"bedgrp.prb.pts.extkey": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"betp.prbp.ptsget.sdamod.seainf": [
{ type: "string", required: false, message: "必输项" },
{ max: 3, message: "长度不能超过3" }
],
"trnmod.trndoc.addstr750": [
{ type: "string", required: false, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
"bedgrp.prb.namelc": [
{ type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
"bedgrp.prb.pts.adrblk": [
{ type: "string", required: true, message: "必输项" },
{ type: "string", max: 999, message: "长度不能超过35" }
],
"bedgrp.prb.dbfadrblkcn": [
{ type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
"bedgrp.prb.adrelc": [
{ type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
"bedgrp.blk.intdis": [
{ type: "string", required: false, message: "必输项" },
{ max: 65, message: "长度不能超过65" }
],
"bedgrp.blk.docins": [
{ type: "string", required: false, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
"bedgrp.blk.disdoc": [
{ type: "string", required: false, message: "必输项" },
{ max: 35, message: "长度不能超过35" }
],
"bedgrp.blk.docdis": [
{ type: "string", required: false, message: "必输项" },
{ max: 50, message: "长度不能超过50" }
],
"liaall.outamt": [
{ type: "number", required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.outpct": [
{ type: "string", required: false, message: "必输项" },
{ max: 6, message: "长度不能超过6" }
],
"liaall.concur": [
{ type: "string", required: false, message: "必输项" },
{ max: 3, message: "长度不能超过3" }
],
"liaall.misamt": [
{ type: "number", required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.exttotoldamt": [
{ type: "number", required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.exttotamt": [
{ type: "number", required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.limmod.ecifno": [
{ type: "string", required: false, message: "必输项" },
{ max: 22, message: "长度不能超过22" }
],
"liaall.limmod.ownref": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"liaall.limmod.wrkp.ptsget.sdamod.dadsnd": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"liaall.limmod.othp.ptsget.sdamod.dadsnd": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"liaall.limmod.limpts.wrk.pts.extkey": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"liaall.limmod.wrkp.ptsget.sdamod.seainf": [
{ type: "string", required: false, message: "必输项" },
{ max: 3, message: "长度不能超过3" }
],
"liaall.limmod.limpts.oth.pts.extkey": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"liaall.limmod.othp.ptsget.sdamod.seainf": [
{ type: "string", required: false, message: "必输项" },
{ max: 3, message: "长度不能超过3" }
],
"liaall.limmod.comamt": [
{ type: "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" }
],
"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" }
],
"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" }
],
}
\ No newline at end of file
import Pts from '~/components/business/commonModel/Pts';
import Pub from '~/components/business/commonModel/index.js';
export default class Betcan {
constructor() {
this.data = {
betp: {
adaflg: '',
oth:{
pts: new Pts().data,
}
},
advdisflg: '',
ledgrp: {
rec: {
ownref: ''
},
cbs: {
opn1: {
cur: '',
amt: ''
}
},
prb: {
pts: new Pts().data,
},
apl:{
pts: new Pts().data,
},
ben:{
pts: new Pts().data,
},
oth:{
pts: new Pts().data,
},
acb:{
pts: new Pts().data,
},
},
rejpenins: '',
advrefflg: '',
bedgrp: {
blk: {
docdisflg: '',
disdoc: '',
docdis: '',
docins: '',
intdis: ''
},
rec: {
predat: '',
rcvdat: '',
doctypcod: '',
docsta: '',
ownref: '',
payrol: '',
matdat: '',
nam: '',
docprbrol: '',
advdocflg: ''
},
cbs: {
opn1: {
cur: '',
amt: ''
},
max: {
cur: '',
amt: ''
}
},
prb: {
pts: new Pts().data,
},
apl:{
pts: new Pts().data,
},
ben:{
pts: new Pts().data,
},
oth:{
pts: new Pts().data,
},
acb:{
pts: new Pts().data,
},
},
setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod,
liaall: new Pub().data.Liaall,
liaccv: new Pub().data.Liaccv,
docpan: new Pub().data.Docpan,
};
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames" >
<el-collapse-item title="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import event from "../event";
import Coninfp from "~/components/business/coninfp/views";
export default {
components: {
"m-coninfp": Coninfp,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ["coninfp"],
};
},
methods: {},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs">
<!-- ======================= 左边 ========================= -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<el-form-item label="内部不符点" prop="bedgrp.blk.intdis" style="width: 100%">
<c-fullbox>
<c-input type="textarea" v-model="model.bedgrp.blk.intdis" maxlength="50" show-word-limit
placeholder="请输入内部不符点"></c-input>
<template slot="footer">
<c-button style="margin-left: 10px; padding: 0 10px" size="small" type="primary"
icon="el-icon-more"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="不符点" prop="bedgrp.blk.docdis" style="width: 100%">
<c-fullbox>
<c-input type="textarea" v-model="model.bedgrp.blk.docdis" maxlength="65" show-word-limit
placeholder="请输入Discrepancies" :disabled="!docdisflg"></c-input>
<template slot="footer">
<c-button style="margin-left: 10px; padding: 0 10px" size="small" type="primary" :disabled="!docdisflg"
icon="el-icon-more"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item>
<c-checkbox v-model="docdisflg" class="checkbox-left">不符点修改</c-checkbox>
</el-form-item>
</c-col>
<c-col :span="24">
<c-docpre :model="model" :argadr="{
path: 'bedgrp.blk.prsdoc',
grp: 'betp',
code: 'docpre',
}">
</c-docpre>
</c-col>
</c-col>
<!-- ======================右边====================== -->
<c-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<el-form-item label="拒绝原因" prop="bedgrp.blk.docins" style="width: 100%">
<c-fullbox>
<c-input type="textarea" v-model="model.bedgrp.blk.docins" maxlength="50" show-word-limit
placeholder="请输入拒绝原因"></c-input>
<template slot="footer">
<c-button style="margin-left: 10px; padding: 0 10px" size="small" type="primary"
icon="el-icon-more"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="单据处理说明" prop="bedgrp.blk.disdoc" style="width: 100%">
<c-fullbox>
<c-input type="textarea" v-model="model.bedgrp.blk.disdoc" maxlength="65" show-word-limit
placeholder="请输入单据处理说明" disabled></c-input>
<template slot="footer">
<c-button style="margin-left: 10px; padding: 0 10px" size="small" type="primary" disabled
icon="el-icon-more"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="rejpenins">
<c-checkbox v-model="rejpenins" class="checkbox-left">拒绝复核指示</c-checkbox>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import Docpre from "~/views/Public/Docpre";
import event from "../event";
export default {
components: { "c-docpre": Docpre },
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
computed: {
docdisflg: {
get() {
return this.model.bedgrp.blk.docdisflg != "X";
},
set(val) {
this.model.bedgrp.blk.docdisflg = val ? "X" : "";
this.model.bedgrp.blk.docdis = "";
},
},
rejpenins: {
get() {
return this.model.rejpenins != "";
},
set(val) {
this.model.rejpenins = val ? "X" : "";
},
},
},
methods: {},
created: function () { },
};
</script>
<style>
.marginLable {
padding-left: 160px;
}
</style>
<template>
<div class="eibs">
<!-- ======================= 左边 ========================= -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<c-col :span="20">
<el-form-item label="出口信用证编号" prop="ledgrp.rec.ownref" style="width: 100%">
<c-input v-model="model.ledgrp.rec.ownref" maxlength="16" placeholder="请输入出口信用证编号" style="width: 95%"
disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="1">
<c-button style="margin: 0 10px 0 0; padding: 0 12px" size="small" type="primary">
<i class="el-icon-info" style="font-size:15px"></i>
</c-button>
<!-- </el-form-item> -->
</c-col>
<c-col :span="2" :offset="1">
<c-button style="margin: 0 0" size="small" type="primary"
:disabled="!this.flag && model.ledgrp.rec.ownref == '' ? false : true">
获取
</c-button>
<!-- </el-form-item> -->
</c-col>
<!-- </c-col> -->
</c-col>
<c-col :span="24">
<c-col :span="20">
<el-form-item label="出口单据编号" prop="bedgrp.rec.ownref" style="width: 100%">
<c-input v-model="model.bedgrp.rec.ownref" maxlength="16" placeholder="请输入出口单据编号" style="width: 95%"
disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="1">
<c-button style="margin: 0 10px 0 0; padding: 0 12px" size="small" type="primary">
<i class="el-icon-info" style="font-size:15px"></i>
</c-button>
</c-col>
<c-col :span="2" :offset="1" style="text-align: right">
<c-button style="margin: 0 0" size="small" type="primary"
:disabled="!this.flag && model.bedgrp.rec.ownref == '' ? false : true">
获取
</c-button>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="单据金额" prop="bedgrp.cbs.max.cur">
<c-fullbox>
<c-input v-model="model.bedgrp.cbs.max.cur" maxlength="3" style="width: 50%" placeholder="请输入单据金额" disabled>
</c-input>
<c-input v-model="model.bedgrp.cbs.max.amt" style="width: 50%" placeholder="请输入金额" disabled></c-input>
<template slot="footer">
<c-checkbox v-model="model.betp.adaflg" style="margin-left: 10px" disabled>附加金额</c-checkbox>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="单据余额" prop="bedgrp.cbs.opn1.cur">
<c-input v-model="model.bedgrp.cbs.opn1.cur" maxlength="3" placeholder="请输入" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" label-width="5px" prop="bedgrp.cbs.max.amt">
<c-input v-model="model.bedgrp.cbs.max.amt" placeholder="请输入金额" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="单据类型" prop="bedgrp.rec.doctypcod">
<c-select v-model="model.bedgrp.rec.doctypcod" style="width: 100%" placeholder="请输入单据类型" disabled>
<el-option v-for="item in codes.doctypcod1" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="到期日" prop="bedgrp.rec.matdat">
<c-date-picker type="date" v-model="model.bedgrp.rec.matdat" style="width: 100%" placeholder="请选择到期日"
disabled></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="收到日期" prop="bedgrp.rec.rcvdat">
<c-date-picker type="date" v-model="model.bedgrp.rec.rcvdat" style="width: 100%" placeholder="请选择收到日期"
disabled></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="交单日期" prop="bedgrp.rec.predat">
<c-date-picker type="date" v-model="model.bedgrp.rec.predat" style="width: 100%" placeholder="请选择交单日期"
disabled></c-date-picker>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="单据状态" prop="bedgrp.rec.docsta">
<c-select v-model="model.bedgrp.rec.docsta" style="width: 100%" placeholder="请选择单据状态" disabled
:code="codes.docsta">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" prop="advrefflg">
<c-checkbox v-model="advrefflg" class="checkbox-left">收到拒绝通知</c-checkbox>
</el-form-item>
</c-col>
<c-col :span="10" :offset="2">
<el-form-item label="" prop="bedgrp.rec.advdocflg">
<c-checkbox v-model="model.bedgrp.rec.advdocflg" class="checkbox-left">收到返回单据</c-checkbox>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" prop="mtabut.clsflg">
<c-checkbox v-model="clsflg" disabled class="checkbox-left">关闭合同</c-checkbox>
</el-form-item>
</c-col>
<c-col :span="10" :offset="2">
<el-form-item label="" prop="advdisflg">
<c-checkbox v-model="advdisflg" class="checkbox-left">发送不符点通知(MT750)</c-checkbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label=":72:(MT750)" prop="trnmod.trndoc.addstr750">
<c-input type="textarea" v-model="model.trnmod.trndoc.addstr750" maxlength="35" show-word-limit
placeholder="请输入Tag 72(MT750)" :disabled="!advdisflg"></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- ======================右边====================== -->
<c-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<c-col :span="12">
<el-form-item label="信用证余额" prop="ledgrp.cbs.opn1.cur">
<c-input v-model="model.ledgrp.cbs.opn1.cur" maxlength="3" placeholder="请输入" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" label-width="5px" prop="ledgrp.cbs.opn1.amt">
<c-input v-model="model.ledgrp.cbs.opn1.amt" placeholder="请输入金额" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="单据简略信息" prop="bedgrp.rec.nam">
<c-input v-model="model.bedgrp.rec.nam" maxlength="40" placeholder="请输入单据简略信息" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-ptsmsg :model="model" :argadr="{
title: '交单人',
grp: 'bedgrp',
rol: 'prb',
}" :disabled="true" :enname="true" :enRef="false" :enNam="false"></c-ptsmsg>
</c-col>
<c-col :span="24">
<c-ptsmsg :model="model" :argadr="{
title: '开证行',
grp: 'bedgrp',
rol: 'iss',
}" :disabled="true" :enRef="false" :enNam="false"></c-ptsmsg>
</c-col>
<c-col :span="24">
<c-ptsmsg :model="model" :argadr="{
title: '申请人',
grp: 'bedgrp',
rol: 'apl',
}" :disabled="true" :enRef="false" :enNam="false"></c-ptsmsg>
</c-col>
<c-col :span="24">
<el-form-item label="付款人" prop="bedgrp.rec.payrol">
<c-select v-model="model.bedgrp.rec.payrol" style="width: 100%" placeholder="请选择付款人" disabled>
<el-option v-for="item in codes.payrol" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-ptap :model="model" :argadr="{
title: '',
grp: 'bedgrp',
rol: 'oth',
}" :noRef="true" :disabled="true" :isAdrblk="true" :disabledExtkey="!(model.bedgrp.rec.payrol == 'OTH')">
</c-ptap>
</c-col>
<c-col :span="24">
<el-form-item label="交单行" prop="bedgrp.rec.docprbrol">
<c-select v-model="model.bedgrp.rec.docprbrol" style="width: 100%" placeholder="请输入交单行" disabled>
<el-option v-for="item in codes.docprbrol" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-ptap :model="model" :argadr="{
title: '',
grp: 'bedgrp',
rol: 'prb',
}" :noRef="true" :disabled="true" :isAdrblk="true" :disabledExtkey="true">
</c-ptap>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../event";
import Ptsmsg from "./Ptsmsg";
import Ptap from "~/views/Public/Ptap";
export default {
components: { "c-ptsmsg": Ptsmsg, "c-ptap": Ptap },
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
computed: {
flag() {
return this.model.mtabut.coninf.usr.extkey == "";
},
advrefflg: {
get() {
return this.model.advrefflg != "";
},
set(val) {
this.model.advrefflg = val ? "X" : "";
},
},
clsflg: {
get() {
return this.model.mtabut.clsflg == "C";
},
set(val) {
this.model.mtabut.clsflg = val ? "C" : "O";
},
},
advdisflg: {
get() {
return this.model.advdisflg != "";
},
set(val) {
this.model.advdisflg = val ? "X" : "";
},
},
},
methods: {},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames" >
<el-collapse-item title="详情信息" name="betdcrs">
<m-betdcrs :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="不符点/拒绝信息" name="betdcrd">
<m-betdcrd :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import event from "../event";
import Betdcrs from "./Betdcrs";
import Betdcrd from "./Betdcrd";
export default {
components: {
"m-betdcrs": Betdcrs,
"m-betdcrd": Betdcrd,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ["betdcrs"],
};
},
methods: {},
created: function () { },
};
</script>
<style>
.marginLable {
padding-left: 160px;
}
</style>
\ No newline at end of file
<template>
<!-- <div class="eibs-tab"> -->
<div>
<c-col v-if="!enRef" :span="24">
<el-form-item :label="argadr.title + ' 编号'" :prop="`${argadr.grp}.${argadr.rol}.pts.ref`">
<c-input
v-model="model[argadr.grp][argadr.rol].pts.ref"
maxlength="16"
:placeholder="'请输入' + argadr.title + '编号'"
:disabled="disabled"
></c-input>
</el-form-item>
</c-col>
<c-col v-else :span="24">
<el-form-item :label="argadr.title + '参考号'" :prop="`${argadr.grp}.${argadr.rol}.pts.ref`">
<c-input
v-model="model[argadr.grp][argadr.rol].pts.ref"
maxlength="16"
:placeholder="'请输入' + argadr.title + '参考号'"
:disabled="disabled"
></c-input>
</el-form-item>
</c-col>
<c-col v-if="!enNam" :span="24">
<el-form-item :label="argadr.title + '名称'" :prop="`${argadr.grp}.${argadr.rol}.pts.nam`">
<c-input
v-model="model[argadr.grp][argadr.rol].pts.nam"
maxlength="40"
:placeholder="'请输入' + argadr.title + '名称'"
:disabled="disabled || disabled1"
></c-input>
</el-form-item>
</c-col>
<c-col v-else :span="24">
<el-form-item :label="argadr.title + '名称'" :prop="`${argadr.grp}.${argadr.rol}.pts.nam`">
<c-input
v-model="model[argadr.grp][argadr.rol].pts.nam"
maxlength="40"
:placeholder="'请输入' + argadr.title + '名称'"
:disabled="disabled || disabled1"
></c-input>
</el-form-item>
</c-col>
</div>
</template>
<script>
import event from "../event"
export default {
inject: ["root"],
mixins: [event],
props: {
model: {
type: Object,
default: undefined,
},
codes: {},
argadr: {
type: Object,
default: function () {
return {
title: "", //角色名称
rol: "", //角色
grp: "", //所属模块
};
},
},
disabled: {
//名称地址是否灰显
type: Boolean,
default: false,
},
disabled1: {
//名称是否灰显
type: Boolean,
default: false,
},
enRef: {
//英文编号
type: Boolean,
default: false,
},
enNam: {
//英文名称
type: Boolean,
default: false,
},
},
data() {
return {
data: [],
};
},
watch: {},
// 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="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="统一授信" name="limitbody">
<c-content>
<m-limitbody :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="表外记账" name="engp">
<c-content>
<!-- 表外记账 -->
<m-engp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="费用/账务" name="setmod">
<c-content>
<m-setmod
:model="model"
:codes="codes"
@changeSetmodModel="changeSetmodModel"
/>
</c-content>
</el-tab-pane>
<el-tab-pane label="会计分录" name="glepan">
<c-content>
<m-glentry :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="备查/附言" name="addbcb">
<c-content>
<m-addbcb :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>
<!--trndoc PD000546 Attachments -->
<el-tab-pane label="附件信息" name="doctre">
<c-content>
<m-doctre :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<c-grid-ety-prompt-dialog ref="doxpDialog" :isPty="false" :promptData="promptData">
</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 Betdcr from "../model";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import formRules from '../model/check'
import Ovwp from "./Ovwp";
import Limitbody from "~/components/business/limitbody/views";
import Engp from "~/components/business/engp/views";
import Setmod from "~/components/business/setmod/views";
import Glentry from "~/components/business/glentry/views";
import Addbcb from "./Addbcb";
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/components/business/doctre/views";
import operationFunc from "~/mixin/operationFunc";
import event from "../event";
export default {
name: "Betdcr",
components: {
"m-ovwp": Ovwp,
"m-limitbody": Limitbody,
"m-engp": Engp,
"m-setmod": Setmod,
"m-glentry": Glentry,
"m-addbcb": Addbcb,
"m-docpan": Docpan,
"m-doctre": Doctre,
},
provide() {
return {
root: this,
};
},
mixins: [operationFunc, event], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "ovwp",
activeNames: ["engp"],
trnName: "betdcr",
model: new Betdcr().data,
rules: formRules,
codes: {
...CodeTable,
},
};
},
methods: {},
mounted () {
this.init()
},
};
</script>
<style>
</style>
......@@ -139,7 +139,6 @@ export default {
tabVal: "ovwp",
trnName: "brtdcr",
model: new Brtdcr().data,
// pattern: Pattern,
rules: formRules,
codes: {
...CodeTable
......
......@@ -55,6 +55,7 @@ const Business = [
{ path: 'betcan', component: () => import('~/business/betcan/views'), name: 'betcan', meta: { title: '出口信用证单据注销' } },
{ path: 'betrcl', component: () => import('~/business/betrcl/views'), name: 'betrcl', meta: { title: '出口信用证单据出口单据索汇' } },
{ path: 'betacc', component: () => import('~/business/betacc/views'), name: 'betacc', meta: { title: '出口信用证单据承兑' } },
{ path: 'betdcr', component: () => import('~/business/betdcr/views'), name: 'betdcr', 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