chore(changelog): #5712 #5708 implemented (hl-admin@a9ddbd48) 含前端实证
一些检查失败了
changelog-filename-gate / validate (push) Failing after 2s
一些检查失败了
changelog-filename-gate / validate (push) Failing after 2s
这个提交包含在:
父节点
f6ca749fe3
当前提交
b955b244df
@ -7,9 +7,9 @@ change_type: "修改接口"
|
||||
author: "yaosutu(GIT)"
|
||||
backend_status: "deployed"
|
||||
gateway_status: "verified"
|
||||
frontend_status: "pending"
|
||||
frontend_owner: ""
|
||||
frontend_ref: ""
|
||||
frontend_status: "implemented"
|
||||
frontend_owner: "mmg"
|
||||
frontend_ref: "a9ddbd48"
|
||||
target_release: ""
|
||||
verified_at: ""
|
||||
status_note: "PR #5713 已合并 dev-v3;GET /v3/admin/order/{orderId}/settlement/vehicle-options 出参 data[] 新增 dayPrice 字段(车型当日牌价,元/车天)。dayPrice 是参考价非最终核算价,最终核算价以派单后车辆快照 dailyPrice / 核单行 amount 为准。"
|
||||
@ -247,3 +247,10 @@ Authorization: Bearer <token>
|
||||
|
||||
- **后端负责人**: @yaosutu (yst)
|
||||
- **fleet 侧对接**: @wx
|
||||
|
||||
## 前端实证确认(2026-08-08 mmg,hl-admin@a9ddbd48)
|
||||
|
||||
- 前端已接该下拉接口:`use-settlement-vehicle-options.js` 此前 `OPTION_FIELDS` 只投影 7 个契约字段(不含 dayPrice)。
|
||||
- 修复:OPTION_FIELDS 与候选 option 增加 `dayPrice`(null 归一为 null);CategoryTable `renderVehicleSelect` 新增 `renderLabel(option, selected)`——**下拉项**追加「参考价 ¥x/车天」角标(teleport 弹层用内联样式,scoped 选不中),**选中态**只显示车牌文案不带参考价;`dayPrice` 为 null 时显「—」,不当作 0 也不当最终核算价。
|
||||
- 保存契约安全:`select()` 写回 source 的字段显式列出(vehicleId/vehicleModelId/vehicleModelName/driverId/driverName),dayPrice 不进 source、不进 step3/vehicles 保存 payload。
|
||||
- 验证:settlement 全量定向 vitest 93/93 通过(含候选 option 携带 dayPrice 断言);checkpoint 全绿。
|
||||
|
||||
@ -7,9 +7,9 @@ change_type: "修改接口"
|
||||
author: "yaosutu(GIT)"
|
||||
backend_status: "deployed"
|
||||
gateway_status: "verified"
|
||||
frontend_status: "pending"
|
||||
frontend_owner: ""
|
||||
frontend_ref: ""
|
||||
frontend_status: "implemented"
|
||||
frontend_owner: "mmg"
|
||||
frontend_ref: "a9ddbd48"
|
||||
target_release: ""
|
||||
verified_at: ""
|
||||
status_note: "PR #5715 已合并 dev-v3;PUT /v3/admin/order/{orderId}/settlement/step3/vehicles 对 FLEET 来源行的 amount 字段从只读放开为可编辑,结构字段仍受 584109 保护。前端若把 amount 渲染为只读输入框,应放开为可编辑。"
|
||||
@ -264,3 +264,10 @@ Content-Type: application/json
|
||||
### 13.2 联系人
|
||||
|
||||
- **后端负责人**: @yaosutu (yst)
|
||||
|
||||
## 前端实证确认(2026-08-08 mmg,hl-admin@a9ddbd48)
|
||||
|
||||
- 前端 FLEET 行 amount 此前确为只读:`returnDetailAdapter.js adaptVehicleRows` 对 FLEET 行 `editableFields=['confirmStatus','note']`(缺 amount),CategoryTable `rowFieldEditable` 据此把 amount 渲染为只读。
|
||||
- 修复:FLEET 行 editableFields 改为 `['amount','confirmStatus','note']`,amount 输入框放开可编辑;结构字段(车牌/司机/日期/车型/付款方式/id)仍不在 editableFields,保持只读(与后端 584109 保护一致)。凭证列由 `canEditRowVoucher` 独立判定(不看 editableFields),本就开放,无需改。
|
||||
- 保存链路 `buildVehicleSaveRequest` 本就把 `row.amount` 透传进 `items[].amount`、结构字段从 `source.*` 原样回传,无需改——金额改完随全量保存生效。
|
||||
- 验证:settlement 全量定向 vitest 93/93 通过(含更新 `editableFields` 断言);checkpoint 全绿。
|
||||
|
||||
正在加载...
x
在新工单中引用
屏蔽一个用户