+
在
+ {{unitLabel(form.rentalUnit)}}以内,起步价
+
+ 元;
+
+
+ 超出起步时间后,超出的时间每
+
+ {{unitLabel(form.rentalUnit)}}
+
+ 元,不满{{form.startRule.timeoutTime}}{{unitLabel(form.rentalUnit)}},按{{form.startRule.timeoutTime}}{{unitLabel(form.rentalUnit)}}计算。
+
+
+
+
+ 在
+
~
- {{unitLabel(form.rentalUnit)}}之间,
+ controls-position="right"
+ style="width: 120px;"
+ placeholder="结束"
+ :min="minEnd(index)"
+ :max="maxEnd(index)"
+ :precision="0"
+ />
+ {{unitLabel(form.rentalUnit)}}之间,
之后,
每
{{unitLabel(form.rentalUnit)}}收费
= this.form.intervalRule.length - 2 ) {
return 999999999;
} else {
- return this.form.intervalRule[index + 1].end;
+ return this.form.intervalRule[index + 1].end - 1;
}
}
},
@@ -293,7 +314,7 @@ export default {
addRidingRule(index) {
let current = this.form.intervalRule[index];
this.form.intervalRule.splice(index + 1, 0, {
- start: current.end,
+ start: null,
end: current.end + 1,
eachUnit: 1,
fee: null,
@@ -370,11 +391,13 @@ export default {
data.intervalRule.forEach((item,index) => {
if (index == 0) {
item.start = 0;
- } else if (index == data.intervalRule.length - 1) {
- item.end = null;
} else {
item.start = data.intervalRule[index - 1].end;
}
+
+ if (index == data.intervalRule.length - 1) {
+ item.end = null;
+ }
});
}
const promise = this.form.id != null ? updateSuit(data) : addSuit(data);
@@ -395,4 +418,7 @@ export default {
\ No newline at end of file