.umirc.ts
5.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
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.31.242: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/order',
},
{
name: '登录',
path: '/login',
component: './Login',
layout: false,
},
{
name: '订单管理',
path: '/order',
icon: 'ProfileOutlined',
routes: [
{
name: '订单列表',
path: 'order',
component: './Order/Order',
},
{
name: '订单预警',
path: 'OrderWarning',
component: './Order/OrderWarning',
},
{
name: '预警白名单',
path: 'WarningWhitelist',
component: './Order/WarningWhitelist',
},
{
name: '订单售后',
path: 'FeedBack',
component: './Order/FeedBack',
},
],
},
{
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: 'canReadAdminAndFinanceAndSales',
component: './Invoice/Invoice',
},
{
name: '银行流水',
path: 'invoiceVerification',
icon: 'BookOutlined',
access: 'canReadAdminAndFinanceAndSales',
component: './Invoice/InvoiceVerification',
},
{
name: '重开发票记录',
path: 'reissueRecord',
icon: 'BookOutlined',
component: './Invoice/ReissueRecord',
},
{
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: '/productCollectBill',
component: './productCollectBill',
icon: 'BookOutlined',
},
{
name: '客户管理',
path: '/Client',
icon: 'BookOutlined',
access: 'canReadAdminAndSales',
routes: [
{
name: '客户列表',
path: 'client',
component: './Client/Client',
},
{
name: '跟进记录',
path: 'FollowRecord',
component: './Client/FollowRecord',
},
],
},
{
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' },
]
},*/
{
name: '工单管理',
path: '/tickets',
component: './Tickets',
icon: 'BookOutlined',
},
],
npmClient: 'pnpm',
tailwindcss: {},
});