114 lines
2.3 KiB
JSON
114 lines
2.3 KiB
JSON
{
|
|
"tablename": "financial_vouchers",
|
|
"grid": {
|
|
"fields": [
|
|
{
|
|
"name": "voucher_number",
|
|
"title": "凭证编号",
|
|
"width": 150
|
|
},
|
|
{
|
|
"name": "voucher_type",
|
|
"title": "凭证类型",
|
|
"width": 100,
|
|
"alter": "code:VOUCHER_TYPE"
|
|
},
|
|
{
|
|
"name": "contract_number",
|
|
"title": "合同编号",
|
|
"width": 150
|
|
},
|
|
{
|
|
"name": "order_number",
|
|
"title": "订单编号",
|
|
"width": 150
|
|
},
|
|
{
|
|
"name": "amount",
|
|
"title": "金额",
|
|
"width": 120,
|
|
"alter": "money"
|
|
},
|
|
{
|
|
"name": "voucher_date",
|
|
"title": "凭证日期",
|
|
"width": 120,
|
|
"alter": "date"
|
|
},
|
|
{
|
|
"name": "description",
|
|
"title": "描述",
|
|
"width": 300
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"width": 180,
|
|
"alter": "datetime"
|
|
}
|
|
],
|
|
"joins": [
|
|
{
|
|
"table": "contract",
|
|
"alias": "c",
|
|
"on": "financial_vouchers.contract_id = c.id"
|
|
},
|
|
{
|
|
"table": "orders",
|
|
"alias": "o",
|
|
"on": "financial_vouchers.order_id = o.id"
|
|
}
|
|
],
|
|
"select_fields": [
|
|
"financial_vouchers.*",
|
|
"c.contract_number",
|
|
"o.order_number"
|
|
]
|
|
},
|
|
"form": {
|
|
"fields": [
|
|
{
|
|
"name": "voucher_number",
|
|
"title": "凭证编号",
|
|
"widget": "text",
|
|
"readonly": true
|
|
},
|
|
{
|
|
"name": "voucher_type",
|
|
"title": "凭证类型",
|
|
"widget": "select",
|
|
"options": "code:VOUCHER_TYPE"
|
|
},
|
|
{
|
|
"name": "contract_id",
|
|
"title": "合同ID",
|
|
"widget": "hidden"
|
|
},
|
|
{
|
|
"name": "order_id",
|
|
"title": "订单ID",
|
|
"widget": "hidden"
|
|
},
|
|
{
|
|
"name": "amount",
|
|
"title": "金额",
|
|
"widget": "number"
|
|
},
|
|
{
|
|
"name": "voucher_date",
|
|
"title": "凭证日期",
|
|
"widget": "date"
|
|
},
|
|
{
|
|
"name": "description",
|
|
"title": "描述",
|
|
"widget": "textarea"
|
|
},
|
|
{
|
|
"name": "reference_id",
|
|
"title": "引用ID",
|
|
"widget": "hidden"
|
|
}
|
|
]
|
|
}
|
|
} |