Explorar o código

feat: wire production waste-output API route and menu mirror.

Co-authored-by: Cursor <cursoragent@cursor.com>
zlwu hai 2 meses
pai
achega
c78d02a348

+ 11 - 0
backend/app/api/menu.py

@@ -466,6 +466,17 @@ STATIC_MENU_TREE = [
                             "menuCode": "production:cleanroom-garment:list",
                         },
                     },
+                    {
+                        "id": "95300000000000000000000000000001",
+                        "name": "ProductionWasteOutput",
+                        "path": "waste-output",
+                        "component": "/production/waste-output/index",
+                        "meta": {
+                            "title": "废弃物管理",
+                            "keepAlive": True,
+                            "menuCode": "production:waste-output:list",
+                        },
+                    },
                 ],
             },
             # 生产基础信息

+ 32 - 0
web-admin/src/api/production-waste-output.ts

@@ -0,0 +1,32 @@
+import request from '@/utils/http'
+
+export interface ProductionWasteOutputItem {
+  id: string
+  outputName?: string
+  outputBarcode?: string
+  remark?: string
+  createTime?: string
+  stepId?: string
+  processName?: string
+  taskId?: string
+  taskNo?: string
+  workOrderId?: string
+  workOrderNo?: string
+  sampleCode?: string
+}
+
+export function fetchProductionWasteOutputList(params?: {
+  page?: number
+  pageSize?: number
+  keyword?: string
+  createTimeStart?: string
+  createTimeEnd?: string
+}) {
+  return request.get<{
+    list: ProductionWasteOutputItem[]
+    total: number
+    page: number
+    pageSize: number
+    totalPages: number
+  }>({ url: '/web/admin/production-waste-outputs', params })
+}

+ 11 - 0
web-admin/src/router/modules/sqxp.ts

@@ -780,6 +780,17 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
               keepAlive: true,
               menuCode: 'production:cleanroom-garment:list'
             }
+          },
+          {
+            id: '95300000000000000000000000000001',
+            name: 'ProductionWasteOutput',
+            path: 'waste-output',
+            component: '/production/waste-output/index',
+            meta: {
+              title: '废弃物管理',
+              keepAlive: true,
+              menuCode: 'production:waste-output:list'
+            }
           }
         ]
       },