discount_customer_bind: - UNIQUE(customerid) → UNIQUE(customerid, resellerid) 一个客户可绑定多个分销商 - bind_type: 加 3=域名注册 - 索引重命名: idx_dcb_customer → idx_dcb_customer_reseller reseller_discount_tier (新增): - 分销商阶梯折扣: name, min_amount, max_amount, discount_pct - 按累计消费自动匹配档位
27 lines
924 B
JSON
27 lines
924 B
JSON
{
|
|
"tblname": "reseller_discount_tier",
|
|
"title": "阶梯折扣管理",
|
|
"params": {
|
|
"sortby": "sort_order asc",
|
|
"logined_userorgid": "resellerid",
|
|
"browserfields": {
|
|
"exclouded": ["id"],
|
|
"alters": {
|
|
"status": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{"value": "active", "text": "启用"},
|
|
{"value": "inactive", "text": "停用"}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"editexclouded": ["id", "created_at", "updated_at"],
|
|
"editable": {
|
|
"new_data_url": "{{entire_url('../api/reseller_discount_tier_create.dspy')}}",
|
|
"update_data_url": "{{entire_url('../api/reseller_discount_tier_update.dspy')}}",
|
|
"delete_data_url": "{{entire_url('../api/reseller_discount_tier_delete.dspy')}}"
|
|
}
|
|
}
|
|
}
|