返工单交易记录
对应旧版售后 actionRecord:GET 拉取某返工单的 trade_record 列表;POST 按交易 id 更新备注。
列表仅返回当前登录用户所属 factory_id 下的流水(trade_record.factory_id)。
一、交易记录列表
请求信息
请求 URL:
http://lbl-open.thinkerx.com/api/lbl/after-sales/remake-items/{order_remake_id}/trade-records请求方式:
GETContent-Type:
application/json(与其它接口一致时可在 query 传login_token)
路径参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| order_remake_id | int | 返工单 id(order_remake.id) |
返回示例
{
"status": 0,
"message": "",
"data": {
"trades": [
{
"id": 1,
"money": 100.0,
"account": "对公账户",
"aid": 3,
"create_time": "2026-01-15",
"note": "",
"handler": "张三"
}
]
}
}返回字段(单条 trades[])
| 字段 | 类型 | 说明 | |
|---|---|---|---|
| id | int | trade_record.id | |
| money | number | 金额 | |
| account | string | 收款账户名称;无账户关联时为「账户余额」 | |
| aid | int\ | null | system_account.id |
| create_time | string | 付款日期,Y-m-d(旧版为日期展示) | |
| note | string | 备注 | |
| handler | string | 操作人用户名 |
二、更新交易记录备注
请求信息
请求 URL:
http://lbl-open.thinkerx.com/api/lbl/after-sales/remake-items/trade-records/note请求方式:
POSTContent-Type:
application/json
请求参数
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| login_token | 是 | string | 通行证 |
| id | 是 | int | trade_record.id(须为当前工厂下且已绑定 order_remake_id 的流水) |
| note | 否 | string | 新备注,最长 2000 |
成功返回
message 为「保存成功」,data 可为空对象。
常见错误
| 说明 |
|---|
| 交易记录不存在或未绑定返工单(id 无效、跨工厂、非返工单流水) |
