Commit 714375fb by panziyi

gitset多选框事件修改

parent 2eba3e21
......@@ -405,8 +405,8 @@
<!-- :disabled="model.paypsb=='X'&&model.gcdgrp.rec.frepayflg==''" -->
<c-col :span="12" class="centerLable marginLable">
<c-checkbox v-model="model.mtabut.clsflg" checked
:disabled="model.paypsb=='X'&&model.gcdgrp.rec.frepayflg==''"
<c-checkbox v-model="model.mtabut.clsflg"
:disabled="flag2"
>Close Contract
</c-checkbox>
</c-col>
......@@ -420,7 +420,7 @@
<c-col :span="12" class="centerLable marginLable">
<c-checkbox
v-model="model.paypsb"
:disabled="model.gcdgrp.rec.frepayflg=='X'"
:disabled="this.flag1"
>Unpaid by Appliacnt</c-checkbox
>
</c-col>
......@@ -738,19 +738,37 @@ export default {
};
},
// watch:{
// "model.gcdgrp.rec.frepayflg" : {
// immediate: true,
// handler(val,oldval) {
// if(this.model.gcdgrp.rec.frepayflg !="X"){
// this.model.clsflg=="X";
// }else if(this.model.gcdgrp.rec.frepayflg =""){
// this.model.clsflg=="";
// }
// },
// }
// },
watch:{
"model.gcdgrp.rec.frepayflg" : {
immediate: true,
handler(val,oldval) {
if(this.model.paypsb=="X"&&this.model.gcdgrp.rec.frepayflg =="X"){
this.flag1=true;
this.model.paypsb="";
this.model.mtabut.clsflg="X"
}
else if(this.model.gcdgrp.rec.frepayflg =="X"){
this.flag1=true;
this.model.paypsb="";
}else if(this.model.gcdgrp.rec.frepayflg ==""){
this.model.paypsb="";
this.flag1=false;
}
},
} ,
"model.paypsb" :{
immediate: true,
handler(val,oldval){
if(this.model.paypsb=="X"){
this.flag2=true
this.model.mtabut.clsflg=""
}else if(this.model.paypsb==""){
this.flag2=false
this.model.mtabut.clsflg="X"
}
}
}
},
methods: {
...Event,
// change(){
......
......@@ -398,7 +398,7 @@
>
</c-col>
<c-col :span="12" class="centerLable marginLable">
<c-checkbox v-model="model.mtabut.clsflgp" checked
<c-checkbox v-model="model.mtabut.clsflg"
>Close Contract
</c-checkbox>
</c-col>
......
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