highTechConfig.jsx 26 KB

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