muyu-portal/.umirc.ts
2026-05-24 20:05:28 +09:00

98 lines
3.2 KiB
TypeScript

import { defineConfig } from '@umijs/max';
export default defineConfig({
antd: {},
access: {},
model: {},
initialState: {},
request: {},
layout: {
title: '木羽清风仓储系统',
locale: false,
},
styles: [
'https://fonts.googleapis.com/css2?family=Calistoga&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap',
],
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',
},
{
name: '客户关系',
path: '/crm',
icon: 'NodeIndexOutlined',
routes: [
{
name: '供应商与客户',
path: '/crm/relations',
component: './CRM/Relations',
},
{
name: '关系全景图',
path: '/crm/graph',
component: './CRM/Graph',
},
],
},
{
name: '库存管理',
path: '/inventory',
icon: 'DatabaseOutlined',
routes: [
{ name: '产品库存', path: '/inventory/products', component: './Inventory/Products' },
{ name: '盘库存', path: '/inventory/pans', component: './Inventory/Pans' },
{ name: '匹库存', path: '/inventory/bolts', component: './Inventory/Bolts' },
{ name: '库存查询', path: '/inventory/stocks', component: './Inventory/Stocks' },
{ name: '库存统计', path: '/inventory/stats', component: './Inventory/Stats' },
{ name: '库存盘点', path: '/inventory/checks', component: './Inventory/Checks' },
{ name: '库存调整', path: '/inventory/adjusts', component: './Inventory/Adjusts' },
{ name: 'Excel导入', path: '/inventory/import', component: './Inventory/Import' },
{ 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' },
{ 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' },
],
},
{
name: '系统管理',
path: '/system',
icon: 'SettingOutlined',
routes: [
{ 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' },
],
},
],
npmClient: 'pnpm',
});