|
|
@ -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) |
|
|
|
} |
|
|
|