myTaskCount.jsx 74 KB

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