1
0
forked from erp-dev/erp

feat: added type field into warehouse model

This commit is contained in:
2025-11-20 15:44:35 +08:00
parent 6091280fdc
commit 2a838199fa
22 changed files with 1384 additions and 38 deletions

View File

@@ -28,6 +28,7 @@ GET /api/v1/plate-orders/
| customer_phone | string | 否 | 客户电话(模糊查询) |
| salesperson | integer | 否 | 业务员ID |
| merchandiser | integer | 否 | 跟单员ID |
| designer | integer | 否 | 设计师ID |
| plate_type | string | 否 | 版型(模糊查询) |
| urgency_level | string | 否 | 紧急程度(模糊查询) |
| is_invalid | boolean | 否 | 是否作废true/false |
@@ -69,6 +70,8 @@ GET /api/v1/plate-orders/
"salesperson_name": "张三",
"merchandiser": 4,
"merchandiser_name": "李四",
"designer": 8,
"designer_name": "王五",
"style_name": "花朵印染",
"fabric": "棉布",
"width": "150cm",
@@ -124,6 +127,8 @@ GET /api/v1/plate-orders/{id}/
"salesperson_name": "张三",
"merchandiser": 4,
"merchandiser_name": "李四",
"designer": 8,
"designer_name": "王五",
"style_name": "花朵印染",
"fabric": "棉布",
"width": "150cm",
@@ -175,6 +180,7 @@ Content-Type: application/json
"urgency_level": "正常",
"salesperson": 3,
"merchandiser": 4,
"designer": 8,
"required_completion_date": "2025-11-25",
"is_mark_frame": false,
"plate_method": "机器",
@@ -199,6 +205,7 @@ Content-Type: application/json
- `default_address`: 默认地址
- `salesperson`: 业务员ID
- `merchandiser`: 跟单员ID
- `designer`: 设计师ID
- `style_name`: 款式名称
- `fabric`: 面料
- `fabric_source`: 布料来源(可空字符串,如“客户提供”)
@@ -579,6 +586,7 @@ GET /api/v1/plate-orders/{id}/timeline/
| default_address | string | 默认地址 |
| salesperson | FK | 业务员(外键) |
| merchandiser | FK | 跟单员(外键) |
| designer | FK | 设计师(外键) |
| process | integer | 流程ID无外键约束 |
| style_name | string | 款式名称 |
| fabric | string | 面料 |