You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
663 lines
25 KiB
663 lines
25 KiB
<template>
|
|
<div class="app-container">
|
|
<div v-show="pageState === 1">
|
|
<div class="tab-header webtop">
|
|
<div>车型关联常用配置</div>
|
|
<div>
|
|
<el-button type="primary" size="small" @click="handleGuanlian()">关联</el-button>
|
|
<el-button type="danger" size="small" @click="handleDelete()">解除</el-button>
|
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="main-content">
|
|
<div class="searchcon">
|
|
<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="110px" class="tab-header">
|
|
<el-form-item label="颜色">
|
|
<el-select v-model="listQuery.params.carColorKey" placeholder="请选择" clearable class="addinputw">
|
|
<el-option v-for="item in carColor_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.slowMachineKey" placeholder="请选择" clearable class="addinputw">
|
|
<el-option v-for="item in slowMachine_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.rearViewMirrorKey" placeholder="请选择" clearable class="addinputw">
|
|
<el-option v-for="item in rearViewMirror_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.tireSizeKey" placeholder="请选择" clearable class="addinputw">
|
|
<el-option v-for="item in tireSize_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.specificationKey" placeholder="请选择" clearable class="addinputw">
|
|
<el-option v-for="item in specification_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.rearAxleRatioKey" placeholder="请选择" clearable class="addinputw">
|
|
<el-option v-for="item in rearAxleRatio_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.airConditionerKey" placeholder="请选择" clearable class="addinputw">
|
|
<el-option v-for="item in airConditioner_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.hubMaterialKey" placeholder="请选择" clearable class="addinputw">
|
|
<el-option v-for="item in hubMaterial_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.baffleModelKey" placeholder="请选择" clearable class="addinputw">
|
|
<el-option v-for="item in baffleModel_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.suspensionKey" placeholder="请选择" clearable class="addinputw">
|
|
<el-option v-for="item in suspension_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.seatKey" placeholder="请选择" clearable class="addinputw">
|
|
<el-option v-for="item in seat_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.tireCoverKey" placeholder="请选择" clearable class="addinputw">
|
|
<el-option v-for="item in tireCover_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.saddleKey" placeholder="请选择" clearable class="addinputw">
|
|
<el-option v-for="item in saddle_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.wheelbaseKey" placeholder="请选择" clearable class="addinputw">
|
|
<el-option v-for="item in wheelbase_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.bumperKey" placeholder="请选择" clearable class="addinputw">
|
|
<el-option v-for="item in bumper_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.configuringBaoKey" placeholder="请选择" clearable class="addinputw">
|
|
<el-option v-for="item in configuringBao_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.independentSourcesKey" placeholder="请选择" clearable class="addinputw">
|
|
<el-option v-for="item in independentSources_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.fuelTankKey" placeholder="请选择" clearable class="addinputw">
|
|
<el-option v-for="item in fuelTank_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.multimediaKey" placeholder="请选择" clearable class="addinputw">
|
|
<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="常用配置名称">
|
|
<el-input v-model="listQuery.params.configName" maxlength="125" placeholder="请输入常用配置名称" class="addinputw" clearable/>
|
|
</el-form-item>
|
|
</el-form>
|
|
<div class="btn" style="text-align: center;">
|
|
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button>
|
|
<el-button type="primary" icon="el-icon-refresh" size="small" @click="resetQuery">重置</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="listtop">
|
|
<div class="tit">[{{ title }}]车型常用配置列表</div>
|
|
<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%;" @selection-change="handleSelectionChange">
|
|
<el-table-column width="50px" type="selection" align="center"/>
|
|
<el-table-column width="80px" fixed label="序号" type="index" :index="indexMethod" align="center"/>
|
|
<el-table-column label="操作" fixed align="center" width="110px" class-name="small-padding fixed-width">
|
|
<template slot-scope="{row}">
|
|
<el-button size="mini" type="primary" :disabled="row.guidedPrice !== ''" @click="handleJiage(row)">价格维护</el-button>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column fixed prop="insideCode" width="130" label="内部编码" align="center" />
|
|
<el-table-column fixed prop="guidedPrice" width="150" label="销售指导价(全款)" align="center" />
|
|
<el-table-column fixed prop="manufactorSettlementPrice" width="150" label="销售指导价(贷款)" align="center" />
|
|
<el-table-column prop="configCode" width="130" label="配置编码" align="center" />
|
|
<el-table-column prop="modifyTime" width="130" label="最新更新日期" align="center" />
|
|
<el-table-column prop="rearAxleValue" width="110" label="后桥" align="center" />
|
|
<el-table-column prop="rearAxleRatio" width="110" label="速比" align="center" />
|
|
<el-table-column prop="wheelbase" width="130" label="轴距" align="center" />
|
|
<el-table-column prop="suspension" width="130" label="悬架" align="center" />
|
|
<el-table-column prop="saddle" width="130" label="鞍座" align="center" />
|
|
<el-table-column prop="carColor" width="130" label="颜色" align="center" />
|
|
<el-table-column prop="specification" width="130" label="驾驶室" align="center" />
|
|
<el-table-column prop="bumper" width="130" label="保险杠" align="center" />
|
|
<el-table-column prop="fuelTank" width="130px" label="燃料箱" align="center" />
|
|
<el-table-column prop="baffleModel" width="130" label="导流罩" align="center" />
|
|
<el-table-column prop="independentSources" width="110" label="独立热源" align="center" />
|
|
<el-table-column prop="slowMachine" width="130" label="缓速器" align="center" />
|
|
<el-table-column prop="tireCover" width="130" label="护轮罩" align="center" />
|
|
<el-table-column prop="rearViewMirror" width="130" label="后视镜" align="center" />
|
|
<el-table-column prop="tireSize" width="130" label="轮胎" align="center" />
|
|
<el-table-column prop="hubMaterial" width="110" label="轮毂材质" align="center" />
|
|
<el-table-column prop="airConditioner" width="130" label="空调" align="center" />
|
|
<el-table-column prop="seat" width="130" label="座椅" align="center" />
|
|
<el-table-column prop="multimedia" width="130" label="多媒体" align="center" />
|
|
<el-table-column prop="configuringBao" width="130" label="配置包" align="center" />
|
|
</el-table>
|
|
</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"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<chexingpeizhijiageweihu v-show="pageState === 2" ref="weihu" @doback="resetState" @reloadlist="getList"></chexingpeizhijiageweihu>
|
|
<changyongpeizhi v-show="pageState === 3" ref="changyongpeizhi" @doback="resetState" @reloadlist="getList"></changyongpeizhi>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { deleteRel, pagerList, pullDown } from '@/api/cheliang/basemodelconfig'
|
|
import Pagination from '@/components/pagination'
|
|
import pageye from '@/components/pagination/pageye'
|
|
import chexingpeizhijiageweihu from './chexingpeizhijiageweihuAdd'
|
|
import changyongpeizhi from './changyongpeizhi'
|
|
import { getUseOrgByUserSid } from '@/api/cheliang/basevehicle'
|
|
|
|
export default {
|
|
name: 'chexingpeizhi',
|
|
components: {
|
|
Pagination,
|
|
pageye,
|
|
chexingpeizhijiageweihu,
|
|
changyongpeizhi
|
|
},
|
|
data() {
|
|
return {
|
|
pageState: 1,
|
|
isSearchShow: false,
|
|
searchxianshitit: '显示查询条件',
|
|
title: '',
|
|
tableKey: 0,
|
|
list: [],
|
|
listLoading: false,
|
|
listQuery: {
|
|
params: {
|
|
airConditionerKey: '', // 空调key
|
|
baffleModelKey: '', // 导流罩key
|
|
bumperKey: '',
|
|
carColorKey: '',
|
|
configName: '',
|
|
configuringBaoKey: '',
|
|
fuelTankKey: '',
|
|
hubMaterialKey: '',
|
|
independentSourcesKey: '',
|
|
modelSid: '',
|
|
multimediaKey: '',
|
|
rearAxleRatioKey: '',
|
|
rearViewMirrorKey: '',
|
|
saddleKey: '',
|
|
seatKey: '',
|
|
slowMachineKey: '',
|
|
specificationKey: '',
|
|
suspensionKey: '',
|
|
tireCoverKey: '',
|
|
tireSizeKey: '',
|
|
useOrgSid: '',
|
|
wheelbaseKey: ''
|
|
},
|
|
current: 1,
|
|
size: 10,
|
|
total: 0
|
|
},
|
|
setRelList: {
|
|
sid: '', // 车型与简述配置关联sid
|
|
modelSid: '', // 车型sid
|
|
configurationItemsSid: '', // 简述配置sid
|
|
manufactorSettlementPrice: '', // 厂家结算价不能为空
|
|
salesReferencePrice: '', // 销售参考价
|
|
guidedPrice: '', // 销售指导价
|
|
priceValidity: '', // 价格有效期
|
|
isCommonModel: '' // 是否常用车型
|
|
},
|
|
sids: [],
|
|
configurationItemsSid_list: [], // 简述配置sid
|
|
chesid: '',
|
|
carColor_list: [], // 车身颜色
|
|
slowMachine_list: [], // 缓速器
|
|
rearViewMirror_list: [], // 后视镜
|
|
tireSize_list: [], // 轮胎规格
|
|
specification_list: [], // 驾驶室
|
|
rearAxleRatio_list: [], // 后桥速比
|
|
airConditioner_list: [], // 空调
|
|
hubMaterial_list: [], // 轮毂材质
|
|
baffleModel_list: [], // 导流罩
|
|
suspension_list: [], // 悬架
|
|
seat_list: [], // 座椅
|
|
tireCover_list: [], // 护轮罩
|
|
saddle_list: [], // 鞍座
|
|
wheelbase_list: [], // 轴距
|
|
bumper_list: [], // 保险杠
|
|
configuringBao_list: [], // 配置包
|
|
independentSources_list: [], // 独立热源
|
|
fuelTank_list: [], // 油箱
|
|
multimedia_list: [], // 多媒体
|
|
rules: {}
|
|
}
|
|
},
|
|
created() {
|
|
},
|
|
methods: {
|
|
// 搜索条件效果
|
|
clicksearchShow() {
|
|
this.isSearchShow = !this.isSearchShow
|
|
if (this.isSearchShow) {
|
|
this.searchxianshitit = '隐藏查询条件'
|
|
} else {
|
|
this.searchxianshitit = '显示查询条件'
|
|
}
|
|
},
|
|
showGuanlian(row) {
|
|
this.setRelList.modelSid = row.sid
|
|
this.chesid = row.sid
|
|
this.title = row.vehicleAlias
|
|
this.listQuery.params.modelSid = row.sid
|
|
// 分公司
|
|
const userSid = window.sessionStorage.getItem('userSid')
|
|
getUseOrgByUserSid({ userSid: userSid }).then((res) => {
|
|
if (res.success) {
|
|
this.listQuery.params.useOrgSid = res.data.sid
|
|
this.getList() // 加载列表
|
|
}
|
|
})
|
|
this.getType()
|
|
},
|
|
getType() {
|
|
// 下拉框-车身颜色
|
|
pullDown({
|
|
type: 'bodyColor'
|
|
}).then((res) => {
|
|
if (res.code === '200') {
|
|
this.carColor_list = res.data
|
|
console.log('下拉框请求111', res.data)
|
|
}
|
|
})
|
|
// 缓速器
|
|
pullDown({
|
|
type: 'slowMachine '
|
|
}).then((res) => {
|
|
if (res.code === '200') {
|
|
this.slowMachine_list = res.data
|
|
console.log('下拉框请求缓速器', res.data)
|
|
}
|
|
})
|
|
// 后视镜
|
|
pullDown({
|
|
type: 'rearviewMirror '
|
|
}).then((res) => {
|
|
if (res.code === '200') {
|
|
this.rearViewMirror_list = res.data
|
|
console.log('下拉框请求后视镜', res.data)
|
|
}
|
|
})
|
|
// 轮胎规格
|
|
pullDown({
|
|
type: 'tiresize '
|
|
}).then((res) => {
|
|
if (res.code === '200') {
|
|
this.tireSize_list = res.data
|
|
console.log('下拉框请求轮胎规格', res.data)
|
|
}
|
|
})
|
|
// 驾驶室
|
|
pullDown({
|
|
type: 'specification '
|
|
}).then((res) => {
|
|
if (res.code === '200') {
|
|
this.specification_list = res.data
|
|
console.log('下拉框请求驾驶室', res.data)
|
|
}
|
|
})
|
|
// 后桥速比
|
|
pullDown({
|
|
type: 'rearAxleRatio'
|
|
}).then((res) => {
|
|
if (res.code === '200') {
|
|
this.rearAxleRatio_list = res.data
|
|
console.log('下拉框请求后桥速比', res.data)
|
|
}
|
|
})
|
|
// 空调 导流罩 护轮罩 独立热源 多媒体
|
|
pullDown({
|
|
type: 'airConditioner'
|
|
}).then((res) => {
|
|
if (res.code === '200') {
|
|
this.airConditioner_list = res.data
|
|
console.log('下拉框请求空调', res.data)
|
|
}
|
|
})
|
|
// 轮毂材质
|
|
pullDown({
|
|
type: 'hubMaterial'
|
|
}).then((res) => {
|
|
if (res.code === '200') {
|
|
this.hubMaterial_list = res.data
|
|
console.log('下拉框请求轮毂材质', res.data)
|
|
}
|
|
})
|
|
// 导流罩
|
|
pullDown({
|
|
type: 'baffleModel'
|
|
}).then((res) => {
|
|
if (res.code === '200') {
|
|
this.baffleModel_list = res.data
|
|
console.log('下拉框请求导流罩', res.data)
|
|
}
|
|
})
|
|
// 悬架
|
|
pullDown({
|
|
type: 'suspension'
|
|
}).then((res) => {
|
|
if (res.code === '200') {
|
|
this.suspension_list = res.data
|
|
console.log('下拉框请求悬架', res.data)
|
|
}
|
|
})
|
|
// 座椅
|
|
pullDown({
|
|
type: 'seat'
|
|
}).then((res) => {
|
|
if (res.code === '200') {
|
|
this.seat_list = res.data
|
|
console.log('下拉框请求座椅', res.data)
|
|
}
|
|
})
|
|
// 护轮罩
|
|
pullDown({
|
|
type: 'tireCover'
|
|
}).then((res) => {
|
|
if (res.code === '200') {
|
|
this.tireCover_list = res.data
|
|
console.log('下拉框请求护轮罩', res.data)
|
|
}
|
|
})
|
|
// 鞍座
|
|
pullDown({
|
|
type: 'saddle'
|
|
}).then((res) => {
|
|
if (res.code === '200') {
|
|
this.saddle_list = res.data
|
|
console.log('下拉框请求护鞍座', res.data)
|
|
}
|
|
})
|
|
// 轴距
|
|
pullDown({
|
|
type: 'wheelbase'
|
|
}).then((res) => {
|
|
if (res.code === '200') {
|
|
this.wheelbase_list = res.data
|
|
console.log('下拉框请求护轴距', res.data)
|
|
}
|
|
})
|
|
// 保险杠
|
|
pullDown({
|
|
type: 'bumper'
|
|
}).then((res) => {
|
|
if (res.code === '200') {
|
|
this.bumper_list = res.data
|
|
console.log('下拉框请求护保险杠', res.data)
|
|
}
|
|
})
|
|
// 配置包
|
|
pullDown({
|
|
type: 'configuringBao'
|
|
}).then((res) => {
|
|
if (res.code === '200') {
|
|
this.configuringBao_list = res.data
|
|
console.log('下拉框请求护配置包', res.data)
|
|
}
|
|
})
|
|
// 独立热源
|
|
pullDown({
|
|
type: 'independentSources'
|
|
}).then((res) => {
|
|
if (res.code === '200') {
|
|
this.independentSources_list = res.data
|
|
console.log('下拉框请求护独立热源', res.data)
|
|
}
|
|
})
|
|
// 下拉框-油箱
|
|
pullDown({
|
|
type: 'fuelTank'
|
|
}).then((res) => {
|
|
if (res.code === '200') {
|
|
this.fuelTank_list = res.data
|
|
console.log('下拉框请求111', res.data)
|
|
}
|
|
})
|
|
// 多媒体
|
|
pullDown({
|
|
type: 'multimedia'
|
|
}).then((res) => {
|
|
if (res.code === '200') {
|
|
this.multimedia_list = res.data
|
|
console.log('下拉框请求多媒体', res.data)
|
|
}
|
|
})
|
|
},
|
|
// 打开价格维护
|
|
handleJiage(row) {
|
|
this.pageState = 2
|
|
this.$refs['weihu'].showWeiHu(row.sid)
|
|
},
|
|
|
|
// 打开关联
|
|
handleGuanlian() {
|
|
this.pageState = 3
|
|
let sids = []
|
|
console.log('yiyouyouyo', this.list)
|
|
this.list.forEach((element) => {
|
|
sids.push(element.configurationItemsSid)
|
|
})
|
|
console.log('已关联sids', sids.toString())
|
|
this.$refs['changyongpeizhi'].showSetRel(this.setRelList.modelSid, sids.toString())
|
|
},
|
|
// 解除关联
|
|
handleDelete() {
|
|
if (this.sids.length === 0) {
|
|
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' })
|
|
return
|
|
} else {
|
|
console.log('解除关系所需参数', this.configurationItemsSid_list)
|
|
deleteRel(this.configurationItemsSid_list).then((response) => {
|
|
if (response.success) {
|
|
this.getList()
|
|
}
|
|
})
|
|
}
|
|
},
|
|
// 返回
|
|
handleReturn() {
|
|
this.$emit('doback')
|
|
},
|
|
// 序号
|
|
indexMethod(index) {
|
|
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
|
|
var pageindex = index + 1 + pagestart
|
|
return pageindex
|
|
},
|
|
resetState() {
|
|
this.pageState = 1
|
|
},
|
|
handleSelectionChange(row) {
|
|
const aa = []
|
|
const bb = []
|
|
row.forEach((element) => {
|
|
aa.push(element.sid)
|
|
bb.push({
|
|
modelSid: element.modelSid,
|
|
configurationItemsSid: element.configurationItemsSid,
|
|
userSid: window.sessionStorage.getItem('userSid')
|
|
})
|
|
})
|
|
this.sids = aa
|
|
this.configurationItemsSid_list = bb
|
|
console.log('选择的数据', this.sids)
|
|
console.log('选择的简述配置sid', this.configurationItemsSid_list)
|
|
},
|
|
// 查询列表信息
|
|
getList() {
|
|
this.listLoading = true
|
|
const userSid = window.sessionStorage.getItem('userSid')
|
|
getUseOrgByUserSid({ userSid: userSid }).then((res) => {
|
|
if (res.success) {
|
|
this.listQuery.params.useOrgSid = res.data.sid
|
|
pagerList(this.listQuery).then((response) => {
|
|
this.listLoading = false
|
|
if (
|
|
response.code === '200' &&
|
|
response.data &&
|
|
response.data.total > 0
|
|
) {
|
|
this.list = response.data.records
|
|
this.listQuery.total = response.data.total
|
|
} else {
|
|
this.list = []
|
|
this.listQuery.total = 0
|
|
}
|
|
})
|
|
}
|
|
})
|
|
},
|
|
// 查询按钮
|
|
handleFilter() {
|
|
this.listQuery.current = 1
|
|
this.getList()
|
|
},
|
|
// 重置
|
|
resetQuery() {
|
|
this.listQuery = {
|
|
params: {
|
|
modelSid: this.chesid,
|
|
airConditionerKey: '', // 空调key
|
|
baffleModelKey: '', // 导流罩key
|
|
bumperKey: '',
|
|
carColorKey: '',
|
|
configName: '',
|
|
configuringBaoKey: '',
|
|
fuelTankKey: '',
|
|
hubMaterialKey: '',
|
|
independentSourcesKey: '',
|
|
multimediaKey: '',
|
|
rearAxleRatioKey: '',
|
|
rearViewMirrorKey: '',
|
|
saddleKey: '',
|
|
seatKey: '',
|
|
slowMachineKey: '',
|
|
specificationKey: '',
|
|
suspensionKey: '',
|
|
tireCoverKey: '',
|
|
tireSizeKey: '',
|
|
useOrgSid: '',
|
|
wheelbaseKey: ''
|
|
},
|
|
current: 1,
|
|
size: 10,
|
|
total: 0
|
|
}
|
|
this.getList()
|
|
},
|
|
// 导出
|
|
handleDaoChu() {
|
|
this.$confirm('确定要导出数据, 是否继续?', '提示', {
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.poptitle {
|
|
width: 97%;
|
|
height: auto;
|
|
/*height: 50px;*/
|
|
line-height: 50px;
|
|
display: flex;
|
|
|
|
.conter_title {
|
|
/*flex: 1;*/
|
|
height: 50px;
|
|
width: 16%;
|
|
text-align: right;
|
|
line-height: 50px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.conter_content {
|
|
margin-left: 14px;
|
|
/*flex: 8;*/
|
|
.el-select {
|
|
/*height: auto;*/
|
|
width: 50%;
|
|
}
|
|
|
|
.addinputw {
|
|
width: 50%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.el-collapse {
|
|
border-top: 0 solid #e6ebf5;
|
|
border-bottom: 0 solid #e6ebf5;
|
|
}
|
|
|
|
.el-collapse-item__content {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.el-collapse-item__wrap {
|
|
border-bottom: 0 solid #ebeef5;
|
|
}
|
|
|
|
.el-collapse-item__header {
|
|
border-bottom: 0 solid #e6ebf5;
|
|
}
|
|
|
|
.searchli {
|
|
padding: 5px 100px;
|
|
}
|
|
|
|
.btn {
|
|
padding: 15px 0 15px 0;
|
|
border: 1px solid #e0e3eb;
|
|
}
|
|
|
|
.tab-header {
|
|
background-color: #edf1f7;
|
|
padding: 8px 20px;
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
.tab-header .el-form-item {
|
|
margin-bottom: 10px;
|
|
}
|
|
</style>
|
|
|