taskCount.jsx 50 KB

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