58 lines
1.4 KiB
JSON
58 lines
1.4 KiB
JSON
{
|
|
"guard": "bearer-jwt",
|
|
"title": "应用表单",
|
|
"sn": "AP1024",
|
|
"orign": "手机应用",
|
|
"columns": [
|
|
{
|
|
"name": "门店",
|
|
"field": "store_id",
|
|
"searchable": true,
|
|
"props": {
|
|
"value": ":store_id",
|
|
"type": "SelectStore",
|
|
"title": "门店",
|
|
"placeholder": "请选择门店",
|
|
"validation": [
|
|
{ "type": "Required" },
|
|
{ "type": "StoreStatus", "args": [":store_id"] }
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "订单数量",
|
|
"field": "orders_amount",
|
|
"searchable": true,
|
|
"props": {
|
|
"value": ":orders_amount",
|
|
"type": "Number",
|
|
"title": "订单数量",
|
|
"placeholder": "今日订单数量",
|
|
"computed": "OrderAmount",
|
|
"validation": [
|
|
{ "type": "Required" },
|
|
{ "type": "IsNumber", "args": [":orders_amount"] }
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "账单地址",
|
|
"field": "address",
|
|
"props": {
|
|
"value": ":address",
|
|
"type": "Text",
|
|
"title": "账单地址",
|
|
"placeholder": "填写账单地址",
|
|
"validation": [
|
|
{ "type": "Required" },
|
|
{ "type": "MaxLength", "args": [":address", 200] }
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"filters": [],
|
|
"list-layout": {
|
|
"columns": [{ "name": "store_id" }, { "name": "orders_amount" }],
|
|
"filters": [{ "name": "订单数量" }]
|
|
}
|
|
}
|