Browse Source

车型管理、车型配置标准页面增加变速箱类型字段

master
yunuo970428 2 years ago
parent
commit
a5b4a2437e
  1. 2
      anrui-buscenter/anrui-buscenter-ui/src/components/VehicleConfigurationSub/vehicleconfiguration.vue
  2. 2
      anrui-scm/anrui-scm-ui/src/components/VehicleConfigurationSub/vehicleconfiguration.vue
  3. 57
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexingAdd.vue
  4. 34
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexinglook.vue

2
anrui-buscenter/anrui-buscenter-ui/src/components/VehicleConfigurationSub/vehicleconfiguration.vue

@ -48,7 +48,7 @@
</el-col>
<el-col :span="4" class="tlineheightb">
<div class="span-sty"><span>变速箱类型</span></div>
<el-form-item><span class="addinputInfo"></span></el-form-item>
<el-form-item><span class="addinputInfo">{{ formobj.tranCaseTypeValue }}</span></el-form-item>
</el-col>
</el-row>
<el-row>

2
anrui-scm/anrui-scm-ui/src/components/VehicleConfigurationSub/vehicleconfiguration.vue

@ -48,7 +48,7 @@
</el-col>
<el-col :span="4" class="tlineheightb">
<div class="span-sty"><span>变速箱类型</span></div>
<el-form-item><span class="addinputInfo"></span></el-form-item>
<el-form-item><span class="addinputInfo">{{ formobj.tranCaseTypeValue }}</span></el-form-item>
</el-col>
</el-row>
<el-row>

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

@ -14,9 +14,9 @@
<el-col :span="4" class="tleftb">
<span><span class="icon">*</span>品牌</span>
</el-col>
<el-col :span="20">
<el-col :span="8">
<el-form-item prop="carBrand">
<el-select v-model="temp.carBrand" placeholder="请选择" filterable style="width: 31%;padding-right: 3px;" @change="getPinpai">
<el-select v-model="temp.carBrand" placeholder="请选择" filterable class="addinputw" @change="getPinpai">
<el-option v-for="item in carBrand_list" :key="item.sid" :label="item.brandName" :value="item.sid"/>
</el-select>
</el-form-item>
@ -81,16 +81,6 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span><span class="icon">*</span>变速箱</span>
</el-col>
<el-col :span="8">
<el-form-item prop="gearboxType">
<el-select v-model="temp.gearboxType" class="addinputw" filterable placeholder="请选择" @change="getBiansu">
<el-option v-for="item in arbox" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span><span class="icon">*</span>排放标准</span>
</el-col>
@ -111,6 +101,26 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span><span class="icon">*</span>变速箱类型</span>
</el-col>
<el-col :span="8">
<el-form-item prop="tranCaseTypeValue">
<el-select v-model="temp.tranCaseTypeKey" class="addinputw" filterable placeholder="请选择" @change="getTranCase">
<el-option v-for="item in tranCase" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span><span class="icon">*</span>变速箱</span>
</el-col>
<el-col :span="8">
<el-form-item prop="gearboxType">
<el-select v-model="temp.gearboxType" class="addinputw" filterable placeholder="请选择" @change="getBiansu">
<el-option v-for="item in arbox" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>细分市场</span>
</el-col>
@ -210,6 +220,8 @@ export default {
departmentValue: '', // value
isCommonModel: '', //
isDel: '', //
tranCaseTypeValue: '', //
tranCaseTypeKey: '', // Key
baseVehicleModelAppendixDtos: [] //
// modelSid:'', // sid
// filePath:'', //
@ -223,6 +235,7 @@ export default {
Standard: [],
eForm: [],
epower: [],
tranCase: [],
arbox: [],
lType: [],
Version: [],
@ -239,6 +252,7 @@ export default {
fuelType: [{ required: true, message: ' 燃料不能为空', trigger: 'change' }],
gearboxType: [{ required: true, message: ' 变速箱不能为空', trigger: 'change' }],
emissionStandard: [{ required: true, message: ' 排放标准不能为空', trigger: 'change' }],
tranCaseTypeValue: [{ required: true, message: ' 变速箱类型不能为空', trigger: 'change' }]
}
}
},
@ -420,6 +434,8 @@ export default {
departmentValue: '', // value
isCommonModel: '', //
isDel: '', //
tranCaseTypeValue: '', //
tranCaseTypeKey: '', // Key
baseVehicleModelAppendixDtos: [] //
} //
this.imgList = []
@ -523,6 +539,11 @@ export default {
this.neType = res.data
}
})
typeValues({ type: 'tranCaseType' }).then(res => {
if (res.success) {
this.tranCase = res.data
}
})
},
getGong(value) {
console.log('触发下拉框按钮', value)
@ -613,6 +634,18 @@ export default {
})
this.temp.powerValue = bb.name
},
getTranCase(value) {
let bb = null
this.tranCase.forEach(e => {
if (e.dictKey === value) {
bb = {
name: e.dictValue,
vaule: e.dictKey
}
}
})
this.temp.tranCaseTypeValue = bb.name
},
getBiansu(value) {
let bb = null
this.arbox.forEach(e => {

34
anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexinglook.vue

@ -13,13 +13,11 @@
<el-col :span="4" class="tleftb">
<span>品牌</span>
</el-col>
<el-col :span="20">
<el-col :span="8">
<el-form-item>
<span>{{ temp.brandName }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>功能</span>
</el-col>
@ -28,6 +26,8 @@
<span>{{ temp.vehicleTypeValue }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>系列</span>
</el-col>
@ -36,8 +36,6 @@
<span>{{ temp.productLineValue }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>驱动</span>
</el-col>
@ -46,6 +44,8 @@
<span>{{ temp.driveFormValue }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>马力</span>
</el-col>
@ -54,8 +54,6 @@
<span>{{ temp.powerValue }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>版本</span>
</el-col>
@ -64,6 +62,8 @@
<span>{{ temp.vehicleVersionValue }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>燃料</span>
</el-col>
@ -72,32 +72,40 @@
<span>{{ temp.fuelTypeValue }}</span>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>排放标准</span>
</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ temp.emissionStandardValue }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>变速箱</span>
<span>发动机型号</span>
</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ temp.gearboxTypeValue }}</span>
<span>{{ temp.engineTypeValue }}</span>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>排放标准</span>
<span>变速箱类型</span>
</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ temp.emissionStandardValue }}</span>
<span>{{ temp.tranCaseTypeValue }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>发动机型号</span>
<span>变速箱</span>
</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ temp.engineTypeValue }}</span>
<span>{{ temp.gearboxTypeValue }}</span>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">

Loading…
Cancel
Save