highTechConfig.jsx 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483
  1. import { Tooltip } from 'antd';
  2. import React from 'react';
  3. import { getProjectName, getFormRetrieves, getApprovedType } from '@/tools';
  4. import { Button, Modal } from 'antd';
  5. // 高新会员服务
  6. const member = (onCellClick) => [
  7. {
  8. title: "序号",
  9. dataIndex: "key",
  10. key: "key",
  11. isNoD: true,
  12. },
  13. {
  14. title: "特批类型",
  15. dataIndex: "type",
  16. key: "type",
  17. width: 110,
  18. render: (text, record) => {
  19. return (
  20. <span>
  21. {getApprovedType(text ? text.split(",").map(Number) : [], record.typeExplain)}
  22. </span>
  23. );
  24. },
  25. },
  26. {
  27. title: "派单时间",
  28. dataIndex: "distributionTime",
  29. key: "distributionTime",
  30. width: 80,
  31. },
  32. {
  33. title: "派单省份",
  34. dataIndex: "province",
  35. key: "province"
  36. },
  37. {
  38. title: "订单部门",
  39. dataIndex: "depName",
  40. key: "depName",
  41. isNoD: true,
  42. },
  43. {
  44. title: "营销员",
  45. dataIndex: "salesmanName",
  46. key: "salesmanName"
  47. },
  48. {
  49. title: "合同编号",
  50. dataIndex: "contractNo",
  51. key: "contractNo"
  52. },
  53. {
  54. title: "订单编号",
  55. dataIndex: "orderNo",
  56. key: "orderNo",
  57. isNoD: true,
  58. },
  59. {
  60. title: "签单客户",
  61. dataIndex: "userName",
  62. key: "userName"
  63. },
  64. {
  65. title: "项目类型",
  66. dataIndex: "cname",
  67. key: "cname"
  68. },
  69. {
  70. title: "项目名称",
  71. dataIndex: "pname",
  72. key: "pname"
  73. },
  74. {
  75. title: "数量",
  76. dataIndex: "commodityQuantity",
  77. key: "commodityQuantity"
  78. },
  79. {
  80. title: "服务类型",
  81. dataIndex: "serviceType",
  82. key: "aserviceType",
  83. width: 150,
  84. },
  85. {
  86. title: "服务项目",
  87. dataIndex: "serviceProject",
  88. key: "serviceProject",
  89. width: 200,
  90. isNoD: true,
  91. },
  92. {
  93. title: "负责部门",
  94. dataIndex: "techDepName",
  95. key: "techDepName",
  96. isNoD: true,
  97. },
  98. {
  99. title: "咨询师/咨询经理",
  100. dataIndex: "techName",
  101. key: "techName"
  102. },
  103. //0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单
  104. {
  105. title: "项目状态",
  106. dataIndex: "projectStatus",
  107. key: "projectStatus",
  108. render: (value, record) => {
  109. return (
  110. <div style={{ minWidth: "80px" }}>{getProjectName(value)}</div>
  111. );
  112. }
  113. // render: (value) => (
  114. // getProjectName(value)
  115. // )
  116. },
  117. {
  118. title: "项目金额",
  119. dataIndex: "commodityPrice",
  120. key: "commodityPrice"
  121. },
  122. {
  123. title: "总年限",
  124. dataIndex: "yearsum",
  125. key: "yearsum",
  126. render: (text, record) => {
  127. return (
  128. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  129. );
  130. }
  131. },
  132. {
  133. title: "年限",
  134. dataIndex: "serviceLife",
  135. key: "serviceLife",
  136. render: (text, record) => {
  137. return (
  138. <div>{!!text && JSON.parse(text).toString()}</div>
  139. );
  140. }
  141. },
  142. {
  143. title: "本次派单",
  144. dataIndex: "serviceYear",
  145. key: "serviceYear"
  146. },
  147. {
  148. title: "合同期",
  149. dataIndex: "contractTerm",
  150. key: "contractTerm",
  151. width: 80,
  152. render: (text, record) => {
  153. let data = !!text ? JSON.parse(text) : [""]
  154. return (
  155. data.length <= 1
  156. ? data[0]
  157. : <div>
  158. <div>{data[0]}</div>
  159. <div style={{ textAlign: "center" }}>至</div>
  160. <div>{data[1]}</div>
  161. </div>
  162. );
  163. }
  164. },
  165. {
  166. title: "项目说明",
  167. dataIndex: "taskComment",
  168. key: "taskComment",
  169. width: 250,
  170. },
  171. {
  172. title: "特别说明",
  173. dataIndex: "specialComment",
  174. key: "specialComment",
  175. isNoD: true,
  176. },
  177. {
  178. title: "订单说明",
  179. dataIndex: "orderRemarks",
  180. key: "orderRemarks",
  181. isNoD: true,
  182. },
  183. {
  184. title: "评分及时间",
  185. dataIndex: "scoreNumber",
  186. key: "scoreNumber",
  187. width: 80,
  188. onCellClick: (record, e) => {
  189. e.stopPropagation();
  190. onCellClick(record)
  191. },
  192. render: (value, record) => {
  193. return (
  194. <div>
  195. <div>{value}分</div>
  196. <div>{record.scoreTime}</div>
  197. </div>
  198. );
  199. }
  200. },
  201. {
  202. title: "满意度调查表",
  203. dataIndex: "formRetrieve",
  204. key: "formRetrieve",
  205. render: (value, record) => {
  206. return (
  207. <div style={{ maxWidth: "110px" }}>
  208. {getFormRetrieves(value, record.satisfactionDegree)}
  209. {(value == 0 || value == 1) && <Button type="primary">{value == 0 ? "已发送" : value == 1 && "上传回收表"}</Button>}
  210. </div>
  211. );
  212. }
  213. },
  214. ];
  215. // 高新
  216. const highTechColumns = (onCellClick) => [
  217. {
  218. title: "序号",
  219. dataIndex: "key",
  220. key: "key",
  221. isNoD: true,
  222. },
  223. {
  224. title: "特批类型",
  225. dataIndex: "type",
  226. key: "type",
  227. width: 110,
  228. render: (text, record) => {
  229. return (
  230. <span>
  231. {getApprovedType(text ? text.split(",").map(Number) : [], record.typeExplain)}
  232. </span>
  233. );
  234. },
  235. },
  236. {
  237. title: "派单时间",
  238. dataIndex: "distributionTime",
  239. key: "distributionTime"
  240. },
  241. {
  242. title: "派单省份",
  243. dataIndex: "province",
  244. key: "province"
  245. },
  246. {
  247. title: "订单部门",
  248. dataIndex: "depName",
  249. key: "depName",
  250. isNoD: true,
  251. },
  252. {
  253. title: "营销员",
  254. dataIndex: "salesmanName",
  255. key: "salesmanName"
  256. },
  257. {
  258. title: "合同编号",
  259. dataIndex: "contractNo",
  260. key: "contractNo"
  261. },
  262. {
  263. title: "订单编号",
  264. dataIndex: "orderNo",
  265. key: "orderNo"
  266. },
  267. {
  268. title: "签单客户",
  269. dataIndex: "userName",
  270. key: "userName"
  271. },
  272. {
  273. title: "项目类型",
  274. dataIndex: "cname",
  275. key: "cname"
  276. },
  277. {
  278. title: "项目名称",
  279. dataIndex: "pname",
  280. key: "pname"
  281. },
  282. {
  283. title: "数量",
  284. dataIndex: "commodityQuantity",
  285. key: "commodityQuantity"
  286. },
  287. {
  288. title: "服务类型",
  289. dataIndex: "serviceType",
  290. key: "aserviceType",
  291. width: 150,
  292. },
  293. {
  294. title: "服务项目",
  295. dataIndex: "serviceProject",
  296. key: "serviceProject",
  297. width: 200,
  298. isNoD: true,
  299. },
  300. {
  301. title: "负责部门",
  302. dataIndex: "techDepName",
  303. key: "techDepName",
  304. isNoD: true,
  305. },
  306. {
  307. title: "咨询师/咨询经理",
  308. dataIndex: "techName",
  309. key: "techName"
  310. },
  311. {
  312. title: "是否立项/时间",
  313. dataIndex: "setUpStatus",
  314. key: "setUpStatus",
  315. render: (value, record) => (
  316. value === 1 ? '是' + '/' + record.setUpTime : value === 0 ? '否' : ''
  317. )
  318. },
  319. {
  320. title: "是否抽查",
  321. dataIndex: "spotCheckStatus",
  322. key: "spotCheckStatus",
  323. render: (value) => (
  324. value === 1 ? '是' : value === 0 ? '否' : ''
  325. )
  326. },
  327. {
  328. title: "联系人电话",
  329. dataIndex: "contactMobile",
  330. key: "contactMobile"
  331. },
  332. {
  333. title: "法人电话",
  334. dataIndex: "legalPersonTel",
  335. key: "legalPersonTel"
  336. },
  337. {
  338. title: "证书编号",
  339. dataIndex: "certificateNumber",
  340. key: "certificateNumber"
  341. },
  342. {
  343. title: "申报年份",
  344. dataIndex: "serviceYear",
  345. key: "serviceYear"
  346. },
  347. {
  348. title: "申报批次",
  349. dataIndex: "declarationBatch",
  350. key: "declarationBatch"
  351. },
  352. {
  353. title: "项目金额",
  354. dataIndex: "commodityPrice",
  355. key: "commodityPrice"
  356. },
  357. //0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单
  358. {
  359. title: "项目状态",
  360. dataIndex: "projectStatus",
  361. key: "projectStatus",
  362. render: (value, record) => {
  363. return (
  364. <div style={{ minWidth: "80px" }}>{getProjectName(value)}</div>
  365. );
  366. }
  367. },
  368. {
  369. title: "项目说明",
  370. dataIndex: "taskComment",
  371. key: "taskComment",
  372. width: 250,
  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. title: "特别说明",
  388. dataIndex: "specialComment",
  389. key: "specialComment",
  390. isNoD: true,
  391. },
  392. {
  393. title: "订单说明",
  394. dataIndex: "orderRemarks",
  395. key: "orderRemarks",
  396. isNoD: true,
  397. },
  398. {
  399. title: "评分及时间",
  400. dataIndex: "scoreNumber",
  401. key: "scoreNumber",
  402. width: 80,
  403. onCellClick: (record, e) => {
  404. e.stopPropagation();
  405. onCellClick(record)
  406. },
  407. render: (value, record) => {
  408. return (
  409. <div>
  410. <div>{value}分</div>
  411. <div>{record.scoreTime}</div>
  412. </div>
  413. );
  414. }
  415. },
  416. {
  417. title: "满意度调查表",
  418. dataIndex: "formRetrieve",
  419. key: "formRetrieve",
  420. render: (value, record) => {
  421. return (
  422. <div style={{ maxWidth: "110px" }}>
  423. {getFormRetrieves(value, record.satisfactionDegree)}
  424. {(value == 0 || value == 1) && <Button type="primary">{value == 0 ? "已发送" : value == 1 && "上传回收表"}</Button>}
  425. </div>
  426. );
  427. }
  428. },
  429. ];
  430. // 双软
  431. const doubleSoft = (onCellClick) => [
  432. {
  433. title: "序号",
  434. dataIndex: "key",
  435. key: "key",
  436. isNoD: true,
  437. },
  438. {
  439. title: "特批类型",
  440. dataIndex: "type",
  441. key: "type",
  442. width: 110,
  443. render: (text, record) => {
  444. return (
  445. <span>
  446. {getApprovedType(text ? text.split(",").map(Number) : [], record.typeExplain)}
  447. </span>
  448. );
  449. },
  450. },
  451. {
  452. title: "派单时间",
  453. dataIndex: "distributionTime",
  454. key: "distributionTime"
  455. },
  456. {
  457. title: "派单省份",
  458. dataIndex: "province",
  459. key: "province"
  460. },
  461. {
  462. title: "订单部门",
  463. dataIndex: "depName",
  464. key: "depName",
  465. isNoD: true,
  466. },
  467. {
  468. title: "营销员",
  469. dataIndex: "salesmanName",
  470. key: "salesmanName"
  471. },
  472. {
  473. title: "合同编号",
  474. dataIndex: "contractNo",
  475. key: "contractNo"
  476. },
  477. {
  478. title: "订单编号",
  479. dataIndex: "orderNo",
  480. key: "orderNo"
  481. },
  482. {
  483. title: "签单客户",
  484. dataIndex: "userName",
  485. key: "userName"
  486. },
  487. {
  488. title: "项目类型",
  489. dataIndex: "cname",
  490. key: "cname"
  491. },
  492. {
  493. title: "项目名称",
  494. dataIndex: "pname",
  495. key: "pname"
  496. },
  497. {
  498. title: "数量",
  499. dataIndex: "commodityQuantity",
  500. key: "commodityQuantity"
  501. },
  502. {
  503. title: "服务类型",
  504. dataIndex: "serviceType",
  505. key: "aserviceType",
  506. width: 150,
  507. },
  508. {
  509. title: "服务项目",
  510. dataIndex: "serviceProject",
  511. key: "serviceProject",
  512. width: 200,
  513. isNoD: true,
  514. },
  515. {
  516. title: "负责部门",
  517. dataIndex: "techDepName",
  518. key: "techDepName",
  519. isNoD: true,
  520. },
  521. {
  522. title: "咨询师/咨询经理",
  523. dataIndex: "techName",
  524. key: "techName"
  525. },
  526. {
  527. title: "下证时间",
  528. dataIndex: "licenceTime",
  529. key: "licenceTime",
  530. render: (value) => (
  531. <div style={{ width: '80px' }}>{value}</div>
  532. )
  533. },
  534. {
  535. title: "项目金额",
  536. dataIndex: "commodityPrice",
  537. key: "commodityPrice"
  538. },
  539. //0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单
  540. {
  541. title: "项目状态",
  542. dataIndex: "projectStatus",
  543. key: "projectStatus",
  544. render: (value, record) => {
  545. return (
  546. <div style={{ minWidth: "80px" }}>{getProjectName(value)}</div>
  547. );
  548. }
  549. },
  550. {
  551. title: "项目说明",
  552. dataIndex: "taskComment",
  553. key: "taskComment",
  554. width: 250,
  555. // render: (v) => (
  556. // <Tooltip placement="topRight" title={v} overlayStyle={{
  557. // wordBreak: 'break-all'
  558. // }}>
  559. // <div style={{
  560. // maxWidth: '120px',
  561. // overflow: "hidden",
  562. // textOverflow: "ellipsis",
  563. // whiteSpace: "nowrap",
  564. // }}>{v}</div>
  565. // </Tooltip>
  566. // )
  567. },
  568. {
  569. title: "特别说明",
  570. dataIndex: "specialComment",
  571. key: "specialComment",
  572. isNoD: true,
  573. },
  574. {
  575. title: "订单说明",
  576. dataIndex: "orderRemarks",
  577. key: "orderRemarks",
  578. isNoD: true,
  579. },
  580. {
  581. title: "评分及时间",
  582. dataIndex: "scoreNumber",
  583. key: "scoreNumber",
  584. width: 80,
  585. onCellClick: (record, e) => {
  586. e.stopPropagation();
  587. onCellClick(record)
  588. },
  589. render: (value, record) => {
  590. return (
  591. <div>
  592. <div>{value}分</div>
  593. <div>{record.scoreTime}</div>
  594. </div>
  595. );
  596. }
  597. },
  598. {
  599. title: "满意度调查表",
  600. dataIndex: "formRetrieve",
  601. key: "formRetrieve",
  602. render: (value, record) => {
  603. return (
  604. <div style={{ maxWidth: "110px" }}>
  605. {getFormRetrieves(value, record.satisfactionDegree)}
  606. {(value == 0 || value == 1) && <Button type="primary">{value == 0 ? "已发送" : value == 1 && "上传回收表"}</Button>}
  607. </div>
  608. );
  609. }
  610. },
  611. ];
  612. // 软著
  613. const softWriting = (onCellClick) => [
  614. {
  615. title: "序号",
  616. dataIndex: "key",
  617. key: "key",
  618. isNoD: true,
  619. },
  620. {
  621. title: "特批类型",
  622. dataIndex: "type",
  623. key: "type",
  624. width: 110,
  625. render: (text, record) => {
  626. return (
  627. <span>
  628. {getApprovedType(text ? text.split(",").map(Number) : [], record.typeExplain)}
  629. </span>
  630. );
  631. },
  632. },
  633. {
  634. title: "派单时间",
  635. dataIndex: "distributionTime",
  636. key: "distributionTime"
  637. },
  638. {
  639. title: "派单省份",
  640. dataIndex: "province",
  641. key: "province"
  642. },
  643. {
  644. title: "订单部门",
  645. dataIndex: "depName",
  646. key: "depName",
  647. isNoD: true,
  648. },
  649. {
  650. title: "营销员",
  651. dataIndex: "salesmanName",
  652. key: "salesmanName"
  653. },
  654. {
  655. title: "合同编号",
  656. dataIndex: "contractNo",
  657. key: "contractNo"
  658. },
  659. {
  660. title: "订单编号",
  661. dataIndex: "orderNo",
  662. key: "orderNo"
  663. },
  664. {
  665. title: "签单客户",
  666. dataIndex: "userName",
  667. key: "userName"
  668. },
  669. {
  670. title: "项目类型",
  671. dataIndex: "cname",
  672. key: "cname"
  673. },
  674. {
  675. title: "项目名称",
  676. dataIndex: "pname",
  677. key: "pname"
  678. },
  679. {
  680. title: "数量",
  681. dataIndex: "commodityQuantity",
  682. key: "commodityQuantity"
  683. },
  684. {
  685. title: "服务类型",
  686. dataIndex: "serviceType",
  687. key: "aserviceType",
  688. width: 150,
  689. },
  690. {
  691. title: "服务项目",
  692. dataIndex: "serviceProject",
  693. key: "serviceProject",
  694. width: 200,
  695. isNoD: true,
  696. },
  697. {
  698. title: "负责部门",
  699. dataIndex: "techDepName",
  700. key: "techDepName",
  701. isNoD: true,
  702. },
  703. {
  704. title: "咨询师/咨询经理",
  705. dataIndex: "techName",
  706. key: "techName"
  707. },
  708. {
  709. title: "项目数量/下证数",
  710. dataIndex: "commodityQuantity",
  711. key: "commodityQuantity",
  712. render: (value, record) => (
  713. value + '/' + record.certificatesCount
  714. )
  715. },
  716. {
  717. title: "有无方案",
  718. dataIndex: "ifMaterial",
  719. key: "ifMaterial",
  720. render: (value) => (
  721. value === 1 ? '有' : value === 0 ? '无' : ''
  722. )
  723. },
  724. {
  725. title: "加急天数",
  726. dataIndex: "urgentDay",
  727. key: "urgentDay",
  728. render: (value) => (
  729. value === 1 ? '有' : value === 0 ? '无' : ''
  730. )
  731. },
  732. {
  733. title: "下证时间",
  734. dataIndex: "licenceTime",
  735. key: "licenceTime",
  736. render: (value) => (
  737. <div style={{ width: '80px' }}>{value}</div>
  738. )
  739. },
  740. {
  741. title: "证书编号",
  742. dataIndex: "certificateNumber",
  743. key: "certificateNumber"
  744. },
  745. {
  746. title: "项目金额",
  747. dataIndex: "commodityPrice",
  748. key: "commodityPrice"
  749. },
  750. {
  751. title: "成本金额",
  752. dataIndex: "costAmount",
  753. key: "costAmount"
  754. },
  755. {
  756. title: "利润金额",
  757. dataIndex: "profit",
  758. key: "profit"
  759. },
  760. //0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单
  761. {
  762. title: "项目状态",
  763. dataIndex: "projectStatus",
  764. key: "projectStatus",
  765. render: (value, record) => {
  766. return (
  767. <div style={{ minWidth: "80px" }}>{getProjectName(value)}</div>
  768. );
  769. }
  770. },
  771. {
  772. title: "项目说明",
  773. dataIndex: "taskComment",
  774. key: "taskComment",
  775. width: 250,
  776. // render: (v) => (
  777. // <Tooltip placement="topRight" title={v} overlayStyle={{
  778. // wordBreak: 'break-all'
  779. // }}>
  780. // <div style={{
  781. // maxWidth: '120px',
  782. // overflow: "hidden",
  783. // textOverflow: "ellipsis",
  784. // whiteSpace: "nowrap",
  785. // }}>{v}</div>
  786. // </Tooltip>
  787. // )
  788. },
  789. {
  790. title: "特别说明",
  791. dataIndex: "specialComment",
  792. key: "specialComment",
  793. isNoD: true,
  794. },
  795. {
  796. title: "订单说明",
  797. dataIndex: "orderRemarks",
  798. key: "orderRemarks",
  799. isNoD: true,
  800. },
  801. {
  802. title: "评分及时间",
  803. dataIndex: "scoreNumber",
  804. key: "scoreNumber",
  805. width: 80,
  806. onCellClick: (record, e) => {
  807. e.stopPropagation();
  808. onCellClick(record)
  809. },
  810. render: (value, record) => {
  811. return (
  812. <div>
  813. <div>{value}分</div>
  814. <div>{record.scoreTime}</div>
  815. </div>
  816. );
  817. }
  818. },
  819. {
  820. title: "满意度调查表",
  821. dataIndex: "formRetrieve",
  822. key: "formRetrieve",
  823. render: (value, record) => {
  824. return (
  825. <div style={{ maxWidth: "110px" }}>
  826. {getFormRetrieves(value, record.satisfactionDegree)}
  827. {(value == 0 || value == 1) && <Button type="primary">{value == 0 ? "已发送" : value == 1 && "上传回收表"}</Button>}
  828. </div>
  829. );
  830. }
  831. },
  832. ];
  833. // 专利
  834. const patent = (onCellClick) => [
  835. {
  836. title: "序号",
  837. dataIndex: "key",
  838. key: "key",
  839. isNoD: true,
  840. },
  841. {
  842. title: "特批类型",
  843. dataIndex: "type",
  844. key: "type",
  845. width: 110,
  846. render: (text, record) => {
  847. return (
  848. <span>
  849. {getApprovedType(text ? text.split(",").map(Number) : [], record.typeExplain)}
  850. </span>
  851. );
  852. },
  853. },
  854. {
  855. title: "派单时间",
  856. dataIndex: "distributionTime",
  857. key: "distributionTime"
  858. },
  859. {
  860. title: "派单省份",
  861. dataIndex: "province",
  862. key: "province"
  863. },
  864. {
  865. title: "订单部门",
  866. dataIndex: "depName",
  867. key: "depName",
  868. isNoD: true,
  869. },
  870. {
  871. title: "营销员",
  872. dataIndex: "salesmanName",
  873. key: "salesmanName"
  874. },
  875. {
  876. title: "合同编号",
  877. dataIndex: "contractNo",
  878. key: "contractNo"
  879. },
  880. {
  881. title: "订单编号",
  882. dataIndex: "orderNo",
  883. key: "orderNo"
  884. },
  885. {
  886. title: "签单客户",
  887. dataIndex: "userName",
  888. key: "userName"
  889. },
  890. {
  891. title: "项目类型",
  892. dataIndex: "cname",
  893. key: "cname"
  894. },
  895. {
  896. title: "项目名称",
  897. dataIndex: "pname",
  898. key: "pname"
  899. },
  900. {
  901. title: "数量",
  902. dataIndex: "commodityQuantity",
  903. key: "commodityQuantity"
  904. },
  905. {
  906. title: "服务类型",
  907. dataIndex: "serviceType",
  908. key: "aserviceType",
  909. width: 150,
  910. },
  911. {
  912. title: "服务项目",
  913. dataIndex: "serviceProject",
  914. key: "serviceProject",
  915. width: 200,
  916. isNoD: true,
  917. },
  918. {
  919. title: "负责部门",
  920. dataIndex: "techDepName",
  921. key: "techDepName",
  922. isNoD: true,
  923. },
  924. {
  925. title: "咨询师/咨询经理",
  926. dataIndex: "techName",
  927. key: "techName"
  928. },
  929. {
  930. title: "项目数量/下证数",
  931. dataIndex: "commodityQuantity",
  932. key: "commodityQuantity",
  933. render: (value, record) => (
  934. value + '/' + record.certificatesCount
  935. )
  936. },
  937. {
  938. title: "是否高新",
  939. dataIndex: "highTechstatus",
  940. key: "highTechstatus",
  941. render: (value) => (
  942. value === 1 ? '是' : value === 0 ? '否' : ''
  943. )
  944. },
  945. {
  946. title: "驳回数",
  947. dataIndex: "rejectCount",
  948. key: "rejectCount"
  949. },
  950. {
  951. title: "专利号",
  952. dataIndex: "patentNo",
  953. key: "patentNo"
  954. },
  955. {
  956. title: "专利名称",
  957. dataIndex: "patentName",
  958. key: "patentName"
  959. },
  960. {
  961. title: "受理时间",
  962. dataIndex: "acceptTime",
  963. key: "acceptTime"
  964. },
  965. // {
  966. // title: "授权时间",
  967. // dataIndex: "orderNo",
  968. // key: "orderNo"
  969. // },
  970. {
  971. title: "下证时间",
  972. dataIndex: "licenceTime",
  973. key: "licenceTime",
  974. render: (value) => (
  975. <div style={{ width: '80px' }}>{value}</div>
  976. )
  977. },
  978. {
  979. title: "项目金额",
  980. dataIndex: "commodityPrice",
  981. key: "commodityPrice"
  982. },
  983. {
  984. title: "成本金额",
  985. dataIndex: "costAmount",
  986. key: "costAmount"
  987. },
  988. {
  989. title: "利润金额",
  990. dataIndex: "profit",
  991. key: "profit"
  992. },
  993. //0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单
  994. {
  995. title: "项目状态",
  996. dataIndex: "projectStatus",
  997. key: "projectStatus",
  998. render: (value, record) => {
  999. return (
  1000. <div style={{ minWidth: "80px" }}>{getProjectName(value)}</div>
  1001. );
  1002. }
  1003. },
  1004. {
  1005. title: "项目说明",
  1006. dataIndex: "taskComment",
  1007. key: "taskComment",
  1008. width: 250,
  1009. // render: (v) => (
  1010. // <Tooltip placement="topRight" title={v} overlayStyle={{
  1011. // wordBreak: 'break-all'
  1012. // }}>
  1013. // <div style={{
  1014. // maxWidth: '120px',
  1015. // overflow: "hidden",
  1016. // textOverflow: "ellipsis",
  1017. // whiteSpace: "nowrap",
  1018. // }}>{v}</div>
  1019. // </Tooltip>
  1020. // )
  1021. },
  1022. {
  1023. title: "特别说明",
  1024. dataIndex: "specialComment",
  1025. key: "specialComment",
  1026. isNoD: true,
  1027. },
  1028. {
  1029. title: "订单说明",
  1030. dataIndex: "orderRemarks",
  1031. key: "orderRemarks",
  1032. isNoD: true,
  1033. },
  1034. {
  1035. title: "评分及时间",
  1036. dataIndex: "scoreNumber",
  1037. key: "scoreNumber",
  1038. width: 80,
  1039. onCellClick: (record, e) => {
  1040. e.stopPropagation();
  1041. onCellClick(record)
  1042. },
  1043. render: (value, record) => {
  1044. return (
  1045. <div>
  1046. <div>{value}分</div>
  1047. <div>{record.scoreTime}</div>
  1048. </div>
  1049. );
  1050. }
  1051. },
  1052. {
  1053. title: "满意度调查表",
  1054. dataIndex: "formRetrieve",
  1055. key: "formRetrieve",
  1056. render: (value, record) => {
  1057. return (
  1058. <div style={{ maxWidth: "110px" }}>
  1059. {getFormRetrieves(value, record.satisfactionDegree)}
  1060. {(value == 0 || value == 1) && <Button type="primary">{value == 0 ? "已发送" : value == 1 && "上传回收表"}</Button>}
  1061. </div>
  1062. );
  1063. }
  1064. },
  1065. ];
  1066. // 审计
  1067. const audit = (onCellClick) => [
  1068. {
  1069. title: "序号",
  1070. dataIndex: "key",
  1071. key: "key",
  1072. isNoD: true,
  1073. },
  1074. {
  1075. title: "特批类型",
  1076. dataIndex: "type",
  1077. key: "type",
  1078. width: 110,
  1079. render: (text, record) => {
  1080. return (
  1081. <span>
  1082. {getApprovedType(text ? text.split(",").map(Number) : [], record.typeExplain)}
  1083. </span>
  1084. );
  1085. },
  1086. },
  1087. {
  1088. title: "派单时间",
  1089. dataIndex: "distributionTime",
  1090. key: "distributionTime",
  1091. width: 80,
  1092. },
  1093. {
  1094. title: "派单省份",
  1095. dataIndex: "province",
  1096. key: "province"
  1097. },
  1098. {
  1099. title: "订单部门",
  1100. dataIndex: "depName",
  1101. key: "depName",
  1102. isNoD: true,
  1103. },
  1104. {
  1105. title: "营销员",
  1106. dataIndex: "salesmanName",
  1107. key: "salesmanName"
  1108. },
  1109. {
  1110. title: "合同编号",
  1111. dataIndex: "contractNo",
  1112. key: "contractNo"
  1113. },
  1114. {
  1115. title: "订单编号",
  1116. dataIndex: "orderNo",
  1117. key: "orderNo"
  1118. },
  1119. {
  1120. title: "签单客户",
  1121. dataIndex: "userName",
  1122. key: "userName"
  1123. },
  1124. {
  1125. title: "项目类型",
  1126. dataIndex: "cname",
  1127. key: "cname"
  1128. },
  1129. {
  1130. title: "项目名称",
  1131. dataIndex: "pname",
  1132. key: "pname"
  1133. },
  1134. {
  1135. title: "数量",
  1136. dataIndex: "commodityQuantity",
  1137. key: "commodityQuantity"
  1138. },
  1139. {
  1140. title: "服务类型",
  1141. dataIndex: "serviceType",
  1142. key: "aserviceType",
  1143. width: 150,
  1144. },
  1145. {
  1146. title: "服务项目",
  1147. dataIndex: "serviceProject",
  1148. key: "serviceProject",
  1149. width: 200,
  1150. isNoD: true,
  1151. },
  1152. {
  1153. title: "上年度总资产(万元)",
  1154. dataIndex: "lastYearCapital",
  1155. key: "lastYearCapital",
  1156. width: 70,
  1157. render: (value, record) => {
  1158. return (
  1159. <div>
  1160. {value}
  1161. {record.lastYear && <div>{"(" + record.lastYear + "年)"}</div>}
  1162. </div>
  1163. )
  1164. }
  1165. },
  1166. {
  1167. title: "上年度总收入(万元)",
  1168. dataIndex: "lastYearIncome",
  1169. key: "lastYearIncome",
  1170. width: 70,
  1171. render: (value, record) => {
  1172. return (
  1173. <div>
  1174. {value}
  1175. {record.lastYear && <div>{"(" + record.lastYear + "年)"}</div>}
  1176. </div>
  1177. )
  1178. }
  1179. },
  1180. {
  1181. title: "负责部门",
  1182. dataIndex: "techDepName",
  1183. key: "techDepName",
  1184. isNoD: true,
  1185. },
  1186. {
  1187. title: "咨询师/咨询经理",
  1188. dataIndex: "techName",
  1189. key: "techName"
  1190. },
  1191. //0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单
  1192. {
  1193. title: "项目状态",
  1194. dataIndex: "projectStatus",
  1195. key: "projectStatus",
  1196. render: (value, record) => {
  1197. return (
  1198. <div style={{ minWidth: "80px" }}>{getProjectName(value)}</div>
  1199. );
  1200. }
  1201. },
  1202. {
  1203. title: "项目金额",
  1204. dataIndex: "commodityPrice",
  1205. key: "commodityPrice"
  1206. },
  1207. // {
  1208. // title: "服务年限",
  1209. // dataIndex: "serviceLife",
  1210. // key: "serviceLife",
  1211. // render: (text, record) => {
  1212. // return (
  1213. // <div>{!!text && JSON.parse(text).toString()}</div>
  1214. // );
  1215. // }
  1216. // },
  1217. {
  1218. title: "项目说明",
  1219. dataIndex: "taskComment",
  1220. key: "taskComment",
  1221. width: 250,
  1222. // render: (v) => (
  1223. // <Tooltip placement="topRight" title={v} overlayStyle={{
  1224. // wordBreak: 'break-all'
  1225. // }}>
  1226. // <div style={{
  1227. // maxWidth: '120px',
  1228. // overflow: "hidden",
  1229. // textOverflow: "ellipsis",
  1230. // whiteSpace: "nowrap",
  1231. // }}>{v}</div>
  1232. // </Tooltip>
  1233. // )
  1234. },
  1235. {
  1236. title: "特别说明",
  1237. dataIndex: "specialComment",
  1238. key: "specialComment",
  1239. isNoD: true,
  1240. },
  1241. {
  1242. title: "订单说明",
  1243. dataIndex: "orderRemarks",
  1244. key: "orderRemarks",
  1245. isNoD: true,
  1246. },
  1247. {
  1248. title: "评分及时间",
  1249. dataIndex: "scoreNumber",
  1250. key: "scoreNumber",
  1251. width: 80,
  1252. onCellClick: (record, e) => {
  1253. e.stopPropagation();
  1254. onCellClick(record)
  1255. },
  1256. render: (value, record) => {
  1257. return (
  1258. <div>
  1259. <div>{value}分</div>
  1260. <div>{record.scoreTime}</div>
  1261. </div>
  1262. );
  1263. }
  1264. },
  1265. {
  1266. title: "满意度调查表",
  1267. dataIndex: "formRetrieve",
  1268. key: "formRetrieve",
  1269. render: (value, record) => {
  1270. return (
  1271. <div style={{ maxWidth: "110px" }}>
  1272. {getFormRetrieves(value, record.satisfactionDegree)}
  1273. {(value == 0 || value == 1) && <Button type="primary">{value == 0 ? "已发送" : value == 1 && "上传回收表"}</Button>}
  1274. </div>
  1275. );
  1276. }
  1277. },
  1278. ];
  1279. // 通用表
  1280. const currency = (onCellClick) => [
  1281. {
  1282. title: "序号",
  1283. dataIndex: "key",
  1284. key: "key",
  1285. isNoD: true,
  1286. },
  1287. {
  1288. title: "特批类型",
  1289. dataIndex: "type",
  1290. key: "type",
  1291. width: 110,
  1292. render: (text, record) => {
  1293. return (
  1294. <span>
  1295. {getApprovedType(text ? text.split(",").map(Number) : [], record.typeExplain)}
  1296. </span>
  1297. );
  1298. },
  1299. },
  1300. {
  1301. title: "派单时间",
  1302. dataIndex: "distributionTime",
  1303. key: "distributionTime",
  1304. width: 80,
  1305. },
  1306. {
  1307. title: "派单省份",
  1308. dataIndex: "province",
  1309. key: "province"
  1310. },
  1311. {
  1312. title: "订单部门",
  1313. dataIndex: "depName",
  1314. key: "depName",
  1315. isNoD: true,
  1316. },
  1317. {
  1318. title: "营销员",
  1319. dataIndex: "salesmanName",
  1320. key: "salesmanName"
  1321. },
  1322. {
  1323. title: "合同编号",
  1324. dataIndex: "contractNo",
  1325. key: "contractNo"
  1326. },
  1327. {
  1328. title: "订单编号",
  1329. dataIndex: "orderNo",
  1330. key: "orderNo"
  1331. },
  1332. {
  1333. title: "签单客户",
  1334. dataIndex: "userName",
  1335. key: "userName"
  1336. },
  1337. {
  1338. title: "项目类型",
  1339. dataIndex: "cname",
  1340. key: "cname"
  1341. },
  1342. {
  1343. title: "项目名称",
  1344. dataIndex: "pname",
  1345. key: "pname"
  1346. },
  1347. {
  1348. title: "数量",
  1349. dataIndex: "commodityQuantity",
  1350. key: "commodityQuantity"
  1351. },
  1352. {
  1353. title: "服务类型",
  1354. dataIndex: "serviceType",
  1355. key: "aserviceType",
  1356. width: 150,
  1357. },
  1358. {
  1359. title: "服务项目",
  1360. dataIndex: "serviceProject",
  1361. key: "serviceProject",
  1362. width: 200,
  1363. isNoD: true,
  1364. },
  1365. {
  1366. title: "负责部门",
  1367. dataIndex: "techDepName",
  1368. key: "techDepName",
  1369. isNoD: true,
  1370. },
  1371. {
  1372. title: "咨询师/咨询经理",
  1373. dataIndex: "techName",
  1374. key: "techName"
  1375. },
  1376. //0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单
  1377. {
  1378. title: "项目状态",
  1379. dataIndex: "projectStatus",
  1380. key: "projectStatus",
  1381. render: (value, record) => {
  1382. return (
  1383. <div style={{ minWidth: "80px" }}>{getProjectName(value)}</div>
  1384. );
  1385. }
  1386. },
  1387. {
  1388. title: "项目金额",
  1389. dataIndex: "commodityPrice",
  1390. key: "commodityPrice"
  1391. },
  1392. // {
  1393. // title: "服务年限",
  1394. // dataIndex: "serviceLife",
  1395. // key: "serviceLife",
  1396. // render: (text, record) => {
  1397. // return (
  1398. // <div>{!!text && JSON.parse(text).toString()}</div>
  1399. // );
  1400. // }
  1401. // },
  1402. {
  1403. title: "项目说明",
  1404. dataIndex: "taskComment",
  1405. key: "taskComment",
  1406. width: 250,
  1407. // render: (v) => (
  1408. // <Tooltip placement="topRight" title={v} overlayStyle={{
  1409. // wordBreak: 'break-all'
  1410. // }}>
  1411. // <div style={{
  1412. // maxWidth: '120px',
  1413. // overflow: "hidden",
  1414. // textOverflow: "ellipsis",
  1415. // whiteSpace: "nowrap",
  1416. // }}>{v}</div>
  1417. // </Tooltip>
  1418. // )
  1419. },
  1420. {
  1421. title: "特别说明",
  1422. dataIndex: "specialComment",
  1423. key: "specialComment",
  1424. isNoD: true,
  1425. },
  1426. {
  1427. title: "订单说明",
  1428. dataIndex: "orderRemarks",
  1429. key: "orderRemarks",
  1430. isNoD: true,
  1431. },
  1432. {
  1433. title: "评分及时间",
  1434. dataIndex: "scoreNumber",
  1435. key: "scoreNumber",
  1436. width: 80,
  1437. onCellClick: (record, e) => {
  1438. e.stopPropagation();
  1439. onCellClick(record)
  1440. },
  1441. render: (value, record) => {
  1442. return (
  1443. <div>
  1444. <div>{value}分</div>
  1445. <div>{record.scoreTime}</div>
  1446. </div>
  1447. );
  1448. }
  1449. },
  1450. {
  1451. title: "满意度调查表",
  1452. dataIndex: "formRetrieve",
  1453. key: "formRetrieve",
  1454. render: (value, record) => {
  1455. return (
  1456. <div style={{ maxWidth: "110px" }}>
  1457. {getFormRetrieves(value, record.satisfactionDegree)}
  1458. {(value == 0 || value == 1) && <Button type="primary">{value == 0 ? "已发送" : value == 1 && "上传回收表"}</Button>}
  1459. </div>
  1460. );
  1461. }
  1462. },
  1463. ];
  1464. export {
  1465. member,
  1466. highTechColumns,
  1467. doubleSoft,
  1468. softWriting,
  1469. patent,
  1470. audit,
  1471. currency,
  1472. }