Commit e47121c3 authored by hanfeng's avatar hanfeng

Merge remote-tracking branch 'origin/base-modify' into base-modify-hf

parents 10ecfc41 1d02512a
......@@ -1450,7 +1450,7 @@ export default {
},
selectArry: [],
selectVehicleModelArray: [],
list: null,
list: [],
total: null,
listLoading: true,
listQuery: {
......@@ -1574,9 +1574,9 @@ export default {
t.listQuery.addrProvinceName = ''
}
if (queryJson.vin) {
t.listQuery.vin = queryJson.vin
}
// if (queryJson.vin) {
// t.listQuery.vin = queryJson.vin
// }
if (queryJson.insuranceCompany) {
t.listQuery.insuranceCompany = queryJson.insuranceCompany
}
......@@ -2541,7 +2541,11 @@ export default {
checkIfRuning: vehicle =>
vehicle.status === VEHICLE_CONSTANT_STATUS_NORMAL,
getVehicleStatus: function(code) {
return this.vehicleStatus[code].val
// console.log(this.getAllVehicleStatus()[1].val);
// let demo = this.getAllVehicleStatus.filter(item => item)
// console.log(this.vehicleStatus[code]);
return this.getAllVehicleStatus()[code].val
},
getAllVehicleStatus: function() {
return {
......@@ -2603,6 +2607,7 @@ export default {
return getConstantListByType(VEHICLE_CONSTANT_VEHICLE_USE)
},
getList() {
// this.listQuery.vin = null
this.listLoading = true
let listQueryTemp = this.fillDateRange2Object(
this.listQuery,
......@@ -2631,23 +2636,27 @@ export default {
if (!this.listQuery.belongToName) {
this.listQuery.belongToName = undefined
}
page(listQueryTemp).then(response => {
if (response.code == 1) {
let totalCountRs = undefined
let listRs = undefined
if (
!this.$utils.isEmpty(response.data.data) &&
this.$utils.isInteger(response.data.totalCount)
) {
listRs = response.data.data
totalCountRs = response.data.totalCount
listRs.map(function(item) {
item.visible2 = false
})
}
// if (
// !this.$utils.isEmpty(response.data.data) &&
// this.$utils.isInteger(response.data.totalCount)
// ) {
// listRs = response.data.data
// totalCountRs = response.data.totalCount
// listRs.map(function(item) {
// item.visible2 = false
// })
// }
this.listLoading = false
this.list = listRs
this.total = totalCountRs
console.log(response.data.data);
this.list = response.data.data
this.total = response.data.totalCount
} else {
this.list = []
this.listLoading = false
......
......@@ -338,6 +338,7 @@
imgTitle: undefined,
imgKeyword: undefined,
imgDesc: undefined,
coverPic:'',
pPrice: 0,//普通会员
hPrice: 0,//黄金会员
zPrice: 0,//钻石会员
......@@ -354,7 +355,8 @@
rentDiscountStatus: "0",//租车优惠状态 0--没有优惠;1--会员折扣;2--固定值
rentDiscountPrice: 0,//租车优惠价格 固定优化价格
buyPrice: 0,//购买价格
intro: ''
intro: '',
posterBackground: '',//海报背景
},
showDestinationVisible: false,//编辑目的地
showPathWayVisible: false,//编辑途径地
......@@ -928,24 +930,31 @@
cleanForm() {
this.activeName2 = "";
this.form = {
name: undefined,//房车名称
config: "",//房车配置
keyword: "",//房车关键标签
modelsDetails: "",//房车详情
modelParam: [],//房车参数
picture: "",//轮播图
price: 0,//租车价格
deposit: 20000,//总押金
vioDeposit: 0,//违章押金
hotSign: "2",//热门车型 1、热门 2、非热门
rentDiscountStatus: "0",//租车优惠状态 0--没有优惠;1--会员折扣;2--固定值
rentDiscountPrice: "",//租车优惠价格 固定优化价格
buyPrice: 0,//购买价格
posterBackground: '',//海报背景
alt: '',
imgTitle: undefined,
imgKeyword: undefined,
imgDesc: undefined,
number: undefined,//乘卧数量
brand: undefined,//房车品牌
name: '',//房车名称
config:'',//房车配置
keyword: '',//房车关键标签
modelsDetails: '',//房车详情
modelParam: '',//房车参数
picture: '',//轮播图
coverPic: '',//封面图
posterBackground: '',//海报背景
price: undefined,//租车价格
deposit: 20000,//总押金
vioDeposit: '',
rentDiscountStatus: 0,//租车优惠状态 0--没有优惠;1--会员折扣;2--固定值
buyPrice: undefined,//购买价格
alt: '',//seo 标签优化
intro: '',
imgTitle: '',
imgKeyword: '',
imgDesc: '',
pPrice: 0,//普通会员
hPrice: 0,//黄金会员
zPrice: 0,//钻石会员
hotSign: "2",//热门车型 1、热门 2、非热门
rentDiscountPrice: 0,//租车优惠价格 固定优化价格
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment