taskCount.jsx 71 KB

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