zhoulisen 5 年之前
父節點
當前提交
174802041a

+ 17
- 0
config/routes.js 查看文件

@@ -116,6 +116,23 @@ export default [
116 116
               },
117 117
             ],
118 118
           },
119
+          {
120
+            path: '/eContract',
121
+            name: '电子合同',
122
+            component: '../layouts/BlankLayout',
123
+            routes: [
124
+              {
125
+                path: '/eContract/relatedOrganization',
126
+                name: '关联组织',
127
+                component: './eContract/relatedOrganization',
128
+              },
129
+              {
130
+                path: '/eContract/signedContract',
131
+                name: '已签署合同',
132
+                component: './eContract/signedContract',
133
+              },
134
+            ],
135
+          },
119 136
           
120 137
           {
121 138
             component: './404',

+ 96
- 0
src/pages/eContract/relatedOrganization/index.jsx 查看文件

@@ -0,0 +1,96 @@
1
+import React, { useState, useEffect } from 'react';
2
+import { PageHeaderWrapper } from '@ant-design/pro-layout';
3
+import { Form, Input, Button, Icon, Select, message, Table, Divider, Tag, Pagination, Modal, Breadcrumb } from 'antd';
4
+import router from 'umi/router';
5
+import moment from 'moment';
6
+import styles from './style.less';
7
+import { fetch, apis } from '../../../utils/request';
8
+import request from '../../../utils/request';
9
+import AuthButton from '@/components/AuthButton';
10
+
11
+function header(props) {
12
+    
13
+    const [taNoticeList, setTaNoticeList] = useState([])
14
+    const [ data, setData ] = useState({})
15
+
16
+    useEffect(() => {
17
+        getList({ pageNum: 1, pageSize: 10 });
18
+    }, [])
19
+    // 查询列表
20
+
21
+    const getList = params => {
22
+       
23
+    }
24
+
25
+    const toEditResource = (id) => () => {
26
+        if(id){
27
+        router.push({
28
+            pathname: '/resource/openScreen/edit',
29
+              query: {
30
+                id
31
+              },
32
+        });
33
+    }else{
34
+            router.push({
35
+                pathname: '/resource/openScreen/add',
36
+                  query: {
37
+                    id
38
+                  },
39
+            });
40
+        }
41
+    }
42
+
43
+    const handleSubmit = (e, props) => {
44
+        e.preventDefault();
45
+        getList({ pageNum: 1, pageSize: 10, ...props.form.getFieldsValue() });
46
+    }
47
+
48
+    function handleReset() {
49
+        props.form.resetFields();
50
+        getList({ pageNum: 1, pageSize: 10 });
51
+    }
52
+
53
+    const toDelBatch = rowData => () => {
54
+        console.log(taNoticeList, 'taNoticeList')
55
+        if (taNoticeList.length < 1) {
56
+            message.error('请至少选择一条数据')
57
+            return
58
+        }
59
+
60
+        Modal.confirm({
61
+            title: '确认将所选数据删除?',
62
+            okText: '确定',
63
+            cancelText: '取消',
64
+            onOk() {
65
+              
66
+            },
67
+        });
68
+    }
69
+
70
+    const changePageNum = pageNumber => {
71
+        getList({ pageNum: pageNumber, pageSize: 10, ...props.form.getFieldsValue() })
72
+    }
73
+
74
+     
75
+    const { getFieldDecorator } = props.form
76
+
77
+    const rowSelection = {
78
+        onChange: (selectedRowKeys, selectedRows) => {
79
+          console.log('selectedRowKeys:', selectedRowKeys, 'selectedRows: ', selectedRows);
80
+          setTaNoticeList(selectedRows)
81
+        },
82
+      };
83
+ 
84
+    return (
85
+
86
+        <>
87
+            <div>
88
+           234
89
+            </div>
90
+        </>
91
+    )
92
+}
93
+
94
+const WrappedHeader = Form.create({ name: 'header' })(header);
95
+
96
+export default WrappedHeader

+ 48
- 0
src/pages/eContract/relatedOrganization/style.less 查看文件

@@ -0,0 +1,48 @@
1
+.addBtn {
2
+    padding: 0 40px;
3
+    height: 36px;
4
+    margin: 30px 0;
5
+  }
6
+  
7
+  .touxiang {
8
+    width: 93px;
9
+    height: 93px;
10
+  }
11
+  
12
+  .imgPerfect {
13
+    width: 120px;
14
+    height: 40px;
15
+  }
16
+  
17
+  .imgIndex {
18
+    width: 150px;
19
+    height: 92.7px;
20
+  }
21
+  
22
+  .imgSmall {
23
+    width: 128px;
24
+    height: 192px;
25
+  }
26
+  
27
+  .propaganda {
28
+    width: 240px;
29
+    height: 60px;
30
+  }
31
+  
32
+  .ant-table-column-title {
33
+    font-weight: 600;
34
+  }
35
+  
36
+  .shoppingCart {
37
+    // color: #dcdcdc;
38
+    color: #bebebe;
39
+    margin-left: 6px;
40
+    font-size: 16px;
41
+  }
42
+  
43
+  .edit {
44
+    // color: #dcdcdc;
45
+    color: #bebebe;
46
+    margin-left: 6px;
47
+    font-size: 15px;
48
+  }

+ 96
- 0
src/pages/eContract/signedContract/index.jsx 查看文件

@@ -0,0 +1,96 @@
1
+import React, { useState, useEffect } from 'react';
2
+import { PageHeaderWrapper } from '@ant-design/pro-layout';
3
+import { Form, Input, Button, Icon, Select, message, Table, Divider, Tag, Pagination, Modal, Breadcrumb } from 'antd';
4
+import router from 'umi/router';
5
+import moment from 'moment';
6
+import styles from './style.less';
7
+import { fetch, apis } from '../../../utils/request';
8
+import request from '../../../utils/request';
9
+import AuthButton from '@/components/AuthButton';
10
+
11
+function header(props) {
12
+    
13
+    const [taNoticeList, setTaNoticeList] = useState([])
14
+    const [ data, setData ] = useState({})
15
+
16
+    useEffect(() => {
17
+        getList({ pageNum: 1, pageSize: 10 });
18
+    }, [])
19
+    // 查询列表
20
+
21
+    const getList = params => {
22
+       
23
+    }
24
+
25
+    const toEditResource = (id) => () => {
26
+        if(id){
27
+        router.push({
28
+            pathname: '/resource/openScreen/edit',
29
+              query: {
30
+                id
31
+              },
32
+        });
33
+    }else{
34
+            router.push({
35
+                pathname: '/resource/openScreen/add',
36
+                  query: {
37
+                    id
38
+                  },
39
+            });
40
+        }
41
+    }
42
+
43
+    const handleSubmit = (e, props) => {
44
+        e.preventDefault();
45
+        getList({ pageNum: 1, pageSize: 10, ...props.form.getFieldsValue() });
46
+    }
47
+
48
+    function handleReset() {
49
+        props.form.resetFields();
50
+        getList({ pageNum: 1, pageSize: 10 });
51
+    }
52
+
53
+    const toDelBatch = rowData => () => {
54
+        console.log(taNoticeList, 'taNoticeList')
55
+        if (taNoticeList.length < 1) {
56
+            message.error('请至少选择一条数据')
57
+            return
58
+        }
59
+
60
+        Modal.confirm({
61
+            title: '确认将所选数据删除?',
62
+            okText: '确定',
63
+            cancelText: '取消',
64
+            onOk() {
65
+              
66
+            },
67
+        });
68
+    }
69
+
70
+    const changePageNum = pageNumber => {
71
+        getList({ pageNum: pageNumber, pageSize: 10, ...props.form.getFieldsValue() })
72
+    }
73
+
74
+     
75
+    const { getFieldDecorator } = props.form
76
+
77
+    const rowSelection = {
78
+        onChange: (selectedRowKeys, selectedRows) => {
79
+          console.log('selectedRowKeys:', selectedRowKeys, 'selectedRows: ', selectedRows);
80
+          setTaNoticeList(selectedRows)
81
+        },
82
+      };
83
+ 
84
+    return (
85
+
86
+        <>
87
+            <div>
88
+           234
89
+            </div>
90
+        </>
91
+    )
92
+}
93
+
94
+const WrappedHeader = Form.create({ name: 'header' })(header);
95
+
96
+export default WrappedHeader

+ 48
- 0
src/pages/eContract/signedContract/style.less 查看文件

@@ -0,0 +1,48 @@
1
+.addBtn {
2
+    padding: 0 40px;
3
+    height: 36px;
4
+    margin: 30px 0;
5
+  }
6
+  
7
+  .touxiang {
8
+    width: 93px;
9
+    height: 93px;
10
+  }
11
+  
12
+  .imgPerfect {
13
+    width: 120px;
14
+    height: 40px;
15
+  }
16
+  
17
+  .imgIndex {
18
+    width: 150px;
19
+    height: 92.7px;
20
+  }
21
+  
22
+  .imgSmall {
23
+    width: 128px;
24
+    height: 192px;
25
+  }
26
+  
27
+  .propaganda {
28
+    width: 240px;
29
+    height: 60px;
30
+  }
31
+  
32
+  .ant-table-column-title {
33
+    font-weight: 600;
34
+  }
35
+  
36
+  .shoppingCart {
37
+    // color: #dcdcdc;
38
+    color: #bebebe;
39
+    margin-left: 6px;
40
+    font-size: 16px;
41
+  }
42
+  
43
+  .edit {
44
+    // color: #dcdcdc;
45
+    color: #bebebe;
46
+    margin-left: 6px;
47
+    font-size: 15px;
48
+  }