Blame view

.umirc.ts 4.22 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/': {
boyang 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: '/',
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
62
          component: './Order/WarningWhitelist',
        },
      ],
calmound authored
63
    },
sanmu authored
64
    {
zhongnanhuang authored
65
66
67
68
      name: '订单报表',
      path: '/orderReport',
      component: './OrderReport',
      icon: 'LineChartOutlined',
69
      access: 'canReadAdminAndFinance',
zhongnanhuang authored
70
    },
zhongnanhuang authored
71
72
    {
      name: '发票管理',
73
74
      path: '/Invoice',
      icon: 'BookOutlined',
75
76
      access: 'canReadAdminAndFinanceAndSales',
      routes: [
77
        {
78
79
          name: '待开票',
          path: 'waitProcessRecord',
80
          icon: 'BookOutlined',
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',
        },
        {
92
          name: '发票核销',
93
94
95
96
97
98
          path: 'invoice',
          icon: 'BookOutlined',
          access: 'canReadAdminAndFinance',
          component: './Invoice/Invoice',
        },
        {
99
          name: '银行流水',
100
101
102
103
104
          path: 'invoiceVerification',
          icon: 'BookOutlined',
          access: 'canReadAdminAndFinance',
          component: './Invoice/InvoiceVerification',
        },
105
106
107
108
109
110
111
        {
          name: '手动开票白名单',
          path: 'OldInvoicingWhiteList',
          icon: 'BookOutlined',
          access: 'canReadAdminAndFinance',
          component: './Invoice/whiteList',
        },
112
113
      ],
    },
114
    {
zhongnanhuang authored
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',
    },
    {
PurelzMgnead authored
129
130
131
132
      name: '分期账单',
      path: '/instalment',
      component: './Instalment',
      icon: 'BookOutlined',
133
      access: 'canReadProcure',
PurelzMgnead authored
134
    },
PurelzMgnead authored
135
136
137
138
139
    {
      name: '区域管理',
      path: '/zoning',
      component: './ZoNing',
      icon: 'BookOutlined',
PurelzMgnead authored
140
      access: 'canReadAdmin',
PurelzMgnead authored
141
    },
142
    {
143
144
145
146
      name: '客户管理',
      path: '/client',
      component: './Client',
      icon: 'BookOutlined',
147
      access: 'canReadAdminAndSales',
148
    },
PurelzMgnead authored
149
    {
sanmu authored
150
151
152
153
154
      name: '打印',
      path: '/print',
      component: './OrderPrint',
      layout: false,
    },
155
    {
156
      name: '寄件管理',
157
158
159
      path: '/procure',
      component: './procure',
      icon: 'BookOutlined',
160
      access: 'canReadAdminAndWarehouseKeeperAndProcure',
161
    },
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' },
      ]
    },*/
calmound authored
178
  ],
calmound authored
179
calmound authored
180
  npmClient: 'pnpm',
calmound authored
181
  tailwindcss: {},
calmound authored
182
});