import { defineConfig } from '@umijs/max'; export default defineConfig({ esbuildMinifyIIFE: true, antd: { style: 'less', }, access: {}, model: {}, initialState: {}, request: {}, layout: { title: '订单管理系统', }, proxy: { '/api/': { target: 'http://localhost:8085/', // target: 'http://192.168.1.6:8085/', // target: 'http://39.108.227.113:8085/', changeOrigin: true, pathRewrite: { '^/api': '' }, }, '/previewApi/': { target: 'http://39.108.227.113:8092/', changeOrigin: true, pathRewrite: { '^/previewApi': '' }, }, }, routes: [ { path: '/', redirect: '/order', }, { name: '登录', path: '/login', component: './Login', layout: false, }, { name: '订单管理', path: '/order', component: './Order', icon: 'ProfileOutlined', }, { name: '订单报表', path: '/orderReport', component: './OrderReport', icon: 'LineChartOutlined', access: 'canReadAdminAndFinance', }, { name: '发票管理', path: '/Invoice', icon: 'BookOutlined', access: 'canReadAdminAndFinanceAndSales', routes: [ { name: '待开票', path: 'waitProcessRecord', icon: 'BookOutlined', access: 'canReadAdminAndFinance', component: './Invoice/waitProcessRecord', }, { name: '开票记录', path: 'invoiceRecord', icon: 'BookOutlined', access: 'canReadAdminAndFinanceAndSales', component: './Invoice/InvoiceRecord', }, { name: '发票核销', path: 'invoice', icon: 'BookOutlined', access: 'canReadAdminAndFinance', component: './Invoice/Invoice', }, { name: '银行流水', path: 'invoiceVerification', icon: 'BookOutlined', access: 'canReadAdminAndFinance', component: './Invoice/InvoiceVerification', }, { name: '手动开票白名单', path: 'OldInvoicingWhiteList', icon: 'BookOutlined', access: 'canReadAdminAndFinance', component: './Invoice/whiteList', }, ], }, { name: '预存管理', path: '/prepaidManage', component: './Prepaid', icon: 'AccountBookOutlined', access: 'canReadAdminAndFinanceAndSales', }, { name: '课题组管理', path: '/researchGroup', component: './ResearchGroup', icon: 'AccountBookOutlined', access: 'canReadAdminAndSales', }, { name: '分期账单', path: '/instalment', component: './Instalment', icon: 'BookOutlined', access: 'canReadProcure', }, { name: '区域管理', path: '/zoning', component: './ZoNing', icon: 'BookOutlined', access: 'canReadAdmin', }, { name: '客户管理', path: '/client', component: './Client', icon: 'BookOutlined', access: 'canReadAdminAndSales', }, { name: '打印', path: '/print', component: './OrderPrint', layout: false, }, { name: '寄件管理', path: '/procure', component: './procure', icon: 'BookOutlined', access: 'canReadAdminAndWarehouseKeeperAndProcure', }, /*{ name: '用户管理', path: '/user', routes:[ { name: '权限管理', path: 'authrity', icon: 'BookOutlined', component: './Instalment' }, { name: '角色管理', path: 'role', icon: 'BookOutlined', component: './User/ZoNing' }, ] },*/ ], npmClient: 'pnpm', tailwindcss: {}, });