11 Commits

Author SHA1 Message Date
Hermes Agent
6c1e4d14d4 fix: discount_promo_code列表隐藏resellerid/sale_id显示,编辑排除这两个字段 2026-06-24 09:18:57 +08:00
Hermes Agent
474132eadd fix: discount_marketing列表隐藏id/resellerid显示,编辑排除id/resellerid/created_by/created_at/updated_at 2026-06-24 09:17:53 +08:00
Hermes Agent
842647da89 refactor: 让CRUD自动处理code字段,移除手动alters配置 2026-06-24 09:10:43 +08:00
Hermes Agent
96cd4712c0 fix: 修正code字段dataurl参数格式,使用valueField/textField 2026-06-24 09:07:51 +08:00
Hermes Agent
f1e9b1ab2e fix: subtable使用CRUD别名discount_detail_list而非表名 2026-06-24 09:00:43 +08:00
Hermes Agent
95b91c4c25 feat: 折扣方案添加子表按钮(折扣产品明细)
使用subtables配置,点击按钮跳转到discount_detail子表,
通过discountid字段关联筛选。
2026-06-24 08:50:11 +08:00
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
Hermes Agent
0fcc34c235 fix: dataurl改为/appbase/get_code.dspy,补全CRUD API
- json/discount_list.json: dataurl→/appbase/, resellerid隐藏+自动填充, customerid保留下拉
- json/discount_detail_list.json: dataurl→/appbase/
- 新增6个API: discount和discount_detail的create/update/delete
- load_path.py: 注册新API路径到logined和operator
2026-06-24 01:40:54 +08:00
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
Hermes Agent
73b7561de8 chore: 添加json/build.sh脚本 2026-06-17 17:26:21 +08:00
b41c89e9dd bugfix 2026-05-11 11:30:57 +08:00