|
1
2
3
|
import { defineConfig } from '@umijs/max';
export default defineConfig({
|
|
4
|
esbuildMinifyIIFE: true,
|
|
5
6
7
|
antd: {
style: 'less',
},
|
|
8
9
10
11
12
|
access: {},
model: {},
initialState: {},
request: {},
layout: {
|
sanmu
authored
|
13
|
title: '订单管理系统',
|
|
14
15
|
},
proxy: {
|
sanmu
authored
|
16
|
'/api/': {
|
|
17
|
target: 'http://localhost:8085/',
|
|
18
|
// target: 'http://192.168.1.6:8085/',
|
|
19
|
// target: 'http://39.108.227.113:8085/',
|
|
20
|
changeOrigin: true,
|
sanmu
authored
|
21
|
pathRewrite: { '^/api': '' },
|
|
22
|
},
|
|
23
24
25
26
27
|
'/previewApi/': {
target: 'http://39.108.227.113:8092/',
changeOrigin: true,
pathRewrite: { '^/previewApi': '' },
},
|
|
28
29
30
31
|
},
routes: [
{
path: '/',
|
|
32
|
redirect: '/order/order',
|
|
33
|
},
|
sanmu
authored
|
34
35
36
37
38
39
40
|
{
name: '登录',
path: '/login',
component: './Login',
layout: false,
},
|
|
41
|
{
|
sanmu
authored
|
42
43
|
name: '订单管理',
path: '/order',
|
|
44
|
icon: 'ProfileOutlined',
|
|
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',
|
曾国涛
authored
|
59
|
access: 'canReadAdminAndSalesManager',
|
|
60
61
62
|
component: './Order/WarningWhitelist',
},
],
|
|
63
|
},
|
sanmu
authored
|
64
|
{
|
|
65
66
67
68
|
name: '订单报表',
path: '/orderReport',
component: './OrderReport',
icon: 'LineChartOutlined',
|
|
69
|
access: 'canReadAdminAndFinance',
|
|
70
|
},
|
|
71
72
|
{
name: '发票管理',
|
曾国涛
authored
|
73
74
|
path: '/Invoice',
icon: 'BookOutlined',
|
曾国涛
authored
|
75
76
|
access: 'canReadAdminAndFinanceAndSales',
routes: [
|
曾国涛
authored
|
77
|
{
|
曾国涛
authored
|
78
79
|
name: '待开票',
path: 'waitProcessRecord',
|
曾国涛
authored
|
80
|
icon: 'BookOutlined',
|
曾国涛
authored
|
81
82
83
84
85
86
87
88
89
90
91
|
access: 'canReadAdminAndFinance',
component: './Invoice/waitProcessRecord',
},
{
name: '开票记录',
path: 'invoiceRecord',
icon: 'BookOutlined',
access: 'canReadAdminAndFinanceAndSales',
component: './Invoice/InvoiceRecord',
},
{
|
曾国涛
authored
|
92
|
name: '发票核销',
|
曾国涛
authored
|
93
94
95
96
97
98
|
path: 'invoice',
icon: 'BookOutlined',
access: 'canReadAdminAndFinance',
component: './Invoice/Invoice',
},
{
|
曾国涛
authored
|
99
|
name: '银行流水',
|
曾国涛
authored
|
100
101
102
103
104
|
path: 'invoiceVerification',
icon: 'BookOutlined',
access: 'canReadAdminAndFinance',
component: './Invoice/InvoiceVerification',
},
|
曾国涛
authored
|
105
106
107
108
109
110
111
|
{
name: '手动开票白名单',
path: 'OldInvoicingWhiteList',
icon: 'BookOutlined',
access: 'canReadAdminAndFinance',
component: './Invoice/whiteList',
},
|
曾国涛
authored
|
112
113
|
],
},
|
|
114
|
{
|
|
115
116
117
118
119
120
121
|
name: '预存管理',
path: '/prepaidManage',
component: './Prepaid',
icon: 'AccountBookOutlined',
access: 'canReadAdminAndFinanceAndSales',
},
{
|
|
122
123
124
125
126
127
128
|
name: '课题组管理',
path: '/researchGroup',
component: './ResearchGroup',
icon: 'AccountBookOutlined',
access: 'canReadAdminAndSales',
},
{
|
|
129
130
131
132
|
name: '分期账单',
path: '/instalment',
component: './Instalment',
icon: 'BookOutlined',
|
|
133
|
access: 'canReadProcure',
|
|
134
|
},
|
|
135
136
137
138
139
|
{
name: '区域管理',
path: '/zoning',
component: './ZoNing',
icon: 'BookOutlined',
|
|
140
|
access: 'canReadAdmin',
|
|
141
|
},
|
曾国涛
authored
|
142
|
{
|
曾国涛
authored
|
143
144
145
146
|
name: '客户管理',
path: '/client',
component: './Client',
icon: 'BookOutlined',
|
曾国涛
authored
|
147
|
access: 'canReadAdminAndSales',
|
曾国涛
authored
|
148
|
},
|
|
149
|
{
|
sanmu
authored
|
150
151
152
153
154
|
name: '打印',
path: '/print',
component: './OrderPrint',
layout: false,
},
|
曾国涛
authored
|
155
|
{
|
曾国涛
authored
|
156
|
name: '寄件管理',
|
曾国涛
authored
|
157
158
159
|
path: '/procure',
component: './procure',
icon: 'BookOutlined',
|
曾国涛
authored
|
160
|
access: 'canReadAdminAndWarehouseKeeperAndProcure',
|
曾国涛
authored
|
161
|
},
|
曾国涛
authored
|
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
|
/*{
name: '用户管理',
path: '/user',
routes:[
{
name: '权限管理',
path: 'authrity',
icon: 'BookOutlined',
component: './Instalment' },
{
name: '角色管理',
path: 'role',
icon: 'BookOutlined',
component: './User/ZoNing' },
]
},*/
|
|
178
|
],
|
|
179
|
|
|
180
|
npmClient: 'pnpm',
|
|
181
|
tailwindcss: {},
|
|
182
|
});
|