Commit f49e398c by 李伟康

```

feat(usedCarManagement): 新增车辆详情展示与编辑功能

新增 DetailBlock 组件用于构建详情信息模块,支持标题和内容插槽。
新增车辆状态常量配置文件 contant.js,包含状态映射、颜色及选项列表。
重构 detail.vue 页面,实现车辆信息的完整展示与编辑功能,支持多种表单类型(输入框、
日期选择器、下拉框、文本域、图片展示、文件查看等)。
添加操作记录列表展示,支持查看和保存编辑后的车辆信息。
在 index.vue 中跳转至编辑页时传递 isEdit 参数以控制编辑状态。
```
1 parent 3a95e1dc
<template>
<div class="detail-block">
<div class="title flex">{{title}}</div>
<div class="block-content">
<slot></slot>
</div>
</div>
</template>
<script type='text/ecmascript-6'>
export default {
props: {
title: {
type: String,
default: ''
}
},
name: '',
data () {
return {
}
},
mounted () {
},
methods: {
}
}
</script>
<style scoped lang='scss'>
.flex {
display: flex;
align-items: center;
}
.detail-block {
background: #ffffff;
.title {
height: 50px;
border-bottom: 1px solid #e5e5e5;
text-indent: 20px;
font-weight: 500;
color: #333333;
font-size: 16px;
}
}
</style>
\ No newline at end of file
const CAR_STATUS = {
0: '拍卖中',
1: '库存中',
2: '售出1',
3: '售出2',
4: '售出3',
5: '售出4',
6: '售出5',
7: '售出6',
8: '售出7',
9: '售出8',
}
const CAR_STATUS_COLOR = {
0: 'info',
1: 'success',
2: 'warning',
3: 'danger',
4: 'danger',
5: 'danger',
6: 'danger',
7: 'danger',
8: 'danger',
9: 'danger',
}
const CAR_STATUS_OPTIONS = Object.keys(CAR_STATUS).map(key => {
return {
label: CAR_STATUS[key],
value: key,
}
})
module.exports = {
CAR_STATUS,
CAR_STATUS_COLOR,
CAR_STATUS_OPTIONS,
}
\ No newline at end of file
......@@ -508,7 +508,8 @@ export default {
this.$router.push({
name: "editVehicle",
query: {
id: row.id
id: row.id,
isEdit: true
}
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!