Commit 63893653 by lianyang

letamc/not加附加金额取消勾选弹框确认;letame加Revoving LC取消勾选弹框确认

parent c2d55dbb
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="5"> <c-col :span="5">
<c-checkbox v-model="addamtflg" style="margin-left:-1px;">Add. Amount</c-checkbox> <c-checkbox v-model="addamtflg" style="margin-left:-1px;" @change="openAddAmount">Add. Amount</c-checkbox>
</c-col> </c-col>
</c-col> </c-col>
...@@ -691,11 +691,39 @@ export default { ...@@ -691,11 +691,39 @@ export default {
}, },
}, },
methods: { ...Event, methods: { ...Event,
apprulChange(v) { apprulChange(v) {
if (v !== "OTHR") { if (v !== "OTHR") {
this.model.ledgrp.rec.apprultxt = ""; 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: '已取消'
// });
});
}
},
}, },
created: function () { created: function () {
......
...@@ -366,6 +366,7 @@ ...@@ -366,6 +366,7 @@
<c-col :span="12" class="centerLable marginLable"> <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 >Revolving L/C</c-checkbox
> >
</c-col> </c-col>
...@@ -407,13 +408,46 @@ export default { ...@@ -407,13 +408,46 @@ export default {
}, },
methods: { methods: {
...Event, ...Event,
onSeainf(){},
onExtkey(){}, onExtkey(){},
apprulChange(v) { apprulChange(v) {
if (v !== "OTHR") { if (v !== "OTHR") {
this.model.ledgrp.rec.apprultxt = ""; this.model.ledgrp.rec.apprultxt = "";
} }
}, },
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 () {}, created: function () {},
}; };
......
...@@ -143,6 +143,7 @@ ...@@ -143,6 +143,7 @@
<c-checkbox <c-checkbox
v-model="model.letp.aamp.aammod.addamtflg" v-model="model.letp.aamp.aammod.addamtflg"
style="margin-left: 10px" style="margin-left: 10px"
@change="openAddAmount"
>附加金额</c-checkbox >附加金额</c-checkbox
> >
</c-col> </c-col>
...@@ -497,6 +498,34 @@ export default { ...@@ -497,6 +498,34 @@ export default {
this.model.ledgrp.rec.apprultxt = '' 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: '已取消'
// });
});
}
},
}, },
created: function () {}, created: function () {},
} }
......
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