highTechConfig.jsx 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651
  1. import { Tooltip } from 'antd';
  2. import React from 'react';
  3. import {getProjectName} from '@/tools';
  4. // 高新
  5. const highTechColumns =[
  6. {
  7. title: "序号",
  8. dataIndex: "key",
  9. key: "key",
  10. },
  11. {
  12. title: "派单时间",
  13. dataIndex: "distributionTime",
  14. key: "distributionTime"
  15. },
  16. {
  17. title: "派单省份",
  18. dataIndex: "province",
  19. key: "province"
  20. },
  21. {
  22. title: "订单部门",
  23. dataIndex: "depName",
  24. key: "depName"
  25. },
  26. {
  27. title: "营销员",
  28. dataIndex: "salesmanName",
  29. key: "salesmanName"
  30. },
  31. {
  32. title: "合同编号",
  33. dataIndex: "contractNo",
  34. key: "contractNo"
  35. },
  36. {
  37. title: "订单编号",
  38. dataIndex: "orderNo",
  39. key: "orderNo"
  40. },
  41. {
  42. title: "签单客户",
  43. dataIndex: "userName",
  44. key: "userName"
  45. },
  46. {
  47. title: "项目类型",
  48. dataIndex: "cname",
  49. key: "cname"
  50. },
  51. {
  52. title: "项目名称",
  53. dataIndex: "pname",
  54. key: "pname"
  55. },
  56. {
  57. title: "数量",
  58. dataIndex: "commodityQuantity",
  59. key: "commodityQuantity"
  60. },
  61. {
  62. title: "负责部门",
  63. dataIndex: "techDepName",
  64. key: "techDepName"
  65. },
  66. {
  67. title: "咨询师/咨询经理",
  68. dataIndex: "techName",
  69. key: "techName"
  70. },
  71. {
  72. title: "是否立项/时间",
  73. dataIndex: "setUpStatus",
  74. key: "setUpStatus",
  75. render:(value,record)=>(
  76. value === 1 ? '是'+'/'+record.setUpTime : value === 0 ? '否' : ''
  77. )
  78. },
  79. {
  80. title: "是否抽查",
  81. dataIndex: "spotCheckStatus",
  82. key: "spotCheckStatus",
  83. render:(value)=>(
  84. value === 1 ? '是' : value === 0 ? '否' : ''
  85. )
  86. },
  87. {
  88. title: "联系人电话",
  89. dataIndex: "contactMobile",
  90. key: "contactMobile"
  91. },
  92. {
  93. title: "法人电话",
  94. dataIndex: "legalPersonTel",
  95. key: "legalPersonTel"
  96. },
  97. {
  98. title: "证书编号",
  99. dataIndex: "certificateNumber",
  100. key: "certificateNumber"
  101. },
  102. {
  103. title: "申报批次",
  104. dataIndex: "declarationBatch",
  105. key: "declarationBatch"
  106. },
  107. {
  108. title: "项目金额",
  109. dataIndex: "commodityPrice",
  110. key: "commodityPrice"
  111. },
  112. //0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单
  113. {
  114. title: "项目状态",
  115. dataIndex: "projectStatus",
  116. key: "projectStatus",
  117. render:(value)=>(
  118. getProjectName(value)
  119. )
  120. },
  121. {
  122. title: "特别说明",
  123. dataIndex: "specialComment",
  124. key: "specialComment",
  125. render: (v) => (
  126. <Tooltip placement="topRight" title={v} overlayStyle={{
  127. wordBreak:'break-all'
  128. }}>
  129. <div style={{
  130. maxWidth: '120px',
  131. overflow: "hidden",
  132. textOverflow: "ellipsis",
  133. whiteSpace: "nowrap",
  134. }}>{v}</div>
  135. </Tooltip>
  136. )
  137. },
  138. ];
  139. // 双软
  140. const doubleSoft = [
  141. {
  142. title: "序号",
  143. dataIndex: "key",
  144. key: "key",
  145. },
  146. {
  147. title: "派单时间",
  148. dataIndex: "distributionTime",
  149. key: "distributionTime"
  150. },
  151. {
  152. title: "派单省份",
  153. dataIndex: "province",
  154. key: "province"
  155. },
  156. {
  157. title: "订单部门",
  158. dataIndex: "depName",
  159. key: "depName"
  160. },
  161. {
  162. title: "营销员",
  163. dataIndex: "salesmanName",
  164. key: "salesmanName"
  165. },
  166. {
  167. title: "合同编号",
  168. dataIndex: "contractNo",
  169. key: "contractNo"
  170. },
  171. {
  172. title: "订单编号",
  173. dataIndex: "orderNo",
  174. key: "orderNo"
  175. },
  176. {
  177. title: "签单客户",
  178. dataIndex: "userName",
  179. key: "userName"
  180. },
  181. {
  182. title: "项目类型",
  183. dataIndex: "cname",
  184. key: "cname"
  185. },
  186. {
  187. title: "项目名称",
  188. dataIndex: "pname",
  189. key: "pname"
  190. },
  191. {
  192. title: "数量",
  193. dataIndex: "commodityQuantity",
  194. key: "commodityQuantity"
  195. },
  196. {
  197. title: "负责部门",
  198. dataIndex: "techDepName",
  199. key: "techDepName"
  200. },
  201. {
  202. title: "咨询师/咨询经理",
  203. dataIndex: "techName",
  204. key: "techName"
  205. },
  206. {
  207. title: "下证时间",
  208. dataIndex: "licenceTime",
  209. key: "licenceTime",
  210. render:(value)=>(
  211. <div style={{width:'80px'}}>{value}</div>
  212. )
  213. },
  214. {
  215. title: "项目金额",
  216. dataIndex: "commodityPrice",
  217. key: "commodityPrice"
  218. },
  219. //0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单
  220. {
  221. title: "项目状态",
  222. dataIndex: "projectStatus",
  223. key: "projectStatus",
  224. render:(value)=>(
  225. getProjectName(value)
  226. )
  227. },
  228. {
  229. title: "特别说明",
  230. dataIndex: "specialComment",
  231. key: "specialComment",
  232. render: (v) => (
  233. <Tooltip placement="topRight" title={v} overlayStyle={{
  234. wordBreak:'break-all'
  235. }}>
  236. <div style={{
  237. maxWidth: '120px',
  238. overflow: "hidden",
  239. textOverflow: "ellipsis",
  240. whiteSpace: "nowrap",
  241. }}>{v}</div>
  242. </Tooltip>
  243. )
  244. },
  245. ];
  246. // 软著
  247. const softWriting = [
  248. {
  249. title: "序号",
  250. dataIndex: "key",
  251. key: "key",
  252. },
  253. {
  254. title: "派单时间",
  255. dataIndex: "distributionTime",
  256. key: "distributionTime"
  257. },
  258. {
  259. title: "派单省份",
  260. dataIndex: "province",
  261. key: "province"
  262. },
  263. {
  264. title: "订单部门",
  265. dataIndex: "depName",
  266. key: "depName"
  267. },
  268. {
  269. title: "营销员",
  270. dataIndex: "salesmanName",
  271. key: "salesmanName"
  272. },
  273. {
  274. title: "合同编号",
  275. dataIndex: "contractNo",
  276. key: "contractNo"
  277. },
  278. {
  279. title: "订单编号",
  280. dataIndex: "orderNo",
  281. key: "orderNo"
  282. },
  283. {
  284. title: "签单客户",
  285. dataIndex: "userName",
  286. key: "userName"
  287. },
  288. {
  289. title: "项目类型",
  290. dataIndex: "cname",
  291. key: "cname"
  292. },
  293. {
  294. title: "项目名称",
  295. dataIndex: "pname",
  296. key: "pname"
  297. },
  298. {
  299. title: "负责部门",
  300. dataIndex: "techDepName",
  301. key: "techDepName"
  302. },
  303. {
  304. title: "咨询师/咨询经理",
  305. dataIndex: "techName",
  306. key: "techName"
  307. },
  308. {
  309. title: "项目数量/下证数",
  310. dataIndex: "commodityQuantity",
  311. key: "commodityQuantity",
  312. render:(value,record)=>(
  313. value+'/'+record.certificatesCount
  314. )
  315. },
  316. {
  317. title: "有无材料",
  318. dataIndex: "ifMaterial",
  319. key: "ifMaterial",
  320. render: (value)=>(
  321. value === 1 ? '有' : value === 0 ? '无' : ''
  322. )
  323. },
  324. {
  325. title: "加急天数",
  326. dataIndex: "urgentDay",
  327. key: "urgentDay",
  328. render: (value)=>(
  329. value === 1 ? '有' : value === 0 ? '无' : ''
  330. )
  331. },
  332. {
  333. title: "下证时间",
  334. dataIndex: "licenceTime",
  335. key: "licenceTime",
  336. render:(value)=>(
  337. <div style={{width:'80px'}}>{value}</div>
  338. )
  339. },
  340. {
  341. title: "证书编号",
  342. dataIndex: "certificateNumber",
  343. key: "certificateNumber"
  344. },
  345. {
  346. title: "项目金额",
  347. dataIndex: "commodityPrice",
  348. key: "commodityPrice"
  349. },
  350. {
  351. title: "成本金额",
  352. dataIndex: "costAmount",
  353. key: "costAmount"
  354. },
  355. {
  356. title: "利润金额",
  357. dataIndex: "profit",
  358. key: "profit"
  359. },
  360. //0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单
  361. {
  362. title: "项目状态",
  363. dataIndex: "projectStatus",
  364. key: "projectStatus",
  365. render:(value)=>(
  366. getProjectName(value)
  367. )
  368. },
  369. {
  370. title: "特别说明",
  371. dataIndex: "specialComment",
  372. key: "specialComment",
  373. render: (v) => (
  374. <Tooltip placement="topRight" title={v} overlayStyle={{
  375. wordBreak:'break-all'
  376. }}>
  377. <div style={{
  378. maxWidth: '120px',
  379. overflow: "hidden",
  380. textOverflow: "ellipsis",
  381. whiteSpace: "nowrap",
  382. }}>{v}</div>
  383. </Tooltip>
  384. )
  385. },
  386. ];
  387. // 专利
  388. const patent =[
  389. {
  390. title: "序号",
  391. dataIndex: "key",
  392. key: "key",
  393. },
  394. {
  395. title: "派单时间",
  396. dataIndex: "distributionTime",
  397. key: "distributionTime"
  398. },
  399. {
  400. title: "派单省份",
  401. dataIndex: "province",
  402. key: "province"
  403. },
  404. {
  405. title: "订单部门",
  406. dataIndex: "depName",
  407. key: "depName"
  408. },
  409. {
  410. title: "营销员",
  411. dataIndex: "salesmanName",
  412. key: "salesmanName"
  413. },
  414. {
  415. title: "合同编号",
  416. dataIndex: "contractNo",
  417. key: "contractNo"
  418. },
  419. {
  420. title: "订单编号",
  421. dataIndex: "orderNo",
  422. key: "orderNo"
  423. },
  424. {
  425. title: "签单客户",
  426. dataIndex: "userName",
  427. key: "userName"
  428. },
  429. {
  430. title: "项目类型",
  431. dataIndex: "cname",
  432. key: "cname"
  433. },
  434. {
  435. title: "项目名称",
  436. dataIndex: "pname",
  437. key: "pname"
  438. },
  439. {
  440. title: "负责部门",
  441. dataIndex: "techDepName",
  442. key: "techDepName"
  443. },
  444. {
  445. title: "咨询师/咨询经理",
  446. dataIndex: "techName",
  447. key: "techName"
  448. },
  449. {
  450. title: "项目数量/下证数",
  451. dataIndex: "commodityQuantity",
  452. key: "commodityQuantity",
  453. render:(value,record)=>(
  454. value+'/'+record.certificatesCount
  455. )
  456. },
  457. {
  458. title: "是否高新",
  459. dataIndex: "highTechstatus",
  460. key: "highTechstatus",
  461. render:(value)=>(
  462. value === 1 ? '是' : value === 0 ? '否' : ''
  463. )
  464. },
  465. {
  466. title: "驳回数",
  467. dataIndex: "rejectCount",
  468. key: "rejectCount"
  469. },
  470. {
  471. title: "专利号",
  472. dataIndex: "patentNo",
  473. key: "patentNo"
  474. },
  475. {
  476. title: "专利名称",
  477. dataIndex: "patentName",
  478. key: "patentName"
  479. },
  480. {
  481. title: "受理时间",
  482. dataIndex: "acceptTime",
  483. key: "acceptTime"
  484. },
  485. // {
  486. // title: "授权时间",
  487. // dataIndex: "orderNo",
  488. // key: "orderNo"
  489. // },
  490. {
  491. title: "下证时间",
  492. dataIndex: "licenceTime",
  493. key: "licenceTime",
  494. render:(value)=>(
  495. <div style={{width:'80px'}}>{value}</div>
  496. )
  497. },
  498. {
  499. title: "项目金额",
  500. dataIndex: "commodityPrice",
  501. key: "commodityPrice"
  502. },
  503. {
  504. title: "成本金额",
  505. dataIndex: "costAmount",
  506. key: "costAmount"
  507. },
  508. {
  509. title: "利润金额",
  510. dataIndex: "profit",
  511. key: "profit"
  512. },
  513. //0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单
  514. {
  515. title: "项目状态",
  516. dataIndex: "projectStatus",
  517. key: "projectStatus",
  518. render:(value)=>(
  519. getProjectName(value)
  520. )
  521. },
  522. {
  523. title: "特别说明",
  524. dataIndex: "specialComment",
  525. key: "specialComment",
  526. render: (v) => (
  527. <Tooltip placement="topRight" title={v} overlayStyle={{
  528. wordBreak:'break-all'
  529. }}>
  530. <div style={{
  531. maxWidth: '120px',
  532. overflow: "hidden",
  533. textOverflow: "ellipsis",
  534. whiteSpace: "nowrap",
  535. }}>{v}</div>
  536. </Tooltip>
  537. )
  538. }
  539. ];
  540. // 通用表
  541. const currency = [
  542. {
  543. title: "序号",
  544. dataIndex: "key",
  545. key: "key",
  546. },
  547. {
  548. title: "派单时间",
  549. dataIndex: "distributionTime",
  550. key: "distributionTime"
  551. },
  552. {
  553. title: "派单省份",
  554. dataIndex: "province",
  555. key: "province"
  556. },
  557. {
  558. title: "订单部门",
  559. dataIndex: "depName",
  560. key: "depName"
  561. },
  562. {
  563. title: "营销员",
  564. dataIndex: "salesmanName",
  565. key: "salesmanName"
  566. },
  567. {
  568. title: "合同编号",
  569. dataIndex: "contractNo",
  570. key: "contractNo"
  571. },
  572. {
  573. title: "订单编号",
  574. dataIndex: "orderNo",
  575. key: "orderNo"
  576. },
  577. {
  578. title: "签单客户",
  579. dataIndex: "userName",
  580. key: "userName"
  581. },
  582. {
  583. title: "项目类型",
  584. dataIndex: "cname",
  585. key: "cname"
  586. },
  587. {
  588. title: "项目名称",
  589. dataIndex: "pname",
  590. key: "pname"
  591. },
  592. {
  593. title: "数量",
  594. dataIndex: "commodityQuantity",
  595. key: "commodityQuantity"
  596. },
  597. {
  598. title: "负责部门",
  599. dataIndex: "techDepName",
  600. key: "techDepName"
  601. },
  602. {
  603. title: "咨询师/咨询经理",
  604. dataIndex: "techName",
  605. key: "techName"
  606. },
  607. //0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单
  608. {
  609. title: "项目状态",
  610. dataIndex: "projectStatus",
  611. key: "projectStatus",
  612. render:(value)=>(
  613. getProjectName(value)
  614. )
  615. },
  616. {
  617. title: "项目金额",
  618. dataIndex: "commodityPrice",
  619. key: "commodityPrice"
  620. },
  621. {
  622. title: "特别说明",
  623. dataIndex: "specialComment",
  624. key: "specialComment",
  625. render: (v) => (
  626. <Tooltip placement="topRight" title={v} overlayStyle={{
  627. wordBreak:'break-all'
  628. }}>
  629. <div style={{
  630. maxWidth: '120px',
  631. overflow: "hidden",
  632. textOverflow: "ellipsis",
  633. whiteSpace: "nowrap",
  634. }}>{v}</div>
  635. </Tooltip>
  636. )
  637. },
  638. ];
  639. export {
  640. highTechColumns,
  641. doubleSoft,
  642. softWriting,
  643. patent,
  644. currency,
  645. }