highTechConfig.jsx 30 KB

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