fix: 出库交接交接状态参数名改为handoverState并完成内网验证

- 按 api-doc 接口文档修正交接状态入参 hoState → handoverState(原参数被后端
  静默忽略,两个 Tab 返回同一批数据);内网实机验证 0/1 过滤与 App 端到端链路
  均生效,平板端回归无影响
- 新增《后端接口对接问题清单.xlsx》:按模块/页面/接口定义/接口地址索引的后端
  对接文档,含 5 项待处理缺口(移库缺航班字段/操作人姓名/数据不回填、交接缺
  交接人入参、pageQueryTotal 出参恒 0)+ 1 项已验证归档
- phone-adapt skill 新增 references/api-doc.md(api-doc MCP 核对流程 + 内网
  直调验证技巧),阶段 2 改为「先查接口文档再问用户」,修正 verification.md
  中「后端不认 hoState」的过时误判结论
- CLAUDE.md / CHANGELOG.md 同步走查与验证结论

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-29 15:13:43 +08:00
parent db062c8ee3
commit bbc29ca2e1
7 changed files with 143 additions and 16 deletions

View File

@@ -219,7 +219,9 @@ class IntExpOutHandoverViewModel : BasePageViewModel() {
"fdest" to fdest.value?.ifEmpty { null },
"uld" to uldNo.value?.ifEmpty { null },
// 以下两项为手机版新增筛选维度,平板端保持空值故不参与查询
"hoState" to handoverState.value?.ifEmpty { null },
// 参数名以 api-doc 为准:交接状态为 handoverStateinteger0 未交接 / 1 已交接)。
// hoId交接人后端查询入参暂不支持已记录到 documents/后端接口对接问题清单.xlsx
"handoverState" to handoverState.value?.ifEmpty { null },
"hoId" to hoId.value?.ifEmpty { null }
)
@@ -255,12 +257,12 @@ class IntExpOutHandoverViewModel : BasePageViewModel() {
/**
* 加载「待交接 / 已交接」Tab 角标数量。
*
* 复用统计接口,分别以 hoState=0 / 1 各查一次,且沿用当前其余筛选条件,
* 复用统计接口,分别以 handoverState=0 / 1 各查一次,且沿用当前其余筛选条件,
* 保证角标与列表口径一致。仅手机版调用。
*/
private fun loadTabCounts(filterParams: Map<String, Any?>) {
listOf("0", "1").forEachIndexed { index, state ->
val params = (filterParams + mapOf("hoState" to state)).toRequestBody()
val params = (filterParams + mapOf("handoverState" to state)).toRequestBody()
launchCollect({ NetApply.api.getIntExpOutHandoverTotal(params) }) {
onSuccess = { result ->
val count = (result.data?.wbNumber ?: 0).toString()