mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化代码
This commit is contained in:
parent
85a934ffbd
commit
23396a58af
@ -21,6 +21,24 @@
|
|||||||
class="form-control editFeeEndTime">
|
class="form-control editFeeEndTime">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group row" v-show="editFeeInfo.computingFormula == '1102'">
|
||||||
|
<label class="col-sm-2 col-form-label"><span><vc:i18n name="递增周期" namespace="editFee"></vc:i18n></span></label>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<input v-model="editFeeInfo.rateCycle" type="text" :placeholder="vc.i18n('必填,请填写递增周期,请填写月份','editFee')" class="form-control">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row" v-show="editFeeInfo.computingFormula == '1102'">
|
||||||
|
<label class="col-sm-2 col-form-label"><span><vc:i18n name="计费递增率" namespace="editFee"></vc:i18n></span></label>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<input v-model="editFeeInfo.rate" type="text" :placeholder="vc.i18n('必填,请填写递增率','editFee')" class="form-control">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row" v-show="editFeeInfo.computingFormula == '1102'">
|
||||||
|
<label class="col-sm-2 col-form-label"><span><vc:i18n name="递增开始时间" namespace="editFee"></vc:i18n></span></label>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<input v-model="editFeeInfo.rateStartTime" type="text" :placeholder="vc.i18n('必填,请填写递增开始时间','editFee')" class="form-control roomRateStartTime">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="ibox-content">
|
<div class="ibox-content">
|
||||||
<button class="btn btn-primary float-right" type="button" v-on:click="_doEidtFee()">
|
<button class="btn btn-primary float-right" type="button" v-on:click="_doEidtFee()">
|
||||||
<i class="fa fa-check"></i> 提交
|
<i class="fa fa-check"></i> 提交
|
||||||
|
|||||||
@ -4,7 +4,11 @@
|
|||||||
editFeeInfo: {
|
editFeeInfo: {
|
||||||
feeId: '',
|
feeId: '',
|
||||||
startTime: '',
|
startTime: '',
|
||||||
endTime: ''
|
endTime: '',
|
||||||
|
computingFormula: '',
|
||||||
|
rateCycle: '',
|
||||||
|
rate: '',
|
||||||
|
rateStartTime: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_initMethod: function () {
|
_initMethod: function () {
|
||||||
@ -63,6 +67,15 @@
|
|||||||
vc.component.editFeeInfo.endTime = value;
|
vc.component.editFeeInfo.endTime = value;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
vc.initDate('rateStartTime', function (_endTime) {
|
||||||
|
$that.editFeeInfo.rateStartTime = _endTime;
|
||||||
|
let start = Date.parse(new Date($that.editFeeInfo.startTime))
|
||||||
|
let end = Date.parse(new Date($that.editFeeInfo.rateStartTime))
|
||||||
|
if (start - end >= 0) {
|
||||||
|
vc.toast("递增开始时间必须大于开始时间")
|
||||||
|
$that.editFeeInfo.rateStartTime = '';
|
||||||
|
}
|
||||||
|
});
|
||||||
//防止多次点击时间插件失去焦点
|
//防止多次点击时间插件失去焦点
|
||||||
document.getElementsByClassName("form-control editFeeStartTime")[0].addEventListener('click', myfunc)
|
document.getElementsByClassName("form-control editFeeStartTime")[0].addEventListener('click', myfunc)
|
||||||
|
|
||||||
@ -134,7 +147,11 @@
|
|||||||
vc.component.editFeeInfo = {
|
vc.component.editFeeInfo = {
|
||||||
feeId: '',
|
feeId: '',
|
||||||
startTime: '',
|
startTime: '',
|
||||||
endTime: ''
|
endTime: '',
|
||||||
|
computingFormula: '',
|
||||||
|
rateCycle: '',
|
||||||
|
rate: '',
|
||||||
|
rateStartTime: ''
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -236,7 +236,10 @@
|
|||||||
feeFlag: '',
|
feeFlag: '',
|
||||||
endTime: '',
|
endTime: '',
|
||||||
computingFormula: '',
|
computingFormula: '',
|
||||||
amount: ''
|
amount: '',
|
||||||
|
rateCycle: '',
|
||||||
|
rate: '',
|
||||||
|
rateStartTime: ''
|
||||||
};
|
};
|
||||||
$that.roomCreateFeeAddInfo.feeTypeCds = _feeTypeCds;
|
$that.roomCreateFeeAddInfo.feeTypeCds = _feeTypeCds;
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user