|
@@ -261,11 +261,16 @@
|
|
|
|
|
|
API.submitParkingApply(this.detail ).then(response => {
|
|
|
this.isLoading = false;
|
|
|
- this.$router.push({
|
|
|
- name: 'Master',
|
|
|
- })
|
|
|
- mui.toast("操作成功");
|
|
|
- }).catch(error => {
|
|
|
+ var _this=this;
|
|
|
+
|
|
|
+ mui.alert('您的车位申请信息已提交,请等待物业确认。', ' ', function() {
|
|
|
+ // _this.$router.push({
|
|
|
+ // name: 'Master',
|
|
|
+ // })
|
|
|
+ _this.getDetail()
|
|
|
+ });
|
|
|
+
|
|
|
+ }).catch(error => {
|
|
|
this.isLoading = false;
|
|
|
mui.toast(error);
|
|
|
})
|
|
@@ -367,12 +372,7 @@
|
|
|
this.isLoading = true;
|
|
|
|
|
|
API.parkingUnit().then(response => {
|
|
|
- if(!response.unit){
|
|
|
- mui.toast('未配置租用单位,请联系管理员');
|
|
|
- }else{
|
|
|
- this.detail.unitId=response.unit.id;
|
|
|
- this.unitName=response.unit.name;
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
this.isLoading = false;
|
|
|
if(response.id){
|
|
@@ -388,6 +388,12 @@
|
|
|
mui.toast(error);
|
|
|
})
|
|
|
mui.toast("您已有一条待处理的车位申请记录");
|
|
|
+ if(!response.unit){
|
|
|
+ mui.toast('未配置租用单位,请联系管理员');
|
|
|
+ }else{
|
|
|
+ this.detail.unitId=response.unit.id;
|
|
|
+ this.unitName=response.unit.name;
|
|
|
+ }
|
|
|
}
|
|
|
}).catch(error => {
|
|
|
this.isLoading = false;
|