Commit b2dde8e5 by huxi

litame 代码清理

parent f4924265
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.lidgrp.apl.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.lidgrp.apl));
}
if (model.lidgrp.adv.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.lidgrp.adv));
}
if (model.lidgrp.ben.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.lidgrp.ben));
}
let dataObj = {
rec: {
objtyp: 'LID',
ownref: model.lidgrp.rec.ownref,
opndat: model.lidgrp.rec.opndat,
expdat: model.lidgrp.rec.expdat,
branchInr: model.lidgrp.rec.branchInr,
hndtyp: model.lidgrp.rec.hndtyp,
gartyp: model.lidgrp.rec.gartyp,
fingua: model.lidgrp.rec.fingua,
// segtyp: model.lidgrp.ghd.segtyp,
fromflg: model.lidgrp.rec.fromflg,
othersno: model.lidgrp.rec.othersno,
sndto: model.lidgrp.rec.sndto,
// swiftflg: model.gitp.swiftflg,
giduil: model.lidgrp.rec.giduil,
purpos: model.lidgrp.rec.purpos,
revflg: model.lidgrp.rec.revflg,
cnfsta: model.lidgrp.rec.cnfsta,
},
cbsMap: {
MAX: model.lidgrp.cbs.max,
OLDMAX: model.lidgrp.cbs.oldmax,
MAX2: model.lidgrp.cbs.max2,
NOM1: model.lidgrp.cbs.nom1,
OPN1: model.lidgrp.cbs.opn1,
MAC: model.lidgrp.cbs.mac,
MAC2: model.lidgrp.cbs.mac2,
OPC2: model.lidgrp.cbs.opc2,
CNF: model.lidgrp.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.lidgrp.rec.objinr,
ownref: model.lidgrp.rec.ownref,
},
};
return params
},
buildDoctre (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'LID',
objinr: model.lidgrp.rec.objinr,
ownref: model.lidgrp.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/litame/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: 'LC',
tbl: 'LC',
};
const loading = this.loading();
let res = await Api.post('/service/litame/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);
},
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 Pts from '~/components/business/commonModel/Pts';
import Pub from '~/components/business/commonModel/index.js';
export default class Litame {
constructor() {
this.data = {
bcbtyp6: '',
modtyp: '',
bcbtyp7: '',
bcbtyp4: '',
bcbtyp5: '',
bcbtyp2: '',
bcbtyp3: '',
bcbtyp1: '',
bcbdat: '',
litp: {
usr: {
extkey: ''
},
aamp: {
aammod: {
addamtflg: ''
}
}
},
bgftktyp: '',
litamep: {
amenbr: '',
cre707flg: '',
maxcur: '',
engcur: '',
lcrdocamep: {
modflg: '',
modmanflg: '',
usrblk: ''
},
spcbenamep: {
modflg: '',
modmanflg: '',
usrblk: ''
},
spcrcbamep: {
modflg: '',
modmanflg: '',
usrblk: ''
},
lcrgodamep: {
modflg: '',
modmanflg: '',
usrblk: ''
},
maxamt: '',
adlcndamep: {
modflg: '',
modmanflg: '',
usrblk: ''
},
engamt: ''
},
number: '',
litameadv: '',
ameadvrmk: '',
oldlidgrp: {
blk: {
narhis: ''
},
rec: {
expdat: '',
nomton: '',
shpdat: '',
nomtop: '',
prepertxts18: '',
prepers18: ''
},
cbs: {
max: {
cur: '',
amt: ''
},
nom1: {
amt: ''
}
}
},
lidgrp: {
a2b: {
pts: new Pts().data,
},
blk: {
insbnk: '',
feetxt: '',
mixdet: '',
shpper: '',
adlcnd: '',
addamtcov: '',
avbwthtxt: '',
defdet: '',
lcrdoc: '',
lcrgod: '',
spcben: '',
lcrdocame: '',
dftat: '',
adlcndame: '',
spcbename: '',
spcrcbame: '',
spcrcb: '',
lcrgodame: ''
},
rec: {
tenmaxday: '',
nomton: '',
expplc: '',
stacty: '',
dkflg: '',
rmbflg: '',
nomtop: '',
avbwth: '',
opndat: '',
revflg: '',
spcbenflg: '',
shpdat: '',
nam: '',
prepertxts18: '',
redclsflg: '',
nomspc: '',
shptrss18: '',
spcrcbflg: '',
shpfro: '',
lcrtyp: '',
ownref: '',
preadvdt: '',
avbby: '',
pordis: '',
shppar: '',
apprul: '',
prepers18: '',
guaflg: '',
expdat: '',
shpto: '',
rptref: '',
chato: '',
cnfdet: '',
regref: '',
porloa: '',
apprultxt: '',
},
adv: {
pts: new Pts().data,
},
con: {
namelc: '',
pts: new Pts().data,
},
ini: {
pts: new Pts().data,
},
cbs: {
opn2: {
cur: '',
amt: ''
},
max: {
cur: '',
amt: ''
},
nom1: {
cur: '',
amt: ''
},
max2: {
cur: '',
amt: ''
}
},
rmb: {
pts: new Pts().data,
},
drw: {
pts: new Pts().data,
},
ben: {
pts: new Pts().data,
},
apl: {
pts: new Pts().data,
},
avb: {
pts: new Pts().data,
}
},
liaall: {
limmod: {
ownref: '',
dggrd: '',
limpts: {
wrk: {
pts: new Pts().data,
},
oth: {
pts: new Pts().data,
},
pfcod1: '',
pfcod2: '',
nonrevflg1: '',
nonrevflg2: ''
},
comamt: '',
ccvamt: '',
limgrd: '',
lmegrd: '',
tygrd: ''
}
},
trnmod: {
swiadd: {
trnchato: '',
newnomtop: '',
purpos: '',
amedat: '',
addamtcov: '',
newnomton: '',
prepers18: '',
amenbr: '',
nartxt: '',
addamt: '',
amecur: '',
newshpdat: '',
newamt: '',
newexpdat: '',
trnfeetxt: '',
ameamt: '',
newcur: '',
prepertxts18: '',
nomspc: '',
reqcan: ''
}
},
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,
};
}
}
<template>
<div class="eibs">
<c-col :span="12">
<c-col :span="10">
<el-form-item label="附加金额" prop="lidgrp.cbs.max2.cur">
<c-select
v-model="model.lidgrp.cbs.max2.cur"
style="width: 100%"
placeholder="请选择附加金额币种"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
style="text-align: left"
label-width="20px"
prop="lidgrp.cbs.max2.amt"
>
<c-input
v-model="model.lidgrp.cbs.max2.amt"
style="text-align: left; width: 100%"
placeholder="请输入附加金额"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="10">
<el-form-item label="附加金额余额" prop="lidgrp.cbs.opn2.cur">
<c-select
v-model="model.lidgrp.cbs.opn2.cur"
style="width: 100%"
placeholder="请选择币种"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
label=""
style="text-align: left"
label-width="20px"
prop="lidgrp.cbs.opn2.amt"
>
<c-input
v-model="model.lidgrp.cbs.opn2.amt"
style="text-align: left; width: 100%"
placeholder="请输入附加金额余额"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="39C场" prop="lidgrp.blk.addamtcov">
<c-input
type="textarea"
v-model="model.lidgrp.blk.addamtcov"
maxlength="35"
:rows="4"
show-word-limit
disabled
placeholder="请输入39C场"
></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 {};
},
methods: {},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs">
<el-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<el-form-item label="附加条款" prop="lidgrp.blk.adlcnd">
<c-input
:autosize="{ minRows: 12, maxRows: 800 }"
:disabled="this.flag1"
type="textarea"
v-model="model.lidgrp.blk.adlcnd"
maxlength="52000"
show-word-limit
placeholder="请输入附加条款"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="添加/删除当前修订中的文本"
prop="litamep.adlcndamep.usrblk"
>
<c-fullbox>
<c-input
:disabled="this.flag2"
:autosize="{ minRows: 22, maxRows: 800 }"
type="textarea"
v-model="model.litamep.adlcndamep.usrblk"
maxlength="52000"
show-word-limit
placeholder="请输入添加/删除补充信息"
></c-input>
<template slot="footer">
<c-button
size="small"
type="primary"
icon="el-icon-search"
:disabled="this.flag2"
@click="
showGridPromptDialog(
'litamep.adlcndame.buttxmsel',
null,
null,
{ TXT: 'litamep.adlcndamep.usrblk' },
{ TXT: false },
'doxpDialog'
)
"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
</el-col>
<el-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<el-form-item label="历史概述" prop="lidgrp.blk.adlcndame">
<c-input
:autosize="{ minRows: 12, maxRows: 999 }"
disabled
type="textarea"
v-model="model.lidgrp.blk.adlcndame"
maxlength="4950"
show-word-limit
placeholder="请输入历史概述"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox
class="checkbox-left"
style="margin: 0px 0 10px 120px"
v-model="model.lidgrp.rec.redclsflg"
>红/绿条款</c-checkbox
>
</c-col>
<c-col :span="12">
<c-checkbox
style="margin: 0px 0 10px 100px"
v-model="model.lidgrp.rec.spcbenflg"
>适用于受益人的特殊付款条款</c-checkbox
>
</c-col>
<c-col :span="12">
<c-checkbox
@change="open"
class="checkbox-left"
style="margin: 0px 0 10px 120px"
v-model="model.litamep.adlcndamep.modflg"
>修改要替换的文本</c-checkbox
>
</c-col>
<c-col :span="12">
<c-checkbox
style="margin: 0px 0 10px 100px"
v-model="model.lidgrp.rec.spcrcbflg"
>仅适用于银行的特殊付款条款</c-checkbox
>
</c-col>
<c-col :span="12">
<el-form-item label=" " prop="litamep.adlcndamep.modmanflg">
<c-checkbox
@change="open1"
class="checkbox-left"
v-model="model.litamep.adlcndamep.modmanflg"
>内部修改文本</c-checkbox
>
</el-form-item>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
size="small"
type="primary"
>
显示差异
</c-button>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
size="small"
type="primary"
disabled
>
添加文本
</c-button>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
size="small"
type="primary"
disabled
icon="el-icon-delete"
>
删除文本
</c-button>
</c-col>
</el-col>
</div>
</template>
<script>
import event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
watch: {
"model.litamep.adlcndamep.modflg": {
immediate: true,
handler(val, oldval) {
if (
this.model.litamep.adlcndamep.modflg == "X" &&
this.model.litamep.adlcndamep.modmanflg == ""
) {
this.flag1 = false;
this.flag2 = true;
this.model.litamep.adlcndamep.usrblk = "";
} else if (
this.model.litamep.adlcndamep.modflg == "X" &&
this.model.litamep.adlcndamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
} else if (
this.model.litamep.adlcndamep.modflg == "" &&
this.model.litamep.adlcndamep.modmanflg == ""
) {
this.flag1 = true;
this.flag2 = false;
} else if (
this.model.litamep.adlcndamep.modflg == "" &&
this.model.litamep.adlcndamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
this.model.litamep.adlcndamep.usrblk = "";
}
},
},
"model.litamep.adlcndamep.modmanflg": {
immediate: true,
handler(val, oldval) {
if (
this.model.litamep.adlcndamep.modflg == "X" &&
this.model.litamep.adlcndamep.modmanflg == ""
) {
this.flag1 = false;
this.flag2 = true;
this.model.litamep.adlcndamep.usrblk = "";
} else if (
this.model.litamep.adlcndamep.modflg == "X" &&
this.model.litamep.adlcndamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
} else if (
this.model.litamep.adlcndamep.modflg == "" &&
this.model.litamep.adlcndamep.modmanflg == ""
) {
this.flag1 = true;
this.flag2 = false;
} else if (
this.model.litamep.adlcndamep.modflg == "" &&
this.model.litamep.adlcndamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
this.model.litamep.adlcndamep.usrblk = "";
}
},
},
},
methods: {
open(val) {
if (val === "" && !(this.model.lidgrp.blk.adlcnd == "")) {
this.$confirm(
"是否确定要重置手动修改?",
"提示",
{
cancelButtonText: "撤销",
confirmButtonText: "确定",
type: "warning",
showClose: false,
}
)
.then(() => {
//yes的执行在这里写
this.model.lidgrp.blk.adlcnd = "";
this.$message({
type: "success",
message: "删除成功!",
});
})
.catch(() => {
//No的功能在这里写
this.model.litamep.adlcndamep.modflg = "X";
this.$message({
type: "info",
message: "已取消",
});
});
} else if (val == "X" && this.model.litamep.adlcndamep.modmanflg == "X") {
this.$confirm("请先重置内部修改", "提示", {
confirmButtonText: "确定",
showCancelButton: false,
type: "warning",
showClose: false,
}).then(() => {
//yes的执行在这里写
this.model.litamep.adlcndamep.modflg = "";
this.flag1 = true;
this.flag2 = false;
});
}
},
open1(val) {
if (val === "" && !(this.model.lidgrp.blk.adlcnd == "")) {
this.$confirm(
"是否确定要重置手动修改?",
"提示",
{
cancelButtonText: "撤销",
confirmButtonText: "确定",
type: "warning",
showClose: false,
}
)
.then(() => {
//yes的执行在这里写
this.model.lidgrp.blk.adlcnd = "";
this.$message({
type: "success",
message: "删除成功!",
});
})
.catch(() => {
//No的功能在这里写
this.model.litamep.adlcndamep.modmanflg = "X";
this.$message({
type: "info",
message: "已取消",
});
});
} else if (
this.model.litamep.adlcndamep.modflg == "X" &&
this.model.litamep.adlcndamep.modmanflg == "X"
) {
this.$confirm("请先重置修改以替换", "提示", {
confirmButtonText: "确定",
cancelButtonText: "",
showCancelButton: false,
type: "warning",
showClose: false,
}).then(() => {
//yes的执行在这里写
this.model.litamep.adlcndamep.modmanflg = "";
this.flag1 = true;
this.flag2 = false;
});
}
},
},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames">
<el-collapse-item title="备查表" name="addbcb">
<el-form-item label="备查表类型" class="checkbox-left">
<c-checkbox v-model="model.bcbtyp1">不在名录</c-checkbox>
<c-checkbox v-model="model.bcbtyp2">异地付汇</c-checkbox>
<c-checkbox v-model="model.bcbtyp3">转口贸易</c-checkbox>
<c-checkbox v-model="model.bcbtyp4">90天以上信用证</c-checkbox>
<c-checkbox v-model="model.bcbtyp5">不需要</c-checkbox>
<c-checkbox v-model="model.bcbtyp6" style="margin-right:30px;">其它</c-checkbox>
</el-form-item>
<c-col :span="12" v-if="model.bcbtyp6">
<el-form-item label="备查表类型填写文本框" prop="bcbtyp7">
<c-input
v-model="model.bcbtyp7"
maxlength="30"
placeholder="请输入备查表类型填写文本框"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="备案表效期" prop="bcbdat">
<c-date-picker
type="date"
v-model="model.bcbdat"
style="width: 100%"
placeholder="请选择备案表效期"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="不规范条款类型" prop="bgftktyp">
<c-select
v-model="model.bgftktyp"
style="width: 100%"
placeholder="请选择不规范条款类型"
:code="codes.bgftktyp"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="特殊规定" prop="litameadv">
<c-select
v-model="model.litameadv"
style="width: 100%"
placeholder="请选择特殊规定"
:code="codes.litameadv"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11" :offset="0">
<el-form-item label=" " prop="modtyp">
<c-checkbox v-model="model.modtyp" class="checkbox-left">修改信用证类型</c-checkbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="特殊规定条件" prop="ameadvrmk">
<c-input
type="textarea"
v-model="model.ameadvrmk"
maxlength="34"
show-word-limit
placeholder="请输入特殊规定条件"
:disabled="model.litameadv === '无特殊规定' ? true : false"
></c-input>
</el-form-item>
</c-col>
</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 "~/components/business/coninfp/views";
export default {
components: {
"m-coninfp": Coninfp,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ['addbcb']
};
},
methods: { },
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs">
<el-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<el-form-item label="货物/服务描述" prop="lidgrp.blk.lcrgod">
<c-input
:autosize="{ minRows: 12, maxRows: 800 }"
:disabled="this.flag1"
type="textarea"
v-model="model.lidgrp.blk.lcrgod"
maxlength="52000"
show-word-limit
placeholder="请输入描述信息"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="在当前修订中添加/删除文本"
prop="litamep.lcrgodamep.usrblk"
>
<c-fullbox>
<c-input
:disabled="this.flag2"
:autosize="{ minRows: 22, maxRows: 800 }"
type="textarea"
v-model="model.litamep.lcrgodamep.usrblk"
maxlength="52000"
show-word-limit
placeholder="请输入添加/删除补充信息"
></c-input>
<template slot="footer">
<c-button
size="small"
type="primary"
icon="el-icon-search"
:disabled="this.flag2"
@click="
showGridPromptDialog(
'litamep.lcrgodame.buttxmsel',
null,
null,
{ TXT: 'litamep.lcrgodamep.usrblk' },
{ TXT: false },
'doxpDialog'
)
"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<!-- <c-col :span="22">
<el-form-item
label="在当前修订中添加/删除文本"
prop="litamep.lcrgodamep.usrblk"
>
<c-input
:disabled="this.flag2"
:autosize="{ minRows: 22, maxRows: 800 }"
type="textarea"
v-model="model.litamep.lcrgodamep.usrblk"
maxlength="52000"
show-word-limit
placeholder="请输入添加/删除补充信息"
></c-input>
</el-form-item>
</c-col>
<c-col :span="2">
<c-button
size="small"
type="primary"
icon="el-icon-search"
:disabled="this.flag2"
@click="
showGridPromptDialog(
'litamep.lcrgodame.buttxmsel',
null,
null,
{ TXT: 'litamep.lcrgodamep.usrblk' },
{ TXT: false },
'doxpDialog'
)
"
>
</c-button>
</c-col> -->
</el-col>
<el-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<el-form-item label="历史概述" prop="lidgrp.blk.lcrgodame">
<c-input
:autosize="{ minRows: 12, maxRows: 999 }"
disabled
type="textarea"
v-model="model.lidgrp.blk.lcrgodame"
maxlength="4950"
show-word-limit
placeholder="请输入Description of Goods Amendment History"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" prop="litamep.lcrgodamep.modflg">
<c-checkbox
@change="open"
class="checkbox-left"
v-model="model.litamep.lcrgodamep.modflg"
>修改要替换的文本</c-checkbox
>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox
@change="open1"
style="margin: 0px 0 10px 125px"
v-model="model.litamep.lcrgodamep.modmanflg"
>内部修改文本</c-checkbox
>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
size="small"
type="primary"
>
显示差异
</c-button>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
disabled
size="small"
type="primary"
>
添加文本
</c-button>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
disabled
size="small"
type="primary"
icon="el-icon-delete"
>
删除文本
</c-button>
</c-col>
</el-col>
</div>
</template>
<script>
import event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
flag1: true,
flag2: false,
};
},
watch: {
"model.litamep.lcrgodamep.modflg": {
immediate: true,
handler(val, oldval) {
if (
this.model.litamep.lcrgodamep.modflg == "X" &&
this.model.litamep.lcrgodamep.modmanflg == ""
) {
this.flag1 = false;
this.flag2 = true;
this.model.litamep.lcrgodamep.usrblk = "";
} else if (
this.model.litamep.lcrgodamep.modflg == "X" &&
this.model.litamep.lcrgodamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
} else if (
this.model.litamep.lcrgodamep.modflg == "" &&
this.model.litamep.lcrgodamep.modmanflg == ""
) {
this.flag1 = true;
this.flag2 = false;
} else if (
this.model.litamep.lcrgodamep.modflg == "" &&
this.model.litamep.lcrgodamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
this.model.litamep.lcrgodamep.usrblk = "";
}
},
},
"model.litamep.lcrgodamep.modmanflg": {
immediate: true,
handler(val, oldval) {
if (
this.model.litamep.lcrgodamep.modflg == "X" &&
this.model.litamep.lcrgodamep.modmanflg == ""
) {
this.flag1 = false;
this.flag2 = true;
this.model.litamep.lcrgodamep.usrblk = "";
} else if (
this.model.litamep.lcrgodamep.modflg == "X" &&
this.model.litamep.lcrgodamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
} else if (
this.model.litamep.lcrgodamep.modflg == "" &&
this.model.litamep.lcrgodamep.modmanflg == ""
) {
this.flag1 = true;
this.flag2 = false;
} else if (
this.model.litamep.lcrgodamep.modflg == "" &&
this.model.litamep.lcrgodamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
this.model.litamep.lcrgodamep.usrblk = "";
}
},
},
},
methods: {
open(val) {
if (val === "" && !(this.model.lidgrp.blk.lcrgod == "")) {
this.$confirm(
"是否确定要重置手动修改?",
"提示",
{
cancelButtonText: "撤销",
confirmButtonText: "确定",
type: "warning",
showClose: false,
}
)
.then(() => {
//yes的执行在这里写
this.model.lidgrp.blk.lcrgod = "";
this.$message({
type: "success",
message: "删除成功!",
});
})
.catch(() => {
//No的功能在这里写
this.model.litamep.lcrgodamep.modflg = "X";
this.$message({
type: "info",
message: "已取消",
});
});
} else if (val == "X" && this.model.litamep.lcrgodamep.modmanflg == "X") {
this.$confirm("请先重置内部修改", "提示", {
confirmButtonText: "确定",
showCancelButton: false,
type: "warning",
showClose: false,
}).then(() => {
//yes的执行在这里写
this.model.litamep.lcrgodamep.modflg = "";
this.flag1 = true;
this.flag2 = false;
});
}
},
open1(val) {
if (val === "" && !(this.model.lidgrp.blk.lcrgod == "")) {
this.$confirm(
"是否确定要重置手动修改?",
"提示",
{
cancelButtonText: "撤销",
confirmButtonText: "确定",
type: "warning",
showClose: false,
}
)
.then(() => {
//yes的执行在这里写
this.model.lidgrp.blk.lcrgod = "";
this.$message({
type: "success",
message: "删除成功!",
});
})
.catch(() => {
//No的功能在这里写
this.model.litamep.lcrgodamep.modmanflg = "X";
this.$message({
type: "info",
message: "已取消",
});
});
} else if (
this.model.litamep.lcrgodamep.modflg == "X" &&
this.model.litamep.lcrgodamep.modmanflg == "X"
) {
this.$confirm("请先重置修改以替换", "提示", {
confirmButtonText: "确定",
cancelButtonText: "",
showCancelButton: false,
type: "warning",
showClose: false,
}).then(() => {
//yes的执行在这里写
this.model.litamep.lcrgodamep.modmanflg = "";
this.flag1 = true;
this.flag2 = false;
});
}
},
},
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="lidgrp.blk.lcrdoc">
<c-input
:autosize="{ minRows: 12, maxRows: 800 }"
:disabled="this.flag1"
type="textarea"
v-model="model.lidgrp.blk.lcrdoc"
maxlength="52000"
show-word-limit
placeholder="请输入单据要求"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="添加/删除当前修订中的文本"
prop="litamep.lcrdocamep.usrblk"
>
<c-fullbox>
<c-input
type="textarea"
:disabled="this.flag2"
v-model="model.litamep.lcrdocamep.usrblk"
maxlength="52000"
show-word-limit
placeholder="请输入添加/删除补充信息"
:autosize="{ minRows: 22, maxRows: 800 }"
></c-input>
<template slot="footer">
<c-button
size="small"
type="primary"
icon="el-icon-search"
:disabled="this.flag2"
@click="
showGridPromptDialog(
'litamep.lcrdocame.buttxmsel',
null,
null,
{ TXT: 'litamep.lcrdocamep.usrblk' },
{ TXT: false },
'doxpDialog'
)
"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<el-form-item label="历史概述" prop="lidgrp.blk.lcrdocame">
<c-input
:autosize="{ minRows: 12, maxRows: 999 }"
disabled
type="textarea"
v-model="model.lidgrp.blk.lcrdocame"
maxlength="4950"
show-word-limit
placeholder="请输入历史概述"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label=" " prop="litamep.lcrdocamep.modflg">
<c-checkbox
@change="open"
class="checkbox-left"
v-model="model.litamep.lcrdocamep.modflg"
>修改要替换的文本</c-checkbox
>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox
@change="open1"
style="margin: 0px 0 10px 125px"
v-model="model.litamep.lcrdocamep.modmanflg"
>内部修改文本</c-checkbox
>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
size="small"
type="primary"
>
显示差异
</c-button>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
disabled
size="small"
type="primary"
>
添加文本
</c-button>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
disabled
size="small"
type="primary"
icon="el-icon-delete"
>
删除文本
</c-button>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
flag1: true,
flag2: false,
};
},
watch: {
"model.litamep.lcrdocamep.modflg": {
immediate: true,
handler(val, oldval) {
if (
this.model.litamep.lcrdocamep.modflg == "X" &&
this.model.litamep.lcrdocamep.modmanflg == ""
) {
this.flag1 = false;
this.flag2 = true;
this.model.litamep.lcrdocamep.usrblk = "";
} else if (
this.model.litamep.lcrdocamep.modflg == "X" &&
this.model.litamep.lcrdocamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
} else if (
this.model.litamep.lcrdocamep.modflg == "" &&
this.model.litamep.lcrdocamep.modmanflg == ""
) {
this.flag1 = true;
this.flag2 = false;
} else if (
this.model.litamep.lcrdocamep.modflg == "" &&
this.model.litamep.lcrdocamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
this.model.litamep.lcrdocamep.usrblk = "";
}
},
},
"model.litamep.lcrdocamep.modmanflg": {
immediate: true,
handler(val, oldval) {
if (
this.model.litamep.lcrdocamep.modflg == "X" &&
this.model.litamep.lcrdocamep.modmanflg == ""
) {
this.flag1 = false;
this.flag2 = true;
this.model.litamep.lcrdocamep.usrblk = "";
} else if (
this.model.litamep.lcrdocamep.modflg == "X" &&
this.model.litamep.lcrdocamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
} else if (
this.model.litamep.lcrdocamep.modflg == "" &&
this.model.litamep.lcrdocamep.modmanflg == ""
) {
this.flag1 = true;
this.flag2 = false;
} else if (
this.model.litamep.lcrdocamep.modflg == "" &&
this.model.litamep.lcrdocamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
this.model.litamep.lcrdocamep.usrblk = "";
}
},
},
},
methods: {
...Event,
open(val) {
if (val === "" && !(this.model.lidgrp.blk.lcrdoc == "")) {
this.$confirm(
"是否确定要重置手动修改?",
"提示",
{
cancelButtonText: "撤销",
confirmButtonText: "确定",
type: "warning",
showClose: false,
}
)
.then(() => {
//yes的执行在这里写
this.model.lidgrp.blk.lcrdoc = "";
this.$message({
type: "success",
message: "删除成功!",
});
})
.catch(() => {
//No的功能在这里写
this.model.litamep.lcrdocamep.modflg = "X";
this.$message({
type: "info",
message: "已取消",
});
});
} else if (val == "X" && this.model.litamep.lcrdocamep.modmanflg == "X") {
this.$confirm("请先重置内部修改", "提示", {
confirmButtonText: "确定",
showCancelButton: false,
type: "warning",
showClose: false,
}).then(() => {
//yes的执行在这里写
this.model.litamep.lcrdocamep.modflg = "";
this.flag1 = true;
this.flag2 = false;
});
}
},
open1(val) {
if (val === "" && !(this.model.lidgrp.blk.lcrdoc == "")) {
this.$confirm(
"是否确定要重置手动修改?",
"提示",
{
cancelButtonText: "撤销",
confirmButtonText: "确定",
type: "warning",
showClose: false,
}
)
.then(() => {
//yes的执行在这里写
this.model.lidgrp.blk.lcrdoc = "";
this.$message({
type: "success",
message: "删除成功!",
});
})
.catch(() => {
//No的功能在这里写
this.model.litamep.lcrdocamep.modmanflg = "X";
this.$message({
type: "info",
message: "已取消",
});
});
} else if (
this.model.litamep.lcrdocamep.modflg == "X" &&
this.model.litamep.lcrdocamep.modmanflg == "X"
) {
this.$confirm("请先重置修改以替换", "提示", {
confirmButtonText: "确定",
cancelButtonText: "",
showCancelButton: false,
type: "warning",
showClose: false,
}).then(() => {
//yes的执行在这里写
this.model.litamep.lcrdocamep.modmanflg = "";
this.flag1 = true;
this.flag2 = false;
});
}
},
},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs">
<c-col :span="24">
<el-form-item label="指示信息" prop="lidgrp.blk.insbnk">
<c-input
type="textarea"
v-model="model.lidgrp.blk.insbnk"
maxlength="1000"
:rows="20"
show-word-limit
placeholder="请输入指示信息"
></c-input>
</el-form-item>
</c-col>
</div>
</template>
<script>
import event from "../event";
export default {
inject: ['root'],
props:["model","codes"],
mixins: [event],
data(){
return {
}
},
methods:{},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs">
<el-col :span="12" style="padding-right: 20px;">
<el-form-item label="历史叙述内容" prop="oldlidgrp.blk.narhis">
<c-input
disabled
type="textarea"
v-model="model.oldlidgrp.blk.narhis"
maxlength="49950"
show-word-limit
:rows="12"
placeholder="请输入内容" ></c-input>
</el-form-item>
</el-col>
<el-col :span="12" style="padding-left: 20px;">
<c-col :span="24">
<el-form-item label="叙述内容" prop="trnmod.swiadd.nartxt">
<c-input
disabled
type="textarea"
v-model="model.trnmod.swiadd.nartxt"
maxlength="1750"
show-word-limit
:rows="12"
placeholder="请输入叙述内容" ></c-input>
</el-form-item>
</c-col>
</el-col>
</div>
</template>
<script>
import event from "../event";
export default {
inject: ['root'],
props:["model","codes"],
mixins: [event],
data(){
return {
}
},
methods:{ },
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames">
<el-collapse-item title="修改信息" name="amep">
<m-amep :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="概览信息" name="ovwp1">
<m-ovwp1 :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="叙述内容" name="narp">
<m-narp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="详情信息" name="detp">
<m-detp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="当事人信息" name="ptyp">
<m-ptyp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="单据修改" name="dorpame">
<m-dorpame :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="货物修改" name="dogpame">
<m-dogpame :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="附加条款修改" name="adcpame">
<m-adcpame :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="付款/承兑/议付行指示" name="inspame">
<m-inspame :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="单据修改" name="aamp" v-if="this.model.litp.aamp.aammod.addamtflg">
<m-aamp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="受益人特殊付款条款修改" name="spbpame" v-if="this.model.lidgrp.rec.spcbenflg">
<m-spbpame :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="银行专用付款条款修改" name="sprpame" v-if="this.model.lidgrp.rec.spcrcbflg">
<m-sprpame :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import event from "../event";
import Amep from "./Amep";
import Ovwp1 from "./Ovwp1";
import Narp from "./Narp";
import Detp from "./Detp";
import Ptyp from "./Ptyp";
import Dorpame from "./Dorpame";
import Dogpame from "./Dogpame";
import Adcpame from "./Adcpame";
import Aamp from "./Aamp";
import Spbpame from "./Spbpame.vue";
import Sprpame from "./Sprpame.vue";
import Inspame from "./Inspame";
export default {
components: {
"m-amep": Amep,
"m-ovwp1": Ovwp1,
"m-narp": Narp,
"m-detp": Detp,
"m-ptyp": Ptyp,
"m-dorpame": Dorpame,
"m-dogpame": Dogpame,
"m-adcpame": Adcpame,
"m-aamp": Aamp,
"m-spbpame": Spbpame,
"m-sprpame": Sprpame,
"m-inspame": Inspame,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ['amep']
};
},
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="lidgrp.blk.spcben"
>
<c-input
:rows="12"
:disabled="this.flag1"
type="textarea"
v-model="model.lidgrp.blk.spcben"
maxlength="65"
show-word-limit
placeholder="请输入受益人的特殊付款条款"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="添加/删除当前修订中的文本"
prop="litamep.spcbenamep.usrblk"
>
<c-fullbox>
<c-input
type="textarea"
:disabled="this.flag2"
v-model="model.litamep.spcbenamep.usrblk"
maxlength="1650"
show-word-limit
placeholder="请输入添加/删除补充信息"
:rows="22"
></c-input>
<template slot="footer">
<c-button
size="small"
type="primary"
icon="el-icon-search"
:disabled="this.flag2"
@click="
showGridPromptDialog(
'litamep.spcbenamep.buttxmsel',
null,
null,
{ TXT: 'litamep.spcbenamep.usrblk' },
{ TXT: false },
'doxpDialog'
)
"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<el-form-item label="历史概述" prop="lidgrp.blk.spcbename">
<c-input
:rows="12"
disabled
type="textarea"
v-model="model.lidgrp.blk.spcbename"
maxlength="50"
show-word-limit
placeholder="请输入历史概述"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" prop="litamep.spcbenamep.modflg">
<c-checkbox
class="checkbox-left"
@change="open"
v-model="model.litamep.spcbenamep.modflg"
>修改要替换的文本</c-checkbox
>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox
@change="open1"
style="margin: 0px 0 10px 125px"
v-model="model.litamep.spcbenamep.modmanflg"
>内部修改文本</c-checkbox
>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
size="small"
type="primary"
>
显示差异
</c-button>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
disabled
size="small"
type="primary"
>
添加文本
</c-button>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
disabled
size="small"
type="primary"
icon="el-icon-delete"
>
删除文本
</c-button>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
flag1: true,
flag2: false,
};
},
watch: {
"model.litamep.spcbenamep.modflg": {
immediate: true,
handler(val, oldval) {
if (
this.model.litamep.spcbenamep.modflg == "X" &&
this.model.litamep.spcbenamep.modmanflg == ""
) {
this.flag1 = false;
this.flag2 = true;
this.model.litamep.spcbenamep.usrblk = "";
} else if (
this.model.litamep.spcbenamep.modflg == "X" &&
this.model.litamep.spcbenamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
} else if (
this.model.litamep.spcbenamep.modflg == "" &&
this.model.litamep.spcbenamep.modmanflg == ""
) {
this.flag1 = true;
this.flag2 = false;
} else if (
this.model.litamep.spcbenamep.modflg == "" &&
this.model.litamep.spcbenamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
this.model.litamep.spcbenamep.usrblk = "";
}
},
},
"model.litamep.spcbenamep.modmanflg": {
immediate: true,
handler(val, oldval) {
if (
this.model.litamep.spcbenamep.modflg == "X" &&
this.model.litamep.spcbenamep.modmanflg == ""
) {
this.flag1 = false;
this.flag2 = true;
this.model.litamep.spcbenamep.usrblk = "";
} else if (
this.model.litamep.spcbenamep.modflg == "X" &&
this.model.litamep.spcbenamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
} else if (
this.model.litamep.spcbenamep.modflg == "" &&
this.model.litamep.spcbenamep.modmanflg == ""
) {
this.flag1 = true;
this.flag2 = false;
} else if (
this.model.litamep.spcbenamep.modflg == "" &&
this.model.litamep.spcbenamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
this.model.litamep.spcbenamep.usrblk = "";
}
},
},
},
methods: {
open(val) {
if (val === "" && !(this.model.lidgrp.blk.spcben == "")) {
this.$confirm(
"是否确定要重置手动修改?",
"提示",
{
cancelButtonText: "撤销",
confirmButtonText: "确定",
type: "warning",
showClose: false,
}
)
.then(() => {
//yes的执行在这里写
this.model.lidgrp.blk.spcben = "";
this.$message({
type: "success",
message: "删除成功!",
});
})
.catch(() => {
//No的功能在这里写
this.model.litamep.spcbenamep.modflg = "X";
this.$message({
type: "info",
message: "已取消",
});
});
} else if (val == "X" && this.model.litamep.spcbenamep.modmanflg == "X") {
this.$confirm("请先重置内部修改", "提示", {
confirmButtonText: "确定",
showCancelButton: false,
type: "warning",
showClose: false,
}).then(() => {
//yes的执行在这里写
this.model.litamep.spcbenamep.modflg = "";
this.flag1 = true;
this.flag2 = false;
});
}
},
open1(val) {
if (val === "" && !(this.model.lidgrp.blk.spcben == "")) {
this.$confirm(
"是否确定要重置手动修改?",
"提示",
{
cancelButtonText: "撤销",
confirmButtonText: "确定",
type: "warning",
showClose: false,
}
)
.then(() => {
//yes的执行在这里写
this.model.lidgrp.blk.spcben = "";
this.$message({
type: "success",
message: "删除成功!",
});
})
.catch(() => {
//No的功能在这里写
this.model.litamep.spcbenamep.modmanflg = "X";
this.$message({
type: "info",
message: "已取消",
});
});
} else if (
this.model.litamep.spcbenamep.modflg == "X" &&
this.model.litamep.spcbenamep.modmanflg == "X"
) {
this.$confirm("请先重置修改以替换", "提示", {
confirmButtonText: "确定",
cancelButtonText: "",
showCancelButton: false,
type: "warning",
showClose: false,
}).then(() => {
//yes的执行在这里写
this.model.litamep.spcbenamep.modmanflg = "";
this.flag1 = true;
this.flag2 = false;
});
}
},
},
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="lidgrp.blk.spcrcb"
>
<c-input
:rows="12"
:disabled="this.flag1"
type="textarea"
v-model="model.lidgrp.blk.spcrcb"
maxlength="65"
show-word-limit
placeholder="请输入仅适用于银行的特殊付款条款"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="添加/删除当前修订中的文本"
prop="litamep.spcrcbamep.usrblk"
>
<c-fullbox>
<c-input
type="textarea"
:disabled="this.flag2"
v-model="model.litamep.spcrcbamep.usrblk"
maxlength="1650"
show-word-limit
placeholder="请输入添加/删除补充信息"
:rows="22"
></c-input>
<template slot="footer">
<c-button
size="small"
type="primary"
icon="el-icon-search"
:disabled="this.flag2"
@click="
showGridPromptDialog(
'litamep.spcrcbamep.buttxmsel',
null,
null,
{ TXT: 'litamep.spcrcbamep.usrblk' },
{ TXT: false },
'doxpDialog'
)
"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<el-form-item label="历史概述" prop="lidgrp.blk.spcrcbame">
<c-input
:rows="12"
disabled
type="textarea"
v-model="model.lidgrp.blk.spcrcbame"
maxlength="50"
show-word-limit
placeholder="请输入历史概述"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" prop="litamep.spcrcbamep.modflg">
<c-checkbox
class="checkbox-left"
@change="open"
v-model="model.litamep.spcrcbamep.modflg"
>修改要替换的文本</c-checkbox
>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox
@change="open1"
style="margin: 0px 0 10px 125px"
v-model="model.litamep.spcrcbamep.modmanflg"
>内部修改文本</c-checkbox
>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
size="small"
type="primary"
>
显示差异
</c-button>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
disabled
size="small"
type="primary"
>
添加文本
</c-button>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 120px"
disabled
size="small"
type="primary"
icon="el-icon-delete"
>
删除文本
</c-button>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
flag1: true,
flag2: false,
};
},
watch: {
"model.litamep.spcrcbamep.modflg": {
immediate: true,
handler(val, oldval) {
if (
this.model.litamep.spcrcbamep.modflg == "X" &&
this.model.litamep.spcrcbamep.modmanflg == ""
) {
this.flag1 = false;
this.flag2 = true;
this.model.litamep.spcrcbamep.usrblk = "";
} else if (
this.model.litamep.spcrcbamep.modflg == "X" &&
this.model.litamep.spcrcbamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
} else if (
this.model.litamep.spcrcbamep.modflg == "" &&
this.model.litamep.spcrcbamep.modmanflg == ""
) {
this.flag1 = true;
this.flag2 = false;
} else if (
this.model.litamep.spcrcbamep.modflg == "" &&
this.model.litamep.spcrcbamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
this.model.litamep.spcrcbamep.usrblk = "";
}
},
},
"model.litamep.spcrcbamep.modmanflg": {
immediate: true,
handler(val, oldval) {
if (
this.model.litamep.spcrcbamep.modflg == "X" &&
this.model.litamep.spcrcbamep.modmanflg == ""
) {
this.flag1 = false;
this.flag2 = true;
this.model.litamep.spcrcbamep.usrblk = "";
} else if (
this.model.litamep.spcrcbamep.modflg == "X" &&
this.model.litamep.spcrcbamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
} else if (
this.model.litamep.spcrcbamep.modflg == "" &&
this.model.litamep.spcrcbamep.modmanflg == ""
) {
this.flag1 = true;
this.flag2 = false;
} else if (
this.model.litamep.spcrcbamep.modflg == "" &&
this.model.litamep.spcrcbamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
this.model.litamep.spcrcbamep.usrblk = "";
}
},
},
},
methods: {
open(val) {
if (val === "" && !(this.model.lidgrp.blk.spcrcb == "")) {
this.$confirm(
"是否确定要重置手动修改?",
"提示",
{
cancelButtonText: "撤销",
confirmButtonText: "确定",
type: "warning",
showClose: false,
}
)
.then(() => {
//yes的执行在这里写
this.model.lidgrp.blk.spcrcb = "";
this.$message({
type: "success",
message: "删除成功!",
});
})
.catch(() => {
//No的功能在这里写
this.model.litamep.spcrcbamep.modflg = "X";
this.$message({
type: "info",
message: "已取消",
});
});
} else if (val == "X" && this.model.litamep.spcrcbamep.modmanflg == "X") {
this.$confirm("请先重置内部修改", "提示", {
confirmButtonText: "确定",
showCancelButton: false,
type: "warning",
showClose: false,
}).then(() => {
//yes的执行在这里写
this.model.litamep.spcrcbamep.modflg = "";
this.flag1 = true;
this.flag2 = false;
});
}
},
open1(val) {
if (val === "" && !(this.model.lidgrp.blk.spcrcb == "")) {
this.$confirm(
"是否确定要重置手动修改?",
"提示",
{
cancelButtonText: "撤销",
confirmButtonText: "确定",
type: "warning",
showClose: false,
}
)
.then(() => {
//yes的执行在这里写
this.model.lidgrp.blk.spcrcb = "";
this.$message({
type: "success",
message: "删除成功!",
});
})
.catch(() => {
//No的功能在这里写
this.model.litamep.spcrcbamep.modmanflg = "X";
this.$message({
type: "info",
message: "已取消",
});
});
} else if (
this.model.litamep.spcrcbamep.modflg == "X" &&
this.model.litamep.spcrcbamep.modmanflg == "X"
) {
this.$confirm("请先重置修改以替换", "提示", {
confirmButtonText: "确定",
cancelButtonText: "",
showCancelButton: false,
type: "warning",
showClose: false,
}).then(() => {
//yes的执行在这里写
this.model.litamep.spcrcbamep.modmanflg = "";
this.flag1 = true;
this.flag2 = false;
});
}
},
},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eContainer">
<c-page title="进口信用证修改">
<!--
<div class="fast-button">
<el-button size="small">备忘录</el-button>
<el-button size="small" @click="setDraggableContent('cms', '影像信息')">影像信息</el-button>
<el-button size="small">制裁信息</el-button>
<el-button size="small">智能提示</el-button>
/div>
-->
<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>
<!--PD000001 -->
<el-tab-pane label="保证金" name="ccvpan">
<c-content>
<m-ccvpan :model="model" :codes="codes" :buildLiaccv="buildLiaccv" />
</c-content>
</el-tab-pane>
<!--PD000001 -->
<el-tab-pane label="统一授信" name="limitbody">
<c-content>
<m-limitbody :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="表外记账" name="engp">
<c-content>
<!-- 表外记账 -->
<m-engp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="费用/账务" name="setmod">
<c-content>
<m-setmod
:model="model"
:codes="codes"
@changeSetmodModel="changeSetmodModel"
/>
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="会计分录" name="glepan">
<c-content>
<m-glentry :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000328 -->
<el-tab-pane label="备查/附言" name="addbcb">
<c-content>
<m-addbcb :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000529 -->
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<m-docpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000546 -->
<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"
@select-ety="selectGridEtyPromptData"
>
</c-grid-ety-prompt-dialog>
<c-grid-ety-prompt-dialog
ref="doxpDialog"
:isPty="false"
:promptData="promptData"
@select-ety="selectGridEtyPromptData"
>
</c-grid-ety-prompt-dialog>
</c-page>
</div>
</template>
<script>
import CodeTable from "~/config/CodeTable";
import formRules from '../model/check';
import operationFunc from "~/mixin/operationFunc";
import Litame from "../model";
import event from "../event";
import Ovwp from "./Ovwp";
import Ovwp1 from "./Ovwp1";
import Aamp from "./Aamp";
import Narp from "./Narp";
import Detp from "./Detp";
import Ptyp from "./Ptyp";
import Inspame from "./Inspame";
import Addbcb from "./Addbcb";
import Dorpame from "./Dorpame";
import Dogpame from "./Dogpame";
import Adcpame from "./Adcpame";
import Engp from "~/components/business/engp/views";
import Ccvpan from "~/components/business/ccvpan/views";
import Coninfp from "~/components/business/coninfp/views";
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/components/business/doctre/views";
import Setmod from "~/components/business/setmod/views";
// import Limitbody from "./Limitbody";
import Limitbody from "~/components/business/limitbody/views";
export default {
name: "Litame",
components: {
"m-ovwp": Ovwp,
"m-ovwp1": Ovwp1,
"m-aamp": Aamp,
"m-narp": Narp,
"m-detp": Detp,
"m-ptyp": Ptyp,
"m-inspame": Inspame,
"m-engp": Engp,
"m-ccvpan": Ccvpan,
"m-addbcb": Addbcb,
"m-coninfp": Coninfp,
"m-docpan": Docpan,
"m-doctre": Doctre,
"m-dorpame": Dorpame,
"m-dogpame": Dogpame,
"m-adcpame": Adcpame,
"m-limitbody": Limitbody,
"m-setmod": Setmod,
},
provide() {
return {
root: this,
};
},
mixins: [operationFunc, event], // 里面包含了Default、Check等的公共处理
computed: {},
data() {
return {
tabVal: "ovwp",
trnName: "litame",
model: new Litame().data,
rules: formRules,
codes: { ...CodeTable },
activeNames: ["engp"],
promptData: {
title: 'Select a Party',
columns: [
{
prop: 'ptyInr',
label: 'Party Number'
},
{
prop: 'inr',
label: 'Address Number'
},
{
prop: 'branch',
label: 'Branch Code'
},
{
prop: 'bchName',
label: 'Branch Name'
},
{
prop: 'adrName',
label: 'Address Name'
},
{
prop: 'adr1',
label: 'Address1'
},
{
prop: 'locCty',
label: 'City'
},
{
prop: 'locZip',
label: 'Zip'
},
{
prop: 'bicCode',
label: 'BIC'
}
],
data: []
},
};
},
mounted () {
this.init()
},
};
</script>
<style>
</style>
......@@ -7,6 +7,7 @@ const Business = [
{ path: 'gitame', component: () => import('~/business/gitame/views'), name: 'gitame', meta: { title: '出口保函修改' } },
{ path: 'inftrnpsDetail', component: () => import('~/business/trnrel/views/InftrnpsDetail.vue'), name: 'InftrnpsDetail', meta: { title: '待复核详情' } },
{ path: 'litopn', component: () => import('~/business/litopn/views'), name: 'litopn', meta: { title: '进口信用证开立' } },
{ path: 'litame', component: () => import('~/business/litame/views'), name: 'litame', 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: '进口保函收费' } },
......
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