55 Commits

Author SHA1 Message Date
Hermes Agent
d89961c1e4 fix: root VBox height:100% instead of cheight:40 2026-06-19 14:25:09 +08:00
Hermes Agent
0d841f078e feat: pricing_program discount field validation [0-1]
- Added rules to discount field: required, number, min:0, max:1
- Frontend: Form validates on submit, shows error below field
- Backend: auto-generated dspy validates before DB write
2026-06-18 17:36:40 +08:00
Hermes Agent
9241edfb6c fix: test_pricing使用urlwidget加载控件JSON 2026-06-18 16:18:28 +08:00
Hermes Agent
edee247a11 fix: test_pricing结果直接返回完整控件JSON
- dspy: 直接return VScrollPanel+Text子控件的完整JSON,不再用status/data包装
- ui: actiontype从urldata改为bricks,直接实例化返回的控件
- 解决status_of模板${items}数组替换不支持的问题
2026-06-18 16:13:52 +08:00
Hermes Agent
d22dbc57ae fix: test_pricing结果用subwidgets控件数组渲染
- dspy: items改为Text控件数组([{widgettype:Text, options:{text:json}}])
- ui: status_of.ok改为VScrollPanel+subwidgets引用items
- 解决之前返回纯文本字符串无法渲染为bricks控件的问题
2026-06-18 16:08:59 +08:00
Hermes Agent
972400e382 feat: test_pricing_program结果每条记录单独显示
- dspy: 每条结果json.dumps(r, ensure_ascii=False)后以\n\n分隔
- ui: 结果区改为VScrollPanel,支持长结果滚动
2026-06-18 16:03:43 +08:00
7df8e530a4 remove: pricing_item CRUD and related functions (not used) 2026-06-12 14:41:58 +08:00
22a3a96833 bgufix 2026-06-12 13:03:55 +08:00
977be0d39c feat: add pricing display API for customer-facing pricing data
- generate_formula_from_factors(): auto-generate formula from price_factors array
- get_pricing_display(ppid): return structured human-readable pricing data
- wwwroot/api/get_pricing_display.dspy: API endpoint for frontend consumption
- Supports price_factors display layer (label, unit_price, unit_label)
- Backward compatible: old YAML without pricing_type/price_factors works
- Registered via load_pricing() with ServerEnv
2026-06-04 12:13:55 +08:00
7b9d3d2ba0 refactor: bind hot_reload event via EventDispatcher, add on_hot_reload to PricingProgram 2026-06-01 18:10:30 +08:00
71329af722 fix: 定价管理菜单直接进入pricing_program CRUD,跳过index.ui 2026-06-01 15:55:20 +08:00
12472b792f fix: reduce module card height (remove cheight, compact padding/icons) 2026-05-30 21:20:48 +08:00
fc1f8bb182 fix: wrap Tabular in VBox with cheight for proper scrolling 2026-05-29 22:09:53 +08:00
b7e69b48cd fix: responsive UI with VScrollPanel, cfontsize, css:card 2026-05-29 00:12:52 +08:00
ce5062215e fix: remove hardcoded dark theme colors from index.ui
- Remove bgcolor/color/border hardcoded dark theme values
- Use css:'card' class for navigation card
- Let system theme handle styling for proper contrast
2026-05-27 11:31:15 +08:00
0e9a0ef126 fix: add filler css + overflowY:auto to content container 2026-05-26 13:55:19 +08:00
bf868f3f3a fix: add dark mode background (#0B1120) to pricing index.ui 2026-05-26 11:57:18 +08:00
7c41db3f9b feat: modernize pricing UI - add index.ui with card navigation
- Create index.ui with standardized card layout (#1E293B, 12px radius)
- Simplify menu.ui to point to index.ui entry point
- Add page header with Title2 + description text
- Use consistent SVG icon style (36px, 1.5 stroke width)
2026-05-25 18:30:48 +08:00
9ccbb47920 bugfix 2026-05-19 12:09:52 +08:00
0efc1be770 bugfix 2026-05-14 17:01:56 +08:00
28b3cf4977 bugfix 2026-05-14 13:48:08 +08:00
d98479ee6e bugfix 2026-05-14 13:10:45 +08:00
896c87c4f0 bugfix 2026-05-14 13:10:13 +08:00
9370ffc11c bugfix 2026-05-07 16:41:14 +08:00
19fcb860f2 bugfix 2026-05-06 17:39:20 +08:00
ad4646130a bugfix 2026-05-06 17:33:35 +08:00
64aed371f3 bugfix 2026-05-06 17:24:51 +08:00
c310041db4 bugfix 2026-05-06 17:21:43 +08:00
0a2499ec5f bugfix 2026-05-06 17:13:33 +08:00
18cd13165a bugfix 2026-05-06 16:50:46 +08:00
b4783a6be2 bugfix 2026-05-06 16:16:00 +08:00
e237ee550d bugfix 2026-04-29 21:45:26 +08:00
5c0e4a4397 bugfix 2026-04-04 18:14:16 +08:00
192a82960a bugfix 2026-03-25 18:08:06 +08:00
41ba8c5c8c bugfix 2026-03-25 16:44:26 +08:00
943d3d53da bugfix 2026-03-25 13:20:32 +08:00
eb54b65f6a bugfix 2026-03-25 12:01:28 +08:00
9b5147ba8e bugfix 2026-03-24 16:56:48 +08:00
fe9cfeef65 bugfix 2026-03-24 14:26:43 +08:00
e81b3679cd bugfix 2026-03-24 14:22:54 +08:00
663a64375a bugfix 2026-03-24 14:19:14 +08:00
d991851d1c bugfix 2026-03-24 13:55:00 +08:00
d15f22a293 bugfix 2026-03-24 11:41:06 +08:00
81e9ebc041 bugfix 2026-03-24 11:34:01 +08:00
d884132d77 bugfix 2026-03-19 16:50:44 +08:00
a186291253 bugfix 2025-12-24 17:23:40 +08:00
01c3fe1139 bugfix 2025-12-24 17:13:34 +08:00
2613d9b72c bugfix 2025-12-22 16:18:35 +08:00
e6862e1f57 bugfix 2025-12-22 15:28:33 +08:00
fb9c91839a bugfix 2025-10-27 15:39:27 +08:00