tasks.md 2.1 KB

Implementation Plan

  • [x] 1. Copy Vue components to target directory

    • 1.1 Copy MaterialPurchaseOrder.vue from dingdan/manage-vue/src/views/purchase-order/ to src/views/caigou/
    • Preserve all component functionality including search, filter, pagination, and export
    • Requirements: 3.1, 3.4
    • 1.2 Copy SubcontractOrder.vue from dingdan/manage-vue/src/views/purchase-order/ to src/views/caigou/
    • Preserve all component functionality including search, filter, pagination, and export
    • Requirements: 3.2, 3.4
    • 1.3 Copy MaterialPurchaseRequest.vue from dingdan/manage-vue/src/views/purchase-order/ to src/views/caigou/
    • Preserve all component functionality including search, filter, pagination, and export
    • Requirements: 3.3, 3.4
  • [x] 2. Create menu configuration SQL script

    • 2.1 Create sql/mysql/material_purchase_menu.sql with menu configuration
    • Include DELETE statement to clean up existing menus in 6500-6599 range
    • Create top-level menu "物料采购" with ID 6500, sort order 130, icon "ep:shopping-bag"
    • Create three second-level menus with correct component paths
    • Set appropriate permissions following "caigou:module:action" convention
    • Requirements: 1.1, 1.2, 1.3, 2.1, 2.2, 2.3, 2.4, 5.1, 5.2, 5.3
  • [x] 3. Verify component compatibility

    • 3.1 Check and update component imports if needed
    • Ensure Element Plus components are used correctly
    • Verify @element-plus/icons-vue imports are compatible
    • Requirements: 4.1, 4.2
    • 3.2 Update localStorage keys to use module prefix
    • Change localStorage keys to use "caigou-" or "material-purchase-" prefix
    • Requirements: 4.3
  • [x] 4. Update integration guide documentation

    • 4.1 Update MODULES_INTEGRATION_GUIDE.md with material purchase module information
    • Add module description and file locations
    • Document menu configuration steps
    • Requirements: 1.1, 2.1, 2.2, 2.3
  • [x] 5. Final verification

    • Ensure all files are in correct locations
    • Verify SQL script syntax is correct
    • Confirm component paths match menu configuration