|
|
@ -1,4 +1,4 @@ |
|
|
|
<template xmlns="" xmlns="" xmlns="" xmlns="" xmlns=""> |
|
|
|
<template> |
|
|
|
<div class="app-container"> |
|
|
|
<!--Start 列表页面--> |
|
|
|
<div v-show="viewState === 1"> |
|
|
@ -9,301 +9,110 @@ |
|
|
|
<el-button type="primary" size="small" @click="handleUpdate()">修改</el-button> |
|
|
|
<el-button type="danger" size="small" @click="handleDelete()">删除</el-button> |
|
|
|
<el-button type="info" size="small" @click="handleReturn()">返回</el-button> |
|
|
|
<el-button type="info" size="small" @click="handleOpen()">进入关联表</el-button> |
|
|
|
<el-button type="primary" size="small" @click="handleOpen()">进入关联表</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<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="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;"> |
|
|
@ -315,22 +124,20 @@ |
|
|
|
</div> |
|
|
|
<div class="listtop"> |
|
|
|
<div class="tit">常用配置列表</div> |
|
|
|
<pageye v-show="total>0" :total="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%;" |
|
|
|
@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"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.relationState }}</span> |
|
|
|
<span>{{ scope.row.isRelationState === 1 ? '已关联' : '未关联' }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="使用状态" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.useState }}</span> |
|
|
|
<span>{{ scope.row.isUseState === 1 ? '已使用' : '未使用' }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="颜色" align="center"> |
|
|
@ -428,6 +235,11 @@ |
|
|
|
<span>{{ scope.row.multimedia }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="货箱" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.packingCase }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" align="center" width="80px" class-name="small-padding fixed-width"> |
|
|
|
<template slot-scope="{row}"> |
|
|
|
<el-button size="mini" type="primary" @click="handleCheck(row)">查看</el-button> |
|
|
@ -437,34 +249,18 @@ |
|
|
|
</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.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!--End 列表页面--> |
|
|
|
<changyongpeizhi-add v-show="viewState == 2 || viewState == 3" ref="divadd" @doback="resetState" |
|
|
|
@reloadlist="getList"></changyongpeizhi-add> |
|
|
|
<changyongpeizhi-add v-show="viewState == 2 || viewState == 3" ref="divadd" @doback="resetState" @reloadlist="getList"></changyongpeizhi-add> |
|
|
|
<changyongpeizhi-info v-show="viewState == 4" ref="divinfo" @doback="resetState"></changyongpeizhi-info> |
|
|
|
<changyongpeizhi-rel v-show="viewState == 5" ref="relation" @doback="resetState" |
|
|
|
@reloadlist="getList"></changyongpeizhi-rel> |
|
|
|
<changyongpeizhi-rel v-show="viewState == 5" ref="relation" @doback="resetState" @reloadlist="getList"></changyongpeizhi-rel> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { |
|
|
|
mapGetters |
|
|
|
} from 'vuex' |
|
|
|
import { |
|
|
|
pagerList, |
|
|
|
deleteBySids, |
|
|
|
pullDown |
|
|
|
} from '@/api/cheliang/basemodelconfig' |
|
|
|
import { |
|
|
|
setMIng, |
|
|
|
getMIng, |
|
|
|
getCHeap, |
|
|
|
setCHeap |
|
|
|
} from '@/utils/baocun' |
|
|
|
import { deleteBySids, pullDown, getList } from '@/api/cheliang/basemodelconfig' |
|
|
|
import Pagination from '@/components/pagination' |
|
|
|
import pageye from '@/components/pagination/pageye' |
|
|
|
import changyongpeizhiAdd from './changyongpeizhiAdd' |
|
|
@ -521,69 +317,40 @@ |
|
|
|
viewState: 1, |
|
|
|
isSearchShow: false, |
|
|
|
searchxianshitit: '显示查询条件', |
|
|
|
// --按钮菜单------- |
|
|
|
menuState: { |
|
|
|
add: false, // 添加 |
|
|
|
edit: false, // 编辑 |
|
|
|
delete: false, // 删除 |
|
|
|
view: false, // 查看 |
|
|
|
audit: false, // 审核 |
|
|
|
input: false, // 导入 |
|
|
|
output: false, // 导出 |
|
|
|
upload: false, // 同步 |
|
|
|
release: false // 下发 |
|
|
|
}, |
|
|
|
// 查询 ----------- |
|
|
|
tableKey: 0, |
|
|
|
// list: null, |
|
|
|
list: [], |
|
|
|
namesArr: '', |
|
|
|
vehicleSid: '', |
|
|
|
total: 1, |
|
|
|
FormLoading: false, |
|
|
|
listLoading: false, |
|
|
|
listQuery: { |
|
|
|
params: { |
|
|
|
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: '', |
|
|
|
bumperKey: '', |
|
|
|
carColorKey: '', |
|
|
|
configName: '', |
|
|
|
configuringBaoKey: '', |
|
|
|
fuelTankKey: '', |
|
|
|
hubMaterialKey: '', |
|
|
|
independentSourcesKey: '', |
|
|
|
multimediaKey: '', |
|
|
|
rearAxleRatioKey: '', |
|
|
|
rearViewMirrorKey: '', |
|
|
|
saddleKey: '', |
|
|
|
seatKey: '', |
|
|
|
slowMachineKey: '', |
|
|
|
specificationKey: '', |
|
|
|
suspensionKey: '', |
|
|
|
tireCoverKey: '', |
|
|
|
tireSizeKey: '', |
|
|
|
wheelbaseKey: '' |
|
|
|
}, |
|
|
|
current: 1, |
|
|
|
size: 20 |
|
|
|
total: 0, |
|
|
|
size: 10 |
|
|
|
}, |
|
|
|
selectDate: undefined, |
|
|
|
temp: {}, // 添加和修改 |
|
|
@ -618,49 +385,10 @@ |
|
|
|
independentSources_list: [], // 独立热源 |
|
|
|
fuelTank_list: [], // 油箱 |
|
|
|
multimedia_list: [], // 多媒体 |
|
|
|
tureArrys: [{ |
|
|
|
value: 1, |
|
|
|
label: '是' |
|
|
|
}, |
|
|
|
{ |
|
|
|
value: 0, |
|
|
|
label: '否' |
|
|
|
} |
|
|
|
], |
|
|
|
fenzuOptions: [{ |
|
|
|
value: '1', |
|
|
|
label: '单位' |
|
|
|
}, |
|
|
|
{ |
|
|
|
value: '2', |
|
|
|
label: '个人' |
|
|
|
} |
|
|
|
], |
|
|
|
rules: { |
|
|
|
// title: [{ required: true, message: '请填写', trigger: 'blur' }], |
|
|
|
// qc: [{ required: true, message: '请填写', trigger: 'blur' }], |
|
|
|
} |
|
|
|
// ------------------------------------ |
|
|
|
rules: {} |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapGetters([ |
|
|
|
'id', |
|
|
|
'roles', |
|
|
|
'rolesIds', |
|
|
|
'departmentId', |
|
|
|
'departmentCode' |
|
|
|
]) |
|
|
|
}, |
|
|
|
created() { |
|
|
|
// this.chesid = this.$route.query.sid |
|
|
|
// 初始化变量 |
|
|
|
// this.init() |
|
|
|
// var ChexinSid = getMIng() |
|
|
|
// console.log('9638888', ChexinSid) |
|
|
|
// this.vehicleSid = ChexinSid |
|
|
|
// this.listQuery.params.vehicleSid = this.vehicleSid |
|
|
|
// console.log('7822222222', this.listQuery.params.vehicleSid) |
|
|
|
this.getList() // 加载列表 |
|
|
|
this.getType() |
|
|
|
}, |
|
|
@ -854,7 +582,26 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleOpen() { |
|
|
|
if (this.sids.length === 1) { |
|
|
|
if (this.sids[0].relationState === 1) { |
|
|
|
this.viewState = 5 |
|
|
|
this.$refs['relation'].init(this.sids[0].sid) |
|
|
|
} |
|
|
|
} else if (this.sids.length > 1) { |
|
|
|
this.$notify({ |
|
|
|
title: '提示', |
|
|
|
message: '不能选中多个常用配置!!', |
|
|
|
type: 'info', |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$notify({ |
|
|
|
title: '提示', |
|
|
|
message: '请选择常用配置!', |
|
|
|
type: 'error', |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
// 返回 |
|
|
|
handleReturn() { |
|
|
@ -872,7 +619,10 @@ |
|
|
|
handleSelectionChange(row) { |
|
|
|
const aa = [] |
|
|
|
row.forEach((element) => { |
|
|
|
aa.push(element.sid) |
|
|
|
aa.push({ |
|
|
|
sid: element.sid, |
|
|
|
relationState: element.isRelationState |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.sids = aa |
|
|
|
console.log('选择的数据', this.sids) |
|
|
@ -880,7 +630,7 @@ |
|
|
|
// 查询列表信息 |
|
|
|
getList() { |
|
|
|
this.listLoading = true |
|
|
|
pagerList(this.listQuery).then((response) => { |
|
|
|
getList(this.listQuery).then((response) => { |
|
|
|
this.listLoading = false |
|
|
|
if ( |
|
|
|
response.code === '200' && |
|
|
@ -888,10 +638,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 |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
@ -903,61 +653,33 @@ |
|
|
|
// 重置 |
|
|
|
resetQuery() { |
|
|
|
this.listQuery.params = { |
|
|
|
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: '', |
|
|
|
bumperKey: '', |
|
|
|
carColorKey: '', |
|
|
|
configName: '', |
|
|
|
configuringBaoKey: '', |
|
|
|
fuelTankKey: '', |
|
|
|
hubMaterialKey: '', |
|
|
|
independentSourcesKey: '', |
|
|
|
multimediaKey: '', |
|
|
|
rearAxleRatioKey: '', |
|
|
|
rearViewMirrorKey: '', |
|
|
|
saddleKey: '', |
|
|
|
seatKey: '', |
|
|
|
slowMachineKey: '', |
|
|
|
specificationKey: '', |
|
|
|
suspensionKey: '', |
|
|
|
tireCoverKey: '', |
|
|
|
tireSizeKey: '', |
|
|
|
wheelbaseKey: '' |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// ----------------------------------方法-------------------- |
|
|
|
// 添加前数据初始化 |
|
|
|
resetTemp() { |
|
|
|
this.temp = {} |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
// 打开添加 |
|
|
|
handleCreate() { |
|
|
|
this.viewState = 2 |
|
|
|
this.$refs['divadd'].showAdd() |
|
|
|
// this.$router.push({ |
|
|
|
// path: '/cheliang/chexingpeizhiAdd/0', |
|
|
|
// query: { |
|
|
|
// sid: this.chesid |
|
|
|
// } |
|
|
|
// }) |
|
|
|
}, |
|
|
|
// 打开修改 |
|
|
|
handleUpdate() { |
|
|
@ -966,9 +688,6 @@ |
|
|
|
this.viewState = 3 |
|
|
|
const sid = this.sids[0] |
|
|
|
this.$refs['divadd'].showEdit(sid) |
|
|
|
// this.$router.push({ |
|
|
|
// path: `/cheliang/chexingpeizhiAdd/${this.sids[0]}` |
|
|
|
// }) |
|
|
|
} else if (this.sids.length > 1) { |
|
|
|
this.$notify({ |
|
|
|
title: '提示', |
|
|
@ -992,12 +711,6 @@ |
|
|
|
this.viewState = 4 |
|
|
|
const sid = row.sid |
|
|
|
this.$refs['divinfo'].showInfo(sid, row) |
|
|
|
// this.$router.push({ |
|
|
|
// path: '/cheliang/chexingpeizhiInfo', |
|
|
|
// query: { |
|
|
|
// sid: row.sid |
|
|
|
// } |
|
|
|
// }) |
|
|
|
}, |
|
|
|
// 根据本行ID删除数据 |
|
|
|
handleDelete() { |
|
|
@ -1060,8 +773,18 @@ |
|
|
|
/deep/ .el-collapse-item__header { |
|
|
|
border-bottom: 0px solid #e6ebf5; |
|
|
|
} |
|
|
|
.listtop { |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
align-items: center; |
|
|
|
border: 1px solid #dfe4ed; |
|
|
|
height: 40px; |
|
|
|
} |
|
|
|
.tit { |
|
|
|
margin-bottom: -10px; |
|
|
|
} |
|
|
|
|
|
|
|
.searchli { |
|
|
|
padding: 5px 100px; |
|
|
|
.pagination { |
|
|
|
margin-bottom: -10px; |
|
|
|
} |
|
|
|
</style> |
|
|
|