taskQuery.jsx 58 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664
  1. import React from 'react';
  2. import $ from 'jquery';
  3. import '@/manageCenter/financialManage/distribute/public.less';
  4. import { Button, Form, Input, Select, Upload,Spin, Table, message, Modal} from 'antd';
  5. import Assign from '@/manageCenter/publicComponent/assign';
  6. import './table.less';
  7. import {
  8. getProcessStatus,
  9. getApproval,
  10. getTaskStatus,
  11. getLiquidationStatus,
  12. splitUrl,
  13. getProjectStatus,
  14. getboutique,
  15. getprovince,
  16. ShowModal
  17. } from "@/tools";
  18. const FormItem =Form.Item;
  19. import ShowModalDiv from "@/showModal.jsx";
  20. const Task = React.createClass({
  21. loadData(pageNo) {
  22. this.state.data = [];
  23. this.setState({
  24. page:pageNo,
  25. loading: true
  26. });
  27. $.ajax({
  28. method: "get",
  29. dataType: "json",
  30. crossDomain: false,
  31. url: globalConfig.context + "/api/admin/orderProject/selectTaskList",
  32. data: {
  33. pageNo: pageNo || this.state.page || 1,
  34. pageSize: this.state.pagination.pageSize,
  35. specially: 1, //经理
  36. name: this.state.nameSearch, //客户名称
  37. orderNo: this.state.orderNoSearch, //订单编号
  38. depId: this.state.departmenttSearch, //订单部门
  39. taskId: this.state.taskNoSearch, //任务编号
  40. adminName: this.state.adminName //任务受理人
  41. },
  42. success: function(data) {
  43. ShowModal(this);
  44. let theArr = [];
  45. if (!data.data || !data.data.list) {
  46. if (data.error && data.error.length) {
  47. message.warning(data.error[0].message);
  48. }
  49. } else {
  50. for (let i = 0; i < data.data.list.length; i++) {
  51. let thisdata = data.data.list[i];
  52. theArr.push({
  53. key: i,
  54. orderNo: thisdata.orderNo, //订单编号
  55. id: thisdata.id, //任务ID
  56. taskName: thisdata.taskName, //名称
  57. cname: thisdata.cname, //项目品类
  58. receiverName: thisdata.receiverName, //受理人
  59. projectStatus: thisdata.projectStatus, //项目状态
  60. taskStatus: thisdata.taskStatus, //任务状态
  61. taskDate: thisdata.taskDate, //分配时间
  62. commodityQuantity: thisdata.commodityQuantity, //软著数量
  63. alreadyNumber: thisdata.alreadyNumber, //下证数量
  64. userName:
  65. thisdata.taskName.substring(0, 5) === "软件著作权"
  66. ? thisdata.userName +
  67. "(" +
  68. thisdata.commodityQuantity.toString() +
  69. "/" +
  70. thisdata.alreadyNumber +
  71. ")"
  72. : thisdata.userName, //用户名
  73. depName: thisdata.depName, //部门名称
  74. receiverName: thisdata.receiverName //任务责任人
  75. });
  76. }
  77. }
  78. this.state.pagination.current = data.data.pageNo;
  79. this.state.pagination.total = data.data.totalCount;
  80. if (data.data && data.data.list && !data.data.list.length) {
  81. this.state.pagination.current = 0;
  82. this.state.pagination.total = 0;
  83. }
  84. this.setState({
  85. dataSource: theArr,
  86. pagination: this.state.pagination
  87. });
  88. }.bind(this)
  89. }).always(
  90. function() {
  91. this.setState({
  92. loading: false
  93. });
  94. }.bind(this)
  95. );
  96. },
  97. getInitialState() {
  98. return {
  99. searchMore: true,
  100. assignVisible:false,
  101. releaseDate: [],
  102. roleName:'',
  103. testFlag:true,
  104. departmentArr: [],
  105. boHuivisible:false,
  106. selectedRowKeys: [],
  107. selectedRows: [],
  108. paginations:false,
  109. loading: false,
  110. pagination: {
  111. defaultCurrent: 1,
  112. defaultPageSize: 10,
  113. showQuickJumper: true,
  114. pageSize: 10,
  115. onChange: function (page) {
  116. this.loadData(page);
  117. }.bind(this),
  118. showTotal: function (total) {
  119. return '共' + total + '条数据';
  120. }
  121. },
  122. columns: [
  123. {
  124. title: '任务编号',
  125. dataIndex: 'id',
  126. key: 'id',
  127. }, {
  128. title: '任务名称',
  129. dataIndex: 'taskName',
  130. key: 'taskName',
  131. className: 'taskName'
  132. }, {
  133. title: '订单编号',
  134. dataIndex: 'orderNo',
  135. key: 'orderNo',
  136. },
  137. {
  138. title: '业务类别',
  139. dataIndex: 'cname',
  140. key: 'cname',
  141. },
  142. {
  143. title: '客户名称',
  144. dataIndex: 'userName',
  145. key: 'userName',
  146. className: 'userName'
  147. },
  148. {
  149. title: '任务状态',
  150. dataIndex: 'taskStatus',
  151. key: 'taskStatus',
  152. render: text => { return getTaskStatus(text)}
  153. },
  154. {
  155. title: '项目状态',
  156. dataIndex: 'projectStatus',
  157. key: 'projectStatus',
  158. render: text => { return getProjectStatus(text)}
  159. },
  160. {
  161. title: '分配时间',
  162. dataIndex: 'taskDate',
  163. key: 'taskDate'
  164. },
  165. {
  166. title: '任务数量',
  167. dataIndex: 'commodityQuantity',
  168. key: 'commodityQuantity'
  169. },
  170. {
  171. title: '任务责任人',
  172. dataIndex: 'receiverName',
  173. key: 'receiverName'
  174. },{
  175. title: '订单部门',
  176. dataIndex: 'depName',
  177. key: 'depName'
  178. }
  179. ],
  180. dataSource: [],
  181. searchTime: [],
  182. columnsX: [
  183. {
  184. title: '业务项目名称',
  185. dataIndex: 'commodityName',
  186. key: 'commodityName'
  187. }, {
  188. title: '项目类别',
  189. dataIndex: 'cname',
  190. key: 'cname',
  191. },{
  192. title: '项目数量',
  193. dataIndex: 'commodityQuantity',
  194. key: 'commodityQuantity'
  195. }, {
  196. title: '金额(万元)',
  197. dataIndex: 'commodityPrice',
  198. key: 'commodityPrice'
  199. }, {
  200. title: '负责人',
  201. dataIndex: 'contacts',
  202. key: 'contacts'
  203. }, {
  204. title: '负责人电话',
  205. dataIndex: 'contactsMobile',
  206. key: 'contactsMobile'
  207. }, {
  208. title: '主要项目',
  209. dataIndex: 'main',
  210. key: 'main',
  211. render:(text)=>{
  212. return (text?'是':'否')
  213. }
  214. }, {
  215. title: '项目说明',
  216. dataIndex: 'taskComment',
  217. key: 'taskComment',
  218. render:(text)=>{
  219. return (text&&text.length>8?text.substr(0,8)+'…':text)
  220. }
  221. }
  222. ],
  223. columnsA: [
  224. {
  225. title: '流程',
  226. dataIndex: 'content',
  227. key: 'content',
  228. align:'center'
  229. }, {
  230. title: '操作人',
  231. dataIndex: 'aName',
  232. key: 'aName',
  233. align:'center'
  234. }, {
  235. title: '时间',
  236. dataIndex: 'createTimes',
  237. key: 'createTimes',
  238. align:'center'
  239. }
  240. ],
  241. dataSourceX: [],
  242. dataSourceA: [],
  243. ContactsLists: [{
  244. title: '批次',
  245. dataIndex: 'num',
  246. key: 'num',
  247. },{
  248. title: '下证时间',
  249. dataIndex: 'licenceTimes',
  250. key: 'licenceTimes',
  251. }, {
  252. title: '下证数量',
  253. dataIndex: 'alreadyNumber',
  254. key: 'alreadyNumber',
  255. },
  256. {
  257. title: '未下证数量',
  258. dataIndex: 'notCount',
  259. key: 'notCount',
  260. }
  261. ],
  262. }
  263. },
  264. /* 分派 */
  265. evaluate(record,nub){
  266. this.state.assignData=record;
  267. this.setState({
  268. nub,
  269. assignVisible:true
  270. })
  271. },
  272. componentDidMount(){
  273. this.setColor()
  274. },
  275. componentWillMount() {
  276. this.departmentList();
  277. this.loadData();
  278. },
  279. tableRowClick(record) {
  280. this.state.RowData = record;
  281. if(record.taskName.substring(0,5) === '软件著作权'){
  282. this.setState({
  283. speVisible: true,
  284. id: record.id,
  285. dataArr:record,
  286. commodityQuantity:record.commodityQuantity
  287. });
  288. }else{
  289. this.setState({
  290. visible: true,
  291. });
  292. }
  293. this.xiangqing(record.id,record.taskName);
  294. this.xiangqings(record.orderNo);
  295. this.xiangmu(record.orderNo);
  296. this.loaduserss(record);
  297. },
  298. //订单详情
  299. xiangqing(id) {
  300. $.ajax({
  301. method: "get",
  302. dataType: "json",
  303. crossDomain: false,
  304. url: globalConfig.context +"/api/admin/orderProject/orderTaskDetail",
  305. data: {
  306. id:id
  307. },
  308. success: function(data) {
  309. if(data.error.length || data.data.list == "") {
  310. if(data.error && data.error.length) {
  311. message.warning(data.error[0].message);
  312. };
  313. } else {
  314. let thisdata=data.data;
  315. this.setState({
  316. id: thisdata.id,//ID
  317. orderNo: thisdata.orderNo,//订单编号
  318. userName:thisdata.userName,//客户名称
  319. taskName: thisdata.taskName,//任务名称
  320. cname:thisdata.cname,//项目品类
  321. contractNo:thisdata.contractNo,//合同编号
  322. projectStatus:thisdata.projectStatus,//项目状态
  323. taskStatus:thisdata.taskStatus,//任务状态
  324. taskDate:thisdata.taskDate,//分配时间
  325. taskComment:thisdata.taskComment,//说明
  326. attachmentUrl: thisdata.attachmentUrl ? splitUrl(thisdata.attachmentUrl, ',', globalConfig.avatarHost + '/upload') : [],//图片地址
  327. salesmanName:thisdata.salesmanName,//订单负责人
  328. startDate:thisdata.startDate,//启动日期
  329. endDate:thisdata.endDate,//结束日期
  330. acceptDate:thisdata.acceptDate,//受理日期
  331. reviewDate:thisdata.reviewDate,//评审日期
  332. publicityDate:thisdata.publicityDate,//公示日期
  333. licenceDate:thisdata.licenceDate,//发证日期
  334. contacts:thisdata.contacts,//联系人
  335. contactMobile:thisdata.contactMobile,//联系人电话
  336. legalPerson:thisdata.legalPerson,//法人
  337. legalPersonTel:thisdata.legalPersonTel,//法人电话
  338. certificateNumber:thisdata.certificateNumber,//证书编号
  339. status:thisdata.status,//状态
  340. formRetrieve:thisdata.formRetrieve,//满意度表格
  341. taskRefund:thisdata.taskRefund,//退单
  342. refundContent:thisdata.refundContent,//退单信息
  343. retrieveContent:thisdata.retrieveContent,//回收信息
  344. arrivalMoney:thisdata.arrivalMoney,//是否到款
  345. setUpAmount:thisdata.setUpAmount,//立项金额
  346. declareUser:thisdata.declareUser,//账号
  347. declarePwd:thisdata.declarePwd,//密码
  348. depName:thisdata.depName,//订单部门
  349. outsourceName:thisdata.outsourceName,//外包公司名称
  350. outsourcePrice:thisdata.outsourcePrice,//外包价格
  351. })
  352. };
  353. }.bind(this),
  354. }).always(function() {
  355. this.setState({
  356. loading: false
  357. });
  358. }.bind(this));
  359. },
  360. //订单详情
  361. xiangqings(orderNos) {
  362. $.ajax({
  363. method: "get",
  364. dataType: "json",
  365. crossDomain: false,
  366. url: globalConfig.context +"/api/admin/newOrder/getOrderNewDetail",
  367. data: {
  368. orderNo:orderNos
  369. },
  370. success: function(data) {
  371. let thisdata=data.data;
  372. let ProvinceCityArr = [];
  373. let ProvinceS = thisdata.locationProvince; //省
  374. let citys = thisdata.locationCity;//市
  375. let Areas = thisdata.locationArea;//区
  376. ProvinceCityArr.push(ProvinceS, citys, Areas);
  377. if(data.error.length || data.data.list == "") {
  378. if(data.error && data.error.length) {
  379. message.warning(data.error[0].message);
  380. };
  381. } else {
  382. this.setState({
  383. processStatus: thisdata.processStatus, //流程状态
  384. liquidationStatus: thisdata.liquidationStatus, //结算状态
  385. approval: thisdata.approval, //特批状态
  386. orderRemarks: thisdata.orderRemarks, //订单留言
  387. salesmanName: thisdata.salesmanName, //营销员名称
  388. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  389. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  390. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  391. financeName: thisdata.financeName, //财务名称
  392. financeMobile: thisdata.financeMobile, //财务电话
  393. nowFinance: thisdata.nowFinance, //财务名称
  394. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  395. depName: thisdata.depName, //订单部门
  396. locationProvince: thisdata.locationProvince,
  397. locationCity: thisdata.locationCity,
  398. locationArea: thisdata.locationArea,
  399. ProvinceCity: ProvinceCityArr,
  400. postalAddress: thisdata.postalAddress, //详细地址
  401. outsource: thisdata.outsource
  402. });
  403. };
  404. }.bind(this),
  405. }).always(function() {
  406. this.setState({
  407. loading: false
  408. });
  409. }.bind(this));
  410. },
  411. //查看下证信息
  412. loaduserss(record){
  413. $.ajax({
  414. method: "get",
  415. dataType: "json",
  416. crossDomain: false,
  417. url: globalConfig.context + '/api/admin/orderProject/selectTaskProgress',
  418. data: {
  419. tid:record.id
  420. },
  421. success: function (data) {
  422. let theArr=[];
  423. let thisData=[];
  424. if (!thisData) {
  425. if (data.error && data.error.length) {
  426. message.warning(data.error[0].message);
  427. };
  428. thisData = {};
  429. }else{
  430. for(let i = 0; i < data.data.length; i++) {
  431. thisData= data.data[i];
  432. theArr.push({
  433. num:i+1,
  434. key:i,
  435. id:thisData.id,//编号
  436. alreadyNumber:thisData.alreadyNumber,//下证数
  437. licenceTimes:thisData.licenceTimes,//下证时间
  438. notCount:thisData.notCount,//未下证数
  439. flag:true
  440. })
  441. }
  442. this.setState({
  443. contactList:theArr
  444. })
  445. };
  446. }.bind(this),
  447. }).always(function () {
  448. this.setState({
  449. loading: false
  450. });
  451. }.bind(this));
  452. },
  453. //项目列表
  454. xiangmu(orderNos) {
  455. $.ajax({
  456. method: "get",
  457. dataType: "json",
  458. crossDomain: false,
  459. url: globalConfig.context +"/api/admin/newOrder/getOrderTask",
  460. data: {
  461. orderNo:orderNos
  462. },
  463. success: function(data) {
  464. let theArr = [];
  465. if(data.error.length || data.data.list == "") {
  466. if(data.error && data.error.length) {
  467. message.warning(data.error[0].message);
  468. };
  469. } else {
  470. for (let i = 0; i < data.data.length; i++) {
  471. let thisdata = data.data[i];
  472. theArr.push({
  473. key: i,
  474. id:thisdata.id,
  475. orderNo:thisdata.orderNo,//订单编号
  476. commodityId:thisdata.commodityId,//项目ID
  477. commodityName:thisdata.commodityName,//项目名称
  478. cname:thisdata.cname,//项目类别
  479. commodityPrice:thisdata.commodityPrice,//项目价格
  480. commodityQuantity:thisdata.commodityQuantity,//项目数量
  481. main:thisdata.main,//是否为主要任务
  482. taskComment:thisdata.taskComment,//任务说明
  483. contacts:thisdata.contacts,//联系人
  484. contactsMobile:thisdata.contactsMobile,//联系人电话
  485. taskStatus:thisdata.taskStatus,//是否分配
  486. });
  487. };
  488. };
  489. this.setState({
  490. dataSourceX: theArr,
  491. });
  492. }.bind(this),
  493. }).always(function() {
  494. this.setState({
  495. loading: false
  496. });
  497. }.bind(this));
  498. },
  499. caozuorizhi(){
  500. this.setState({
  501. visibleA:true
  502. })
  503. $.ajax({
  504. method: "get",
  505. dataType: "json",
  506. crossDomain: false,
  507. url: globalConfig.context +"/api/admin/orderProject/TaskLogList",
  508. data: {
  509. id:this.state.id
  510. },
  511. success: function(data) {
  512. let theArr = [];
  513. if(data.error.length || data.data.list == "") {
  514. if(data.error && data.error.length) {
  515. message.warning(data.error[0].message);
  516. };
  517. } else {
  518. for (let i = 0; i < data.data.length; i++) {
  519. let thisdata = data.data[i];
  520. theArr.push({
  521. key: i,
  522. id:thisdata.id,//日志ID
  523. content:thisdata.content,//流程
  524. taskId:thisdata.taskId,//任务ID
  525. aName:thisdata.aName,//负责人
  526. createTimes:thisdata.createTimes,//时间
  527. });
  528. };
  529. };
  530. this.setState({
  531. dataSourceA: theArr,
  532. });
  533. }.bind(this),
  534. }).always(function() {
  535. this.setState({
  536. loading: false
  537. });
  538. }.bind(this));
  539. },
  540. //关闭操作工时
  541. visitCancelA(){
  542. this.setState({
  543. visibleA:false
  544. })
  545. },
  546. //关闭详情
  547. visitCancel(){
  548. this.setState({
  549. visible:false,
  550. speVisible:false,
  551. })
  552. this.reset();
  553. },
  554. visitOk(){
  555. this.setState({
  556. visible:false
  557. })
  558. this.reset();
  559. },
  560. setColor(){
  561. $(".userName span").after("(<span class='ruanzhu'>软著数</span>/<span class='xiazheng'>下证数</span>)")
  562. },
  563. closeDesc(e, s) {
  564. this.state.showDesc = e;
  565. if (s) {
  566. this.loadData(this.state.page);
  567. };
  568. },
  569. closeAssign(e, s) {
  570. this.state.roleName='';
  571. this.state.assignVisible = e;
  572. if (s) {
  573. this.loadData(this.state.page);
  574. };
  575. },
  576. nextCancel() {
  577. this.setState({
  578. addnextVisible: false
  579. })
  580. },
  581. //点击打卡项目详情
  582. tableRowClickX(record) {
  583. this.setState({
  584. jid:record.id,//项目ID
  585. kid:record.commodityId,//商品ID
  586. commodityName:record.commodityName,//金额
  587. commodityPrice:record.commodityPrice,//金额
  588. commodityQuantity:record.commodityQuantity,//数量
  589. taskComment:record.taskComment,//备注
  590. main:record.main.toString(),//是否为主要
  591. addnextVisible:true,
  592. addState:0,
  593. });
  594. },
  595. search() {
  596. this.loadData();
  597. },
  598. reset() {
  599. this.state.nameSearch = '';
  600. this.state.releaseDate = [];
  601. this.state.orderNoSearch='';
  602. this.state.taskNoSearch='';
  603. this.state.departmenttSearch=undefined;
  604. this.loadData(this.state.page);
  605. },
  606. searchSwitch() {
  607. this.setState({
  608. searchMore: !this.state.searchMore
  609. });
  610. },
  611. //部门
  612. departmentList() {
  613. this.setState({
  614. loading: true
  615. });
  616. $.ajax({
  617. method: "get",
  618. dataType: "json",
  619. crossDomain: false,
  620. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  621. data: {
  622. },
  623. success: function(data) {
  624. let thedata = data.data;
  625. let theArr = [];
  626. if(!thedata) {
  627. if(data.error && data.error.length) {
  628. message.warning(data.error[0].message);
  629. };
  630. thedata = {};
  631. } else {
  632. thedata.map(function(item, index) {
  633. theArr.push({
  634. key: index,
  635. name: item.name,
  636. id: item.id,
  637. })
  638. })
  639. }
  640. this.setState({
  641. departmentArr: theArr,
  642. })
  643. }.bind(this),
  644. }).always(function() {
  645. this.setState({
  646. loading: false
  647. });
  648. }.bind(this));
  649. },
  650. render() {
  651. const utils = {
  652. getSatisfaction:function(num){
  653. switch(num){
  654. case 0:
  655. return '未收回';
  656. case 1:
  657. return '已收回';
  658. default:
  659. return '其它';
  660. }
  661. },
  662. getChargeback:function(num){
  663. switch(num){
  664. case 0:
  665. return '已完成';
  666. case 1:
  667. return '未完成';
  668. default:
  669. return '其它';
  670. }
  671. }
  672. }
  673. const formItemLayout = {
  674. labelCol: { span: 8 },
  675. wrapperCol: { span: 14 },
  676. };
  677. let departmentArr = this.state.departmentArr || [];
  678. return (
  679. <div className="user-content">
  680. <ShowModalDiv ShowModal={this.state.showModal} />
  681. <div className="content-title">
  682. <span>任务查询</span>
  683. </div>
  684. <div className="user-search">
  685. <Input
  686. placeholder="客户名称"
  687. value={this.state.nameSearch}
  688. onChange={e => {
  689. this.setState({ nameSearch: e.target.value });
  690. }}
  691. />
  692. <Input
  693. placeholder="订单编号"
  694. value={this.state.orderNoSearch}
  695. onChange={e => {
  696. this.setState({ orderNoSearch: e.target.value });
  697. }}
  698. />
  699. <Input
  700. placeholder="任务编号"
  701. value={this.state.taskNoSearch}
  702. onChange={e => {
  703. this.setState({ taskNoSearch: e.target.value });
  704. }}
  705. />
  706. <Select
  707. placeholder="选择部门"
  708. style={{ width: 150, marginRight: "10px" }}
  709. value={this.state.departmenttSearch}
  710. onChange={e => {
  711. this.setState({ departmenttSearch: e });
  712. }}
  713. >
  714. {departmentArr.map(function(item) {
  715. return (
  716. <Select.Option key={item.id}>{item.name}</Select.Option>
  717. );
  718. })}
  719. </Select>
  720. <Button type="primary" onClick={this.search}>
  721. 搜索
  722. </Button>
  723. <Button onClick={this.reset}>重置</Button>
  724. {/* <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  725. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  726. <span>订单时间 :</span>
  727. <RangePicker
  728. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  729. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  730. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  731. </div> */}
  732. </div>
  733. <div className="patent-table">
  734. <Spin spinning={this.state.loading}>
  735. <Table
  736. bordered
  737. size="small"
  738. columns={this.state.columns}
  739. dataSource={this.state.dataSource}
  740. onHeaderRow={column => {
  741. console.log(column.index);
  742. }}
  743. pagination={this.state.pagination}
  744. onRowClick={this.tableRowClick.bind(this)}
  745. />
  746. </Spin>
  747. </div>
  748. <Assign
  749. title="任务"
  750. selApi={"/api/admin/orderProject/projectDistribution"}
  751. data={this.state.assignData}
  752. showDesc={this.state.assignVisible}
  753. closeDesc={this.closeAssign.bind(this)}
  754. fenpaiData={8}
  755. specially={0}
  756. roleName={this.state.nub}
  757. />
  758. <Modal
  759. className="customeDetails"
  760. footer=""
  761. title="项目概况"
  762. width="900px"
  763. visible={this.state.visible}
  764. onOk={this.visitOk}
  765. onCancel={this.visitCancel}
  766. >
  767. <Form
  768. layout="horizontal"
  769. onSubmit={this.handleSubmit}
  770. id="demand-form"
  771. style={{ paddingBottom: "00px" }}
  772. >
  773. <Spin spinning={this.state.loading}>
  774. <div className="clearfix">
  775. <div className="clearfix">
  776. <FormItem
  777. className="half-item"
  778. {...formItemLayout}
  779. label="当前项目情况"
  780. >
  781. <span>{this.state.status ? "暂停" : "开启"}</span>
  782. <Button
  783. type="primary"
  784. size="small"
  785. style={{ marginTop: "5px", position: "absolute" }}
  786. onClick={this.caozuorizhi}
  787. >
  788. 操作日志
  789. </Button>
  790. </FormItem>
  791. <FormItem
  792. className="half-item"
  793. {...formItemLayout}
  794. label="合同编号"
  795. >
  796. <span>{this.state.contractNo}</span>
  797. </FormItem>
  798. </div>
  799. <div className="clearfix">
  800. <FormItem
  801. className="half-item"
  802. {...formItemLayout}
  803. label="项目状态"
  804. >
  805. <span>
  806. {getProcessStatus(this.state.projectStatus)}
  807. </span>
  808. </FormItem>
  809. <FormItem
  810. className="half-item"
  811. {...formItemLayout}
  812. label="是否特批"
  813. >
  814. <span>{getApproval(this.state.approval)}</span>
  815. </FormItem>
  816. <FormItem
  817. className="half-item"
  818. {...formItemLayout}
  819. label="结算状态"
  820. >
  821. <span>
  822. {getLiquidationStatus(this.state.liquidationStatus)}
  823. </span>
  824. </FormItem>
  825. <FormItem
  826. className="half-item"
  827. {...formItemLayout}
  828. label="流程状态"
  829. >
  830. <span>
  831. {getProcessStatus(this.state.processStatus)}
  832. </span>
  833. </FormItem>
  834. <FormItem
  835. className="half-item"
  836. {...formItemLayout}
  837. label="订单编号"
  838. >
  839. <span>{this.state.orderNo}</span>
  840. </FormItem>
  841. <FormItem
  842. className="half-item"
  843. {...formItemLayout}
  844. label="是否外包"
  845. >
  846. <span>{this.state.outsource == 0 ? "否" : "是"}</span>
  847. </FormItem>
  848. </div>
  849. <div className="clearfix">
  850. <FormItem
  851. className="half-item"
  852. {...formItemLayout}
  853. label="满意度表格"
  854. >
  855. <span>
  856. {utils.getSatisfaction(this.state.formRetrieve)}
  857. </span>
  858. </FormItem>
  859. <FormItem
  860. className="half-item"
  861. {...formItemLayout}
  862. label="退单"
  863. >
  864. <span>
  865. {utils.getChargeback(this.state.taskRefund)}
  866. </span>
  867. </FormItem>
  868. </div>
  869. <div className="clearfix">
  870. {
  871. <FormItem
  872. className="half-item"
  873. {...formItemLayout}
  874. label="(满意度)备注"
  875. >
  876. <span>{this.state.retrieveContent}</span>
  877. </FormItem>
  878. }
  879. {
  880. <FormItem
  881. className="half-item"
  882. {...formItemLayout}
  883. label="(退单)备注"
  884. >
  885. <span>{this.state.refundContent}</span>
  886. </FormItem>
  887. }
  888. </div>
  889. <div className="clearfix">
  890. <h3 className="sub-title">任务信息</h3>
  891. <FormItem
  892. className="half-item"
  893. {...formItemLayout}
  894. label="任务编号"
  895. >
  896. <span>{this.state.id}</span>
  897. </FormItem>
  898. <FormItem
  899. className="half-item"
  900. {...formItemLayout}
  901. label="任务名称"
  902. >
  903. <span>{this.state.taskName}</span>
  904. </FormItem>
  905. <FormItem
  906. className="half-item"
  907. {...formItemLayout}
  908. label="任务状态"
  909. >
  910. <span>{getTaskStatus(this.state.taskStatus)}</span>
  911. </FormItem>
  912. <FormItem
  913. className="half-item"
  914. {...formItemLayout}
  915. label="任务类别"
  916. >
  917. <span>{this.state.cname}</span>
  918. </FormItem>
  919. <FormItem
  920. className="half-item"
  921. {...formItemLayout}
  922. label="证书编号"
  923. >
  924. <span>{this.state.certificateNumber}</span>
  925. </FormItem>
  926. </div>
  927. {this.state.outsource === 1 ? (
  928. <div className="clearfix">
  929. <h3 className="sub-title">外包信息</h3>
  930. <FormItem
  931. className="half-item"
  932. {...formItemLayout}
  933. label="外包公司"
  934. >
  935. <span>{this.state.outsourceName}</span>
  936. </FormItem>
  937. <FormItem
  938. className="half-item"
  939. {...formItemLayout}
  940. label="外包成本(万元)"
  941. >
  942. <span>{this.state.outsourcePrice}</span>
  943. </FormItem>
  944. </div>
  945. ) : (
  946. ""
  947. )}
  948. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  949. <div className="clearfix">
  950. <h3 className="sub-title">联系信息</h3>
  951. <FormItem
  952. className="half-item"
  953. {...formItemLayout}
  954. label="客户名称"
  955. >
  956. <span>{this.state.userName}</span>
  957. </FormItem>
  958. <FormItem
  959. className="half-item"
  960. {...formItemLayout}
  961. label="企业法人"
  962. >
  963. <span>{this.state.legalPerson}</span>
  964. </FormItem>
  965. <FormItem
  966. className="half-item"
  967. {...formItemLayout}
  968. label="法人电话"
  969. >
  970. <span>{this.state.legalPersonTel}</span>
  971. </FormItem>
  972. <FormItem
  973. className="half-item"
  974. {...formItemLayout}
  975. label="客户联系人"
  976. >
  977. <span>{this.state.contacts}</span>
  978. </FormItem>
  979. <FormItem
  980. className="half-item"
  981. {...formItemLayout}
  982. label="联系人电话"
  983. >
  984. <span>{this.state.contactMobile}</span>
  985. </FormItem>
  986. <FormItem
  987. className="half-item"
  988. {...formItemLayout}
  989. label="企业地址"
  990. >
  991. <span>
  992. {getprovince(this.state.locationProvince)}/
  993. {getprovince(this.state.locationCity)}/
  994. {getprovince(this.state.locationArea)}
  995. </span>
  996. </FormItem>
  997. <FormItem
  998. className="half-item"
  999. {...formItemLayout}
  1000. label=""
  1001. ></FormItem>
  1002. <FormItem className="half-item" {...formItemLayout}>
  1003. <span style={{ paddingLeft: "12em" }}>
  1004. {this.state.postalAddress}
  1005. </span>
  1006. </FormItem>
  1007. </div>
  1008. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1009. <div className="clearfix">
  1010. <h3 className="sub-title">订单负责人信息</h3>
  1011. <FormItem
  1012. className="half-item"
  1013. {...formItemLayout}
  1014. label="负责人"
  1015. >
  1016. <span>
  1017. {this.state.salesmanName +
  1018. "(" +
  1019. this.state.depName +
  1020. ")"}
  1021. </span>
  1022. </FormItem>
  1023. <FormItem
  1024. className="half-item"
  1025. {...formItemLayout}
  1026. label="负责人电话"
  1027. >
  1028. <span>{this.state.salesmanMobile}</span>
  1029. </FormItem>
  1030. <FormItem
  1031. className="half-item"
  1032. {...formItemLayout}
  1033. label="当前财务负责人"
  1034. >
  1035. <span>{this.state.nowFinance}</span>
  1036. </FormItem>
  1037. <FormItem
  1038. className="half-item"
  1039. {...formItemLayout}
  1040. label="当前财务负责人电话"
  1041. >
  1042. <span>{this.state.nowFinanceMobile}</span>
  1043. </FormItem>
  1044. <FormItem
  1045. className="half-item"
  1046. {...formItemLayout}
  1047. style={{ opacity: ".5" }}
  1048. label="原负责人"
  1049. >
  1050. <span>{this.state.oldSalesmanName}</span>
  1051. </FormItem>
  1052. <FormItem
  1053. className="half-item"
  1054. {...formItemLayout}
  1055. style={{ opacity: ".5" }}
  1056. label="原负责人电话"
  1057. >
  1058. <span>{this.state.oldSalesmanMobile}</span>
  1059. </FormItem>
  1060. <FormItem
  1061. className="half-item"
  1062. {...formItemLayout}
  1063. style={{ opacity: ".5" }}
  1064. label="实际财务操作人"
  1065. >
  1066. <span>{this.state.financeName}</span>
  1067. </FormItem>
  1068. <FormItem
  1069. className="half-item"
  1070. {...formItemLayout}
  1071. style={{ opacity: ".5" }}
  1072. label="实际财务操作人电话"
  1073. >
  1074. <span>{this.state.financeMobile}</span>
  1075. </FormItem>
  1076. </div>
  1077. <div className="clearfix">
  1078. <h3 className="sub-title">申报系统账户信息</h3>
  1079. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  1080. <FormItem
  1081. className="half-item"
  1082. {...formItemLayout}
  1083. label="用户名"
  1084. >
  1085. <span>{this.state.declareUser ? "*" : ""}</span>
  1086. </FormItem>
  1087. <FormItem
  1088. className="half-item"
  1089. {...formItemLayout}
  1090. label="密码"
  1091. >
  1092. <span>{this.state.declarePwd ? "*" : ""}</span>
  1093. </FormItem>
  1094. </div>
  1095. <div className="clearfix">
  1096. <h3 className="sub-title">项目申报进度</h3>
  1097. <FormItem
  1098. className="half-item"
  1099. {...formItemLayout}
  1100. label="启动时间"
  1101. >
  1102. <span>{this.state.startDate}</span>
  1103. </FormItem>
  1104. <FormItem
  1105. className="half-item"
  1106. {...formItemLayout}
  1107. label="完成时间"
  1108. >
  1109. <span>{this.state.endDate}</span>
  1110. </FormItem>
  1111. <FormItem
  1112. className="half-item"
  1113. {...formItemLayout}
  1114. label="受理时间"
  1115. >
  1116. <span>{this.state.acceptDate}</span>
  1117. </FormItem>
  1118. <FormItem
  1119. className="half-item"
  1120. {...formItemLayout}
  1121. label="评审时间"
  1122. >
  1123. <span>{this.state.reviewDate}</span>
  1124. </FormItem>
  1125. <FormItem
  1126. className="half-item"
  1127. {...formItemLayout}
  1128. label="公示时间"
  1129. >
  1130. <span>{this.state.publicityDate}</span>
  1131. </FormItem>
  1132. <FormItem
  1133. className="half-item"
  1134. {...formItemLayout}
  1135. label="发证时间"
  1136. >
  1137. <span>{this.state.licenceDate}</span>
  1138. </FormItem>
  1139. <FormItem
  1140. className="half-item"
  1141. {...formItemLayout}
  1142. label="立项金额(万元)"
  1143. >
  1144. <span>{this.state.setUpAmount}</span>
  1145. </FormItem>
  1146. <FormItem
  1147. className="half-item"
  1148. {...formItemLayout}
  1149. label="是否到款"
  1150. >
  1151. <span>
  1152. {this.state.arrivalMoney ? "已到企业" : "未到企业"}
  1153. </span>
  1154. </FormItem>
  1155. </div>
  1156. <div className="clearfix">
  1157. <FormItem
  1158. labelCol={{ span: 3 }}
  1159. wrapperCol={{ span: 18 }}
  1160. label="附件"
  1161. >
  1162. <Upload
  1163. className="demandDetailShow-upload"
  1164. listType="picture-card"
  1165. fileList={this.state.attachmentUrl}
  1166. onPreview={file => {
  1167. this.setState({
  1168. previewImage: file.url || file.thumbUrl,
  1169. previewVisible: true
  1170. });
  1171. }}
  1172. ></Upload>
  1173. <Modal
  1174. maskClosable={false}
  1175. footer={null}
  1176. visible={this.state.previewVisible}
  1177. onCancel={() => {
  1178. this.setState({ previewVisible: false });
  1179. }}
  1180. >
  1181. <img
  1182. alt=""
  1183. style={{ width: "100%" }}
  1184. src={this.state.previewImage || ""}
  1185. />
  1186. </Modal>
  1187. </FormItem>
  1188. </div>
  1189. <div className="clearfix">
  1190. <FormItem
  1191. labelCol={{ span: 3 }}
  1192. wrapperCol={{ span: 16 }}
  1193. label="备注"
  1194. >
  1195. <span>{this.state.taskComment}</span>
  1196. </FormItem>
  1197. </div>
  1198. <div>
  1199. <h3 className="sub-title">项目业务</h3>
  1200. {this.state.processStatus == 0 ? (
  1201. <Button
  1202. type="primary"
  1203. onClick={this.addDetailed}
  1204. style={{
  1205. float: "right",
  1206. marginRight: "50px",
  1207. marginBottom: "15px"
  1208. }}
  1209. >
  1210. 添加项目明细
  1211. </Button>
  1212. ) : (
  1213. ""
  1214. )}
  1215. </div>
  1216. <div className="patent-table">
  1217. <Spin spinning={this.state.loading}>
  1218. <Table
  1219. columns={this.state.columnsX}
  1220. dataSource={this.state.dataSourceX}
  1221. pagination={this.state.paginations}
  1222. onRowClick={this.tableRowClickX}
  1223. bordered
  1224. size="small"
  1225. />
  1226. </Spin>
  1227. </div>
  1228. </div>
  1229. </Spin>
  1230. </Form>
  1231. </Modal>
  1232. <Modal
  1233. maskClosable={false}
  1234. visible={this.state.addnextVisible}
  1235. onOk={this.nextCancel}
  1236. onCancel={this.nextCancel}
  1237. width="900px"
  1238. title="项目任务详情"
  1239. footer=""
  1240. className="admin-desc-content"
  1241. >
  1242. <Form
  1243. layout="horizontal"
  1244. onSubmit={this.nextSubmit}
  1245. id="demand-form"
  1246. >
  1247. <Spin spinning={this.state.loading}>
  1248. <div className="clearfix">
  1249. <FormItem
  1250. className="half-item"
  1251. {...formItemLayout}
  1252. label="项目名称"
  1253. >
  1254. <span>{this.state.commodityName}</span>
  1255. </FormItem>
  1256. <FormItem
  1257. className="half-item"
  1258. {...formItemLayout}
  1259. label="项目数量"
  1260. >
  1261. <span>{this.state.commodityQuantity}</span>
  1262. </FormItem>
  1263. <FormItem
  1264. className="half-item"
  1265. {...formItemLayout}
  1266. label="金额(万元)"
  1267. >
  1268. <span>{this.state.commodityPrice}</span>
  1269. </FormItem>
  1270. <FormItem
  1271. className="half-item"
  1272. {...formItemLayout}
  1273. label="主要项目"
  1274. >
  1275. <span>{getboutique(this.state.main)}</span>
  1276. </FormItem>
  1277. <div className="clearfix">
  1278. <FormItem
  1279. labelCol={{ span: 4 }}
  1280. wrapperCol={{ span: 16 }}
  1281. label="服务说明"
  1282. >
  1283. <span>{this.state.taskComment}</span>
  1284. </FormItem>
  1285. </div>
  1286. </div>
  1287. </Spin>
  1288. </Form>
  1289. </Modal>
  1290. <Modal
  1291. width="800px"
  1292. title="操作日志"
  1293. footer=""
  1294. className="admin-desc-content"
  1295. >
  1296. <div className="patent-table patent-table-center">
  1297. <Spin spinning={this.state.loading}>
  1298. <Table columns={this.state.columnsY}
  1299. bordered
  1300. size="small"
  1301. />
  1302. </Spin>
  1303. </div>
  1304. </Modal>
  1305. <Modal
  1306. maskClosable={false}
  1307. visible={this.state.speVisible}
  1308. onOk={this.visitOk}
  1309. onCancel={this.visitCancel}
  1310. width="900px"
  1311. title="项目概况"
  1312. footer=""
  1313. className="admin-desc-content"
  1314. >
  1315. <div className="clearfix">
  1316. <FormItem
  1317. className="half-item"
  1318. {...formItemLayout}
  1319. label="当前项目情况"
  1320. >
  1321. <span>{this.state.status ? "暂停" : "开启"}</span>
  1322. <Button
  1323. type="primary"
  1324. size="small"
  1325. style={{ marginTop: "5px", position: "absolute" }}
  1326. onClick={this.caozuorizhi}
  1327. >
  1328. 操作日志
  1329. </Button>
  1330. </FormItem>
  1331. <FormItem
  1332. className="half-item"
  1333. {...formItemLayout}
  1334. label="合同编号"
  1335. >
  1336. <span>{this.state.contractNo}</span>
  1337. </FormItem>
  1338. </div>
  1339. <div className="clearfix">
  1340. <FormItem
  1341. className="half-item"
  1342. {...formItemLayout}
  1343. label="项目状态"
  1344. >
  1345. <span>{getProcessStatus(this.state.projectStatus)}</span>
  1346. </FormItem>
  1347. <FormItem
  1348. className="half-item"
  1349. {...formItemLayout}
  1350. label="是否特批"
  1351. >
  1352. <span>{getApproval(this.state.approval)}</span>
  1353. </FormItem>
  1354. <FormItem
  1355. className="half-item"
  1356. {...formItemLayout}
  1357. label="结算状态"
  1358. >
  1359. <span>
  1360. {getLiquidationStatus(this.state.liquidationStatus)}
  1361. </span>
  1362. </FormItem>
  1363. <FormItem
  1364. className="half-item"
  1365. {...formItemLayout}
  1366. label="流程状态"
  1367. >
  1368. <span>{getProcessStatus(this.state.processStatus)}</span>
  1369. </FormItem>
  1370. <FormItem
  1371. className="half-item"
  1372. {...formItemLayout}
  1373. label="订单编号"
  1374. >
  1375. <span>{this.state.orderNo}</span>
  1376. </FormItem>
  1377. </div>
  1378. <div className="clearfix">
  1379. <FormItem
  1380. className="half-item"
  1381. {...formItemLayout}
  1382. label="满意度表格"
  1383. >
  1384. <span>{utils.getSatisfaction(this.state.formRetrieve)}</span>
  1385. </FormItem>
  1386. <FormItem
  1387. className="half-item"
  1388. {...formItemLayout}
  1389. label="退单"
  1390. >
  1391. <span>{utils.getChargeback(this.state.taskRefund)}</span>
  1392. </FormItem>
  1393. </div>
  1394. <div className="clearfix">
  1395. {
  1396. <FormItem
  1397. className="half-item"
  1398. {...formItemLayout}
  1399. label="(满意度)备注"
  1400. >
  1401. <span>{this.state.retrieveContent}</span>
  1402. </FormItem>
  1403. }
  1404. {
  1405. <FormItem
  1406. className="half-item"
  1407. {...formItemLayout}
  1408. label="(退单)备注"
  1409. >
  1410. <span>{this.state.refundContent}</span>
  1411. </FormItem>
  1412. }
  1413. </div>
  1414. <div className="clearfix">
  1415. <h3 className="sub-title">任务信息</h3>
  1416. <FormItem
  1417. className="half-item"
  1418. {...formItemLayout}
  1419. label="任务编号"
  1420. >
  1421. <span>{this.state.id}</span>
  1422. </FormItem>
  1423. <FormItem
  1424. className="half-item"
  1425. {...formItemLayout}
  1426. label="任务名称"
  1427. >
  1428. <span>{this.state.taskName}</span>
  1429. </FormItem>
  1430. <FormItem
  1431. className="half-item"
  1432. {...formItemLayout}
  1433. label="任务状态"
  1434. >
  1435. <span>{getTaskStatus(this.state.taskStatus)}</span>
  1436. </FormItem>
  1437. <FormItem
  1438. className="half-item"
  1439. {...formItemLayout}
  1440. label="任务类别"
  1441. >
  1442. <span>{this.state.cname}</span>
  1443. </FormItem>
  1444. <FormItem
  1445. className="half-item"
  1446. {...formItemLayout}
  1447. label="证书编号"
  1448. >
  1449. <span>{this.state.certificateNumber}</span>
  1450. </FormItem>
  1451. </div>
  1452. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1453. <div className="clearfix">
  1454. <h3 className="sub-title">联系信息</h3>
  1455. <FormItem
  1456. className="half-item"
  1457. {...formItemLayout}
  1458. label="客户名称"
  1459. >
  1460. <span>{this.state.userName}</span>
  1461. </FormItem>
  1462. <FormItem
  1463. className="half-item"
  1464. {...formItemLayout}
  1465. label="企业法人"
  1466. >
  1467. <span>{this.state.legalPerson}</span>
  1468. </FormItem>
  1469. <FormItem
  1470. className="half-item"
  1471. {...formItemLayout}
  1472. label="法人电话"
  1473. >
  1474. <span>{this.state.legalPersonTel}</span>
  1475. </FormItem>
  1476. <FormItem
  1477. className="half-item"
  1478. {...formItemLayout}
  1479. label="客户联系人"
  1480. >
  1481. <span>{this.state.contacts}</span>
  1482. </FormItem>
  1483. <FormItem
  1484. className="half-item"
  1485. {...formItemLayout}
  1486. label="联系人电话"
  1487. >
  1488. <span>{this.state.contactMobile}</span>
  1489. </FormItem>
  1490. <FormItem
  1491. className="half-item"
  1492. {...formItemLayout}
  1493. label="企业地址"
  1494. >
  1495. <span>
  1496. {getprovince(this.state.locationProvince)}/
  1497. {getprovince(this.state.locationCity)}/
  1498. {getprovince(this.state.locationArea)}
  1499. </span>
  1500. </FormItem>
  1501. <FormItem
  1502. className="half-item"
  1503. {...formItemLayout}
  1504. label=""
  1505. ></FormItem>
  1506. <FormItem className="half-item" {...formItemLayout} label="">
  1507. <span style={{ paddingLeft: "12em" }}>
  1508. {this.state.postalAddress}
  1509. </span>
  1510. </FormItem>
  1511. </div>
  1512. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1513. <div className="clearfix">
  1514. <h3 className="sub-title">订单负责人信息</h3>
  1515. <FormItem
  1516. className="half-item"
  1517. {...formItemLayout}
  1518. label="负责人"
  1519. >
  1520. <span>
  1521. {this.state.salesmanName + "(" + this.state.depName + ")"}
  1522. </span>
  1523. </FormItem>
  1524. <FormItem
  1525. className="half-item"
  1526. {...formItemLayout}
  1527. label="负责人电话"
  1528. >
  1529. <span>{this.state.salesmanMobile}</span>
  1530. </FormItem>
  1531. <FormItem
  1532. className="half-item"
  1533. {...formItemLayout}
  1534. label="财务负责人"
  1535. >
  1536. <span>{this.state.financeName}</span>
  1537. </FormItem>
  1538. <FormItem
  1539. className="half-item"
  1540. {...formItemLayout}
  1541. label="财务负责人电话"
  1542. >
  1543. <span>{this.state.financeMobile}</span>
  1544. </FormItem>
  1545. </div>
  1546. <div className="clearfix" style={{ marginTop: "10px" }}>
  1547. <FormItem
  1548. labelCol={{ span: 3 }}
  1549. wrapperCol={{ span: 18 }}
  1550. label="附件"
  1551. >
  1552. <Upload
  1553. className="demandDetailShow-upload"
  1554. listType="picture-card"
  1555. fileList={this.state.attachmentUrl}
  1556. onPreview={file => {
  1557. this.setState({
  1558. previewImage: file.url || file.thumbUrl,
  1559. previewVisible: true
  1560. });
  1561. }}
  1562. ></Upload>
  1563. <Modal
  1564. maskClosable={false}
  1565. footer={null}
  1566. visible={this.state.previewVisible}
  1567. onCancel={() => {
  1568. this.setState({ previewVisible: false });
  1569. }}
  1570. >
  1571. <img
  1572. alt=""
  1573. style={{ width: "100%" }}
  1574. src={this.state.previewImage || ""}
  1575. />
  1576. </Modal>
  1577. </FormItem>
  1578. </div>
  1579. <div className="clearfix">
  1580. <FormItem
  1581. labelCol={{ span: 3 }}
  1582. wrapperCol={{ span: 16 }}
  1583. label="备注"
  1584. >
  1585. <span>{this.state.taskComment}</span>
  1586. </FormItem>
  1587. </div>
  1588. <div className="clearfix">
  1589. <h3 className="sub-title">项目申报进度</h3>
  1590. <FormItem
  1591. className="half-item"
  1592. {...formItemLayout}
  1593. label="启动时间"
  1594. >
  1595. <span>{this.state.startDate}</span>
  1596. </FormItem>
  1597. <FormItem
  1598. className="half-item"
  1599. {...formItemLayout}
  1600. label="软著派单数量"
  1601. >
  1602. <span>{this.state.commodityQuantity}</span>
  1603. </FormItem>
  1604. <div className="patent-table patent-table-center">
  1605. <Spin spinning={this.state.loading}>
  1606. <Table
  1607. columns={this.state.ContactsLists}
  1608. dataSource={this.state.contactList}
  1609. pagination={false}
  1610. bordered
  1611. size="small"
  1612. />
  1613. </Spin>
  1614. </div>
  1615. </div>
  1616. <div className="clearfix">
  1617. <h3 className="sub-title">项目业务</h3>
  1618. <div className="patent-table">
  1619. <Spin spinning={this.state.loading}>
  1620. <Table
  1621. columns={this.state.columnsX}
  1622. dataSource={this.state.dataSourceX}
  1623. pagination={this.state.paginations}
  1624. onRowClick={this.tableRowClickX}
  1625. bordered
  1626. size="small"
  1627. />
  1628. </Spin>
  1629. </div>
  1630. </div>
  1631. </Modal>
  1632. <Modal
  1633. width="800px"
  1634. visible={this.state.visibleA}
  1635. onCancel={this.visitCancelA}
  1636. title="操作日志"
  1637. footer=""
  1638. className="admin-desc-content"
  1639. >
  1640. <div className="patent-table patent-table-center">
  1641. <Spin spinning={this.state.loading}>
  1642. <Table
  1643. columns={this.state.columnsA}
  1644. dataSource={this.state.dataSourceA}
  1645. pagination={false}
  1646. bordered
  1647. size="small"
  1648. />
  1649. </Spin>
  1650. </div>
  1651. </Modal>
  1652. </div>
  1653. );
  1654. }
  1655. })
  1656. export default Task;