Blame view

.umirc.ts 5.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/': {
17
      target: 'http://localhost:8085/',
18
      // target: 'http://192.168.1.6:8085/',
PurelzMgnead 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
    '/previewApi/': {
PurelzMgnead authored
24
      target: 'http://39.108.227.113:8092/',
zhongnanhuang authored
25
26
27
      changeOrigin: true,
      pathRewrite: { '^/previewApi': '' },
    },
calmound authored
28
29
30
31
  },
  routes: [
    {
      path: '/',
boyang authored
32
      redirect: '/order/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
      name: '订单管理',
      path: '/order',
zhongnanhuang authored
44
      icon: 'ProfileOutlined',
boyang authored
45
46
47
48
49
50
51
52
53
54
55
56
57
58
      routes: [
        {
          name: '订单列表',
          path: 'order',
          component: './Order/Order',
        },
        {
          name: '订单预警',
          path: 'OrderWarning',
          component: './Order/OrderWarning',
        },
        {
          name: '预警白名单',
          path: 'WarningWhitelist',
59
          access: 'canReadAdminAndSalesManager',
boyang authored
60
61
          component: './Order/WarningWhitelist',
        },
PurelzMgnead authored
62
        {
PurelzMgnead authored
63
64
65
          name: '订单售后',
          path: 'FeedBack',
          component: './Order/FeedBack',
PurelzMgnead authored
66
        },
boyang authored
67
      ],
calmound authored
68
    },
sanmu authored
69
    {
zhongnanhuang authored
70
71
72
73
      name: '订单报表',
      path: '/orderReport',
      component: './OrderReport',
      icon: 'LineChartOutlined',
74
      access: 'canReadAdminAndFinance',
zhongnanhuang authored
75
    },
zhongnanhuang authored
76
77
    {
      name: '发票管理',
78
79
      path: '/Invoice',
      icon: 'BookOutlined',
80
81
      access: 'canReadAdminAndFinanceAndSales',
      routes: [
82
        {
83
84
          name: '待开票',
          path: 'waitProcessRecord',
85
          icon: 'BookOutlined',
86
87
88
89
90
91
92
93
94
95
96
          access: 'canReadAdminAndFinance',
          component: './Invoice/waitProcessRecord',
        },
        {
          name: '开票记录',
          path: 'invoiceRecord',
          icon: 'BookOutlined',
          access: 'canReadAdminAndFinanceAndSales',
          component: './Invoice/InvoiceRecord',
        },
        {
97
          name: '发票核销',
98
99
          path: 'invoice',
          icon: 'BookOutlined',
100
          access: 'canReadAdminAndFinanceAndSales',
101
102
103
          component: './Invoice/Invoice',
        },
        {
104
          name: '银行流水',
105
106
          path: 'invoiceVerification',
          icon: 'BookOutlined',
107
          access: 'canReadAdminAndFinanceAndSales',
108
109
          component: './Invoice/InvoiceVerification',
        },
110
        {
111
112
113
114
115
116
          name: '重开发票记录',
          path: 'reissueRecord',
          icon: 'BookOutlined',
          component: './Invoice/ReissueRecord',
        },
        {
117
118
119
120
121
122
          name: '手动开票白名单',
          path: 'OldInvoicingWhiteList',
          icon: 'BookOutlined',
          access: 'canReadAdminAndFinance',
          component: './Invoice/whiteList',
        },
123
124
      ],
    },
125
    {
zhongnanhuang authored
126
127
128
129
130
131
132
      name: '预存管理',
      path: '/prepaidManage',
      component: './Prepaid',
      icon: 'AccountBookOutlined',
      access: 'canReadAdminAndFinanceAndSales',
    },
    {
133
134
135
136
137
138
139
      name: '课题组管理',
      path: '/researchGroup',
      component: './ResearchGroup',
      icon: 'AccountBookOutlined',
      access: 'canReadAdminAndSales',
    },
    {
PurelzMgnead authored
140
141
142
143
      name: '分期账单',
      path: '/instalment',
      component: './Instalment',
      icon: 'BookOutlined',
144
      access: 'canReadProcure',
PurelzMgnead authored
145
    },
PurelzMgnead authored
146
147
148
149
150
    {
      name: '区域管理',
      path: '/zoning',
      component: './ZoNing',
      icon: 'BookOutlined',
PurelzMgnead authored
151
      access: 'canReadAdmin',
PurelzMgnead authored
152
    },
153
    {
154
      name: '礼品申领',
155
156
157
158
159
      path: '/productCollectBill',
      component: './productCollectBill',
      icon: 'BookOutlined',
    },
    {
160
      name: '客户管理',
161
      path: '/Client',
162
      icon: 'BookOutlined',
PurelzMgnead authored
163
      access: 'canReadAdminAndSales',
164
165
166
      routes: [
        {
          name: '客户列表',
167
          path: 'client',
168
169
170
171
172
173
174
175
          component: './Client/Client',
        },
        {
          name: '跟进记录',
          path: 'FollowRecord',
          component: './Client/FollowRecord',
        },
      ],
176
    },
PurelzMgnead authored
177
    {
sanmu authored
178
179
180
181
182
      name: '打印',
      path: '/print',
      component: './OrderPrint',
      layout: false,
    },
183
    {
184
      name: '寄件管理',
185
186
187
      path: '/procure',
      component: './procure',
      icon: 'BookOutlined',
188
      access: 'canReadAdminAndWarehouseKeeperAndProcure',
189
    },
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
    /*{
      name: '用户管理',
      path: '/user',
      routes:[
        {
          name: '权限管理',
          path: 'authrity',
          icon: 'BookOutlined',
          component: './Instalment' },
        {
          name: '角色管理',
          path: 'role',
          icon: 'BookOutlined',
          component: './User/ZoNing' },
      ]
    },*/
206
207
208
209
210
211
    {
      name: '工单管理',
      path: '/tickets',
      component: './Tickets',
      icon: 'BookOutlined',
    },
calmound authored
212
  ],
calmound authored
213
calmound authored
214
  npmClient: 'pnpm',
calmound authored
215
  tailwindcss: {},
calmound authored
216
});