highTechConfig.jsx 16 KB

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