Commit aac2e7dd by 李伟康

```

feat(usedCarManagement): 调整车辆状态流程与层级定义

更新车辆状态的展示顺序及层级配置,优化状态流转逻辑。
具体变更包括:
- 调整 CAR_STATUS 中状态的排列顺序
- 重新定义 CAR_STATUS_LEVEL 中各状态对应的层级
- 更新 CAR_STATUS_ORDER 中的状态展示顺序
- 完善注释说明,明确 key:value:level 的对应关系
```
1 parent d210644a
......@@ -2,26 +2,34 @@ const CAR_STATUS = {
0: '库存中',
2: '待售',
3: '已预定',
1: '已售出',
4: '已交付',
5: '待拍卖',
6: '拍卖中',
1: '已售出',
4: '已交付',
7: '已退库',
}
/**
* 库存中0→待售2→已预定3→已售出1→已交付4→待拍卖5→拍卖中6→已退库7
* key : value : level
* 0库存中1→
* 2待售2→
* 3已预定3→
* 5待拍卖4→
* 6拍卖中5→
* 1已售出6→
* 4已交付7→
* 7已退库8
*/
const CAR_STATUS_LEVEL = {
0: 1,
1: 4,
1: 6,
2: 2,
3: 3,
4: 5,
5: 6,
6: 7,
4: 7,
5: 4,
6: 5,
7: 8,
}
const CAR_STATUS_ORDER = [0, 2, 3, 1, 4, 5, 6, 7]
const CAR_STATUS_ORDER = [0, 2, 3, 5, 6, 1, 4, 7]
const CAR_STATUS_OPTIONS = CAR_STATUS_ORDER.map(key => {
return {
label: CAR_STATUS[key],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!