financial_management/json/receipt_allocations.json
2026-04-16 13:32:15 +08:00

97 lines
2.0 KiB
JSON

{
"tablename": "receipt_allocations",
"grid": {
"fields": [
{
"name": "receipt_number",
"title": "收款编号",
"width": 150
},
{
"name": "order_number",
"title": "订单编号",
"width": 150
},
{
"name": "contract_number",
"title": "合同编号",
"width": 150
},
{
"name": "allocated_amount",
"title": "分配金额",
"width": 120,
"alter": "money"
},
{
"name": "allocation_percentage",
"title": "分配比例",
"width": 100,
"alter": "percentage"
},
{
"name": "created_at",
"title": "创建时间",
"width": 180,
"alter": "datetime"
}
],
"joins": [
{
"table": "receipts",
"alias": "r",
"on": "receipt_allocations.receipt_id = r.id"
},
{
"table": "orders",
"alias": "o",
"on": "receipt_allocations.order_id = o.id"
},
{
"table": "contract",
"alias": "c",
"on": "receipt_allocations.contract_id = c.id"
}
],
"select_fields": [
"receipt_allocations.*",
"r.receipt_number",
"o.order_number",
"c.contract_number"
]
},
"form": {
"fields": [
{
"name": "receipt_id",
"title": "收款ID",
"widget": "hidden"
},
{
"name": "order_id",
"title": "订单ID",
"widget": "hidden"
},
{
"name": "receivable_id",
"title": "应收ID",
"widget": "hidden"
},
{
"name": "contract_id",
"title": "合同ID",
"widget": "hidden"
},
{
"name": "allocated_amount",
"title": "分配金额",
"widget": "number"
},
{
"name": "allocation_percentage",
"title": "分配比例",
"widget": "number"
}
]
}
}