59 Commits

Author SHA1 Message Date
72b42cb654 bugfix 2026-06-10 18:28:30 +08:00
7475b30527 bugfix 2026-06-10 17:59:36 +08:00
c4a869c9ff fix: billing 500 error (sqlExe returns list not dict) + enlarge popup windows (recharge 600x500, detail 700x550) 2026-05-31 14:36:27 +08:00
434cfe950c feat: billing - add stats summary and Excel download 2026-05-31 14:18:53 +08:00
f62e397c5a chore: remove vim swap file 2026-05-31 14:11:20 +08:00
c141134001 fix: use this.render(params) instead of this.loadData for Tabular (DataViewer API) 2026-05-31 14:11:14 +08:00
dd12be3833 bugix 2026-05-31 14:08:52 +08:00
7fbc826330 bugix 2026-05-31 14:06:32 +08:00
1029078b56 bugix 2026-05-31 14:05:05 +08:00
0080bbd7c4 fix: IconBar click not working - add id and reference in binds instead of self 2026-05-31 14:00:08 +08:00
8d447b90ea refactor: billing - use Form title, Tabular always present, form submit loadData via script 2026-05-31 13:56:56 +08:00
6d3dcf2db9 fix: billing layout - wrap Form in fixed-height VBox, Tabular as filler 2026-05-31 13:46:33 +08:00
eec08d684c bugfix 2026-05-31 13:42:07 +08:00
7c2c584407 fix: billing layout - Form fixed height, Tabular css filler 2026-05-31 13:30:32 +08:00
7361614f89 fix: billing query - use Tabular instead of DataViewer, fix form submit target
- Changed DataViewer to Tabular with row_options.fields for proper table rendering
- Form submit target changed from 'self' to 'billing_page' (root VBox ID)
  with mode:replace, preventing nested page loading inside Form
- Fixed page_size to page_rows (correct parameter name)
- Added column definitions: date, time, subject, direction, summary, amount, balance
2026-05-31 13:24:32 +08:00
1fddb96291 fix: myaccounts.ui icon click - fix event name, entire_url syntax, paths 2026-05-31 11:48:24 +08:00
8a3f1955d3 fix: collation mismatch in SQL JOINs + billing date fields use uitype:date 2026-05-31 11:44:58 +08:00
997c7a445e feat: 新增账单查询页面,按机构id+日期范围查询acc_detail 2026-05-31 10:27:14 +08:00
78ff190789 feat(credit): redesign credit limit UI with dashboard, overview and management views
- Add hub.ui as main entry with stat cards (total/used/available/usage%)
- Add credit_overview.ui for user's own credit visualization with progress bars
- Add credit_manage.ui for distributor sales to manage customer credits
- Add set_credit_form.ui and set_customer_credit.dspy for credit adjustment
- Add credit_summary.dspy API for stats data
- Enhance creditlimit.py with get_credit_stats, get_my_credit_list, get_all_customer_credits
- Register new functions in init.py with ServerEnv
2026-05-30 21:00:27 +08:00
195a7bfb46 fix: wrap Tabular in VBox with cheight for proper scrolling 2026-05-29 22:09:45 +08:00
9696d4334b feat: 添加信用额度功能
- 新增 credit_limit 表定义和DDL
- 修改 accounting_config.py 支持信用额度透支检查
- 新增 creditlimit.py 信用额度管理模块
- 新增信用额度管理界面和CRUD API
- 支持设置/查询/更新客户信用额度
2026-05-28 19:09:04 +08:00
e34be6ad16 Merge branch 'main' of git.opencomputing.cn:yumoqing/accounting
# Conflicts:
#	wwwroot/index.ui
#	wwwroot/index.ui~be97eaf7b5edfa4867c9caa6a5e0ffd1e499faa3
2026-05-28 19:08:47 +08:00
be97eaf7b5 fix: remove hardcoded dark theme colors from index.ui 2026-05-28 16:14:57 +08:00
a633368dcb fix: remove hardcoded dark theme colors from index.ui 2026-05-28 16:14:03 +08:00
5bf21ac024 fix: add filler css + overflowY:auto to content container 2026-05-26 13:57:32 +08:00
4e0f2e6e88 Merge branch 'feat/modern-ui-accounting' into feat/dataviz-accounting 2026-05-26 11:58:19 +08:00
5c10c2cb30 fix: add dark mode background (#0B1120) to accounting index.ui (dataviz branch) 2026-05-26 11:57:59 +08:00
16163ecdc3 feat: add accounting module stat cards - total balance, daily/monthly consumption, account count
- Create stats.py with get_accounting_stats() helper function
- Add 4 stat widgets: stat_total_balance, stat_today_consumption, stat_month_consumption, stat_account_count
- Update index.ui to display stat cards row above navigation cards
- Register get_accounting_stats in load_accounting()
2026-05-25 18:40:40 +08:00
865d9b136e feat: modernize accounting UI - add index.ui with card navigation
- Create index.ui with standardized card layout for 我的账户 and 账单明细
- Add page header with Title2 + description text
- Use consistent SVG icon styling (36px, 1.5 stroke width)
- Card style: #1E293B bg, 12px radius, #334155 borders
2026-05-25 18:32:04 +08:00
656205bac2 bugfix 2026-04-14 10:40:02 +08:00
8613abf6c0 bugfix 2026-04-10 20:45:55 +08:00
78ef190c9d bugfix 2026-04-01 17:59:26 +08:00
81171ac12e bugfix 2026-04-01 17:58:15 +08:00
933a3e286f bugfix 2026-04-01 17:56:46 +08:00
a63ea79cf7 bugfix 2026-04-01 17:48:18 +08:00
2d3285a19d bugfix 2026-03-30 14:38:47 +08:00
01ea1dc393 bugfix 2026-03-30 14:25:18 +08:00
00fb327533 bugfi 2026-03-30 14:23:56 +08:00
2aa989d738 bugfix 2026-03-30 14:22:42 +08:00
f96a55ee0d bugfix 2026-03-30 14:20:13 +08:00
4216ffc20b bugfix 2026-03-25 17:15:55 +08:00
a967858d75 bugfix 2026-03-18 13:16:01 +08:00
7e428f2422 bugfix 2026-01-04 16:59:46 +08:00
76acdb6a3b bugfix 2026-01-04 16:56:00 +08:00
6a1b09269e bugfix 2026-01-04 16:55:47 +08:00
f44799eb36 bugfix 2025-12-25 17:24:01 +08:00
081e9c113f bugfix 2025-12-25 17:18:10 +08:00
a45153c5af bugfix 2025-12-25 17:16:51 +08:00
e14d8e1812 bugfix 2025-12-25 17:12:39 +08:00
c1fcffc956 bugfix 2025-12-25 17:01:58 +08:00