taskCount.jsx 79 KB

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