highTechConfig.jsx 27 KB

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