2026-02-28 15:29:12 +08:00
|
|
|
import { defineConfig } from '@umijs/max';
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
antd: {},
|
|
|
|
|
access: {},
|
|
|
|
|
model: {},
|
|
|
|
|
initialState: {},
|
|
|
|
|
request: {},
|
|
|
|
|
layout: {
|
2026-03-30 02:56:16 +00:00
|
|
|
title: '木羽清风仓储系统',
|
2026-02-28 15:29:12 +08:00
|
|
|
locale: false,
|
|
|
|
|
},
|
2026-05-22 18:59:15 +09:00
|
|
|
styles: [
|
2026-03-30 02:56:16 +00:00
|
|
|
'https://fonts.googleapis.com/css2?family=Calistoga&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap',
|
|
|
|
|
],
|
2026-02-28 15:29:12 +08:00
|
|
|
proxy: {
|
|
|
|
|
'/api': {
|
|
|
|
|
target: 'http://localhost:8888',
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
routes: [
|
|
|
|
|
{
|
|
|
|
|
path: '/login',
|
|
|
|
|
layout: false,
|
|
|
|
|
component: './Login',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/',
|
|
|
|
|
redirect: '/dashboard',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '首页',
|
|
|
|
|
path: '/dashboard',
|
|
|
|
|
component: './Dashboard',
|
|
|
|
|
icon: 'DashboardOutlined',
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-03-30 02:56:16 +00:00
|
|
|
name: '客户关系',
|
|
|
|
|
path: '/crm',
|
|
|
|
|
icon: 'NodeIndexOutlined',
|
2026-02-28 15:29:12 +08:00
|
|
|
routes: [
|
|
|
|
|
{
|
2026-03-30 02:56:16 +00:00
|
|
|
name: '供应商与客户',
|
|
|
|
|
path: '/crm/relations',
|
|
|
|
|
component: './CRM/Relations',
|
2026-02-28 15:29:12 +08:00
|
|
|
},
|
|
|
|
|
{
|
2026-03-30 02:56:16 +00:00
|
|
|
name: '关系全景图',
|
|
|
|
|
path: '/crm/graph',
|
|
|
|
|
component: './CRM/Graph',
|
2026-02-28 15:29:12 +08:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2026-03-30 02:56:16 +00:00
|
|
|
{
|
|
|
|
|
name: '库存管理',
|
|
|
|
|
path: '/inventory',
|
|
|
|
|
icon: 'DatabaseOutlined',
|
|
|
|
|
routes: [
|
2026-04-20 01:58:36 +00:00
|
|
|
{ name: '产品库存', path: '/inventory/products', component: './Inventory/Products' },
|
|
|
|
|
{ name: '盘库存', path: '/inventory/pans', component: './Inventory/Pans' },
|
|
|
|
|
{ name: '匹库存', path: '/inventory/bolts', component: './Inventory/Bolts' },
|
2026-03-30 02:56:16 +00:00
|
|
|
{ name: '库存查询', path: '/inventory/stocks', component: './Inventory/Stocks' },
|
|
|
|
|
{ name: '库存统计', path: '/inventory/stats', component: './Inventory/Stats' },
|
|
|
|
|
{ name: '库存盘点', path: '/inventory/checks', component: './Inventory/Checks' },
|
2026-06-18 19:20:49 +09:00
|
|
|
{ name: '盘点单详情', path: '/inventory/checks/:id', component: './Inventory/Checks/detail', hideInMenu: true },
|
2026-03-30 02:56:16 +00:00
|
|
|
{ name: '库存调整', path: '/inventory/adjusts', component: './Inventory/Adjusts' },
|
2026-06-18 19:20:49 +09:00
|
|
|
{ name: '调整单详情', path: '/inventory/adjusts/:id', component: './Inventory/Adjusts/detail', hideInMenu: true },
|
2026-03-30 02:56:16 +00:00
|
|
|
{ name: 'Excel导入', path: '/inventory/import', component: './Inventory/Import' },
|
2026-05-24 20:05:28 +09:00
|
|
|
{ name: '库存变动记录', path: '/inventory/logs', component: './Inventory/Logs' },
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '采购管理',
|
|
|
|
|
path: '/purchase',
|
|
|
|
|
icon: 'ShoppingCartOutlined',
|
|
|
|
|
routes: [
|
|
|
|
|
{ name: '供应商管理', path: '/purchase/suppliers', component: './Purchase/Suppliers' },
|
|
|
|
|
{ name: '采购订单', path: '/purchase/orders', component: './Purchase/Orders' },
|
2026-06-18 18:25:00 +09:00
|
|
|
{ name: '新建采购订单', path: '/purchase/orders/new', component: './Purchase/Orders/new', hideInMenu: true },
|
2026-05-24 20:05:28 +09:00
|
|
|
{ name: '采购订单详情', path: '/purchase/orders/:id', component: './Purchase/Orders/detail', hideInMenu: true },
|
|
|
|
|
{ name: '入库记录', path: '/purchase/receipts', component: './Purchase/Receipts' },
|
|
|
|
|
{ name: '采购报表', path: '/purchase/stats', component: './Purchase/Stats' },
|
2026-03-30 02:56:16 +00:00
|
|
|
],
|
|
|
|
|
},
|
2026-07-04 02:29:21 +00:00
|
|
|
{
|
|
|
|
|
name: '生产管理',
|
|
|
|
|
path: '/production',
|
|
|
|
|
icon: 'ExperimentOutlined',
|
|
|
|
|
routes: [
|
|
|
|
|
{ name: '生产计划', path: '/production/plans', component: './Production/Plans/index' },
|
|
|
|
|
{ name: '新建计划', path: '/production/plans/new', component: './Production/Plans/new', hideInMenu: true },
|
|
|
|
|
{ name: '计划详情', path: '/production/plans/:planId', component: './Production/Plans/detail', hideInMenu: true },
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '分享链接',
|
|
|
|
|
path: '/share/production/:shortCode',
|
|
|
|
|
component: './Production/Share/index',
|
|
|
|
|
hideInMenu: true,
|
|
|
|
|
layout: false,
|
|
|
|
|
},
|
2026-02-28 15:29:12 +08:00
|
|
|
{
|
|
|
|
|
name: '系统管理',
|
|
|
|
|
path: '/system',
|
|
|
|
|
icon: 'SettingOutlined',
|
|
|
|
|
routes: [
|
2026-03-30 02:56:16 +00:00
|
|
|
{ name: '用户管理', path: '/system/users', component: './System/Users' },
|
|
|
|
|
{ name: '角色管理', path: '/system/roles', component: './System/Roles' },
|
|
|
|
|
{ name: '菜单管理', path: '/system/menus', component: './System/Menus' },
|
|
|
|
|
{ name: '操作日志', path: '/system/logs', component: './System/Logs' },
|
|
|
|
|
{ name: '系统配置', path: '/system/configs', component: './System/Configs' },
|
2026-02-28 15:29:12 +08:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
npmClient: 'pnpm',
|
|
|
|
|
});
|