myTaskCount.jsx 43 KB

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