Browse Source

修复测试文档中供应链管理--常用配置管理、车型管理的问题

master
yunuo970428 3 years ago
parent
commit
d91f895c3d
  1. 20
      anrui-scm/anrui-scm-ui/src/api/cheliang/basemodelconfig.js
  2. 20
      anrui-scm/anrui-scm-ui/src/api/cheliang/basevehiclemodel.js
  3. 4
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexing.vue
  4. 14
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexingAdd.vue
  5. 6
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/changyongpeizhi.vue
  6. 41
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/chexingguanlianchangyong.vue
  7. 4
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/chexingpeizhijiageweihuAdd.vue
  8. 1393
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/changyongpeizhi.vue
  9. 1793
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/changyongpeizhiAdd.vue
  10. 211
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/changyongpeizhiInfo.vue
  11. 255
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/ohter/changyongpeizhiInfo.vue
  12. 812
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/ohter/changyongpeizhiRel.vue

20
anrui-scm/anrui-scm-ui/src/api/cheliang/basemodelconfig.js

@ -1,11 +1,12 @@
import request from '@/utils/request'
import qs from 'qs'
import {data} from "autoprefixer";
// 车型与常用配置关联表条件查询 已改
export function pagerList(data) {
return request({
url: '/base/basevehmodelconfig/listPage', data,
//url: '/base/v1/basemodelconfig/pagerList', data,
url: '/base/basevehmodelconfig/listPage',
data,
method: 'post',
headers: { 'Content-Type': 'application/json' }
})
@ -14,7 +15,8 @@ export function pagerList(data) {
// 常用配置
export function getList(data) {
return request({
url: '/base/v1/basemodelconfig/pagerList', data,
url: '/base/v1/basemodelconfig/pagerList',
data,
method: 'post',
headers: { 'Content-Type': 'application/json' }
})
@ -30,14 +32,12 @@ export function setRel(data) {
}
// PC-车型与常用配置解除关联关系
export function deleteRel(params) {
export function deleteRel(data) {
return request({
url: '/base/basevehmodelconfig/checkRelieve',
method: 'DELETE',
params: {
modelSid: params.modelSid,
configurationItemsSid: params.configurationItemsSid
}
data: data,
headers: { 'Content-Type': 'application/json' }
})
}
@ -60,7 +60,7 @@ export function update(data) {
})
}
//添加
// 添加
export function SaveList(data) {
return request({
url: '/base/v1/basemodelconfig/save', // data,
@ -70,7 +70,7 @@ export function SaveList(data) {
})
}
//修改
// 修改
export function Update(data, sid) {
return request({
url: '/base/v1/basemodelconfig/update/' + sid,

20
anrui-scm/anrui-scm-ui/src/api/cheliang/basevehiclemodel.js

@ -32,7 +32,7 @@ export function deleteBySids(params) {
})
}
//详情回显 已改
// 详情回显 已改
export function details(data) {
return request({
url: '/base/v1/basevehiclemodel/details/' + data,
@ -41,7 +41,7 @@ export function details(data) {
})
}
//编辑回显 已改
// 编辑回显 已改
export function getAll(data) {
return request({
url: '/base/v1/basevehiclemodel/getAll/' + data,
@ -50,12 +50,12 @@ export function getAll(data) {
})
}
//车型列表导出
// 车型列表导出
export function basefinbankExportExcel(data) {
return request({
url: '/base/v1/basevehiclemodel/exportExcel' + data,
method: 'get',
responseType: 'blob',// 表明返回服务器返回的数据类型
responseType: 'blob', // 表明返回服务器返回的数据类型
data: qs.stringify(data)
})
}
@ -106,7 +106,7 @@ export function namesDownBySid(data) {
})
}
//根据车型模糊查询下拉框 暂时没有用
// 根据车型模糊查询下拉框 暂时没有用
export function selectDownPlus(data) {
return request({
url: '/base/v1/basevehiclemodel/selectDownPlus',
@ -115,6 +115,16 @@ export function selectDownPlus(data) {
})
}
// 常用配置--车型关联
export function selectVehModelByConfigSid(data) {
return request({
url: '/base/v1/basevehiclemodel/selectVehModelByConfigSid ',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
}
// 获取组织(单选组织架构) 暂时没有用
export function getOrg(data) {
return request({

4
anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexing.vue

@ -87,7 +87,7 @@
</div>
<div class="listtop">
<div class="tit">车型信息列表</div>
<pageye v-show="list > 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%;" @selection-change="handleSelectionChange">
@ -135,7 +135,7 @@
</div>
<div class="pages">
<!-- 翻页 -->
<pagination v-show="list > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> <!--vehicleModelUrls-->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> <!--vehicleModelUrls-->
</div>
</div>
<!-- End 列表页面 -->

14
anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexingAdd.vue

@ -900,12 +900,14 @@
},
zuzhi0(data) {
data.forEach((e) => {
if (e.children.length != 0) {
this.zuzhi0(e.children)
} else {
delete e.children
this.dataArr.push(e)
return
if (e.children) {
if (e.children.length != 0) {
this.zuzhi0(e.children)
} else {
delete e.children
this.dataArr.push(e)
return
}
}
})
},

6
anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/changyongpeizhi.vue

@ -110,7 +110,7 @@
</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;">
@ -122,7 +122,7 @@
</div>
<div class="listtop">
<div class="tit">常用配置列表</div>
<pageye v-show="list > 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%;" @selection-change="handleSelectionChange">
@ -227,7 +227,7 @@
</div>
<div class="pages">
<!-- 翻页 -->
<pagination v-show="list > 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>
<!--End 列表页面-->

41
anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/chexingguanlianchangyong.vue

@ -132,7 +132,7 @@
<el-button size="mini" type="primary" @click="handleJiage(row)">价格维护</el-button>
</template>
</el-table-column>
<el-table-column label="指导价" align="center">
<el-table-column label="指导价(万元)" align="center">
<template slot-scope="scope">
<span>{{ scope.row.guidedPrice }}</span>
</template>
@ -311,11 +311,6 @@ export default {
priceValidity: '', //
isCommonModel: '' //
},
//
checkRelieve_list: {
modelSid: '',
configurationItemsSid: ''
},
sids: [],
configurationItemsSid_list: [], // sid
chesid: '',
@ -356,7 +351,6 @@ export default {
},
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
@ -558,28 +552,14 @@ export default {
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()
}
})
}
if (this.sids.length > 1) {
this.$message({ showClose: true, type: 'error', message: '只能选择一条记录进行操作' })
return
}
// if (this.sids.length > 0) {
console.log('解除关系所需参数', this.checkRelieve_list)
this.checkRelieve_list.configurationItemsSid = this.configurationItemsSid_list[0]
deleteRel(this.checkRelieve_list).then((response) => {
if (response.success) {
this.getList()
}
})
// } else {
// this.$notify({
// title: '',
// message: '!!',
// type: 'error',
// duration: 2000
// })
// return
// }
},
//
handleReturn() {
@ -599,7 +579,10 @@ export default {
const bb = []
row.forEach((element) => {
aa.push(element.sid)
bb.push(element.configurationItemsSid)
bb.push({
modelSid: element.modelSid,
configurationItemsSid: element.configurationItemsSid
})
})
this.sids = aa
this.configurationItemsSid_list = bb

4
anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/chexingpeizhijiageweihuAdd.vue

@ -37,7 +37,7 @@
</el-row>
<el-row>
<el-col :span="6" class="tleftb">
<span>厂家结算价</span>
<span>厂家结算价(万元)</span>
</el-col>
<el-col :span="6">
<el-form-item>
@ -45,7 +45,7 @@
</el-form-item>
</el-col>
<el-col :span="6" class="tleftb">
<span>销售指导价</span>
<span>销售指导价(万元)</span>
</el-col>
<el-col :span="6">
<el-form-item>

1393
anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/changyongpeizhi.vue

File diff suppressed because it is too large

1793
anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/changyongpeizhiAdd.vue

File diff suppressed because it is too large

211
anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/changyongpeizhiInfo.vue

@ -3,9 +3,8 @@
<div class="tab-header webtop">
<div>常用配置详情</div>
<div>
<!-- <el-button type="primary" size="small" @click="handleCreate()">保存</el-button> -->
<el-button type="primary" size="small">下载</el-button>
<el-button type="info" size="small" @click="handleReturn()">返回</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listadd">
@ -13,11 +12,11 @@
<div class="title">常用配置详情</div>
<el-row>
<el-col :span="2">
<span>车身颜色</span>
<span>颜色</span>
</el-col>
<el-col :span="3">
<el-form-item prop="carColor">
<span>{{temp.carColor}}</span>
<span>{{ temp.carColor }}</span>
</el-form-item>
</el-col>
<el-col :span="2">
@ -25,7 +24,7 @@
</el-col>
<el-col :span="3">
<el-form-item prop="slowMachine">
<span>{{temp.slowMachine}}</span>
<span>{{ temp.slowMachine }}</span>
</el-form-item>
</el-col>
<el-col :span="2">
@ -33,15 +32,15 @@
</el-col>
<el-col :span="3">
<el-form-item prop="rearViewMirror">
<span>{{temp.rearViewMirror}}</span>
<span>{{ temp.rearViewMirror }}</span>
</el-form-item>
</el-col>
<el-col :span="2">
<span>轮胎规格</span>
<span>轮胎</span>
</el-col>
<el-col :span="3">
<el-form-item prop="tireSize">
<span>{{temp.tireSize}}</span>
<span>{{ temp.tireSize }}</span>
</el-form-item>
</el-col>
<el-col :span="2">
@ -49,7 +48,7 @@
</el-col>
<el-col :span="2">
<el-form-item prop="specification">
<span>{{temp.specification}}</span>
<span>{{ temp.specification }}</span>
</el-form-item>
</el-col>
</el-row>
@ -59,7 +58,7 @@
</el-col>
<el-col :span="3">
<el-form-item prop="rearAxleRatio">
<span>{{temp.rearAxleRatio}}</span>
<span>{{ temp.rearAxleRatio }}</span>
</el-form-item>
</el-col>
<el-col :span="2">
@ -67,7 +66,7 @@
</el-col>
<el-col :span="3">
<el-form-item prop="airConditioner">
<span>{{temp.airConditioner}}</span>
<span>{{ temp.airConditioner }}</span>
</el-form-item>
</el-col>
<el-col :span="2">
@ -75,7 +74,7 @@
</el-col>
<el-col :span="3">
<el-form-item prop="hubMaterial">
<span>{{temp.hubMaterial}}</span>
<span>{{ temp.hubMaterial }}</span>
</el-form-item>
</el-col>
<el-col :span="2">
@ -83,7 +82,7 @@
</el-col>
<el-col :span="3">
<el-form-item prop="baffleModel">
<span>{{temp.baffleModel}}</span>
<span>{{ temp.baffleModel }}</span>
</el-form-item>
</el-col>
<el-col :span="2">
@ -91,7 +90,7 @@
</el-col>
<el-col :span="2">
<el-form-item prop="suspension">
<span>{{temp.suspension}}</span>
<span>{{ temp.suspension }}</span>
</el-form-item>
</el-col>
</el-row>
@ -101,7 +100,7 @@
</el-col>
<el-col :span="3">
<el-form-item prop="seat">
<span>{{temp.seat}}</span>
<span>{{ temp.seat }}</span>
</el-form-item>
</el-col>
<el-col :span="2">
@ -109,7 +108,7 @@
</el-col>
<el-col :span="3">
<el-form-item prop="tireCover">
<span>{{temp.tireCover}}</span>
<span>{{ temp.tireCover }}</span>
</el-form-item>
</el-col>
<el-col :span="2">
@ -117,7 +116,7 @@
</el-col>
<el-col :span="3">
<el-form-item prop="saddle">
<span>{{temp.saddle}}</span>
<span>{{ temp.saddle }}</span>
</el-form-item>
</el-col>
<el-col :span="2">
@ -125,7 +124,7 @@
</el-col>
<el-col :span="3">
<el-form-item prop="wheelbase">
<span>{{temp.wheelbase}}</span>
<span>{{ temp.wheelbase }}</span>
</el-form-item>
</el-col>
<el-col :span="2">
@ -133,7 +132,7 @@
</el-col>
<el-col :span="2">
<el-form-item prop="bumper">
<span>{{temp.bumper}}</span>
<span>{{ temp.bumper }}</span>
</el-form-item>
</el-col>
</el-row>
@ -143,7 +142,7 @@
</el-col>
<el-col :span="3">
<el-form-item prop="configuringBao">
<span>{{temp.configuringBao}}</span>
<span>{{ temp.configuringBao }}</span>
</el-form-item>
</el-col>
<el-col :span="2">
@ -151,27 +150,31 @@
</el-col>
<el-col :span="3">
<el-form-item prop="independentSources">
<span>{{temp.independentSources}}</span>
<span>{{ temp.independentSources }}</span>
</el-form-item>
</el-col>
<el-col :span="2">
<span>油箱/气罐</span>
<span>燃料箱</span>
</el-col>
<el-col :span="3">
<el-form-item prop="fuelTank">
<span>{{temp.fuelTank}}</span>
<span>{{ temp.fuelTank }}</span>
</el-form-item>
</el-col>
<el-col :span="2">
<span>多媒体</span> <!-- 0 1 -->
<span>多媒体</span>
</el-col>
<el-col :span="3">
<el-form-item prop="multimedia">
<span>{{temp.multimedia}}</span>
<span>{{ temp.multimedia }}</span>
</el-form-item>
</el-col>
<el-col :span="2"/>
<el-col :span="2"/>
<el-col :span="2">
<span>货箱</span>
</el-col>
<el-col :span="2">
<span>{{ temp.packingCase }}</span>
</el-col>
</el-row>
<el-row>
<el-col :span="2">
@ -179,7 +182,7 @@
</el-col>
<el-col :span="22">
<el-form-item prop="otherConfig">
<span>{{temp.otherConfig}}</span>
<span>{{ temp.otherConfig }}</span>
</el-form-item>
</el-col>
</el-row>
@ -189,125 +192,47 @@
</template>
<script>
import { mapGetters } from 'vuex'
import { details } from '@/api/cheliang/basemodelconfig'
// import { getFileType, parseDate, parseTime, ConvertMenuState } from "@/utils";
// import { findButtonByUserId } from '@/api/sys/permission'
export default {
name: 'changyongpeizhiInfo',
// components: { },
data() {
return {
// ---------
menuState: {
add: false, //
edit: false, //
delete: false, //
view: false, //
audit: false, //
input: false, //
output: false, //
upload: false, //
release: false //
},
FormLoading: false,
listLoading: false,
temp: {}, //
templook: { titlea: '00000112' }, //
textMap: {
update: '修改',
create: '创建'
},
tempDate: {},
dialogFormVisible: false, //
dialogFormShowVisible: false, //
dialogStatus: '', //
fenzuOptions: [],
rules: {
title: [{ required: true, message: '请填写', trigger: 'blur' }],
qc: [{ required: true, message: '请填写全称', trigger: 'blur' }]
}
// ------------------------------------
}
},
computed: {
...mapGetters([
'id',
'roles',
'rolesIds',
'departmentId',
'departmentCode'
])
},
created() {
//
// this.init()
//
// this.handleUpdate()
import { details } from '@/api/cheliang/basemodelconfig'
export default {
name: 'changyongpeizhiInfo',
data() {
return {
FormLoading: false,
temp: {}, //
rules: {}
}
},
methods: {
//
handleReturn() {
this.$emit('doback')
},
methods: {
init() {
this.tempDate.sid = this.$route.query.sid
// .
// findButtonByUserId(this.$route.path).then(response => {
// if (
// response.code === 20000 &&
// response.data &&
// response.data.length > 0
// ) {
// this.menuState = ConvertMenuState(response.data) //
// }
// })
},
// ------------------------------------------------------
//
handleReturn() {
this.tempDate = {}
this.$emit('doback')
},
//
resetTemp() {
this.temp = {
jc: '', // false string
organizationId: '', // false string
qc: '', // false string
remark: '', // false
string: '', //
state: '' //
//
showInfo(sid, row) {
this.FormLoading = true
details(sid).then((response) => {
this.FormLoading = false
if (response.code === '200') {
this.temp = response.data
} else {
this.$notify({
title: '失败',
message: '查询失败',
type: 'error'
})
}
},
//
showInfo(sid, row) {
this.FormLoading = true
details(sid).then((response) => {
this.FormLoading = false
if (response.code === '200') {
this.temp = response.data
} else {
this.$notify({
title: '失败',
message: '查询失败',
type: 'error'
})
}
})
}
})
}
}
}
</script>
<style scoped>
/deep/ .el-col-2,.el-col-1 {
text-align: right;
float: left;
font-size: 14px;
color: #606266;
line-height: 40px !important;
font-weight: 600;
}
.addinputw {
width: 100% !important;
}
/deep/ .el-col-2, .el-col-1 {
text-align: right;
float: left;
font-size: 14px;
color: #606266;
line-height: 40px !important;
font-weight: 600;
}
</style>

255
anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/ohter/changyongpeizhiInfo.vue

@ -3,7 +3,7 @@
<div class="tab-header webtop">
<div>车型详情</div>
<div>
<el-button type="info" size="small" @click="handleReturn()">返回</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listadd">
@ -14,16 +14,16 @@
<span>品牌</span>
</el-col>
<el-col :span="8">
<el-form-item prop="carBrand">
<span>{{temp.carBrand}}</span>
<el-form-item>
<span>{{ temp.brandName }}</span>
</el-form-item>
</el-col>
<el-col :span="4">
<span>车型编码</span>
</el-col>
<el-col :span="8">
<el-form-item prop="otherConfig">
<span>{{temp.otherConfig}}</span>
<el-form-item>
<span>{{ temp.vehicleTypeCode }}</span>
</el-form-item>
</el-col>
</el-row>
@ -32,16 +32,16 @@
<span>功能</span>
</el-col>
<el-col :span="8">
<el-form-item prop="vehicleFunction">
<span>{{temp.vehicleFunction}}</span>
<el-form-item>
<span>{{ temp.vehicleTypeValue }}</span>
</el-form-item>
</el-col>
<el-col :span="4">
<span>系列</span>
</el-col>
<el-col :span="8">
<el-form-item prop="series">
<span>{{temp.series}}</span>
<el-form-item>
<span>{{ temp.productLineValue }}</span>
</el-form-item>
</el-col>
</el-row>
@ -50,16 +50,16 @@
<span>驱动</span>
</el-col>
<el-col :span="8">
<el-form-item prop="driveForm">
<span>{{temp.driveForm}}</span>
<el-form-item>
<span>{{ temp.driveFormValue }}</span>
</el-form-item>
</el-col>
<el-col :span="4">
<span>马力</span>
</el-col>
<el-col :span="8">
<el-form-item prop="power">
<span>{{temp.power}}</span>
<el-form-item>
<span>{{ temp.powerValue }}</span>
</el-form-item>
</el-col>
</el-row>
@ -68,16 +68,16 @@
<span>版本</span>
</el-col>
<el-col :span="8">
<el-form-item prop="vehicleVersion">
<span>{{temp.vehicleVersion}}</span>
<el-form-item>
<span>{{ temp.vehicleVersionValue }}</span>
</el-form-item>
</el-col>
<el-col :span="4">
<span>燃料</span>
</el-col>
<el-col :span="8">
<el-form-item prop="fuelType">
<span>{{temp.fuelType}}</span>
<el-form-item>
<span>{{ temp.fuelTypeValue }}</span>
</el-form-item>
</el-col>
</el-row>
@ -86,16 +86,16 @@
<span>变速箱</span>
</el-col>
<el-col :span="8">
<el-form-item prop="gearboxType">
<span>{{temp.gearboxType}}</span>
<el-form-item>
<span>{{ temp.gearboxTypeValue }}</span>
</el-form-item>
</el-col>
<el-col :span="4">
<span>排放标准</span>
</el-col>
<el-col :span="8">
<el-form-item prop="emissionStandard">
<span>{{temp.emissionStandard}}</span>
<el-form-item>
<span>{{ temp.emissionStandardValue }}</span>
</el-form-item>
</el-col>
</el-row>
@ -104,16 +104,16 @@
<span>发动机型号</span>
</el-col>
<el-col :span="8">
<el-form-item prop="engineType">
<span>{{temp.engineType}}</span>
<el-form-item>
<span>{{ temp.engineTypeValue }}</span>
</el-form-item>
</el-col>
<el-col :span="4">
<span>细分市场</span>
</el-col>
<el-col :span="8">
<el-form-item prop="marketSegments">
<span>{{temp.marketSegments}}</span>
<el-form-item>
<span>{{ temp.marketSegments }}</span>
</el-form-item>
</el-col>
</el-row>
@ -122,35 +122,31 @@
<span>规格型号</span>
</el-col>
<el-col :span="8">
<el-form-item prop="specifications">
<span>{{temp.specifications}}</span>
<el-form-item>
<span>{{ temp.specifications }}</span>
</el-form-item>
</el-col>
<el-col :span="4">
<span>系别</span> <!--???-->
<span>系别</span>
</el-col>
<el-col :span="8">
<el-form-item prop="series">
<span>{{temp.series}}</span>
<el-form-item>
<span>{{ temp.departmentValue }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4">
<span>内部编码</span> <!--???-->
<span>内部编码</span>
</el-col>
<el-col :span="8">
<el-form-item prop="carColor">
<span>{{temp.carColor}}</span>
<el-form-item >
<span>{{ temp.insideCode }}</span>
</el-form-item>
</el-col>
<el-col :span="4">
<span>货箱</span> <!--???-->
</el-col>
<el-col :span="8">
<el-form-item prop="slowMachine">
<span>{{temp.slowMachine}}</span>
</el-form-item>
</el-col>
</el-row>
<div class="addtable">
@ -160,116 +156,111 @@
</div>
</div>
<template class="tablelist">
<el-table
:data="temp.list"
:index="index"
border
style="width: 100%"
>
<el-table-column
align="center"
label="序号"
type="index"
width="50"
/>
<el-table-column prop="mNum" width="150" label="指导价" align="center">
<el-table :data="temp.baseModelConfigVo" :index="index" border style="width: 100%">
<el-table-column align="center" label="序号" type="index" width="50"/>
<el-table-column prop="mNum" width="150" label="指导价(万元)" align="center">
<template slot-scope="props">
<span>{{props.row.price}}</span>
<span>{{ props.row.guidedPrice }}</span>
</template>
</el-table-column>
<el-table-column prop="mName" width="150" label="颜色" align="center">
<template slot-scope="props">
<span>{{props.row.carColor}}</span>
<span>{{ props.row.carColor }}</span>
</template>
</el-table-column>
<el-table-column prop="model" width="150" label="缓速器" align="center">
<template slot-scope="props">
<span>{{props.row.slowMachine}}</span>
<span>{{ props.row.slowMachine }}</span>
</template>
</el-table-column>
<el-table-column prop="year" width="95" label="后视镜" align="center">
<template slot-scope="props">
<span>{{props.row.rearViewMirror}}</span>
<span>{{ props.row.rearViewMirror }}</span>
</template>
</el-table-column>
<el-table-column prop="logisticsCustomer" width="95" label="轮胎" align="center">
<template slot-scope="props">
<span>{{props.row.tireSize}}</span>
<span>{{ props.row.tireSize }}</span>
</template>
</el-table-column>
<el-table-column prop="company" width="150" label="驾驶室" align="center">
<template slot-scope="props">
<span>{{props.row.specification}}</span>
<span>{{ props.row.specification }}</span>
</template>
</el-table-column>
<el-table-column prop="netReceiptsNum" width="150" label="后桥速比" align="center">
<template slot-scope="props">
<span>{{props.row.rearAxleRatio}}</span>
<span>{{ props.row.rearAxleRatio }}</span>
</template>
</el-table-column>
<el-table-column prop="receivingWarehouse" width="150" label="空调" align="center">
<template slot-scope="props">
<span>{{props.row.airConditioner}}</span>
<span>{{ props.row.airConditioner }}</span>
</template>
</el-table-column>
<el-table-column prop="position" width="150" label="轮毂材质" align="center">
<template slot-scope="props">
<span>{{props.row.hubMaterial}}</span>
<span>{{ props.row.hubMaterial }}</span>
</template>
</el-table-column>
<el-table-column prop="batchNum" width="150" label="导流罩" align="center">
<template slot-scope="props">
<span>{{props.row.baffleModel}}</span>
<span>{{ props.row.baffleModel }}</span>
</template>
</el-table-column>
<el-table-column prop="cargoOwner" width="120" label="悬架" align="center">
<template slot-scope="props">
<span>{{props.row.suspension}}</span>
<span>{{ props.row.suspension }}</span>
</template>
</el-table-column>
<el-table-column prop="remarks" width="150" label="座椅" align="center">
<template slot-scope="props">
<span>{{props.row.seat}}</span>
<span>{{ props.row.seat }}</span>
</template>
</el-table-column>
<el-table-column prop="remarks" width="150" label="护轮罩" align="center">
<template slot-scope="props">
<span>{{props.row.tireCover}}</span>
<span>{{ props.row.tireCover }}</span>
</template>
</el-table-column>
<el-table-column prop="remarks" width="150" label="鞍座" align="center">
<template slot-scope="props">
<span>{{props.row.saddle}}</span>
<span>{{ props.row.saddle }}</span>
</template>
</el-table-column>
<el-table-column prop="remarks" width="150" label="轴距" align="center">
<template slot-scope="props">
<span>{{props.row.wheelbase}}</span>
<span>{{ props.row.wheelbase }}</span>
</template>
</el-table-column>
<el-table-column prop="remarks" width="150" label="保险杠" align="center">
<template slot-scope="props">
<span>{{props.row.bumper}}</span>
<span>{{ props.row.bumper }}</span>
</template>
</el-table-column>
<el-table-column prop="remarks" width="150" label="配置包" align="center">
<template slot-scope="props">
<span>{{props.row.configuringBao}}</span>
<span>{{ props.row.configuringBao }}</span>
</template>
</el-table-column>
<el-table-column prop="remarks" width="150" label="独立热源" align="center">
<template slot-scope="props">
<span>{{props.row.independentSources}}</span>
<span>{{ props.row.independentSources }}</span>
</template>
</el-table-column>
<el-table-column prop="remarks" width="150" label="燃料箱" align="center">
<template slot-scope="props">
<span>{{props.row.fuelTank}}</span>
<span>{{ props.row.fuelTank }}</span>
</template>
</el-table-column>
<el-table-column prop="remarks" width="150" label="多媒体" align="center">
<template slot-scope="props">
<span>{{props.row.multimedia}}</span>
<span>{{ props.row.multimedia }}</span>
</template>
</el-table-column>
<el-table-column prop="remarks" width="150" label="货箱" align="center">
<template slot-scope="props">
<span>{{ props.row.packingCase }}</span>
</template>
</el-table-column>
</el-table>
@ -281,91 +272,57 @@
</template>
<script>
import { mapGetters } from 'vuex'
import {} from '@/api/cheliang/basemodelrelationconfigure'
import { details } from '@/api/cheliang/basevehiclemodel'
export default {
name: 'changyongpeizhiInfo',
data() {
return {
// ---------
index: 0,
FormLoading: false,
listLoading: false,
temp: {}, //
templook: { titlea: '00000112' }, //
textMap: {
update: '修改',
create: '创建'
},
dialogFormVisible: false, //
dialogFormShowVisible: false, //
dialogStatus: '', //
fenzuOptions: []
// ------------------------------------
}
},
computed: {
...mapGetters([
'id',
'roles',
'rolesIds',
'departmentId',
'departmentCode'
])
},
created() {
//
// this.init()
//
// this.handleUpdate()
export default {
name: 'changyongpeizhiInfo',
data() {
return {
// ---------
index: 0,
FormLoading: false,
listLoading: false,
temp: {} //
}
},
methods: {
// ------------------------------------------------------
//
handleReturn() {
this.temp = {}
this.$emit('doback')
},
methods: {
init() {
},
// ------------------------------------------------------
//
handleReturn() {
this.temp = {}
this.$emit('doback')
},
//
resetTemp() {
this.temp = {}
},
//
showInfo(sid, row) {
this.FormLoading = true
// details(sid).then((response) => {
// this.FormLoading = false
// if (response.code === '200') {
// this.temp = response.data
// } else {
// this.$notify({
// title: '',
// message: '',
// type: 'error'
// })
// }
// })
}
//
showInfo(sid, row) {
this.FormLoading = true
details(sid).then((response) => {
this.FormLoading = false
if (response.code === '200') {
this.temp = response.data
} else {
this.$notify({
title: '失败',
message: '查询失败',
type: 'error'
})
}
})
}
}
}
</script>
<style scoped>
/deep/ .el-col-4 {
text-align: right;
float: left;
font-size: 14px;
color: #606266;
line-height: 40px !important;
font-weight: 600;
}
/deep/ .el-col-4 {
text-align: right;
float: left;
font-size: 14px;
color: #606266;
line-height: 40px !important;
font-weight: 600;
}
.addinputw {
width: 100% !important;
}
.addinputw {
width: 100% !important;
}
</style>

812
anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/ohter/changyongpeizhiRel.vue

@ -3,11 +3,10 @@
<!--Start 列表页面-->
<div v-show="viewState == 5">
<div class="tab-header webtop">
<div>常用配置管理</div>
<div>常用配置关联车型</div>
<div>
<el-button type="danger" size="small" @click="handleDelete()">解除关系</el-button>
<el-button type="danger" size="small" @click="handleOpen()">进入车型详情</el-button>
<el-button type="info" size="small" @click="handleReturn()">返回</el-button>
<el-button type="primary" size="small" @click="handleDelete()">解除关联</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="searchcon">
@ -15,179 +14,65 @@
<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.carBrand"
placeholder="请选择"
filterable
clearable
class="addinputw"
>
<el-option
v-for="item in carBrand_list"
:key="item.sid"
:label="item.brandName"
:value="item.brandName"
/>
<el-select v-model="listQuery.params.carBrand" placeholder="请选择" filterable clearable class="addinputw">
<el-option v-for="item in carBrand_list" :key="item.sid" :label="item.brandName" :value="item.sid"/>
</el-select>
</el-form-item>
<el-form-item label="功能">
<el-select
v-model="listQuery.params.vehicleFunctionKey"
placeholder="请选择"
clearable
class="addinputw"
>
<el-option
v-for="item in vehicleFunction_list"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
/>
<el-select v-model="listQuery.params.vehicleType" placeholder="请选择" clearable class="addinputw">
<el-option v-for="item in vehicleFunction_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.seriesKey"
placeholder="请选择"
clearable
class="addinputw"
>
<el-option
v-for="item in series_list"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
/>
<el-select v-model="listQuery.params.productLine" placeholder="请选择" clearable class="addinputw">
<el-option v-for="item in series_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.driveFormKey"
placeholder="请选择"
clearable
class="addinputw"
>
<el-option
v-for="item in driveForm_list"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
/>
<el-select v-model="listQuery.params.driveForm" placeholder="请选择" clearable class="addinputw">
<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="马力">
<el-select
v-model="listQuery.params.powerKey"
placeholder="请选择"
clearable
class="addinputw"
>
<el-option
v-for="item in power_list"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
/>
<el-select v-model="listQuery.params.power" placeholder="请选择" clearable class="addinputw">
<el-option v-for="item in power_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
<el-form-item label="版本">
<el-select
v-model="listQuery.params.vehicleVersionKey"
placeholder="请选择"
clearable
class="addinputw"
>
<el-option
v-for="item in vehicleVersion_list"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
/>
<el-select v-model="listQuery.params.vehicleVersion" placeholder="请选择" clearable class="addinputw">
<el-option v-for="item in vehicleVersion_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.fuelTypeKey"
placeholder="请选择"
clearable
class="addinputw"
>
<el-option
v-for="item in fuelType_list"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
/>
<el-select v-model="listQuery.params.fuelType" placeholder="请选择" clearable class="addinputw">
<el-option v-for="item in fuelType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
<el-form-item label="变速箱">
<el-select
v-model="listQuery.params.gearboxTypeKey"
placeholder="请选择"
clearable
class="addinputw"
>
<el-option
v-for="item in gearboxType_list"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
/>
<el-select v-model="listQuery.params.gearboxType" placeholder="请选择" clearable class="addinputw">
<el-option v-for="item in gearboxType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
<el-form-item label="排放标准">
<el-select
v-model="listQuery.params.emissionStandardKey"
placeholder="请选择"
clearable
class="addinputw"
>
<el-option
v-for="item in emissionStandard_list"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
/>
<el-select v-model="listQuery.params.emissionStandard" placeholder="请选择" clearable class="addinputw">
<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="发动机型号">
<el-select
v-model="listQuery.params.engineTypeKey"
placeholder="请选择"
clearable
class="addinputw"
>
<el-option
v-for="item in engineType_list"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
/>
<el-select v-model="listQuery.params.engineType" placeholder="请选择" clearable class="addinputw">
<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="细分市场">
<el-select
v-model="listQuery.params.marketSegmentsKey"
placeholder="请选择"
clearable
class="addinputw"
>
<el-option
v-for="item in marketSegments_list"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
/>
<el-select v-model="listQuery.params.marketSegments" placeholder="请选择" clearable class="addinputw">
<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="车型编码">
<el-input v-model="listQuery.params.otherConfig" maxlength="125" placeholder="请输入车型编码" class="addinputw"
clearable/>
<el-input v-model="listQuery.params.vehicleTypeCode" maxlength="125" placeholder="请输入车型编码" class="addinputw" clearable/>
</el-form-item>
<el-form-item label="规格型号">
<el-input v-model="listQuery.params.specifications" maxlength="125" placeholder="请输入规格型号"
class="addinputw"
clearable/>
<el-input v-model="listQuery.params.specifications" maxlength="125" placeholder="请输入规格型号" class="addinputw" clearable/>
</el-form-item>
<el-divider/>
<div class="btn" style="text-align: center;">
@ -198,46 +83,43 @@
</div>
</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"/>
<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"/>
</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.state }}</span>
<span>{{ scope.row.brandName }}</span>
</template>
</el-table-column>
<el-table-column label="车型" align="center">
<template slot-scope="scope">
<span class="bluezi" @click="handleCheck(scope.row)">{{ scope.row.state }}</span>
<span class="bluezi" @click="handleCheck(scope.row)">{{ scope.row.modelName }}</span>
</template>
</el-table-column>
<el-table-column label="版本" align="center">
<template slot-scope="scope">
<span>{{ scope.row.carColor }}</span>
<span>{{ scope.row.vehicleVersion }}</span>
</template>
</el-table-column>
<el-table-column label="发动机型号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.slowMachine }}</span>
<span>{{ scope.row.engineTypeValue }}</span>
</template>
</el-table-column>
<el-table-column label="车型编码" align="center">
<template slot-scope="scope">
<span>{{ scope.row.rearViewMirror }}</span>
<span>{{ scope.row.vehicleTypeCode }}</span>
</template>
</el-table-column>
</el-table>
</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 列表页面-->
@ -246,333 +128,337 @@
</template>
<script>
import { mapGetters } from 'vuex'
import { pullDown, brandDown } from '@/api/cheliang/basemodelrelationconfigure'
import changyongpeizhiInfo from './changyongpeizhiInfo'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import { namesDown } from '../../../../api/cheliang/basevehicle'
import { pullDown, brandDown, selectVehModelByConfigSid } from '@/api/cheliang/basevehiclemodel'
import { deleteRel } from '@/api/cheliang/basemodelconfig'
import changyongpeizhiInfo from './changyongpeizhiInfo'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
export default {
name: 'changyongpeizhiRel',
components: {
changyongpeizhiInfo,
Pagination,
pageye
},
data() {
return {
viewState: 5,
isSearchShow: false,
searchxianshitit: '显示查询条件',
index: 0,
// -----------
tableKey: 0,
list: [],
namesArr: '',
vehicleSid: '',
total: 1,
// list ------
carBrand_list: [], //
vehicleFunction_list: [], // vehicleFunction
series_list: [], // series
driveForm_list: [], // driver
power_list: [], // horsepower
vehicleVersion_list: [], // vehicleVersion
fuelType_list: [], // fuelType
gearboxType_list: [], // gearbox
emissionStandard_list: [],// emissionStandard
engineType_list: [], // engineType
marketSegments_list: [], // marketSegments
FormLoading: false,
listLoading: false,
listQuery: {
params: {},
current: 1,
size: 20
},
temp: {}, //
textMap: {
update: '编辑',
create: '创建'
},
sids: [],
names: '', // [ {{names}} ]
chesid: '',
dialogFormVisible: false, //
dialogFormShowVisible: false, //
dialogStatus: '', //
tureArrys: [{
value: 1,
label: '是'
},
{
value: 0,
label: '否'
}
],
fenzuOptions: [{
value: '1',
label: '单位'
},
{
value: '2',
label: '个人'
}
]
// ------------------------------------
export default {
name: 'changyongpeizhiRel',
components: {
changyongpeizhiInfo,
Pagination,
pageye
},
data() {
return {
viewState: 5,
isSearchShow: false,
searchxianshitit: '显示查询条件',
index: 0,
// -----------
tableKey: 0,
list: [],
// list ------
carBrand_list: [], //
vehicleFunction_list: [], // vehicleFunction
series_list: [], // series
driveForm_list: [], // driver
power_list: [], // horsepower
vehicleVersion_list: [], // vehicleVersion
fuelType_list: [], // fuelType
gearboxType_list: [], // gearbox
emissionStandard_list: [], // emissionStandard
engineType_list: [], // engineType
marketSegments_list: [], // marketSegments
FormLoading: false,
listLoading: false,
listQuery: {
current: 1,
size: 10,
total: 0,
params: {
configSid: '',
carBrand: '',
vehicleType: '',
productLine: '',
driveForm: '',
power: '',
vehicleVersion: '',
fuelType: '',
vehicleTypeCode: '',
gearboxType: '',
emissionStandard: '',
engineType: '',
marketSegments: '',
specifications: ''
}
},
sids: [],
sid: '',
configSid_list: []
}
},
created() {
this.getList() //
this.getType()
},
methods: {
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
computed: {
...mapGetters([
'id',
'roles',
'rolesIds',
'departmentId',
'departmentCode'
])
init(sid) {
this.sid = sid
this.listQuery.params.configSid = sid
this.getList()
},
getType() {
// -
brandDown(this.listQuery.params.carBrand).then((res) => {
if (res.code === '200') {
this.carBrand_list = res.data
console.log('下拉框请求品牌', res.data)
}
})
// -
pullDown({
type: 'vehicleFunction'
}).then((res) => {
if (res.code === '200') {
this.vehicleFunction_list = res.data
console.log('下拉框请求功能', res.data)
}
})
// -
pullDown({
type: 'series'
}).then((res) => {
if (res.code === '200') {
this.series_list = res.data
console.log('下拉框请求系列', res.data)
}
})
// -
pullDown({
type: 'driver'
}).then((res) => {
if (res.code === '200') {
this.driveForm_list = res.data
console.log('下拉框请求驱动', res.data)
}
})
// -
pullDown({
type: 'horsepower'
}).then((res) => {
if (res.code === '200') {
this.power_list = res.data
console.log('下拉框请求驱动', res.data)
}
})
// -
pullDown({
type: 'vehicleVersion'
}).then((res) => {
if (res.code === '200') {
this.vehicleVersion_list = res.data
console.log('下拉框请求驱动', res.data)
}
})
// -
pullDown({
type: 'fuelType'
}).then((res) => {
if (res.code === '200') {
this.fuelType_list = res.data
console.log('下拉框请求驱动', res.data)
}
})
// -
pullDown({
type: 'gearbox'
}).then((res) => {
if (res.code === '200') {
this.gearboxType_list = res.data
console.log('下拉框请求驱动', res.data)
}
})
// -
pullDown({
type: 'emissionStandard'
}).then((res) => {
if (res.code === '200') {
this.emissionStandard_list = res.data
console.log('下拉框请求驱动', res.data)
}
})
// -
pullDown({
type: 'engineType'
}).then((res) => {
if (res.code === '200') {
this.engineType_list = res.data
console.log('下拉框请求发动机型号', res.data)
}
})
// -
pullDown({
type: 'marketSegments'
}).then((res) => {
if (res.code === '200') {
this.marketSegments_list = res.data
console.log('下拉框请求发动机型号', res.data)
}
})
},
//
handleReturn() {
this.$emit('doback')
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
created() {
this.getList() //
this.getType()
resetState() {
this.viewState = 5
},
methods: {
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
handleSelectionChange(row) {
const aa = []
let bb = []
row.forEach((element) => {
aa.push(element.sid)
bb.push({
modelSid: element.sid,
configurationItemsSid: element.configSid
})
})
this.sids = aa
this.configSid_list = bb
console.log('选择的数据', this.sids)
},
//
getList() {
this.listLoading = true
selectVehModelByConfigSid(this.listQuery).then((response) => {
this.listLoading = false
if (
response.code === '200' &&
response.data &&
response.data.total > 0
) {
this.list = response.data.records
this.total = response.data.total
} else {
this.searchxianshitit = '显示查询条件'
this.list = []
this.total = 0
}
},
init() {
var name = this.$store.state.modelName
console.log('789988888', name)
this.names = name
console.log('9639636', this.names)
},
getType() {
// -
brandDown(this.listQuery.params.carBrand).then((res) => {
if (res.code === '200') {
this.carBrand_list = res.data
console.log('下拉框请求品牌', res.data)
}
})
// -
pullDown({
type: 'vehicleFunction'
}).then((res) => {
if (res.code === '200') {
this.vehicleFunction_list = res.data
console.log('下拉框请求功能', res.data)
}
})
// -
pullDown({
type: 'series'
}).then((res) => {
if (res.code === '200') {
this.series_list = res.data
console.log('下拉框请求系列', res.data)
}
})
// -
pullDown({
type: 'driver'
}).then((res) => {
if (res.code === '200') {
this.driveForm_list = res.data
console.log('下拉框请求驱动', res.data)
}
})
// -
pullDown({
type: 'horsepower'
}).then((res) => {
if (res.code === '200') {
this.power_list = res.data
console.log('下拉框请求驱动', res.data)
}
})
// -
pullDown({
type: 'vehicleVersion'
}).then((res) => {
if (res.code === '200') {
this.vehicleVersion_list = res.data
console.log('下拉框请求驱动', res.data)
}
})
// -
pullDown({
type: 'fuelType'
}).then((res) => {
if (res.code === '200') {
this.fuelType_list = res.data
console.log('下拉框请求驱动', res.data)
}
})
// -
pullDown({
type: 'gearbox'
}).then((res) => {
if (res.code === '200') {
this.gearboxType_list = res.data
console.log('下拉框请求驱动', res.data)
}
})
// -
pullDown({
type: 'emissionStandard'
}).then((res) => {
if (res.code === '200') {
this.emissionStandard_list = res.data
console.log('下拉框请求驱动', res.data)
}
})
// -
pullDown({
type: 'engineType'
}).then((res) => {
if (res.code === '200') {
this.engineType_list = res.data
console.log('下拉框请求发动机型号', res.data)
}
})
// -
pullDown({
type: 'marketSegments'
}).then((res) => {
if (res.code === '200') {
this.marketSegments_list = res.data
console.log('下拉框请求发动机型号', res.data)
})
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
//
resetQuery() {
this.listQuery = {
current: 1,
size: 10,
total: 0,
params: {
configSid: this.sid,
carBrand: '',
vehicleType: '',
productLine: '',
driveForm: '',
power: '',
vehicleVersion: '',
fuelType: '',
vehicleTypeCode: '',
gearboxType: '',
emissionStandard: '',
engineType: '',
marketSegments: '',
specifications: ''
}
}
this.getList()
},
//
handleCheck(row) {
console.log('111', row)
this.viewState = 6
const sid = row.sid
this.$refs['divinfo'].showInfo(sid, row)
},
//
handleOpen() {
this.viewState = 6
},
// ID
handleDelete() {
console.log('删除', this.sids)
if (this.configSid_list.length > 0) {
deleteRel(this.configSid_list).then((response) => {
if (response.code === '200') {
this.$notify({
title: '提示',
message: '解除关联成功',
type: 'success',
duration: 2000
})
this.getList()
} else {
this.$notify({
title: '失败',
message: response.msg,
type: 'error'
})
}
})
},
//
handleReturn() {
this.$emit('doback')
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
resetState() {
this.viewState = 5
},
handleSelectionChange(row) {
const aa = []
row.forEach((element) => {
aa.push(element.sid)
} else {
this.$notify({
title: '提示',
message: '没有选择车型配置!!',
type: 'error',
duration: 2000
})
this.sids = aa
console.log('选择的数据', this.sids)
},
//
getList() {
this.listLoading = true
// pagerList(this.listQuery).then((response) => {
// this.listLoading = false
// if (
// response.code === '200' &&
// response.data &&
// response.data.total > 0
// ) {
// this.list = response.data.records
// this.total = response.data.total
// } else {
// this.list = []
// this.total = 0
// }
// })
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
//
resetQuery() {
this.listQuery.params = {}
},
// ------------------------------------------------------
//
resetTemp() {
this.temp = {}
},
//
handleCheck(row) {
console.log('111', row)
this.viewState = 6
const sid = row.sid
this.$refs['divinfo'].showInfo(sid, row)
},
//
handleOpen() {
this.viewState = 6
},
// ID
handleDelete() {
console.log('删除', this.sids)
if (this.sids.length > 0) {
// deleteBySids(this.sids).then((response) => {
// if (response.code === '200') {
// this.$notify({
// title: '',
// message: '',
// type: 'success',
// duration: 2000
// })
// this.getList()
// } else {
// this.$notify({
// title: '',
// message: response.msg,
// type: 'error'
// })
// }
// })
} else {
this.$notify({
title: '提示',
message: '没有选择车型配置!!',
type: 'error',
duration: 2000
})
return
}
return
}
}
}
}
</script>
<style scoped>
/deep/ .el-collapse {
border-top: 0px solid #e6ebf5;
border-bottom: 0px solid #e6ebf5;
}
/deep/ .el-collapse {
border-top: 0px solid #e6ebf5;
border-bottom: 0px solid #e6ebf5;
}
/deep/ .el-collapse-item__content {
margin: 0;
padding: 0;
}
/deep/ .el-collapse-item__content {
margin: 0;
padding: 0;
}
/deep/ .el-collapse-item__wrap {
border-bottom: 0px solid #ebeef5;
}
/deep/ .el-collapse-item__wrap {
border-bottom: 0px solid #ebeef5;
}
/deep/ .el-collapse-item__header {
border-bottom: 0px solid #e6ebf5;
}
/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>

Loading…
Cancel
Save