voucher/json/voucher_template_list.json
yumoqing 2c56aa904a feat: 代金券模块初始实现
- 4张表: voucher_template, voucher_rule, voucher_instance, voucher_usage_log
- 可配置规则引擎: registry + validators + engine
- 8种内置规则: min_amount, max_amount, applicable_product_type,
  applicable_product, exclude_product, max_usage_count, valid_period, user_level
- CRUD定义 + API接口 + 前端页面
- SQL建表脚本 + RBAC权限配置
- 一次性使用,不找零
2026-05-29 00:28:01 +08:00

45 lines
1.5 KiB
JSON

{
"tblname": "voucher_template",
"alias": "voucher_template_list",
"title": "代金券模板管理",
"params": {
"sortby": ["created_at desc"],
"browserfields": {
"exclouded": ["creator", "updater"],
"alters": {
"status": {
"uitype": "code",
"data": [
{"value": "draft", "text": "草稿"},
{"value": "active", "text": "启用"},
{"value": "inactive", "text": "停用"}
]
},
"face_value": {
"uitype": "code",
"data": []
}
}
},
"data_filter": {
"AND": [
{"field": "name", "op": "LIKE", "var": "name"},
{"field": "status", "op": "=", "var": "status"}
]
},
"editable": {
"new_data_url": "{{entire_url('../api/template/voucher_template_create.dspy')}}",
"update_data_url": "{{entire_url('../api/template/voucher_template_update.dspy')}}",
"delete_data_url": "{{entire_url('../api/template/voucher_template_delete.dspy')}}"
},
"subtables": [
{
"field": "id",
"title": "规则配置",
"url": "{{entire_url('../voucher_rule_list/')}}",
"subtable": "voucher_rule"
}
]
}
}