myTaskCount.jsx 73 KB

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