Blame view

.umirc.ts 4.03 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
          access: 'canReadAdminAndFinance',
          component: './Invoice/waitProcessRecord',
        },
        {
          name: '开票记录',
          path: 'invoiceRecord',
          icon: 'BookOutlined',
          access: 'canReadAdminAndFinanceAndSales',
          component: './Invoice/InvoiceRecord',
        },
        {
75
          name: '发票核销',
76
77
78
79
80
81
          path: 'invoice',
          icon: 'BookOutlined',
          access: 'canReadAdminAndFinance',
          component: './Invoice/Invoice',
        },
        {
82
          name: '银行流水',
83
84
85
86
87
          path: 'invoiceVerification',
          icon: 'BookOutlined',
          access: 'canReadAdminAndFinance',
          component: './Invoice/InvoiceVerification',
        },
88
89
90
91
92
93
94
        {
          name: '手动开票白名单',
          path: 'OldInvoicingWhiteList',
          icon: 'BookOutlined',
          access: 'canReadAdminAndFinance',
          component: './Invoice/whiteList',
        },
95
96
      ],
    },
97
    {
zhongnanhuang authored
98
99
100
101
102
103
104
      name: '预存管理',
      path: '/prepaidManage',
      component: './Prepaid',
      icon: 'AccountBookOutlined',
      access: 'canReadAdminAndFinanceAndSales',
    },
    {
105
106
107
108
109
110
111
      name: '课题组管理',
      path: '/researchGroup',
      component: './ResearchGroup',
      icon: 'AccountBookOutlined',
      access: 'canReadAdminAndSales',
    },
    {
PurelzMgnead authored
112
113
114
115
      name: '分期账单',
      path: '/instalment',
      component: './Instalment',
      icon: 'BookOutlined',
116
      access: 'canReadProcure',
PurelzMgnead authored
117
    },
PurelzMgnead authored
118
119
120
121
122
    {
      name: '区域管理',
      path: '/zoning',
      component: './ZoNing',
      icon: 'BookOutlined',
PurelzMgnead authored
123
      access: 'canReadAdmin',
PurelzMgnead authored
124
    },
125
    {
126
      name: '客户管理',
127
      path: '/Client',
128
      icon: 'BookOutlined',
129
      access: 'canReadAdminAndSales',
130
131
132
133
134
135
136
137
138
139
140
141
      routes: [
        {
          name: '客户列表',
          path: 'clint',
          component: './Client/Client',
        },
        {
          name: '跟进记录',
          path: 'FollowRecord',
          component: './Client/FollowRecord',
        },
      ],
142
    },
PurelzMgnead authored
143
    {
sanmu authored
144
145
146
147
148
      name: '打印',
      path: '/print',
      component: './OrderPrint',
      layout: false,
    },
149
    {
150
      name: '寄件管理',
151
152
153
      path: '/procure',
      component: './procure',
      icon: 'BookOutlined',
154
      access: 'canReadAdminAndWarehouseKeeperAndProcure',
155
    },
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
    /*{
      name: '用户管理',
      path: '/user',
      routes:[
        {
          name: '权限管理',
          path: 'authrity',
          icon: 'BookOutlined',
          component: './Instalment' },
        {
          name: '角色管理',
          path: 'role',
          icon: 'BookOutlined',
          component: './User/ZoNing' },
      ]
    },*/
calmound authored
172
  ],
calmound authored
173
calmound authored
174
  npmClient: 'pnpm',
calmound authored
175
  tailwindcss: {},
calmound authored
176
});