|
@@ -822,7 +822,7 @@ export default {
|
|
lbsId: this.mallId
|
|
lbsId: this.mallId
|
|
})
|
|
})
|
|
// 获取用户的所有车牌
|
|
// 获取用户的所有车牌
|
|
- const userVehicles = await getVehicles(this.kipUserId)
|
|
|
|
|
|
+ // const userVehicles = await getVehicles(this.kipUserId)
|
|
if (!vehicles.length) {
|
|
if (!vehicles.length) {
|
|
throw new Error('设置默认参数')
|
|
throw new Error('设置默认参数')
|
|
// vehicles = userVehicles.content
|
|
// vehicles = userVehicles.content
|
|
@@ -831,7 +831,7 @@ export default {
|
|
// 判断是否存在无牌车
|
|
// 判断是否存在无牌车
|
|
const vehicleNo = vehicles[0].vehicleNo
|
|
const vehicleNo = vehicles[0].vehicleNo
|
|
// 设置车牌类型
|
|
// 设置车牌类型
|
|
- this.setVehicleNoType(vehicleNo, userVehicles.content)
|
|
|
|
|
|
+ this.setVehicleNoType(vehicleNo, vehicles)
|
|
// 赋值
|
|
// 赋值
|
|
this.numArr = vehicles[0].vehicleNo.split('');
|
|
this.numArr = vehicles[0].vehicleNo.split('');
|
|
this.vehicleNumber = vehicles[0].vehicleNo;
|
|
this.vehicleNumber = vehicles[0].vehicleNo;
|
|
@@ -847,6 +847,9 @@ export default {
|
|
this.isUnlicensed(vehicles)
|
|
this.isUnlicensed(vehicles)
|
|
const item = vehicles.filter(e => e.vehicleNo === vehicleNo)
|
|
const item = vehicles.filter(e => e.vehicleNo === vehicleNo)
|
|
if(item.length) {
|
|
if(item.length) {
|
|
|
|
+ if(item[0].vehicleNo.indexOf('临') > -1) {
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
let label = LICENSE_PLATE_TYPE_ARR.filter(e => e.value == item[0].licensePlateType)
|
|
let label = LICENSE_PLATE_TYPE_ARR.filter(e => e.value == item[0].licensePlateType)
|
|
const index = ['燃油车牌', '新能源', '特殊车牌'].indexOf(label[0].name)
|
|
const index = ['燃油车牌', '新能源', '特殊车牌'].indexOf(label[0].name)
|
|
this.$refs['k-tab'].changeTab(index)
|
|
this.$refs['k-tab'].changeTab(index)
|
|
@@ -857,7 +860,8 @@ export default {
|
|
isUnlicensed(vehicles) {
|
|
isUnlicensed(vehicles) {
|
|
const unlicensed = vehicles.filter(elm => elm.vehicleNo.indexOf('临') > -1)
|
|
const unlicensed = vehicles.filter(elm => elm.vehicleNo.indexOf('临') > -1)
|
|
if(unlicensed.length) {
|
|
if(unlicensed.length) {
|
|
- this.tabbarActive = '无牌缴费'
|
|
|
|
|
|
+ this.tabbarActiveEvent('无牌缴费');
|
|
|
|
+ // this.tabbarActive = '无牌缴费'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
setLicensePlateList(arr) {
|
|
setLicensePlateList(arr) {
|