25 Commits

Author SHA1 Message Date
b45c85448a bugfix 2026-06-29 11:00:33 +08:00
a75164e62d fix: 使用跨库全限定名查询product_management表 2026-06-25 16:11:08 +08:00
9135b064ff fix: 移除discount_setting/index.ui中无效的Jinja2 data_params配置 2026-06-25 15:35:37 +08:00
Hermes Agent
07d4a1071e fix: data_params使用params.discountid接收URL参数 2026-06-24 21:46:44 +08:00
Hermes Agent
4f05c285a1 fix: 添加init bind传递discountid,dspy添加early debug日志 2026-06-24 21:37:22 +08:00
Hermes Agent
abcfd7c9a2 fix: 去掉跨库JOIN前缀,同库直接引用 2026-06-24 21:34:43 +08:00
Hermes Agent
79756800d7 fix: 恢复org_id限制,添加debug日志排查问题 2026-06-24 21:32:56 +08:00
Hermes Agent
01a4dddc59 fix: 产品查询去掉org_id限制,使用跨库JOIN 2026-06-24 21:26:55 +08:00
Hermes Agent
9997c8a087 fix: Jinja2模板中entire_url使用单引号避免转义错误 2026-06-24 21:22:55 +08:00
Hermes Agent
84eaf6c1ee chore: 删除残留的api文件 2026-06-24 20:42:41 +08:00
Hermes Agent
29578196a1 feat: 独立产品折扣设置页面(全量产品列表+行内upsert) 2026-06-24 20:42:36 +08:00
Hermes Agent
b2691fe02a fix: discount_detail_create get discountid from params/query/referer 2026-06-24 12:59:14 +08:00
Hermes Agent
f8c2347292 fix: use uuid() instead of getID() in dspy files 2026-06-24 12:46:34 +08:00
Hermes Agent
8a2d8b39aa fix: use event.params.prodtypeid instead of event in cascading script 2026-06-24 12:36:02 +08:00
Hermes Agent
d6d827fabb feat: hand-write discount_detail_list index.ui + get dspy with editable.binds cascading 2026-06-24 12:18:51 +08:00
Hermes Agent
49f3e1a8a2 feat: 促销码隐藏id、自动生成、添加二维码tool
- json: id加入exclouded和editexclouded(不显示不输入)
- 新增 api/promo_code_qr.dspy:为选中促销码生成二维码
- 修改 promote/index.dspy:支持code参数,未登录引导登录/注册
- toolbar添加'生成二维码'按钮,选中行后弹窗显示二维码
2026-06-24 09:47:36 +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
c9372ae2c6 fix: CRUD路径改为tablename/index.ui格式,清理错误的.ui路径 2026-06-24 01:24:59 +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
b41c89e9dd bugfix 2026-05-11 11:30:57 +08:00
eb26b179a3 bugfix 2026-02-26 13:36:59 +08:00
98581b2a37 bugfix 2026-02-25 13:49:16 +08:00
97dc4befef bugfix 2026-02-24 19:48:26 +08:00
45333b6b23 bugfix 2026-02-24 17:32:46 +08:00