Commit f948e955 by xionglin

保函收费前端改造

parent b69675bd
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.ben.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.gidgrp.ben));
}
let dataObj = {
rec: {
objtyp: 'GID',
objinr: model.gidgrp.rec.objinr,
ownref: model.gidgrp.rec.ownref,
segtyp: model.gidgrp.rec.segtyp,
fromflg: model.gidgrp.rec.fromflg,
othersno: model.gidgrp.rec.othersno,
sndto: model.gidgrp.rec.sndto,
giduil: model.gidgrp.rec.giduil,
purpos: model.gidgrp.rec.purpos,
revflg: model.gidgrp.rec.revflg,
cnfsta: model.gidgrp.rec.cnfsta,
},
cbsMap: {
MAX: model.gidgrp.cbs.max,
OPN1: model.gidgrp.cbs.opn1,
MAC: model.gidgrp.cbs.mac,
MAC2: model.gidgrp.cbs.mac2,
OPC2: model.gidgrp.cbs.opc2,
CNF: model.gidgrp.cbs.cnf,
},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId
? window.sessionStorage.userId
: 'ZL',
};
return dataObj;
},
buildSetfeg(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaall: model.liaall,
liaccv: model.liaccv,
doceot: model.trnmod.trndoc.doceot,
};
return params;
},
buildSetglg(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
setfeg: model.setmod.setfeg,
};
return params;
},
buildGlentry(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'GID',
segtyp: model.gidgrp.rec.segtyp,
fromflg: model.gidgrp.rec.fromflg,
othersno: model.gidgrp.rec.othersno,
sndto: model.gidgrp.rec.sndto,
giduil: model.gidgrp.rec.giduil,
purpos: model.gidgrp.rec.purpos,
revflg: model.gidgrp.rec.revflg,
cnfsta: model.gidgrp.rec.cnfsta,
},
liaccv: model.liaccv,
doceot: model.trnmod.trndoc.doceot,
transName: trnName,
};
return params;
},
buildEngp(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
cbsMap: {
CNF: model.gidgrp.cbs.cnf,
},
liaccv: model.liaccv,
doceot: model.trnmod.trndoc.doceot,
transName: trnName,
};
params.rec = {
...params.rec,
opndat: model.gidgrp.rec.opndat,
branchInr: model.gidgrp.rec.branchInr,
hndtyp: model.gidgrp.rec.hndtyp,
gartyp: model.gidgrp.rec.gartyp,
fingua: model.gidgrp.rec.fingua,
};
return params;
},
buildDocpan(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'GID',
fromflg: model.gidgrp.rec.fromflg,
othersno: model.gidgrp.rec.othersno,
sndto: model.gidgrp.rec.sndto,
giduil: model.gidgrp.rec.giduil,
purpos: model.gidgrp.rec.purpos,
cnfsta: model.gidgrp.rec.cnfsta,
revflg: model.gidgrp.rec.revflg,
},
liaccv: model.liaccv,
doceot: model.trnmod.trndoc.doceot,
transName: trnName,
};
return params;
},
buildCcvpan(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
};
params.rec = {
...params.rec,
opndat: model.gidgrp.rec.opndat,
expdat: model.gidgrp.rec.expdat,
branchInr: model.gidgrp.rec.branchInr,
hndtyp: model.gidgrp.rec.hndtyp,
gartyp: model.gidgrp.rec.gartyp,
fingua: model.gidgrp.rec.fingua,
liaccvg: model.liaccv.liaccvg,
oldamt: model.liaccv.oldamt,
chgamt: model.liaccv.chgamt,
concur: model.liaccv.concur,
};
return params;
},
};
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 Utils from "~/utils"
export default {
mixins: [commonFunctions],
methods: {
...setmod,
...glentry,
...engp,
...docpan,
...ccvpan,
async init () {
const res = await Api.post('/service/gitfee/init', {
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
gidInr: 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) {
console.log(tab)
let name = tab.name;
switch (name) {
case 'ccvpan':
let ccvpanRequest = buildFn.buildCcvpan(this.model, this.trnName);
this.processLiaccv(ccvpanRequest);
break;
case 'engp':
let engpRequest = buildFn.buildEngp(this.model, this.trnName);
this.processLiaall(engpRequest);
break;
case 'setpan':
let setfegRequest = buildFn.buildSetfeg(this.model, this.trnName);
// 此处利用回调是为了等setfeg的接口调用完成后才去获取setglg参数,由于setglg参数依赖于setfeg函数的返回值
this.processSetpan(setfegRequest, () => {
return buildFn.buildSetglg(this.model, this.trnName);
});
break;
case 'docpan':
let docpanRequest = buildFn.buildDocpan(this.model, this.trnName);
this.processTrndoc(docpanRequest);
break;
case 'glepan':
let glentryRequest = buildFn.buildGlentry(this.model, this.trnName);
this.processGlentry(glentryRequest);
break;
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/gitopn/getOwnRef', params);
if (res.respCode == SUCCESS) {
loading.close();
this.model.gidgrp.rec.ownref = res.data;
}
},
// 获取gitopn弹框表格数据
async queryGridEtyPromptDialogData(type, ptytyp) {
let params = {
userId: window.sessionStorage.userId || 'ZL',
ptytyp: ptytyp,
extkey: this.model.gidgrp[type.toLowerCase()].pts.extkey,
};
let res = await Api.post('/service/ptspta/list', params);
if (res.respCode == SUCCESS) {
this.root.$refs['etyDialog'].show = true;
this.root.promptData.data = res.data.ptaInfos;
this.root.promptData.type = type;
}
},
// 选中gitopn弹框表格的行数据
async selectGridEtyPromptData(row) {
let params = {
...row,
};
let res = await Api.post('/service/ptspta/fetch', params);
if (res.respCode == SUCCESS) {
this.$set(this.model.gidgrp, row.role.toLowerCase(), res.data);
}
},
// 业务信息=》基本信息=》支出目的
purposChange(key, value) {
this.handleChangeForm(key, value);
},
// 初始化保函开立类型码表下拉列表
async queryHndtypCodeTableList(trnName) {
let params = {
gitp: {
swiftflg: this.model.gitp.swiftflg,
},
gidgrp: {
rec: {
purpos: this.model.gidgrp.rec.purpos,
},
},
transName: trnName.toUpperCase(),
};
let res = await Api.post('/service/gitopn/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
}
}
}
}
\ No newline at end of file
export default {
"gitp0.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"gidgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"gitp0.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"gidgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"gidgrp.cbs.max.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"gidgrp.cbs.max.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"gidgrp.apl.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"gidgrp.cbs.opn1.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"gidgrp.cbs.opn1.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"gidgrp.ben.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"gidgrp.ctr.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"gidgrp.rec.expdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"gidgrp.rec.liadat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"gidgrp.iss.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"xxtfee.intmbu.ums.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"xxtfee.intmbu.umsp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"xxtfee.intmbu.ums.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"xxtfee.intmbu.umsp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"xxtfee.intmbu.ums.namelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"xxtfee.intmbu.ums.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
// {max: 35,message:"长度不能超过35"}
],
"xxtfee.intmbu.ums.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"xxtfee.intmbu.ums.adrelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"xxtfee.intmbu.umh.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"xxtfee.intmbu.umhp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"xxtfee.intmbu.umh.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"xxtfee.intmbu.umhp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"xxtfee.intmbu.umh.namelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"xxtfee.intmbu.umh.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
// {max: 35,message:"长度不能超过35"}
],
"xxtfee.intmbu.umh.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"xxtfee.intmbu.umh.adrelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"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"}
],
"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"}
],
"xxtfee.intmbu.umh.pts.ref" :null,
"xxtfee.intmbu.umsrol" :null,
"xxtfee.intmbu.ums.pts.extkey" :null,
"setmod.dspflg" :null,
"xxtfee.intmbu.ums.pts.ref" :null,
"xxtfee.intmbu.ums.namelc" :null,
"xxtfee.intmbu.ums.adrelc" :null,
"xxtfee.intmbu.othbussec" :null,
"xxtfee.intmbu.umh.adrelc" :null,
"xxtfee.intmbu.umh.pts.extkey" :null,
"mtabut.coninf.conexedat" :null,
"xxtfee.intmbu.umh.namelc" :null,
"xxtfee.intmbu.umh.pts.adrblk" :null,
"setmod.docamt" :null,
"xxtfee.intmbu.umhrol" :null,
"xxtfee.intmbu.ums.pts.adrblk" :null,
}
import Pts from "~/components/business/commonModel/Pts"
import Pub from "~/components/business/commonModel/index.js";
export default class Gitfee {
constructor() {
this.data = {
xxtfee: {
intmbu: {
umh: {
pts: {
ref: '',
extkey: '',
adrblk: ''
}
},
umbflg: '',
umhrol: '',
umsrol: '',
ums: {
pts: {
ref: '',
extkey: '',
adrblk: ''
}
}
}
},
aamgid: {
addamtflg: ''
},
gidgrp: {
rec: {
expdat: '',
purpos: '',
ownref: '',
hndtyp: '',
nam: '',
gartyp: '',
purposin: ''
},
cbs: {
opn1: {
cur: '',
amt: ''
},
max: {
cur: '',
amt: ''
}
},
apl: {
pts: new Pts().data,
},
ben: {
pts: new Pts().data,
},
ctr: {
pts: new Pts().data,
},
iss: {
pts: new Pts().data,
},
},
pageId: "", // ctx的key
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="addbcb">
<m-addbcb :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 event from '../event'
import Coninfp from "~/views/Public/Coninfp";
export default {
components: {
"m-coninfp": Coninfp,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ["coninfp"],
};
},
created: function () { },
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs">
<!-- 左侧 -->
<c-col :span="12" style="padding-right: 20px">
<!-- SF000009 : Debit Party -->
<c-col :span="24">
<el-form-item label="借贷人" prop="xxtfee.intmbu.umsrol">
<c-select disabled v-model="model.xxtfee.intmbu.umsrol" style="width:100%"
placeholder="请输入借贷人">
</c-select>
</el-form-item>
</c-col>
<!-- SF000008 : Reference -->
<c-col :span="24">
<el-form-item label="参考号" prop="xxtfee.intmbu.ums.pts.ref">
<c-input v-model="model.xxtfee.intmbu.ums.pts.ref" maxlength="16" placeholder="请输入参考号"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="xxtfee.intmbu.ums.pts.extkey">
<c-fullbox>
<c-input disabled
v-model="model.xxtfee.intmbu.ums.pts.extkey"
maxlength="16"
placeholder="请输入"
@keyup.enter.native="showGridPromptDialog(`xxtfee.intmbu.ums.pts.extkey`)"
></c-input>
<template v-slot:footer>
<c-button style="margin: 0 10px 0 10px; padding: 0 12px" size="small" type="primary">
<i class="el-icon-info"></i>
</c-button>
<c-button :disabled="model.xxtfee.intmbu.ums.pts.adrblk === ''" size="small" @click="onUmspDet">详情
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="xxtfee.intmbu.ums.pts.adrblk">
<c-input disabled rows="4" type="textarea" v-model="model.xxtfee.intmbu.ums.pts.adrblk" maxlength="140"
show-word-limit placeholder="请输入地址名称"></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- 右侧 -->
<c-col :span="12" style="padding-left: 20px">
<!-- SF000007 : Credit Party -->
<c-col :span="24">
<el-form-item label="当事人" prop="xxtfee.intmbu.umhrol">
<c-select disabled v-model="model.xxtfee.intmbu.umhrol" style="width:100%"
placeholder="请输入当事人">
</c-select>
</el-form-item>
</c-col>
<!-- SF000006 : Reference -->
<c-col :span="24">
<el-form-item label="参考号" prop="xxtfee.intmbu.umh.pts.ref">
<c-input v-model="model.xxtfee.intmbu.umh.pts.ref" maxlength="16" placeholder="请输入参考号"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="xxtfee.intmbu.umh.pts.extkey">
<c-fullbox>
<c-input disabled
v-model="model.xxtfee.intmbu.umh.pts.extkey"
maxlength="16"
placeholder="请输入"
@keyup.enter.native="showGridPromptDialog(`xxtfee.intmbu.umh.pts.extkey`)"
></c-input>
<template v-slot:footer>
<c-button style="margin: 0 10px 0 10px; padding: 0 12px" size="small" type="primary">
<i class="el-icon-info"></i>
</c-button>
<c-button :disabled="model.xxtfee.intmbu.umh.pts.adrblk === ''" size="small" @click="onUmhpDet">详情
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="xxtfee.intmbu.umh.pts.adrblk">
<c-input disabled rows="4" type="textarea" v-model="model.xxtfee.intmbu.umh.pts.adrblk" maxlength="140"
show-word-limit placeholder="请输入地址名称"></c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import event from '../event'
export default {
inject: ['root'],
props: ["model", "codes"],
mixins: [event],
data() {
return {}
},
created: function () {
}
}
</script>
<style>
</style>
<template>
<div class="eibs">
<!-- 左侧 -->
<c-col :span="12" style="padding-right: 20px">
<!-- SF000270 : Reference 保函编号 -->
<c-col :span="24">
<el-form-item label="保函编号" prop="gidgrp.rec.ownref">
<c-fullbox>
<c-input disabled v-model="model.gidgrp.rec.ownref" maxlength="16" placeholder="请输入保函编号"></c-input>
<template v-slot:footer>
<c-button style="padding: 0 12px" size="small" type="primary">
<i class="el-icon-info" style="font-size:15px"></i>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<!-- SF000271 : Guarantee Amount 保函币种和金额 -->
<c-col :span="24">
<c-col :span="12">
<el-form-item label="保函币种和金额" prop="gidgrp.cbs.max.cur">
<c-select disabled v-model="model.gidgrp.cbs.max.cur" style="width: 100%" :code="codes.cur"
placeholder="请选择币种">
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="" prop="gidgrp.cbs.max.amt" label-width="5px">
<c-input disabled v-model="model.gidgrp.cbs.max.amt" placeholder="请输入金额"></c-input>
</el-form-item>
</c-col>
<c-col :span="4">
<c-form-item label="" label-width="20px">
<c-checkbox disabled v-model="model.aamgid.addamtflg">附加金额</c-checkbox>
</c-form-item>
</c-col>
</c-col>
<!-- SF000268 : Open Amount 保函余额 -->
<c-col :span="24">
<c-col :span="12">
<el-form-item label="保函余额" prop="gidgrp.cbs.opn1.cur">
<c-select disabled v-model="model.gidgrp.cbs.opn1.cur" style="width: 100%" :code="codes.cur"
placeholder="请选择币种">
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="" prop="gidgrp.cbs.opn1.amt" label-width="5px">
<c-input disabled v-model="model.gidgrp.cbs.opn1.amt" placeholder="请输入金额"></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- 接收目的 -->
<c-col :span="24">
<el-form-item label="接收目的" prop="gidgrp.rec.purposin">
<c-select disabled v-model="model.gidgrp.rec.purposin" style="width: 100%" placeholder="请选择接收目的"
:code="codes.purposin2"></c-select>
</el-form-item>
</c-col>
<!-- 支出目的 -->
<c-col :span="24">
<el-form-item label="支出目的" prop="gidgrp.rec.purpos">
<c-select disabled v-model="model.gidgrp.rec.purpos" style="width: 100%" placeholder="请选择支出目的"
:code="codes.purpos">
</c-select>
</el-form-item>
</c-col>
<!-- SF000275 : Type of Undertaking 保函种类 -->
<c-col :span="24">
<el-form-item label="保函种类" prop="gidgrp.rec.gartyp">
<c-select disabled v-model="model.gidgrp.rec.gartyp" style="width: 100%" placeholder="请选择保函种类"
:code="codes.typgar">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="保函效期" prop="gidgrp.rec.expdat">
<c-date-picker disabled type="date" v-model="model.gidgrp.rec.expdat" style="width: 100%"
placeholder="请选择保函效期"></c-date-picker>
</el-form-item>
</c-col>
<!-- Rebooking -->
<c-col :span="24">
<el-form-item label="" prop="xxtfee.intmbu.umbflg">
<c-checkbox v-model="model.xxtfee.intmbu.umbflg" class="checkbox-left"
@change="eventFunction( 'xxtfee.intmbu.umbflg')">Rebooking
</c-checkbox>
</el-form-item>
</c-col>
</c-col>
<!-- 右侧 -->
<c-col :span=" 12
" style="padding-left: 20px">
<!-- SF000274 : Name 简略信息 -->
<c-col :span="24">
<el-form-item label="简略信息" prop="gidgrp.rec.nam">
<c-input disabled v-model="model.gidgrp.rec.nam" maxlength="40" placeholder="请输入简略信息"></c-input>
</el-form-item>
</c-col>
<!-- 申请人 -->
<c-col :span="24">
<el-form-item label="申请人" prop="gidgrp.apl.pts.nam">
<c-input disabled v-model="model.gidgrp.apl.pts.nam" maxlength="40" placeholder="请输入申请人"></c-input>
</el-form-item>
</c-col>
<!-- 受益人 -->
<c-col :span="24">
<el-form-item label="受益人" prop="gidgrp.ben.pts.nam">
<c-input disabled v-model="model.gidgrp.ben.pts.nam" maxlength="40" placeholder="请输入受益人"></c-input>
</el-form-item>
</c-col>
<!-- 帐户行 -->
<c-col :span="24">
<el-form-item label="帐户行" prop="gidgrp.ctr.pts.nam">
<c-input disabled v-model="model.gidgrp.ctr.pts.nam" maxlength="40" placeholder="请输入帐户行"></c-input>
</el-form-item>
</c-col>
<!-- 开证行 -->
<c-col :span="24">
<el-form-item label="开证行" prop="gidgrp.iss.pts.nam">
<c-input disabled v-model="model.gidgrp.iss.pts.nam" maxlength="40" placeholder="请输入开证行"></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- SF000276 : Handling Type -->
<!-- <c-col :span="12">-->
<!-- <el-form-item :label="$t('gitp0.SF000276')" prop="gidgrp.rec.hndtyp">-->
<!-- <c-select v-model="model.gidgrp.rec.hndtyp" style="width:100%"-->
<!-- :placeholder="$t('other.please_enter')+$t('gitp0.SF000276')">-->
<!-- </c-select>-->
<!-- </el-form-item>-->
<!-- </c-col>-->
</div>
</template>
<script>
import event from '../event'
import CodeTable from "~/config/CodeTable";
export default {
inject: ['root'],
props: ["model", "codes"],
mixins: [event],
data() {
return {
codes: {
...CodeTable,
},
}
},
created: function () {
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames" >
<el-collapse-item title="费用" name="gitsetp1">
<m-gitsetp1 :model="model" :codes="codes"/>
</el-collapse-item>
<el-collapse-item title="Rebooking" name="cltrns" v-if="model.xxtfee.intmbu.umbflg">
<m-cltrns :model="model" :codes="codes"/>
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import event from '../event'
import Gitsetp1 from "./Gitsetp1.vue";
import Cltrns from "./Cltrns.vue";
export default {
name: "Ovwp",
components: {
"m-gitsetp1": Gitsetp1,
"m-cltrns": Cltrns
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ["gitsetp1"],
};
},
computed: {
},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eContainer">
<c-page title="进口保函收费">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small"
:validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--gitfee PD000019 -->
<el-tab-pane label="业务信息" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<!--intmbu PD000001 Rebooking -->
<!-- <el-tab-pane :label="$t('intmbu.PD000001')" name="cltrns">-->
<!-- <c-content>-->
<!-- <m-cltrns :model="model" :codes="codes"/>-->
<!-- </c-content>-->
<!-- </el-tab-pane>-->
<!--setmod PD000000 Settlement -->
<el-tab-pane label="费用/账务" name="setpan">
<c-content>
<m-setpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--coninf PD000000 Completion -->
<el-tab-pane label="备查/附言" name="coninfp">
<c-content>
<m-addbcb :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--trndoc PD000529 &Messages -->
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<m-docpan :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<!--trndoc PD000546 Attachments -->
<el-tab-pane label="附件信息" name="doctre">
<c-content>
<m-doctre :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
</c-function-btn>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
v-on:select-ety="selectEty"
>
</c-grid-ety-prompt-dialog>
</c-page>
</div>
</template>
<script>
import Gitfee from "../model";
import commonFuncs from "~/mixin/commonFuncs";
import Ovwp from "./Ovwp"
import formRules from '../model/check'
import event from '../event'
import Cltrns from "./Cltrns"
import Setpan from "~/components/business/setmod/views";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/views/Public/Doctre";
import CodeTable from "~/config/CodeTable";
import Addbcb from "./Addbcb";
export default {
name: "Gitfee",
components: {
"m-ovwp": Ovwp,
"m-cltrns": Cltrns,
"m-setpan": Setpan,
"m-addbcb" :Addbcb,
"m-coninfp": Coninfp,
"m-docpan": Docpan,
"m-doctre": Doctre,
},
provide() {
return {
root: this,
}
},
mixins: [ commonFuncs,event], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "ovwp",
trnName: "gitfee",
trnType: "",
model: new Gitfee().data,
rules: formRules,
codes: {...CodeTable},
activeNames: ["setpan"],
}
},
// created: async function () {
// console.log("进入gitfee交易");
// let rtnmsg = await this.init({})
// if (rtnmsg.respCode === SUCCESS) {
// this.updateModel(rtnmsg.data)
// //TODO 处理数据逻辑
// if (this.isInDisplay) {
// this.restoreDisplay();
// }
// } else {
// this.$notify.error({title: '错误', message: '服务请求失败!'});
// }
// },
mounted () {
this.init()
},
}
</script>
<style>
</style>
......@@ -696,6 +696,10 @@ export default {
label: '保函索赔登记',
route: '/business-new/gitcrq'
},
{
label:'保函收费',
route:'/business-new/gitfee'
}
],
currentHandleRow: {}
};
......
......@@ -9,5 +9,6 @@ const Business = [
{ path: 'litopn', component: () => import('~/business/litopn/views'), name: 'litopn', meta: { title: '进口信用证开立' } },
{ path: 'gitcrq', component: () => import('~/business/gitcrq/views'), name: 'gitcrq', meta: { title: '保函索赔登记' } },
{ path: 'gitcrj', component: () => import('~/business/gitcrj/views'), name: 'gitcrj', meta: { title: '进口保函拒付' } },
{ path: 'gitfee', component: () => import('~/business/gitfee/views'), name: 'gitfee', meta: { title: '进口保函收费' } },
]
export default Business
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