Browse Source

业务管理(车型库、车型配置以及销售订单关联的车型库和车型配置)

master
Zhao Qiqi 3 years ago
parent
commit
59e7552805
  1. 13
      anrui-buscenter/anrui-buscenter-ui/src/api/chexingchaxun/modelinquire.js
  2. 209
      anrui-buscenter/anrui-buscenter-ui/src/views/chexingchaxun/modelinquire/modellibrary.vue
  3. 77
      anrui-buscenter/anrui-buscenter-ui/src/views/chexingchaxun/modelinquire/vehiclelibraryconfiguration.vue
  4. 320
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/relation/modellibrary.vue
  5. 58
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/relation/vehiclelibraryconfiguration.vue

13
anrui-buscenter/anrui-buscenter-ui/src/api/chexingchaxun/modelinquire.js

@ -1,9 +1,11 @@
import request from '@/utils/request'
// 车型库
// 根据条件分页查询数据的列表(车型)
export function modelPageList(data) {
return request({
url: '/base/v1/basevehiclemodel/modelPageList',
// url: '/base/v1/basevehiclemodel/modelPageList', // 旧接口
url: '/base/v1/basevehicle/getModelList',
method: 'post',
data: data,
headers: {
@ -31,6 +33,15 @@ export function dataDictionary(data) {
params: data
})
}
// 根据登陆人sid查询分公司 (孟哲写的接口)
export function getPathSidByUserSid(data) {
return request({
url: '/portal/v1/sysstafforg/getPathSidByUserSid',
method: 'get',
params: data
})
}
// 品牌下拉
export function brandDown(data) {
return request({

209
anrui-buscenter/anrui-buscenter-ui/src/views/chexingchaxun/modelinquire/modellibrary.vue

@ -12,81 +12,76 @@
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header">
<el-row>
<el-form-item label="品牌:" class="searchlist">
<el-select v-model="listQuery.params.carBrand" placeholder="请选择" filterable clearable>
<el-option v-for="item in carBrand_list" :key="item.sid" :label="item.brandName" :value="item.sid"/>
<el-select v-model="listQuery.params.brand" placeholder="请选择" filterable clearable>
<el-option v-for="item in carBrand_list" :key="item.sid" :label="item.brandName" :value="item.brandName"/>
</el-select>
</el-form-item>
<el-form-item label="功能:" class="searchlist">
<el-select v-model="listQuery.params.vehicleType" placeholder="请选择" filterable clearable>
<el-option v-for="item in vehicleType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
<el-select v-model="listQuery.params.vehicleFunction" placeholder="请选择" filterable clearable>
<el-option v-for="item in vehicleType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
<el-form-item label="系列:" class="searchlist">
<el-form-item label="系列:" class="searchlist"> <!-- 接口上无此请求参数但原型上有 -->
<el-select v-model="listQuery.params.productLine" placeholder="请选择" filterable clearable>
<el-option v-for="item in productLine_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
<el-option v-for="item in productLine_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
<el-form-item label="驱动:" class="searchlist">
<el-select v-model="listQuery.params.driveForm" placeholder="请选择" filterable clearable>
<el-option v-for="item in driveForm_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
<el-select v-model="listQuery.params.driver" placeholder="请选择" filterable clearable>
<el-option v-for="item in driveForm_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
<el-form-item label="马力:" class="searchlist">
<el-select v-model="listQuery.params.power" placeholder="请选择" filterable clearable>
<el-option v-for="item in power_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
<el-select v-model="listQuery.params.horsepower" placeholder="请选择" filterable clearable>
<el-option v-for="item in power_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
<el-form-item label="版本:" class="searchlist">
<el-select v-model="listQuery.params.vehicleVersion" placeholder="请选择" filterable clearable>
<el-option v-for="item in vehicleVersion_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
<el-option v-for="item in vehicleVersion_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="燃料:" class="searchlist">
<el-select v-model="listQuery.params.fuelType" placeholder="请选择" filterable clearable>
<el-option v-for="item in fuelType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
<el-option v-for="item in fuelType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
<el-form-item label="车型编码:" class="searchlist">
<el-input v-model="listQuery.params.applyName" placeholder="" clearable style="width: 150px"/>
</el-form-item>
<!-- <el-form-item label="车型编码:" class="searchlist">&lt;!&ndash; 接口上无此请求参数但原型上有 &ndash;&gt;-->
<!-- <el-input v-model="listQuery.params.applyName" placeholder="" clearable style="width: 150px"/>-->
<!-- </el-form-item>-->
<el-form-item label="变速箱:" class="searchlist">
<el-select v-model="listQuery.params.gearboxType" placeholder="请选择" filterable clearable>
<el-option v-for="item in gearboxType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
<el-select v-model="listQuery.params.gearbox" placeholder="请选择" filterable clearable>
<el-option v-for="item in gearboxType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
<el-form-item label="排放标准:" class="searchlist">
<el-select v-model="listQuery.params.emissionStandard" placeholder="请选择" filterable clearable>
<el-option v-for="item in emissionStandard_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
<el-option v-for="item in emissionStandard_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
<el-form-item label="发动机型号:" class="searchlist">
<el-form-item label="发动机型号:" class="searchlist"><!-- 接口上无此请求参数但原型上有 -->
<el-select v-model="listQuery.params.engineType" placeholder="请选择" filterable clearable>
<el-option v-for="item in engineType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
<el-option v-for="item in engineType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
<el-form-item label="细分市场:" class="searchlist">
<el-form-item label="细分市场:" class="searchlist"><!-- 无作用请求参数 -->
<el-select v-model="listQuery.params.marketSegments" placeholder="请选择" filterable clearable>
<el-option v-for="item in marketSegments_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
<el-option v-for="item in marketSegments_list" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="规格型号:" class="searchlist">
<el-input v-model="listQuery.params.specifications" placeholder="" clearable style="width: 150px"/>
</el-form-item>
<el-form-item label="快捷检索:" class="searchlist">
<el-input v-model="listQuery.params.modelName" placeholder="" clearable style="width: 150px"/>
</el-form-item>
</el-row>
<div class="searchbtns">
<el-button type="primary" @click="handleFilter">查询</el-button>
<el-button type="primary" @click="handReset">重置</el-button>
</div>
<el-form-item label="规格型号:" class="searchlist">
<el-input v-model="listQuery.params.specifications" placeholder="" clearable style="width: 150px"/>
</el-form-item>
<el-form-item label="快捷检索:" class="searchlist">
<el-input v-model="listQuery.params.name" placeholder="" clearable style="width: 150px"/>
</el-form-item>
</el-form>
<div class="btn">
<el-button type="primary" @click="handleFilter">查询</el-button>
<el-button type="primary" @click="handReset">重置</el-button>
</div>
</div>
</div>
<div class="listtop">
@ -96,47 +91,52 @@
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%">
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column label="品牌" align="center">
<el-table-column width="120px" label="品牌" align="center">
<template slot-scope="scope">
<span>{{ scope.row.brandName }}</span>
</template>
</el-table-column>
<el-table-column label="车型" align="center">
<template slot-scope="scope">
<span class="bluezi" @click="handlink(scope.row)">{{ scope.row.vehicleAlias }}</span>
<span class="bluezi" @click="handlink(scope.row)">{{ scope.row.modelName }}</span>
</template>
</el-table-column>
<el-table-column label="版本" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vehicleVersionValue }}</span>
<el-table-column width="100px" label="版本" align="center">
<template slot-scope="scope"> <!-- vehicleVersionValue-->
<span>{{ scope.row.versionValue }}</span>
</template>
</el-table-column>
<el-table-column label="燃料" align="center">
<el-table-column width="100px" label="燃料" align="center">
<template slot-scope="scope">
<span>{{ scope.row.fuelTypeValue }}</span>
</template>
</el-table-column>
<el-table-column label="变速箱" align="center">
<el-table-column width="100px" label="变速箱" align="center">
<template slot-scope="scope">
<span>{{ scope.row.gearboxTypeValue }}</span>
</template>
</el-table-column>
<el-table-column label="销售指导价(万元)" align="center">
<el-table-column width="150px" label="销售指导价(万元)" align="center">
<template slot-scope="scope">
<span>{{ scope.row.guidedPrice }}</span>
</template>
</el-table-column>
<el-table-column label="现车" align="center">
<el-table-column width="100px" label="车型图片" align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="handlookImg(scope.row)">查看</el-button>
</template>
</el-table-column>
<el-table-column width="110px" label="现车" align="center">
<template slot-scope="scope">
<span>{{ scope.row.nowCarNum }}</span>
</template>
</el-table-column>
<el-table-column label="排产" align="center">
<el-table-column width="110px" label="排产" align="center">
<template slot-scope="scope">
<span>{{ scope.row.productionCarNum }}</span>
<span>{{ scope.row.produceCarNum }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center">
<el-table-column width="100px" label="其他更多" align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="handlook(scope.row)">查看</el-button>
</template>
@ -145,16 +145,23 @@
</div>
<div class="pages">
<!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current"
:limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
</div>
</div>
<!-- 查看车型照片弹窗 -->
<el-dialog title="查看" :visible.sync="dialogImgVisible">
<el-image v-for="item in srcList" :key="item" style="width: 100px; height: 100px" :src="item"
:preview-src-list="srcList"/>
</el-dialog>
<!-- 其他更多配置弹窗 -->
<el-dialog :visible.sync="dialogVisible" width="50%">
<el-table :key="tableKey" :data="datalist" border style="width: 100%">
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column label="分公司名称" align="center">
<template slot-scope="scope">
<span>{{ scope.row.company }}</span>
<span>{{ scope.row.companyName }}</span>
</template>
</el-table-column>
<el-table-column label="现车" align="center">
@ -164,7 +171,7 @@
</el-table-column>
<el-table-column label="排产车" align="center">
<template slot-scope="scope">
<span>{{ scope.row.productionCarNum }}</span>
<span>{{ scope.row.produceCarNum }}</span>
</template>
</el-table-column>
</el-table>
@ -175,7 +182,7 @@
</template>
<script>
import { modelPageList, dataDictionary, brandDown, notTheCompanyModelPageList } from '@/api/chexingchaxun/modelinquire.js'
import {brandDown, dataDictionary, getPathSidByUserSid, modelPageList} from '@/api/chexingchaxun/modelinquire.js'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import configuration from './vehiclelibraryconfiguration.vue'
@ -190,10 +197,12 @@ export default {
data() {
return {
isSearchShow: false,
dialogVisible: false,
dialogVisible: false, //
dialogImgVisible: false, //
searchxianshitit: '显示查询条件',
viewState: 1,
tableKey: 0,
srcList: [],
list: [],
datalist: [],
carBrand_list: [],
@ -221,16 +230,16 @@ export default {
current: 1,
size: 10,
params: {
carBrand: '', //
driveForm: '', //
brand: '', //
driver: '', //
fuelType: '', //
gearboxType: '', //
gearbox: '', //
modelName: '', //
power: '', //
horsepower: '', //
productLine: '', //
useOrg: '', //
// useOrg: '', // 使
userSid: window.sessionStorage.getItem('userSid'), //
vehicleType: '', //
vehicleFunction: '', //
vehicleVersion: '', //
emissionStandard: '', //
engineType: '', //
@ -259,46 +268,60 @@ export default {
},
init() {
this.getList()
this.getPathSid()
},
// ------------------
//
Dictionary() {
brandDown().then((res) => {
getPathSid() {
const userSid = window.sessionStorage.getItem('userSid')
getPathSidByUserSid({userSid: userSid}).then((res) => {
if (res.code === '200') {
// this.listQuery.params.createOrgSId = res.data
this.useOrg = res.data
this.getBrand(res.data)
}
})
},
// -
getBrand(useOrg) {
brandDown({useOrg: useOrg}).then((res) => {
if (res.code === '200') {
this.carBrand_list = res.data
}
})
dataDictionary({ type: 'vehicleFunction' }).then((res) => {
},
//
Dictionary() {
dataDictionary({type: 'vehicleFunction'}).then((res) => {
if (res.code === '200') {
this.vehicleType_list = res.data
}
})
dataDictionary({ type: 'productLine' }).then((res) => {
dataDictionary({type: 'productLine'}).then((res) => {
if (res.code === '200') {
this.productLine_list = res.data
}
})
dataDictionary({ type: 'driver' }).then((res) => {
dataDictionary({type: 'driver'}).then((res) => {
if (res.code === '200') {
this.driveForm_list = res.data
}
})
dataDictionary({ type: 'horsepower' }).then((res) => {
dataDictionary({type: 'horsepower'}).then((res) => {
if (res.code === '200') {
this.power_list = res.data
}
})
dataDictionary({ type: 'vehicleVersion' }).then((res) => {
dataDictionary({type: 'vehicleVersion'}).then((res) => {
if (res.code === '200') {
this.vehicleVersion_list = res.data
}
})
dataDictionary({ type: 'fuelType' }).then((res) => {
dataDictionary({type: 'fuelType'}).then((res) => {
if (res.code === '200') {
this.fuelType_list = res.data
}
})
dataDictionary({ type: 'gearbox' }).then((res) => {
dataDictionary({type: 'gearbox'}).then((res) => {
if (res.code === '200') {
this.gearboxType_list = res.data
}
@ -345,16 +368,16 @@ export default {
current: 1,
size: 10,
params: {
carBrand: '', //
driveForm: '', //
brand: '', //
driver: '', //
fuelType: '', //
gearboxType: '', //
gearbox: '', //
modelName: '', //
power: '', //
horsepower: '', //
productLine: '', //
useOrg: '', //
// useOrg: '', // 使
userSid: window.sessionStorage.getItem('userSid'), //
vehicleType: '', //
vehicleFunction: '', //
vehicleVersion: '', //
emissionStandard: '', //
engineType: '', //
@ -365,14 +388,23 @@ export default {
}
this.getList()
},
handlookImg(row) {
this.dialogImgVisible = true
console.log('图片列表', row.modelImage)
const imgList = []
imgList.push(row.modelImage)
this.srcList = imgList //
console.log('图片列表', this.srcList)
},
handlook(row) {
this.dialogVisible = true
this.dialogQuery.params.modelSid = row.sid
notTheCompanyModelPageList(this.dialogQuery).then((res) => {
if (res.code === '200') {
this.datalist = res.data.records
}
})
this.datalist = row.moreList
// this.dialogQuery.params.modelSid = row.sid
// notTheCompanyModelPageList(this.dialogQuery).then((res) => {
// if (res.code === '200') {
// this.datalist = res.data.records
// }
// })
},
handlink(row) {
this.viewState = 2
@ -401,8 +433,19 @@ export default {
.pagination {
margin-bottom: -10px;
}
.searchbtn {
border: #2cab69 1px solid;
color: #2cab69;
}
.btn {
padding: 15px 0 15px 0;
border: 1px solid #e0e3eb;
text-align: center;
}
.tab-header {
margin-bottom: 0 !important;
}
</style>

77
anrui-buscenter/anrui-buscenter-ui/src/views/chexingchaxun/modelinquire/vehiclelibraryconfiguration.vue

@ -12,7 +12,6 @@
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header">
<el-row>
<el-form-item label="颜色:" class="searchlist">
<el-select v-model="listQuery.params.carColor" placeholder="请选择" filterable clearable>
<el-option v-for="item in carColor_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
@ -43,8 +42,6 @@
<el-option v-for="item in rearAxleRatio_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="空调:" class="searchlist">
<el-select v-model="listQuery.params.airConditionerKey" placeholder="请选择" filterable clearable>
<el-option v-for="item in airConditioner_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
@ -75,8 +72,6 @@
<el-option v-for="item in tireCover_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="鞍座:" class="searchlist">
<el-select v-model="listQuery.params.saddleKey" placeholder="请选择" filterable clearable>
<el-option v-for="item in saddle_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
@ -107,22 +102,20 @@
<el-option v-for="item in fuelTank_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="多媒体:" class="searchlist">
<el-select v-model="listQuery.params.multimediaKey" placeholder="请选择" filterable clearable>
<el-option v-for="item in multimedia_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
<el-form-item label="快捷检索:" class="searchlist">
<el-input v-model="listQuery.params.configName" placeholder="" clearable style="width: 150px"/>
</el-form-item>
</el-row>
<div class="searchbtns">
<el-button type="primary" @click="handleFilter">查询</el-button>
<el-button type="primary" @click="handReset">重置</el-button>
</div>
<el-form-item label="多媒体:" class="searchlist">
<el-select v-model="listQuery.params.multimediaKey" placeholder="请选择" filterable clearable>
<el-option v-for="item in multimedia_list" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select>
</el-form-item>
<el-form-item label="快捷检索:" class="searchlist">
<el-input v-model="listQuery.params.configName" placeholder="" clearable style="width: 150px"/>
</el-form-item>
</el-form>
<div class="btn">
<el-button type="primary" @click="handleFilter">查询</el-button>
<el-button type="primary" @click="handReset">重置</el-button>
</div>
</div>
</div>
<div class="listtop">
@ -157,11 +150,11 @@
<span>{{ scope.row.guidedPrice }}</span>
</template>
</el-table-column>
<el-table-column label="价格有效期" align="center" width="110">
<template slot-scope="scope">
<span>{{ scope.row.priceValidity }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="价格有效期" align="center" width="110">-->
<!-- <template slot-scope="scope">-->
<!-- <span>{{ scope.row.priceValidity }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="其他更多" align="center" width="100">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="handlook(scope.row)">查看</el-button>
@ -180,7 +173,7 @@
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column label="分公司名称" align="center">
<template slot-scope="scope">
<span>{{ scope.row.company }}</span>
<span>{{ scope.row.companyName }}</span>
</template>
</el-table-column>
<el-table-column label="现车" align="center">
@ -190,7 +183,7 @@
</el-table-column>
<el-table-column label="排产车" align="center">
<template slot-scope="scope">
<span>{{ scope.row.productionCarNum }}</span>
<span>{{ scope.row.produceCarNum }}</span>
</template>
</el-table-column>
</el-table>
@ -205,7 +198,7 @@
</template>
<script>
import { configPageList, dataDictionary, notTheCompanyModelPageList } from '@/api/chexingchaxun/modelinquire.js'
import {configPageList, dataDictionary} from '@/api/chexingchaxun/modelinquire.js'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import modelstandardconfiguration from './modelstandardconfiguration'
@ -409,7 +402,7 @@ export default {
showData(row) {
this.listQuery.params.modelSid = row.sid
this.modelSid = row.sid
this.modelName = row.vehicleAlias
this.modelName = row.modelName
this.Dictionary()
this.getList()
},
@ -462,13 +455,14 @@ export default {
},
handlook(row) {
this.dialogVisible = true
this.dialogQuery.params.modelSid = this.listQuery.params.modelSid
this.dialogQuery.params.modelConfigSid = row.sid
notTheCompanyModelPageList(this.dialogQuery).then((res) => {
if (res.code === '200') {
this.datalist = res.data.records
}
})
this.datalist = row.moreList
// this.dialogQuery.params.modelSid = this.listQuery.params.modelSid
// this.dialogQuery.params.modelConfigSid = row.sid
// notTheCompanyModelPageList(this.dialogQuery).then((res) => {
// if (res.code === '200') {
// this.datalist = res.data.records
// }
// })
},
handlink(row) {
this.viewState = 2
@ -508,8 +502,19 @@ export default {
.pagination {
margin-bottom: -10px;
}
.searchbtn {
border: #2cab69 1px solid;
color: #2cab69;
}
.btn {
padding: 15px 0 15px 0;
border: 1px solid #e0e3eb;
text-align: center;
}
.tab-header {
margin-bottom: 0 !important;
}
</style>

320
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/relation/modellibrary.vue

@ -12,138 +12,131 @@
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header">
<el-row>
<el-form-item label="品牌:" class="searchlist">
<el-select v-model="listQuery.params.carBrand" placeholder="请选择" filterable clearable>
<el-option v-for="item in carBrand_list" :key="item.sid" :label="item.brandName"
:value="item.brandName"/>
</el-select>
</el-form-item>
<el-form-item label="功能:" class="searchlist">
<el-select v-model="listQuery.params.vehicleType" placeholder="请选择" filterable clearable>
<el-option v-for="item in vehicleType_list" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select>
</el-form-item>
<el-form-item label="系列:" class="searchlist">
<el-select v-model="listQuery.params.productLine" placeholder="请选择" filterable clearable>
<el-option v-for="item in productLine_list" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select>
</el-form-item>
<el-form-item label="驱动:" class="searchlist">
<el-select v-model="listQuery.params.driveForm" placeholder="请选择" filterable clearable>
<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="马力:" class="searchlist">
<el-select v-model="listQuery.params.power" placeholder="请选择" filterable clearable>
<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="版本:" class="searchlist">
<el-select v-model="listQuery.params.vehicleVersion" placeholder="请选择" filterable clearable>
<el-option v-for="item in vehicleVersion_list" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="燃料:" class="searchlist">
<el-select v-model="listQuery.params.fuelType" placeholder="请选择" filterable clearable>
<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="车型编码:" class="searchlist">
<el-input v-model="listQuery.params.applyName" placeholder="" clearable style="width: 150px"/>
</el-form-item>
<el-form-item label="变速箱:" class="searchlist">
<el-select v-model="listQuery.params.gearboxType" placeholder="请选择" filterable clearable>
<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="排放标准:" class="searchlist">
<el-select v-model="listQuery.params.emissionStandard" placeholder="请选择" filterable clearable>
<el-option v-for="item in emissionStandard_list" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select>
</el-form-item>
<el-form-item label="发动机型号:" class="searchlist">
<el-select v-model="listQuery.params.engineType" placeholder="请选择" filterable clearable>
<el-option v-for="item in engineType_list" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select>
</el-form-item>
<el-form-item label="细分市场:" class="searchlist">
<el-select v-model="listQuery.params.marketSegments" placeholder="请选择" filterable clearable>
<el-option v-for="item in marketSegments_list" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="规格型号:" class="searchlist">
<el-input v-model="listQuery.params.specifications" placeholder="" clearable style="width: 150px"/>
</el-form-item>
<el-form-item label="快捷检索:" class="searchlist">
<el-input v-model="listQuery.params.modelName" placeholder="" clearable style="width: 150px"/>
</el-form-item>
</el-row>
<div class="searchbtns">
<el-button type="primary" @click="handleFilter">查询</el-button>
<el-button type="primary" @click="handReset">重置</el-button>
</div>
<el-form-item label="品牌:" class="searchlist">
<el-select v-model="listQuery.params.brand" placeholder="请选择" filterable clearable>
<el-option v-for="item in carBrand_list" :key="item.sid" :label="item.brandName" :value="item.brandName"/>
</el-select>
</el-form-item>
<el-form-item label="功能:" class="searchlist">
<el-select v-model="listQuery.params.vehicleFunction" placeholder="请选择" filterable clearable>
<el-option v-for="item in vehicleType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
<el-form-item label="系列:" class="searchlist"> <!-- 接口上无此请求参数但原型上有 -->
<el-select v-model="listQuery.params.productLine" placeholder="请选择" filterable clearable>
<el-option v-for="item in productLine_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
<el-form-item label="驱动:" class="searchlist">
<el-select v-model="listQuery.params.driver" placeholder="请选择" filterable clearable>
<el-option v-for="item in driveForm_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
<el-form-item label="马力:" class="searchlist">
<el-select v-model="listQuery.params.horsepower" placeholder="请选择" filterable clearable>
<el-option v-for="item in power_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
<el-form-item label="版本:" class="searchlist">
<el-select v-model="listQuery.params.vehicleVersion" placeholder="请选择" filterable clearable>
<el-option v-for="item in vehicleVersion_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
<el-form-item label="燃料:" class="searchlist">
<el-select v-model="listQuery.params.fuelType" placeholder="请选择" filterable clearable>
<el-option v-for="item in fuelType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
<!-- <el-form-item label="车型编码:" class="searchlist">&lt;!&ndash; 接口上无此请求参数但原型上有 &ndash;&gt;-->
<!-- <el-input v-model="listQuery.params.applyName" placeholder="" clearable style="width: 150px"/>-->
<!-- </el-form-item>-->
<el-form-item label="变速箱:" class="searchlist">
<el-select v-model="listQuery.params.gearbox" placeholder="请选择" filterable clearable>
<el-option v-for="item in gearboxType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
<el-form-item label="排放标准:" class="searchlist">
<el-select v-model="listQuery.params.emissionStandard" placeholder="请选择" filterable clearable>
<el-option v-for="item in emissionStandard_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
<el-form-item label="发动机型号:" class="searchlist"><!-- 接口上无此请求参数但原型上有 -->
<el-select v-model="listQuery.params.engineType" placeholder="请选择" filterable clearable>
<el-option v-for="item in engineType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
<el-form-item label="细分市场:" class="searchlist"><!-- 无作用请求参数 -->
<el-select v-model="listQuery.params.marketSegments" placeholder="请选择" filterable clearable>
<el-option v-for="item in marketSegments_list" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select>
</el-form-item>
<el-form-item label="规格型号:" class="searchlist">
<el-input v-model="listQuery.params.specifications" placeholder="" clearable style="width: 150px"/>
</el-form-item>
<el-form-item label="快捷检索:" class="searchlist">
<el-input v-model="listQuery.params.name" placeholder="" clearable style="width: 150px"/>
</el-form-item>
</el-form>
<div class="btn">
<el-button type="primary" @click="handleFilter">查询</el-button>
<el-button type="primary" @click="handReset">重置</el-button>
</div>
</div>
</div>
<div class="listtop">
<div class="tit">车辆列表</div>
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current"
:limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%">
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column label="车型" align="center">
<el-table-column width="120px" label="品牌" align="center">
<template slot-scope="scope">
<span class="bluezi" @click="handlink(scope.row)">{{ scope.row.vehicleAlias }}</span>
<span>{{ scope.row.brandName }}</span>
</template>
</el-table-column>
<el-table-column label="版本" align="center">
<el-table-column label="车型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vehicleVersionValue }}</span>
<span class="bluezi" @click="handlink(scope.row)">{{ scope.row.modelName }}</span>
</template>
</el-table-column>
<el-table-column width="100px" label="版本" align="center">
<template slot-scope="scope"> <!-- vehicleVersionValue-->
<span>{{ scope.row.versionValue }}</span>
</template>
</el-table-column>
<el-table-column label="燃料" align="center">
<el-table-column width="100px" label="燃料" align="center">
<template slot-scope="scope">
<span>{{ scope.row.fuelTypeValue }}</span>
</template>
</el-table-column>
<el-table-column label="变速箱" align="center">
<el-table-column width="100px" label="变速箱" align="center">
<template slot-scope="scope">
<span>{{ scope.row.gearboxTypeValue }}</span>
</template>
</el-table-column>
<el-table-column label="销售指导价(万元)" align="center">
<el-table-column width="150px" label="销售指导价(万元)" align="center">
<template slot-scope="scope">
<span>{{ scope.row.guidedPrice }}</span>
</template>
</el-table-column>
<el-table-column label="现车" align="center">
<el-table-column width="100px" label="车型图片" align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="handlookImg(scope.row)">查看</el-button>
</template>
</el-table-column>
<el-table-column width="110px" label="现车" align="center">
<template slot-scope="scope">
<span>{{ scope.row.nowCarNum }}</span>
</template>
</el-table-column>
<el-table-column label="排产" align="center">
<el-table-column width="110px" label="排产" align="center">
<template slot-scope="scope">
<span>{{ scope.row.productionCarNum }}</span>
<span>{{ scope.row.produceCarNum }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center">
<el-table-column width="100px" label="其他更多" align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="handlook(scope.row)">查看</el-button>
</template>
@ -157,12 +150,18 @@
</div>
</div>
</div>
<!-- 查看车型照片弹窗 -->
<el-dialog title="查看" :visible.sync="dialogImgVisible">
<el-image v-for="item in srcList" :key="item" style="width: 100px; height: 100px" :src="item"
:preview-src-list="srcList"/>
</el-dialog>
<!-- 其他更多配置弹窗 -->
<el-dialog :visible.sync="dialogVisible" width="50%">
<el-table :key="tableKey" :data="datalist" border style="width: 100%">
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column label="分公司名称" align="center">
<template slot-scope="scope">
<span>{{ scope.row.company }}</span>
<span>{{ scope.row.companyName }}</span>
</template>
</el-table-column>
<el-table-column label="现车" align="center">
@ -172,7 +171,7 @@
</el-table-column>
<el-table-column label="排产车" align="center">
<template slot-scope="scope">
<span>{{ scope.row.productionCarNum }}</span>
<span>{{ scope.row.produceCarNum }}</span>
</template>
</el-table-column>
</el-table>
@ -183,12 +182,13 @@
</template>
<script>
import {
brandDown,
dataDictionary,
modelPageList,
notTheCompanyModelPageList
} from '@/api/chexingchaxun/modelinquire'
import {
brandDown,
dataDictionary,
getPathSidByUserSid,
modelPageList,
notTheCompanyModelPageList
} from '@/api/chexingchaxun/modelinquire'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import configuration from './vehiclelibraryconfiguration.vue'
@ -204,9 +204,11 @@
return {
isSearchShow: false,
dialogVisible: false,
dialogImgVisible: false, //
searchxianshitit: '隐藏查询条件',
viewState: 1,
tableKey: 0,
srcList: [],
list: [],
datalist: [],
carBrand_list: [],
@ -234,16 +236,16 @@
current: 1,
size: 10,
params: {
carBrand: '', //
driveForm: '', //
brand: '', //
driver: '', //
fuelType: '', //
gearboxType: '', //
gearbox: '', //
modelName: '', //
power: '', //
horsepower: '', //
productLine: '', //
useOrg: '', //
// useOrg: '', // 使
userSid: window.sessionStorage.getItem('userSid'), //
vehicleType: '', //
vehicleFunction: '', //
vehicleVersion: '', //
emissionStandard: '', //
engineType: '', //
@ -268,15 +270,29 @@
},
init() {
this.getList()
this.getPathSid()
},
// ------------------
//
Dictionary() {
brandDown().then((res) => {
getPathSid() {
const userSid = window.sessionStorage.getItem('userSid')
getPathSidByUserSid({userSid: userSid}).then((res) => {
if (res.code === '200') {
// this.listQuery.params.createOrgSId = res.data
this.useOrg = res.data
this.getBrand(res.data)
}
})
},
// -
getBrand(useOrg) {
brandDown({useOrg: useOrg}).then((res) => {
if (res.code === '200') {
this.carBrand_list = res.data
}
})
},
//
Dictionary() {
dataDictionary({type: 'vehicleFunction'}).then((res) => {
if (res.code === '200') {
this.vehicleType_list = res.data
@ -359,16 +375,16 @@
current: 1,
size: 10,
params: {
carBrand: '', //
driveForm: '', //
brand: '', //
driver: '', //
fuelType: '', //
gearboxType: '', //
gearbox: '', //
modelName: '', //
power: '', //
horsepower: '', //
productLine: '', //
useOrg: '', //
// useOrg: '', // 使
userSid: window.sessionStorage.getItem('userSid'), //
vehicleType: '', //
vehicleFunction: '', //
vehicleVersion: '', //
emissionStandard: '', //
engineType: '', //
@ -379,14 +395,23 @@
}
this.getList()
},
handlookImg(row) {
this.dialogImgVisible = true
console.log('图片列表', row.modelImage)
const imgList = []
imgList.push(row.modelImage)
this.srcList = imgList //
console.log('图片列表', this.srcList)
},
handlook(row) {
this.dialogVisible = true
this.dialogQuery.params.modelSid = row.sid
notTheCompanyModelPageList(this.dialogQuery).then((res) => {
if (res.code === '200') {
this.datalist = res.data.records
}
})
this.datalist = row.moreList
// this.dialogQuery.params.modelSid = row.sid
// notTheCompanyModelPageList(this.dialogQuery).then((res) => {
// if (res.code === '200') {
// this.datalist = res.data.records
// }
// })
},
handlink(row) {
this.viewState = 2
@ -408,19 +433,34 @@
}
</script>
<style scoped>
.listtop {
display: flex;
justify-content: space-between;
align-items: center;
border: 1px solid #dfe4ed;
height: 40px;
}
.listtop {
display: flex;
justify-content: space-between;
align-items: center;
border: 1px solid #dfe4ed;
height: 40px;
}
.tit {
margin-bottom: -10px;
}
.tit {
margin-bottom: -10px;
}
.pagination {
margin-bottom: -10px;
}
.pagination {
margin-bottom: -10px;
}
.searchbtn {
border: #2cab69 1px solid;
color: #2cab69;
}
.btn {
padding: 15px 0 15px 0;
border: 1px solid #e0e3eb;
text-align: center;
}
.tab-header {
margin-bottom: 0 !important;
}
</style>

58
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/relation/vehiclelibraryconfiguration.vue

@ -13,7 +13,6 @@
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header">
<el-row>
<el-form-item label="颜色:" class="searchlist">
<el-select v-model="listQuery.params.carColor" placeholder="请选择" filterable clearable>
<el-option v-for="item in carColor_list" :key="item.dictKey" :label="item.dictValue"
@ -50,8 +49,6 @@
:value="item.dictKey"/>
</el-select>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="空调:" class="searchlist">
<el-select v-model="listQuery.params.airConditionerKey" placeholder="请选择" filterable clearable>
<el-option v-for="item in airConditioner_list" :key="item.dictKey" :label="item.dictValue"
@ -88,8 +85,6 @@
:value="item.dictKey"/>
</el-select>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="鞍座:" class="searchlist">
<el-select v-model="listQuery.params.saddleKey" placeholder="请选择" filterable clearable>
<el-option v-for="item in saddle_list" :key="item.dictKey" :label="item.dictValue"
@ -126,8 +121,6 @@
:value="item.dictKey"/>
</el-select>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="多媒体:" class="searchlist">
<el-select v-model="listQuery.params.multimediaKey" placeholder="请选择" filterable clearable>
<el-option v-for="item in multimedia_list" :key="item.dictKey" :label="item.dictValue"
@ -137,12 +130,11 @@
<el-form-item label="快捷检索:" class="searchlist">
<el-input v-model="listQuery.params.configName" placeholder="" clearable style="width: 150px"/>
</el-form-item>
</el-row>
<div class="searchbtns">
<el-button type="primary" @click="handleFilter">查询</el-button>
<el-button type="primary" @click="handReset">重置</el-button>
</div>
</el-form>
<div class="btn">
<el-button type="primary" @click="handleFilter">查询</el-button>
<el-button type="primary" @click="handReset">重置</el-button>
</div>
</div>
</div>
<div class="listtop">
@ -183,11 +175,11 @@
<span>{{ scope.row.guidedPrice }}</span>
</template>
</el-table-column>
<el-table-column label="价格有效期" align="center" width="110">
<template slot-scope="scope">
<span>{{ scope.row.priceValidity }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="价格有效期" align="center" width="110">-->
<!-- <template slot-scope="scope">-->
<!-- <span>{{ scope.row.priceValidity }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="其他更多" align="center" width="100">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="handlook(scope.row)">查看</el-button>
@ -207,7 +199,7 @@
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column label="分公司名称" align="center">
<template slot-scope="scope">
<span>{{ scope.row.company }}</span>
<span>{{ scope.row.companyName }}</span>
</template>
</el-table-column>
<el-table-column label="现车" align="center">
@ -217,7 +209,7 @@
</el-table-column>
<el-table-column label="排产车" align="center">
<template slot-scope="scope">
<span>{{ scope.row.productionCarNum }}</span>
<span>{{ scope.row.produceCarNum }}</span>
</template>
</el-table-column>
</el-table>
@ -232,7 +224,7 @@
</template>
<script>
import {configPageList, dataDictionary, notTheCompanyModelPageList} from '@/api/chexingchaxun/modelinquire'
import {configPageList, dataDictionary} from '@/api/chexingchaxun/modelinquire'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
// import modelstandardconfiguration from './modelstandardconfiguration'
@ -424,7 +416,7 @@ export default {
this.row = row
this.listQuery.params.modelSid = row.sid
this.modelSid = row.sid
this.modelName = row.vehicleAlias
this.modelName = row.modelName
this.Dictionary()
this.getList()
},
@ -477,13 +469,14 @@ export default {
},
handlook(row) {
this.dialogVisible = true
this.dialogQuery.params.modelSid = this.listQuery.params.modelSid
this.dialogQuery.params.modelConfigSid = row.sid
notTheCompanyModelPageList(this.dialogQuery).then((res) => {
if (res.code === '200') {
this.datalist = res.data.records
}
})
this.datalist = row.moreList
// this.dialogQuery.params.modelSid = this.listQuery.params.modelSid
// this.dialogQuery.params.modelConfigSid = row.sid
// notTheCompanyModelPageList(this.dialogQuery).then((res) => {
// if (res.code === '200') {
// this.datalist = res.data.records
// }
// })
},
handleSelectionChange(row) {
if (row.length > 1) {
@ -562,4 +555,13 @@ export default {
.pagination {
margin-bottom: -10px;
}
.btn {
padding: 15px 0 15px 0;
border: 1px solid #e0e3eb;
text-align: center;
}
.tab-header {
margin-bottom: 0 !important;
}
</style>

Loading…
Cancel
Save