Commit ee3f9221 by huxi

Merge branch 'settle-test-20230110' of http://114.115.138.98:8900/fukai/vue-gjjs…

Merge branch 'settle-test-20230110' of http://114.115.138.98:8900/fukai/vue-gjjs into settle-test-20230110
parents 9892c515 e638e84e
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: 'GID',
ownref: model.gidgrp.rec.ownref,
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,
segtyp: model.gidgrp.ghd.segtyp,
fromflg: model.gidgrp.rec.fromflg,
othersno: model.gidgrp.rec.othersno,
sndto: model.gidgrp.rec.sndto,
swiftflg: model.gitp.swiftflg,
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,
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: 'GID',
objinr: model.gidgrp.rec.objinr,
ownref: model.gidgrp.rec.ownref,
},
};
return params
},
buildDoctre (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'GID',
objinr: model.gidgrp.rec.objinr,
ownref: model.gidgrp.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 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";
import buildFn from './buildCommons.js';
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/gctadd/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 '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;
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/gctadd/getOwnRef', params);
if (res.respCode == SUCCESS) {
loading.close();
this.model.gidgrp.rec.ownref = res.data;
}
},
// 获取gctadd弹框表格数据
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;
}
},
// 选中gctadd弹框表格的行数据
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/gctadd/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
}
}
},
};
/**
* Gitadd Check规则
*/
export default {
"gctp.gidget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"gidgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"gctp.gidget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"gidgrp.rec.expdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"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位" }
],
"gctp.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"gcdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"gctp.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"gcdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"gcdgrp.cbs.max.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"gcdgrp.cbs.max.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"gcdgrp.apl.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"gcdgrp.cbs.opn1.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"gcdgrp.cbs.opn1.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"gcdgrp.apl.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"gcdgrp.ben.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"gidgrp.rec.liadat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"gcdgrp.ben.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"gcdgrp.rec.clmdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"gcdgrp.prb.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"gctp.prechkdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"gctp.prbp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"gcdgrp.prb.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"gctp.prbp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"gcdgrp.prb.namelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"gcdgrp.prb.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"gcdgrp.prb.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"gcdgrp.prb.adrelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"gctp.othp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"gcdgrp.oth.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"gctp.othp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"gcdgrp.oth.namelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"gcdgrp.oth.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"gcdgrp.oth.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"gcdgrp.oth.adrelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"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"}
],
"gctp.ischktyp" :null,
}
\ No newline at end of file
import Pts from '~/components/business/commonModel/Pts';
import Pub from '~/components/business/commonModel/index.js';
export default class Gitadd {
constructor() {
this.data = {
gctp0: {
recget: {
sdamod: {
seainf: ''
}
}
},
gctp: {
prechkdat: '',
prbp: {
ptsget: {
sdamod: {
seainf: ''
}
}
},
othp: {
ptsget: {
sdamod: {
seainf: ''
}
}
},
ischktyp: ''
},
gcdgrp: {
prb: {
pts: new Pts().data,
},
rec: {
ownref: '',
clmdat: '',
payrol: '',
nam: '',
docprbrol: ''
},
oth: {
pts: new Pts().data,
},
cbs: {
opn1: {
cur: '',
amt: ''
},
max: {
cur: '',
amt: ''
}
},
ben: {
pts: new Pts().data,
},
apl: {
pts: new Pts().data,
}
},
gidgrp: {
rec: {
ownref: '',
gartyp: ''
},
cbs: {
opn1: {
cur: '',
amt: ''
}
}
},
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="addbcb1">
<m-addbcb1 :model="model" :codes="codes" />
</el-collapse-item-->
<el-collapse-item title="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import event from '../event'
import Coninfp from "~/views/Public/Coninfp";
export default {
components: {
"m-coninfp": Coninfp,
//"m-addbcb1": Addbcb1,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ["coninfp"],
};
},
methods: {},
created: function () {},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs">
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<el-form-item
label="保函编号"
prop="gidgrp.rec.ownref"
style="width: 100%"
>
<c-fullbox>
<c-input
v-model="model.gidgrp.rec.ownref"
maxlength="8"
placeholder="请输入"
disabled
></c-input>
<template slot="footer">
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="索赔编号"
prop="gcdgrp.rec.ownref"
style="width: 100%"
>
<c-fullbox>
<c-input
v-model="model.gcdgrp.rec.ownref"
placeholder="请输入"
disabled
></c-input>
<template slot="footer">
<!-- <c-button-->
<!-- v-model="model.gctp0.recget.sdamod.seainf"-->
<!-- style="margin: 0 0 0 10px; padding: 0 12px"-->
<!-- 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="12">
<c-form-item
label="索赔金额"
prop="gcdgrp.cbs.max.cur"
previewLabel="信用证币种"
>
<c-select
v-model="model.gcdgrp.cbs.max.cur"
placeholder=""
style="width: 100%"
disabled
>
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item
previewLabel="信用证金额"
style="text-align: left ; width:100%"
label-width="5px"
prop="gcdgrp.cbs.max.amt"
>
<c-input-currency
v-model="model.gcdgrp.cbs.max.amt"
style="width: 100%"
placeholder="请输入索赔金额"
disabled
></c-input-currency>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item
label="保函余额"
prop="gcdgrp.cbs.opn1.cur"
previewLabel="信用证币种"
>
<c-select
v-model="model.gcdgrp.cbs.opn1.cur"
placeholder=""
style="width: 100%"
disabled
>
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item
previewLabel="信用证金额"
style="text-align: left"
label-width="5px"
prop="gcdgrp.cbs.opn1.amt"
>
<c-input-currency
v-model="model.gcdgrp.cbs.opn1.amt"
placeholder="请输入保函余额"
disabled
></c-input-currency>
</c-form-item>
</c-col>
<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="gcdgrp.rec.clmdat">
<c-input
v-model="model.gcdgrp.rec.clmdat"
maxlength="40"
disabled
placeholder="请输入索赔日期"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="是否需要核验" prop="gctp.ischktyp">
<c-select
v-model="model.gctp.ischktyp"
style="width:100%"
placeholder="请选择是否需要核验"
:code="codes.ischktyp">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="预计核验日期" prop="gctp.prechkdat">
<c-date-picker
type="date"
:disabled="this.typ1"
v-model="model.gctp.prechkdat"
style="width:100%"
placeholder="请选择预计核验日期">
</c-date-picker>
</el-form-item>
</c-col>
</c-col>
<!--222-->
<c-col :span="12" style="padding-left: 20px">
<c-col :span="12">
<c-form-item
label="保函金额余额"
prop="gidgrp.cbs.opn1.cur"
previewLabel="信用证币种"
>
<c-select
v-model="model.gidgrp.cbs.opn1.cur"
placeholder=""
style="width: 100%"
disabled
>
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item
previewLabel="信用证金额"
style="text-align: left"
label-width="5px"
prop="gidgrp.cbs.opn1.amt"
>
<c-input-currency
v-model="model.gidgrp.cbs.opn1.amt"
placeholder="请输入保函金额余额"
disabled
></c-input-currency>
</c-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="简略信息" prop="gcdgrp.rec.nam">
<c-input
v-model="model.gcdgrp.rec.nam"
maxlength="40"
placeholder="请输入简略信息"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="申请人参考号" prop="gcdgrp.apl.pts.ref">
<c-input
v-model="model.gcdgrp.apl.pts.ref"
maxlength="16"
placeholder="请输入申请人参考号"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="当事人姓名" prop="gcdgrp.apl.pts.nam">
<c-input
v-model="model.gcdgrp.apl.pts.nam"
maxlength="40"
placeholder="请输入"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="受益人参考号" prop="gcdgrp.ben.pts.ref">
<c-input
v-model="model.gcdgrp.ben.pts.ref"
maxlength="16"
disabled
placeholder="请输入受益人参考号"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="受益人姓名" prop="gcdgrp.ben.pts.nam">
<c-input
v-model="model.gcdgrp.ben.pts.nam"
maxlength="40"
placeholder="请输入"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="索赔当事人" prop="gcdgrp.rec.docprbrol">
<c-select v-model="model.gcdgrp.rec.docprbrol" style="width: 100%" placeholder="请选择索赔当事人"
@change="eventFunction('gcdgrp.rec.docprbrol')"
:disabled="true"
>
<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">
<el-form-item label="保函编号" prop="gcdgrp.prb.pts.ref">
<c-input v-model="model.gcdgrp.prb.pts.ref" maxlength="16" placeholder="请输入保函编号" :disabled="true"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="gcdgrp.prb.pts.extkey">
<c-fullbox>
<c-input v-model="model.gcdgrp.prb.pts.extkey" maxlength="16" placeholder="请输入"
:disabled="model.gcdgrp.rec.docprbrol != 'PRB'" @keyup.enter.native="
showGridPromptDialog('gcdgrp.prb.pts.extkey')
"></c-input>
<template slot="footer">
<c-button style="margin: 0 10px 0 10px; padding: 0 12px" size="small" type="primary"
@click="model.gctp.prbp.ptsget.sdamod.seainf">
<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="gcdgrp.prb.pts.adrblk">
<c-input :rows="4" type="textarea" v-model="model.gcdgrp.prb.pts.adrblk"
:disabled="model.gcdgrp.rec.docprbrol != 'PRB'" maxlength="300" show-word-limit placeholder="请输入">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="向索人" prop="gcdgrp.rec.payrol">
<c-select v-model="model.gcdgrp.rec.payrol"
placeholder="请选择"
style="width: 100%"
@change="eventFunction('gcdgrp.rec.payrol')"
:disabled="true"
>
<el-option v-for="item in codes.payrol" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</c-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="保函编号" prop="gcdgrp.oth.pts.ref">
<c-input v-model="model.gcdgrp.oth.pts.ref" maxlength="16" placeholder="请输入保函编号"
:disabled="model.gcdgrp.rec.payrol != 'OTH'"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="gcdgrp.oth.pts.extkey">
<c-fullbox>
<c-input v-model="model.gcdgrp.oth.pts.extkey" maxlength="16" placeholder="请输入" @keyup.enter.native="
showGridPromptDialog('gcdgrp.oth.pts.extkey')
" :disabled="model.gcdgrp.rec.payrol != 'OTH'">
</c-input>
<template slot="footer">
<c-button style="margin: 0 10px 0 10px; padding: 0 12px" size="small" type="primary"
@click="model.gctp.othp.ptsget.sdamod.seainf">
<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="gcdgrp.oth.pts.adrblk">
<c-input type="textarea" rows="4" v-model="model.gcdgrp.oth.pts.adrblk" maxlength="100" show-word-limit
placeholder="请输入" :disabled="model.gcdgrp.rec.payrol != 'OTH'"></c-input>
</el-form-item>
</c-col>
</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 {
typ1: true ,
};
},
methods: {},
watch: {
"model.gctp.ischktyp": {
immediate: true,
handler(val, oldVal) {
if (this.model.gctp.ischktyp == "Y") {
this.typ1 = false;
} else {
this.typ1 = true;
}
}
},
},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs">
<el-collapse v-model="activeNames">
<el-collapse-item title="索赔信息" name="gitsetp1">
<m-gitsetp1 :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import commonProcess from "~/mixin/commonProcess";
import event from '../event'
import Gitsetp1 from "./Gitsetp1";
export default {
components: {
"m-gitsetp1": Gitsetp1,
},
inject: ['root'],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ["gitsetp1"],
}
},
methods: {},
created: function () {
}
}
</script>
<style>
</style>
\ No newline at end of file
<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">
<el-tab-pane label="业务信息" name="ovwp">
<c-content>
<m-ovwp :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>
<c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">
</c-function-btn>
</c-tabs>
</el-form>
</c-page>
</div>
</template>
<script>
import CodeTable from "~/config/CodeTable"
import Gctadd from "../model"
import Ovwp from "./Ovwp"
import Addbcb from "./Addbcb"
import formRules from '../model/check'
import operationFunc from "@/mixin/operationFunc";
import event from '../event'
export default {
name: "Gctadd",
components:{
"m-ovwp" : Ovwp,
"m-addbcb": Addbcb,
},
provide() {
return {
root: this
}
},
mixins: [operationFunc, event], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "ovwp",
trnName: "gctadd",
trnType: "",
model: new Gctadd().data,
// checkRules: Check,
// defaultRules: Default,
// pattern: Pattern,
rules: formRules,
codes: { ...CodeTable },
}
},
methods:{},
mounted () {
this.init()
},
};
</script>
<style>
</style>
...@@ -12,6 +12,7 @@ const Business = [ ...@@ -12,6 +12,7 @@ const Business = [
{ path: 'gitfee', component: () => import('~/business/gitfee/views'), name: 'gitfee', meta: { title: '进口保函收费' } }, { path: 'gitfee', component: () => import('~/business/gitfee/views'), name: 'gitfee', meta: { title: '进口保函收费' } },
{ path: 'giteng', component: () => import('~/business/giteng/views'), name: 'giteng', meta: { title: '保函保证金调整' } }, { path: 'giteng', component: () => import('~/business/giteng/views'), name: 'giteng', meta: { title: '保函保证金调整' } },
{ path: 'gitadd', component: () => import('~/business/gitadd/views'), name: 'gitadd', meta: { title: '保函编辑参考号(公共交易)' } }, { path: 'gitadd', component: () => import('~/business/gitadd/views'), name: 'gitadd', meta: { title: '保函编辑参考号(公共交易)' } },
{ path: 'gctadd', component: () => import('~/business/gctadd/views'), name: 'gctadd', meta: { title: '保函索赔编辑参考号(公共交易)' } },
{ path: 'gctrop', component: () => import('~/business/gctrop/views'), name: 'gctrop', meta: { title: '保函索赔注销后激活' } }, { path: 'gctrop', component: () => import('~/business/gctrop/views'), name: 'gctrop', meta: { title: '保函索赔注销后激活' } },
{ path: 'gitplb', component: () => import('~/business/gitplb/views'), name: 'gitplb', meta: { title: '保函责任计划变更' } }, { path: 'gitplb', component: () => import('~/business/gitplb/views'), name: 'gitplb', meta: { title: '保函责任计划变更' } },
] ]
......
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