fix: standardize summary format to list with primary=id in all models
This commit is contained in:
parent
13b4a5223e
commit
a0eac5f516
@ -1,9 +1,12 @@
|
|||||||
{
|
{
|
||||||
"summary": {
|
"summary": [
|
||||||
"tablename": "financial_vouchers",
|
{
|
||||||
"label": "财务凭证",
|
"name": "financial_vouchers",
|
||||||
"comment": "财务凭证记录,关联合同和订单"
|
"title": "财务凭证",
|
||||||
},
|
"primary": "id",
|
||||||
|
"catelog": "entity"
|
||||||
|
}
|
||||||
|
],
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"name": "id",
|
"name": "id",
|
||||||
@ -96,27 +99,38 @@
|
|||||||
{
|
{
|
||||||
"name": "idx_vouchers_contract_id",
|
"name": "idx_vouchers_contract_id",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"columns": ["contract_id"]
|
"columns": [
|
||||||
|
"contract_id"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_vouchers_order_id",
|
"name": "idx_vouchers_order_id",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"columns": ["order_id"]
|
"columns": [
|
||||||
|
"order_id"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_vouchers_voucher_number",
|
"name": "idx_vouchers_voucher_number",
|
||||||
"idxtype": "unique",
|
"idxtype": "unique",
|
||||||
"columns": ["voucher_number", "org_id"]
|
"columns": [
|
||||||
|
"voucher_number",
|
||||||
|
"org_id"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_vouchers_org_id",
|
"name": "idx_vouchers_org_id",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"columns": ["org_id"]
|
"columns": [
|
||||||
|
"org_id"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_vouchers_type",
|
"name": "idx_vouchers_type",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"columns": ["voucher_type"]
|
"columns": [
|
||||||
|
"voucher_type"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"codes": []
|
"codes": []
|
||||||
|
|||||||
@ -1,9 +1,12 @@
|
|||||||
{
|
{
|
||||||
"summary": {
|
"summary": [
|
||||||
"tablename": "payments",
|
{
|
||||||
"label": "支出记录",
|
"name": "payments",
|
||||||
"comment": "支出管理,关联已核销的合同收款"
|
"title": "支出记录",
|
||||||
},
|
"primary": "id",
|
||||||
|
"catelog": "entity"
|
||||||
|
}
|
||||||
|
],
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"name": "id",
|
"name": "id",
|
||||||
@ -119,22 +122,31 @@
|
|||||||
{
|
{
|
||||||
"name": "idx_payments_contract_id",
|
"name": "idx_payments_contract_id",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"columns": ["contract_id"]
|
"columns": [
|
||||||
|
"contract_id"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_payments_payment_number",
|
"name": "idx_payments_payment_number",
|
||||||
"idxtype": "unique",
|
"idxtype": "unique",
|
||||||
"columns": ["payment_number", "org_id"]
|
"columns": [
|
||||||
|
"payment_number",
|
||||||
|
"org_id"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_payments_org_id",
|
"name": "idx_payments_org_id",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"columns": ["org_id"]
|
"columns": [
|
||||||
|
"org_id"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_payments_status",
|
"name": "idx_payments_status",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"columns": ["payment_status"]
|
"columns": [
|
||||||
|
"payment_status"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"codes": []
|
"codes": []
|
||||||
|
|||||||
@ -1,9 +1,12 @@
|
|||||||
{
|
{
|
||||||
"summary": {
|
"summary": [
|
||||||
"tablename": "receipt_allocations",
|
{
|
||||||
"label": "收款分配",
|
"name": "receipt_allocations",
|
||||||
"comment": "收款在多个订单间的分配记录"
|
"title": "收款分配",
|
||||||
},
|
"primary": "id",
|
||||||
|
"catelog": "entity"
|
||||||
|
}
|
||||||
|
],
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"name": "id",
|
"name": "id",
|
||||||
@ -81,22 +84,30 @@
|
|||||||
{
|
{
|
||||||
"name": "idx_allocations_receipt_id",
|
"name": "idx_allocations_receipt_id",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"columns": ["receipt_id"]
|
"columns": [
|
||||||
|
"receipt_id"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_allocations_order_id",
|
"name": "idx_allocations_order_id",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"columns": ["order_id"]
|
"columns": [
|
||||||
|
"order_id"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_allocations_receivable_id",
|
"name": "idx_allocations_receivable_id",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"columns": ["receivable_id"]
|
"columns": [
|
||||||
|
"receivable_id"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_allocations_org_id",
|
"name": "idx_allocations_org_id",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"columns": ["org_id"]
|
"columns": [
|
||||||
|
"org_id"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"codes": []
|
"codes": []
|
||||||
|
|||||||
@ -1,9 +1,12 @@
|
|||||||
{
|
{
|
||||||
"summary": {
|
"summary": [
|
||||||
"tablename": "receipts",
|
{
|
||||||
"label": "收款记录",
|
"name": "receipts",
|
||||||
"comment": "客户收款记录管理"
|
"title": "收款记录",
|
||||||
},
|
"primary": "id",
|
||||||
|
"catelog": "entity"
|
||||||
|
}
|
||||||
|
],
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"name": "id",
|
"name": "id",
|
||||||
@ -103,22 +106,31 @@
|
|||||||
{
|
{
|
||||||
"name": "idx_receipts_customer_id",
|
"name": "idx_receipts_customer_id",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"columns": ["customer_id"]
|
"columns": [
|
||||||
|
"customer_id"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_receipts_receipt_number",
|
"name": "idx_receipts_receipt_number",
|
||||||
"idxtype": "unique",
|
"idxtype": "unique",
|
||||||
"columns": ["receipt_number", "org_id"]
|
"columns": [
|
||||||
|
"receipt_number",
|
||||||
|
"org_id"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_receipts_org_id",
|
"name": "idx_receipts_org_id",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"columns": ["org_id"]
|
"columns": [
|
||||||
|
"org_id"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "idx_receipts_status",
|
"name": "idx_receipts_status",
|
||||||
"idxtype": "index",
|
"idxtype": "index",
|
||||||
"columns": ["receipt_status"]
|
"columns": [
|
||||||
|
"receipt_status"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"codes": []
|
"codes": []
|
||||||
|
|||||||
@ -89,9 +89,12 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"summary": {
|
"summary": [
|
||||||
"tablename": "receivables",
|
{
|
||||||
"label": "应收款项",
|
"name": "receivables",
|
||||||
"comment": "合同应收款项管理"
|
"title": "应收款项",
|
||||||
|
"primary": "id",
|
||||||
|
"catelog": "entity"
|
||||||
}
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user