discount/json/discount_promo_code_list.json
Hermes Agent f5250fb261 feat: 营销方案、促销码、客户归属绑定功能
- 新增3个数据模型: discount_marketing, discount_promo_code, discount_customer_bind
- 新增CRUD定义: marketing/promo_code/customer_bind 的list和api
- 新增init/data.json: appcodes编码(促销码类型、绑定方式)
- init.py: bind_customer支持customerid参数覆盖(注册场景)
- 折扣校验放宽至 0 < discount <= 1
2026-06-24 00:56:32 +08:00

44 lines
1.2 KiB
JSON

{
"tblname": "discount_promo_code",
"alias": "discount_promo_code_list",
"title": "促销码",
"params": {
"browserfields": {
"id": {
"title": "促销码",
"width": 200
},
"marketing_id": {
"title": "营销方案",
"width": 150
},
"code_type": {
"title": "类型",
"width": 80
},
"resellerid": {
"title": "商户机构",
"width": 150
},
"sale_id": {
"title": "生成销售",
"width": 120
},
"status": {
"title": "状态",
"width": 80
},
"created_at": {
"title": "生成时间",
"width": 160
}
},
"editable": {
"new_data_url": "{{entire_url('../api/promo_code_create.dspy')}}",
"update_data_url": "{{entire_url('../api/promo_code_update.dspy')}}",
"delete_data_url": "{{entire_url('../api/promo_code_delete.dspy')}}"
},
"logined_userorgid": "resellerid"
}
}