myTaskCount.jsx 69 KB

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