zhoulisen 5 anos atrás
pai
commit
b161590c0c

+ 4
- 12
src/pages/eContract/manage/edit.jsx Ver arquivo

@@ -26,12 +26,8 @@ const header = props => {
26 26
     }, [])
27 27
 
28 28
     const getList = (id) => {
29
-        // console.log(params);
30
-        console.log(id)
31 29
         request({ ...apis.manage.detail, urlData: { id: id } }).then((data) => {
32
-
33 30
             setData(data)
34
-
35 31
         })
36 32
     }
37 33
 
@@ -39,7 +35,7 @@ const header = props => {
39 35
         request({
40 36
             ...apis.manage.archives,
41 37
             urlData: { id: id },
42
-            data: { contractId: parseInt(id) , archives: true }
38
+            data: { contractId: parseInt(id), archives: true }
43 39
         }).then((data) => {
44 40
 
45 41
             message.info("归档成功")
@@ -99,12 +95,12 @@ const header = props => {
99 95
         {
100 96
             name: "已签署合同",
101 97
             // value:data.,
102
-            render: (x, row) => <><a type="button"   className={Styles.btn} href={data.contractViewUrl} target = "_blank">查看合同</a> <a href={data.contractDownloadUrl} download="234.pdf" style={{ color: '#1D74D9',marginLeft:'30px' }}>下载合同</a> </>
98
+            render: (x, row) => <><a type="button" className={Styles.btn} href={data.contractViewUrl} target="_blank">查看合同</a> <a href={data.contractDownloadUrl} download="234.pdf" style={{ color: '#1D74D9', marginLeft: '30px' }}>下载合同</a> </>
103 99
         },
104 100
         {
105 101
             name: "是否归档",
106 102
             value: data.archives,
107
-            render: (x, row) => <><span>{data.archives ? '是' : '否'}</span>{!data.archives &&<a onClick={() => onArchives(data.contractId)} style={{ color: '#1D74D9',marginLeft:'30px' }}>归档</a>}  </>
103
+            render: (x, row) => <><span>{data.archives ? '是' : '否'}</span>{!data.archives && <a onClick={() => onArchives(data.contractId)} style={{ color: '#1D74D9', marginLeft: '30px' }}>归档</a>}  </>
108 104
         },
109 105
         {
110 106
             name: "归档时间",
@@ -120,7 +116,6 @@ const header = props => {
120 116
 
121 117
             {datas.map((x) => {
122 118
                 return <Row style={{ margin: '20px 0' }}>
123
-
124 119
                     <Col span={5} className={Styles.title} align="right" >
125 120
                         {x.name}
126 121
                     </Col>
@@ -128,15 +123,12 @@ const header = props => {
128 123
                         {
129 124
                             x.render ? typeof x.render === 'function' ? x.render(props) : x.render : x.value
130 125
                         }
131
-
132 126
                     </Col>
133 127
                     <Col span={2} offset={4}>
134
-
135 128
                     </Col>
136
-
137 129
                 </Row>
138 130
             })}
139
-            <div align="center"><Button className={Styles.rebtn} onClick={()=>router.go(-1)}>返回</Button></div>
131
+            <div align="center"><Button className={Styles.rebtn} onClick={() => router.go(-1)}>返回</Button></div>
140 132
 
141 133
         </>
142 134
     )

+ 1
- 29
src/pages/eContract/manage/list.jsx Ver arquivo

@@ -29,7 +29,6 @@ const header = props => {
29 29
 
30 30
   // 查询列表
31 31
   const getList = (params) => {
32
-    // console.log(params);
33 32
     request({ ...apis.manage.list, params: { ...params } }).then((data) => {
34 33
       console.log(data)
35 34
       setData(data)
@@ -163,19 +162,6 @@ const header = props => {
163 162
         getList({ pageNum: 1, pageSize: 10, ...submitValue })
164 163
       }
165 164
     });
166
-    // props.form.validateFields((err, values) => {
167
-    //   if (!err) {
168
-
169
-    //     if (values.startCreateDate != null) {
170
-    //       values.archivesStartDate = moment(values.startCreateDate).format('YYYY-MM-DD HH:mm:ss')
171
-    //     }
172
-    //     if (values.endCreateDate != null) {
173
-    //       values.endCreateDate = moment(values.endCreateDate).format('YYYY-MM-DD HH:mm:ss')
174
-    //     }
175
-    //     getList({ pageNum: 1, pageSize: 10, ...values })
176
-    //   }
177
-    // });
178
-    // getList({ pageNum: 1, pageSize: 10, ...props.form.getFieldsValue() })
179 165
   }
180 166
 
181 167
   //重置搜索
@@ -192,9 +178,7 @@ const header = props => {
192 178
     <>
193 179
       <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
194 180
         <Form.Item>
195
-          {getFieldDecorator('contractName', {
196
-            // initialValue: sampleName
197
-          })(
181
+          {getFieldDecorator('contractName')(
198 182
             <Input
199 183
               prefix={<Icon type="text" style={{ color: 'rgba(0,0,0,.25)' }} />}
200 184
               placeholder="合同标题"
@@ -252,18 +236,6 @@ const header = props => {
252 236
             <RangePicker placeholder={['归档开始时间', '归档结束时间']} />
253 237
           )}
254 238
         </Form.Item>
255
-
256
-        {/* <Form.Item>
257
-          {getFieldDecorator('archivesStartDate')(
258
-            <DatePicker showTime={{ format: 'HH:mm:ss' }} placeholder="归档开始时间" />,
259
-          )}
260
-        </Form.Item>
261
-        <Form.Item>
262
-          {getFieldDecorator('archivesEndDate')(
263
-            <DatePicker showTime={{ format: 'HH:mm:ss' }} placeholder="归档结束时间" />,
264
-          )}
265
-        </Form.Item> */}
266
-
267 239
         <Form.Item>
268 240
           <AuthButton name="admin.taShareActivity.search" noRight={null}>
269 241
             <Button type="primary" htmlType="submit" className={styles.searchBtn}>