Commit e700d219 by panziyi

trtset修改

parent 3f1200a7
......@@ -164,9 +164,9 @@
<c-col :span="4">
<c-checkbox
v-model="model.clsflg"
:disabled="checkDate(model.trdgrp.rec.stttendat)"
@change="change(model.clsflg)"
>{{ $t("抹账") }}</c-checkbox
></c-checkbox
>
</c-col>
</c-col>
......@@ -422,7 +422,7 @@
></c-input>
</c-col>
<c-col :span="4">
<c-button v-model="model.trtmod.finmod.cal" size="small" type="primary" @click="onFinmodCal">
<c-button v-model="model.trtmod.finmod.cal" size="small" type="primary" >
计算
</c-button>
</c-col>
......@@ -436,7 +436,7 @@
v-model="model.trtmod.finmod.reptyp"
:disabled="model.clsflg == 'X'"
style="width: 100%"
@change="selChange(model.trtmod.finmod.reptyp)"
placeholder="请选择还款方式"
>
<el-option
......@@ -560,9 +560,7 @@
<el-form-item label="" prop="" class="checkbox-left">
<c-checkbox v-model="model.mtabut.clsflg"
true-label="C" false-label="O"
:disabled="flag1">{{
$t("闭卷")
}}</c-checkbox>
:disabled="flag1"></c-checkbox>
</el-form-item>
</c-col>
</c-col>
......@@ -587,39 +585,39 @@ export default {
},
methods: {
...Event,
checkDate(date) {
var d = new Date().getDate();
var m = new Date().getMonth();
var y = new Date().getFullYear();
var dd = new Date(this.model.trdgrp.rec.stttendat).getDate();
var mm = new Date(this.model.trdgrp.rec.stttendat).getMonth();
var yy = new Date(this.model.trdgrp.rec.stttendat).getFullYear();
if (d != dd || m != mm || y != yy) {
return true;
} else {
return false;
}
},
change(a){
this.executeRule("clsflg").then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
}
});
if (a = 'X'){
this.model.trtmod.finmod.reptyp = "1"
if(this.flag1 == true){
this.flag1 = false
this.model.mtabut.clsflg = "C"
}
}
},
selChange(b){
if(b == '2'||this.flag2 == false){
this.model.mtabut.clsflg = 'O'
this.flag1 = true
}
},
// checkDate(date) {
// var d = new Date().getDate();
// var m = new Date().getMonth();
// var y = new Date().getFullYear();
// var dd = new Date(this.model.trdgrp.rec.stttendat).getDate();
// var mm = new Date(this.model.trdgrp.rec.stttendat).getMonth();
// var yy = new Date(this.model.trdgrp.rec.stttendat).getFullYear();
// if (d != dd || m != mm || y != yy) {
// return true;
// } else {
// return false;
// }
// },
// change(a){
// this.executeRule("clsflg").then((res) => {
// if ((res.respCode == SUCCESS)) {
// Utils.copyValueFromVO(this.model, res.data);
// }
// });
// if (a = 'X'){
// this.model.trtmod.finmod.reptyp = "1"
// if(this.flag1 == true){
// this.flag1 = false
// this.model.mtabut.clsflg = "C"
// }
// }
// },
// selChange(b){
// if(b == '2'||this.flag2 == false){
// this.model.mtabut.clsflg = 'O'
// this.flag1 = true
// }
// },
},
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