yumoqing 3772f0f6fb feat(contract): 增强合同管理模块功能
- 添加增强的合同核心功能
- 实现合同里程碑管理
- 实现合同版本控制
- 添加订单和支付管理功能
- 完整的数据库模型和API接口
- 包含测试用例
2026-04-16 14:34:37 +08:00

176 lines
4.7 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"summary": [
{
"name": "orders",
"title": "订单表",
"primary": "id",
"catelog": "entity"
}
],
"fields": [
{
"name": "id",
"title": "订单ID",
"type": "str",
"length": 32,
"nullable": "no",
"comments": "主键 - UUID格式"
},
{
"name": "order_number",
"title": "订单编号",
"type": "str",
"length": 50,
"nullable": "no",
"comments": "订单编号,唯一标识"
},
{
"name": "contract_id",
"title": "合同ID",
"type": "str",
"length": 32,
"nullable": "no",
"comments": "关联的合同ID"
},
{
"name": "customer_id",
"title": "客户ID",
"type": "str",
"length": 32,
"nullable": "no",
"comments": "客户ID"
},
{
"name": "order_type",
"title": "订单类型",
"type": "str",
"length": 20,
"nullable": "no",
"comments": "订单类型advance=预付款, progress=进度款, final=尾款, other=其他"
},
{
"name": "delivery_batch",
"title": "交付批次",
"type": "str",
"length": 100,
"nullable": "yes",
"comments": "交付批次,如'Q3季度服务交付'"
},
{
"name": "acceptance_deadline",
"title": "验收截止日期",
"type": "date",
"nullable": "yes",
"comments": "验收截止日期"
},
{
"name": "amount",
"title": "订单金额",
"type": "decimal",
"length": 15,
"dec": 2,
"nullable": "no",
"comments": "该订单的金额"
},
{
"name": "paid_amount",
"title": "已付金额",
"type": "decimal",
"length": 15,
"dec": 2,
"nullable": "no",
"default": "0.00",
"comments": "已支付金额"
},
{
"name": "tax_rate",
"title": "税率",
"type": "decimal",
"length": 5,
"dec": 4,
"nullable": "no",
"default": "0.1300",
"comments": "税率"
},
{
"name": "credit_period",
"title": "账期要求",
"type": "long",
"nullable": "yes",
"comments": "账期天数要求"
},
{
"name": "status",
"title": "订单状态",
"type": "str",
"length": 20,
"nullable": "no",
"default": "active",
"comments": "状态active=活跃, completed=完成, cancelled=取消"
},
{
"name": "description",
"title": "描述",
"type": "text",
"nullable": "yes",
"comments": "订单详细描述"
},
{
"name": "created_at",
"title": "创建时间",
"type": "timestamp",
"nullable": "no",
"comments": "创建时间"
},
{
"name": "updated_at",
"title": "更新时间",
"type": "timestamp",
"nullable": "no",
"comments": "最后更新时间"
},
{
"name": "owner_id",
"title": "负责人ID",
"type": "str",
"length": 32,
"nullable": "no",
"comments": "订单负责人ID"
},
{
"name": "org_id",
"title": "所属组织",
"type": "str",
"length": 32,
"nullable": "no",
"comments": "所属组织ID"
}
],
"indexes": [
{
"name": "idx_orders_number",
"idxtype": "unique",
"idxfields": ["order_number"]
},
{
"name": "idx_orders_contract",
"idxtype": "index",
"idxfields": ["contract_id"]
},
{
"name": "idx_orders_customer",
"idxtype": "index",
"idxfields": ["customer_id"]
},
{
"name": "idx_orders_status",
"idxtype": "index",
"idxfields": ["status"]
},
{
"name": "idx_orders_owner",
"idxtype": "index",
"idxfields": ["owner_id"]
}
]
}