chore(changelog): #5712 #5708 implemented (hl-admin@a9ddbd48) 含前端实证
changelog-filename-gate / validate (push) Failing after 2s
changelog-filename-gate / validate (push) Failing after 2s
这个提交包含在:
@@ -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 全绿。
|
||||
|
||||
在新工单中引用
屏蔽一个用户