myTaskCount.jsx 43 KB

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