Browse Source

完善车型管理、车型配置、车型标签、车型公告型号--与切换机构功能相关修改

master
yunuo970428 2 years ago
parent
commit
dcb8e462e9
  1. 88
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexing.vue
  2. 93
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexingAdd.vue
  3. 144
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/changyongpeizhi.vue
  4. 8
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/chexinggonggaoxingao.vue
  5. 124
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/chexingguanlianchangyong.vue
  6. 137
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/changyongpeizhi.vue
  7. 146
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/changyongpeizhiAdd.vue
  8. 98
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/ohter/changyongpeizhiRel.vue
  9. 4
      anrui-scm/anrui-scm-ui/src/views/othermenu/cartags/chexingbiaoqianguanli.vue

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

@ -182,14 +182,7 @@
</template>
<script>
import {
basefinbankExportExcel,
brandDown,
deleteBySids, deleteFilesOss,
getPathSidByUserSid,
pagerList,
pullDown
} from '@/api/cheliang/basevehiclemodel'
import { basefinbankExportExcel, deleteBySids, deleteFilesOss, pagerList } from '@/api/cheliang/basevehiclemodel'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
@ -198,7 +191,7 @@ import chexinglook from './chexinglook'
import chexingpeizhi from './relation/chexingguanlianchangyong'
import chexinggonggaoxingao from './relation/chexinggonggaoxingao'
import upload from '../../../components/uploadFile/upload_chexing'
import { getListOrgByBrandSidNo } from '@/api/cheliang/dictcommons'
import { getListOrgByBrandSidNo, typeValues, brandDown, getOrgSidByPath } from '@/api/cheliang/dictcommons'
export default {
name: 'chexing',
@ -365,9 +358,8 @@ export default {
},
//
getPathSid() {
const userSid = window.sessionStorage.getItem('userSid')
getPathSidByUserSid({ userSid: userSid }).then((res) => {
if (res.code === '200') {
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.listQuery.params.createOrgSId = res.data
this.useOrg = res.data
this.getList()
@ -378,7 +370,7 @@ export default {
getBrand(useOrg) {
// -
brandDown({ useOrg: useOrg }).then((res) => {
if (res.code === '200') {
if (res.success) {
this.carBrand_list = res.data
console.log('下拉框请求品牌', res.data)
}
@ -393,100 +385,71 @@ export default {
},
init() {
// -
pullDown({
type: 'vehicleFunction'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'vehicleFunction' }).then((res) => {
if (res.success) {
this.vehicleFunction_list = res.data
console.log('下拉框请求功能', res.data)
}
})
// -
// pullDown({
// type: 'vehicleFunction'
// }).then((res) => {
// if (res.code === '200') {
// this.vehicleFunction_list = res.data
// console.log('111', res.data)
// }
// })
// -
pullDown({
type: 'driver'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'driver' }).then((res) => {
if (res.success) {
this.driveForm_list = res.data
console.log('下拉框请求驱动', res.data)
}
})
// -
pullDown({
type: 'productLine'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'productLine' }).then((res) => {
if (res.success) {
this.productLine_list = res.data
console.log('下拉框请求系列', res.data)
}
})
// -
pullDown({
type: 'horsepower'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'horsepower' }).then((res) => {
if (res.success) {
this.power_list = res.data
console.log('下拉框请求马力', res.data)
}
})
// -
pullDown({
type: 'vehicleVersion'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'vehicleVersion' }).then((res) => {
if (res.success) {
this.vehicleVersion_list = res.data
console.log('下拉框请求版本', res.data)
}
})
// -
pullDown({
type: 'fuelType'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'fuelType' }).then((res) => {
if (res.success) {
this.fuelType_list = res.data
console.log('下拉框请求燃料', res.data)
}
})
// -
pullDown({
type: 'gearbox'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'gearbox' }).then((res) => {
if (res.success) {
this.gearboxType_list = res.data
console.log('下拉框请求变速箱', res.data)
}
})
// -
pullDown({
type: 'emissionStandard'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'emissionStandard' }).then((res) => {
if (res.success) {
this.emissionStandard_list = res.data
console.log('下拉框请求排放标准', res.data)
}
})
// -
pullDown({
type: 'engineType'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'engineType' }).then((res) => {
if (res.success) {
this.engineType_list = res.data
console.log('下拉框请求发动机型号', res.data)
}
})
// -
pullDown({
type: 'marketSegments'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'marketSegments' }).then((res) => {
if (res.success) {
this.marketSegments_list = res.data
console.log('下拉框请求细分市场', res.data)
}
@ -504,7 +467,6 @@ export default {
//
getList() {
this.listLoading = true
console.log('123456')
pagerList(this.listQuery).then((response) => {
console.log('列表查询结果:', response)
this.listLoading = false

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

@ -158,15 +158,8 @@
</template>
<script>
import {
brandDown,
getAll,
getPathSidByUserSid,
SaveList,
selectByOrgSid,
saveGetAll
} from '@/api/cheliang/basevehiclemodel'
import { fetchBySid, typeValues } from '@/api/cheliang/dictcommons'
import { getAll, SaveList, saveGetAll } from '@/api/cheliang/basevehiclemodel'
import { fetchBySid, typeValues, brandDown, getOrgSidByPath } from '@/api/cheliang/dictcommons'
import Upload from '@/components/uploadFile/uploadImg.vue'
export default {
@ -225,35 +218,14 @@ export default {
vehicleFunction_list: [], //
department_list: [], //
productLine_list: [], //
facturer: [],
marketSegments: 'marketSegments',
segments: [],
specifications: [],
vehicleType: 'vehicleType',
cleType: [],
emissionStandard: 'emissionStandard',
Standard: [],
productLine: 'productLine',
ctLine: [],
suspension: 'suspension',
pension: [],
rearAxle: 'rearAxle',
Axle: [],
speedRatio: 'speedRatio',
Ratio: [],
series: 'series',
opseries: [],
driver: 'driver',
eForm: [],
horsepower: 'horsepower',
epower: [],
gearbox: 'gearbox',
arbox: [],
fuelType: 'fuelType',
lType: [],
vehicleVersion: 'vehicleVersion',
Version: [],
engineType: 'engineType',
neType: [],
dialogFormVisible: false, //
dialogStatus: '', //
@ -279,7 +251,6 @@ export default {
this.viewTitle = '【新增】车型信息'
this.getPathSid()
this.setDetaList()
this.getChang()
},
showQuickAdd(sid) {
this.$nextTick(() => {
@ -313,7 +284,6 @@ export default {
})
this.getPathSid()
this.setDetaList()
this.getChang()
},
showEdit(sid, row) {
console.log(sid)
@ -347,7 +317,6 @@ export default {
})
this.getPathSid()
this.setDetaList()
this.getChang()
},
//
handleCreate() {
@ -457,8 +426,7 @@ export default {
this.$emit('doback')
},
getPathSid() {
const userSid = window.sessionStorage.getItem('userSid')
getPathSidByUserSid({ userSid: userSid }).then((res) => {
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.temp.createOrg = res.data
this.temp.useOrg = res.data
@ -510,87 +478,58 @@ export default {
this.specifications = resp.data
}
})
typeValues({ type: this.marketSegments }).then(res => {
typeValues({ type: 'marketSegments' }).then(res => {
if (res.success) {
this.segments = res.data
}
})
typeValues({ type: this.vehicleType }).then(res => {
if (res.success) {
this.cleType = res.data
}
})
typeValues({ type: this.emissionStandard }).then(res => {
typeValues({ type: 'emissionStandard' }).then(res => {
if (res.success) {
this.Standard = res.data
}
})
typeValues({ type: this.productLine }).then(res => {
if (res.success) {
this.ctLine = res.data
}
})
//
typeValues({ type: this.suspension }).then(res => {
if (res.success) {
this.pension = res.data
}
})
typeValues({ type: this.series }).then(res => {
if (res.success) {
this.opseries = res.data
}
})
//
typeValues({ type: this.driver }).then(res => {
typeValues({ type: 'driver' }).then(res => {
if (res.success) {
this.eForm = res.data
}
})
//
typeValues({ type: this.horsepower }).then(res => {
typeValues({ type: 'horsepower' }).then(res => {
if (res.success) {
this.epower = res.data
}
})
//
typeValues({ type: this.gearbox }).then(res => {
typeValues({ type: 'gearbox' }).then(res => {
if (res.success) {
this.arbox = res.data
}
})
//
typeValues({ type: this.fuelType }).then(res => {
typeValues({ type: 'fuelType' }).then(res => {
if (res.success) {
this.lType = res.data
}
})
//
typeValues({ type: this.vehicleVersion }).then(res => {
typeValues({ type: 'vehicleVersion' }).then(res => {
if (res.success) {
this.Version = res.data
}
})
typeValues({ type: this.engineType }).then(res => {
typeValues({ type: 'engineType' }).then(res => {
if (res.success) {
this.neType = res.data
}
})
},
getChang() {
selectByOrgSid().then(res => {
if (res.success) {
this.facturer = res.data
}
})
},
getGong(value) {
console.log('触发下拉框按钮', value)
let bb = null
this.vehicleFunction_list.forEach(e => {
if (e.dictKey === value) {
bb = {
type: 'vehicleFunction',
name: e.dictValue,
vaule: e.dictKey
}
@ -619,7 +558,6 @@ export default {
this.productLine_list.forEach(e => {
if (e.dictKey === value) {
bb = {
type: 'productLine',
name: e.dictValue,
vaule: e.dictKey
}
@ -632,7 +570,6 @@ export default {
this.segments.forEach(e => {
if (e.dictKey === value) {
bb = {
type: 'marketSegments',
name: e.dictValue,
vaule: e.dictKey
}
@ -657,7 +594,6 @@ export default {
this.eForm.forEach(e => {
if (e.dictKey === value) {
bb = {
type: 'driveForm',
name: e.dictValue,
vaule: e.dictKey
}
@ -670,7 +606,6 @@ export default {
this.epower.forEach(e => {
if (e.dictKey === value) {
bb = {
type: 'power',
name: e.dictValue,
vaule: e.dictKey
}
@ -696,7 +631,6 @@ export default {
this.lType.forEach(e => {
if (e.dictKey === value) {
bb = {
type: 'fuelType',
name: e.dictValue,
vaule: e.dictKey
}
@ -709,7 +643,6 @@ export default {
this.Version.forEach(e => {
if (e.dictKey === value) {
bb = {
type: 'vehicleVersion',
name: e.dictValue,
vaule: e.dictKey
}
@ -719,11 +652,9 @@ export default {
},
getFaDongJi(value) {
let bb = null
console.log('发动机集合', this.neType)
this.neType.forEach(e => {
if (e.dictKey === value) {
bb = {
type: 'engineType',
name: e.dictValue,
vaule: e.dictKey
}
@ -737,7 +668,6 @@ export default {
this.Standard.forEach(e => {
if (e.dictKey === value) {
bb = {
type: 'emissionStandard',
name: e.dictValue,
vaule: e.dictKey
}
@ -750,7 +680,6 @@ export default {
this.department_list.forEach(e => {
if (e.dictKey === value) {
bb = {
type: 'series',
name: e.dictValue,
vaule: e.dictKey
}

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

@ -264,12 +264,12 @@
</template>
<script>
import { getList, pullDown, setRel } from '@/api/cheliang/basemodelconfig'
import { getList, setRel } from '@/api/cheliang/basemodelconfig'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import changyongpeizhiAdd from '../../chexingpeizhi/changyongpeizhiAdd'
import ChangyongpeizhiInfo from '@/views/cheliang/chexingpeizhi/changyongpeizhiInfo'
import { getListOrg } from '@/api/cheliang/dictcommons'
import { getListOrg, typeValues } from '@/api/cheliang/dictcommons'
export default {
name: 'changyongpeizhiguanlian',
@ -367,183 +367,119 @@ export default {
}
})
// -
pullDown({
type: 'bodyColor'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'bodyColor' }).then((res) => {
if (res.success) {
this.carColor_list = res.data
console.log('下拉框请求111', res.data)
}
})
//
pullDown({
type: 'slowMachine '
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'slowMachine ' }).then((res) => {
if (res.success) {
this.slowMachine_list = res.data
console.log('下拉框请求缓速器', res.data)
}
})
//
pullDown({
type: 'rearviewMirror '
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'rearviewMirror ' }).then((res) => {
if (res.success) {
this.rearViewMirror_list = res.data
console.log('下拉框请求后视镜', res.data)
}
})
//
pullDown({
type: 'tiresize '
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'tiresize ' }).then((res) => {
if (res.success) {
this.tireSize_list = res.data
console.log('下拉框请求轮胎规格', res.data)
}
})
//
pullDown({
type: 'specification '
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'specification ' }).then((res) => {
if (res.success) {
this.specification_list = res.data
console.log('下拉框请求驾驶室', res.data)
}
})
//
pullDown({
type: 'rearAxleRatio'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'rearAxleRatio' }).then((res) => {
if (res.success) {
this.rearAxleRatio_list = res.data
console.log('下拉框请求后桥速比', res.data)
}
})
//
pullDown({
type: 'airConditioner'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'airConditioner' }).then((res) => {
if (res.success) {
this.airConditioner_list = res.data
console.log('下拉框请求空调', res.data)
// this.baffleModel_list = res.data
// console.log('', res.data)
// this.tireCover_list = res.data
// console.log('', res.data)
// this.independentSources_list = res.data
// console.log('', res.data)
// this.multimedia_list = res.data
// console.log('', res.data)
}
})
//
pullDown({
type: 'hubMaterial'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'hubMaterial' }).then((res) => {
if (res.success) {
this.hubMaterial_list = res.data
console.log('下拉框请求轮毂材质', res.data)
}
})
//
pullDown({
type: 'baffleModel'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'baffleModel' }).then((res) => {
if (res.success) {
this.baffleModel_list = res.data
console.log('下拉框请求导流罩', res.data)
}
})
//
pullDown({
type: 'suspension'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'suspension' }).then((res) => {
if (res.success) {
this.suspension_list = res.data
console.log('下拉框请求悬架', res.data)
}
})
//
pullDown({
type: 'seat'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'seat' }).then((res) => {
if (res.success) {
this.seat_list = res.data
console.log('下拉框请求座椅', res.data)
}
})
//
pullDown({
type: 'tireCover'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'tireCover' }).then((res) => {
if (res.success) {
this.tireCover_list = res.data
console.log('下拉框请求护轮罩', res.data)
}
})
//
pullDown({
type: 'saddle'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'saddle' }).then((res) => {
if (res.success) {
this.saddle_list = res.data
console.log('下拉框请求护鞍座', res.data)
}
})
//
pullDown({
type: 'wheelbase'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'wheelbase' }).then((res) => {
if (res.success) {
this.wheelbase_list = res.data
console.log('下拉框请求护轴距', res.data)
}
})
//
pullDown({
type: 'bumper'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'bumper' }).then((res) => {
if (res.success) {
this.bumper_list = res.data
console.log('下拉框请求护保险杠', res.data)
}
})
//
pullDown({
type: 'configuringBao'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'configuringBao' }).then((res) => {
if (res.success) {
this.configuringBao_list = res.data
console.log('下拉框请求护配置包', res.data)
}
})
//
pullDown({
type: 'independentSources'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'independentSources' }).then((res) => {
if (res.success) {
this.independentSources_list = res.data
console.log('下拉框请求护独立热源', res.data)
}
})
// -
pullDown({
type: 'fuelTank'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'fuelTank' }).then((res) => {
if (res.success) {
this.fuelTank_list = res.data
console.log('下拉框请求111', res.data)
}
})
//
pullDown({
type: 'multimedia'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'multimedia' }).then((res) => {
if (res.success) {
this.multimedia_list = res.data
console.log('下拉框请求多媒体', res.data)
}
})
},

8
anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/chexinggonggaoxingao.vue

@ -83,7 +83,7 @@
import { deleteRel, pagerList } from '@/api/cheliang/baseaffichemodel'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import { getUseOrgByUserSid } from '@/api/cheliang/basevehicle'
import { getOrgSidByPath } from '@/api/cheliang/dictcommons'
import gongggaoxinghao from './gongggaoxinghao'
export default {
@ -131,8 +131,7 @@ export default {
this.title = row.vehicleAlias
this.listQuery.params.vehModelSid = row.sid
//
const userSid = window.sessionStorage.getItem('userSid')
getUseOrgByUserSid({ userSid: userSid }).then((res) => {
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.listQuery.params.useOrgSid = res.data.sid
this.getList() //
@ -159,8 +158,7 @@ export default {
//
getList() {
this.listLoading = true
const userSid = window.sessionStorage.getItem('userSid')
getUseOrgByUserSid({ userSid: userSid }).then((res) => {
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.listQuery.params.useOrgSid = res.data.sid
pagerList(this.listQuery).then((response) => {

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

@ -173,13 +173,13 @@
</template>
<script>
import { deleteRel, pagerList, pullDown } from '@/api/cheliang/basemodelconfig'
import { deleteRel, pagerList } from '@/api/cheliang/basemodelconfig'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import chexingpeizhijiageweihu from './chexingpeizhijiageweihuAdd'
import changyongpeizhi from './changyongpeizhi'
import chexingpeizhibiaoqian from './chexingpeizhibiaoqian'
import { getUseOrgByUserSid } from '@/api/cheliang/basevehicle'
import { getOrgSidByPath, typeValues } from '@/api/cheliang/dictcommons'
export default {
name: 'chexingpeizhi',
@ -281,8 +281,7 @@ export default {
this.title = row.vehicleAlias
this.listQuery.params.modelSid = row.sid
//
const userSid = window.sessionStorage.getItem('userSid')
getUseOrgByUserSid({ userSid: userSid }).then((res) => {
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.listQuery.params.useOrgSid = res.data.sid
this.getList() //
@ -292,172 +291,134 @@ export default {
},
getType() {
// -
pullDown({
type: 'bodyColor'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'bodyColor' }).then((res) => {
if (res.success) {
this.carColor_list = res.data
console.log('下拉框请求111', res.data)
}
})
//
pullDown({
type: 'slowMachine '
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'slowMachine ' }).then((res) => {
if (res.success) {
this.slowMachine_list = res.data
console.log('下拉框请求缓速器', res.data)
}
})
//
pullDown({
type: 'rearviewMirror '
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'rearviewMirror ' }).then((res) => {
if (res.success) {
this.rearViewMirror_list = res.data
console.log('下拉框请求后视镜', res.data)
}
})
//
pullDown({
type: 'tiresize '
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'tiresize ' }).then((res) => {
if (res.success) {
this.tireSize_list = res.data
console.log('下拉框请求轮胎规格', res.data)
}
})
//
pullDown({
type: 'specification '
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'specification ' }).then((res) => {
if (res.success) {
this.specification_list = res.data
console.log('下拉框请求驾驶室', res.data)
}
})
//
pullDown({
type: 'rearAxleRatio'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'rearAxleRatio' }).then((res) => {
if (res.success) {
this.rearAxleRatio_list = res.data
console.log('下拉框请求后桥速比', res.data)
}
})
//
pullDown({
type: 'airConditioner'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'airConditioner' }).then((res) => {
if (res.success) {
this.airConditioner_list = res.data
console.log('下拉框请求空调', res.data)
}
})
//
pullDown({
type: 'hubMaterial'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'hubMaterial' }).then((res) => {
if (res.success) {
this.hubMaterial_list = res.data
console.log('下拉框请求轮毂材质', res.data)
}
})
//
pullDown({
type: 'baffleModel'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'baffleModel' }).then((res) => {
if (res.success) {
this.baffleModel_list = res.data
console.log('下拉框请求导流罩', res.data)
}
})
//
pullDown({
type: 'suspension'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'suspension' }).then((res) => {
if (res.success) {
this.suspension_list = res.data
console.log('下拉框请求悬架', res.data)
}
})
//
pullDown({
type: 'seat'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'seat' }).then((res) => {
if (res.success) {
this.seat_list = res.data
console.log('下拉框请求座椅', res.data)
}
})
//
pullDown({
type: 'tireCover'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'tireCover' }).then((res) => {
if (res.success) {
this.tireCover_list = res.data
console.log('下拉框请求护轮罩', res.data)
}
})
//
pullDown({
type: 'saddle'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'saddle' }).then((res) => {
if (res.success) {
this.saddle_list = res.data
console.log('下拉框请求护鞍座', res.data)
}
})
//
pullDown({
type: 'wheelbase'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'wheelbase' }).then((res) => {
if (res.success) {
this.wheelbase_list = res.data
console.log('下拉框请求护轴距', res.data)
}
})
//
pullDown({
type: 'bumper'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'bumper' }).then((res) => {
if (res.success) {
this.bumper_list = res.data
console.log('下拉框请求护保险杠', res.data)
}
})
//
pullDown({
type: 'configuringBao'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'configuringBao' }).then((res) => {
if (res.success) {
this.configuringBao_list = res.data
console.log('下拉框请求护配置包', res.data)
}
})
//
pullDown({
type: 'independentSources'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'independentSources' }).then((res) => {
if (res.success) {
this.independentSources_list = res.data
console.log('下拉框请求护独立热源', res.data)
}
})
// -
pullDown({
type: 'fuelTank'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'fuelTank' }).then((res) => {
if (res.success) {
this.fuelTank_list = res.data
console.log('下拉框请求111', res.data)
}
})
//
pullDown({
type: 'multimedia'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'multimedia' }).then((res) => {
if (res.success) {
this.multimedia_list = res.data
console.log('下拉框请求多媒体', res.data)
}
@ -529,8 +490,7 @@ export default {
//
getList() {
this.listLoading = true
const userSid = window.sessionStorage.getItem('userSid')
getUseOrgByUserSid({ userSid: userSid }).then((res) => {
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.listQuery.params.useOrgSid = res.data.sid
pagerList(this.listQuery).then((response) => {

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

@ -267,14 +267,14 @@
</template>
<script>
import { deleteBySids, getList, pullDown } from '@/api/cheliang/basemodelconfig'
import { deleteBySids, getList } from '@/api/cheliang/basemodelconfig'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import changyongpeizhiAdd from './changyongpeizhiAdd'
import changyongpeizhiInfo from './changyongpeizhiInfo'
import changyongpeizhiRel from './ohter/changyongpeizhiRel'
import { getListOrg } from '@/api/cheliang/dictcommons'
import { getListOrg, typeValues } from '@/api/cheliang/dictcommons'
export default {
name: 'chexingpeizhi',
@ -482,174 +482,117 @@ export default {
}
})
// -
pullDown({
type: 'bodyColor'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'bodyColor' }).then((res) => {
if (res.success) {
this.carColor_list = res.data
console.log('下拉框请求111', res.data)
}
})
//
pullDown({
type: 'slowMachine '
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'slowMachine ' }).then((res) => {
if (res.success) {
this.slowMachine_list = res.data
console.log('下拉框请求缓速器', res.data)
}
})
//
pullDown({
type: 'rearviewMirror '
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'rearviewMirror ' }).then((res) => {
if (res.success) {
this.rearViewMirror_list = res.data
console.log('下拉框请求后视镜', res.data)
}
})
//
pullDown({
type: 'tiresize '
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'tiresize ' }).then((res) => {
if (res.success) {
this.tireSize_list = res.data
console.log('下拉框请求轮胎规格', res.data)
}
})
//
pullDown({
type: 'specification '
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'specification ' }).then((res) => {
if (res.success) {
this.specification_list = res.data
console.log('下拉框请求驾驶室', res.data)
}
})
//
pullDown({
type: 'rearAxleRatio'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'rearAxleRatio' }).then((res) => {
if (res.success) {
this.rearAxleRatio_list = res.data
console.log('下拉框请求后桥速比', res.data)
}
})
//
pullDown({
type: 'airConditioner'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'airConditioner' }).then((res) => {
if (res.success) {
this.airConditioner_list = res.data
console.log('下拉框请求空调', res.data)
}
})
//
pullDown({
type: 'hubMaterial'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'hubMaterial' }).then((res) => {
if (res.success) {
this.hubMaterial_list = res.data
console.log('下拉框请求轮毂材质', res.data)
}
})
//
pullDown({
type: 'baffleModel'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'baffleModel' }).then((res) => {
if (res.success) {
this.baffleModel_list = res.data
console.log('下拉框请求导流罩', res.data)
}
})
//
pullDown({
type: 'suspension'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'suspension' }).then((res) => {
if (res.success) {
this.suspension_list = res.data
console.log('下拉框请求悬架', res.data)
}
})
//
pullDown({
type: 'seat'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'seat' }).then((res) => {
if (res.success) {
this.seat_list = res.data
console.log('下拉框请求座椅', res.data)
}
})
//
pullDown({
type: 'tireCover'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'tireCover' }).then((res) => {
if (res.success) {
this.tireCover_list = res.data
console.log('下拉框请求护轮罩', res.data)
}
})
//
pullDown({
type: 'saddle'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'saddle' }).then((res) => {
if (res.success) {
this.saddle_list = res.data
console.log('下拉框请求护鞍座', res.data)
}
})
//
pullDown({
type: 'wheelbase'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'wheelbase' }).then((res) => {
if (res.success) {
this.wheelbase_list = res.data
console.log('下拉框请求护轴距', res.data)
}
})
//
pullDown({
type: 'bumper'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'bumper' }).then((res) => {
if (res.success) {
this.bumper_list = res.data
console.log('下拉框请求护保险杠', res.data)
}
})
//
pullDown({
type: 'configuringBao'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'configuringBao' }).then((res) => {
if (res.success) {
this.configuringBao_list = res.data
console.log('下拉框请求护配置包', res.data)
}
})
//
pullDown({
type: 'independentSources'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'independentSources' }).then((res) => {
if (res.success) {
this.independentSources_list = res.data
console.log('下拉框请求护独立热源', res.data)
}
})
// -
pullDown({
type: 'fuelTank'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'fuelTank' }).then((res) => {
if (res.success) {
this.fuelTank_list = res.data
console.log('下拉框请求111', res.data)
}
})
//
pullDown({
type: 'multimedia'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'multimedia' }).then((res) => {
if (res.success) {
this.multimedia_list = res.data
console.log('下拉框请求多媒体', res.data)
}
})
},

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

@ -237,9 +237,8 @@
<script>
import { details, pullDown, SaveList, Update } from '@/api/cheliang/basemodelconfig'
import { getPathSidByUserSid } from '@/api/cheliang/basevehiclemodel'
import { fetchBySid } from '@/api/cheliang/dictcommons'
import { details, SaveList, Update } from '@/api/cheliang/basemodelconfig'
import { fetchBySid, getOrgSidByPath, typeValues } from '@/api/cheliang/dictcommons'
export default {
name: 'changyongpeizhiAdd',
@ -406,9 +405,8 @@ export default {
this.getPathSid()
},
getPathSid() {
const userSid = window.sessionStorage.getItem('userSid')
getPathSidByUserSid({ userSid: userSid }).then((res) => {
if (res.code === '200') {
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.temp.createOrgSId = res.data
this.getCreateOrgName(res.data)
}
@ -416,204 +414,154 @@ export default {
},
getCreateOrgName(sid) {
fetchBySid(sid).then((res) => {
if (res.code === '200') {
if (res.success) {
this.temp.createOrg = res.data.name
}
})
},
getType() {
// -
pullDown({
type: 'bodyColor'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'bodyColor' }).then((res) => {
if (res.success) {
this.carColor_list = res.data
console.log('下拉框请求111', res.data)
}
})
//
pullDown({
type: 'slowMachine '
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'slowMachine ' }).then((res) => {
if (res.success) {
this.slowMachine_list = res.data
console.log('下拉框请求缓速器', res.data)
}
})
//
pullDown({
type: 'rearviewMirror '
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'rearviewMirror ' }).then((res) => {
if (res.success) {
this.rearViewMirror_list = res.data
console.log('下拉框请求后视镜', res.data)
}
})
//
pullDown({
type: 'tiresize '
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'tiresize ' }).then((res) => {
if (res.success) {
this.tireSize_list = res.data
console.log('下拉框请求轮胎规格', res.data)
}
})
//
pullDown({
type: 'specification '
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'specification ' }).then((res) => {
if (res.success) {
this.specification_list = res.data
console.log('下拉框请求驾驶室', res.data)
}
})
//
pullDown({
type: 'rearAxle'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'rearAxle' }).then((res) => {
if (res.success) {
this.rearAxleValue_list = res.data
console.log('下拉框请求后桥', res.data)
}
})
//
pullDown({
type: 'rearAxleRatio'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'rearAxleRatio' }).then((res) => {
if (res.success) {
this.rearAxleRatio_list = res.data
console.log('下拉框请求速比', res.data)
}
})
//
pullDown({
type: 'airConditioner'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'airConditioner' }).then((res) => {
if (res.success) {
this.airConditioner_list = res.data
console.log('下拉框请求空调', res.data)
// this.baffleModel_list = res.data
// console.log('', res.data)
// this.tireCover_list = res.data
// console.log('', res.data)
// this.independentSources_list = res.data
// console.log('', res.data)
// this.multimedia_list = res.data
// console.log('', res.data)
}
})
//
pullDown({
type: 'hubMaterial'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'hubMaterial' }).then((res) => {
if (res.success) {
this.hubMaterial_list = res.data
console.log('下拉框请求轮毂材质', res.data)
}
})
//
pullDown({
type: 'baffleModel'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'baffleModel' }).then((res) => {
if (res.success) {
this.baffleModel_list = res.data
console.log('下拉框请求导流罩', res.data)
}
})
//
pullDown({
type: 'suspension'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'suspension' }).then((res) => {
if (res.success) {
this.suspension_list = res.data
console.log('下拉框请求悬架', res.data)
}
})
//
pullDown({
type: 'seat'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'seat' }).then((res) => {
if (res.success) {
this.seat_list = res.data
console.log('下拉框请求座椅', res.data)
}
})
//
pullDown({
type: 'tireCover'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'tireCover' }).then((res) => {
if (res.success) {
this.tireCover_list = res.data
console.log('下拉框请求护轮罩', res.data)
}
})
//
pullDown({
type: 'saddle'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'saddle' }).then((res) => {
if (res.success) {
this.saddle_list = res.data
console.log('下拉框请求护鞍座', res.data)
}
})
//
pullDown({
type: 'wheelbase'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'wheelbase' }).then((res) => {
if (res.success) {
this.wheelbase_list = res.data
console.log('下拉框请求护轴距', res.data)
}
})
//
pullDown({
type: 'bumper'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'bumper' }).then((res) => {
if (res.success) {
this.bumper_list = res.data
console.log('下拉框请求护保险杠', res.data)
}
})
//
pullDown({
type: 'configuringBao'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'configuringBao' }).then((res) => {
if (res.success) {
this.configuringBao_list = res.data
console.log('下拉框请求护配置包', res.data)
}
})
//
pullDown({
type: 'independentSources'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'independentSources' }).then((res) => {
if (res.success) {
this.independentSources_list = res.data
console.log('下拉框请求护独立热源', res.data)
}
})
// -
pullDown({
type: 'fuelTank'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'fuelTank' }).then((res) => {
if (res.success) {
this.fuelTank_list = res.data
console.log('下拉框请求111', res.data)
}
})
//
pullDown({
type: 'multimedia'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'multimedia' }).then((res) => {
if (res.success) {
this.multimedia_list = res.data
console.log('下拉框请求多媒体', res.data)
}
})
pullDown({
type: 'packingCase'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'packingCase' }).then((res) => {
if (res.success) {
this.packingCase_list = res.data
console.log('下拉框请求111', res.data)
}

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

@ -66,17 +66,14 @@
</el-form-item>
<el-form-item label="细分市场">
<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-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.vehicleTypeCode" 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-form>
<div class="btn" style="text-align: center;">
@ -122,8 +119,7 @@
</div>
<div class="pages">
<!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current"
:limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
</div>
</div>
@ -133,8 +129,9 @@
</template>
<script>
import { brandDown, getPathSidByUserSid, pullDown, selectVehModelByConfigSid } from '@/api/cheliang/basevehiclemodel'
import { selectVehModelByConfigSid } from '@/api/cheliang/basevehiclemodel'
import { deleteRel } from '@/api/cheliang/basemodelconfig'
import { brandDown, getOrgSidByPath, typeValues } from '@/api/cheliang/dictcommons'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import Chexinglook from '@/views/cheliang/chexing/chexinglook'
@ -216,10 +213,8 @@ export default {
},
// sid
getPathSid() {
const userSid = window.sessionStorage.getItem('userSid')
getPathSidByUserSid({ userSid: userSid }).then((res) => {
if (res.code === '200') {
// this.listQuery.params.createOrgSId = res.data
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.useOrg = res.data
this.listQuery.params.createOrgSId = res.data
this.getList()
@ -237,99 +232,72 @@ export default {
})
},
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') {
typeValues({ type: 'vehicleFunction' }).then((res) => {
if (res.success) {
this.vehicleFunction_list = res.data
console.log('下拉框请求功能', res.data)
}
})
// -
pullDown({
type: 'productLine'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'productLine' }).then((res) => {
if (res.success) {
this.productLine_list = res.data
console.log('下拉框请求系列', res.data)
}
})
// -
pullDown({
type: 'driver'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'driver' }).then((res) => {
if (res.success) {
this.driveForm_list = res.data
console.log('下拉框请求驱动', res.data)
}
})
// -
pullDown({
type: 'horsepower'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'horsepower' }).then((res) => {
if (res.success) {
this.power_list = res.data
console.log('下拉框请求驱动', res.data)
}
})
// -
pullDown({
type: 'vehicleVersion'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'vehicleVersion' }).then((res) => {
if (res.success) {
this.vehicleVersion_list = res.data
console.log('下拉框请求驱动', res.data)
}
})
// -
pullDown({
type: 'fuelType'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'fuelType' }).then((res) => {
if (res.success) {
this.fuelType_list = res.data
console.log('下拉框请求驱动', res.data)
}
})
// -
pullDown({
type: 'gearbox'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'gearbox' }).then((res) => {
if (res.success) {
this.gearboxType_list = res.data
console.log('下拉框请求驱动', res.data)
}
})
// -
pullDown({
type: 'emissionStandard'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'emissionStandard' }).then((res) => {
if (res.success) {
this.emissionStandard_list = res.data
console.log('下拉框请求驱动', res.data)
}
})
// -
pullDown({
type: 'engineType'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'engineType' }).then((res) => {
if (res.success) {
this.engineType_list = res.data
console.log('下拉框请求发动机型号', res.data)
}
})
// -
pullDown({
type: 'marketSegments'
}).then((res) => {
if (res.code === '200') {
typeValues({ type: 'marketSegments' }).then((res) => {
if (res.success) {
this.marketSegments_list = res.data
console.log('下拉框请求发动机型号', res.data)
}
@ -350,13 +318,13 @@ export default {
},
handleSelectionChange(row) {
const aa = []
let bb = []
const bb = []
row.forEach((element) => {
aa.push(element.sid)
bb.push({
modelSid: element.sid,
configurationItemsSid: element.configSid,
userSid:window.sessionStorage.getItem('userSid')
userSid: window.sessionStorage.getItem('userSid')
})
})
this.sids = aa
@ -368,11 +336,7 @@ export default {
this.listLoading = true
selectVehModelByConfigSid(this.listQuery).then((response) => {
this.listLoading = false
if (
response.code === '200' &&
response.data &&
response.data.total > 0
) {
if (response.success) {
this.list = response.data.records
this.total = response.data.total
} else {

4
anrui-scm/anrui-scm-ui/src/views/othermenu/cartags/chexingbiaoqianguanli.vue

@ -65,7 +65,7 @@ import req from '@/api/othermenu/chexingbiaoqian'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import { getPathSidByUserSid } from '@/api/cheliang/dictcommons'
import { getOrgSidByPath } from '@/api/cheliang/dictcommons'
import chexingbiaoqianAdd from './chexingbiaoqianAdd'
import chexingbiaoqianInfo from './chexingbiaoqianInfo'
@ -134,7 +134,7 @@ export default {
},
methods: {
init() {
getPathSidByUserSid({ userSid: window.sessionStorage.getItem('userSid')}).then((resp) => {
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => {
if (resp.success) {
this.listQuery.params.createOrgSid = resp.data
this.getList()

Loading…
Cancel
Save