Blame view

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