Commit e700d219 by panziyi

trtset修改

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