forked from erp-dev/erp
feat: added area field into shipments model
This commit is contained in:
@@ -84,6 +84,7 @@
|
||||
|------|------|------|------|
|
||||
| customer | int | 是 | 客户ID |
|
||||
| shipment_date | string | 是 | 出货日期(YYYY-MM-DD) |
|
||||
| area | string | 否 | 出货地区(可空字符串,长度<=30) |
|
||||
| remark | string | 否 | 备注 |
|
||||
| sales_items | array[int] | 否 | 要关联的销售品ID列表 |
|
||||
|
||||
@@ -93,6 +94,7 @@
|
||||
{
|
||||
"customer": 1,
|
||||
"shipment_date": "2026-01-14",
|
||||
"area": "华东",
|
||||
"remark": "备注信息",
|
||||
"sales_items": [1, 2, 3]
|
||||
}
|
||||
@@ -108,6 +110,7 @@
|
||||
"customer": 1,
|
||||
"customer_name": "客户A",
|
||||
"shipment_date": "2026-01-14",
|
||||
"area": "华东",
|
||||
"remark": "备注信息",
|
||||
"items_count": 3,
|
||||
"sales_items": [],
|
||||
@@ -129,6 +132,7 @@
|
||||
| customer | int | 客户ID |
|
||||
| customer_name | string | 客户名称 |
|
||||
| shipment_date | string | 出货日期 |
|
||||
| area | string | 出货地区 |
|
||||
| remark | string | 备注 |
|
||||
| items_count | int | 关联的销售品数量 |
|
||||
| created_by_id | int | 创建人ID |
|
||||
@@ -180,6 +184,7 @@
|
||||
|------|------|------|------|
|
||||
| customer | int | 是 | 客户ID |
|
||||
| shipment_date | string | 是 | 出货日期(YYYY-MM-DD) |
|
||||
| area | string | 否 | 出货地区(可空字符串,长度<=30) |
|
||||
| remark | string | 否 | 备注 |
|
||||
| external_id | string | 是 | 外部订单号(长度<=120) |
|
||||
| external_finished_products | array[object] | 是 | 外部成品表结构数组(至少 1 条) |
|
||||
@@ -198,6 +203,7 @@
|
||||
{
|
||||
"customer": 1,
|
||||
"shipment_date": "2026-01-14",
|
||||
"area": "华南",
|
||||
"remark": "external 备注(可选)",
|
||||
"external_id": "EXT-ORDER-001",
|
||||
"external_finished_products": [
|
||||
@@ -217,6 +223,7 @@
|
||||
"customer": 1,
|
||||
"customer_name": "客户A",
|
||||
"shipment_date": "2026-01-14",
|
||||
"area": "华南",
|
||||
"remark": "external 备注(可选)",
|
||||
"status": 1,
|
||||
"status_display": "待送货",
|
||||
|
||||
Reference in New Issue
Block a user