Blame view

.umirc.ts 3.55 KB
calmound authored
1
2
3
import { defineConfig } from '@umijs/max';

export default defineConfig({
4
  esbuildMinifyIIFE: true,
calmound authored
5
6
7
  antd: {
    style: 'less',
  },
calmound authored
8
9
10
11
12
  access: {},
  model: {},
  initialState: {},
  request: {},
  layout: {
sanmu authored
13
    title: '订单管理系统',
calmound authored
14
15
  },
  proxy: {
sanmu authored
16
    '/api/': {
zhongnanhuang authored
17
      target: 'http://localhost:8085/',
zhongnanhuang authored
18
      // target: 'http://192.168.1.6:8085/',
zhongnanhuang authored
19
      // target: 'http://39.108.227.113:8085/',
calmound authored
20
      changeOrigin: true,
sanmu authored
21
      pathRewrite: { '^/api': '' },
calmound authored
22
    },
zhongnanhuang authored
23
24
25
26
27
    '/previewApi/': {
      target: 'http://39.108.227.113:8092/',
      changeOrigin: true,
      pathRewrite: { '^/previewApi': '' },
    },
calmound authored
28
29
30
31
  },
  routes: [
    {
      path: '/',
sanmu authored
32
      redirect: '/order',
calmound authored
33
    },
sanmu authored
34
35
36
37
38
39
40
    {
      name: '登录',
      path: '/login',
      component: './Login',
      layout: false,
    },
calmound authored
41
    {
sanmu authored
42
43
44
      name: '订单管理',
      path: '/order',
      component: './Order',
zhongnanhuang authored
45
      icon: 'ProfileOutlined',
calmound authored
46
    },
sanmu authored
47
    {
zhongnanhuang authored
48
49
50
51
      name: '订单报表',
      path: '/orderReport',
      component: './OrderReport',
      icon: 'LineChartOutlined',
52
      access: 'canReadAdminAndFinance',
zhongnanhuang authored
53
    },
zhongnanhuang authored
54
55
    {
      name: '发票管理',
56
57
      path: '/Invoice',
      icon: 'BookOutlined',
58
59
      access: 'canReadAdminAndFinanceAndSales',
      routes: [
60
        {
61
62
          name: '待开票',
          path: 'waitProcessRecord',
63
          icon: 'BookOutlined',
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
          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',
        },
      ],
    },
90
    {
zhongnanhuang authored
91
92
93
94
95
96
97
      name: '预存管理',
      path: '/prepaidManage',
      component: './Prepaid',
      icon: 'AccountBookOutlined',
      access: 'canReadAdminAndFinanceAndSales',
    },
    {
98
99
100
101
102
103
104
      name: '课题组管理',
      path: '/researchGroup',
      component: './ResearchGroup',
      icon: 'AccountBookOutlined',
      access: 'canReadAdminAndSales',
    },
    {
PurelzMgnead authored
105
106
107
108
      name: '分期账单',
      path: '/instalment',
      component: './Instalment',
      icon: 'BookOutlined',
PurelzMgnead authored
109
      access: 'canReadLinda',
PurelzMgnead authored
110
    },
PurelzMgnead authored
111
112
113
114
115
    {
      name: '区域管理',
      path: '/zoning',
      component: './ZoNing',
      icon: 'BookOutlined',
PurelzMgnead authored
116
      access: 'canReadAdmin',
PurelzMgnead authored
117
    },
118
    {
119
120
121
122
      name: '客户管理',
      path: '/client',
      component: './Client',
      icon: 'BookOutlined',
123
      access: 'canReadAdminAndSales',
124
    },
PurelzMgnead authored
125
    {
sanmu authored
126
127
128
129
130
      name: '打印',
      path: '/print',
      component: './OrderPrint',
      layout: false,
    },
131
132
133
134
135
136
137
    {
      name: '采购退货管理',
      path: '/procure',
      component: './procure',
      icon: 'BookOutlined',
      access: 'canReadAdmin',
    },
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
    /*{
      name: '用户管理',
      path: '/user',
      routes:[
        {
          name: '权限管理',
          path: 'authrity',
          icon: 'BookOutlined',
          component: './Instalment' },
        {
          name: '角色管理',
          path: 'role',
          icon: 'BookOutlined',
          component: './User/ZoNing' },
      ]
    },*/
calmound authored
154
  ],
calmound authored
155
calmound authored
156
  npmClient: 'pnpm',
calmound authored
157
  tailwindcss: {},
calmound authored
158
});