|
@@ -78,7 +78,9 @@
|
|
<form class="mui-input-group">
|
|
<form class="mui-input-group">
|
|
<div class="mui-input-row">
|
|
<div class="mui-input-row">
|
|
<label>选择车位</label>
|
|
<label>选择车位</label>
|
|
- <button class="mui-btn mui-btn-block mui-navigate-right" type='button' style="width:65%" @click="selectCar" v-text="carName">请选择</button>
|
|
|
|
|
|
+ <button class="mui-btn mui-btn-block mui-navigate-right" type='button' style="width:65%;color: red" v-if="!number" @click="selectCar" >暂无车位</button>
|
|
|
|
+
|
|
|
|
+ <button class="mui-btn mui-btn-block mui-navigate-right" type='button' style="width:65%" @click="selectCar" v-if="number" v-text="carName">请选择</button>
|
|
</div>
|
|
</div>
|
|
<div class="mui-input-row">
|
|
<div class="mui-input-row">
|
|
<label>开始时间</label>
|
|
<label>开始时间</label>
|
|
@@ -133,11 +135,10 @@
|
|
|
|
|
|
<template v-for="m in map.get(cen)">
|
|
<template v-for="m in map.get(cen)">
|
|
|
|
|
|
- <li class="mui-table-view-cell " @click="ckbtn(m,i,cen)" v-if="m.enableLease" :class="m.show?'mui-selected':''">
|
|
|
|
|
|
+ <li class="mui-table-view-cell " @click="ckbtn(m,i,cen)" v-if="m.enableLease&&(m.number==null||m.number!=0)" :class="m.show?'mui-selected':''">
|
|
<span v-show="false">{{tempi=1}}</span>
|
|
<span v-show="false">{{tempi=1}}</span>
|
|
- <a>
|
|
|
|
- {{m.parkingName}}
|
|
|
|
- </a>
|
|
|
|
|
|
+ <a>{{m.parkingName}}</a>
|
|
|
|
+ <span v-if="m.number" style="font-size: 1px;color: red;position: relative;top: -30px;left: 27px;">({{m.number}})</span>
|
|
</li>
|
|
</li>
|
|
|
|
|
|
</template>
|
|
</template>
|
|
@@ -204,6 +205,7 @@ export default {
|
|
listcenindex: 0,
|
|
listcenindex: 0,
|
|
selectName: '',
|
|
selectName: '',
|
|
parkingId: '',
|
|
parkingId: '',
|
|
|
|
+ number:0,
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -320,11 +322,25 @@ export default {
|
|
},
|
|
},
|
|
//选择停车位
|
|
//选择停车位
|
|
selectCar() {
|
|
selectCar() {
|
|
- this.step = 2;
|
|
|
|
- if (!this.picList) {
|
|
|
|
- this.getPic();
|
|
|
|
|
|
+ if(!this.number){
|
|
|
|
+ var _this =this;
|
|
|
|
+ var btnArray = ['返回', '联系物业'];
|
|
|
|
+ mui.confirm('抱歉!您的小区当前暂无车位可供租用,如有疑问请联系物业', '提示', btnArray, function(e) {
|
|
|
|
+ if (e.index == 1) {
|
|
|
|
+ _this.$router.push({
|
|
|
|
+ name: 'MasterPropertyContact',
|
|
|
|
+ query: {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }else{
|
|
|
|
+ this.step = 2;
|
|
|
|
+ if (!this.picList) {
|
|
|
|
+ this.getPic();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
-
|
|
|
|
},
|
|
},
|
|
//获取详情
|
|
//获取详情
|
|
getPic() {
|
|
getPic() {
|
|
@@ -389,6 +405,7 @@ export default {
|
|
API.parkingUnit().then(response => {
|
|
API.parkingUnit().then(response => {
|
|
|
|
|
|
this.isLoading = false;
|
|
this.isLoading = false;
|
|
|
|
+ this.number=response.number
|
|
if (response.id) {
|
|
if (response.id) {
|
|
this.issubmit = false;
|
|
this.issubmit = false;
|
|
this.isLoading = true;
|
|
this.isLoading = true;
|