fix: #34 功能需求 + UserProfile 扩展信息#69
Open
dajiaohuang wants to merge 5 commits into
Open
Conversation
fix: address issues zhtyyx#34 and zhtyyx#23 Issue zhtyyx#34 - 功能需求反馈: - 修复库存入库/出库/调整按钮无响应问题(href="#" 改为正确 URL + 预填商品) - 新增商品批量导入(CSV)和导出功能(修复字段名不匹配问题) - 新增颜色/尺码自定义管理(CRUD + 模板) - 新增销售退货功能(恢复库存、退还余额、标记状态) - 为 Sale 模型添加 RETURNED(已退货)状态 Issue zhtyyx#23 - 用户表缺少扩展信息: - 新增 UserProfile 模型(OneToOne → User),含手机号、部门、工号、备注 - 用户创建/编辑/详情/列表页均支持扩展信息字段 Co-Authored-By: Claude <noreply@anthropic.com> @
feat: UserProfile 扩展信息(注册自动创建,用户/管理员均可编辑) - UserProfile 模型:phone/department/employee_id/notes - post_save signal 自动为每个新 User 创建空 profile - 数据迁移:为已有用户补充 profile - 管理员:user_create/user_update 可编辑扩展字段 - 用户:/profile/ 页面可自行编辑个人信息 - 列表新增手机号/部门列,详情页展示扩展信息 - 不影响原有登录/注册流程 Co-Authored-By: Claude <noreply@anthropic.com> @
Owner
|
@dajiaohuang 方便加个联系方式聊一下吗, zhtyyx@gmail.com |
Owner
|
感谢提交 PR,这里面确实有一些有价值的修复,比如库存入库/出库/调整按钮、商品导入导出、退货、用户扩展信息等方向都能对应现有 issue。 另外其中有几处高风险点还需要进一步处理:
建议把这个 PR 拆成几个更小的 PR:
这样每个 PR 都能独立 review、测试和合并,也更容易保证主分支稳定。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复内容
Issue #34 — 功能需求反馈
1. 库存入库/出库/调整按钮无响应
inventory_list.html中入库/出库/调整按钮href="#"→ 正确链接2. 商品批量导入导出 + 颜色/尺码自定义
product_service中字段名不匹配(retail_price→price)3. 缺少退货功能
Sale模型新增RETURNED(已退货)状态sale_return视图:恢复库存 + 退还余额 + 扣回积分 + 操作日志Issue #23 — UserProfile 扩展信息
UserProfile模型:手机号、部门、工号、备注post_savesignal 自动为新用户创建空 profile/profile/页面:用户可自行编辑个人信息文件变更
🤖 Generated with Claude Code