Files
guilixu-admin/.workbuddy/memory/2026-07-07.md
赵忠林 08685d5ef1 refactor(shopExpressTemplate): 优化运费模板及明细功能界面和数据结构
- 规范和补充ShopExpressTemplate及ShopExpressTemplateDetail接口字段注释
- 调整列表列配置,增加字段宽度和排序支持,优化表格显示
- 添加计费方式和状态的标签显示,替换原有文字提示
- 删除批量移动功能相关代码和UI,简化操作流程
- 搜索组件添加清除按钮,支持批量删除操作提升用户体验
- 编辑弹窗宽度调整,表单控件换为数字输入或单选框提升输入准确性
- 编辑弹窗中新增运费模板下拉选择和表单验证,确保数据完整性
- 移除无用变量和注释,清理代码结构,提高维护性
- 优化时间显示为日期格式,界面更友好
2026-07-07 14:32:39 +08:00

24 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 2026-07-07 工作日志
## 运费模板模块优化shopExpressTemplate & shopExpressTemplateDetail
### 问题分析
两个模块存在大量代码生成器遗留问题:
1. 空列标题、数据库注释当列标题
2. 状态语义冲突标题写0=已发布/1=待审核实际显示0=显示/1=隐藏)
3. deleted/updateTime 不应在表单中可编辑
4. 表单验证规则无效(引用了不存在的字段名 shopExpressTemplateName
5. 价格/数量字段用 a-input 而非 a-input-number
6. type 计费方式用文本输入而非 radio
7. search.vue 导入了错误的 GradeParam 类型,缺少搜索框和批量删除按钮
8. 行选择未启用(用了 :selection 而非 v-model:selection
9. 大量未使用变量loading/showMove/images/chooseImage等
### 优化内容
- **Model**: 补充 shopExpressTemplateId / shopExpressTemplateDetailId 主键字段,完善注释
- **index.vue**: 修正列标题、移除 deleted 列、启用 v-model:selection、清理无用变量、type 列用 tag 展示
- **Edit.vue**: 修正表单标签、修复验证规则title 等必填字段)、价格用 a-input-number、type 用 radio、移除 updateTime/deleted 编辑项、添加 confirm-loading
- **search.vue**: 修正类型导入、添加搜索输入框、添加批量删除按钮disabled 联动 selection
- **Detail Edit**: templateId 改为下拉选择(从 listShopExpressTemplate 加载选项)
- 修复 rules 类型错误reactive<Record<string, any>>