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
- WHEN the system displays the main navigation menu THEN the system SHALL show exactly one "建模管理" top-level menu entry
- WHEN duplicate menu entries exist in the database THEN the system SHALL remove the redundant entries and retain only one properly configured entry
- 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
- WHEN a user navigates to "建模管理 > 客户管理" THEN the system SHALL display the CustomerManagement component
- 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
- WHEN a user navigates to "建模管理 > 物料管理" THEN the system SHALL display the MaterialManagement component
- 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
- 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
- WHEN a user navigates to "建模管理 > 设备管理 > 设备列表" THEN the system SHALL display the DeviceList component
- 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
- WHEN a user navigates to "建模管理 > 仓储建模 > 库位维护" THEN the system SHALL display the LocationMaintenanceList component
- WHEN a user navigates to "建模管理 > 仓储建模 > 货架列表" THEN the system SHALL display the RackList component
- WHEN a user navigates to "建模管理 > 仓储建模 > 部门维护" THEN the system SHALL display the DepartmentMaintenanceList component
- WHEN a user navigates to "建模管理 > 仓储建模 > 雇员列表" THEN the system SHALL display the EmployeeList component
- WHEN a user navigates to "建模管理 > 仓储建模 > 条码规则" THEN the system SHALL display the BarcodeRuleList component
- WHEN a user navigates to "建模管理 > 仓储建模 > 标签格式" THEN the system SHALL display the LabelFormatList component
- WHEN a user navigates to "建模管理 > 仓储建模 > 成本中心" THEN the system SHALL display the CostCenterList component
- WHEN a user navigates to "建模管理 > 仓储建模 > 物料职责" THEN the system SHALL display the MaterialDutyList component
- WHEN a user navigates to "建模管理 > 仓储建模 > 单号类型" THEN the system SHALL display the OrderTypeList component
- WHEN a user navigates to "建模管理 > 仓储建模 > 单号规则" THEN the system SHALL display the OrderRuleList component
- WHEN a user navigates to "建模管理 > 仓储建模 > 包装规格" THEN the system SHALL display the PackagingSpecList component
- 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
- WHEN a user navigates to "建模管理 > 供应建模 > 供应商维护" THEN the system SHALL display the SupplierList component
- 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
- WHEN a user navigates to "建模管理 > 制造建模 > 标准BOM" THEN the system SHALL display the StandardBomManagement component
- WHEN a user navigates to "建模管理 > 制造建模 > 标准工序" THEN the system SHALL display the StandardProcessList component
- WHEN a user navigates to "建模管理 > 制造建模 > 生产线维护" THEN the system SHALL display the ProductionLineList component
- WHEN a user navigates to "建模管理 > 制造建模 > 工艺流程" THEN the system SHALL display the RoutingList component
- WHEN a user navigates to "建模管理 > 制造建模 > 物料替代" THEN the system SHALL display the MaterialSubstitutionList component
- WHEN a user navigates to "建模管理 > 制造建模 > 工单控制参数" THEN the system SHALL display the WorkOrderControlParams component
- WHEN a user navigates to "建模管理 > 制造建模 > 人员技能" THEN the system SHALL display the PersonnelSkillList component
- WHEN a user navigates to "建模管理 > 制造建模 > 产线岗位" THEN the system SHALL display the LinePostList component
- WHEN a user navigates to "建模管理 > 制造建模 > 工作中心" THEN the system SHALL display the WorkCenterList component
- WHEN a user navigates to "建模管理 > 制造建模 > 生产线物料" THEN the system SHALL display the LineMaterialList component
- WHEN a user navigates to "建模管理 > 制造建模 > 生产要素参数" THEN the system SHALL display the ProductionElementParamList component
- WHEN a user navigates to "建模管理 > 制造建模 > 物料工序要素" THEN the system SHALL display the MaterialProcessElementList component
- WHEN a user navigates to "建模管理 > 制造建模 > 前处理要素" THEN the system SHALL display the PreprocessElementList component
- WHEN a user navigates to "建模管理 > 制造建模 > 前处理要素参数" THEN the system SHALL display the PreprocessElementParamList component
- WHEN a user navigates to "建模管理 > 制造建模 > SOP文件类型" THEN the system SHALL display the SopFileTypeList component
- 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
- WHEN a user navigates to "建模管理 > 质量建模 > 单据类型" THEN the system SHALL display the DocumentTypeList component
- WHEN a user navigates to "建模管理 > 质量建模 > 业务类型" THEN the system SHALL display the BusinessTypeList component
- WHEN a user navigates to "建模管理 > 质量建模 > 客诉类别" THEN the system SHALL display the ComplaintCategoryList component
- WHEN a user navigates to "建模管理 > 质量建模 > 检验优先级" THEN the system SHALL display the InspectionPriorityList component
- WHEN a user navigates to "建模管理 > 质量建模 > 不合格联络单模板" THEN the system SHALL display the NonconformanceContactTemplateList component
- WHEN a user navigates to "建模管理 > 质量建模 > 8D模板" THEN the system SHALL display the EightDTemplateList component
- WHEN a user navigates to "建模管理 > 质量建模 > NCR处置类型" THEN the system SHALL display the NcrDispositionTypeList component
- WHEN a user navigates to "建模管理 > 质量建模 > 质量项目" THEN the system SHALL display the QualityProjectTemplateList component
- WHEN a user navigates to "建模管理 > 质量建模 > CAPA类型" THEN the system SHALL display the CapaTypeList component
- WHEN a user navigates to "建模管理 > 质量建模 > 检验状态" THEN the system SHALL display the InspectionStatusList component
- WHEN a user navigates to "建模管理 > 质量建模 > AQL检验水平" THEN the system SHALL display the AqlLevelList component
- WHEN a user navigates to "建模管理 > 质量建模 > AQL值" THEN the system SHALL display the AqlValueList component
- WHEN a user navigates to "建模管理 > 质量建模 > 抽样方案" THEN the system SHALL display the SamplingPlanList component
- WHEN a user navigates to "建模管理 > 质量建模 > 检验方法" THEN the system SHALL display the InspectionMethodList component
- WHEN a user navigates to "建模管理 > 质量建模 > 检验依据" THEN the system SHALL display the InspectionBasisList component
- WHEN a user navigates to "建模管理 > 质量建模 > 检验仪器" THEN the system SHALL display the InspectionInstrumentList component
- WHEN a user navigates to "建模管理 > 质量建模 > 检验频率" THEN the system SHALL display the InspectionFrequencyList component
- WHEN a user navigates to "建模管理 > 质量建模 > 检验项目" THEN the system SHALL display the InspectionItemList component
- WHEN a user navigates to "建模管理 > 质量建模 > 检验标准" THEN the system SHALL display the InspectionStandardList component
- WHEN a user navigates to "建模管理 > 质量建模 > 检验方案" THEN the system SHALL display the InspectionSchemeList component
- 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
- WHEN Vue components are migrated THEN the system SHALL place them in the correct directory structure under src/views/jianmo/
- WHEN routes are configured THEN the system SHALL register all jianmo routes in the remaining.ts router module
- WHEN the application builds THEN the system SHALL compile without errors related to jianmo components