|
|
@ -61,7 +61,7 @@ |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button size="mini" type="danger" @click="dataDelete(scope.$index)">删除 |
|
|
|
</el-button> |
|
|
|
<el-button size="mini" type="primary">上装选择</el-button> |
|
|
|
<el-button size="mini" type="primary" @click="handleShangZhuang(scope.$index)">上装选择</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="车型" align="center" header-align="center" width="250"> |
|
|
@ -116,18 +116,21 @@ |
|
|
|
<!--End 添加修改部分--> |
|
|
|
<!--选择车型和常用配置--> |
|
|
|
<configuration v-show="viewState == 2" ref="divconfiguration" @backData="backData" @doback="closePage"/> |
|
|
|
<shangzhuangpeizhi v-show="viewState == 3" ref="divShangzhuangpeizhi" @backData="backPeizhi" @doback="closePage"/> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import req from '@/api/supplychain/busvehicleapply' |
|
|
|
import configuration from './chexingbyconfiguration' |
|
|
|
import shangzhuangpeizhi from '../../../views/supplychain/cheliangpaichan/shangzhuangselect/shangzhuangpeizhi' |
|
|
|
import { getPathSidByUserSid, fetchBySid } from '@/api/cheliang/dictcommons' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'cheliangpaichanAdd', |
|
|
|
components: { |
|
|
|
configuration |
|
|
|
configuration, |
|
|
|
shangzhuangpeizhi |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
@ -262,7 +265,23 @@ export default { |
|
|
|
saleGuPrice: e.guidedPrice, |
|
|
|
insideCode: e.insideCode, // 内部编码 |
|
|
|
vehicleName: e.vehicleAlias, |
|
|
|
vehicleSid: e.modelSid |
|
|
|
vehicleSid: e.modelSid, |
|
|
|
busVehicleApplySz: { |
|
|
|
color: '', |
|
|
|
coverPlate: '', |
|
|
|
floorHeating: '', |
|
|
|
otherConfig: '', |
|
|
|
overallDimension: '', |
|
|
|
plateMaterial: '', |
|
|
|
plateThickness: '', |
|
|
|
refitFactory: '', |
|
|
|
refitMethod: '', |
|
|
|
refrigerator: '', |
|
|
|
sid: '', |
|
|
|
tarpaulinSlide: '', |
|
|
|
topName: '', |
|
|
|
vehicleFunction: '' |
|
|
|
} |
|
|
|
}) |
|
|
|
if (e.insideCode) { |
|
|
|
this.isRead = true |
|
|
@ -324,6 +343,18 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleShangZhuang(index) { |
|
|
|
this.viewState = 3 |
|
|
|
this.$refs['divShangzhuangpeizhi'].showData(index) |
|
|
|
}, |
|
|
|
backPeizhi(val, index) { |
|
|
|
console.log(val, index) |
|
|
|
this.formobj.busVehicleApplyDetailList[index].busVehicleApplySz.color = val.colorValue |
|
|
|
this.formobj.busVehicleApplyDetailList[index].busVehicleApplySz.coverPlate = val.selfUnHyCoPl |
|
|
|
this.formobj.busVehicleApplyDetailList[index].busVehicleApplySz.floorHeating = val.floorHeating |
|
|
|
this.formobj.busVehicleApplyDetailList[index].busVehicleApplySz.otherConfig = val.moreConfig |
|
|
|
this.formobj.busVehicleApplyDetailList[index].busVehicleApplySz.overallDimension = val.wk |
|
|
|
}, |
|
|
|
// 返回(===既判断) |
|
|
|
handleReturn(isreload) { |
|
|
|
if (isreload === 'true') this.$emit('reloadlist') |
|
|
|