membershipTable.jsx 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446
  1. import React, { Component } from "react";
  2. import {
  3. message,
  4. Input,
  5. Select,
  6. Button,
  7. Spin,
  8. Table,
  9. Tabs,
  10. DatePicker,
  11. AutoComplete,
  12. Modal,
  13. } from "antd";
  14. import $ from "jquery/src/ajax";
  15. import { ShowModal, } from '@/tools'
  16. import { projectState, publishStatus } from '@/dataDic.js'
  17. import moment from 'moment';
  18. import ShowModalDiv from '@/showModal.jsx';
  19. import './membershipTable.less'
  20. import Progress from './progress'
  21. const { TabPane } = Tabs
  22. const { RangePicker, } = DatePicker;
  23. class MembershipTable extends Component {
  24. constructor(props) {
  25. super(props);
  26. this.state = {
  27. visible: false,
  28. tid: '',
  29. searchValues: {
  30. roleStatus: adminData.isSuperAdmin ? '0' : '1'
  31. },
  32. loading: false,
  33. newData: [],
  34. columns: [
  35. {
  36. title: <div className="color0">序号</div>,
  37. dataIndex: 'xh',
  38. key: 'xh',
  39. width: 44,
  40. fixed: 'left',
  41. render: (text, record, index) => {
  42. return (
  43. <span>{index + 1}</span>
  44. )
  45. }
  46. },
  47. {
  48. title: <div className="color1">会员客户基本信息</div>,
  49. children: [
  50. {
  51. title: <div className="color1">派单信息</div>,
  52. children: [
  53. {
  54. title: <div className="color1">客户名称</div>,
  55. dataIndex: 'userName',
  56. key: 'userName',
  57. width: 140,
  58. },
  59. {
  60. title: <div className="color3">合同编号</div>,
  61. dataIndex: 'contractNo',
  62. key: 'contractNo',
  63. width: 110,
  64. },
  65. {
  66. title: <div className="color1">服务内容</div>,
  67. dataIndex: 'taskList',
  68. key: 'taskList',
  69. width: 140,
  70. render: (text, record) => {
  71. return (
  72. <div>
  73. {
  74. !!text && text.map(item =>
  75. <div key={item.id}>{item.taskName}</div>
  76. )
  77. }
  78. </div>
  79. )
  80. }
  81. },
  82. {
  83. title: <div className="color1">服务年份</div>,
  84. dataIndex: 'serviceYear',
  85. key: 'serviceYear',
  86. width: 80,
  87. },
  88. {
  89. title: <div className="color1">会员级别</div>,
  90. dataIndex: 'memberLvl',
  91. key: 'memberLvl',
  92. width: 44,
  93. render: (text, record) => {
  94. return (
  95. <div>{['', 'A', 'AA', 'AAA'][text]}</div>
  96. )
  97. }
  98. },
  99. ],
  100. },
  101. {
  102. title: <div className="color1">服务团队</div>,
  103. children: [
  104. {
  105. title: <div className="color3">业务负责人</div>,
  106. dataIndex: 'taskName',
  107. key: 'taskName',
  108. width: 80,
  109. },
  110. {
  111. title: <div className="color3">项目负责人</div>,
  112. dataIndex: 'projectName',
  113. key: 'projectName',
  114. width: 80,
  115. },
  116. {
  117. title: <div className="color3">技术咨询师</div>,
  118. dataIndex: 'technologyName',
  119. key: 'technologyName',
  120. width: 80,
  121. },
  122. {
  123. title: <div className="color3">财税咨询师</div>,
  124. dataIndex: 'financeTaxationName',
  125. key: 'financeTaxationName',
  126. width: 80,
  127. },
  128. ],
  129. },
  130. {
  131. title: <div className="color3">基础数据</div>,
  132. children: [
  133. {
  134. title: <div className="color1">上上年度</div>,
  135. children: [
  136. {
  137. title: <div className="color1">年份</div>,
  138. dataIndex: 'beforeLastYear',
  139. key: 'beforeLastYear',
  140. width: 44,
  141. },
  142. {
  143. title: <div className="color1">销售收入</div>,
  144. dataIndex: 'beforeLastRdSalesAmount',
  145. key: 'beforeLastRdSalesAmount',
  146. width: 44,
  147. },
  148. {
  149. title: <div className="color1">高新研发费用</div>,
  150. dataIndex: 'beforeLastRdBudget',
  151. key: 'beforeLastRdBudget',
  152. width: 44,
  153. }
  154. ],
  155. },
  156. {
  157. title: <div className="color1">上年度</div>,
  158. children: [
  159. {
  160. title: <div className="color1">年份</div>,
  161. dataIndex: 'lastYear',
  162. key: 'lastYear',
  163. width: 44,
  164. },
  165. {
  166. title: <div className="color1">销售收入</div>,
  167. dataIndex: 'lastRdSalesAmount',
  168. key: 'lastRdSalesAmount',
  169. width: 44,
  170. },
  171. {
  172. title: <div className="color1">高新研发费用</div>,
  173. dataIndex: 'lastRdBudget',
  174. key: 'lastRdBudget',
  175. width: 44,
  176. }
  177. ],
  178. },
  179. {
  180. title: <div className="color1">本年度企业人员情况</div>,
  181. children: [
  182. {
  183. title: <div className="color3">职工总数</div>,
  184. dataIndex: 'workersNumber',
  185. key: 'workersNumber',
  186. width: 44,
  187. },
  188. {
  189. title: <div className="color3">科技人员</div>,
  190. dataIndex: 'technologyNumber',
  191. key: 'technologyNumber',
  192. width: 44,
  193. },
  194. {
  195. title: <div className="color1">占比</div>,
  196. dataIndex: 'workersRate',
  197. key: 'workersRate',
  198. width: 60,
  199. render: (text, record) => {
  200. return (
  201. <span>{text || 0}%</span>
  202. )
  203. }
  204. }
  205. ],
  206. },
  207. ],
  208. }
  209. ],
  210. },
  211. {
  212. title: <div className="color2">&nbsp;</div>,
  213. children: [
  214. {
  215. title: <div className="color2">&nbsp;</div>,
  216. children: [
  217. {
  218. title: <div className="color2">科研立项与研发投入</div>,
  219. children: [
  220. {
  221. title: <div className="color3">研发立项数量</div>,
  222. dataIndex: 'projectApprovalNumber',
  223. key: 'projectApprovalNumber',
  224. width: 44,
  225. },
  226. {
  227. title: <div className="color3">年度研发预算总额</div>,
  228. dataIndex: 'rdBudget',
  229. key: 'rdBudget',
  230. width: 44,
  231. },
  232. {
  233. title: <div className="color3">年度销售收入预计</div>,
  234. dataIndex: 'rdSalesAmount',
  235. key: 'rdSalesAmount',
  236. width: 44,
  237. },
  238. {
  239. title: <div className="color3">本年度研发费用预算占比</div>,
  240. dataIndex: 'rdBudgetRate',
  241. key: 'rdBudgetRate',
  242. width: 60,
  243. render: (text, record) => {
  244. return (
  245. <span>{text || 0}%</span>
  246. )
  247. }
  248. },
  249. {
  250. title: <div className="color3">三年研发费用占比预估</div>,
  251. dataIndex: 'threeYearsRdBudgetRate',
  252. key: 'threeYearsRdBudgetRate',
  253. width: 60,
  254. render: (text, record) => {
  255. return (
  256. <span>{text || 0}%</span>
  257. )
  258. }
  259. },
  260. ]
  261. },
  262. {
  263. title: <div className="color2">实时实际情况</div>,
  264. children: [
  265. {
  266. title: <div className="color3">数据周期</div>,
  267. dataIndex: 'dataCycle',
  268. key: 'dataCycle',
  269. width: 70,
  270. render: (text, record) => {
  271. return (
  272. <span>{['第1季度', '上半年', '前3季度', '全年'][text]}</span>
  273. )
  274. }
  275. },
  276. {
  277. title: <div className="color3">已立项RD数量</div>,
  278. dataIndex: 'actualRdNumber',
  279. key: 'actualRdNumber',
  280. width: 44,
  281. },
  282. {
  283. title: <div className="color3">委外项目数量</div>,
  284. dataIndex: 'actualOutsourcingNumber',
  285. key: 'actualOutsourcingNumber',
  286. width: 44,
  287. },
  288. {
  289. title: <div className="color3">合作项目数量</div>,
  290. dataIndex: 'actualCooperateNumber',
  291. key: 'actualCooperateNumber',
  292. width: 44,
  293. },
  294. {
  295. title: <div className="color3">已归集研发费用总额</div>,
  296. dataIndex: 'actualRdAmount',
  297. key: 'actualRdAmount',
  298. width: 44,
  299. },
  300. {
  301. title: <div className="color3">研发预算完成度</div>,
  302. dataIndex: 'rdCompletionProgress',
  303. key: 'rdCompletionProgress',
  304. width: 44,
  305. },
  306. {
  307. title: <div className="color3">年度实际销售收入</div>,
  308. dataIndex: 'actualSalesAmount',
  309. key: 'actualSalesAmount',
  310. width: 44,
  311. },
  312. {
  313. title: <div className="color3">本年度研发费用占比</div>,
  314. dataIndex: 'actualRdRate',
  315. key: 'actualRdRate',
  316. width: 60,
  317. render: (text, record) => {
  318. return (
  319. <span>{text || 0}%</span>
  320. )
  321. }
  322. },
  323. {
  324. title: <div className="color3">三年研发费用占比</div>,
  325. dataIndex: 'threeYearsActualRdRate',
  326. key: 'threeYearsActualRdRate',
  327. width: 60,
  328. render: (text, record) => {
  329. return (
  330. <span>{text || 0}%</span>
  331. )
  332. }
  333. },
  334. ]
  335. },
  336. ]
  337. },
  338. {
  339. title: <div className="color2">报表报送</div>,
  340. children: [
  341. {
  342. title: <div className="color2">火炬统计</div>,
  343. dataIndex: 'torchStatus',
  344. key: 'torchStatus',
  345. width: 60,
  346. render: (text, record) => {
  347. return (
  348. <span>{this.getTypeData(text, record.torchOther)}</span>
  349. )
  350. }
  351. },
  352. {
  353. title: <div className="color2">统计年报</div>,
  354. dataIndex: 'statisticsStatus',
  355. key: 'statisticsStatus',
  356. width: 60,
  357. render: (text, record) => {
  358. return (
  359. <span>{this.getTypeData(text, record.statisticsOther)}</span>
  360. )
  361. }
  362. },
  363. {
  364. title: <div className="color2">高企年报</div>,
  365. dataIndex: 'chStatus',
  366. key: 'chStatus',
  367. width: 60,
  368. render: (text, record) => {
  369. return (
  370. <span>{this.getTypeData(text, record.chOther)}</span>
  371. )
  372. }
  373. },
  374. {
  375. title: <div className="color2">汇算清缴</div>,
  376. children: [
  377. {
  378. title: <div className="color2">是否完成</div>,
  379. dataIndex: 'finalSettlementStatus',
  380. key: 'finalSettlementStatus',
  381. width: 60,
  382. render: (text, record) => {
  383. return (
  384. <span>{this.getTypeData(text, record.finalSettlementOther)}</span>
  385. )
  386. }
  387. },
  388. {
  389. title: <div className="color3">加扣RD数量</div>,
  390. dataIndex: 'reportFormsRdNumber',
  391. key: 'reportFormsRdNumber',
  392. width: 44,
  393. },
  394. {
  395. title: <div className="color3">知识产权加扣费用</div>,
  396. dataIndex: 'intellectualPropertyAmount',
  397. key: 'intellectualPropertyAmount',
  398. width: 44,
  399. },
  400. {
  401. title: <div className="color3">加扣研发费用金额</div>,
  402. dataIndex: 'reportRdAmount',
  403. key: 'reportRdAmount',
  404. width: 44,
  405. },
  406. ]
  407. },
  408. ]
  409. },
  410. {
  411. title: <div className="color2">研发奖补</div>,
  412. children: [
  413. {
  414. title: <div className="color2">研发准备金备案</div>,
  415. dataIndex: 'rdReservesStatus',
  416. key: 'rdReservesStatus',
  417. width: 60,
  418. render: (text, record) => {
  419. return (
  420. <span>{this.getTypeData(text, record.rdReservesOther)}</span>
  421. )
  422. }
  423. },
  424. {
  425. title: <div className="color2">研发奖补申请</div>,
  426. children: [
  427. {
  428. title: <div className="color2">是否完成</div>,
  429. dataIndex: 'rdAwardCompensationStatus',
  430. key: 'rdAwardCompensationStatus',
  431. width: 60,
  432. render: (text, record) => {
  433. return (
  434. <span>{this.getTypeData(text, record.rdAwardCompensationOther)}</span>
  435. )
  436. }
  437. },
  438. {
  439. title: <div className="color3">申请金额</div>,
  440. dataIndex: 'rdApplicationFee',
  441. key: 'rdApplicationFee',
  442. width: 44,
  443. },
  444. {
  445. title: <div className="color3">公示金额</div>,
  446. dataIndex: 'rdAnnouncementAmount',
  447. key: 'rdAnnouncementAmount',
  448. width: 44,
  449. },
  450. {
  451. title: <div className="color3">其他</div>,
  452. dataIndex: 'rdAnnouncementOther',
  453. key: 'rdAnnouncementOther',
  454. width: 44,
  455. },
  456. ]
  457. },
  458. ]
  459. },
  460. {
  461. title: <div className="color3">备查交付与归档</div>,
  462. children: [
  463. {
  464. title: <div className="color2">加扣备查交付</div>,
  465. dataIndex: 'adDeliverStatus',
  466. key: 'adDeliverStatus',
  467. width: 60,
  468. render: (text, record) => {
  469. return (
  470. <span>{this.getTypeData(text, record.adDeliverOther)}</span>
  471. )
  472. }
  473. },
  474. {
  475. title: <div className="color2">加扣是否归档</div>,
  476. dataIndex: 'adDeliverFinish',
  477. key: 'adDeliverFinish',
  478. width: 60,
  479. render: (text, record) => {
  480. return (
  481. <span>{['未归档', '已归档'][text]}</span>
  482. )
  483. }
  484. },
  485. {
  486. title: <div className="color2">高新备查交付</div>,
  487. dataIndex: 'htDeliverStatus',
  488. key: 'htDeliverStatus',
  489. width: 60,
  490. render: (text, record) => {
  491. return (
  492. <span>{this.getTypeData(text, record.htDeliverOther)}</span>
  493. )
  494. }
  495. },
  496. {
  497. title: <div className="color2">高新是否归档</div>,
  498. dataIndex: 'htDeliverFinish',
  499. key: 'htDeliverFinish',
  500. width: 60,
  501. render: (text, record) => {
  502. return (
  503. <span>{['未归档', '已归档'][text]}</span>
  504. )
  505. }
  506. },
  507. ]
  508. },
  509. {
  510. title: <div className="color2">日常工作</div>,
  511. children: [
  512. {
  513. title: <div className="color3">召开上年度总结及本年工作计划会议</div>,
  514. dataIndex: 'closeMeetingStatus',
  515. key: 'closeMeetingStatus',
  516. width: 60,
  517. render: (text, record) => {
  518. return (
  519. <span>{this.getTypeData(text, record.closeMeetingOther)}</span>
  520. )
  521. }
  522. },
  523. {
  524. title: <div className="color3">阶段性汇报</div>,
  525. dataIndex: 'phasedType',
  526. key: 'phasedType',
  527. width: 44,
  528. render: (text, record) => {
  529. return (
  530. <span>{['', '月度', '季度'][text]}</span>
  531. )
  532. }
  533. },
  534. {
  535. title: <div className="color2">立项资料编制</div>,
  536. children: [
  537. {
  538. title: <div className="color2">完成数量</div>,
  539. dataIndex: 'projectApprovalWriteNumber',
  540. key: 'projectApprovalWriteNumber',
  541. width: 44,
  542. },
  543. {
  544. title: <div className="color2">完成率</div>,
  545. dataIndex: 'projectApprovalWriteRate',
  546. key: 'projectApprovalWriteRate',
  547. width: 60,
  548. render: (text, record) => {
  549. return (
  550. <span>{text || 0}%</span>
  551. )
  552. }
  553. },
  554. ]
  555. },
  556. {
  557. title: <div className="color2">加扣预申报</div>,
  558. children: [
  559. {
  560. title: <div className="color2">7月</div>,
  561. dataIndex: 'adPrepareJulyStatus',
  562. key: 'adPrepareJulyStatus',
  563. width: 60,
  564. render: (text, record) => {
  565. return (
  566. <span>{this.getTypeData(text, record.adPrepareJulyOther)}</span>
  567. )
  568. }
  569. },
  570. {
  571. title: <div className="color2">10月</div>,
  572. dataIndex: 'adPrepareOctoberStatus',
  573. key: 'adPrepareOctoberStatus',
  574. width: 60,
  575. render: (text, record) => {
  576. return (
  577. <span>{this.getTypeData(text, record.adPrepareOctoberOther)}</span>
  578. )
  579. }
  580. },
  581. ]
  582. },
  583. {
  584. title: <div className="color2">知识产权情况</div>,
  585. children: [
  586. {
  587. title: <div className="color3">发明专利</div>,
  588. children: [
  589. {
  590. title: <div className="color3">当年申报数量</div>,
  591. dataIndex: 'ipInventionPatentDeclare',
  592. key: 'ipInventionPatentDeclare',
  593. width: 80,
  594. },
  595. {
  596. title: <div className="color3">当年授权数量</div>,
  597. dataIndex: 'ipInventionPatentAuthorize',
  598. key: 'ipInventionPatentAuthorize',
  599. width: 80,
  600. },
  601. {
  602. title: <div className="color3">企业累计授权数量</div>,
  603. dataIndex: 'ipInventionPatentAuthorizeCount',
  604. key: 'ipInventionPatentAuthorizeCount',
  605. width: 80,
  606. },
  607. ]
  608. },
  609. {
  610. title: <div className="color3">实用新型专利</div>,
  611. children: [
  612. {
  613. title: <div className="color3">当年申报数量</div>,
  614. dataIndex: 'ipUtilityModelDeclare',
  615. key: 'ipUtilityModelDeclare',
  616. width: 80,
  617. },
  618. {
  619. title: <div className="color3">当年授权数量</div>,
  620. dataIndex: 'ipUtilityModelAuthorize',
  621. key: 'ipUtilityModelAuthorize',
  622. width: 80,
  623. },
  624. {
  625. title: <div className="color3">企业累计授权数量</div>,
  626. dataIndex: 'ipUtilityModelAuthorizeCount',
  627. key: 'ipUtilityModelAuthorizeCount',
  628. width: 80,
  629. },
  630. ]
  631. },
  632. {
  633. title: <div className="color3">软著</div>,
  634. children: [
  635. {
  636. title: <div className="color3">当年申报数量</div>,
  637. dataIndex: 'ipSoftwareWorksDeclare',
  638. key: 'ipSoftwareWorksDeclare',
  639. width: 80,
  640. },
  641. {
  642. title: <div className="color3">当年授权数量</div>,
  643. dataIndex: 'ipSoftwareWorksAuthorize',
  644. key: 'ipSoftwareWorksAuthorize',
  645. width: 80,
  646. },
  647. {
  648. title: <div className="color3">企业累计授权数量</div>,
  649. dataIndex: 'ipSoftwareWorksAuthorizeCount',
  650. key: 'ipSoftwareWorksAuthorizeCount',
  651. width: 80,
  652. },
  653. {
  654. title: <div className="color3">本年可用高新数</div>,
  655. dataIndex: 'ipHt',
  656. key: 'ipHt',
  657. width: 80,
  658. },
  659. {
  660. title: <div className="color3">I类数量</div>,
  661. dataIndex: 'ipHtI',
  662. key: 'ipHtI',
  663. width: 44,
  664. },
  665. {
  666. title: <div className="color3">II类数量</div>,
  667. dataIndex: 'ipHtIi',
  668. key: 'ipHtIi',
  669. width: 44,
  670. },
  671. ]
  672. },
  673. ]
  674. },
  675. {
  676. title: <div className="color2">公出指标(本年度)</div>,
  677. children: [
  678. {
  679. title: <div className="color2">合同约定次数</div>,
  680. dataIndex: 'publicReleaseStipulation',
  681. key: 'publicReleaseStipulation',
  682. width: 44,
  683. },
  684. {
  685. title: <div className="color2">实际次数</div>,
  686. dataIndex: 'publicReleaseActual',
  687. key: 'publicReleaseActual',
  688. width: 44,
  689. },
  690. ]
  691. },
  692. {
  693. title: <div className="color2">培训指标(本年度)</div>,
  694. children: [
  695. {
  696. title: <div className="color2">合同约定次数</div>,
  697. dataIndex: 'trainingStipulation',
  698. key: 'trainingStipulation',
  699. width: 44,
  700. },
  701. {
  702. title: <div className="color2">实际次数</div>,
  703. dataIndex: 'trainingActual',
  704. key: 'trainingActual',
  705. width: 44,
  706. },
  707. {
  708. title: <div className="color2">其他</div>,
  709. dataIndex: 'trainingOther',
  710. key: 'trainingOther',
  711. width: 44,
  712. },
  713. ]
  714. },
  715. ]
  716. },
  717. {
  718. title: <div className="color2">特色工作</div>,
  719. children: [
  720. {
  721. title: <div className="color2">检查</div>,
  722. children: [
  723. {
  724. title: <div className="color2">高新技术税收优惠政策检查</div>,
  725. dataIndex: 'featureHt',
  726. key: 'featureHt',
  727. width: 80,
  728. },
  729. {
  730. title: <div className="color2">加计扣除税收优惠政策检查</div>,
  731. dataIndex: 'featureAd',
  732. key: 'featureAd',
  733. width: 80,
  734. },
  735. {
  736. title: <div className="color2">税务常规检查</div>,
  737. dataIndex: 'featureTr',
  738. key: 'featureTr',
  739. width: 80,
  740. },
  741. {
  742. title: <div className="color2">税务对研发费用检查</div>,
  743. dataIndex: 'featureTe',
  744. key: 'featureTe',
  745. width: 80,
  746. },
  747. {
  748. title: <div className="color2">税务稽查</div>,
  749. dataIndex: 'featureTi',
  750. key: 'featureTi',
  751. width: 80,
  752. }
  753. ]
  754. },
  755. {
  756. title: <div className="color2">其他</div>,
  757. children: [
  758. {
  759. title: <div className="color2">其他</div>,
  760. dataIndex: 'featureOther',
  761. key: 'featureOther',
  762. width: 44,
  763. }
  764. ]
  765. },
  766. ]
  767. },
  768. {
  769. title: <div className="color2">其他事项说明</div>,
  770. dataIndex: 'other',
  771. key: 'other',
  772. width: 90,
  773. },
  774. ]
  775. },
  776. {
  777. title: <div className="color5">高新认定</div>,
  778. dataIndex: 'gxrd',
  779. key: 'gxrd',
  780. children: [
  781. {
  782. title: <div className="color3">基础情况</div>,
  783. children: [
  784. {
  785. title: <div className="color3">创新能力评价评分</div>,
  786. dataIndex: 'htScore',
  787. key: 'htScore',
  788. width: 44,
  789. },
  790. {
  791. title: <div className="color3">实际申报批次</div>,
  792. dataIndex: 'htBatch',
  793. key: 'htBatch',
  794. width: 60,
  795. render: (text, record) => {
  796. return (
  797. <span>{['第1批', '第2批', '第3批'][text]}</span>
  798. )
  799. }
  800. },
  801. {
  802. title: <div className="color3">是否重点关注</div>,
  803. dataIndex: 'htFocus',
  804. key: 'htFocus',
  805. width: 44,
  806. render: (text, record) => {
  807. return (
  808. <span>{['否', '是'][text]}</span>
  809. )
  810. }
  811. },
  812. ],
  813. },
  814. {
  815. title: <div className="color3">申报提交</div>,
  816. children: [
  817. {
  818. title: <div className="color3">网上系统提交</div>,
  819. dataIndex: 'webSubmit',
  820. key: 'webSubmit',
  821. width: 60,
  822. render: (text, record) => {
  823. return (
  824. <span>{this.getTypeData(text, record.webSubmitOther)}</span>
  825. )
  826. }
  827. },
  828. {
  829. title: <div className="color3">纸质材料提交</div>,
  830. dataIndex: 'paperSubmit',
  831. key: 'paperSubmit',
  832. width: 60,
  833. render: (text, record) => {
  834. return (
  835. <span>{this.getTypeData(text, record.paperSubmitOther)}</span>
  836. )
  837. }
  838. },
  839. ],
  840. },
  841. {
  842. title: <div className="color3">评审情况</div>,
  843. children: [
  844. {
  845. title: <div className="color3">审计评审</div>,
  846. // reviewProvince
  847. children: [{
  848. title: <div className="color3">拟公示序号</div>,
  849. dataIndex: 'reviewProvinceNumber',
  850. key: 'reviewProvinceNumber',
  851. width: 44,
  852. }],
  853. },
  854. {
  855. title: <div className="color3">国家备案</div>,
  856. // reviewCountry
  857. children: [{
  858. title: <div className="color3">高企编号</div>,
  859. dataIndex: 'reviewCountryNumber',
  860. key: 'reviewCountryNumber',
  861. width: 44,
  862. }],
  863. },
  864. ],
  865. },
  866. ]
  867. },
  868. {
  869. title: <div className="color4">最近一次更新时间</div>,
  870. dataIndex: 'updateTime',
  871. key: 'updateTime',
  872. width: 80,
  873. },
  874. ],
  875. pagination: {
  876. defaultCurrent: 1,
  877. defaultPageSize: 10,
  878. showQuickJumper: true,
  879. pageSize: 10,
  880. onChange: function (page) {
  881. this.getDetailsList(page);
  882. }.bind(this),
  883. showTotal: function (total) {
  884. return "共" + total + "条数据";
  885. },
  886. },
  887. customerArr: [],
  888. }
  889. this.exportExec = this.exportExec.bind(this);
  890. this.search = this.search.bind(this);
  891. this.reset = this.reset.bind(this);
  892. this.supervisor = this.supervisor.bind(this);
  893. this.httpChange = this.httpChange.bind(this);
  894. this.blurChange = this.blurChange.bind(this);
  895. this.selectAuto = this.selectAuto.bind(this);
  896. }
  897. componentDidMount() {
  898. this.getDetailsList()
  899. }
  900. getDetailsList(pageNo) {
  901. const { searchValues, pagination } = this.state;
  902. this.setState({
  903. loading: true,
  904. })
  905. let datas = Object.assign(searchValues, {
  906. pageNo: pageNo || 1,
  907. pageSize: pagination.pageSize,
  908. });
  909. $.ajax({
  910. method: 'get',
  911. dataType: 'json',
  912. crossDomain: false,
  913. url: globalConfig.context + '/api/admin/taskDetails/detailsList',
  914. data: datas,
  915. success: function (data) {
  916. ShowModal(this)
  917. if (data.data.list) {
  918. pagination.current = data.data.pageNo;
  919. pagination.total = data.data.totalCount;
  920. if (data.data && data.data.list && !data.data.list.length) {
  921. pagination.current = 0;
  922. pagination.total = 0;
  923. }
  924. this.setState({
  925. newData: data.data.list,
  926. pagination: this.state.pagination,
  927. pageNo: data.data.pageNo,
  928. });
  929. } else {
  930. this.setState({
  931. newData: data.data,
  932. pagination: false,
  933. });
  934. }
  935. }.bind(this),
  936. }).always(
  937. function () {
  938. this.setState({
  939. loading: false,
  940. })
  941. }.bind(this)
  942. )
  943. }
  944. exportExec() {
  945. message.config({
  946. duration: 20,
  947. });
  948. let loading = message.loading("下载中...");
  949. this.setState({
  950. exportPendingLoading: true,
  951. });
  952. $.ajax({
  953. method: "get",
  954. dataType: "json",
  955. crossDomain: false,
  956. url: globalConfig.context + '/api/admin/taskDetails/export',
  957. data: this.state.searchValues,
  958. success: function (data) {
  959. if (data.error.length === 0) {
  960. this.download(data.data);
  961. } else {
  962. message.warning(data.error[0].message);
  963. }
  964. }.bind(this),
  965. }).always(
  966. function () {
  967. loading();
  968. this.setState({
  969. exportPendingLoading: false,
  970. });
  971. }.bind(this)
  972. );
  973. }
  974. download(fileName) {
  975. window.location.href =
  976. globalConfig.context + "/open/download?fileName=" + fileName;
  977. }
  978. getTypeData(type, other) {
  979. let text = ''
  980. let list = ['其他', '待完成', '已完成', '合同无此项']
  981. if (!type && type != 0) {
  982. text = ''
  983. } else if (type == 0) {
  984. text = `其他(${other})`
  985. } else {
  986. text = list[type]
  987. }
  988. return text
  989. }
  990. supervisor(e) {
  991. $.ajax({
  992. method: "get",
  993. dataType: "json",
  994. crossDomain: false,
  995. url: globalConfig.context + "/api/admin/customer/listAdminByName",
  996. data: {
  997. adminName: e,
  998. },
  999. success: function (data) {
  1000. let thedata = data.data;
  1001. if (!thedata) {
  1002. if (data.error && data.error.length) {
  1003. message.warning(data.error[0].message);
  1004. }
  1005. thedata = {};
  1006. }
  1007. this.setState({
  1008. customerArr: thedata,
  1009. });
  1010. }.bind(this),
  1011. }).always(
  1012. function () {
  1013. }.bind(this)
  1014. );
  1015. }
  1016. // 输入触发
  1017. httpChange(e) {
  1018. if (e.length >= 1) {
  1019. this.supervisor(e);
  1020. }
  1021. this.setState({
  1022. auto: e,
  1023. });
  1024. }
  1025. // 选中
  1026. selectAuto(value, options) {
  1027. const { searchValues } = this.state
  1028. let contactLists = this.state.customerArr || [];
  1029. if (value) {
  1030. contactLists.map(function (item) {
  1031. if (item.name == value.toString()) {
  1032. searchValues["projectDebtorId"] = item.id;
  1033. }
  1034. });
  1035. }
  1036. this.setState({
  1037. auto: value,
  1038. searchValues: searchValues,
  1039. });
  1040. }
  1041. // 失去焦点
  1042. blurChange(e) {
  1043. const { searchValues } = this.state
  1044. let contactLists = this.state.customerArr || [];
  1045. if (e) {
  1046. contactLists.map(function (item) {
  1047. if (item.name == e.toString()) {
  1048. searchValues["projectDebtorId"] = item.id;
  1049. }
  1050. });
  1051. }
  1052. this.setState({
  1053. searchValues: searchValues,
  1054. });
  1055. }
  1056. search() {
  1057. this.getDetailsList();
  1058. }
  1059. reset() {
  1060. this.setState({
  1061. auto: undefined,
  1062. searchValues: {
  1063. roleStatus: adminData.isSuperAdmin ? '0' : '1'
  1064. }
  1065. }, () => {
  1066. this.getDetailsList(1)
  1067. })
  1068. }
  1069. render() {
  1070. const { columns, searchValues, newData } = this.state
  1071. const dataSources = this.state.customerArr || [];
  1072. const options = dataSources.map((group) => (
  1073. <Select.Option key={group.id} value={group.name}>
  1074. {group.name}
  1075. </Select.Option>
  1076. ));
  1077. const roleList = adminData.isSuperAdmin
  1078. ? [
  1079. { value: '0', lable: '查询所有' },
  1080. { value: '1', lable: '查询自己' },
  1081. { value: '2', lable: '查看下级' },
  1082. { value: '3', lable: '负责人查询' },
  1083. ]
  1084. : [
  1085. { value: '1', lable: '查询自己' },
  1086. { value: '2', lable: '查看下级' },
  1087. { value: '3', lable: '负责人查询' },
  1088. ]
  1089. return (
  1090. <div className="user-content membershipTable">
  1091. <ShowModalDiv ShowModal={this.state.showModal} onClose={() => { this.setState({ showModal: false }) }} />
  1092. <div className="content-title" style={{ marginBottom: 10 }}>
  1093. <span style={{ fontWeight: 900, fontSize: 16 }}>会员可视化进度表</span>
  1094. </div>
  1095. <Tabs defaultActiveKey="1" className="test" bordered>
  1096. <TabPane tab="搜索" key="1">
  1097. <div className="user-search" style={{ marginLeft: 10 }}>
  1098. <Input
  1099. placeholder="咨询师姓名"
  1100. style={{ width: 160 }}
  1101. value={searchValues["consultantName"]
  1102. ? searchValues["consultantName"]
  1103. : ""}
  1104. onChange={(e) => {
  1105. searchValues["consultantName"] = e.target.value;
  1106. this.setState({
  1107. searchValues: searchValues,
  1108. });
  1109. }}
  1110. />
  1111. <Input
  1112. placeholder="合同编号"
  1113. style={{ width: 160 }}
  1114. value={searchValues["contractNo"]
  1115. ? searchValues["contractNo"]
  1116. : ""}
  1117. onChange={(e) => {
  1118. searchValues["contractNo"] = e.target.value;
  1119. this.setState({
  1120. searchValues: searchValues,
  1121. });
  1122. }}
  1123. />
  1124. <Input
  1125. placeholder="客户名称"
  1126. style={{ width: 160 }}
  1127. value={searchValues["userName"]
  1128. ? searchValues["userName"]
  1129. : ""}
  1130. onChange={(e) => {
  1131. searchValues["userName"] = e.target.value;
  1132. this.setState({
  1133. searchValues: searchValues,
  1134. });
  1135. }}
  1136. />
  1137. <Input
  1138. placeholder="服务年份"
  1139. style={{ width: 100 }}
  1140. value={searchValues["serviceYear"]
  1141. ? searchValues["serviceYear"]
  1142. : ""}
  1143. onChange={(e) => {
  1144. searchValues["serviceYear"] = e.target.value;
  1145. this.setState({
  1146. searchValues: searchValues,
  1147. });
  1148. }}
  1149. />
  1150. <AutoComplete
  1151. className="certain-category-search"
  1152. dropdownClassName="certain-category-search-dropdown"
  1153. dropdownMatchSelectWidth={false}
  1154. style={{ width: 150 }}
  1155. dataSource={options}
  1156. placeholder='请输入项目负责人'
  1157. value={this.state.auto}
  1158. onChange={this.httpChange}
  1159. filterOption={true}
  1160. onBlur={this.blurChange}
  1161. onSelect={this.selectAuto}
  1162. >
  1163. <Input />
  1164. </AutoComplete>
  1165. {/* <Select
  1166. placeholder="项目状态"
  1167. style={{ width: 160 }}
  1168. value={searchValues["projectStatus"]
  1169. ? searchValues["projectStatus"]
  1170. : undefined}
  1171. onChange={(e) => {
  1172. searchValues["projectStatus"] = e;
  1173. this.setState({
  1174. searchValues: searchValues,
  1175. });
  1176. }}
  1177. >
  1178. {
  1179. projectState.map(item =>
  1180. <Option value={item.value} key={item.key}>{item.key}</Option>
  1181. )
  1182. }
  1183. </Select> */}
  1184. <Select
  1185. placeholder="外包状态"
  1186. style={{ width: 160 }}
  1187. value={searchValues["outSourcingStatus"]
  1188. ? searchValues["outSourcingStatus"]
  1189. : undefined}
  1190. onChange={(e) => {
  1191. searchValues["outSourcingStatus"] = e;
  1192. this.setState({
  1193. searchValues: searchValues,
  1194. });
  1195. }}
  1196. >
  1197. <Option value="0" >外包待审核</Option>
  1198. {/* <Option value="1" >外包审核通过</Option> */}
  1199. <Option value="2" >外包审核驳回</Option>
  1200. </Select>
  1201. <span>更新时间:</span>
  1202. <RangePicker
  1203. value={[
  1204. searchValues["updateStartTime"]
  1205. ? moment(searchValues["updateStartTime"])
  1206. : null,
  1207. searchValues["updateEndTime"]
  1208. ? moment(searchValues["updateEndTime"])
  1209. : null,
  1210. ]}
  1211. onChange={(data, dataString) => {
  1212. searchValues["updateStartTime"] = String(
  1213. dataString[0]
  1214. );
  1215. searchValues["updateEndTime"] = String(
  1216. dataString[1]
  1217. );
  1218. this.setState({
  1219. searchValues: searchValues,
  1220. });
  1221. }}
  1222. />
  1223. <Select
  1224. placeholder="会员级别"
  1225. style={{ width: 100, marginLeft: 10 }}
  1226. value={searchValues["applicationLevel"]
  1227. ? searchValues["applicationLevel"]
  1228. : undefined}
  1229. onChange={(e) => {
  1230. searchValues["applicationLevel"] = e;
  1231. this.setState({
  1232. searchValues: searchValues,
  1233. });
  1234. }}
  1235. >
  1236. <Option value={1} >A</Option>
  1237. <Option value={2} >AA</Option>
  1238. <Option value={3} >AAA</Option>
  1239. </Select>
  1240. <Select
  1241. placeholder="高新公示"
  1242. style={{ width: 100 }}
  1243. value={searchValues["reviewProvince"]
  1244. ? searchValues["reviewProvince"]
  1245. : undefined}
  1246. onChange={(e) => {
  1247. searchValues["reviewProvince"] = e;
  1248. this.setState({
  1249. searchValues: searchValues,
  1250. });
  1251. }}
  1252. >
  1253. <Option value='0'>未公示</Option>
  1254. <Option value='1'>已公示</Option>
  1255. </Select>
  1256. <Select
  1257. placeholder="汇算清缴"
  1258. style={{ width: 100 }}
  1259. value={searchValues["finalSettlementStatus"]
  1260. ? searchValues["finalSettlementStatus"]
  1261. : undefined}
  1262. onChange={(e) => {
  1263. searchValues["finalSettlementStatus"] = e;
  1264. this.setState({
  1265. searchValues: searchValues,
  1266. });
  1267. }}
  1268. >
  1269. <Option value="0" >其他</Option>
  1270. <Option value="1" >待完成</Option>
  1271. <Option value="2" >已完成</Option>
  1272. <Option value="3" >合同无此项</Option>
  1273. </Select>
  1274. <Select
  1275. placeholder="加计扣除"
  1276. style={{ width: 100 }}
  1277. value={searchValues["adDeliverStatus"]
  1278. ? searchValues["adDeliverStatus"]
  1279. : undefined}
  1280. onChange={(e) => {
  1281. searchValues["adDeliverStatus"] = e;
  1282. this.setState({
  1283. searchValues: searchValues,
  1284. });
  1285. }}
  1286. >
  1287. <Option value="0" >其他</Option>
  1288. <Option value="1" >待完成</Option>
  1289. <Option value="2" >已完成</Option>
  1290. <Option value="3" >合同无此项</Option>
  1291. </Select>
  1292. <Select
  1293. placeholder="火炬统计"
  1294. style={{ width: 100 }}
  1295. value={searchValues["torchStatus"]
  1296. ? searchValues["torchStatus"]
  1297. : undefined}
  1298. onChange={(e) => {
  1299. searchValues["torchStatus"] = e;
  1300. this.setState({
  1301. searchValues: searchValues,
  1302. });
  1303. }}
  1304. >
  1305. <Option value="0" >其他</Option>
  1306. <Option value="1" >待完成</Option>
  1307. <Option value="2" >已完成</Option>
  1308. <Option value="3" >合同无此项</Option>
  1309. </Select>
  1310. <Select
  1311. placeholder="统计年报"
  1312. style={{ width: 100 }}
  1313. value={searchValues["statisticsStatus"]
  1314. ? searchValues["statisticsStatus"]
  1315. : undefined}
  1316. onChange={(e) => {
  1317. searchValues["statisticsStatus"] = e;
  1318. this.setState({
  1319. searchValues: searchValues,
  1320. });
  1321. }}
  1322. >
  1323. <Option value="0" >其他</Option>
  1324. <Option value="1" >待完成</Option>
  1325. <Option value="2" >已完成</Option>
  1326. <Option value="3" >合同无此项</Option>
  1327. </Select>
  1328. <Select
  1329. placeholder="高企年报"
  1330. style={{ width: 100 }}
  1331. value={searchValues["chStatus"]
  1332. ? searchValues["chStatus"]
  1333. : undefined}
  1334. onChange={(e) => {
  1335. searchValues["chStatus"] = e;
  1336. this.setState({
  1337. searchValues: searchValues,
  1338. });
  1339. }}
  1340. >
  1341. <Option value="0" >其他</Option>
  1342. <Option value="1" >待完成</Option>
  1343. <Option value="2" >已完成</Option>
  1344. <Option value="3" >合同无此项</Option>
  1345. </Select>
  1346. <Select
  1347. placeholder="查看"
  1348. style={{ width: 100 }}
  1349. value={searchValues["roleStatus"]
  1350. ? searchValues["roleStatus"]
  1351. : undefined}
  1352. onChange={(e) => {
  1353. searchValues["roleStatus"] = e;
  1354. this.setState({
  1355. searchValues: searchValues,
  1356. });
  1357. }}
  1358. >
  1359. {
  1360. roleList.map((item =>
  1361. <Option value={item.value} key={item.value} >{item.lable}</Option>
  1362. ))
  1363. }
  1364. {/* {adminData.isSuperAdmin ? <Option value="0" >查询所有</Option> : null}
  1365. <Option value="1" >查询自己</Option>
  1366. <Option value="2" >查看下级</Option>
  1367. <Option value="3" >负责人查询</Option> */}
  1368. </Select>
  1369. <Button type="primary" style={{ marginLeft: 10 }} onClick={this.search}>
  1370. 搜索
  1371. </Button>
  1372. <Button style={{ marginLeft: 10 }} onClick={this.reset}>
  1373. 重置
  1374. </Button>
  1375. </div>
  1376. </TabPane>
  1377. <TabPane tab="导出" key="2">
  1378. <Button
  1379. type="primary"
  1380. style={{ margin: '11px 0 10px 10px' }}
  1381. onClick={this.exportExec}
  1382. >
  1383. 导出
  1384. </Button>
  1385. </TabPane>
  1386. </Tabs>
  1387. <div className="patent-table">
  1388. <Spin spinning={this.state.loading}>
  1389. <Table
  1390. columns={columns}
  1391. dataSource={newData}
  1392. bordered
  1393. size="middle"
  1394. scroll={{ x: '220%' }}
  1395. pagination={this.state.pagination}
  1396. onRowDoubleClick={e => {
  1397. this.setState({
  1398. visible: true,
  1399. tid: e.tid
  1400. })
  1401. }}
  1402. />
  1403. </Spin>
  1404. </div>
  1405. {
  1406. this.state.visible &&
  1407. <Modal
  1408. title="会员进度表"
  1409. visible={this.state.visible}
  1410. onCancel={() => {
  1411. this.setState({
  1412. visible: false,
  1413. tid: '',
  1414. })
  1415. this.getDetailsList(this.state.pageNo)
  1416. }}
  1417. width={1200}
  1418. footer={null}
  1419. >
  1420. <Progress tid={this.state.tid} />
  1421. </Modal>
  1422. }
  1423. </div >
  1424. );
  1425. }
  1426. }
  1427. export default MembershipTable;