index.jsx 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. import React,{ Component } from 'react';
  2. import './index.less';
  3. import TabelContent from '../../../../common/tabelContent'
  4. import DetailedList from './detailedList';
  5. class ReceivablesStatistics extends Component{
  6. constructor(props) {
  7. super(props);
  8. this.state={
  9. columns: [
  10. {
  11. title: "序号",
  12. dataIndex: "key",
  13. key: "key",
  14. width: 120,
  15. },
  16. {
  17. title: "省份",
  18. dataIndex: "provinceName",
  19. key: "provinceName",
  20. width: 120,
  21. },
  22. {
  23. title: "高新总数",
  24. dataIndex: "quantity",
  25. key: "quantity",
  26. width: 120,
  27. className: 'projectTable',
  28. onCellClick :(record, event)=>{
  29. event.stopPropagation();
  30. this.setState({
  31. visible:true,
  32. recordInfor:record
  33. })
  34. }
  35. },
  36. {
  37. title: "已通过高新数",
  38. dataIndex: "pass",
  39. key: "pass",
  40. width: 120,
  41. className: 'projectTable',
  42. onCellClick :(record, event)=>{
  43. event.stopPropagation();
  44. this.setState({
  45. visible:true,
  46. recordInfor:record
  47. })
  48. }
  49. },
  50. {
  51. title: "已签回",
  52. dataIndex: "signBacks",
  53. key: "signBacks",
  54. width: 120,
  55. className: 'projectTable',
  56. onCellClick :(record, event)=>{
  57. event.stopPropagation();
  58. this.setState({
  59. visible:true,
  60. recordInfor:record
  61. })
  62. }
  63. },
  64. {
  65. title: "未通过高新数",
  66. dataIndex: "notPass",
  67. key: "notPass",
  68. width: 120,
  69. className: 'projectTable',
  70. onCellClick :(record, event)=>{
  71. event.stopPropagation();
  72. this.setState({
  73. visible:true,
  74. recordInfor:record
  75. })
  76. }
  77. },
  78. ],
  79. searchConfig:{}
  80. }
  81. }
  82. searchList(){
  83. let arr = [
  84. {
  85. type:'departmentSelect',
  86. dataKey:'depId',
  87. placeholder:'请选择部门'
  88. },
  89. {
  90. type:'times',
  91. title:'时间',
  92. dataKey:['startDate','endDate'],
  93. },
  94. ]
  95. return arr;
  96. }
  97. render() {
  98. return (
  99. <div className="user-content receivablesStatistics">
  100. <div className="content-title">
  101. <span>
  102. 高新复审总数<span style={{fontSize:'10px',color:'#0f2be5',marginLeft:'10px'}}>需复审已下证的企业</span>
  103. </span>
  104. </div>
  105. <TabelContent
  106. scroll={{ x: 0, y: 200 }}
  107. searchList={this.searchList()}
  108. columns={this.state.columns}
  109. searchOperation={(value)=>{
  110. for(let i of Object.keys(value)){
  111. if(i === 'sort' || i === 'pageNo' || i === 'pageSize'){
  112. delete value[i]
  113. }
  114. }
  115. this.setState({searchConfig:value})}
  116. }
  117. tabelApi={'/api/admin/orderProject/highNewRetrialStatistics'}
  118. exportApi={'/api/admin/orderProject/highNewRetrialStatistics/export'}
  119. dataProcessing={(data)=>{
  120. let theArr = [];
  121. for (let i = 0; i < data.data.length; i++) {
  122. let thisdata = data.data[i];
  123. thisdata.key=i + 1;
  124. theArr.push(thisdata);
  125. }
  126. return theArr;
  127. }}
  128. />
  129. {this.state.visible ? <DetailedList
  130. searchConfig={this.state.searchConfig}
  131. visible={this.state.visible}
  132. recordInfor={this.state.recordInfor}
  133. onCancel={()=>{
  134. this.setState({
  135. visible:false,
  136. recordInfor:{}
  137. })
  138. }}/> : null}
  139. </div>
  140. )
  141. }
  142. }
  143. export default ReceivablesStatistics;