forked from erp-dev/erp
feat: added remark field into shipment module
This commit is contained in:
@@ -41,5 +41,6 @@
|
||||
- `GET /api/v1/shipment/shipments/`:出货单列表(merchant 隔离 + LimitOffsetPagination)
|
||||
- `GET /api/v1/shipment/shipments/<id>/`:出货单详情(merchant 隔离)
|
||||
- 出货单列表序列化器增强:`sales_items` 与 `external_finished_products` 字段稳定输出(无数据也返回空数组)
|
||||
- ExternalFinishedProduct 增加 `remark` 字段(可空),并同步更新相关序列化器/文档/测试(包含 shipments list 附带数据)
|
||||
- 更新 `docs/shipment_api.md`:补充“查询出货单(列表/详情)”说明
|
||||
- 新增 API 测试:覆盖列表/详情的商户隔离与未登录行为
|
||||
|
||||
@@ -190,6 +190,7 @@
|
||||
|------|------|------|------|
|
||||
| style_name | string | 是 | 款式名称 |
|
||||
| num_of_rolls | int | 是 | 卷数 |
|
||||
| remark | string | 否 | 备注(可空) |
|
||||
|
||||
### 请求示例
|
||||
|
||||
@@ -200,7 +201,7 @@
|
||||
"remark": "external 备注(可选)",
|
||||
"external_id": "EXT-ORDER-001",
|
||||
"external_finished_products": [
|
||||
{"style_name": "款式A", "num_of_rolls": 2},
|
||||
{"style_name": "款式A", "num_of_rolls": 2, "remark": "A备注"},
|
||||
{"style_name": "款式B", "num_of_rolls": 5}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user