Yansen 2 лет назад
Родитель
Сommit
01edafc4c1
3 измененных файлов: 18 добавлений и 4 удалений
  1. 8
    2
      config/routes.js
  2. 2
    2
      src/pages/invoiceFill/index.jsx
  3. 8
    0
      src/pages/noFill/index.jsx

+ 8
- 2
config/routes.js Просмотреть файл

31
     component: '@/pages/invoiceFill',    
31
     component: '@/pages/invoiceFill',    
32
   },
32
   },
33
   {
33
   {
34
-    path: '/invoiceFill/edit.jsx',
34
+    path: '/invoiceFill/edit',
35
     name: '班次编辑',
35
     name: '班次编辑',
36
     icon: 'ProfileOutlined',
36
     icon: 'ProfileOutlined',
37
     component: '@/pages/invoiceFill/edit.jsx',
37
     component: '@/pages/invoiceFill/edit.jsx',
39
   },
39
   },
40
   {
40
   {
41
     path: '/invoiceDetail',
41
     path: '/invoiceDetail',
42
-    name: '开票明细列表',
42
+    name: '开票明细',
43
     icon: 'ProfileOutlined',
43
     icon: 'ProfileOutlined',
44
     component: '@/pages/invoiceDetail',    
44
     component: '@/pages/invoiceDetail',    
45
   },
45
   },
46
+  {
47
+    path: '/nofill',
48
+    name: '未填记录',
49
+    icon: 'FileSearchOutlined',
50
+    component: '@/pages/noFill',    
51
+  },
46
   {
52
   {
47
     path: '/',
53
     path: '/',
48
     redirect: '/welcome',
54
     redirect: '/welcome',

+ 2
- 2
src/pages/invoiceFill/index.jsx Просмотреть файл

15
   const actionRef = useRef();
15
   const actionRef = useRef();
16
 
16
 
17
   const handleClick = () => {
17
   const handleClick = () => {
18
-    history.push('/invoiceFill/edit.jsx');
18
+    history.push('/invoiceFill/edit');
19
   }
19
   }
20
   const handleDelete = (id) => {
20
   const handleDelete = (id) => {
21
     deleteInvoiceFill(id).then((res) => {
21
     deleteInvoiceFill(id).then((res) => {
65
       key: 'option',
65
       key: 'option',
66
       ellipsis: true,
66
       ellipsis: true,
67
       render: (_, record) => [
67
       render: (_, record) => [
68
-        <Button type="link" key={1} onClick={() => history.push(`/invoiceFill/edit.jsx?id=${record.invoiceId}`)} style={{ padding: 0 }}>
68
+        <Button type="link" key={1} onClick={() => history.push(`/invoiceFill/edit?id=${record.invoiceId}`)} style={{ padding: 0 }}>
69
           编辑
69
           编辑
70
         </Button>,
70
         </Button>,
71
         <Popconfirm
71
         <Popconfirm

+ 8
- 0
src/pages/noFill/index.jsx Просмотреть файл

1
+import React from 'react';
2
+import { PageHeaderWrapper } from '@ant-design/pro-layout';
3
+
4
+export default (props) => {
5
+  return (
6
+    <PageHeaderWrapper></PageHeaderWrapper>
7
+  )
8
+}