| 
						
						
						
					 | 
				
				 | 
				
					@ -1,11 +1,16 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import React, { useEffect, useState } from 'react'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { connect } from 'react-redux'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { Select, Input, Button, RadioGroup, Radio, Table } from '@douyinfe/semi-ui'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { Select, Input, Spin, Button, RadioGroup, Radio, Table } from '@douyinfe/semi-ui'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { IconSearch } from '@douyinfe/semi-icons'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { RESERVEITEM_TYPE } from '../constants' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import '../style.less' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import moment from 'moment' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					const ReserveItemsPeriodicStatistics = (props) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    const { dispatch, actions, isResquesting, reserveItemReport } = props; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    useEffect(() => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        dispatch(actions.businessManagement.getReserveItemReport(RESERVEITEM_TYPE["periodicStatistics"])); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }, []) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    const columns = [ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            title: '序号', | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -26,24 +31,24 @@ const ReserveItemsPeriodicStatistics = (props) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            render: (text, record, indexe) => (<Button theme='solid' type='secondary'>导出</Button>) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    ]; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    const data = [ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            key: '1', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            name: 'Semi Design 设计稿.fig', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            updateTime: '2020-02-02 05:13', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            avatarBg: 'grey', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            key: '2', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            name: 'Semi Design 分享演示文稿', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            updateTime: '2020-01-17 05:31', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            key: '3', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            name: '设计文档', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            updateTime: '2020-01-26 11:01', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    ]; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    // const data = [ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //     { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //         key: '1', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //         name: 'Semi Design 设计稿.fig', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //         updateTime: '2020-02-02 05:13', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //         avatarBg: 'grey', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //     }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //     { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //         key: '2', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //         name: 'Semi Design 分享演示文稿', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //         updateTime: '2020-01-17 05:31', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //     }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //     { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //         key: '3', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //         name: '设计文档', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //         updateTime: '2020-01-26 11:01', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //     }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    // ]; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    return ( | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <> | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -66,7 +71,13 @@ const ReserveItemsPeriodicStatistics = (props) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    <div style={{ borderBottom: '1px solid #F2F3F5', marginLeft: '-20px', marginBottom: 16 }}></div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    <div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: 22 }}> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        <Table columns={columns} dataSource={data} pagination={false} /> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        <Spin spinning={isResquesting}> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                            <Table | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                columns={columns} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                dataSource={reserveItemReport} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                // pagination={false} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                            /> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        </Spin> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </div> | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -76,10 +87,12 @@ const ReserveItemsPeriodicStatistics = (props) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					function mapStateToProps(state) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    const { auth, global } = state; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    const { auth, global, reserveItemReport } = state; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    return { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        user: auth.user, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        actions: global.actions, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        reserveItemReport: reserveItemReport.data || [], | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        isResquesting: reserveItemReport.isResquesting | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
					 | 
				
				 | 
				
					
  |