96 lines
3.0 KiB
JSON
96 lines
3.0 KiB
JSON
{
|
|
"tblname": "voucher_rule",
|
|
"alias": "voucher_rule_list",
|
|
"title": "代金券规则",
|
|
"params": {
|
|
"sortby": [
|
|
"sort_order"
|
|
],
|
|
"browserfields": {
|
|
"exclouded": [
|
|
"id"
|
|
],
|
|
"alters": {
|
|
"rule_type": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{
|
|
"value": "min_amount",
|
|
"text": "最低消费"
|
|
},
|
|
{
|
|
"value": "max_amount",
|
|
"text": "最高消费"
|
|
},
|
|
{
|
|
"value": "product_type",
|
|
"text": "限定产品类型"
|
|
},
|
|
{
|
|
"value": "product",
|
|
"text": "限定特定产品"
|
|
},
|
|
{
|
|
"value": "exclude_product",
|
|
"text": "排除特定产品"
|
|
},
|
|
{
|
|
"value": "max_usage_count",
|
|
"text": "最大使用次数"
|
|
},
|
|
{
|
|
"value": "user_level",
|
|
"text": "用户等级"
|
|
}
|
|
]
|
|
},
|
|
"enabled": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{
|
|
"value": "1",
|
|
"text": "启用"
|
|
},
|
|
{
|
|
"value": "0",
|
|
"text": "停用"
|
|
}
|
|
]
|
|
},
|
|
"rule_config": {
|
|
"uitype": "text",
|
|
"placeholder": "JSON 配置,如 {\"min_value\": 100} 或 {\"product_types\": [\"pipeline\"]}"
|
|
}
|
|
}
|
|
},
|
|
"editexclouded": [
|
|
"id",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"data_filter": {
|
|
"AND": [
|
|
{
|
|
"field": "template_id",
|
|
"op": "=",
|
|
"var": "template_id"
|
|
},
|
|
{
|
|
"field": "rule_type",
|
|
"op": "=",
|
|
"var": "rule_type"
|
|
}
|
|
]
|
|
},
|
|
"filter_labels": {
|
|
"template_id": "模板",
|
|
"rule_type": "规则类型"
|
|
},
|
|
"editable": {
|
|
"new_data_url": "{{entire_url('../api/rule/voucher_rule_create.dspy')}}",
|
|
"update_data_url": "{{entire_url('../api/rule/voucher_rule_update.dspy')}}",
|
|
"delete_data_url": "{{entire_url('../api/rule/voucher_rule_delete.dspy')}}"
|
|
}
|
|
}
|
|
}
|