taskCount.jsx 78 KB

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