- 新增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
39 lines
1.1 KiB
JSON
39 lines
1.1 KiB
JSON
{
|
|
"tblname": "discount_customer_bind",
|
|
"alias": "discount_customer_bind_list",
|
|
"title": "客户归属",
|
|
"params": {
|
|
"browserfields": {
|
|
"customerid": {
|
|
"title": "客户用户id",
|
|
"width": 200
|
|
},
|
|
"resellerid": {
|
|
"title": "归属商户",
|
|
"width": 150
|
|
},
|
|
"sale_id": {
|
|
"title": "归属销售",
|
|
"width": 120
|
|
},
|
|
"promo_code_id": {
|
|
"title": "促销码",
|
|
"width": 150
|
|
},
|
|
"bind_type": {
|
|
"title": "绑定方式",
|
|
"width": 100
|
|
},
|
|
"created_at": {
|
|
"title": "绑定时间",
|
|
"width": 160
|
|
}
|
|
},
|
|
"editable": {
|
|
"new_data_url": "{{entire_url('../api/customer_bind_create.dspy')}}",
|
|
"update_data_url": "{{entire_url('../api/customer_bind_update.dspy')}}",
|
|
"delete_data_url": "{{entire_url('../api/customer_bind_delete.dspy')}}"
|
|
}
|
|
}
|
|
}
|