myTaskCount.jsx 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285
  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. bordered
  948. size={"small"}
  949. />
  950. </Spin>
  951. </div>
  952. </div>
  953. </Spin>
  954. </Form>
  955. </Modal>
  956. <Modal maskClosable={false} visible={this.state.addnextVisible}
  957. onOk={this.nextCancel} onCancel={this.nextCancel}
  958. width='900px'
  959. title='项目任务详情'
  960. footer=''
  961. className="admin-desc-content">
  962. <Form layout="horizontal" onSubmit={this.nextSubmit} id="demand-form">
  963. <Spin spinning={this.state.loading}>
  964. <div className='clearfix'>
  965. <FormItem className="half-item"
  966. {...formItemLayout}
  967. label="项目名称" >
  968. <span>{this.state.commodityName}</span>
  969. </FormItem>
  970. <FormItem className="half-item"
  971. {...formItemLayout}
  972. label="项目数量" >
  973. <span>{this.state.commodityQuantity}</span>
  974. </FormItem>
  975. <FormItem className="half-item"
  976. {...formItemLayout}
  977. label="金额(万元)" >
  978. <span>{this.state.commodityPrice}</span>
  979. </FormItem>
  980. <FormItem className="half-item"
  981. {...formItemLayout}
  982. label="主要项目" >
  983. <span>{getboutique(this.state.main)}</span>
  984. </FormItem>
  985. <div className='clearfix'>
  986. <FormItem
  987. labelCol={{ span: 4 }}
  988. wrapperCol={{ span: 16 }}
  989. label="服务说明" >
  990. <span>{this.state.taskComment}</span>
  991. </FormItem>
  992. </div>
  993. </div>
  994. </Spin>
  995. </Form >
  996. </Modal>
  997. <Modal width='800px'
  998. title='操作日志'
  999. footer=''
  1000. className="admin-desc-content">
  1001. <div className="patent-table patent-table-center">
  1002. <Spin spinning={this.state.loading}>
  1003. <Table columns={this.state.columnsY}
  1004. bordered
  1005. size={"small"}
  1006. />
  1007. </Spin>
  1008. </div>
  1009. </Modal>
  1010. <Modal maskClosable={false} visible={this.state.speVisible}
  1011. onOk={this.visitOk} onCancel={this.visitCancel}
  1012. width='900px'
  1013. title='项目概况'
  1014. footer=''
  1015. className="admin-desc-content">
  1016. <div className="clearfix">
  1017. <FormItem className="half-item"
  1018. {...formItemLayout}
  1019. label="当前项目情况">
  1020. <span>{this.state.status?'暂停':'开启'}</span>
  1021. <Button type='primary' size='small' style={{marginTop:'5px',position:'absolute'}} onClick={this.caozuorizhi}>操作日志</Button>
  1022. </FormItem>
  1023. <FormItem className="half-item"
  1024. {...formItemLayout}
  1025. label="合同编号">
  1026. <span>{this.state.contractNo}</span>
  1027. </FormItem>
  1028. </div>
  1029. <div className="clearfix">
  1030. <FormItem className="half-item"
  1031. {...formItemLayout}
  1032. label="项目状态">
  1033. <span>{getProcessStatus(this.state.projectStatus)}</span>
  1034. </FormItem>
  1035. <FormItem className="half-item"
  1036. {...formItemLayout}
  1037. label="是否特批">
  1038. <span>{getApproval(this.state.approval)}</span>
  1039. </FormItem>
  1040. <FormItem className="half-item"
  1041. {...formItemLayout}
  1042. label="结算状态">
  1043. <span>{getLiquidationStatus(this.state.liquidationStatus)}</span>
  1044. </FormItem>
  1045. <FormItem className="half-item"
  1046. {...formItemLayout}
  1047. label="流程状态">
  1048. <span>{getProcessStatus(this.state.processStatus)}</span>
  1049. </FormItem>
  1050. <FormItem className="half-item"
  1051. {...formItemLayout}
  1052. label="订单编号">
  1053. <span>{this.state.orderNo}</span>
  1054. </FormItem>
  1055. </div>
  1056. <div className="clearfix">
  1057. <FormItem className="half-item"
  1058. {...formItemLayout}
  1059. label="满意度表格">
  1060. <span>{utils.getSatisfaction(this.state.formRetrieve)}</span>
  1061. </FormItem>
  1062. <FormItem className="half-item"
  1063. {...formItemLayout}
  1064. label="退单">
  1065. <span>{utils.getChargeback(this.state.taskRefund)}</span>
  1066. </FormItem>
  1067. </div>
  1068. <div className="clearfix">
  1069. {<FormItem className='half-item'
  1070. {...formItemLayout}
  1071. label="(满意度)备注">
  1072. <span>{this.state.retrieveContent}</span>
  1073. </FormItem>}
  1074. {<FormItem className='half-item'
  1075. {...formItemLayout}
  1076. label="(退单)备注">
  1077. <span>{this.state.refundContent}</span>
  1078. </FormItem>}
  1079. </div>
  1080. <div className="clearfix">
  1081. <h3 className='sub-title'>任务信息</h3>
  1082. <FormItem className="half-item"
  1083. {...formItemLayout}
  1084. label="任务编号">
  1085. <span>{this.state.id}</span>
  1086. </FormItem>
  1087. <FormItem className="half-item"
  1088. {...formItemLayout}
  1089. label="任务名称">
  1090. <span>{this.state.taskName}</span>
  1091. </FormItem>
  1092. <FormItem className="half-item"
  1093. {...formItemLayout}
  1094. label="任务状态">
  1095. <span>{getTaskStatus(this.state.taskStatus)}</span>
  1096. </FormItem>
  1097. <FormItem className="half-item"
  1098. {...formItemLayout}
  1099. label="任务类别">
  1100. <span>{this.state.cname}</span>
  1101. </FormItem>
  1102. <FormItem className="half-item"
  1103. {...formItemLayout}
  1104. label="证书编号" >
  1105. <span>{this.state.certificateNumber}</span>
  1106. </FormItem>
  1107. </div>
  1108. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1109. <div className="clearfix">
  1110. <h3 className='sub-title'>联系信息</h3>
  1111. <FormItem className="half-item"
  1112. {...formItemLayout}
  1113. label="客户名称">
  1114. <span>{this.state.userName}</span>
  1115. </FormItem>
  1116. <FormItem className="half-item"
  1117. {...formItemLayout}
  1118. label="企业法人">
  1119. <span>{this.state.legalPerson}</span>
  1120. </FormItem>
  1121. <FormItem className="half-item"
  1122. {...formItemLayout}
  1123. label="法人电话">
  1124. <span>{this.state.legalPersonTel}</span>
  1125. </FormItem>
  1126. <FormItem className="half-item"
  1127. {...formItemLayout}
  1128. label="客户联系人">
  1129. <span>{this.state.contacts}</span>
  1130. </FormItem>
  1131. <FormItem className="half-item"
  1132. {...formItemLayout}
  1133. label="联系人电话">
  1134. <span>{this.state.contactMobile}</span>
  1135. </FormItem>
  1136. <FormItem className="half-item"
  1137. {...formItemLayout}
  1138. label="企业地址">
  1139. <span>{getprovince(this.state.locationProvince)}/{getprovince(this.state.locationCity)}/{getprovince(this.state.locationArea)}</span>
  1140. </FormItem>
  1141. <FormItem className="half-item"
  1142. {...formItemLayout}
  1143. label="">
  1144. </FormItem>
  1145. <FormItem className="half-item"
  1146. {...formItemLayout}
  1147. label="">
  1148. <span style={{paddingLeft:'12em'}}>{this.state.postalAddress}</span>
  1149. </FormItem>
  1150. </div>
  1151. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1152. <div className="clearfix">
  1153. <h3 className='sub-title'>订单负责人信息</h3>
  1154. <FormItem className="half-item"
  1155. {...formItemLayout}
  1156. label="负责人">
  1157. <span>{this.state.salesmanName+'('+this.state.depName+')'}</span>
  1158. </FormItem>
  1159. <FormItem className="half-item"
  1160. {...formItemLayout}
  1161. label="负责人电话">
  1162. <span>{this.state.salesmanMobile}</span>
  1163. </FormItem>
  1164. <FormItem className="half-item"
  1165. {...formItemLayout}
  1166. label="财务负责人">
  1167. <span>{this.state.financeName}</span>
  1168. </FormItem>
  1169. <FormItem className="half-item"
  1170. {...formItemLayout}
  1171. label="财务负责人电话">
  1172. <span>{this.state.financeMobile}</span>
  1173. </FormItem>
  1174. </div>
  1175. <div className="clearfix" style={{marginTop:'10px'}}>
  1176. <FormItem
  1177. labelCol={{ span: 3 }}
  1178. wrapperCol={{ span: 18 }}
  1179. label='附件'
  1180. >
  1181. <Upload className="demandDetailShow-upload"
  1182. listType="picture-card"
  1183. fileList={this.state.attachmentUrl}
  1184. onPreview={(file) => {
  1185. this.setState({
  1186. previewImage: file.url || file.thumbUrl,
  1187. previewVisible: true,
  1188. });
  1189. }} >
  1190. </Upload>
  1191. <Modal maskClosable={false} footer={null}
  1192. visible={this.state.previewVisible}
  1193. onCancel={() => { this.setState({ previewVisible: false }) }}>
  1194. <img alt="" style={{ width: '100%' }} src={this.state.previewImage || ''} />
  1195. </Modal>
  1196. </FormItem>
  1197. </div>
  1198. <div className="clearfix">
  1199. <FormItem
  1200. labelCol={{ span: 3 }}
  1201. wrapperCol={{ span: 16 }}
  1202. label="备注">
  1203. <span>{this.state.taskComment}</span>
  1204. </FormItem>
  1205. </div>
  1206. <div className="clearfix">
  1207. <h3 className='sub-title'>项目申报进度</h3>
  1208. <FormItem className="half-item"
  1209. {...formItemLayout}
  1210. label="启动时间">
  1211. <span>{this.state.startDate}</span>
  1212. </FormItem>
  1213. <FormItem className="half-item"
  1214. {...formItemLayout}
  1215. label="软著派单数量">
  1216. <span>{this.state.commodityQuantity}</span>
  1217. </FormItem>
  1218. <div className="patent-table patent-table-center">
  1219. <Spin spinning={this.state.loading}>
  1220. <Table columns={this.state.ContactsLists}
  1221. dataSource={this.state.contactList}
  1222. bordered
  1223. size="small"
  1224. pagination={false}/>
  1225. </Spin>
  1226. </div>
  1227. </div>
  1228. <div className="clearfix">
  1229. <h3 className='sub-title'>项目业务</h3>
  1230. <div className="patent-table">
  1231. <Spin spinning={this.state.loading}>
  1232. <Table columns={this.state.columnsX}
  1233. dataSource={this.state.dataSourceX}
  1234. pagination={this.state.paginations}
  1235. onRowClick={this.tableRowClickX}
  1236. bordered
  1237. size="small"
  1238. />
  1239. </Spin>
  1240. </div>
  1241. </div>
  1242. </Modal>
  1243. <Modal width='800px' visible={this.state.visibleA}
  1244. onCancel={this.visitCancelA}
  1245. title='操作日志'
  1246. footer=''
  1247. className="admin-desc-content">
  1248. <div className="patent-table patent-table-center">
  1249. <Spin spinning={this.state.loading}>
  1250. <Table columns={this.state.columnsA}
  1251. dataSource={this.state.dataSourceA}
  1252. bordered
  1253. size="small"
  1254. pagination={false}/>
  1255. </Spin>
  1256. </div>
  1257. </Modal>
  1258. </div>
  1259. );
  1260. }
  1261. }));
  1262. export default MyTaskCount;