requirements.md 11 KB

Requirements Document

Introduction

本需求文档描述了将原始建模管理前端模块(s0-operating-modeling)完整整合到芋道管理系统(yudao-ui-admin-vue3)的功能需求。目前系统中存在两个重复的"建模管理"一级菜单,且建模管理模块的大部分子菜单未能成功整合。本次整合将解决菜单重复问题,并完整迁移所有建模管理功能。

Glossary

  • 建模管理系统 (Jianmo): 运营建模管理模块,包含销售建模、制造建模、仓储建模、供应建模、设备管理、质量建模等子模块
  • s0-operating-modeling: 原始独立的建模管理前端项目
  • yudao-ui-admin-vue3: 芋道管理系统Vue3前端项目
  • 菜单配置: 数据库中system_menu表的菜单记录
  • 路由配置: Vue Router中的路由定义

Requirements

Requirement 1

User Story: As a system administrator, I want to have a single unified "建模管理" menu entry, so that users can access all modeling features without confusion from duplicate menus.

Acceptance Criteria

  1. WHEN the system displays the main navigation menu THEN the system SHALL show exactly one "建模管理" top-level menu entry
  2. WHEN duplicate menu entries exist in the database THEN the system SHALL remove the redundant entries and retain only one properly configured entry
  3. WHEN the menu SQL script is executed THEN the system SHALL create a complete menu structure for all modeling sub-modules

Requirement 2

User Story: As a user, I want to access customer management features, so that I can maintain customer information.

Acceptance Criteria

  1. WHEN a user navigates to "建模管理 > 客户管理" THEN the system SHALL display the CustomerManagement component
  2. WHEN the CustomerManagement component loads THEN the system SHALL render the customer list with search and CRUD functionality

Requirement 3

User Story: As a user, I want to access material management features, so that I can maintain material information.

Acceptance Criteria

  1. WHEN a user navigates to "建模管理 > 物料管理" THEN the system SHALL display the MaterialManagement component
  2. WHEN the MaterialManagement component loads THEN the system SHALL render the material list with search and CRUD functionality

Requirement 4

User Story: As a user, I want to access order priority configuration, so that I can set up order processing priorities.

Acceptance Criteria

  1. WHEN a user navigates to "建模管理 > 订单优先级配置" THEN the system SHALL display the OrderPriorityConfig component

Requirement 5

User Story: As a user, I want to access device management features, so that I can manage equipment and molding tools.

Acceptance Criteria

  1. WHEN a user navigates to "建模管理 > 设备管理 > 设备列表" THEN the system SHALL display the DeviceList component
  2. WHEN a user navigates to "建模管理 > 设备管理 > 模工具列表" THEN the system SHALL display the MoldingToolList component

Requirement 6

User Story: As a user, I want to access warehouse modeling features, so that I can configure warehouse-related master data.

Acceptance Criteria

  1. WHEN a user navigates to "建模管理 > 仓储建模 > 库位维护" THEN the system SHALL display the LocationMaintenanceList component
  2. WHEN a user navigates to "建模管理 > 仓储建模 > 货架列表" THEN the system SHALL display the RackList component
  3. WHEN a user navigates to "建模管理 > 仓储建模 > 部门维护" THEN the system SHALL display the DepartmentMaintenanceList component
  4. WHEN a user navigates to "建模管理 > 仓储建模 > 雇员列表" THEN the system SHALL display the EmployeeList component
  5. WHEN a user navigates to "建模管理 > 仓储建模 > 条码规则" THEN the system SHALL display the BarcodeRuleList component
  6. WHEN a user navigates to "建模管理 > 仓储建模 > 标签格式" THEN the system SHALL display the LabelFormatList component
  7. WHEN a user navigates to "建模管理 > 仓储建模 > 成本中心" THEN the system SHALL display the CostCenterList component
  8. WHEN a user navigates to "建模管理 > 仓储建模 > 物料职责" THEN the system SHALL display the MaterialDutyList component
  9. WHEN a user navigates to "建模管理 > 仓储建模 > 单号类型" THEN the system SHALL display the OrderTypeList component
  10. WHEN a user navigates to "建模管理 > 仓储建模 > 单号规则" THEN the system SHALL display the OrderRuleList component
  11. WHEN a user navigates to "建模管理 > 仓储建模 > 包装规格" THEN the system SHALL display the PackagingSpecList component
  12. WHEN a user navigates to "建模管理 > 仓储建模 > 物料状态任务" THEN the system SHALL display the MaterialStatusTaskList component

Requirement 7

User Story: As a user, I want to access supply modeling features, so that I can manage supplier and sourcing information.

Acceptance Criteria

  1. WHEN a user navigates to "建模管理 > 供应建模 > 供应商维护" THEN the system SHALL display the SupplierList component
  2. WHEN a user navigates to "建模管理 > 供应建模 > 货源清单" THEN the system SHALL display the SourcingList component

Requirement 8

User Story: As a user, I want to access manufacturing modeling features, so that I can configure production-related master data.

Acceptance Criteria

  1. WHEN a user navigates to "建模管理 > 制造建模 > 标准BOM" THEN the system SHALL display the StandardBomManagement component
  2. WHEN a user navigates to "建模管理 > 制造建模 > 标准工序" THEN the system SHALL display the StandardProcessList component
  3. WHEN a user navigates to "建模管理 > 制造建模 > 生产线维护" THEN the system SHALL display the ProductionLineList component
  4. WHEN a user navigates to "建模管理 > 制造建模 > 工艺流程" THEN the system SHALL display the RoutingList component
  5. WHEN a user navigates to "建模管理 > 制造建模 > 物料替代" THEN the system SHALL display the MaterialSubstitutionList component
  6. WHEN a user navigates to "建模管理 > 制造建模 > 工单控制参数" THEN the system SHALL display the WorkOrderControlParams component
  7. WHEN a user navigates to "建模管理 > 制造建模 > 人员技能" THEN the system SHALL display the PersonnelSkillList component
  8. WHEN a user navigates to "建模管理 > 制造建模 > 产线岗位" THEN the system SHALL display the LinePostList component
  9. WHEN a user navigates to "建模管理 > 制造建模 > 工作中心" THEN the system SHALL display the WorkCenterList component
  10. WHEN a user navigates to "建模管理 > 制造建模 > 生产线物料" THEN the system SHALL display the LineMaterialList component
  11. WHEN a user navigates to "建模管理 > 制造建模 > 生产要素参数" THEN the system SHALL display the ProductionElementParamList component
  12. WHEN a user navigates to "建模管理 > 制造建模 > 物料工序要素" THEN the system SHALL display the MaterialProcessElementList component
  13. WHEN a user navigates to "建模管理 > 制造建模 > 前处理要素" THEN the system SHALL display the PreprocessElementList component
  14. WHEN a user navigates to "建模管理 > 制造建模 > 前处理要素参数" THEN the system SHALL display the PreprocessElementParamList component
  15. WHEN a user navigates to "建模管理 > 制造建模 > SOP文件类型" THEN the system SHALL display the SopFileTypeList component
  16. WHEN a user navigates to "建模管理 > 制造建模 > SOP维护" THEN the system SHALL display the SopMaintenanceList component

Requirement 9

User Story: As a user, I want to access quality modeling features, so that I can configure quality inspection parameters.

Acceptance Criteria

  1. WHEN a user navigates to "建模管理 > 质量建模 > 单据类型" THEN the system SHALL display the DocumentTypeList component
  2. WHEN a user navigates to "建模管理 > 质量建模 > 业务类型" THEN the system SHALL display the BusinessTypeList component
  3. WHEN a user navigates to "建模管理 > 质量建模 > 客诉类别" THEN the system SHALL display the ComplaintCategoryList component
  4. WHEN a user navigates to "建模管理 > 质量建模 > 检验优先级" THEN the system SHALL display the InspectionPriorityList component
  5. WHEN a user navigates to "建模管理 > 质量建模 > 不合格联络单模板" THEN the system SHALL display the NonconformanceContactTemplateList component
  6. WHEN a user navigates to "建模管理 > 质量建模 > 8D模板" THEN the system SHALL display the EightDTemplateList component
  7. WHEN a user navigates to "建模管理 > 质量建模 > NCR处置类型" THEN the system SHALL display the NcrDispositionTypeList component
  8. WHEN a user navigates to "建模管理 > 质量建模 > 质量项目" THEN the system SHALL display the QualityProjectTemplateList component
  9. WHEN a user navigates to "建模管理 > 质量建模 > CAPA类型" THEN the system SHALL display the CapaTypeList component
  10. WHEN a user navigates to "建模管理 > 质量建模 > 检验状态" THEN the system SHALL display the InspectionStatusList component
  11. WHEN a user navigates to "建模管理 > 质量建模 > AQL检验水平" THEN the system SHALL display the AqlLevelList component
  12. WHEN a user navigates to "建模管理 > 质量建模 > AQL值" THEN the system SHALL display the AqlValueList component
  13. WHEN a user navigates to "建模管理 > 质量建模 > 抽样方案" THEN the system SHALL display the SamplingPlanList component
  14. WHEN a user navigates to "建模管理 > 质量建模 > 检验方法" THEN the system SHALL display the InspectionMethodList component
  15. WHEN a user navigates to "建模管理 > 质量建模 > 检验依据" THEN the system SHALL display the InspectionBasisList component
  16. WHEN a user navigates to "建模管理 > 质量建模 > 检验仪器" THEN the system SHALL display the InspectionInstrumentList component
  17. WHEN a user navigates to "建模管理 > 质量建模 > 检验频率" THEN the system SHALL display the InspectionFrequencyList component
  18. WHEN a user navigates to "建模管理 > 质量建模 > 检验项目" THEN the system SHALL display the InspectionItemList component
  19. WHEN a user navigates to "建模管理 > 质量建模 > 检验标准" THEN the system SHALL display the InspectionStandardList component
  20. WHEN a user navigates to "建模管理 > 质量建模 > 检验方案" THEN the system SHALL display the InspectionSchemeList component
  21. WHEN a user navigates to "建模管理 > 质量建模 > 原材料免检" THEN the system SHALL display the RawMaterialSkipList component

Requirement 10

User Story: As a developer, I want the Vue components to be properly organized, so that the codebase is maintainable.

Acceptance Criteria

  1. WHEN Vue components are migrated THEN the system SHALL place them in the correct directory structure under src/views/jianmo/
  2. WHEN routes are configured THEN the system SHALL register all jianmo routes in the remaining.ts router module
  3. WHEN the application builds THEN the system SHALL compile without errors related to jianmo components