taskCount.jsx 85 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474
  1. import React from 'react';
  2. import { AutoComplete, Button, Input, Spin, Table, message, DatePicker, Upload, Form, Modal, Tabs, Select, Tag, Tooltip } from 'antd';
  3. import $ from 'jquery/src/ajax';
  4. import moment from 'moment';
  5. import {
  6. getLiquidationStatus,
  7. getProcessStatus,
  8. splitUrl,
  9. getboutique,
  10. getTaskStatus,
  11. getApproval,
  12. getprovince,
  13. ShowModal,
  14. getProjectStatus,
  15. getProjectName,
  16. download,
  17. } from "@/tools.js";
  18. import ShowModalDiv from "@/showModal.jsx";
  19. import ResolutionDetail from "@/resolutionDetail";
  20. import OrderRiZi from "@/orderRiZi.jsx";
  21. import { ChooseList } from "../../order/orderNew/chooseList";
  22. import PatentSchedule from './patentSchedule';
  23. import DeclarationProgress from "../../../common/declarationProgress";
  24. import ProjectDetailsReadOnly from "../../../common/projectDetailsReadOnly";
  25. import NewEditProject from "../../../common/projectOperation/newEditProject";
  26. import OrderItemStatus from "../../../common/orderItemStatus";
  27. import EnterpriseNameChange from "../../../common/enterpriseNameChange";
  28. const { TabPane } = Tabs
  29. const IntentionCustomer = Form.create()(
  30. React.createClass({
  31. loadData(pageNo) {
  32. this.setState({
  33. visitModul: false,
  34. loadingA: true,
  35. ispage: pageNo,
  36. modalVisible: false
  37. });
  38. let nameText = this.state.SuperArr;
  39. let superText =
  40. this.state.cid && typeof this.state.cid != "object"
  41. ? nameText[parseInt(this.state.cid)].id
  42. : "";
  43. if (superText) {
  44. $.ajax({
  45. method: "get",
  46. dataType: "json",
  47. crossDomain: false,
  48. url: globalConfig.context + "/api/admin/orderProject/taskHoursList",
  49. data: {
  50. pageNo: pageNo || 1,
  51. pageSize: this.state.pagination.pageSize,
  52. name: this.state.customerName, //名称
  53. taskId: this.state.idSearch, //订单编号
  54. orderNo: this.state.orderNoSearch,
  55. starTime: this.state.releaseDate[0], //开始时间
  56. endTime: this.state.releaseDate[1], //结束时间
  57. contractNo: this.state.contractNoSearch,
  58. cid: superText, //业务分类
  59. depId: this.state.departmenttList, //部门ID
  60. outsource: this.state.outsourceSearch,
  61. thchId: this.state.thchId,//咨询师id
  62. },
  63. success: function (data) {
  64. let theArr = [];
  65. if (data.error.length || data.data.list == "") {
  66. if (data.error && data.error.length) {
  67. message.warning(data.error[0].message);
  68. }
  69. } else {
  70. for (let i = 0; i < data.data.list.length; i++) {
  71. let thisdata = data.data.list[i];
  72. theArr.push({
  73. key: i,
  74. id: thisdata.id, //ID
  75. orderNo: thisdata.orderNo, //订单编号
  76. taskName: thisdata.taskName, //任务名称
  77. userName: thisdata.userName, //客户名称
  78. cname: thisdata.cname, //项目品类
  79. taskStatus: thisdata.taskStatus, //任务状态
  80. receiverName: thisdata.receiverName, //负责人
  81. hours: thisdata.hours, //任务工时
  82. depName: thisdata.depName, //派单公司
  83. contractNo: thisdata.contractNo,
  84. signTime: thisdata.signTime,
  85. creteTime: thisdata.creteTime,
  86. projectStatus: thisdata.projectStatus,
  87. commodityPrice: thisdata.commodityPrice, //价格
  88. commodityQuantity: thisdata.commodityQuantity, //数量
  89. salesmanName: thisdata.salesmanName, //订单负责人
  90. taskDistributionTime: thisdata.taskDistributionTime,
  91. taskEndTime: thisdata.taskEndTime,
  92. outsource: thisdata.outsource,
  93. splitStatus: thisdata.splitStatus,
  94. splitSuper: thisdata.splitSuper,
  95. splitId: thisdata.splitId
  96. });
  97. }
  98. this.state.pagination.total = data.data.totalCount;
  99. this.state.pagination.current = data.data.pageNo;
  100. }
  101. if (data.data && data.data.list && !data.data.list.length) {
  102. this.state.pagination.total = 0;
  103. }
  104. this.setState({
  105. dataSource: theArr,
  106. pageNo: pageNo,
  107. pagination: this.state.pagination,
  108. selectedRowKeys: []
  109. });
  110. }.bind(this)
  111. }).always(
  112. function () {
  113. this.setState({
  114. loadingA: false
  115. });
  116. }.bind(this)
  117. );
  118. } else {
  119. $.ajax({
  120. method: "get",
  121. dataType: "json",
  122. crossDomain: false,
  123. url: globalConfig.context + "/api/admin/orderProject/taskHoursList",
  124. data: {
  125. pageNo: pageNo || 1,
  126. pageSize: this.state.pagination.pageSize,
  127. name: this.state.customerName, //名称
  128. taskId: this.state.idSearch, //订单编号
  129. orderNo: this.state.orderNoSearch,
  130. starTime: this.state.releaseDate[0], //开始时间
  131. endTime: this.state.releaseDate[1], //结束时间
  132. contractNo: this.state.contractNoSearch,
  133. depId: this.state.departmenttList, //部门ID
  134. outsource: this.state.outsourceSearch,
  135. thchId: this.state.thchId,//咨询师id
  136. },
  137. success: function (data) {
  138. let theArr = [];
  139. if (data.error.length || data.data.list == "") {
  140. if (data.error && data.error.length) {
  141. message.warning(data.error[0].message);
  142. }
  143. } else {
  144. for (let i = 0; i < data.data.list.length; i++) {
  145. let thisdata = data.data.list[i];
  146. thisdata.key = i;
  147. theArr.push(thisdata);
  148. }
  149. this.state.pagination.total = data.data.totalCount;
  150. this.state.pagination.current = data.data.pageNo;
  151. }
  152. if (data.data && data.data.list && !data.data.list.length) {
  153. this.state.pagination.total = 0;
  154. }
  155. this.setState({
  156. dataSource: theArr,
  157. pageNo: pageNo,
  158. pagination: this.state.pagination,
  159. selectedRowKeys: []
  160. });
  161. }.bind(this)
  162. }).always(
  163. function () {
  164. this.setState({
  165. loadingA: false
  166. });
  167. }.bind(this)
  168. );
  169. }
  170. },
  171. getInitialState() {
  172. return {
  173. page: 1,
  174. releaseDate: [],
  175. selectedRowKeys: [],
  176. timeRecordparse: {},
  177. orgCodeUrl: [],
  178. declarationBatch: 1,
  179. dataInfor: {},
  180. loadingA: false,
  181. paginations: false,
  182. pagination: {
  183. defaultCurrent: 1,
  184. defaultPageSize: 10,
  185. showQuickJumper: true,
  186. pageSize: 10,
  187. onChange: function (page) {
  188. this.loadData(page);
  189. }.bind(this),
  190. showTotal: function (total) {
  191. return "共" + total + "条数据";
  192. }
  193. },
  194. columns: [
  195. {
  196. title: "合同编号",
  197. dataIndex: "contractNo",
  198. key: "contractNo"
  199. },
  200. {
  201. title: "订单编号",
  202. dataIndex: "orderNo",
  203. key: "orderNo"
  204. },
  205. {
  206. title: "项目编号",
  207. dataIndex: "id",
  208. key: "id",
  209. render: (text, record) => {
  210. if (record.splitStatus == 2) {
  211. return <span>{record.splitSuper + "-" + record.splitId}</span>;
  212. } else {
  213. return text;
  214. }
  215. }
  216. },
  217. {
  218. title: "客户名称",
  219. dataIndex: "userName",
  220. key: "userName",
  221. render: text => {
  222. return (
  223. <Tooltip title={text}>
  224. <div style={{
  225. maxWidth: '150px',
  226. overflow: 'hidden',
  227. textOverflow: "ellipsis",
  228. whiteSpace: 'nowrap',
  229. }}>{text}</div>
  230. </Tooltip>
  231. )
  232. }
  233. },
  234. {
  235. title: "订单部门",
  236. dataIndex: "depName",
  237. key: "depName"
  238. },
  239. {
  240. title: "订单负责人",
  241. dataIndex: "salesmanName",
  242. key: "salesmanName"
  243. },
  244. {
  245. title: "项目类别",
  246. dataIndex: "cname",
  247. key: "cname"
  248. },
  249. {
  250. title: "项目名称",
  251. dataIndex: "taskName",
  252. key: "taskName"
  253. },
  254. {
  255. title: "项目负责人",
  256. dataIndex: "receiverName",
  257. key: "receiverName"
  258. },
  259. {
  260. title: "项目价格(万元)",
  261. dataIndex: "commodityPrice",
  262. key: "commodityPrice"
  263. },
  264. {
  265. title: "实际成本(万元)",
  266. dataIndex: "costAmount",
  267. key: "costAmount"
  268. },
  269. {
  270. title: "已付成本(万元)",
  271. dataIndex: "partyAmount",
  272. key: "partyAmount"
  273. },
  274. {
  275. title: "数量(个)",
  276. dataIndex: "commodityQuantity",
  277. key: "commodityQuantity"
  278. },
  279. {
  280. title: "任务状态",
  281. dataIndex: "taskStatus",
  282. key: "taskStatus",
  283. render: text => {
  284. return getTaskStatus(text);
  285. }
  286. },
  287. {
  288. title: "项目状态",
  289. dataIndex: "projectStatus",
  290. key: "projectStatus",
  291. render: text => {
  292. return getProjectName(text);
  293. }
  294. },
  295. {
  296. title: "工时",
  297. dataIndex: "hours",
  298. key: "hours"
  299. },
  300. {
  301. title: "是否外包",
  302. dataIndex: "outsource",
  303. key: "outsource",
  304. render: text => {
  305. if (text == 0) {
  306. return "否";
  307. } else if (text == 1) {
  308. return "是";
  309. }
  310. }
  311. },
  312. {
  313. title: "签单日期",
  314. dataIndex: "signTime",
  315. key: "signTime"
  316. },
  317. {
  318. title: "派单日期",
  319. dataIndex: "creteTime",
  320. key: "creteTime"
  321. },
  322. {
  323. title: "分配时间",
  324. dataIndex: "taskDistributionTime",
  325. key: "taskDistributionTime"
  326. },
  327. {
  328. title: "完成时间",
  329. dataIndex: "taskEndTime",
  330. key: "taskEndTime"
  331. }
  332. ],
  333. data: [],
  334. dataSource: [],
  335. columnsX: [
  336. {
  337. title: "业务项目名称",
  338. dataIndex: "commodityName",
  339. key: "commodityName",
  340. render: (text, record) => {
  341. return (
  342. <span>{text}<span style={{ color: "red" }}>{record.patentTypeName}</span></span>
  343. )
  344. }
  345. },
  346. {
  347. title: "项目类别",
  348. dataIndex: "cname",
  349. key: "cname"
  350. },
  351. {
  352. title: "项目数量",
  353. dataIndex: "commodityQuantity",
  354. key: "commodityQuantity",
  355. render: (text, record) => {
  356. if (record.splitStatus == 1) {
  357. return (
  358. <span>
  359. {text}{" "}
  360. <Tag
  361. color="#108ee9"
  362. onClick={e => {
  363. e.stopPropagation();
  364. this.showRes(record);
  365. }}
  366. >
  367. 已拆
  368. </Tag>
  369. </span>
  370. );
  371. } else {
  372. return text;
  373. }
  374. }
  375. },
  376. {
  377. title: "金额(万元)",
  378. dataIndex: "commodityPrice",
  379. key: "commodityPrice"
  380. },
  381. {
  382. title: "负责人",
  383. dataIndex: "contacts",
  384. key: "contacts"
  385. },
  386. {
  387. title: "负责人电话",
  388. dataIndex: "contactsMobile",
  389. key: "contactsMobile"
  390. },
  391. {
  392. title: "主要项目",
  393. dataIndex: "main",
  394. key: "main",
  395. render: text => {
  396. return text ? "是" : "否";
  397. }
  398. },
  399. {
  400. title: "总年限",
  401. dataIndex: "yearSum",
  402. key: "yearSum",
  403. render: (text, record) => {
  404. return (
  405. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  406. );
  407. }
  408. },
  409. {
  410. title: "年限",
  411. dataIndex: "serviceLife",
  412. key: "serviceLife",
  413. render: (text, record) => {
  414. return (
  415. <div>{!!text && JSON.parse(text).toString()}</div>
  416. );
  417. }
  418. },
  419. {
  420. title: "本次派单",
  421. dataIndex: "serviceYear",
  422. key: "serviceYear",
  423. render: (text, record) => {
  424. return (
  425. <div>{!text ? "" : text}</div>
  426. );
  427. }
  428. },
  429. {
  430. title: "项目说明",
  431. dataIndex: "taskComment",
  432. key: "taskComment",
  433. render: text => {
  434. return (
  435. <Tooltip title={text}>
  436. <div
  437. style={{
  438. width: 100,
  439. overflow: "hidden",
  440. whiteSpace: "nowrap",
  441. textOverflow: "ellipsis",
  442. }}
  443. >{text}</div>
  444. </Tooltip>
  445. )
  446. }
  447. }
  448. ],
  449. columnsA: [
  450. {
  451. title: "流程",
  452. dataIndex: "content",
  453. key: "content",
  454. align: "center"
  455. },
  456. {
  457. title: "操作人",
  458. dataIndex: "aName",
  459. key: "aName",
  460. align: "center"
  461. },
  462. {
  463. title: "时间",
  464. dataIndex: "createTimes",
  465. key: "createTimes",
  466. align: "center"
  467. }
  468. ],
  469. dataSourceX: [],
  470. dataSourceA: [],
  471. ContactsLists: [
  472. {
  473. title: "批次",
  474. dataIndex: "num",
  475. key: "num"
  476. },
  477. {
  478. title: "下证时间",
  479. dataIndex: "licenceTimes",
  480. key: "licenceTimes"
  481. },
  482. {
  483. title: "下证数量",
  484. dataIndex: "alreadyNumber",
  485. key: "alreadyNumber"
  486. },
  487. {
  488. title: "未下证数量",
  489. dataIndex: "notCount",
  490. key: "notCount"
  491. }
  492. ]
  493. };
  494. },
  495. departmentList() {
  496. this.setState({
  497. loading: true
  498. });
  499. $.ajax({
  500. method: "get",
  501. dataType: "json",
  502. crossDomain: false,
  503. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  504. data: {},
  505. success: function (data) {
  506. let thedata = data.data;
  507. let theArr = [];
  508. if (!thedata) {
  509. if (data.error && data.error.length) {
  510. message.warning(data.error[0].message);
  511. }
  512. } else {
  513. thedata.map(function (item, index) {
  514. theArr.push({
  515. key: index,
  516. name: item.name,
  517. id: item.id
  518. });
  519. });
  520. }
  521. this.setState({
  522. departmentArr: theArr
  523. });
  524. }.bind(this)
  525. }).always(
  526. function () {
  527. this.setState({
  528. loading: false
  529. });
  530. }.bind(this)
  531. );
  532. },
  533. //页面加载函数
  534. componentWillMount() {
  535. this.loadData();
  536. this.selectSuperId();
  537. this.departmentList();
  538. },
  539. // //整行点击
  540. tableRowClick(record) {
  541. this.state.RowData = record;
  542. if (record.taskName.substring(0, 5) === "软件著作权") {
  543. this.setState({
  544. speVisible: true,
  545. id: record.id,
  546. dataArr: record,
  547. commodityQuantity: record.commodityQuantity
  548. });
  549. } else {
  550. this.setState({
  551. visible: true
  552. });
  553. }
  554. this.setState({
  555. isIso: record.taskName.indexOf("贯标") !== -1,
  556. })
  557. this.xiangqing(record.id, record.taskName);
  558. this.xiangqings(record.orderNo);
  559. this.xiangmu(record.orderNo);
  560. this.loaduserss(record);
  561. },
  562. //订单详情
  563. xiangqing(id) {
  564. $.ajax({
  565. method: "get",
  566. dataType: "json",
  567. crossDomain: false,
  568. url: globalConfig.context + "/api/admin/orderProject/orderTaskDetail",
  569. data: {
  570. id: id
  571. },
  572. success: function (data) {
  573. if (data.error.length || data.data.list == "") {
  574. if (data.error && data.error.length) {
  575. message.warning(data.error[0].message);
  576. }
  577. } else {
  578. let thisdata = data.data;
  579. this.setState({
  580. certificationCorporate: thisdata.certificationCorporate,//认证费公司
  581. certificationFee: thisdata.certificationFee,//认证费
  582. ifCertificationFee: thisdata.ifCertificationFee,//是否包含认证费
  583. id: thisdata.id, //ID
  584. orderNo: thisdata.orderNo, //订单编号
  585. userName: thisdata.userName, //客户名称
  586. taskName: thisdata.taskName, //任务名称
  587. cname: thisdata.cname, //项目品类
  588. contractNo: thisdata.contractNo, //合同编号
  589. projectStatus: thisdata.projectStatus, //项目状态
  590. taskStatus: thisdata.taskStatus, //任务状态
  591. taskDate: thisdata.taskDate, //分配时间
  592. taskComment: thisdata.taskComment, //说明
  593. attachmentUrl: thisdata.attachmentUrl
  594. ? splitUrl(
  595. thisdata.attachmentUrl,
  596. ",",
  597. globalConfig.avatarHost + "/upload"
  598. )
  599. : [], //图片地址
  600. salesmanName: thisdata.salesmanName, //订单负责人
  601. startDate: thisdata.startDate, //启动日期
  602. endDate: thisdata.endDate, //结束日期
  603. acceptDate: thisdata.acceptDate, //受理日期
  604. reviewDate: thisdata.reviewDate, //评审日期
  605. publicityDate: thisdata.publicityDate, //公示日期
  606. licenceDate: thisdata.licenceDate, //发证日期
  607. contacts: thisdata.contacts, //联系人
  608. contactMobile: thisdata.contactMobile, //联系人电话
  609. legalPerson: thisdata.legalPerson, //法人
  610. legalPersonTel: thisdata.legalPersonTel, //法人电话
  611. certificateNumber: thisdata.certificateNumber, //证书编号
  612. status: thisdata.status, //状态
  613. formRetrieve: thisdata.formRetrieve, //满意度表格
  614. taskRefund: thisdata.taskRefund, //退单
  615. refundContent: thisdata.refundContent, //退单信息
  616. retrieveContent: thisdata.retrieveContent, //回收信息
  617. arrivalMoney: thisdata.arrivalMoney, //是否到款
  618. setUpAmount: thisdata.setUpAmount, //立项金额
  619. declareUser: thisdata.declareUser, //账号
  620. declarePwd: thisdata.declarePwd, //密码
  621. depName: thisdata.depName, //订单部门
  622. outsourceName: thisdata.outsourceName, //外包公司名称
  623. outsourcePrice: thisdata.outsourcePrice, //外包价格
  624. splitStatus: thisdata.splitStatus, //是否为子项目 2是 1主项目
  625. splitSuper: thisdata.splitSuper,
  626. splitId: thisdata.splitId,
  627. declarationBatch: thisdata.declarationBatch,
  628. bpType: thisdata.bpType,//0 正常 1专利 2软著 3审计 4双软 5高新 6商标
  629. cSort: thisdata.sort,
  630. specialComment: thisdata.specialComment,
  631. urgentDay: thisdata.urgentDay, //有无材料
  632. ifMaterial: thisdata.ifMaterial, //加急情况
  633. spotCheckStatus: thisdata.spotCheckStatus,
  634. setUpStatus: thisdata.setUpStatus,
  635. setUpTime: thisdata.setUpTime,
  636. highTechStatus: thisdata.highTechStatus,
  637. acceptCount: thisdata.acceptCount, //受理数
  638. certificatesCount: thisdata.certificatesCount, //授权数
  639. rejectCount: thisdata.rejectCount, //驳回数
  640. commodityQuantity: thisdata.commodityQuantity, //派单项目数
  641. timeRecordparse: thisdata.timeRecord ? JSON.parse(thisdata.timeRecord) : {},//项目状态JSON
  642. });
  643. }
  644. }.bind(this)
  645. }).always(
  646. function () {
  647. this.setState({
  648. loading: false
  649. });
  650. }.bind(this)
  651. );
  652. },
  653. //订单详情
  654. xiangqings(orderNos) {
  655. $.ajax({
  656. method: "get",
  657. dataType: "json",
  658. crossDomain: false,
  659. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  660. data: {
  661. orderNo: orderNos
  662. },
  663. success: function (data) {
  664. let thisdata = data.data;
  665. let ProvinceCityArr = [];
  666. let ProvinceS = thisdata.locationProvince; //省
  667. let citys = thisdata.locationCity; //市
  668. let Areas = thisdata.locationArea; //区
  669. ProvinceCityArr.push(ProvinceS, citys, Areas);
  670. if (data.error.length || data.data.list == "") {
  671. if (data.error && data.error.length) {
  672. message.warning(data.error[0].message);
  673. }
  674. } else {
  675. this.setState({
  676. orderUid: thisdata.uid,
  677. examineName: thisdata.examineName,
  678. processStatus: thisdata.processStatus, //流程状态
  679. liquidationStatus: thisdata.liquidationStatus, //结算状态
  680. approval: thisdata.approval, //特批状态
  681. orderRemarks: thisdata.orderRemarks, //订单留言
  682. salesmanName: thisdata.salesmanName, //营销员名称
  683. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  684. financeName: thisdata.financeName, //财务名称
  685. financeMobile: thisdata.financeMobile, //财务电话
  686. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  687. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  688. nowFinance: thisdata.nowFinance, //财务名称
  689. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  690. depName: thisdata.depName, //订单部门
  691. locationProvince: thisdata.locationProvince,
  692. locationCity: thisdata.locationCity,
  693. locationArea: thisdata.locationArea,
  694. ProvinceCity: ProvinceCityArr,
  695. postalAddress: thisdata.postalAddress, //详细地址
  696. outsource: thisdata.outsource,
  697. deleteSign: thisdata.deleteSign,
  698. });
  699. }
  700. }.bind(this)
  701. }).always(
  702. function () {
  703. this.setState({
  704. loading: false
  705. });
  706. }.bind(this)
  707. );
  708. },
  709. //查看下证信息
  710. loaduserss(record) {
  711. $.ajax({
  712. method: "get",
  713. dataType: "json",
  714. crossDomain: false,
  715. url:
  716. globalConfig.context + "/api/admin/orderProject/selectTaskProgress",
  717. data: {
  718. tid: record.id
  719. },
  720. success: function (data) {
  721. let theArr = [];
  722. let thisData = [];
  723. if (!thisData) {
  724. if (data.error && data.error.length) {
  725. message.warning(data.error[0].message);
  726. }
  727. thisData = {};
  728. } else {
  729. for (let i = 0; i < data.data.length; i++) {
  730. thisData = data.data[i];
  731. theArr.push({
  732. num: i + 1,
  733. key: i,
  734. id: thisData.id, //编号
  735. alreadyNumber: thisData.alreadyNumber, //下证数
  736. licenceTimes: thisData.licenceTimes, //下证时间
  737. notCount: thisData.notCount, //未下证数
  738. flag: true
  739. });
  740. }
  741. this.setState({
  742. contactList: theArr
  743. });
  744. }
  745. }.bind(this)
  746. }).always(
  747. function () {
  748. this.setState({
  749. loading: false
  750. });
  751. }.bind(this)
  752. );
  753. },
  754. //操作日志
  755. caozuorizhi() {
  756. this.setState({
  757. visibleA: true
  758. });
  759. $.ajax({
  760. method: "get",
  761. dataType: "json",
  762. crossDomain: false,
  763. url: globalConfig.context + "/api/admin/orderProject/TaskLogList",
  764. data: {
  765. id: this.state.id
  766. },
  767. success: function (data) {
  768. let theArr = [];
  769. if (data.error.length || data.data.list == "") {
  770. if (data.error && data.error.length) {
  771. message.warning(data.error[0].message);
  772. }
  773. } else {
  774. for (let i = 0; i < data.data.length; i++) {
  775. let thisdata = data.data[i];
  776. theArr.push({
  777. key: i,
  778. id: thisdata.id, //日志ID
  779. content: thisdata.content, //流程
  780. taskId: thisdata.taskId, //任务ID
  781. aName: thisdata.aName, //负责人
  782. createTimes: thisdata.createTimes //时间
  783. });
  784. }
  785. }
  786. this.setState({
  787. dataSourceA: theArr
  788. });
  789. }.bind(this)
  790. }).always(
  791. function () {
  792. this.setState({
  793. loading: false
  794. });
  795. }.bind(this)
  796. );
  797. },
  798. //关闭操作工时
  799. visitCancelA() {
  800. this.setState({
  801. visibleA: false
  802. });
  803. },
  804. //项目列表
  805. xiangmu(orderNos) {
  806. $.ajax({
  807. method: "get",
  808. dataType: "json",
  809. crossDomain: false,
  810. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  811. data: {
  812. orderNo: orderNos
  813. },
  814. success: function (data) {
  815. let theArr = [];
  816. if (data.error.length || data.data.list == "") {
  817. if (data.error && data.error.length) {
  818. message.warning(data.error[0].message);
  819. }
  820. } else {
  821. for (let i = 0; i < data.data.length; i++) {
  822. let thisdata = data.data[i];
  823. thisdata.key = i;
  824. theArr.push(thisdata);
  825. }
  826. }
  827. this.setState({
  828. dataSourceX: theArr
  829. });
  830. }.bind(this)
  831. }).always(
  832. function () {
  833. this.setState({
  834. loading: false
  835. });
  836. }.bind(this)
  837. );
  838. },
  839. // 拆分详细
  840. showRes(record) {
  841. this.setState({
  842. resVisible: true,
  843. resRecord: record
  844. });
  845. },
  846. resCancel() {
  847. this.setState({
  848. resVisible: false
  849. });
  850. },
  851. //关闭输入理由框
  852. noCancel() {
  853. this.setState({
  854. noVisible: false
  855. });
  856. },
  857. //搜索
  858. search() {
  859. this.setState({
  860. //signBillVisible:false
  861. });
  862. this.loadData();
  863. },
  864. //重置
  865. reset() {
  866. this.setState({
  867. signBillVisible: false
  868. });
  869. this.state.auto = "";
  870. this.state.thchId = undefined;
  871. this.state.orderNo = undefined;
  872. this.state.customerName = undefined;
  873. this.state.releaseDate[0] = undefined;
  874. this.state.releaseDate[1] = undefined;
  875. this.state.orderNoSearch = undefined;
  876. this.state.departmenttList = [];
  877. this.state.cid = [];
  878. this.state.contractNoSearch = undefined;
  879. this.state.outsourceSearch = [];
  880. this.setState({
  881. urgentDay: '', //有无材料
  882. ifMaterial: '', //加急情况
  883. specialComment: '', //特别说明
  884. spotCheckStatus: '',
  885. setUpStatus: '',
  886. setUpTime: '',
  887. highTechStatus: '',
  888. })
  889. this.loadData();
  890. },
  891. resets() {
  892. this.state.orderNo = "";
  893. this.state.customerName = "";
  894. this.state.releaseDate[0] = undefined;
  895. this.state.releaseDate[1] = undefined;
  896. },
  897. getOrgCodeUrl(e) {
  898. this.setState({ orgCodeUrl: e });
  899. },
  900. setColor() {
  901. $(".userName span").after(
  902. "(<span class='ruanzhu'>软著数</span>/<span class='xiazheng'>下证数</span>)"
  903. );
  904. },
  905. closeDesc(e, s) {
  906. this.state.showDesc = e;
  907. if (s) {
  908. this.loadData(this.state.page);
  909. }
  910. },
  911. closeAssign(e, s) {
  912. this.state.roleName = "";
  913. this.state.assignVisible = e;
  914. if (s) {
  915. this.loadData(this.state.page);
  916. }
  917. },
  918. nextCancel() {
  919. this.setState({
  920. addnextVisible: false
  921. });
  922. },
  923. //点击打卡项目详情
  924. tableRowClickX(record) {
  925. this.setState({
  926. jid: record.id, //项目ID
  927. kid: record.commodityId, //商品ID
  928. commodityName: record.commodityName, //金额
  929. commodityPrice: record.commodityPrice, //金额
  930. commodityQuantity: record.commodityQuantity, //数量
  931. taskComment: record.taskComment, //备注
  932. main: record.main.toString(), //是否为主要
  933. addnextVisible: true,
  934. dataInfor: record,
  935. addState: 0
  936. });
  937. },
  938. //关闭详情
  939. visitCancel() {
  940. this.setState({
  941. visible: false,
  942. speVisible: false
  943. });
  944. this.resets();
  945. },
  946. visitOk() {
  947. this.setState({
  948. visible: false
  949. });
  950. this.resets();
  951. },
  952. //关闭详情
  953. visitCancels() {
  954. this.setState({
  955. visibles: false
  956. });
  957. this.resets();
  958. },
  959. //导出
  960. exportExec() {
  961. let nameText = this.state.SuperArr;
  962. let superText =
  963. this.state.cid && typeof this.state.cid != "object"
  964. ? nameText[parseInt(this.state.cid)].id
  965. : undefined;
  966. $.ajax({
  967. method: "get",
  968. dataType: "json",
  969. crossDomain: false,
  970. url: globalConfig.context + "/api/admin/orderProject/exportMyTaskList",
  971. data: {
  972. pageNo: 1,
  973. pageSize: 99999,
  974. name: this.state.customerName ? this.state.customerName : undefined, //订单负责人
  975. taskId: this.state.orderNo ? this.state.orderNo : undefined, //订单编号
  976. orderNo: this.state.orderNoSearch ? this.state.orderNoSearch : undefined,
  977. starTime: this.state.releaseDate[0]
  978. ? this.state.releaseDate[0]
  979. : undefined,
  980. endTime: this.state.releaseDate[1]
  981. ? this.state.releaseDate[1]
  982. : undefined,
  983. contractNo: this.state.contractNoSearch ? this.state.contractNoSearch : undefined,
  984. cid: superText, //业务分类
  985. depId: this.state.departmenttList ? this.state.departmenttList : undefined, //部门ID
  986. outsource: this.state.outsourceSearch ? this.state.outsourceSearch : undefined,
  987. thchId: this.state.thchId ? this.state.thchId : undefined,//咨询师id
  988. },
  989. success: function (data) {
  990. ShowModal(this);
  991. if (data.error && data.error.length) {
  992. message.warning(data.error[0].message);
  993. } else {
  994. download(data.data, true);
  995. }
  996. }.bind(this),
  997. }).always(
  998. function () {
  999. this.setState({
  1000. loading: false,
  1001. });
  1002. }.bind(this)
  1003. );
  1004. },
  1005. zzzzz() {
  1006. var data = {
  1007. name: this.state.customerName ? this.state.customerName : undefined, //订单负责人
  1008. taskId: this.state.orderNo ? this.state.orderNo : undefined, //订单编号
  1009. starTime: this.state.releaseDate[0]
  1010. ? this.state.releaseDate[0]
  1011. : undefined,
  1012. endTime: this.state.releaseDate[1]
  1013. ? this.state.releaseDate[1]
  1014. : undefined,
  1015. thchId: this.state.thchId ? this.state.thchId : undefined,//咨询师id
  1016. };
  1017. window.location.href =
  1018. globalConfig.context +
  1019. "/api/admin/orderProject/exportMyTaskList?" +
  1020. $.param(data);
  1021. },
  1022. visitOks() {
  1023. this.setState({
  1024. visibles: false
  1025. });
  1026. this.resets();
  1027. },
  1028. selectSuperId() {
  1029. this.state.data = [];
  1030. $.ajax({
  1031. method: "get",
  1032. dataType: "json",
  1033. crossDomain: false,
  1034. url: globalConfig.context + "/api/admin/ProjectSize/getAllCname",
  1035. data: {
  1036. flag: 0
  1037. },
  1038. success: function (data) {
  1039. let theArr = [];
  1040. let thedata = data.data;
  1041. if (!thedata) {
  1042. if (data.error && data.error.length) {
  1043. message.warning(data.error[0].message);
  1044. }
  1045. thedata = {};
  1046. }
  1047. var contactIds = [];
  1048. for (var i = 0; i < data.data.length; i++) {
  1049. let theData = data.data[i];
  1050. theArr.push(
  1051. <Select.Option value={i.toString()} key={theData.cname}>
  1052. {theData.cname}
  1053. </Select.Option>
  1054. );
  1055. }
  1056. this.setState({
  1057. SuperArr: thedata,
  1058. contactsOption: theArr,
  1059. orderStatusOptions: data.data
  1060. });
  1061. }.bind(this)
  1062. }).always(
  1063. function () {
  1064. this.loadData(this.state.ispage);
  1065. this.setState({
  1066. loading: false
  1067. });
  1068. }.bind(this)
  1069. );
  1070. },
  1071. rizhi() {
  1072. this.setState({
  1073. loading: true
  1074. });
  1075. $.ajax({
  1076. method: "get",
  1077. dataType: "json",
  1078. crossDomain: false,
  1079. url: "/api/admin/newOrder/selectOrderLog",
  1080. data: {
  1081. orderNo: this.state.orderNo
  1082. },
  1083. success: function (data) {
  1084. let theArr = [];
  1085. let thisData = data.data;
  1086. if (!thisData.length) {
  1087. if (data.error && data.error.length) {
  1088. message.warning(data.error[0].message);
  1089. }
  1090. thisData = {};
  1091. } else {
  1092. for (let i = 0; i < data.data.length; i++) {
  1093. let thisdata = data.data[i];
  1094. theArr.push({
  1095. processName: thisdata.processName,
  1096. adminName: thisdata.adminName,
  1097. createDate: thisdata.createDate,
  1098. remarks: thisdata.remarks
  1099. });
  1100. }
  1101. }
  1102. this.setState({
  1103. dataSourceY: theArr
  1104. });
  1105. }.bind(this)
  1106. }).always(
  1107. function () {
  1108. this.setState({
  1109. loading: false
  1110. });
  1111. }.bind(this)
  1112. );
  1113. },
  1114. closeOrderLog() {
  1115. this.setState({
  1116. avisible: false
  1117. });
  1118. },
  1119. getOrderLog() {
  1120. this.setState({
  1121. avisible: true
  1122. });
  1123. this.rizhi();
  1124. },
  1125. changeList(arr) {
  1126. const newArr = [];
  1127. this.state.columns.forEach(item => {
  1128. arr.forEach(val => {
  1129. if (val === item.title) {
  1130. newArr.push(item);
  1131. }
  1132. });
  1133. });
  1134. this.setState({
  1135. changeList: newArr
  1136. });
  1137. },
  1138. // 查询用户
  1139. supervisor(e) {
  1140. $.ajax({
  1141. method: "get",
  1142. dataType: "json",
  1143. crossDomain: false,
  1144. url: globalConfig.context + "/api/admin/customer/listAdminByName",
  1145. data: {
  1146. adminName: e,
  1147. },
  1148. success: function (data) {
  1149. let thedata = data.data;
  1150. if (!thedata) {
  1151. if (data.error && data.error.length) {
  1152. message.warning(data.error[0].message);
  1153. }
  1154. thedata = {};
  1155. }
  1156. this.setState({
  1157. customerArr: thedata,
  1158. });
  1159. }.bind(this),
  1160. }).always(
  1161. function () {
  1162. }.bind(this)
  1163. );
  1164. },
  1165. // 输入触发
  1166. httpChange(e) {
  1167. if (e.length >= 1) {
  1168. this.supervisor(e);
  1169. }
  1170. this.setState({
  1171. auto: e,
  1172. });
  1173. },
  1174. // 选中
  1175. selectAuto(value, options) {
  1176. let thchId = ""
  1177. let contactLists = this.state.customerArr || [];
  1178. if (value) {
  1179. contactLists.map(function (item) {
  1180. if (item.name == value.toString()) {
  1181. thchId = item.id;
  1182. }
  1183. });
  1184. }
  1185. this.setState({
  1186. auto: value,
  1187. thchId: thchId,
  1188. });
  1189. },
  1190. // 失去焦点
  1191. blurChange(e) {
  1192. let thchId = ""
  1193. let contactLists = this.state.customerArr || [];
  1194. if (e) {
  1195. contactLists.map(function (item) {
  1196. if (item.name == e.toString()) {
  1197. thchId = item.id;
  1198. }
  1199. });
  1200. }
  1201. this.setState({
  1202. thchId: thchId,
  1203. });
  1204. },
  1205. render() {
  1206. const dataSources = this.state.customerArr || [];
  1207. const options = dataSources.map((group) => (
  1208. <Select.Option key={group.id} value={group.name}>
  1209. {group.name}
  1210. </Select.Option>
  1211. ));
  1212. const formItemLayout = {
  1213. labelCol: { span: 8 },
  1214. wrapperCol: { span: 14 }
  1215. };
  1216. const utils = {
  1217. getSatisfaction: function (num) {
  1218. switch (num) {
  1219. case 0:
  1220. return "未收回";
  1221. case 1:
  1222. return "已收回";
  1223. default:
  1224. return "其它";
  1225. }
  1226. },
  1227. getChargeback: function (num) {
  1228. switch (num) {
  1229. case 0:
  1230. return "已完成";
  1231. case 1:
  1232. return "未完成";
  1233. default:
  1234. return "其它";
  1235. }
  1236. }
  1237. };
  1238. const FormItem = Form.Item;
  1239. const { RangePicker } = DatePicker;
  1240. const departmentArr = this.state.departmentArr || [];
  1241. const isWai = [
  1242. {
  1243. id: 0,
  1244. name: "非外包"
  1245. },
  1246. {
  1247. id: 1,
  1248. name: "外包"
  1249. }
  1250. ];
  1251. return (
  1252. <div className="user-content">
  1253. {this.state.resVisible ? (
  1254. <ResolutionDetail
  1255. cancel={this.resCancel}
  1256. detail={this.state.resRecord}
  1257. visible={this.state.resVisible}
  1258. id={this.state.resRecord.orderNo}
  1259. />
  1260. ) : (
  1261. ""
  1262. )}
  1263. <ShowModalDiv ShowModal={this.state.showModal} />
  1264. <div className="content-title" style={{ marginBottom: 10 }}>
  1265. <span style={{ fontWeight: 900, fontSize: 16 }}>工时数据统计</span>
  1266. </div>
  1267. <div className="user-search">
  1268. <Tabs
  1269. defaultActiveKey="1"
  1270. onChange={this.callback}
  1271. className="test"
  1272. >
  1273. <TabPane tab="搜索" key="1">
  1274. <Input
  1275. placeholder="客户名称"
  1276. style={{
  1277. width: "150px",
  1278. marginBottom: "10px",
  1279. marginTop: 10,
  1280. marginLeft: 10,
  1281. marginRight: 10,
  1282. }}
  1283. value={this.state.customerName}
  1284. onChange={(e) => {
  1285. this.setState({ customerName: e.target.value });
  1286. }}
  1287. />
  1288. <Input
  1289. placeholder="任务编号"
  1290. style={{ width: "150px", marginRight: 10 }}
  1291. value={this.state.idSearch}
  1292. onChange={(e) => {
  1293. this.setState({ idSearch: e.target.value });
  1294. }}
  1295. />
  1296. <Input
  1297. placeholder="订单编号"
  1298. style={{ width: "150px", marginRight: 10 }}
  1299. value={this.state.orderNoSearch}
  1300. onChange={(e) => {
  1301. this.setState({
  1302. orderNoSearch: e.target.value,
  1303. });
  1304. }}
  1305. />
  1306. <Input
  1307. placeholder="合同编号"
  1308. style={{ width: "150px", marginRight: 10 }}
  1309. value={this.state.contractNoSearch}
  1310. onChange={(e) => {
  1311. this.setState({
  1312. contractNoSearch: e.target.value,
  1313. });
  1314. }}
  1315. />
  1316. <Select
  1317. placeholder="订单部门"
  1318. style={{ width: 200, marginRight: 10 }}
  1319. value={this.state.departmenttList}
  1320. onChange={(e) => {
  1321. this.setState({ departmenttList: e });
  1322. }}
  1323. >
  1324. {departmentArr.map(function (item) {
  1325. return (
  1326. <Select.Option key={item.id}>{item.name}</Select.Option>
  1327. );
  1328. })}
  1329. </Select>
  1330. <Select
  1331. placeholder="项目类别"
  1332. style={{ width: "150", marginRight: "10px" }}
  1333. value={this.state.cid}
  1334. onChange={(e) => {
  1335. this.setState({ cid: e });
  1336. }}
  1337. notFoundContent="未获取到上级品类列表"
  1338. >
  1339. {this.state.contactsOption}
  1340. </Select>
  1341. <Select
  1342. placeholder="是否外包"
  1343. style={{ width: "150", marginRight: "10px" }}
  1344. value={this.state.outsourceSearch}
  1345. onChange={(e) => {
  1346. this.setState({ outsourceSearch: e });
  1347. }}
  1348. >
  1349. {isWai.map(function (item) {
  1350. return (
  1351. <Select.Option key={item.id}>{item.name}</Select.Option>
  1352. );
  1353. })}
  1354. </Select>
  1355. <span style={{ marginRight: "10px" }}>合同签订时间 :</span>
  1356. <RangePicker
  1357. value={[
  1358. this.state.releaseDate[0]
  1359. ? moment(this.state.releaseDate[0])
  1360. : null,
  1361. this.state.releaseDate[1]
  1362. ? moment(this.state.releaseDate[1])
  1363. : null,
  1364. ]}
  1365. onChange={(data, dataString) => {
  1366. this.setState({ releaseDate: dataString });
  1367. }}
  1368. />
  1369. <AutoComplete
  1370. className="certain-category-search"
  1371. dropdownClassName="certain-category-search-dropdown"
  1372. dropdownMatchSelectWidth={false}
  1373. style={{ width: 200, marginLeft: 10, marginBottom: 10 }}
  1374. dataSource={options}
  1375. placeholder='请输入咨询师/经理姓名'
  1376. value={this.state.auto}
  1377. onChange={this.httpChange}
  1378. filterOption={true}
  1379. onBlur={this.blurChange}
  1380. onSelect={this.selectAuto}
  1381. >
  1382. <Input />
  1383. </AutoComplete>
  1384. <Button
  1385. type="primary"
  1386. onClick={this.search}
  1387. style={{ marginLeft: 10, marginRight: 10 }}
  1388. >
  1389. 搜索
  1390. </Button>
  1391. <Button onClick={this.reset}>重置</Button>
  1392. </TabPane>
  1393. <TabPane tab="导出" key="2">
  1394. <Button
  1395. type="primary"
  1396. onClick={this.exportExec}
  1397. style={{ margin: 10 }}
  1398. >
  1399. 导出工时数据
  1400. </Button>
  1401. </TabPane>
  1402. <TabPane tab="更改表格显示数据" key="3">
  1403. <div style={{ marginLeft: 10 }}>
  1404. <ChooseList
  1405. columns={this.state.columns}
  1406. changeFn={this.changeList}
  1407. changeList={this.state.changeList}
  1408. top={55}
  1409. margin={11}
  1410. />
  1411. </div>
  1412. </TabPane>
  1413. </Tabs>
  1414. <div className="patent-table">
  1415. <Spin spinning={this.state.loadingA}>
  1416. <Table
  1417. columns={
  1418. this.state.changeList
  1419. ? this.state.changeList
  1420. : this.state.columns
  1421. }
  1422. dataSource={this.state.dataSource}
  1423. pagination={this.state.pagination}
  1424. onRowClick={this.tableRowClick.bind(this)}
  1425. scroll={{ x: "max-content", y: 0 }}
  1426. bordered
  1427. size="small"
  1428. />
  1429. </Spin>
  1430. </div>
  1431. </div>
  1432. <Modal
  1433. className="customeDetails"
  1434. footer=""
  1435. title="项目概况"
  1436. width="1200px"
  1437. visible={this.state.visible}
  1438. onOk={this.visitOk}
  1439. onCancel={this.visitCancel}
  1440. >
  1441. <Form
  1442. layout="horizontal"
  1443. onSubmit={this.handleSubmit}
  1444. id="demand-form"
  1445. style={{ paddingBottom: "00px" }}
  1446. >
  1447. <Spin spinning={this.state.loading}>
  1448. <div className="clearfix">
  1449. <div style={{ position: "absolute", top: '-52px', left: '81px', zIndex: 10000 }}>
  1450. <OrderItemStatus deleteSign={this.state.deleteSign} />
  1451. </div>
  1452. <div className="clearfix">
  1453. <FormItem
  1454. className="half-item"
  1455. {...formItemLayout}
  1456. label="项目状态"
  1457. >
  1458. <span>{getProjectName(parseInt(this.state.projectStatus))}</span>
  1459. <Button
  1460. type="primary"
  1461. size="small"
  1462. style={{ marginTop: '5px', position: 'absolute' }}
  1463. onClick={this.caozuorizhi}
  1464. >
  1465. 操作日志
  1466. </Button>
  1467. </FormItem>
  1468. <FormItem
  1469. className="half-item"
  1470. {...formItemLayout}
  1471. label="合同编号"
  1472. >
  1473. <span>{this.state.contractNo}</span>
  1474. </FormItem>
  1475. </div>
  1476. <div className="clearfix">
  1477. <FormItem
  1478. className="half-item"
  1479. {...formItemLayout}
  1480. label="是否特批"
  1481. >
  1482. <span>{getApproval(this.state.approval)}</span>
  1483. </FormItem>
  1484. <FormItem
  1485. className="half-item"
  1486. {...formItemLayout}
  1487. label="结算状态"
  1488. >
  1489. <span>
  1490. {getLiquidationStatus(this.state.liquidationStatus)}
  1491. </span>
  1492. </FormItem>
  1493. <FormItem
  1494. className="half-item"
  1495. {...formItemLayout}
  1496. label="流程状态"
  1497. >
  1498. <span>{getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}</span>
  1499. </FormItem>
  1500. <FormItem
  1501. className="half-item"
  1502. {...formItemLayout}
  1503. label="订单编号"
  1504. >
  1505. <span>{this.state.orderNo}</span>
  1506. </FormItem>
  1507. </div>
  1508. <div className="clearfix">
  1509. <FormItem
  1510. className="half-item"
  1511. {...formItemLayout}
  1512. label="满意度表格"
  1513. >
  1514. <span>
  1515. {utils.getSatisfaction(this.state.formRetrieve)}
  1516. </span>
  1517. </FormItem>
  1518. {
  1519. <FormItem
  1520. className="half-item"
  1521. {...formItemLayout}
  1522. label="(满意度)备注"
  1523. >
  1524. <span>{this.state.retrieveContent}</span>
  1525. </FormItem>
  1526. }
  1527. {/*<FormItem*/}
  1528. {/* className="half-item"*/}
  1529. {/* {...formItemLayout}*/}
  1530. {/* label="退单"*/}
  1531. {/*>*/}
  1532. {/* <span>{utils.getChargeback(this.state.taskRefund)}</span>*/}
  1533. {/*</FormItem>*/}
  1534. </div>
  1535. <div className="clearfix">
  1536. <div style={{
  1537. paddingLeft: '8%',
  1538. }}>
  1539. <div style={{ color: '#000', fontWeight: 500 }}>
  1540. 特别说明
  1541. <span style={{ color: '#58a3ff', }}>(针对项目的特殊情况说明)</span>
  1542. </div>
  1543. <div style={{
  1544. display: 'flex',
  1545. }}>
  1546. <span style={{ paddingRight: '10px', whiteSpace: "nowrap" }}>备注:</span>
  1547. <span style={{
  1548. flex: 1,
  1549. wordBreak: 'break-all',
  1550. }}>{this.state.specialComment}</span>
  1551. </div>
  1552. </div>
  1553. {
  1554. // <FormItem
  1555. // className="half-item"
  1556. // {...formItemLayout}
  1557. // label="(退单)备注"
  1558. // >
  1559. // <span>{this.state.refundContent}</span>
  1560. // </FormItem>
  1561. }
  1562. </div>
  1563. <div className="clearfix">
  1564. <h3 className="sub-title">任务信息</h3>
  1565. {/*0通用 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1566. {/*贯标需要显示*/}
  1567. {
  1568. this.state.isIso ?
  1569. <div>
  1570. <FormItem
  1571. className="half-item"
  1572. {...formItemLayout}
  1573. label="认证费"
  1574. >
  1575. <span>
  1576. {
  1577. this.state.ifCertificationFee === 1 ? '包含' : '不包含'
  1578. }
  1579. </span>
  1580. </FormItem>
  1581. {this.state.ifCertificationFee === 1 ? <FormItem
  1582. className="half-item"
  1583. {...formItemLayout}
  1584. label="认证费(万元)"
  1585. >
  1586. <span>
  1587. {
  1588. this.state.certificationFee
  1589. }
  1590. </span>
  1591. </FormItem> : null}
  1592. {this.state.ifCertificationFee === 1 ? <FormItem
  1593. className="half-item"
  1594. {...formItemLayout}
  1595. label=""
  1596. /> : null}
  1597. {this.state.ifCertificationFee === 1 ? <FormItem
  1598. className="half-item"
  1599. {...formItemLayout}
  1600. label="付款公司名称"
  1601. >
  1602. <span>
  1603. {this.state.certificationCorporate}
  1604. </span>
  1605. </FormItem> : null}
  1606. </div> : null
  1607. }
  1608. <FormItem
  1609. className="half-item"
  1610. {...formItemLayout}
  1611. label="任务编号"
  1612. >
  1613. <span>
  1614. {this.state.splitStatus == 2
  1615. ? this.state.splitSuper + "-" + this.state.splitId
  1616. : this.state.id}
  1617. </span>
  1618. </FormItem>
  1619. <FormItem
  1620. className="half-item"
  1621. {...formItemLayout}
  1622. label="任务名称"
  1623. >
  1624. <span>{this.state.taskName}</span>
  1625. </FormItem>
  1626. <FormItem
  1627. className="half-item"
  1628. {...formItemLayout}
  1629. label="任务状态"
  1630. >
  1631. <span>{getTaskStatus(this.state.taskStatus)}</span>
  1632. </FormItem>
  1633. <FormItem
  1634. className="half-item"
  1635. {...formItemLayout}
  1636. label="任务类别"
  1637. >
  1638. <span>{this.state.cname}</span>
  1639. </FormItem>
  1640. <FormItem
  1641. className="half-item"
  1642. {...formItemLayout}
  1643. label="证书编号"
  1644. >
  1645. <span>{this.state.certificateNumber}</span>
  1646. </FormItem>
  1647. </div>
  1648. {/*{this.state.outsource === 1 ? (*/}
  1649. {/* <div className="clearfix">*/}
  1650. {/* <h3 className="sub-title">外包信息</h3>*/}
  1651. {/* <FormItem*/}
  1652. {/* className="half-item"*/}
  1653. {/* {...formItemLayout}*/}
  1654. {/* label="外包公司"*/}
  1655. {/* >*/}
  1656. {/* <span>{this.state.outsourceName}</span>*/}
  1657. {/* </FormItem>*/}
  1658. {/* <FormItem*/}
  1659. {/* className="half-item"*/}
  1660. {/* {...formItemLayout}*/}
  1661. {/* label="外包成本(万元)"*/}
  1662. {/* >*/}
  1663. {/* <span>{this.state.outsourcePrice}</span>*/}
  1664. {/* </FormItem>*/}
  1665. {/* </div>*/}
  1666. {/*) : (*/}
  1667. {/* ""*/}
  1668. {/*)}*/}
  1669. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1670. <div className="clearfix">
  1671. <h3 className="sub-title">联系信息</h3>
  1672. <FormItem
  1673. className="half-item"
  1674. {...formItemLayout}
  1675. label="客户名称"
  1676. >
  1677. <span>{this.state.userName}</span>
  1678. <EnterpriseNameChange
  1679. type='journal'
  1680. style={{ marginLeft: 10 }}
  1681. enterpriseId={this.state.orderUid} />
  1682. </FormItem>
  1683. <FormItem
  1684. className="half-item"
  1685. {...formItemLayout}
  1686. label="企业法人"
  1687. >
  1688. <span>{this.state.legalPerson}</span>
  1689. </FormItem>
  1690. <FormItem
  1691. className="half-item"
  1692. {...formItemLayout}
  1693. label="法人电话"
  1694. >
  1695. <span>{this.state.legalPersonTel}</span>
  1696. </FormItem>
  1697. <FormItem
  1698. className="half-item"
  1699. {...formItemLayout}
  1700. label="客户联系人"
  1701. >
  1702. <span>{this.state.contacts}</span>
  1703. </FormItem>
  1704. <FormItem
  1705. className="half-item"
  1706. {...formItemLayout}
  1707. label="联系人电话"
  1708. >
  1709. <span>{this.state.contactMobile}</span>
  1710. </FormItem>
  1711. <FormItem
  1712. className="half-item"
  1713. {...formItemLayout}
  1714. label="企业地址"
  1715. >
  1716. <span>
  1717. {getprovince(this.state.locationProvince)}/
  1718. {getprovince(this.state.locationCity)}/
  1719. {getprovince(this.state.locationArea)}
  1720. </span>
  1721. </FormItem>
  1722. <FormItem
  1723. className="half-item"
  1724. {...formItemLayout}
  1725. label=""
  1726. ></FormItem>
  1727. <FormItem
  1728. className="half-item"
  1729. {...formItemLayout}
  1730. label="详细地址"
  1731. >
  1732. <span>{this.state.postalAddress}</span>
  1733. </FormItem>
  1734. </div>
  1735. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1736. <div className="clearfix">
  1737. <h3 className="sub-title">订单负责人信息</h3>
  1738. <FormItem
  1739. className="half-item"
  1740. {...formItemLayout}
  1741. label="负责人"
  1742. >
  1743. <span>
  1744. {this.state.salesmanName +
  1745. "(" +
  1746. this.state.depName +
  1747. ")"}
  1748. </span>
  1749. </FormItem>
  1750. <FormItem
  1751. className="half-item"
  1752. {...formItemLayout}
  1753. label="负责人电话"
  1754. >
  1755. <span>{this.state.salesmanMobile}</span>
  1756. </FormItem>
  1757. <FormItem
  1758. className="half-item"
  1759. {...formItemLayout}
  1760. label="当前财务负责人"
  1761. >
  1762. <span>{this.state.nowFinance}</span>
  1763. </FormItem>
  1764. <FormItem
  1765. className="half-item"
  1766. {...formItemLayout}
  1767. label="当前财务负责人电话"
  1768. >
  1769. <span>{this.state.nowFinanceMobile}</span>
  1770. </FormItem>
  1771. <FormItem
  1772. className="half-item"
  1773. {...formItemLayout}
  1774. style={{ opacity: ".5" }}
  1775. label="原负责人"
  1776. >
  1777. <span>{this.state.oldSalesmanName}</span>
  1778. </FormItem>
  1779. <FormItem
  1780. className="half-item"
  1781. {...formItemLayout}
  1782. style={{ opacity: ".5" }}
  1783. label="原负责人电话"
  1784. >
  1785. <span>{this.state.oldSalesmanMobile}</span>
  1786. </FormItem>
  1787. <FormItem
  1788. className="half-item"
  1789. {...formItemLayout}
  1790. style={{ opacity: ".5" }}
  1791. label="实际财务操作人"
  1792. >
  1793. <span>{this.state.financeName}</span>
  1794. </FormItem>
  1795. <FormItem
  1796. className="half-item"
  1797. {...formItemLayout}
  1798. style={{ opacity: ".5" }}
  1799. label="实际财务操作人电话"
  1800. >
  1801. <span>{this.state.financeMobile}</span>
  1802. </FormItem>
  1803. <FormItem
  1804. className="half-item"
  1805. {...formItemLayout}
  1806. label="订单留言"
  1807. >
  1808. <span>{this.state.orderRemarks}</span>
  1809. </FormItem>
  1810. <FormItem
  1811. className="half-item"
  1812. {...formItemLayout}
  1813. label=""
  1814. >
  1815. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  1816. </FormItem>
  1817. <OrderRiZi
  1818. dataSourcerizhi={this.state.dataSourceY}
  1819. closeOrderLog={this.closeOrderLog}
  1820. visible={this.state.avisible}
  1821. loading={this.state.loading}
  1822. />
  1823. </div>
  1824. <div className="clearfix">
  1825. <h3 className="sub-title">申报系统账户信息</h3>
  1826. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  1827. <FormItem
  1828. className="half-item"
  1829. {...formItemLayout}
  1830. label="用户名"
  1831. >
  1832. <span>{this.state.declareUser ? "*" : ""}</span>
  1833. </FormItem>
  1834. <FormItem
  1835. className="half-item"
  1836. {...formItemLayout}
  1837. label="密码"
  1838. >
  1839. <span>{this.state.declarePwd ? "*" : ""}</span>
  1840. </FormItem>
  1841. </div>
  1842. <div className="clearfix">
  1843. <h3 className="sub-title">项目申报进度</h3>
  1844. <DeclarationProgress
  1845. timeRecordparse={this.state.timeRecordparse}
  1846. startDate={this.state.startDate}
  1847. taskDate={this.state.taskDate}
  1848. list={[
  1849. { id: 4, name: '完成时间', value: this.state.endDate },
  1850. { id: 6, name: '受理时间', value: this.state.acceptDate },
  1851. { id: 8, name: '公示时间', value: this.state.publicityDate },
  1852. { id: 10, name: '发证时间', value: this.state.licenceDate },
  1853. { id: 15, name: '立项金额', value: this.state.setUpAmount }
  1854. ]} />
  1855. {/*专利显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1856. {
  1857. this.state.bpType === 1 || this.state.bpType === 6 ?
  1858. <div>
  1859. <FormItem
  1860. labelCol={{ span: 3 }}
  1861. wrapperCol={{ span: 16 }}
  1862. label="是否高新企业"
  1863. >
  1864. <span>
  1865. {
  1866. this.state.highTechStatus === 1 ? '是' :
  1867. this.state.highTechStatus === 0 ? '否' : ''
  1868. }
  1869. </span>
  1870. </FormItem>
  1871. <FormItem />
  1872. <PatentSchedule
  1873. readOnly
  1874. bpType={this.state.bpType}
  1875. taskId={this.state.id}
  1876. acceptCount={this.state.acceptCount}
  1877. certificatesCount={this.state.certificatesCount}
  1878. rejectCount={this.state.rejectCount}
  1879. commodityQuantity={this.state.commodityQuantity}
  1880. />
  1881. </div> :
  1882. <div>
  1883. {/*高新显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1884. {this.state.bpType === 5 ? <FormItem
  1885. className="half-item"
  1886. {...formItemLayout}
  1887. label="是否抽查">
  1888. {
  1889. this.state.spotCheckStatus === 0 ? '否' :
  1890. this.state.spotCheckStatus === 1 ? '是,未通过' :
  1891. this.state.spotCheckStatus === 2 ? '是,通过' : ''
  1892. }
  1893. </FormItem> : null}
  1894. <FormItem />
  1895. {this.state.bpType === 5 ? <FormItem
  1896. className="half-item"
  1897. {...formItemLayout}
  1898. label="是否立项"
  1899. >
  1900. {
  1901. this.state.setUpStatus === 1 ? '是' :
  1902. this.state.setUpStatus === 0 ? '否' : ''
  1903. }
  1904. </FormItem> : null}
  1905. {this.state.bpType === 5 ? <FormItem
  1906. className="half-item"
  1907. {...formItemLayout}
  1908. label={this.state.setUpStatus === 1 ? "立项时间" : ''}
  1909. >
  1910. {this.state.setUpStatus === 1 ? this.state.setUpTime : null}
  1911. </FormItem> : null}
  1912. {/*高新和科技项目显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1913. {/*cSort: 3 科技项目 6: 会员*/}
  1914. {(this.state.bpType === 5 || this.state.cSort === 3) && <FormItem
  1915. className="half-item"
  1916. {...formItemLayout}
  1917. label="申报批次"
  1918. >
  1919. <span>{this.state.declarationBatch}</span>
  1920. </FormItem>}
  1921. {/*只有科技项目才有是否到款*/}
  1922. {/*cSort: 3 科技项目 6: 会员*/}
  1923. {this.state.cSort === 3 && <FormItem
  1924. className="half-item"
  1925. {...formItemLayout}
  1926. label="是否到款"
  1927. >
  1928. <span>
  1929. {this.state.arrivalMoney ? "已到企业" : "未到企业"}
  1930. </span>
  1931. </FormItem>}
  1932. </div>}
  1933. </div>
  1934. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  1935. <FormItem
  1936. labelCol={{ span: 3 }}
  1937. wrapperCol={{ span: 18 }}
  1938. label="附件"
  1939. >
  1940. <Upload
  1941. className="demandDetailShow-upload"
  1942. listType="picture-card"
  1943. fileList={this.state.attachmentUrl}
  1944. onPreview={(file) => {
  1945. this.setState({
  1946. previewImage: file.url || file.thumbUrl,
  1947. previewVisible: true,
  1948. });
  1949. }}
  1950. />
  1951. <Modal
  1952. maskClosable={false}
  1953. footer={null}
  1954. visible={this.state.previewVisible}
  1955. onCancel={() => {
  1956. this.setState({ previewVisible: false });
  1957. }}
  1958. >
  1959. <img
  1960. alt=""
  1961. style={{ width: "100%" }}
  1962. src={this.state.previewImage || ""}
  1963. />
  1964. </Modal>
  1965. </FormItem>
  1966. </div> : null}
  1967. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  1968. <FormItem
  1969. labelCol={{ span: 3 }}
  1970. wrapperCol={{ span: 16 }}
  1971. label="项目说明"
  1972. >
  1973. <span>{this.state.taskComment}</span>
  1974. </FormItem>
  1975. </div> : null}
  1976. <div>
  1977. <h3 className="sub-title">项目业务</h3>
  1978. {this.state.processStatus == 0 ? (
  1979. <Button
  1980. type="primary"
  1981. onClick={this.addDetailed}
  1982. style={{
  1983. float: "right",
  1984. marginRight: "50px",
  1985. marginBottom: "15px",
  1986. }}
  1987. >
  1988. 添加项目明细
  1989. </Button>
  1990. ) : (
  1991. ""
  1992. )}
  1993. </div>
  1994. <div className="patent-table">
  1995. <Spin spinning={this.state.loading}>
  1996. <Table
  1997. columns={this.state.columnsX}
  1998. dataSource={this.state.dataSourceX}
  1999. size="small"
  2000. bordered
  2001. style={{
  2002. cursor: 'pointer',
  2003. }}
  2004. pagination={this.state.paginations}
  2005. onRowClick={this.tableRowClickX}
  2006. />
  2007. </Spin>
  2008. </div>
  2009. </div>
  2010. </Spin>
  2011. </Form>
  2012. </Modal>
  2013. <Modal
  2014. width="800px"
  2015. title="操作日志"
  2016. footer=""
  2017. className="admin-desc-content"
  2018. >
  2019. <div className="patent-table patent-table-center">
  2020. <Spin spinning={this.state.loading}>
  2021. <Table columns={this.state.columnsY} />
  2022. </Spin>
  2023. </div>
  2024. </Modal>
  2025. <Modal
  2026. maskClosable={false}
  2027. visible={this.state.speVisible}
  2028. onOk={this.visitOk}
  2029. onCancel={this.visitCancel}
  2030. width="1200px"
  2031. title="项目概况"
  2032. footer=""
  2033. className="admin-desc-content"
  2034. >
  2035. <div className="clearfix">
  2036. <div style={{ position: "absolute", top: '-52px', left: '81px', zIndex: 10000 }}>
  2037. <OrderItemStatus deleteSign={this.state.deleteSign} />
  2038. </div>
  2039. <FormItem
  2040. className="half-item"
  2041. {...formItemLayout}
  2042. label="项目状态"
  2043. >
  2044. <span>{getProjectName(parseInt(this.state.projectStatus))}</span>
  2045. <Button
  2046. type="primary"
  2047. size="small"
  2048. style={{ marginTop: '5px', position: 'absolute' }}
  2049. onClick={this.caozuorizhi}
  2050. >
  2051. 操作日志
  2052. </Button>
  2053. </FormItem>
  2054. <FormItem
  2055. className="half-item"
  2056. {...formItemLayout}
  2057. label="合同编号"
  2058. >
  2059. <span>{this.state.contractNo}</span>
  2060. </FormItem>
  2061. </div>
  2062. <div className="clearfix">
  2063. <FormItem
  2064. className="half-item"
  2065. {...formItemLayout}
  2066. label="是否特批"
  2067. >
  2068. <span>{getApproval(this.state.approval)}</span>
  2069. </FormItem>
  2070. <FormItem
  2071. className="half-item"
  2072. {...formItemLayout}
  2073. label="结算状态"
  2074. >
  2075. <span>
  2076. {getLiquidationStatus(this.state.liquidationStatus)}
  2077. </span>
  2078. </FormItem>
  2079. <FormItem
  2080. className="half-item"
  2081. {...formItemLayout}
  2082. label="流程状态"
  2083. >
  2084. <span>{getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}</span>
  2085. </FormItem>
  2086. <FormItem
  2087. className="half-item"
  2088. {...formItemLayout}
  2089. label="订单编号"
  2090. >
  2091. <span>{this.state.orderNo}</span>
  2092. </FormItem>
  2093. </div>
  2094. <div className="clearfix">
  2095. <FormItem
  2096. className="half-item"
  2097. {...formItemLayout}
  2098. label="满意度表格"
  2099. >
  2100. <span>{utils.getSatisfaction(this.state.formRetrieve)}</span>
  2101. </FormItem>
  2102. {
  2103. <FormItem
  2104. className="half-item"
  2105. {...formItemLayout}
  2106. label="(满意度)备注"
  2107. >
  2108. <span>{this.state.retrieveContent}</span>
  2109. </FormItem>
  2110. }
  2111. {/*<FormItem className="half-item" {...formItemLayout} label="退单">*/}
  2112. {/* <span>{utils.getChargeback(this.state.taskRefund)}</span>*/}
  2113. {/*</FormItem>*/}
  2114. </div>
  2115. {/*软著显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  2116. {this.state.bpType === 2 ? <div className="clearfix">
  2117. <FormItem
  2118. className="half-item"
  2119. {...formItemLayout}
  2120. label="加急天数"
  2121. >
  2122. {
  2123. this.state.urgentDay === 1 ? '是' :
  2124. this.state.urgentDay === 0 ? '否' : ''
  2125. }
  2126. </FormItem>
  2127. <FormItem
  2128. className="half-item"
  2129. {...formItemLayout}
  2130. label="有无材料"
  2131. >
  2132. {
  2133. this.state.ifMaterial === 1 ? '是' :
  2134. this.state.ifMaterial === 0 ? '否' : ''
  2135. }
  2136. </FormItem>
  2137. </div> : null}
  2138. <div className="clearfix">
  2139. <div style={{
  2140. paddingLeft: '8%',
  2141. }}>
  2142. <div style={{ color: '#000', fontWeight: 500 }}>
  2143. 特别说明
  2144. <span style={{ color: '#58a3ff', }}>(针对项目的特殊情况说明)</span>
  2145. </div>
  2146. <div style={{
  2147. display: 'flex',
  2148. }}>
  2149. <span style={{ paddingRight: '10px', whiteSpace: "nowrap" }}>备注:</span>
  2150. <span style={{
  2151. flex: 1,
  2152. wordBreak: 'break-all',
  2153. }}>{this.state.specialComment}</span>
  2154. </div>
  2155. </div>
  2156. {
  2157. // <FormItem
  2158. // className="half-item"
  2159. // {...formItemLayout}
  2160. // label="(退单)备注"
  2161. // >
  2162. // <span>{this.state.refundContent}</span>
  2163. // </FormItem>
  2164. }
  2165. </div>
  2166. <div className="clearfix">
  2167. <h3 className="sub-title">任务信息</h3>
  2168. <FormItem
  2169. className="half-item"
  2170. {...formItemLayout}
  2171. label="任务编号"
  2172. >
  2173. <span>
  2174. {this.state.splitStatus == 2
  2175. ? this.state.splitSuper + "-" + this.state.splitId
  2176. : this.state.id}
  2177. </span>
  2178. </FormItem>
  2179. <FormItem
  2180. className="half-item"
  2181. {...formItemLayout}
  2182. label="任务名称"
  2183. >
  2184. <span>{this.state.taskName}</span>
  2185. </FormItem>
  2186. <FormItem
  2187. className="half-item"
  2188. {...formItemLayout}
  2189. label="任务状态"
  2190. >
  2191. <span>{getTaskStatus(this.state.taskStatus)}</span>
  2192. </FormItem>
  2193. <FormItem
  2194. className="half-item"
  2195. {...formItemLayout}
  2196. label="任务类别"
  2197. >
  2198. <span>{this.state.cname}</span>
  2199. </FormItem>
  2200. <FormItem
  2201. className="half-item"
  2202. {...formItemLayout}
  2203. label="证书编号"
  2204. >
  2205. <span>{this.state.certificateNumber}</span>
  2206. </FormItem>
  2207. </div>
  2208. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  2209. <div className="clearfix">
  2210. <h3 className="sub-title">联系信息</h3>
  2211. <FormItem
  2212. className="half-item"
  2213. {...formItemLayout}
  2214. label="客户名称"
  2215. >
  2216. <span>{this.state.userName}</span>
  2217. <EnterpriseNameChange
  2218. type='journal'
  2219. style={{ marginLeft: 10 }}
  2220. enterpriseId={this.state.orderUid} />
  2221. </FormItem>
  2222. <FormItem
  2223. className="half-item"
  2224. {...formItemLayout}
  2225. label="企业法人"
  2226. >
  2227. <span>{this.state.legalPerson}</span>
  2228. </FormItem>
  2229. <FormItem
  2230. className="half-item"
  2231. {...formItemLayout}
  2232. label="法人电话"
  2233. >
  2234. <span>{this.state.legalPersonTel}</span>
  2235. </FormItem>
  2236. <FormItem
  2237. className="half-item"
  2238. {...formItemLayout}
  2239. label="客户联系人"
  2240. >
  2241. <span>{this.state.contacts}</span>
  2242. </FormItem>
  2243. <FormItem
  2244. className="half-item"
  2245. {...formItemLayout}
  2246. label="联系人电话"
  2247. >
  2248. <span>{this.state.contactMobile}</span>
  2249. </FormItem>
  2250. <FormItem
  2251. className="half-item"
  2252. {...formItemLayout}
  2253. label="企业地址"
  2254. >
  2255. <span>
  2256. {getprovince(this.state.locationProvince)}/
  2257. {getprovince(this.state.locationCity)}/
  2258. {getprovince(this.state.locationArea)}
  2259. </span>
  2260. </FormItem>
  2261. <FormItem
  2262. className="half-item"
  2263. {...formItemLayout}
  2264. label=""
  2265. ></FormItem>
  2266. <FormItem className="half-item" {...formItemLayout} label="">
  2267. <span style={{ paddingLeft: "12em" }}>
  2268. {this.state.postalAddress}
  2269. </span>
  2270. </FormItem>
  2271. </div>
  2272. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  2273. <div className="clearfix">
  2274. <h3 className="sub-title">订单负责人信息</h3>
  2275. <FormItem
  2276. className="half-item"
  2277. {...formItemLayout}
  2278. label="负责人"
  2279. >
  2280. <span>
  2281. {this.state.salesmanName + "(" + this.state.depName + ")"}
  2282. </span>
  2283. </FormItem>
  2284. <FormItem
  2285. className="half-item"
  2286. {...formItemLayout}
  2287. label="负责人电话"
  2288. >
  2289. <span>{this.state.salesmanMobile}</span>
  2290. </FormItem>
  2291. <FormItem
  2292. className="half-item"
  2293. {...formItemLayout}
  2294. label="财务负责人"
  2295. >
  2296. <span>{this.state.financeName}</span>
  2297. </FormItem>
  2298. <FormItem
  2299. className="half-item"
  2300. {...formItemLayout}
  2301. label="财务负责人电话"
  2302. >
  2303. <span>{this.state.financeMobile}</span>
  2304. </FormItem>
  2305. <FormItem
  2306. className="half-item"
  2307. {...formItemLayout}
  2308. label="订单留言"
  2309. >
  2310. <span>{this.state.orderRemarks}</span>
  2311. </FormItem>
  2312. <FormItem className="half-item" {...formItemLayout} label="">
  2313. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  2314. </FormItem>
  2315. <OrderRiZi
  2316. dataSourcerizhi={this.state.dataSourceY}
  2317. closeOrderLog={this.closeOrderLog}
  2318. visible={this.state.avisible}
  2319. loading={this.state.loading}
  2320. />
  2321. </div>
  2322. <div className="clearfix" style={{ marginTop: "10px" }}>
  2323. <FormItem
  2324. labelCol={{ span: 3 }}
  2325. wrapperCol={{ span: 18 }}
  2326. label="附件"
  2327. >
  2328. <Upload
  2329. className="demandDetailShow-upload"
  2330. listType="picture-card"
  2331. fileList={this.state.attachmentUrl}
  2332. onPreview={(file) => {
  2333. this.setState({
  2334. previewImage: file.url || file.thumbUrl,
  2335. previewVisible: true,
  2336. });
  2337. }}
  2338. ></Upload>
  2339. <Modal
  2340. maskClosable={false}
  2341. footer={null}
  2342. visible={this.state.previewVisible}
  2343. onCancel={() => {
  2344. this.setState({ previewVisible: false });
  2345. }}
  2346. >
  2347. <img
  2348. alt=""
  2349. style={{ width: "100%" }}
  2350. src={this.state.previewImage || ""}
  2351. />
  2352. </Modal>
  2353. </FormItem>
  2354. </div>
  2355. <div className="clearfix">
  2356. <FormItem
  2357. labelCol={{ span: 3 }}
  2358. wrapperCol={{ span: 16 }}
  2359. label="备注"
  2360. >
  2361. <span>{this.state.taskComment}</span>
  2362. </FormItem>
  2363. </div>
  2364. <div className="clearfix">
  2365. <h3 className="sub-title">项目申报进度</h3>
  2366. <DeclarationProgress
  2367. timeRecordparse={this.state.timeRecordparse}
  2368. startDate={this.state.startDate}
  2369. taskDate={this.state.taskDate}
  2370. list={[
  2371. { id: 4, name: '完成时间', value: this.state.endDate },
  2372. { id: 6, name: '受理时间', value: this.state.acceptDate },
  2373. { id: 8, name: '公示时间', value: this.state.publicityDate },
  2374. { id: 10, name: '发证时间', value: this.state.licenceDate },
  2375. { id: 15, name: '立项金额', value: this.state.setUpAmount }
  2376. ]} />
  2377. {/*高新和科技项目显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  2378. {/*cSort: 3 科技项目 6: 会员*/}
  2379. {(this.state.bpType === 5 || this.state.cSort === 3) && <FormItem
  2380. className="half-item"
  2381. {...formItemLayout}
  2382. label="申报批次"
  2383. >
  2384. <span>{this.state.declarationBatch}</span>
  2385. </FormItem>}
  2386. <FormItem
  2387. className="half-item"
  2388. {...formItemLayout}
  2389. label="软著派单数量"
  2390. >
  2391. <span>{this.state.commodityQuantity}</span>
  2392. </FormItem>
  2393. <div className="patent-table patent-table-center">
  2394. <Spin spinning={this.state.loading}>
  2395. <Table
  2396. columns={this.state.ContactsLists}
  2397. dataSource={this.state.contactList}
  2398. pagination={false}
  2399. />
  2400. </Spin>
  2401. </div>
  2402. </div>
  2403. <div className="clearfix">
  2404. <h3 className="sub-title">项目业务</h3>
  2405. <div className="patent-table">
  2406. <Spin spinning={this.state.loading}>
  2407. <Table
  2408. columns={this.state.columnsX}
  2409. dataSource={this.state.dataSourceX}
  2410. pagination={this.state.paginations}
  2411. onRowClick={this.tableRowClickX}
  2412. />
  2413. </Spin>
  2414. </div>
  2415. </div>
  2416. </Modal>
  2417. <Modal
  2418. width="800px"
  2419. visible={this.state.visibleA}
  2420. onCancel={this.visitCancelA}
  2421. title="操作日志"
  2422. footer=""
  2423. className="admin-desc-content"
  2424. >
  2425. <div className="patent-table patent-table-center">
  2426. <Spin spinning={this.state.loading}>
  2427. <Table
  2428. columns={this.state.columnsA}
  2429. dataSource={this.state.dataSourceA}
  2430. pagination={false}
  2431. />
  2432. </Spin>
  2433. </div>
  2434. </Modal>
  2435. {/* {this.state.addnextVisible && <ProjectDetailsReadOnly
  2436. infor={this.state.dataInfor}
  2437. visible={this.state.addnextVisible}
  2438. onCancel={this.nextCancel}
  2439. />} */}
  2440. {
  2441. // 项目业务详情
  2442. this.state.addnextVisible &&
  2443. <NewEditProject
  2444. readOnly={true}
  2445. visible={this.state.addnextVisible}
  2446. dataInfor={this.state.dataInfor}
  2447. onCancel={this.nextCancel}
  2448. />
  2449. }
  2450. </div>
  2451. );
  2452. }
  2453. })
  2454. );
  2455. export default IntentionCustomer;