优化代码

This commit is contained in:
wuxw 2022-06-30 01:32:01 +08:00
parent bd028aae7a
commit 81f3ca9903
5 changed files with 9 additions and 6 deletions

View File

@ -216,6 +216,7 @@
if (vc.component.addFeeConfigInfo.computingFormula == '7007' ||
vc.component.addFeeConfigInfo.computingFormula == '4004' ||
vc.component.addFeeConfigInfo.computingFormula == '1101' ||
vc.component.addFeeConfigInfo.computingFormula == '1102' ||
vc.component.addFeeConfigInfo.computingFormula == '9009') {
vc.component.addFeeConfigInfo.squarePrice = "0.00";
vc.component.addFeeConfigInfo.additionalAmount = "0.00";

View File

@ -218,6 +218,7 @@
if (vc.component.editFeeConfigInfo.computingFormula == '7007' ||
vc.component.editFeeConfigInfo.computingFormula == '4004' ||
vc.component.editFeeConfigInfo.computingFormula == '1101' ||
vc.component.editFeeConfigInfo.computingFormula == '1102' ||
vc.component.editFeeConfigInfo.computingFormula == '9009') {
vc.component.editFeeConfigInfo.squarePrice = "0.00";
vc.component.editFeeConfigInfo.additionalAmount = "0.00";

View File

@ -155,19 +155,19 @@
<div class="form-group row" v-show="roomCreateFeeAddInfo.computingFormula == '1102'">
<label class="col-sm-2 col-form-label"><span><vc:i18n name="递增周期" namespace="roomCreateFeeAdd"></vc:i18n></span></label>
<div class="col-sm-10">
<input v-model="roomCreateFeeAddInfo.rateCycle" type="text" :placeholder="vc.i18n('必填,请填写递增周期,请填写月份','roomCreateFeeAdd')" class="form-control roomCreateFeeEndTime">
<input v-model="roomCreateFeeAddInfo.rateCycle" type="text" :placeholder="vc.i18n('必填,请填写递增周期,请填写月份','roomCreateFeeAdd')" class="form-control ">
</div>
</div>
<div class="form-group row" v-show="roomCreateFeeAddInfo.computingFormula == '1102'">
<label class="col-sm-2 col-form-label"><span><vc:i18n name="计费递增率" namespace="roomCreateFeeAdd"></vc:i18n></span></label>
<div class="col-sm-10">
<input v-model="roomCreateFeeAddInfo.rate" type="text" :placeholder="vc.i18n('必填,请填写递增率','roomCreateFeeAdd')" class="form-control roomCreateFeeEndTime">
<input v-model="roomCreateFeeAddInfo.rate" type="text" :placeholder="vc.i18n('必填,请填写递增率','roomCreateFeeAdd')" class="form-control ">
</div>
</div>
<div class="form-group row" v-show="roomCreateFeeAddInfo.computingFormula == '1102'">
<label class="col-sm-2 col-form-label"><span><vc:i18n name="递增开始时间" namespace="roomCreateFeeAdd"></vc:i18n></span></label>
<div class="col-sm-10">
<input v-model="roomCreateFeeAddInfo.rateStartTime" type="text" :placeholder="vc.i18n('必填,请填写递增开始时间','roomCreateFeeAdd')" class="form-control roomRateStartTime">
<input v-model="roomCreateFeeAddInfo.rateStartTime" type="text" :placeholder="vc.i18n('必填,请填写递增开始时间','roomCreateFeeAdd')" class="form-control addRoomRateStartTime">
</div>
</div>
<div class="ibox-content">

View File

@ -97,8 +97,9 @@
}
});
vc.initDate('rateStartTime', function(_endTime) {
$that.roomCreateFeeAddInfo.rateStartTime = _endTime;
vc.initDate('addRoomRateStartTime', function(_rateStartTime) {
console.log(_rateStartTime)
$that.roomCreateFeeAddInfo.rateStartTime = _rateStartTime;
let start = Date.parse(new Date($that.roomCreateFeeAddInfo.startTime))
let end = Date.parse(new Date($that.roomCreateFeeAddInfo.rateStartTime))
if (start - end >= 0) {

View File

@ -1761,7 +1761,7 @@
});
$('.' + _dateStr).datetimepicker()
.on('changeDate', function(ev) {
var value = $('.' + _dateStr).val();
let value = $('.' + _dateStr).val();
//vc.component.addFeeConfigInfo.startTime = value;
_callBack(value);
});