|
|
@ -13,294 +13,103 @@ |
|
|
|
<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-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-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 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 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-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 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 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 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 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 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 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 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 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 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 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 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 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 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-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 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.otherConfig" maxlength="125" placeholder="请输入常用配置名称" class="addinputw" |
|
|
|
clearable/> |
|
|
|
<el-input v-model="listQuery.params.configName" maxlength="125" placeholder="请输入常用配置名称" class="addinputw" clearable/> |
|
|
|
</el-form-item> |
|
|
|
<el-divider/> |
|
|
|
<div class="btn" style="text-align: center;"> |
|
|
@ -311,13 +120,11 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="listtop"> |
|
|
|
<div class="tit">[{{title}}]车型常用配置列表</div> |
|
|
|
<pageye v-show="total>0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size" |
|
|
|
class="pagination" @pagination="getList"/> |
|
|
|
<div class="tit">[{{ title }}]车型常用配置列表</div> |
|
|
|
<pageye v-show="list > 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 :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" label="序号" type="index" :index="indexMethod" align="center"/> |
|
|
|
<el-table-column label="操作" align="center" width="110px" class-name="small-padding fixed-width"> |
|
|
@ -429,35 +236,26 @@ |
|
|
|
</div> |
|
|
|
<div class="pages"> |
|
|
|
<!-- 翻页 --> |
|
|
|
<pagination v-show="total>0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size" |
|
|
|
class="pagination" @pagination="getList"/> |
|
|
|
<pagination v-show="list > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|
|
|
</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> |
|
|
|
|
|
|
|
<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 { mapGetters } from 'vuex' |
|
|
|
import { |
|
|
|
import { |
|
|
|
pagerList, |
|
|
|
deleteRel, |
|
|
|
setRel, |
|
|
|
pullDown |
|
|
|
} from '@/api/cheliang/basemodelconfig' |
|
|
|
import { |
|
|
|
getCheXing |
|
|
|
} from '@/api/cheliang/basevehiclecol' |
|
|
|
import Pagination from '@/components/pagination' |
|
|
|
import pageye from '@/components/pagination/pageye' |
|
|
|
import chexingpeizhijiageweihu from './chexingpeizhijiageweihuAdd' |
|
|
|
import changyongpeizhi from './changyongpeizhi' |
|
|
|
} from '@/api/cheliang/basemodelconfig' |
|
|
|
import Pagination from '@/components/pagination' |
|
|
|
import pageye from '@/components/pagination/pageye' |
|
|
|
import chexingpeizhijiageweihu from './chexingpeizhijiageweihuAdd' |
|
|
|
import changyongpeizhi from './changyongpeizhi' |
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: 'chexingpeizhi', |
|
|
|
components: { |
|
|
|
Pagination, |
|
|
@ -471,66 +269,37 @@ |
|
|
|
isSearchShow: false, |
|
|
|
searchxianshitit: '显示查询条件', |
|
|
|
title: '', |
|
|
|
// --按钮菜单------- |
|
|
|
// 查询 ----------- |
|
|
|
tableKey: 0, |
|
|
|
// list: null, |
|
|
|
list: [], |
|
|
|
namesArr: '', |
|
|
|
vehicleSid: '', |
|
|
|
total: 1, |
|
|
|
FormLoading: false, |
|
|
|
listLoading: false, |
|
|
|
listQuery: { |
|
|
|
params: { |
|
|
|
modelSid: '', |
|
|
|
airConditioner: '', // 空调 |
|
|
|
airConditionerKey: '', // 空调key |
|
|
|
baffleModel: '', // 导流罩 |
|
|
|
bumper: '', // 保险杠 |
|
|
|
bumperKey: '', // 保险杠key |
|
|
|
carColor: '', // 车身颜色 |
|
|
|
carColorKey: '', // 车身颜色key |
|
|
|
configuringBao: '', // 配置包 |
|
|
|
configuringBaoKey: '', // 配置包key |
|
|
|
fuelTank: '', // 油箱/气罐 |
|
|
|
fuelTankKey: '', // 油箱/气罐key |
|
|
|
hubMaterial: '', // 轮毂材质 |
|
|
|
hubMaterialKey: '', // 轮毂材质key |
|
|
|
independentSources: '', // 独立热源(有、无) |
|
|
|
independentSourcesKey: '', // 独立热源key(1有、0无) |
|
|
|
multimedia: '', // 多媒体 |
|
|
|
otherConfig: '', // 其他配置 |
|
|
|
rearAxleRatio: '', // 后桥速比 |
|
|
|
rearAxleRatioKey: '', // 后桥速比key |
|
|
|
rearViewMirror: '', // 后视镜 |
|
|
|
rearViewMirrorKey: '', // 后视镜key |
|
|
|
saddle: '', // 鞍座 |
|
|
|
saddleKey: '', // 鞍座key |
|
|
|
seat: '', // 座椅 |
|
|
|
seatKey: '', // 座椅key |
|
|
|
slowMachine: '', // 缓速器 |
|
|
|
slowMachineKey: '', // 缓速器key |
|
|
|
specification: '', // 驾驶室规格 |
|
|
|
specificationKey: '', // 驾驶室规格key |
|
|
|
suspension: '', // 悬架 |
|
|
|
suspensionKey: '', // 悬架key |
|
|
|
tireCover: '', // 护轮罩(有、无) |
|
|
|
tireCoverKey: '', // 护轮罩key(有、无) |
|
|
|
tireSize: '', // 轮胎规格 |
|
|
|
tireSizeKey: '', // 轮胎规格key |
|
|
|
wheelbase: '', // 轴距 |
|
|
|
wheelbaseKey: '' // 轴距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: 20 |
|
|
|
}, |
|
|
|
selectDate: undefined, |
|
|
|
temp: {}, // 添加和修改 |
|
|
|
templook: {}, // 查看实体 |
|
|
|
textMap: { |
|
|
|
update: '编辑', |
|
|
|
create: '创建' |
|
|
|
size: 10, |
|
|
|
total: 0 |
|
|
|
}, |
|
|
|
setRelList: { |
|
|
|
sid: '', // 车型与简述配置关联sid |
|
|
@ -549,12 +318,7 @@ |
|
|
|
}, |
|
|
|
sids: [], |
|
|
|
configurationItemsSid_list: [], // 简述配置sid |
|
|
|
names: '', // [ {{names}} ] |
|
|
|
chesid: '', |
|
|
|
dialogFormVisible: false, // 添加修改对话框状态 |
|
|
|
dialogFormShowVisible: false, // 查看对话框默认关闭状态 |
|
|
|
dialogStatus: '', // 对话框状态 |
|
|
|
typeOptions: [], |
|
|
|
carColor_list: [], // 车身颜色 |
|
|
|
slowMachine_list: [], // 缓速器 |
|
|
|
rearViewMirror_list: [], // 后视镜 |
|
|
@ -574,39 +338,8 @@ |
|
|
|
independentSources_list: [], // 独立热源 |
|
|
|
fuelTank_list: [], // 油箱 |
|
|
|
multimedia_list: [], // 多媒体 |
|
|
|
tureArrys: [{ |
|
|
|
value: 1, |
|
|
|
label: '是' |
|
|
|
}, |
|
|
|
{ |
|
|
|
value: 0, |
|
|
|
label: '否' |
|
|
|
rules: {} |
|
|
|
} |
|
|
|
], |
|
|
|
fenzuOptions: [{ |
|
|
|
value: '1', |
|
|
|
label: '单位' |
|
|
|
}, |
|
|
|
{ |
|
|
|
value: '2', |
|
|
|
label: '个人' |
|
|
|
} |
|
|
|
], |
|
|
|
rules: { |
|
|
|
// title: [{ required: true, message: '请填写', trigger: 'blur' }], |
|
|
|
// qc: [{ required: true, message: '请填写', trigger: 'blur' }], |
|
|
|
} |
|
|
|
// ------------------------------------ |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapGetters([ |
|
|
|
'id', |
|
|
|
'roles', |
|
|
|
'rolesIds', |
|
|
|
'departmentId', |
|
|
|
'departmentCode' |
|
|
|
]) |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.getType() |
|
|
@ -624,16 +357,11 @@ |
|
|
|
showGuanlian(row) { |
|
|
|
this.setRelList.modelSid = row.sid |
|
|
|
this.checkRelieve_list.modelSid = row.sid |
|
|
|
this.chesid = row.sid |
|
|
|
this.title = row.modelName |
|
|
|
this.listQuery.params.modelSid = row.sid |
|
|
|
this.getList() // 加载列表 |
|
|
|
}, |
|
|
|
init() { |
|
|
|
var name = this.$store.state.modelName |
|
|
|
console.log('789988888', name) |
|
|
|
this.names = name |
|
|
|
console.log('9639636', this.names) |
|
|
|
}, |
|
|
|
getType() { |
|
|
|
// 下拉框-车身颜色 |
|
|
|
pullDown({ |
|
|
@ -823,7 +551,7 @@ |
|
|
|
// 打开关联 |
|
|
|
handleGuanlian() { |
|
|
|
this.pageState = 3 |
|
|
|
this.$refs['changyongpeizhi'].showSetRel( this.setRelList.modelSid) |
|
|
|
this.$refs['changyongpeizhi'].showSetRel(this.setRelList.modelSid) |
|
|
|
}, |
|
|
|
// 解除关联 |
|
|
|
handleDelete() { |
|
|
@ -837,7 +565,7 @@ |
|
|
|
} |
|
|
|
// if (this.sids.length > 0) { |
|
|
|
console.log('解除关系所需参数', this.checkRelieve_list) |
|
|
|
this.checkRelieve_list.configurationItemsSid = this.configurationItemsSid_list[0] // |
|
|
|
this.checkRelieve_list.configurationItemsSid = this.configurationItemsSid_list[0] |
|
|
|
deleteRel(this.checkRelieve_list).then((response) => { |
|
|
|
if (response.success) { |
|
|
|
this.getList() |
|
|
@ -852,7 +580,6 @@ |
|
|
|
// }) |
|
|
|
// return |
|
|
|
// } |
|
|
|
|
|
|
|
}, |
|
|
|
// 返回 |
|
|
|
handleReturn() { |
|
|
@ -890,10 +617,10 @@ |
|
|
|
response.data.total > 0 |
|
|
|
) { |
|
|
|
this.list = response.data.records |
|
|
|
this.total = response.data.total |
|
|
|
this.listQuery.total = response.data.total |
|
|
|
} else { |
|
|
|
this.list = [] |
|
|
|
this.total = 0 |
|
|
|
this.listQuery.total = 0 |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
@ -904,53 +631,37 @@ |
|
|
|
}, |
|
|
|
// 重置 |
|
|
|
resetQuery() { |
|
|
|
this.listQuery.params = { |
|
|
|
airConditioner: '', // 空调 |
|
|
|
this.listQuery = { |
|
|
|
params: { |
|
|
|
modelSid: this.chesid, |
|
|
|
airConditionerKey: '', // 空调key |
|
|
|
baffleModel: '', // 导流罩 |
|
|
|
bumper: '', // 保险杠 |
|
|
|
bumperKey: '', // 保险杠key |
|
|
|
carColor: '', // 车身颜色 |
|
|
|
carColorKey: '', // 车身颜色key |
|
|
|
configuringBao: '', // 配置包 |
|
|
|
configuringBaoKey: '', // 配置包key |
|
|
|
fuelTank: '', // 油箱/气罐 |
|
|
|
fuelTankKey: '', // 油箱/气罐key |
|
|
|
hubMaterial: '', // 轮毂材质 |
|
|
|
hubMaterialKey: '', // 轮毂材质key |
|
|
|
independentSources: '', // 独立热源(有、无) |
|
|
|
independentSourcesKey: '', // 独立热源key(1有、0无) |
|
|
|
multimedia: '', // 多媒体 |
|
|
|
otherConfig: '', // 其他配置 |
|
|
|
rearAxleRatio: '', // 后桥速比 |
|
|
|
rearAxleRatioKey: '', // 后桥速比key |
|
|
|
rearViewMirror: '', // 后视镜 |
|
|
|
rearViewMirrorKey: '', // 后视镜key |
|
|
|
saddle: '', // 鞍座 |
|
|
|
saddleKey: '', // 鞍座key |
|
|
|
seat: '', // 座椅 |
|
|
|
seatKey: '', // 座椅key |
|
|
|
slowMachine: '', // 缓速器 |
|
|
|
slowMachineKey: '', // 缓速器key |
|
|
|
specification: '', // 驾驶室规格 |
|
|
|
specificationKey: '', // 驾驶室规格key |
|
|
|
suspension: '', // 悬架 |
|
|
|
suspensionKey: '', // 悬架key |
|
|
|
tireCover: '', // 护轮罩(有、无) |
|
|
|
tireCoverKey: '', // 护轮罩key(有、无) |
|
|
|
tireSize: '', // 轮胎规格 |
|
|
|
tireSizeKey: '', // 轮胎规格key |
|
|
|
wheelbase: '', // 轴距 |
|
|
|
wheelbaseKey: '' // 轴距key |
|
|
|
} |
|
|
|
baffleModelKey: '', // 导流罩key |
|
|
|
bumperKey: '', |
|
|
|
carColorKey: '', |
|
|
|
configName: '', |
|
|
|
configuringBaoKey: '', |
|
|
|
fuelTankKey: '', |
|
|
|
hubMaterialKey: '', |
|
|
|
independentSourcesKey: '', |
|
|
|
multimediaKey: '', |
|
|
|
rearAxleRatioKey: '', |
|
|
|
rearViewMirrorKey: '', |
|
|
|
saddleKey: '', |
|
|
|
seatKey: '', |
|
|
|
slowMachineKey: '', |
|
|
|
specificationKey: '', |
|
|
|
suspensionKey: '', |
|
|
|
tireCoverKey: '', |
|
|
|
tireSizeKey: '', |
|
|
|
useOrgSid: '', |
|
|
|
wheelbaseKey: '' |
|
|
|
}, |
|
|
|
|
|
|
|
// ----------------------------------方法-------------------- |
|
|
|
// 添加前数据初始化 |
|
|
|
resetTemp() { |
|
|
|
this.temp = {} |
|
|
|
current: 1, |
|
|
|
size: 10, |
|
|
|
total: 0 |
|
|
|
} |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
|
|
|
|
// 导出 |
|
|
|
handleDaoChu() { |
|
|
|
this.$confirm('确定要导出数据, 是否继续?', '提示', { |
|
|
@ -960,11 +671,11 @@ |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
.poptitle { |
|
|
|
.poptitle { |
|
|
|
width: 97%; |
|
|
|
height: auto; |
|
|
|
/*height: 50px;*/ |
|
|
@ -992,27 +703,27 @@ |
|
|
|
width: 50%; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.el-collapse { |
|
|
|
.el-collapse { |
|
|
|
border-top: 0 solid #e6ebf5; |
|
|
|
border-bottom: 0 solid #e6ebf5; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.el-collapse-item__content { |
|
|
|
.el-collapse-item__content { |
|
|
|
margin: 0; |
|
|
|
padding: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.el-collapse-item__wrap { |
|
|
|
.el-collapse-item__wrap { |
|
|
|
border-bottom: 0 solid #ebeef5; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.el-collapse-item__header { |
|
|
|
.el-collapse-item__header { |
|
|
|
border-bottom: 0 solid #e6ebf5; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.searchli { |
|
|
|
.searchli { |
|
|
|
padding: 5px 100px; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|