projecDataStatistics.jsx 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622
  1. import React from 'react';
  2. import {
  3. DatePicker,
  4. Tooltip,
  5. Button,
  6. AutoComplete,
  7. Input,
  8. Select,
  9. Spin,
  10. Table,
  11. message,
  12. Form,
  13. Tabs,
  14. Switch
  15. } from 'antd';
  16. import $ from 'jquery/src/ajax';
  17. import moment from 'moment';
  18. import { ShowModal, getApprovedState, getWhether, getLiquidationStatus } from "@/tools.js";
  19. import { projectStatusList, salesList } from "@/dataDic";
  20. import { citySelect } from "../../../NewDicProvinceList";
  21. import ShowModalDiv from "@/showModal.jsx";
  22. import { ChooseList } from "../../order/orderNew/chooseList";
  23. import StaffSearch from '../../../../component/common/staffSearch';
  24. import Cascaders from "../../../common/cascaders";
  25. import './index.less';
  26. const TabPane = Tabs.TabPane;
  27. const { RangePicker, MonthPicker } = DatePicker;
  28. const ProjecDataStatistics = Form.create()(React.createClass({
  29. getInitialState() {
  30. return {
  31. searchValues: {},
  32. loading: false,
  33. exportPendingLoading: false,
  34. changeList: undefined,
  35. dataSource: [],
  36. pagination: {
  37. defaultCurrent: 1,
  38. defaultPageSize: 10,
  39. showQuickJumper: true,
  40. pageSize: 10,
  41. onChange: function (page) {
  42. this.loadData(page);
  43. }.bind(this),
  44. showTotal: function (total) {
  45. return '共' + total + '条数据';
  46. }
  47. },
  48. columns: [
  49. {
  50. title: "销售类型",
  51. dataIndex: "salesType",
  52. key: "salesType",
  53. render: (text, record) => {
  54. const obj = {
  55. children: <Tooltip title={salesList[text] + ((text == 3 || text == 4 || text == 5) ? (!record.other ? "" : "," + record.other) : "")}>
  56. <span>
  57. {salesList[text]}
  58. </span>
  59. </Tooltip>,
  60. props: {
  61. rowSpan: record.rowSpan || 0
  62. }
  63. }
  64. return obj
  65. },
  66. },
  67. {
  68. title: "订单类型",
  69. dataIndex: "serviceType",
  70. key: "serviceType",
  71. render: (text, record) => {
  72. const obj = {
  73. children: <div style={{ maxWidth: 200 }}>{text}</div>,
  74. props: {
  75. rowSpan: record.rowSpan || 0
  76. }
  77. }
  78. return obj
  79. }
  80. },
  81. {
  82. title: "结算状态",
  83. dataIndex: "liquidationStatus",
  84. key: "liquidationStatus",
  85. render: (text, record) => {
  86. const obj = {
  87. children: getLiquidationStatus(text),
  88. props: {
  89. rowSpan: record.rowSpan || 0
  90. }
  91. }
  92. return obj
  93. }
  94. },
  95. {
  96. title: "催款节点",
  97. dataIndex: "dunNodeContent",
  98. key: "dunNodeContent",
  99. render: (text, record) => {
  100. const obj = {
  101. children: <div style={{ maxWidth: 200 }}>{text}</div>,
  102. props: {
  103. rowSpan: record.rowSpan || 0
  104. }
  105. }
  106. return obj
  107. }
  108. },
  109. {
  110. title: '是否会员',
  111. dataIndex: 'projectType',
  112. key: 'projectType',
  113. render: (text, record) => {
  114. const obj = {
  115. children: getWhether(text),
  116. props: {
  117. rowSpan: record.rowSpan || 0
  118. }
  119. }
  120. return obj
  121. }
  122. },
  123. {
  124. title: '是否大客户',
  125. dataIndex: 'bigCustomer',
  126. key: 'bigCustomer',
  127. render: (text, record) => {
  128. const obj = {
  129. children: getWhether(text),
  130. props: {
  131. rowSpan: record.rowSpan || 0
  132. }
  133. }
  134. return obj
  135. }
  136. },
  137. {
  138. title: "是否特批",
  139. dataIndex: "approval",
  140. key: "approval",
  141. render: (text, record) => {
  142. const obj = {
  143. children: getApprovedState(text),
  144. props: {
  145. rowSpan: record.rowSpan || 0
  146. }
  147. }
  148. return obj
  149. }
  150. },
  151. {
  152. title: '签单时间',
  153. dataIndex: 'signTime',
  154. key: 'signTime',
  155. render: (text, record) => {
  156. const obj = {
  157. children: text,
  158. props: {
  159. rowSpan: record.rowSpan || 0
  160. }
  161. }
  162. return obj
  163. }
  164. },
  165. {
  166. title: "派单时间",
  167. dataIndex: "createTime",
  168. key: "createTime",
  169. render: (text, record) => {
  170. const obj = {
  171. children: text,
  172. props: {
  173. rowSpan: record.rowSpan || 0
  174. }
  175. }
  176. return obj
  177. }
  178. },
  179. {
  180. title: '公司名称',
  181. dataIndex: 'buyerName',
  182. key: 'buyerName',
  183. render: (text, record) => {
  184. const obj = {
  185. children: <Tooltip title={text}>
  186. <div style={{ maxWidth: 200 }}>{text}</div>
  187. </Tooltip>,
  188. props: {
  189. rowSpan: record.rowSpan || 0
  190. }
  191. }
  192. return obj
  193. }
  194. },
  195. {
  196. title: "合同编号",
  197. dataIndex: "contractNo",
  198. key: "contractNo",
  199. render: (text, record) => {
  200. const obj = {
  201. children: text,
  202. props: {
  203. rowSpan: record.rowSpan || 0
  204. }
  205. }
  206. return obj
  207. }
  208. },
  209. {
  210. title: '合同类型',
  211. dataIndex: 'htlx',
  212. key: 'htlx',
  213. render: (text, record) => {
  214. const obj = {
  215. children: text,
  216. props: {
  217. rowSpan: record.rowSpan || 0
  218. }
  219. }
  220. return obj
  221. }
  222. },
  223. {
  224. title: '省份',
  225. dataIndex: 'province',
  226. key: 'province',
  227. render: (text, record) => {
  228. const obj = {
  229. children: text,
  230. props: {
  231. rowSpan: record.rowSpan || 0
  232. }
  233. }
  234. return obj
  235. }
  236. },
  237. {
  238. title: "派单公司",
  239. dataIndex: "depName",
  240. key: "depName",
  241. render: (text, record) => {
  242. const obj = {
  243. children: text,
  244. props: {
  245. rowSpan: record.rowSpan || 0
  246. }
  247. }
  248. return obj
  249. }
  250. },
  251. {
  252. title: '签单金额',
  253. dataIndex: 'totalAmount',
  254. key: 'totalAmount',
  255. render: (text, record) => {
  256. const obj = {
  257. children: text,
  258. props: {
  259. rowSpan: record.rowSpan || 0
  260. }
  261. }
  262. return obj
  263. }
  264. },
  265. {
  266. title: '合同收款比例',
  267. dataIndex: 'contractAmountProportion',
  268. key: 'contractAmountProportion',
  269. render: (text, record) => {
  270. const obj = {
  271. children: text,
  272. props: {
  273. rowSpan: record.rowSpan || 0
  274. }
  275. }
  276. return obj
  277. }
  278. },
  279. {
  280. title: '应收款',
  281. dataIndex: 'orderReceivables',
  282. key: 'orderReceivables',
  283. render: (text, record) => {
  284. const obj = {
  285. children: text,
  286. props: {
  287. rowSpan: record.rowSpan || 0
  288. }
  289. }
  290. return obj
  291. }
  292. },
  293. {
  294. title: '已收款',
  295. dataIndex: 'settlementAmount',
  296. key: 'settlementAmount',
  297. render: (text, record) => {
  298. const obj = {
  299. children: text,
  300. props: {
  301. rowSpan: record.rowSpan || 0
  302. }
  303. }
  304. return obj
  305. }
  306. },
  307. {
  308. title: "欠款",
  309. dataIndex: "arrearsAmount",
  310. key: "arrearsAmount",
  311. render: (text, record) => {
  312. const obj = {
  313. children: text,
  314. props: {
  315. rowSpan: record.rowSpan || 0
  316. }
  317. }
  318. return obj
  319. }
  320. },
  321. {
  322. title: "已报销",
  323. dataIndex: "expenseAmount",
  324. key: "expenseAmount",
  325. render: (text, record) => {
  326. const obj = {
  327. children: text,
  328. props: {
  329. rowSpan: record.rowSpan || 0
  330. }
  331. }
  332. return obj
  333. }
  334. },
  335. {
  336. title: "应公出/已公出/超出",
  337. dataIndex: "shouldPublic",
  338. key: "shouldPublic",
  339. render: (text, record) => {
  340. const obj = {
  341. children: <span>
  342. {text + " / " + record.alreadyPublic + " / " + record.exceedPublic}
  343. </span>,
  344. props: {
  345. rowSpan: record.rowSpan || 0
  346. }
  347. }
  348. return obj
  349. }
  350. },
  351. {
  352. title: "总成本/实付",
  353. dataIndex: "costAmount",
  354. key: "costAmount",
  355. render: (text, record) => {
  356. const obj = {
  357. children: <span>
  358. {text + " / " + record.paymentAmount}
  359. </span>,
  360. props: {
  361. rowSpan: record.rowSpan || 0
  362. }
  363. }
  364. return obj
  365. }
  366. },
  367. {
  368. title: "已开票金额",
  369. dataIndex: "invicueAmount",
  370. key: "invicueAmount",
  371. render: (text, record) => {
  372. const obj = {
  373. children: text,
  374. props: {
  375. rowSpan: record.rowSpan || 0
  376. }
  377. }
  378. return obj
  379. }
  380. },
  381. {
  382. title: "退款金额",
  383. dataIndex: "refundAmount",
  384. key: "refundAmount",
  385. render: (text, record) => {
  386. const obj = {
  387. children: text,
  388. props: {
  389. rowSpan: record.rowSpan || 0
  390. }
  391. }
  392. return obj
  393. }
  394. },
  395. {
  396. title: "财务负责人",
  397. dataIndex: "financeName",
  398. key: "financeName",
  399. render: (text, record) => {
  400. const obj = {
  401. children: text,
  402. props: {
  403. rowSpan: record.rowSpan || 0
  404. }
  405. }
  406. return obj
  407. }
  408. },
  409. {
  410. title: "营销负责人",
  411. dataIndex: "salesmanName",
  412. key: "salesmanName",
  413. render: (text, record) => {
  414. const obj = {
  415. children: text,
  416. props: {
  417. rowSpan: record.rowSpan || 0
  418. }
  419. }
  420. return obj
  421. }
  422. },
  423. {
  424. title: "项目名称",
  425. dataIndex: "commodityName",
  426. key: "commodityName",
  427. render: (text, record) => {
  428. return (
  429. <div style={{ maxWidth: 200 }}>
  430. {text}
  431. {!!record.serviceLife && <span>{"-" + record.serviceLife}</span>}
  432. {!!record.yearSum && <span>{",共" + record.yearSum + "年"}</span>}
  433. {!!record.serviceYear && <span>{",本次" + record.serviceYear}</span>}
  434. </div>
  435. )
  436. }
  437. },
  438. {
  439. title: "项目转入时间",
  440. dataIndex: "taskDistributionTime",
  441. key: "taskDistributionTime",
  442. },
  443. {
  444. title: "是否重报",
  445. dataIndex: "restatementType",
  446. key: "restatementType",
  447. },
  448. {
  449. title: "是否科技项目",
  450. dataIndex: "sortType",
  451. key: "sortType",
  452. },
  453. {
  454. title: "项目数",
  455. dataIndex: "commodityQuantity",
  456. key: "commodityQuantity",
  457. },
  458. {
  459. title: "项目成本",
  460. dataIndex: "projectCostAmount",
  461. key: "projectCostAmount",
  462. },
  463. {
  464. title: "项目状态",
  465. dataIndex: "projectStatus",
  466. key: "projectStatus",
  467. },
  468. {
  469. title: "项目启动时间",
  470. dataIndex: "taskStartTime",
  471. key: "taskStartTime",
  472. },
  473. {
  474. title: "项目完成时间",
  475. dataIndex: "taskEndTime",
  476. key: "taskEndTime",
  477. },
  478. // {
  479. // title: "技术组",
  480. // dataIndex: "expenseAmount",
  481. // key: "expenseAmount",
  482. // },
  483. {
  484. title: "项目负责人",
  485. dataIndex: "receiverName",
  486. key: "receiverName",
  487. },
  488. {
  489. title: "满意度",
  490. dataIndex: "satisfactionDegree",
  491. key: "satisfactionDegree",
  492. render: text => {
  493. return (
  494. <span>{["非常满意", "满意", "一般", "不满意"][text]}</span>
  495. )
  496. }
  497. },
  498. {
  499. title: "项目备注",
  500. dataIndex: "taskComment",
  501. key: "taskComment",
  502. render: text => {
  503. return (
  504. <div style={{ maxWidth: 220 }}>{text}</div>
  505. )
  506. }
  507. },
  508. {
  509. title: "核算比例",
  510. dataIndex: "hsbl",
  511. key: "hsbl",
  512. render: (text, record) => {
  513. const obj = {
  514. children: text,
  515. props: {
  516. rowSpan: record.rowSpan || 0
  517. }
  518. }
  519. return obj
  520. }
  521. },
  522. {
  523. title: "订单情况",
  524. dataIndex: "orderStatus",
  525. key: "orderStatus",
  526. render: (text, record) => {
  527. const obj = {
  528. children: text,
  529. props: {
  530. rowSpan: record.rowSpan || 0
  531. }
  532. }
  533. return obj
  534. }
  535. },
  536. {
  537. title: "变更情况",
  538. dataIndex: "changeType",
  539. key: "changeType",
  540. render: (text, record) => {
  541. const obj = {
  542. children: text,
  543. props: {
  544. rowSpan: record.rowSpan || 0
  545. }
  546. }
  547. return obj
  548. }
  549. },
  550. {
  551. title: "退单退款",
  552. dataIndex: "refundType",
  553. key: "refundType",
  554. render: (text, record) => {
  555. const obj = {
  556. children: text,
  557. props: {
  558. rowSpan: record.rowSpan || 0
  559. }
  560. }
  561. return obj
  562. }
  563. },
  564. ],
  565. dataSource: [],
  566. departmentArr: [],
  567. searchMore: false,
  568. };
  569. },
  570. componentWillMount() {
  571. this.departmentList();
  572. this.selectSuperId();
  573. this.loadData();
  574. },
  575. loadData(pageNo) {
  576. const { searchValues, pagination } = this.state;
  577. this.setState({
  578. loading: true,
  579. });
  580. let datas = Object.assign(searchValues, {
  581. pageNo: pageNo || 1,
  582. pageSize: pagination.pageSize,
  583. });
  584. $.ajax({
  585. method: "get",
  586. dataType: "json",
  587. crossDomain: false,
  588. url: globalConfig.context + "/api/admin/statistis/orderProject",
  589. data: datas,
  590. success: function (data) {
  591. ShowModal(this);
  592. this.setState({
  593. loading: false,
  594. });
  595. if (data.error && data.error.length === 0) {
  596. if (data.data.list) {
  597. pagination.current = data.data.pageNo;
  598. pagination.total = data.data.totalCount;
  599. if (data.data && data.data.list && !data.data.list.length) {
  600. pagination.current = 0;
  601. pagination.total = 0;
  602. }
  603. let dList = this.handleData(data.data.list, "contractNo")
  604. this.setState({
  605. dataSource: dList,
  606. pagination: this.state.pagination,
  607. pageNo: data.data.pageNo,
  608. });
  609. } else {
  610. this.setState({
  611. dataSource: data.data,
  612. pagination: false,
  613. });
  614. }
  615. } else {
  616. message.warning(data.error[0].message);
  617. }
  618. }.bind(this),
  619. }).always(
  620. function () {
  621. this.setState({
  622. loading: false,
  623. });
  624. }.bind(this)
  625. );
  626. },
  627. // 部门
  628. departmentList() {
  629. this.setState({
  630. loading: true,
  631. });
  632. $.ajax({
  633. method: "get",
  634. dataType: "json",
  635. crossDomain: false,
  636. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  637. data: {},
  638. success: function (data) {
  639. let thedata = data.data;
  640. let theArr = [];
  641. if (!thedata) {
  642. if (data.error && data.error.length) {
  643. message.warning(data.error[0].message);
  644. }
  645. thedata = {};
  646. } else {
  647. thedata.map(function (item, index) {
  648. theArr.push({
  649. key: index,
  650. name: item.name,
  651. id: item.id,
  652. });
  653. });
  654. }
  655. this.setState({
  656. departmentArr: theArr,
  657. });
  658. }.bind(this),
  659. }).always(
  660. function () {
  661. this.setState({
  662. loading: false,
  663. });
  664. }.bind(this)
  665. );
  666. },
  667. // 项目类别
  668. selectSuperId() {
  669. $.ajax({
  670. method: "get",
  671. dataType: "json",
  672. crossDomain: false,
  673. url: globalConfig.context + "/api/admin/ProjectSize/getAllCname",
  674. data: {
  675. flag: 0
  676. },
  677. success: function (data) {
  678. let theArr = [];
  679. let thedata = data.data;
  680. if (!thedata) {
  681. if (data.error && data.error.length) {
  682. message.warning(data.error[0].message);
  683. }
  684. }
  685. for (let i = 0; i < data.data.length; i++) {
  686. let theData = data.data[i];
  687. theArr.push(
  688. <Select.Option value={theData.id} key={theData.cname}>
  689. {theData.cname}
  690. </Select.Option>
  691. );
  692. }
  693. this.setState({
  694. contactsOption: theArr,
  695. contactsOptionData: data.data,
  696. });
  697. }.bind(this)
  698. }).always(
  699. );
  700. },
  701. changeList(arr) {
  702. const newArr = [];
  703. let list = this.state.columns
  704. list.forEach((item) => {
  705. arr.forEach((val) => {
  706. if (val === item.title) {
  707. newArr.push(item);
  708. }
  709. });
  710. });
  711. this.setState({
  712. changeList: newArr,
  713. });
  714. },
  715. exportAll() {
  716. message.config({
  717. duration: 20,
  718. });
  719. let loading = message.loading("下载中...");
  720. this.setState({
  721. exportPendingLoading: true,
  722. });
  723. let data = JSON.parse(JSON.stringify(this.state.searchValues));
  724. $.ajax({
  725. method: "get",
  726. dataType: "json",
  727. crossDomain: false,
  728. url: "/api/admin/statistis/orderProject/export",
  729. data,
  730. success: function (data) {
  731. if (data.error.length === 0) {
  732. this.download(data.data);
  733. } else {
  734. message.warning(data.error[0].message);
  735. }
  736. }.bind(this),
  737. }).always(
  738. function () {
  739. loading();
  740. this.setState({
  741. exportPendingLoading: false,
  742. });
  743. }.bind(this)
  744. );
  745. },
  746. download(fileName) {
  747. window.location.href =
  748. globalConfig.context + "/open/download?fileName=" + fileName;
  749. },
  750. handleData(array, key) {
  751. if (array.length === 0) return
  752. let arr = [...array]
  753. let startItem = arr[0]
  754. startItem.rowSpan = 1
  755. arr.forEach((item, index) => {
  756. let nextItem = arr[index + 1] || {}
  757. if (item[key] === nextItem[key]) {
  758. startItem.rowSpan++
  759. } else {
  760. startItem = nextItem
  761. startItem.rowSpan = 1
  762. }
  763. })
  764. return arr
  765. },
  766. search() {
  767. this.loadData();
  768. },
  769. reset() {
  770. this.setState({
  771. financeName: "",
  772. salesmanName: "",
  773. techName: "",
  774. searchValues: JSON.parse(JSON.stringify({})),
  775. }, () => {
  776. // this.Cascaders1.empty();
  777. // this.Cascaders2.empty();
  778. this.StaffSearch1.httpChange("");
  779. this.StaffSearch2.httpChange("");
  780. this.StaffSearch3.httpChange("");
  781. this.loadData();
  782. })
  783. },
  784. render() {
  785. const { searchValues } = this.state
  786. let departmentArr = this.state.departmentArr || [];
  787. const getRowClassName = (record, index) => {
  788. // 根据某些条件返回不同的类名
  789. if (index % 10 + 1 === 1) {
  790. return 'even-row1';
  791. } else if (index % 10 + 1 === 2) {
  792. return 'even-row2';
  793. } else if (index % 10 + 1 === 3) {
  794. return 'even-row3';
  795. } else if (index % 10 + 1 === 4) {
  796. return 'even-row4';
  797. } else if (index % 10 + 1 === 5) {
  798. return 'even-row5';
  799. } else if (index % 10 + 1 === 6) {
  800. return 'even-row6';
  801. } else if (index % 10 + 1 === 7) {
  802. return 'even-row7';
  803. } else if (index % 10 + 1 === 8) {
  804. return 'even-row8';
  805. } else if (index % 10 + 1 === 9) {
  806. return 'even-row9';
  807. } else if (index % 10 + 1 === 10) {
  808. return 'even-row10';
  809. }
  810. };
  811. return (
  812. <div className="user-content">
  813. <ShowModalDiv ShowModal={this.state.showModal} onClose={() => { this.setState({ showModal: false }) }} />
  814. <div className="content-title" style={{ marginBottom: 10 }}>
  815. <span style={{ fontWeight: 900, fontSize: 16 }}>项目数据统计</span>
  816. </div>
  817. <div className="user-search">
  818. <Tabs
  819. defaultActiveKey="1"
  820. className="test">
  821. <TabPane tab="搜索" key="1">
  822. <div
  823. className="user-search"
  824. style={{
  825. marginTop: "10px",
  826. marginLeft: "10px",
  827. marginRight: "10px",
  828. }}
  829. >
  830. <Input
  831. placeholder="订单编号"
  832. style={{
  833. width: 220,
  834. marginRight: "10px",
  835. }}
  836. value={searchValues["orderNo"]
  837. ? searchValues["orderNo"]
  838. : ""}
  839. onChange={(e) => {
  840. searchValues["orderNo"] = e.target.value;
  841. this.setState({
  842. searchValues: searchValues,
  843. });
  844. }}
  845. />
  846. <Input
  847. placeholder="合同编号"
  848. style={{
  849. width: 220,
  850. marginRight: "10px",
  851. }}
  852. value={searchValues["contractNo"]
  853. ? searchValues["contractNo"]
  854. : ""}
  855. onChange={(e) => {
  856. searchValues["contractNo"] = e.target.value;
  857. this.setState({
  858. searchValues: searchValues,
  859. });
  860. }}
  861. />
  862. <Input
  863. placeholder="企业名称"
  864. style={{
  865. width: 220,
  866. marginRight: "10px",
  867. }}
  868. value={searchValues["userName"]
  869. ? searchValues["userName"]
  870. : ""}
  871. onChange={(e) => {
  872. searchValues["userName"] = e.target.value;
  873. this.setState({
  874. searchValues: searchValues,
  875. });
  876. }}
  877. />
  878. <Select
  879. placeholder="项目分类"
  880. style={{ width: 220 }}
  881. value={searchValues["businessCategory"]
  882. ? searchValues["businessCategory"]
  883. : undefined}
  884. onChange={(e) => {
  885. searchValues["businessCategory"] = e;
  886. this.setState({
  887. searchValues: searchValues,
  888. });
  889. }}
  890. >
  891. {this.state.contactsOption}
  892. </Select>
  893. <Input
  894. placeholder="项目名称"
  895. value={searchValues["projectName"]
  896. ? searchValues["projectName"]
  897. : ""}
  898. style={{ width: 220, marginRight: 10 }}
  899. onChange={e => {
  900. searchValues["projectName"] = e.target.value
  901. this.setState({
  902. searchValues: searchValues,
  903. });
  904. }}
  905. />
  906. <span style={{ display: !this.state.searchMore && "none" }}>
  907. <span
  908. style={{
  909. display: "inline-block",
  910. }}
  911. >
  912. <span style={{ marginBottom: "10px" }}>订单部门:</span>
  913. <Select
  914. placeholder="选择订单部门"
  915. style={{ width: 170, }}
  916. value={searchValues["depId"]
  917. ? searchValues["depId"]
  918. : undefined}
  919. onChange={(e) => {
  920. searchValues["depId"] = e
  921. this.setState({
  922. searchValues: searchValues,
  923. });
  924. }}
  925. >
  926. {departmentArr.map(function (item) {
  927. return (
  928. <Select.Option key={item.id}>{item.name}</Select.Option>
  929. );
  930. })}
  931. </Select>
  932. {/* <Cascaders
  933. ref={ref => this.Cascaders1 = ref}
  934. placeholder="请选择订单部门"
  935. height={28}
  936. width={170}
  937. onSel={(e) => {
  938. searchValues["deps"] = JSON.stringify(e)
  939. this.setState({
  940. searchValues: searchValues,
  941. });
  942. }}
  943. /> */}
  944. </span>
  945. <span
  946. style={{
  947. display: "inline-block",
  948. }}
  949. >
  950. <span style={{ marginBottom: "10px" }}>负责部门:</span>
  951. <Select
  952. placeholder="选择负责部门"
  953. style={{ width: 170, }}
  954. value={searchValues["liabilitiesDepId"]
  955. ? searchValues["liabilitiesDepId"]
  956. : undefined}
  957. onChange={(e) => {
  958. searchValues["liabilitiesDepId"] = e
  959. this.setState({
  960. searchValues: searchValues,
  961. });
  962. }}
  963. >
  964. {departmentArr.map(function (item) {
  965. return (
  966. <Select.Option key={item.id}>{item.name}</Select.Option>
  967. );
  968. })}
  969. </Select>
  970. {/* <Cascaders
  971. ref={ref => this.Cascaders2 = ref}
  972. placeholder="请选择负责部门"
  973. height={28}
  974. width={170}
  975. onSel={(e) => {
  976. searchValues["thchDeps"] = JSON.stringify(e)
  977. this.setState({
  978. searchValues: searchValues,
  979. });
  980. }}
  981. /> */}
  982. </span>
  983. <span style={{ display: "inline-block" }}>
  984. <span style={{ marginRight: "10px", marginBottom: "10px" }}>
  985. 申报批次:
  986. </span>
  987. <Select
  988. value={searchValues["declarationBatch"]
  989. ? searchValues["declarationBatch"]
  990. : undefined}
  991. placeholder="请选择批次"
  992. style={{
  993. width: 150,
  994. marginRight: "10px",
  995. }}
  996. onChange={(e) => {
  997. searchValues["declarationBatch"] = e
  998. this.setState({
  999. searchValues: searchValues,
  1000. });
  1001. }}
  1002. >
  1003. <Option value={1}>第一批</Option>
  1004. <Option value={2}>第二批</Option>
  1005. <Option value={3}>第三批</Option>
  1006. <Option value={4}>第四批</Option>
  1007. </Select>
  1008. </span>
  1009. <span style={{ display: "inline-block" }}>
  1010. <span style={{ marginRight: "10px" }}>
  1011. 项目金额:
  1012. </span>
  1013. <Select
  1014. value={searchValues["projectAmountType"]
  1015. ? searchValues["projectAmountType"]
  1016. : undefined}
  1017. placeholder="请选择项目金额"
  1018. style={{
  1019. width: 150,
  1020. marginRight: "10px",
  1021. }}
  1022. onChange={(e) => {
  1023. searchValues["projectAmountType"] = e
  1024. this.setState({
  1025. searchValues: searchValues,
  1026. });
  1027. }}
  1028. >
  1029. <Option value={1}>1万以下</Option>
  1030. <Option value={2}>1~5万</Option>
  1031. <Option value={3}>5~10万</Option>
  1032. <Option value={4}>10~20万</Option>
  1033. <Option value={5}>20万以上</Option>
  1034. </Select>
  1035. </span>
  1036. <span style={{ display: "inline-block" }}>
  1037. <span style={{ marginRight: "10px" }}>
  1038. 项目状态:
  1039. </span>
  1040. <Select
  1041. value={(searchValues["projectStatus"] || searchValues["projectStatus"] == 0)
  1042. ? searchValues["projectStatus"]
  1043. : undefined}
  1044. placeholder="请选择项目状态"
  1045. style={{
  1046. width: 150,
  1047. marginRight: "10px",
  1048. }}
  1049. onChange={(e) => {
  1050. searchValues["projectStatus"] = e
  1051. this.setState({
  1052. searchValues: searchValues,
  1053. });
  1054. }}
  1055. >
  1056. {
  1057. projectStatusList.map((item) =>
  1058. <Option value={item.value} key={item.value}>{item.label}</Option>
  1059. )
  1060. }
  1061. </Select>
  1062. </span>
  1063. <span style={{ display: "inline-block" }}>
  1064. <span style={{ marginRight: "10px" }}>
  1065. 满&nbsp;&nbsp;意&nbsp;&nbsp;度:
  1066. </span>
  1067. <Select
  1068. value={searchValues["satisfactionDegree"]
  1069. ? searchValues["satisfactionDegree"]
  1070. : undefined}
  1071. placeholder="请选择满意度"
  1072. style={{
  1073. width: 150,
  1074. marginRight: "10px",
  1075. }}
  1076. onChange={(e) => {
  1077. searchValues["satisfactionDegree"] = e
  1078. this.setState({
  1079. searchValues: searchValues,
  1080. });
  1081. }}
  1082. >
  1083. <Option value="0">非常满意</Option>
  1084. <Option value="1">满意</Option>
  1085. <Option value="2">一般</Option>
  1086. <Option value="3">不满意</Option>
  1087. </Select>
  1088. </span>
  1089. <span style={{ display: "inline-block" }}>
  1090. <span style={{ marginRight: "10px" }}>
  1091. 派单时间:
  1092. </span>
  1093. <RangePicker
  1094. allowClear={false}
  1095. style={{ marginRight: "10px", width: 250 }}
  1096. value={[
  1097. searchValues["startDate"]
  1098. ? moment(searchValues["startDate"])
  1099. : null,
  1100. searchValues["endDate"]
  1101. ? moment(searchValues["endDate"])
  1102. : null,
  1103. ]}
  1104. onChange={(data, dataString) => {
  1105. searchValues["startDate"] = String(
  1106. dataString[0]
  1107. );
  1108. searchValues["endDate"] = String(
  1109. dataString[1]
  1110. );
  1111. this.setState({
  1112. searchValues: searchValues,
  1113. });
  1114. }}
  1115. />
  1116. </span>
  1117. <span style={{ display: "inline-block" }}>
  1118. <span style={{ marginRight: "10px" }}>
  1119. 项目转入时间:
  1120. </span>
  1121. <RangePicker
  1122. allowClear={false}
  1123. style={{ marginRight: "10px", width: 250 }}
  1124. value={[
  1125. searchValues["projectStartDate"]
  1126. ? moment(searchValues["projectStartDate"])
  1127. : null,
  1128. searchValues["projectEndDate"]
  1129. ? moment(searchValues["projectEndDate"])
  1130. : null,
  1131. ]}
  1132. onChange={(data, dataString) => {
  1133. searchValues["projectStartDate"] = String(
  1134. dataString[0]
  1135. );
  1136. searchValues["projectEndDate"] = String(
  1137. dataString[1]
  1138. );
  1139. this.setState({
  1140. searchValues: searchValues,
  1141. });
  1142. }}
  1143. />
  1144. </span>
  1145. <span style={{ display: "inline-block" }}>
  1146. <span style={{ marginRight: "10px" }}>
  1147. 销售类型:
  1148. </span>
  1149. <Select
  1150. value={searchValues["salesType"]
  1151. ? searchValues["salesType"]
  1152. : undefined}
  1153. placeholder="请选择销售类型"
  1154. style={{
  1155. width: 150,
  1156. marginRight: "10px",
  1157. }}
  1158. onChange={(e) => {
  1159. searchValues["salesType"] = e
  1160. this.setState({
  1161. searchValues: searchValues,
  1162. });
  1163. }}
  1164. >
  1165. <Option value="0">电话新开发</Option>
  1166. <Option value="1">电话自带资源</Option>
  1167. <Option value="2">网络</Option>
  1168. <Option value="3">渠道</Option>
  1169. <Option value="4">转介绍</Option>
  1170. <Option value="5">其他</Option>
  1171. <Option value="6">高新复购</Option>
  1172. <Option value="7">其他复购</Option>
  1173. <Option value="8">私有/渠道</Option>
  1174. </Select>
  1175. </span>
  1176. <span style={{ display: "inline-block" }}>
  1177. <span style={{ marginRight: "10px" }}>
  1178. 订单类型:
  1179. </span>
  1180. <Input
  1181. placeholder="请输入订单类型"
  1182. style={{
  1183. width: 150,
  1184. marginRight: "10px",
  1185. }}
  1186. value={searchValues["serviceType"]
  1187. ? searchValues["serviceType"]
  1188. : ""}
  1189. onChange={(e) => {
  1190. searchValues["serviceType"] = e.target.value;
  1191. this.setState({
  1192. searchValues: searchValues,
  1193. });
  1194. }}
  1195. />
  1196. </span>
  1197. <span style={{ display: "inline-block" }}>
  1198. <span style={{ marginRight: "10px" }}>
  1199. 结算状态:
  1200. </span>
  1201. <Select
  1202. value={searchValues["liquidationStatus"]
  1203. ? searchValues["liquidationStatus"]
  1204. : undefined}
  1205. placeholder="请选择结算状态"
  1206. style={{
  1207. width: 150,
  1208. marginRight: "10px",
  1209. }}
  1210. onChange={(e) => {
  1211. searchValues["liquidationStatus"] = e
  1212. this.setState({
  1213. searchValues: searchValues,
  1214. });
  1215. }}
  1216. >
  1217. <Option value="0">首付待付请</Option>
  1218. <Option value="1">尾款待付清</Option>
  1219. <Option value="2">已付清</Option>
  1220. <Option value="3">部分退款</Option>
  1221. <Option value="4">全部退款</Option>
  1222. </Select>
  1223. </span>
  1224. <span style={{ display: "inline-block" }}>
  1225. <span style={{ marginRight: "10px" }}>
  1226. 催款节点:
  1227. </span>
  1228. <Select
  1229. placeholder={"催款节点"}
  1230. style={{ width: 150 }}
  1231. value={searchValues["dunType"]
  1232. ? searchValues["dunType"]
  1233. : undefined}
  1234. onChange={(e) => {
  1235. searchValues["dunType"] = e
  1236. this.setState({
  1237. searchValues: searchValues,
  1238. });
  1239. }}
  1240. >
  1241. <Option value="0">未启动</Option>
  1242. <Option value="1">已启动</Option>
  1243. </Select>
  1244. </span>
  1245. <span style={{ display: "inline-block" }}>
  1246. <span style={{ marginRight: "10px" }}>
  1247. 签单时间:
  1248. </span>
  1249. <RangePicker
  1250. allowClear={false}
  1251. style={{ marginRight: "10px", width: 250 }}
  1252. value={[
  1253. searchValues["signStartDate"]
  1254. ? moment(searchValues["signStartDate"])
  1255. : null,
  1256. searchValues["signEndDate"]
  1257. ? moment(searchValues["signEndDate"])
  1258. : null,
  1259. ]}
  1260. onChange={(data, dataString) => {
  1261. searchValues["signStartDate"] = String(
  1262. dataString[0]
  1263. );
  1264. searchValues["signEndDate"] = String(
  1265. dataString[1]
  1266. );
  1267. this.setState({
  1268. searchValues: searchValues,
  1269. });
  1270. }}
  1271. />
  1272. </span>
  1273. <span style={{ display: "inline-block" }}>
  1274. <span style={{ marginRight: "10px" }}>
  1275. 项目完成时间:
  1276. </span>
  1277. <RangePicker
  1278. allowClear={false}
  1279. style={{ marginRight: "10px", width: 250 }}
  1280. value={[
  1281. searchValues["projectCompleteStartTime"]
  1282. ? moment(searchValues["projectCompleteStartTime"])
  1283. : null,
  1284. searchValues["projectCompleteEndTime"]
  1285. ? moment(searchValues["projectCompleteEndTime"])
  1286. : null,
  1287. ]}
  1288. onChange={(data, dataString) => {
  1289. searchValues["projectCompleteStartTime"] = String(
  1290. dataString[0]
  1291. );
  1292. searchValues["projectCompleteEndTime"] = String(
  1293. dataString[1]
  1294. );
  1295. this.setState({
  1296. searchValues: searchValues,
  1297. });
  1298. }}
  1299. />
  1300. </span>
  1301. <span style={{ display: "inline-block" }}>
  1302. <span style={{ marginRight: "10px" }}>
  1303. 是否特批:
  1304. </span>
  1305. <Select
  1306. placeholder={"是否特批"}
  1307. style={{ width: 150 }}
  1308. value={searchValues["approval"]
  1309. ? searchValues["approval"]
  1310. : undefined}
  1311. onChange={(e) => {
  1312. searchValues["approval"] = e
  1313. this.setState({
  1314. searchValues: searchValues,
  1315. });
  1316. }}
  1317. >
  1318. <Option value="0">否</Option>
  1319. <Option value="1">是</Option>
  1320. </Select>
  1321. </span>
  1322. <span style={{ display: "inline-block" }}>
  1323. <span style={{ marginRight: "10px" }}>
  1324. 是否会员:
  1325. </span>
  1326. <Select
  1327. placeholder={"是否会员"}
  1328. style={{ width: 150 }}
  1329. value={searchValues["projectType"]
  1330. ? searchValues["projectType"]
  1331. : undefined}
  1332. onChange={(e) => {
  1333. searchValues["projectType"] = e
  1334. this.setState({
  1335. searchValues: searchValues,
  1336. });
  1337. }}
  1338. >
  1339. <Option value="0">否</Option>
  1340. <Option value="1">是</Option>
  1341. </Select>
  1342. </span>
  1343. <span style={{ display: "inline-block" }}>
  1344. <span style={{ marginRight: "10px" }}>
  1345. 是否重报:
  1346. </span>
  1347. <Select
  1348. placeholder={"是否重报"}
  1349. style={{ width: 150 }}
  1350. value={searchValues["restatement"]
  1351. ? searchValues["restatement"]
  1352. : undefined}
  1353. onChange={(e) => {
  1354. searchValues["restatement"] = e
  1355. this.setState({
  1356. searchValues: searchValues,
  1357. });
  1358. }}
  1359. >
  1360. <Option value="0">否</Option>
  1361. <Option value="1">是</Option>
  1362. </Select>
  1363. </span>
  1364. <span style={{ display: "inline-block" }}>
  1365. <span style={{ marginRight: "10px" }}>
  1366. 是否变更:
  1367. </span>
  1368. <Select
  1369. placeholder={"是否变更"}
  1370. style={{ width: 150 }}
  1371. value={searchValues["changeType"]
  1372. ? searchValues["changeType"]
  1373. : undefined}
  1374. onChange={(e) => {
  1375. searchValues["changeType"] = e
  1376. this.setState({
  1377. searchValues: searchValues,
  1378. });
  1379. }}
  1380. >
  1381. <Option value="0">否</Option>
  1382. <Option value="1">是</Option>
  1383. </Select>
  1384. </span>
  1385. <span style={{ display: "inline-block" }}>
  1386. <span style={{ marginRight: "10px" }}>
  1387. 是否退单:
  1388. </span>
  1389. <Select
  1390. placeholder={"是否退单"}
  1391. style={{ width: 150 }}
  1392. value={searchValues["refundType"]
  1393. ? searchValues["refundType"]
  1394. : undefined}
  1395. onChange={(e) => {
  1396. searchValues["refundType"] = e
  1397. this.setState({
  1398. searchValues: searchValues,
  1399. });
  1400. }}
  1401. >
  1402. <Option value="0">否</Option>
  1403. <Option value="1">是</Option>
  1404. </Select>
  1405. </span>
  1406. <span style={{ display: "inline-block" }}>
  1407. <span style={{ marginRight: "10px" }}>
  1408. 是否大客户:
  1409. </span>
  1410. <Select
  1411. placeholder={"是否大客户"}
  1412. style={{ width: 150 }}
  1413. value={searchValues["bigCustomer"]
  1414. ? searchValues["bigCustomer"]
  1415. : undefined}
  1416. onChange={(e) => {
  1417. searchValues["bigCustomer"] = e
  1418. this.setState({
  1419. searchValues: searchValues,
  1420. });
  1421. }}
  1422. >
  1423. <Option value="0">否</Option>
  1424. <Option value="1">是</Option>
  1425. </Select>
  1426. </span>
  1427. <span style={{ display: "inline-block" }}>
  1428. <span style={{ marginRight: "10px" }}>
  1429. 是否科技项目:
  1430. </span>
  1431. <Select
  1432. placeholder={"是否科技项目"}
  1433. style={{ width: 150 }}
  1434. value={searchValues["orderType"]
  1435. ? searchValues["orderType"]
  1436. : undefined}
  1437. onChange={(e) => {
  1438. searchValues["orderType"] = e
  1439. this.setState({
  1440. searchValues: searchValues,
  1441. });
  1442. }}
  1443. >
  1444. <Option value="0">否</Option>
  1445. <Option value="1">是</Option>
  1446. </Select>
  1447. </span>
  1448. <span style={{ display: "inline-block" }}>
  1449. <span style={{ marginRight: "10px" }}>
  1450. 省份选择:
  1451. </span>
  1452. <Select
  1453. placeholder="请选择省份"
  1454. style={{
  1455. width: 150,
  1456. }}
  1457. value={searchValues["province"]
  1458. ? searchValues["province"]
  1459. : undefined}
  1460. onChange={(e) => {
  1461. searchValues["province"] = e
  1462. this.setState({
  1463. searchValues: searchValues,
  1464. });
  1465. }}
  1466. >
  1467. {citySelect().map(function (item) {
  1468. return (
  1469. <Select.Option key={item.value} value={item.value}>
  1470. {item.label}
  1471. </Select.Option>
  1472. );
  1473. })}
  1474. </Select>
  1475. </span>
  1476. <span style={{ display: "inline-block" }}>
  1477. <span style={{ marginRight: "10px" }}>
  1478. 财务负责人:
  1479. </span>
  1480. <StaffSearch
  1481. ref={ref => this.StaffSearch1 = ref}
  1482. valueName={this.state.financeName}
  1483. placeholder="财务负责人"
  1484. width="150px"
  1485. onBlurText={e => {
  1486. this.setState({
  1487. financeName: e.title
  1488. })
  1489. }}
  1490. onBlurChange={(obj) => {
  1491. searchValues["financeId"] = obj.value
  1492. this.setState({
  1493. searchValues: searchValues,
  1494. });
  1495. }}
  1496. />
  1497. </span>
  1498. <span style={{ display: "inline-block" }}>
  1499. <span style={{ marginRight: "10px" }}>
  1500. 营销负责人:
  1501. </span>
  1502. <StaffSearch
  1503. ref={ref => this.StaffSearch2 = ref}
  1504. valueName={this.state.salesmanName}
  1505. placeholder="营销负责人"
  1506. width="150px"
  1507. onBlurText={e => {
  1508. this.setState({
  1509. salesmanName: e.title
  1510. })
  1511. }}
  1512. onBlurChange={(obj) => {
  1513. searchValues["salesmanId"] = obj.value
  1514. this.setState({
  1515. searchValues: searchValues,
  1516. });
  1517. }}
  1518. />
  1519. </span>
  1520. <span style={{ display: "inline-block" }}>
  1521. <span style={{ marginRight: "10px" }}>
  1522. 技术负责人:
  1523. </span>
  1524. <StaffSearch
  1525. ref={ref => this.StaffSearch3 = ref}
  1526. valueName={this.state.techName}
  1527. placeholder="技术负责人"
  1528. width="150px"
  1529. onBlurText={e => {
  1530. this.setState({
  1531. techName: e.title
  1532. })
  1533. }}
  1534. onBlurChange={(obj) => {
  1535. searchValues["techId"] = obj.value
  1536. this.setState({
  1537. searchValues: searchValues,
  1538. });
  1539. }}
  1540. />
  1541. </span>
  1542. </span>
  1543. <Button type="primary" onClick={this.search} style={{ marginRight: 10 }}>
  1544. 搜索
  1545. </Button>
  1546. <Button onClick={this.reset}>重置</Button>
  1547. <span style={{ marginLeft: '10px', marginRight: '20px' }}>
  1548. 更多搜索
  1549. <Switch
  1550. checked={this.state.searchMore}
  1551. onChange={() => {
  1552. this.setState({
  1553. searchMore: !this.state.searchMore
  1554. })
  1555. }}
  1556. />
  1557. </span>
  1558. </div>
  1559. </TabPane>
  1560. <TabPane tab="更改表格显示数据" key="2">
  1561. <div style={{ marginLeft: 10 }}>
  1562. <ChooseList
  1563. columns={this.state.columns}
  1564. changeFn={this.changeList}
  1565. changeList={this.state.changeList}
  1566. top={55}
  1567. margin={11}
  1568. />
  1569. </div>
  1570. </TabPane>
  1571. {adminData.isSuperAdmin ?
  1572. <TabPane tab="导出EXCEL" key="3">
  1573. <Button
  1574. type="primary"
  1575. loading={this.state.exportPendingLoading}
  1576. onClick={this.exportAll}
  1577. style={{ margin: 10 }}
  1578. >
  1579. 导出excel
  1580. </Button>
  1581. </TabPane>
  1582. : ""}
  1583. </Tabs>
  1584. </div>
  1585. <div className="patent-table">
  1586. <Spin spinning={this.state.loading}>
  1587. <Table
  1588. columns={this.state.changeList
  1589. ? this.state.changeList
  1590. : this.state.columns}
  1591. dataSource={this.state.dataSource}
  1592. pagination={this.state.pagination}
  1593. bordered
  1594. // rowClassName={getRowClassName}
  1595. scroll={{ x: 4000 }}
  1596. />
  1597. </Spin>
  1598. </div>
  1599. </div >
  1600. );
  1601. }
  1602. }));
  1603. export default ProjecDataStatistics;