Commit Graph
21 Commits
Author SHA1 Message Date
H0nGzA1andClaude Opus 4.6 b69a90a683 fix(permission): improve scan logic for dvadmin project structure
- scan_get_apps: scan views/ subdirectories instead of apps registry
- scan_viewset: scan submodules in views/ directory using pkgutil
- Fix model name extraction using removesuffix instead of fixed slice
- Add class ID deduplication to avoid duplicate ViewSets

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-09 20:56:08 +08:00
H0nGzA1andClaude Opus 4.6 70a4608eb1 feat(permission): add test_app and improve ScanModal to grouped table
- Add dvadmin.test_app with BlogViewSet and ProductViewSet for testing
- Fix scan_viewset to exclude base classes (CustomModelViewSet, etc.)
- ScanModal: upgrade to el-collapse grouped table (collapsible ViewSet groups)
- Add toolbar: select all / deselect all
- Group header checkbox with indeterminate state

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-09 20:56:07 +08:00
H0nGzA1andClaude Opus 4.6 32673bdc32 feat(permission): add ViewSet scan APIs for auto permission generation
- scan_get_apps: list all scannable Django apps under dvadmin
- scan_viewset: scan ViewSet actions and return preview data
- scan_batch_create: bulk create MenuButton records

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-09 20:56:07 +08:00
lewis yan 9c703478d9 Merge branch 'develop' into 'develop'
refactor(eip_sync):对齐杂采料号抛转接口url

See merge request pisteams/pis!3
2026-04-09 04:01:56 +00:00
Lewis_yan 3c3f63bddf feat(i18n): adapt all system pages to use i18n keys and replace django-vue3-admin references
- Replace all django-vue-admin/django-vue3-admin references with "Procurement Inquiry System"
- Add i18n support for system config, dept, dictionary, fileList, menu, messageCenter, role, whiteList pages
- Add i18n files for fileSelector module
- Backend: add SystemConfig model i18n fields (title_en, title_zh_tw) and migrations
2026-04-09 12:01:34 +08:00
nebula chen ada5decee6 Merge branch 'develop' into 'develop'
# Conflicts:
#   web/src/views/pisadmin/dashboard/BuyerDashboard.vue
2026-04-09 03:39:49 +00:00
nebula_chen e95610f73f feat(pisadmin):加入采购端登录页账号权限登录卡关 2026-04-09 11:16:45 +08:00
Lewis_yan 025ddceb82 feat(i18n): restore framework menu i18n and fix login page i18n keys
- Restore init_menu.json with name_en/name_zh_tw for menu buttons (104 entries)
- Add data migration 0003 to populate menu item name_en/name_zh_tw
- Fix login page i18n key paths (message.account.* -> message.pages.login.account.*)
- Add missing login i18n keys: loginTitle, firstLoginTip, welcomeLogin, copyright
- Fix hardcoded Chinese strings in login page to use i18n
2026-04-08 23:22:42 +08:00
Lewis_yan 3913ac722e feat(i18n): complete i18n adaptation across backend and frontend
Backend:
- Improve menu title language detection (query param, user lang, Accept-Language)
- Fix user language update to use correct update_datetime field
- Add menu i18n sync management command
- Add migrations for company/miscprocurement i18n fields

Frontend:
- Clear tagsView cache on language switch to reload titles in new language
2026-04-08 23:06:59 +08:00
Lewis_yan 0716cd293c feat(i18n): 添加 Menu/MenuButton/Users i18n 字段迁移 2026-04-08 17:20:05 +08:00
Lewis_yan 231ac88c8b feat(i18n): 合并 django-vue3-admin i18n 国际化功能
后端:
- 添加 LocaleMiddleware 和 Django i18n 配置 (LANGUAGES/LOCALE_PATHS)
- Users.language 字段支持用户语言偏好
- Menu/MenuButton name_en/name_zh_tw 多语言字段
- WebRouterSerializer get_title() 语言感知返回
- update_language API endpoint

前端:
- vue-i18n 升级为 deepMerge + fast-crud i18n 集成
- 新增 19 个模块的 3 种语言翻译 (zh-CN/en/zh-TW)
- 导航栏语言切换器: 刷新路由 + 后端持久化
- router/backEnd.ts 支持 language 参数和 refreshRoutesForI18n
2026-04-08 17:11:39 +08:00
nebula_chen 8259cd797a refactor(system, pisadmin):修改供应商账号登录时角色标识的校验逻辑,暂时改为 supplier_*;同步修改仪表盘 2026-04-07 16:06:39 +08:00
lewis_yan a90809c3fc refactor(storage): rename MinIO to RustFS throughout backend
- Rename minio_storage.py to rustfs_storage.py
- Update all MINIO_* settings to RUSTFS_* in env.py
- Update file_list.py to import rustfs_upload_file
- Update test files and factory to use rustfs engine
2026-04-03 17:12:04 +08:00
lewis_yan 076c3a5a43 feat(storage): simplify FileSerializer.create to use MinIO only 2026-04-03 16:41:50 +08:00
lewis_yan 74ab2caf29 feat(login): add /login/supplier/ route for supplier portal 2026-04-02 09:50:49 +08:00
lewis_yan 9d581dd5d3 feat(login): add SupplierLoginSerializer and SupplierLoginView for supplier portal 2026-04-02 09:48:46 +08:00
allen_xiong 82f3f5303c 补充服务器migrations迁移文件
1. 取消后端.gitignore文件中migrations文件忽略配置
2. 补充服务器上已有迁移文件
2026-03-23 20:02:58 +08:00
allen_xiong b7351d44cf 日常更新
1. 修改后端配置及路由中相关应用路径为 apps.pisadmin 和 apps.pissupplier
2. 添加询价业务逻辑
3. 其他优化
2026-03-23 09:28:12 +08:00
allen_xiong 896803dc64 1. 优化生成system接口地址问题; 2. 优化菜单按钮自动生成接口地址时,没有反斜杆问题 2026-03-20 15:10:57 +08:00
allen_xiong 6b8df09c23 功能优化
1. 新增供应商报价模块及相关功能
2. 重构询价单状态流转逻辑及字段处理
3. 其他优化
2026-03-20 15:02:33 +08:00
allen_xiong 884dab3fb1 初次提交PIS代码 2026-03-19 20:03:10 +08:00