Commit 5fd277a8 by 李伟康

```

feat(usedCarManagement): 优化车辆状态选项及详情页交互逻辑

- 调整 CAR_STATUS 枚举顺序,并新增 CAR_STATUS_ORDER 与 CAR_STATUS_OPTIONS 以支持自定义排序展示
- 重构 detail.vue 页面中车辆状态选择器的选项生成逻辑,改为通过 getCarStatusOptions 方法动态计算可选状态
- 增强表单项输入控制:增加 disabled 状态、@input 事件处理以及正则校验函数支持
- 改进图片和文件字段在无数据时的显示为“-”
- 移除调试用 console.log 日志
- 统一模板标签写法,提升代码可读性与维护性
```
1 parent b074f09d
const CAR_STATUS = {
0: '库存中',
1: '已售出',
2: '待售',
3: '已预定',
1: '已售出',
4: '已交付',
5: '待拍卖',
6: '拍卖中',
......@@ -21,7 +21,14 @@ const CAR_STATUS_LEVEL = {
6: 7,
7: 8,
}
const CAR_STATUS_ORDER = [0, 2, 3, 1, 4, 5, 6, 7]
const CAR_STATUS_OPTIONS = CAR_STATUS_ORDER.map(key => {
return {
label: CAR_STATUS[key],
value: +key,
level: CAR_STATUS_LEVEL[key],
}
})
const CAR_STATUS_COLOR = {
0: 'warning',
1: 'info',
......@@ -32,13 +39,7 @@ const CAR_STATUS_COLOR = {
6: 'warning',
7: 'info',
}
const CAR_STATUS_OPTIONS = Object.keys(CAR_STATUS).map(key => {
return {
label: CAR_STATUS[key],
value: +key,
level: CAR_STATUS_LEVEL[key],
}
})
const USAGE_TYPE = {
1: '非营运',
2: '营运',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!