|
@@ -76,7 +76,7 @@
|
|
|
<el-select
|
|
|
placeholder="请选择车牌类型"
|
|
|
clearable
|
|
|
- v-model="formDate.carType"
|
|
|
+ v-model="formDate.carTypes"
|
|
|
>
|
|
|
<el-option
|
|
|
label="临时车"
|
|
@@ -392,6 +392,7 @@
|
|
|
|
|
|
|
|
|
<script>
|
|
|
+import { parse } from 'path';
|
|
|
import native from './native.vue'
|
|
|
export default {
|
|
|
props: ['params'],
|
|
@@ -399,14 +400,15 @@ export default {
|
|
|
return {
|
|
|
formDate: {
|
|
|
userName: '',
|
|
|
- tel: '17688920088',
|
|
|
+ // tel: '17688920088',
|
|
|
+ tel: '',
|
|
|
residentId: '',
|
|
|
remark: '',
|
|
|
carType: '',
|
|
|
+ carTypes: '',
|
|
|
ruleId: '',
|
|
|
beginTime: '',
|
|
|
parkId: '',
|
|
|
- beginTime: '',
|
|
|
id: '',
|
|
|
sort: ''
|
|
|
},
|
|
@@ -607,6 +609,7 @@ export default {
|
|
|
// 充值规则
|
|
|
rechargeRules () {
|
|
|
// /sc-community-web/parkingCar/queryRechargeRules
|
|
|
+ this.recharge = []
|
|
|
this.$http
|
|
|
.get('/sc-community-web/parkingCar/queryRechargeRules', { carType: this.formDate.carType, parkingId: this.formDate.parkId })
|
|
|
.then(({ data, msg, status }) => {
|
|
@@ -625,10 +628,9 @@ export default {
|
|
|
parkingLotes () {
|
|
|
if (this.nameParkingLotName.length == 0) {
|
|
|
this.$message.error('请选择停车场');
|
|
|
- } else if (this.formDate.carType.length == 0) {
|
|
|
+ } else if (this.formDate.carTypes.length == 0) {
|
|
|
this.$message.error('请选择车牌类型');
|
|
|
} else {
|
|
|
- debugger
|
|
|
this.rechargeRules();
|
|
|
}
|
|
|
},
|
|
@@ -765,7 +767,6 @@ export default {
|
|
|
},
|
|
|
// 获取可停区域
|
|
|
parking () {
|
|
|
- debugger
|
|
|
if (this.formDate.parkId.length == 0) {
|
|
|
this.$message.error('请输选择停车场');
|
|
|
} else {
|
|
@@ -774,6 +775,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
region () {
|
|
|
+ debugger
|
|
|
this.$http.post('/sc-community-web/parkingCar/findAreaInfo', { parkId: this.formDate.parkId }).then(({ data, status, msg }) => {
|
|
|
this.eloption = [];
|
|
|
for (let i = 0; i < data.length; i++) {
|
|
@@ -825,7 +827,6 @@ export default {
|
|
|
this.plateNoInfo.push((this.parkingSpaceSetting[k].licensePlate + this.parkingSpaceSetting[k].license));
|
|
|
|
|
|
for (let j = 0; j < table.length; j++) {
|
|
|
- debugger
|
|
|
table[j].lotName = this.parkingSpaceSetting[k].license;
|
|
|
table[j].carType = this.formDate.carType;
|
|
|
|
|
@@ -840,7 +841,7 @@ export default {
|
|
|
houseId: this.formDate.residentId,
|
|
|
residentId: this.formDate.id,
|
|
|
remark: this.formDate.remark,
|
|
|
- cardType: this.formDate.carType,
|
|
|
+ cardType: this.formDate.carTypes,
|
|
|
beginTime: this.formDate.beginTime,
|
|
|
parkId: this.formDate.parkId,
|
|
|
|
|
@@ -854,14 +855,76 @@ export default {
|
|
|
|
|
|
|
|
|
}).then(({ data, status, msg }) => {
|
|
|
+ this.params.callback();
|
|
|
})
|
|
|
- this.params.callback();
|
|
|
this.$emit('close');
|
|
|
-
|
|
|
},
|
|
|
},
|
|
|
created () {
|
|
|
this.nameParking();
|
|
|
+
|
|
|
+
|
|
|
+ this.params.cardId;
|
|
|
+ this.$http.get('/sc-community-web/parkingCar/getVehicleInfor', { id: this.params.cardId }).then(({ data, msg, status }) => {
|
|
|
+ console.log(data);
|
|
|
+ this.formDate.userName = data.userName
|
|
|
+ this.formDate.tel = data.tel
|
|
|
+ this.formDate.resDate = data.houseId
|
|
|
+ this.formDate.remark = data.remark
|
|
|
+ this.formDate.carTypes = data.cardType == 0 ? '临时车'
|
|
|
+ : data.cardType == 1 ? 'VIP车'
|
|
|
+ : data.cardType == 2 ? '月租车'
|
|
|
+ : data.cardType == 3 ? '充时车'
|
|
|
+ : data.cardType == 4 ? '时租车'
|
|
|
+ : data.cardType == 5 ? '产全车'
|
|
|
+ : data.cardType == 6 ? '计次车'
|
|
|
+ : data.cardType == 7 ? '贵宾卡'
|
|
|
+ : '员工卡'
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ this.nameParkingLotName = '1';//随便
|
|
|
+
|
|
|
+ this.formDate.beginTime = data.beginTime
|
|
|
+ this.formDate.parkId = data.parkId
|
|
|
+ var carLotStr = JSON.parse(data.carLotStr)
|
|
|
+ for (let i = 0; i < carLotStr.length; i++) {
|
|
|
+ debugger
|
|
|
+ // this.tableData[i].parkingArea = carLotStr[i].areaId
|
|
|
+ this.tableData[i].areaName = carLotStr[i].areaName
|
|
|
+ this.tableData[i].carType = data.cardType
|
|
|
+ this.tableData[i].lotCount = carLotStr[i].lotCount
|
|
|
+ this.tableData[i].positionInformation = carLotStr[i].lotName
|
|
|
+ // this.formDate.ruleId = carLotStr.ruleId
|
|
|
+ this.formDate.sort = carLotStr.sequence
|
|
|
+ }
|
|
|
+ for (let k = 0; k < data.parkCarDetails.length; k++) {
|
|
|
+ this.parkingSpaceSetting[k].licensePlate = (data.fullCarNoStr).substr(0, 1)
|
|
|
+ this.parkingSpaceSetting[k].license = (data.fullCarNoStr).substr(1)
|
|
|
+ this.parkingSpaceSetting[k].state = data.parkCarDetails[k].enable == 0 ? '启用' : '禁用'
|
|
|
+ this.parkingSpaceSetting[k].remarks = data.parkCarDetails[k].remark
|
|
|
+
|
|
|
+ this.formDate.carType = data.cardType
|
|
|
+ this.form[k].vehicleColor = data.parkCarDetails[k].carNoColor
|
|
|
+ this.form[k].vehicleColors = data.parkCarDetails[k].carColor
|
|
|
+ this.form[k].vehicleBrand = data.parkCarDetails[k].carBrand
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ this.rechargeRules();
|
|
|
+ this.nameParking();
|
|
|
+ this.region();
|
|
|
+
|
|
|
+
|
|
|
+ for (let i = 0; i < carLotStr.length; i++) {
|
|
|
+ this.tableData[i].parkingArea = Number(carLotStr[i].areaId)
|
|
|
+ this.formDate.ruleId = carLotStr.ruleId
|
|
|
+ }
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|