discount/json/discount_list.json
Hermes Agent e4a6ca15b9 feat: 添加客户列表API支持*全部客户选项
- 新增 api/get_customer_list.dspy,返回带*选项的客户列表
- json/discount_list.json: customerid 使用自定义 dataurl
- load_path.py: 注册新API到logined和operator
2026-06-24 01:42:36 +08:00

34 lines
778 B
JSON

{
"tblname": "discount",
"alias": "discount_list",
"title": "折扣管理",
"params": {
"sortby": [
"enabled_date desc"
],
"browserfields": {
"exclouded": [
"id",
"resellerid"
],
"alters": {
"customerid": {
"uitype": "code",
"dataurl": "{{entire_url('../api/get_customer_list.dspy')}}",
"datamethod": "GET"
}
}
},
"editexclouded": [
"id",
"resellerid"
],
"editable": {
"new_data_url": "{{entire_url('../api/discount_create.dspy')}}",
"update_data_url": "{{entire_url('../api/discount_update.dspy')}}",
"delete_data_url": "{{entire_url('../api/discount_delete.dspy')}}"
},
"logined_userorgid": "resellerid"
}
}