taskCount.jsx 80 KB

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