projecCountConfig.jsx 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. import React from 'react';
  2. //高新
  3. const highTechColumns =(fn)=> [
  4. {
  5. title: "序号",
  6. dataIndex: "key",
  7. key: "key",
  8. },
  9. {
  10. title: "派单省份",
  11. dataIndex: "provinceName",
  12. key: "provinceName",
  13. },
  14. {
  15. title: "负责部门",
  16. dataIndex: "thchDepName",
  17. key: "thchDepName",
  18. },
  19. {
  20. title: "项目类别",
  21. dataIndex: "projectStatus",
  22. key: "projectStatus",
  23. },
  24. {
  25. title: "派单数(个)",
  26. dataIndex: "distributeCount",
  27. key: "distributeCount",
  28. className: 'projectTable',
  29. onCellClick :(record, event)=>{
  30. event.stopPropagation();
  31. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  32. fn(record,1);
  33. }
  34. },
  35. {
  36. title: "库存数(个)",
  37. dataIndex: "stockCount",
  38. key: "stockCount",
  39. className: 'projectTable',
  40. onCellClick :(record, event)=>{
  41. event.stopPropagation();
  42. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  43. fn(record,0);
  44. }
  45. },
  46. {
  47. title: "完成数",
  48. dataIndex: "completeCount",
  49. key: "completeCount",
  50. className: 'projectTable',
  51. onCellClick :(record, event)=>{
  52. event.stopPropagation();
  53. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  54. fn(record,2);
  55. }
  56. },
  57. {
  58. title: "立项数",
  59. dataIndex: "setUpCount",
  60. key: "setUpCount",
  61. className: 'projectTable',
  62. onCellClick :(record, event)=>{
  63. event.stopPropagation();
  64. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  65. fn(record,3);
  66. }
  67. },
  68. {
  69. title: "抽查数",
  70. dataIndex: "spotCheckCount",
  71. key: "spotCheckCount",
  72. className: 'projectTable',
  73. onCellClick :(record, event)=>{
  74. event.stopPropagation();
  75. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  76. fn(record,4);
  77. }
  78. },
  79. {
  80. title: "未通过数",
  81. dataIndex: "failedCount",
  82. key: "failedCount",
  83. className: 'projectTable',
  84. onCellClick :(record, event)=>{
  85. event.stopPropagation();
  86. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  87. fn(record,5);
  88. }
  89. },
  90. {
  91. title: "签单额(万元)",
  92. dataIndex: "amountCount",
  93. key: "amountCount",
  94. },
  95. {
  96. title: "成本(万元)",
  97. dataIndex: "costAmount",
  98. key: "costAmount",
  99. },
  100. {
  101. title: "利润(万元)",
  102. dataIndex: "profit",
  103. key: "profit",
  104. },
  105. ];
  106. //发明专利
  107. const invention =(fn)=> [
  108. {
  109. title: "序号",
  110. dataIndex: "key",
  111. key: "key",
  112. },
  113. {
  114. title: "派单省份",
  115. dataIndex: "provinceName",
  116. key: "provinceName",
  117. },
  118. // {
  119. // title: "订单部门",
  120. // dataIndex: "orderNo",
  121. // key: "orderNo",
  122. // },
  123. {
  124. title: "负责部门",
  125. dataIndex: "thchDepName",
  126. key: "thchDepName",
  127. },
  128. {
  129. title: "项目类别",
  130. dataIndex: "projectStatus",
  131. key: "projectStatus",
  132. },
  133. {
  134. title: "派单数(个)",
  135. dataIndex: "distributeCount",
  136. key: "distributeCount",
  137. className: 'projectTable',
  138. onCellClick :(record, event)=>{
  139. event.stopPropagation();
  140. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  141. fn(record,1);
  142. }
  143. },
  144. {
  145. title: "库存数(个)",
  146. dataIndex: "stockCount",
  147. key: "stockCount",
  148. className: 'projectTable',
  149. onCellClick :(record, event)=>{
  150. event.stopPropagation();
  151. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  152. fn(record,0);
  153. }
  154. },
  155. {
  156. title: "受理数(个)",
  157. dataIndex: "acceptCount",
  158. key: "acceptCount",
  159. className: 'projectTable',
  160. onCellClick :(record, event)=>{
  161. event.stopPropagation();
  162. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  163. fn(record,6);
  164. }
  165. },
  166. {
  167. title: "完结总数",
  168. dataIndex: "completeCount",
  169. key: "completeCount",
  170. className: 'projectTable',
  171. onCellClick :(record, event)=>{
  172. event.stopPropagation();
  173. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  174. fn(record,7);
  175. }
  176. },
  177. {
  178. title: "授权数",
  179. dataIndex: "authorizeCount",
  180. key: "authorizeCount",
  181. className: 'projectTable',
  182. onCellClick :(record, event)=>{
  183. event.stopPropagation();
  184. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  185. fn(record,8);
  186. }
  187. },
  188. {
  189. title: "驳回数",
  190. dataIndex: "rejectCount",
  191. key: "rejectCount",
  192. className: 'projectTable',
  193. onCellClick :(record, event)=>{
  194. event.stopPropagation();
  195. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  196. fn(record,9);
  197. }
  198. },
  199. {
  200. title: "签单额(万元)",
  201. dataIndex: "amountCount",
  202. key: "amountCount",
  203. },
  204. {
  205. title: "成本(万元)",
  206. dataIndex: "costAmount",
  207. key: "costAmount",
  208. },
  209. {
  210. title: "利润(万元)",
  211. dataIndex: "profit",
  212. key: "profit",
  213. },
  214. ];
  215. //实用新型
  216. const utilityModel =(fn)=> [
  217. {
  218. title: "序号",
  219. dataIndex: "key",
  220. key: "key",
  221. },
  222. {
  223. title: "派单省份",
  224. dataIndex: "provinceName",
  225. key: "provinceName",
  226. },
  227. {
  228. title: "负责部门",
  229. dataIndex: "thchDepName",
  230. key: "thchDepName",
  231. },
  232. {
  233. title: "项目类别",
  234. dataIndex: "projectStatus",
  235. key: "projectStatus",
  236. },
  237. {
  238. title: "派单数(个)",
  239. dataIndex: "distributeCount",
  240. key: "distributeCount",
  241. className: 'projectTable',
  242. onCellClick :(record, event)=>{
  243. event.stopPropagation();
  244. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  245. fn(record,1);
  246. }
  247. },
  248. {
  249. title: "库存数(个)",
  250. dataIndex: "stockCount",
  251. key: "stockCount",
  252. className: 'projectTable',
  253. onCellClick :(record, event)=>{
  254. event.stopPropagation();
  255. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  256. fn(record,0);
  257. }
  258. },
  259. {
  260. title: "受理数(个)",
  261. dataIndex: "acceptCount",
  262. key: "acceptCount",
  263. className: 'projectTable',
  264. onCellClick :(record, event)=>{
  265. event.stopPropagation();
  266. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  267. fn(record,6);
  268. }
  269. },
  270. {
  271. title: "完结总数",
  272. dataIndex: "completeCount",
  273. key: "completeCount",
  274. className: 'projectTable',
  275. onCellClick :(record, event)=>{
  276. event.stopPropagation();
  277. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  278. fn(record,7);
  279. }
  280. },
  281. {
  282. title: "授权数",
  283. dataIndex: "authorizeCount",
  284. key: "authorizeCount",
  285. className: 'projectTable',
  286. onCellClick :(record, event)=>{
  287. event.stopPropagation();
  288. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  289. fn(record,8);
  290. }
  291. },
  292. {
  293. title: "驳回数",
  294. dataIndex: "rejectCount",
  295. key: "rejectCount",
  296. className: 'projectTable',
  297. onCellClick :(record, event)=>{
  298. event.stopPropagation();
  299. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  300. fn(record,9);
  301. }
  302. },
  303. {
  304. title: "签单额(万元)",
  305. dataIndex: "amountCount",
  306. key: "amountCount",
  307. },
  308. {
  309. title: "成本(万元)",
  310. dataIndex: "costAmount",
  311. key: "costAmount",
  312. },
  313. {
  314. title: "利润(万元)",
  315. dataIndex: "profit",
  316. key: "profit",
  317. },
  318. ];
  319. //软著
  320. const softWriting =(fn)=> [
  321. {
  322. title: "序号",
  323. dataIndex: "key",
  324. key: "key",
  325. },
  326. {
  327. title: "派单省份",
  328. dataIndex: "provinceName",
  329. key: "provinceName",
  330. },
  331. {
  332. title: "负责部门",
  333. dataIndex: "thchDepName",
  334. key: "thchDepName",
  335. },
  336. {
  337. title: "项目类别",
  338. dataIndex: "projectStatus",
  339. key: "projectStatus",
  340. },
  341. {
  342. title: "派单数(个)",
  343. dataIndex: "distributeCount",
  344. key: "distributeCount",
  345. className: 'projectTable',
  346. onCellClick :(record, event)=>{
  347. event.stopPropagation();
  348. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  349. fn(record,1);
  350. }
  351. },
  352. {
  353. title: "库存数(个)",
  354. dataIndex: "stockCount",
  355. key: "stockCount",
  356. className: 'projectTable',
  357. onCellClick :(record, event)=>{
  358. event.stopPropagation();
  359. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  360. fn(record,0);
  361. }
  362. },
  363. {
  364. title: "下证数(个)",
  365. dataIndex: "certificatesCount",
  366. key: "certificatesCount",
  367. className: 'projectTable',
  368. onCellClick :(record, event)=>{
  369. event.stopPropagation();
  370. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  371. fn(record,10);
  372. }
  373. },
  374. {
  375. title: "签单额(万元)",
  376. dataIndex: "amountCount",
  377. key: "amountCount",
  378. },
  379. {
  380. title: "成本(万元)",
  381. dataIndex: "costAmount",
  382. key: "costAmount",
  383. },
  384. {
  385. title: "利润(万元)",
  386. dataIndex: "profit",
  387. key: "profit",
  388. },
  389. ];
  390. //商标
  391. const otherTrademarks =(fn)=> [
  392. {
  393. title: "序号",
  394. dataIndex: "key",
  395. key: "key",
  396. },
  397. {
  398. title: "派单省份",
  399. dataIndex: "provinceName",
  400. key: "provinceName",
  401. },
  402. {
  403. title: "负责部门",
  404. dataIndex: "thchDepName",
  405. key: "thchDepName",
  406. },
  407. {
  408. title: "项目类别",
  409. dataIndex: "projectStatus",
  410. key: "projectStatus",
  411. },
  412. {
  413. title: "派单数(个)",
  414. dataIndex: "distributeCount",
  415. key: "distributeCount",
  416. className: 'projectTable',
  417. onCellClick :(record, event)=>{
  418. event.stopPropagation();
  419. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  420. fn(record,1);
  421. }
  422. },
  423. {
  424. title: "库存数(个)",
  425. dataIndex: "stockCount",
  426. key: "stockCount",
  427. className: 'projectTable',
  428. onCellClick :(record, event)=>{
  429. event.stopPropagation();
  430. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  431. fn(record,0);
  432. }
  433. },
  434. {
  435. title: "申请数(个)",
  436. dataIndex: "applyCount",
  437. key: "applyCount",
  438. className: 'projectTable',
  439. onCellClick :(record, event)=>{
  440. event.stopPropagation();
  441. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  442. fn(record,11);
  443. }
  444. },
  445. {
  446. title: "驳回数(个)",
  447. dataIndex: "rejectCount",
  448. key: "rejectCount",
  449. className: 'projectTable',
  450. onCellClick :(record, event)=>{
  451. event.stopPropagation();
  452. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  453. fn(record,9);
  454. }
  455. },
  456. {
  457. title: "下证数(个)",
  458. dataIndex: "certificatesCount",
  459. key: "certificatesCount",
  460. className: 'projectTable',
  461. onCellClick :(record, event)=>{
  462. event.stopPropagation();
  463. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  464. fn(record,10);
  465. }
  466. },
  467. {
  468. title: "签单额(万元)",
  469. dataIndex: "amountCount",
  470. key: "amountCount",
  471. },
  472. {
  473. title: "成本(万元)",
  474. dataIndex: "costAmount",
  475. key: "costAmount",
  476. },
  477. {
  478. title: "利润(万元)",
  479. dataIndex: "profit",
  480. key: "profit",
  481. },
  482. ];
  483. //通用
  484. const currency =(fn)=> [
  485. {
  486. title: "序号",
  487. dataIndex: "key",
  488. key: "key",
  489. },
  490. {
  491. title: "派单省份",
  492. dataIndex: "provinceName",
  493. key: "provinceName",
  494. },
  495. {
  496. title: "负责部门",
  497. dataIndex: "thchDepName",
  498. key: "thchDepName",
  499. },
  500. {
  501. title: "项目类别",
  502. dataIndex: "projectStatus",
  503. key: "projectStatus",
  504. },
  505. {
  506. title: "派单数(个)",
  507. dataIndex: "distributeCount",
  508. key: "distributeCount",
  509. className: 'projectTable',
  510. onCellClick :(record, event)=>{
  511. event.stopPropagation();
  512. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  513. fn(record,1);
  514. }
  515. },
  516. {
  517. title: "库存数(个)",
  518. dataIndex: "stockCount",
  519. key: "stockCount",
  520. className: 'projectTable',
  521. onCellClick :(record, event)=>{
  522. event.stopPropagation();
  523. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  524. fn(record,0);
  525. }
  526. },
  527. {
  528. title: "完成数",
  529. dataIndex: "completeCount",
  530. key: "completeCount",
  531. className: 'projectTable',
  532. onCellClick :(record, event)=>{
  533. event.stopPropagation();
  534. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请
  535. fn(record,2);
  536. }
  537. },
  538. {
  539. title: "公示数",
  540. dataIndex: "publicityCount",
  541. key: "publicityCount",
  542. className: 'projectTable',
  543. onCellClick :(record, event)=>{
  544. event.stopPropagation();
  545. //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请 12公示数
  546. fn(record,12);
  547. }
  548. },
  549. {
  550. title: "签单额(万元)",
  551. dataIndex: "amountCount",
  552. key: "amountCount",
  553. },
  554. {
  555. title: "成本(万元)",
  556. dataIndex: "costAmount",
  557. key: "costAmount",
  558. },
  559. {
  560. title: "利润(万元)",
  561. dataIndex: "profit",
  562. key: "profit",
  563. },
  564. ];
  565. export {
  566. highTechColumns,
  567. invention,
  568. utilityModel,
  569. softWriting,
  570. otherTrademarks,
  571. currency,
  572. }