financial_management/json/payments.json
yumoqing 09c374d47a fix: rewrite all CRUD JSON files to match crud-definition-spec
- Replace wrong format (tablename/grid/form/joins/select_fields/widget)
  with correct spec format (tblname/params/browserfields/editexclouded/alters)
- Use uitype:code with data arrays for dropdown fields
- Add logined_userorgid for multi-tenant data isolation
- Only reference actual table fields, no cross-table joins
- Hide system fields (id, org_id, created_at, updated_at) in browser/edit views

Files: financial_vouchers.json, payments.json, receipt_allocations.json, receipts.json, receivables.json
2026-05-07 10:55:45 +08:00

34 lines
1.3 KiB
JSON

{
"tblname": "payments",
"title": "支出管理",
"params": {
"sortby": ["created_at desc"],
"logined_userorgid": "org_id",
"confidential_fields": [],
"browserfields": {
"exclouded": ["id", "contract_id", "vendor_id", "approved_by", "created_by", "org_id"],
"alters": {
"payment_method": {
"uitype": "code",
"data": [
{"value": "bank_transfer", "text": "银行转账"},
{"value": "cash", "text": "现金"},
{"value": "check", "text": "支票"},
{"value": "other", "text": "其他"}
]
},
"payment_status": {
"uitype": "code",
"data": [
{"value": "pending", "text": "待审批"},
{"value": "approved", "text": "已审批"},
{"value": "rejected", "text": "已拒绝"},
{"value": "paid", "text": "已支付"}
]
}
}
},
"editexclouded": ["id", "contract_id", "vendor_id", "approved_by", "created_by", "org_id", "created_at", "updated_at"]
}
}