Commit cafdb0dd by lianyang

letopn附加金额/Revolving L/C取消勾选时弹出提示信息

parent 54449a31
......@@ -151,6 +151,7 @@
<c-col :span="4">
<c-checkbox
v-model="model.letp.aamp.aammod.addamtflg"
@change="openAddAmount"
style="margin-left: 10px"
>附加金额</c-checkbox
>
......@@ -419,7 +420,7 @@
</c-col>
<c-col :span="12" class="centerLable marginLable">
<c-checkbox v-model="model.ledgrp.rec.revflg"
<c-checkbox v-model="model.ledgrp.rec.revflg" @change="openRevolvingDetails"
>Revolving L/C</c-checkbox
>
</c-col>
......@@ -468,6 +469,68 @@ export default {
this.model.ledgrp.rec.apprultxt = "";
}
},
openAddAmount(val){
if(val ==='' && !(this.model.ledgrp.cbs.max2.amt =='0.000'&& this.model.ledgrp.blk.addamtcov === '') ){
this.$confirm('Do you really want to delete the additional amount of this contract?','提示',{
confirmButtonText: 'Yes',
cancelButtonText: 'No',
type: 'warning',
showClose:false
}).then(() => {//yes的执行在这里写
this.executeRule('letp.aamp.aammod.addamtflg').then(res => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data)
}
})
// this.model.ledgrp.cbs.max2.amt ='0.000';
// this.model.ledgrp.blk.addamtcov = '';
// this.$message({
// type: 'success',
// message: '删除成功!'
// });
}).catch(() => {//No的功能在这里写
this.model.letp.aamp.aammod.addamtflg ='X'
// this.$message({
// type: 'info',
// message: '已取消'
// });
});
}
},
openRevolvingDetails(val){
if(val ==='' && !(this.model.ledgrp.rec.revtyp ===''&& this.model.ledgrp.rec.revtimes == '0' && this.model.ledgrp.rec.revdat ===''
&&this.model.ledgrp.rec.revcum ===''&&this.model.ledgrp.blk.revcls ===''&&this.model.ledgrp.blk.revnotes ==='') ){
this.$confirm('Are you sure you want to delete the entered Revolving Details?','提示',{
confirmButtonText: 'Yes',
cancelButtonText: 'No',
type: 'warning',
showClose:false
}).then(() => {//yes的执行在这里写
this.executeRule('ledgrp.rec.revflg').then(res => {
if (res.respCode == SUCCESS) {
this.model.ledgrp.rec.revdat ='';//后端在事件中把日期置为null而不是nullstr,导致日期实际并没有清空,故在此加清空日期
this.updateModel(res.data)
}
})
// this.model.ledgrp.rec.revtyp ='';
// this.model.ledgrp.rec.revtimes = '0';
// this.model.ledgrp.rec.revdat ='';
// this.model.ledgrp.rec.revcum ='';
// this.model.ledgrp.blk.revcls ='';
// this.model.ledgrp.blk.revnotes ='';
// this.$message({
// type: 'success',
// message: '删除成功!'
// });
}).catch(() => {//No的功能在这里写
this.model.ledgrp.rec.revflg ='X'
// this.$message({
// type: 'info',
// message: '已取消'
// });
});
}
}
},
created: function () {},
};
......
......@@ -41,7 +41,7 @@
style="width: 100%"
placeholder="第二通知行确认指令"
:code="codes.cnfflg1"
disabled
:disabled="model.ledgrp.a2b.pts.extkey==''"
>
</c-select>
</el-form-item>
......
......@@ -15,14 +15,14 @@
</c-col>
<template v-else-if="dtyp === 'adcp'">
<c-col :span="20" class="letopn_adcp_cheak">
<c-checkbox v-model="model[`${rec}grp`].rec.spcbenflg"
>Special payment conditions for beneficiary</c-checkbox
<c-checkbox v-model="model[`${rec}grp`].rec.spcbenflg" :disabled="model[`${rec}grp`].blk.spcben!=''"
>Special Payment Conditions for Beneficiary</c-checkbox
>
</c-col>
<c-col :span="20" class="letopn_adcp_cheak">
<c-checkbox v-model="model[`${rec}grp`].rec.spcrcbflg">
Special payment conditions for receiving bank</c-checkbox
<c-checkbox v-model="model[`${rec}grp`].rec.spcrcbflg" :disabled="model[`${rec}grp`].blk.spcrcb!=''">
Special Payment Conditions for Bank only</c-checkbox
>
</c-col>
......@@ -92,7 +92,7 @@ export default {
break;
case "spcbenp":
blk.blkMsg = {
title: "Special payment conditions for beneficiary",
title: "Special Payment Cond. for BeneficiaryI",
dataUrl: `${rec}grp.blk.spcben`, //字段所在model路劲
rows: 20,
};
......@@ -100,7 +100,7 @@ export default {
break;
case "spcrcvp":
blk.blkMsg = {
title: "Special payment conditions for receiving bank",
title: "Special Payment Cond. for Bank only",
dataUrl: `${rec}grp.blk.spcrcb`, //字段所在model路劲
rows: 20,
};
......
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