|
|
@ -14,8 +14,8 @@ |
|
|
|
<div v-show="isSearchShow" class="search"> |
|
|
|
<el-form ref="listQueryform" :model="listQuery" label-width="100px" :inline="true" class="tab-header"> |
|
|
|
<el-form-item label="品牌"> |
|
|
|
<el-select v-model="listQuery.params.carbrand" class="addinputw" placeholder="请选择" @change="changeCarbrand"> |
|
|
|
<el-option v-for="(item, index) in carbrand_list" :key="index.dictKey" :label="item.dictValue" :value="item.dictKey"/> |
|
|
|
<el-select v-model="listQuery.params.brandSid" class="addinputw" placeholder="请选择"> |
|
|
|
<el-option v-for="item in carbrand_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="功能"> |
|
|
@ -30,12 +30,12 @@ |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="变速箱"> |
|
|
|
<el-select v-model="listQuery.params.gearboxType" class="addinputw" clearable placeholder="请选择"> |
|
|
|
<el-option v-for="(item,index) in gearboxType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/> |
|
|
|
<el-option v-for="item in gearboxType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="驱动"> |
|
|
|
<el-select v-model="listQuery.params.driveForm" class="addinputw" clearable placeholder="请选择"> |
|
|
|
<el-option v-for="(item,index) in driveForm_list" :key="index" :label="item.dictValue" :value="item.dictKey"/> |
|
|
|
<el-option v-for="item in driveForm_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="排放标准"> |
|
|
@ -45,17 +45,17 @@ |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="马力"> |
|
|
|
<el-select v-model="listQuery.params.power" class="addinputw" clearable placeholder="请选择"> |
|
|
|
<el-option v-for="(item,index) in power_list" :key="index" :label="item.dictValue" :value="item.dictKey"/> |
|
|
|
<el-option v-for="item in power_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="燃料"> |
|
|
|
<el-select v-model="listQuery.params.fuelType" class="addinputw" clearable placeholder="请选择"> |
|
|
|
<el-option v-for="(item,index) in fuelType_list" :key="index" :label="item.dictValue" :value="item.dictKey"/> |
|
|
|
<el-option v-for="item in fuelType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="版本"> |
|
|
|
<el-select v-model="listQuery.params.vehicleVersion" class="addinputw" clearable placeholder="请选择"> |
|
|
|
<el-option v-for="(item,index) in vehicleVersion_list" :key="index" :label="item.dictValue" :value="item.dictKey"/> |
|
|
|
<el-option v-for="item in vehicleVersion_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
@ -151,10 +151,10 @@ export default { |
|
|
|
listLoading: false, |
|
|
|
listQuery: { |
|
|
|
current: 1, |
|
|
|
size: 10, |
|
|
|
size: 5, |
|
|
|
total: 0, |
|
|
|
params: { |
|
|
|
carbrand: '', |
|
|
|
brandSid: '', |
|
|
|
driveForm: '', |
|
|
|
emissionStandard: '', |
|
|
|
fuelType: '', |
|
|
@ -166,7 +166,7 @@ export default { |
|
|
|
vehicleType: '', |
|
|
|
vehicleVersion: '', |
|
|
|
vinNoList: [], |
|
|
|
userSid: window.sessionStorage.getItem('userSid') |
|
|
|
userSid: '' |
|
|
|
} |
|
|
|
}, |
|
|
|
selectDate: undefined, |
|
|
@ -190,25 +190,20 @@ export default { |
|
|
|
}, |
|
|
|
// 重置 |
|
|
|
handleReset() { |
|
|
|
this.listQuery = { |
|
|
|
current: 1, |
|
|
|
size: 20, |
|
|
|
params: { |
|
|
|
carbrand: '', |
|
|
|
driveForm: '', |
|
|
|
emissionStandard: '', |
|
|
|
fuelType: '', |
|
|
|
gearboxType: '', |
|
|
|
lockedState: '', |
|
|
|
power: '', |
|
|
|
productLine: '', |
|
|
|
vehicleState: '', |
|
|
|
vehicleType: '', |
|
|
|
vehicleVersion: '', |
|
|
|
vinNoList: [], |
|
|
|
userSid: '' |
|
|
|
} |
|
|
|
} |
|
|
|
this.listQuery.current = 1 |
|
|
|
this.listQuery.total = 0 |
|
|
|
this.listQuery.size = 5 |
|
|
|
this.listQuery.params.brandSid = '' |
|
|
|
this.listQuery.params.driveForm = '' |
|
|
|
this.listQuery.params.emissionStandard = '' |
|
|
|
this.listQuery.params.fuelType = '' |
|
|
|
this.listQuery.params.gearboxType = '' |
|
|
|
this.listQuery.params.lockedState = '' |
|
|
|
this.listQuery.params.power = '' |
|
|
|
this.listQuery.params.productLine = '' |
|
|
|
this.listQuery.params.vehicleState = '' |
|
|
|
this.listQuery.params.vehicleType = '' |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
// 勾选 |
|
|
|
handleSelectionChange(row) { |
|
|
@ -302,22 +297,6 @@ export default { |
|
|
|
console.log('下拉框请求版本', res.data) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
changeCarbrand(value) { |
|
|
|
let bb = {} |
|
|
|
this.carbrand_list.forEach((e) => { |
|
|
|
// eslint-disable-next-line eqeqeq |
|
|
|
if (e.dictKey == value) { |
|
|
|
bb = { |
|
|
|
name: e.dictValue, |
|
|
|
key: e.dictKey, |
|
|
|
sid: e.sid |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
this.listQuery.params.carbrand = bb.name |
|
|
|
console.log('name', this.listQuery.params.carbrand) |
|
|
|
}, |
|
|
|
// 确认 |
|
|
|
handleConfirm() { |
|
|
@ -326,7 +305,7 @@ export default { |
|
|
|
console.log('已选择的数据', this.vinNoList) |
|
|
|
for (var i = 0; i < this.vinNoList.length; i++) { |
|
|
|
for (var j = 0; j < this.depositVehicleList.length; j++) { |
|
|
|
if (this.vinNoList[i] == this.depositVehicleList[j].vinNo) { |
|
|
|
if (this.vinNoList[i] === this.depositVehicleList[j].vinNo) { |
|
|
|
const index = this.depositVehicleList.findIndex(val => { |
|
|
|
return this.depositVehicleList[j].vinNo === this.vinNoList[i] |
|
|
|
}) |
|
|
@ -335,7 +314,6 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
this.$emit('handleVehicle', this.depositVehicleList) |
|
|
|
this.$nextTick(() => { |
|
|
@ -365,6 +343,7 @@ export default { |
|
|
|
// 查询列表信息 |
|
|
|
getList() { |
|
|
|
this.listLoading = true |
|
|
|
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid') |
|
|
|
req.pagerList(this.listQuery).then((response) => { |
|
|
|
console.log('列表查询结果:', response) |
|
|
|
this.listLoading = false |
|
|
@ -385,6 +364,7 @@ export default { |
|
|
|
// 排除已选信息 |
|
|
|
loadVinNo(vinNoList) { |
|
|
|
this.listQuery.params.vinNoList = vinNoList |
|
|
|
this.getType() |
|
|
|
this.getList() |
|
|
|
} |
|
|
|
} |
|
|
|