myTaskCount.jsx 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271
  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. name: this.state.customerName?this.state.customerName:undefined,//订单负责人
  598. taskId: this.state.idSearch?this.state.idSearch:undefined,//订单编号
  599. starTime: this.state.releaseDate[0]?this.state.releaseDate[0]:undefined,
  600. endTime: this.state.releaseDate[1]?this.state.releaseDate[1]:undefined,
  601. type: 1
  602. }
  603. window.location.href=(globalConfig.context+'/api/admin/orderProject/exportTaskHoursListData?'+$.param(data));
  604. },
  605. visitOks(){
  606. this.setState({
  607. visibles:false
  608. })
  609. this.resets();
  610. },
  611. render() {
  612. const formItemLayout = {
  613. labelCol: { span: 8 },
  614. wrapperCol: { span: 14 },
  615. };
  616. const utils = {
  617. getSatisfaction:function(num){
  618. switch(num){
  619. case 0:
  620. return '未收回';
  621. case 1:
  622. return '已收回';
  623. default:
  624. return '其它';
  625. }
  626. },
  627. getChargeback:function(num){
  628. switch(num){
  629. case 0:
  630. return '已完成';
  631. case 1:
  632. return '未完成';
  633. default:
  634. return '其它';
  635. }
  636. }
  637. }
  638. const FormItem = Form.Item;
  639. const { RangePicker } = DatePicker;
  640. return(
  641. <div className="user-content">
  642. <div className="content-title">
  643. <span>工时数据统计</span>
  644. </div>
  645. <div className="user-search">
  646. <Input placeholder="客户名称" style={{width:'150px',marginBottom:'10px'}}
  647. value={this.state.customerName}
  648. onChange={(e) => { this.setState({ customerName: e.target.value }); }} />
  649. <Input placeholder="任务编号" style={{width:'150px'}}
  650. value={this.state.idSearch}
  651. onChange={(e) => { this.setState({ idSearch: e.target.value }); }} />
  652. <Input placeholder="订单编号" style={{width:'150px'}}
  653. value={this.state.orderNoSearch}
  654. onChange={(e) => { this.setState({
  655. orderNoSearch: e.target.value
  656. }); }} />
  657. <span style={{marginRight:"10px"}}>合同签订时间 :</span>
  658. <RangePicker
  659. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  660. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  661. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  662. <Button type="primary" onClick={this.search} style={{marginLeft:'10px'}}>搜索</Button>
  663. <Button onClick={this.reset}>重置</Button>
  664. <Button type="primary" onClick={this.exportExec}>导出工时数据</Button>
  665. <div className="patent-table">
  666. <Spin spinning={this.state.loading}>
  667. <Table columns={this.state.columns}
  668. dataSource={this.state.dataSource}
  669. pagination={this.state.pagination}
  670. onRowClick={this.tableRowClick.bind(this)}
  671. />
  672. </Spin>
  673. </div>
  674. </div>
  675. <Modal
  676. className="customeDetails"
  677. footer=''
  678. title="项目概况"
  679. width='900px'
  680. visible={this.state.visible}
  681. onOk={this.visitOk}
  682. onCancel={this.visitCancel}
  683. >
  684. <Form layout="horizontal" onSubmit={this.handleSubmit} id="demand-form" style={{paddingBottom:'00px'}} >
  685. <Spin spinning={this.state.loading}>
  686. <div className="clearfix">
  687. <div className="clearfix">
  688. <FormItem className="half-item"
  689. {...formItemLayout}
  690. label="当前项目情况">
  691. <span>{this.state.status?'暂停':'开启'}</span>
  692. <Button type='primary' size='small' style={{marginTop:'5px',position:'absolute'}} onClick={this.caozuorizhi}>操作日志</Button>
  693. </FormItem>
  694. <FormItem className="half-item"
  695. {...formItemLayout}
  696. label="合同编号">
  697. <span>{this.state.contractNo}</span>
  698. </FormItem>
  699. </div>
  700. <div className="clearfix">
  701. <FormItem className="half-item"
  702. {...formItemLayout}
  703. label="项目状态">
  704. <span>{getProcessStatus(this.state.projectStatus)}</span>
  705. </FormItem>
  706. <FormItem className="half-item"
  707. {...formItemLayout}
  708. label="是否特批">
  709. <span>{getApproval(this.state.approval)}</span>
  710. </FormItem>
  711. <FormItem className="half-item"
  712. {...formItemLayout}
  713. label="结算状态">
  714. <span>{getLiquidationStatus(this.state.liquidationStatus)}</span>
  715. </FormItem>
  716. <FormItem className="half-item"
  717. {...formItemLayout}
  718. label="流程状态">
  719. <span>{getProcessStatus(this.state.processStatus)}</span>
  720. </FormItem>
  721. <FormItem className="half-item"
  722. {...formItemLayout}
  723. label="订单编号">
  724. <span>{this.state.orderNo}</span>
  725. </FormItem>
  726. </div>
  727. <div className="clearfix">
  728. <FormItem className="half-item"
  729. {...formItemLayout}
  730. label="满意度表格">
  731. <span>{utils.getSatisfaction(this.state.formRetrieve)}</span>
  732. </FormItem>
  733. <FormItem className="half-item"
  734. {...formItemLayout}
  735. label="退单">
  736. <span>{utils.getChargeback(this.state.taskRefund)}</span>
  737. </FormItem>
  738. </div>
  739. <div className="clearfix">
  740. {<FormItem className='half-item'
  741. {...formItemLayout}
  742. label="(满意度)备注">
  743. <span>{this.state.retrieveContent}</span>
  744. </FormItem>}
  745. {<FormItem className='half-item'
  746. {...formItemLayout}
  747. label="(退单)备注">
  748. <span>{this.state.refundContent}</span>
  749. </FormItem>}
  750. </div>
  751. <div className="clearfix">
  752. <h3 className='sub-title'>任务信息</h3>
  753. <FormItem className="half-item"
  754. {...formItemLayout}
  755. label="任务编号">
  756. <span>{this.state.id}</span>
  757. </FormItem>
  758. <FormItem className="half-item"
  759. {...formItemLayout}
  760. label="任务名称">
  761. <span>{this.state.taskName}</span>
  762. </FormItem>
  763. <FormItem className="half-item"
  764. {...formItemLayout}
  765. label="任务状态">
  766. <span>{getTaskStatus(this.state.taskStatus)}</span>
  767. </FormItem>
  768. <FormItem className="half-item"
  769. {...formItemLayout}
  770. label="任务类别">
  771. <span>{this.state.cname}</span>
  772. </FormItem>
  773. <FormItem className="half-item"
  774. {...formItemLayout}
  775. label="证书编号" >
  776. <span>{this.state.certificateNumber}</span>
  777. </FormItem>
  778. </div>
  779. {this.state.outsource === 1?<div className="clearfix">
  780. <h3 className='sub-title'>外包信息</h3>
  781. <FormItem className="half-item"
  782. {...formItemLayout}
  783. label="外包公司">
  784. <span>{this.state.outsourceName}</span>
  785. </FormItem>
  786. <FormItem className="half-item"
  787. {...formItemLayout}
  788. label="外包成本(万元)">
  789. <span>{this.state.outsourcePrice}</span>
  790. </FormItem>
  791. </div>:''}
  792. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  793. <div className="clearfix">
  794. <h3 className='sub-title'>联系信息</h3>
  795. <FormItem className="half-item"
  796. {...formItemLayout}
  797. label="客户名称">
  798. <span>{this.state.userName}</span>
  799. </FormItem>
  800. <FormItem className="half-item"
  801. {...formItemLayout}
  802. label="企业法人">
  803. <span>{this.state.legalPerson}</span>
  804. </FormItem>
  805. <FormItem className="half-item"
  806. {...formItemLayout}
  807. label="法人电话">
  808. <span>{this.state.legalPersonTel}</span>
  809. </FormItem>
  810. <FormItem className="half-item"
  811. {...formItemLayout}
  812. label="客户联系人">
  813. <span>{this.state.contacts}</span>
  814. </FormItem>
  815. <FormItem className="half-item"
  816. {...formItemLayout}
  817. label="联系人电话">
  818. <span>{this.state.contactMobile}</span>
  819. </FormItem>
  820. <FormItem className="half-item"
  821. {...formItemLayout}
  822. label="企业地址">
  823. <span>{getprovince(this.state.locationProvince)}/{getprovince(this.state.locationCity)}/{getprovince(this.state.locationArea)}</span>
  824. </FormItem>
  825. <FormItem className="half-item"
  826. {...formItemLayout}
  827. label="">
  828. </FormItem>
  829. <FormItem className="half-item"
  830. {...formItemLayout}>
  831. <span style={{paddingLeft:'12em'}}>{this.state.postalAddress}</span>
  832. </FormItem>
  833. </div>
  834. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  835. <div className="clearfix">
  836. <h3 className='sub-title'>订单负责人信息</h3>
  837. <FormItem className="half-item"
  838. {...formItemLayout}
  839. label="负责人">
  840. <span>{this.state.salesmanName+'('+this.state.depName+')'}</span>
  841. </FormItem>
  842. <FormItem className="half-item"
  843. {...formItemLayout}
  844. label="负责人电话">
  845. <span>{this.state.salesmanMobile}</span>
  846. </FormItem>
  847. <FormItem className="half-item"
  848. {...formItemLayout}
  849. label="财务负责人">
  850. <span>{this.state.financeName}</span>
  851. </FormItem>
  852. <FormItem className="half-item"
  853. {...formItemLayout}
  854. label="财务负责人电话">
  855. <span>{this.state.financeMobile}</span>
  856. </FormItem>
  857. </div>
  858. <div className="clearfix">
  859. <h3 className='sub-title'>申报系统账户信息</h3>
  860. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  861. <FormItem className="half-item"
  862. {...formItemLayout}
  863. label="用户名" >
  864. <span>{this.state.declareUser?'*':''}</span>
  865. </FormItem>
  866. <FormItem className="half-item"
  867. {...formItemLayout}
  868. label="密码" >
  869. <span>{this.state.declarePwd?'*':''}</span>
  870. </FormItem>
  871. </div>
  872. <div className="clearfix">
  873. <h3 className='sub-title'>项目申报进度</h3>
  874. <FormItem className="half-item" {...formItemLayout} label="启动时间">
  875. <span>{this.state.startDate}</span>
  876. </FormItem>
  877. <FormItem className="half-item" {...formItemLayout} label="完成时间">
  878. <span>{this.state.endDate}</span>
  879. </FormItem>
  880. <FormItem className="half-item" {...formItemLayout} label="受理时间">
  881. <span>{this.state.acceptDate}</span>
  882. </FormItem>
  883. <FormItem className="half-item" {...formItemLayout} label="评审时间">
  884. <span>{this.state.reviewDate}</span>
  885. </FormItem>
  886. <FormItem className="half-item" {...formItemLayout} label="公示时间">
  887. <span>{this.state.publicityDate}</span>
  888. </FormItem>
  889. <FormItem className="half-item" {...formItemLayout} label="发证时间">
  890. <span>{this.state.licenceDate}</span>
  891. </FormItem>
  892. <FormItem className="half-item"
  893. {...formItemLayout}
  894. label="立项金额(万元)" >
  895. <span>{this.state.setUpAmount}</span>
  896. </FormItem>
  897. <FormItem className="half-item"
  898. {...formItemLayout}
  899. label="是否到款">
  900. <span>{this.state.arrivalMoney?'已到企业':'未到企业'}</span>
  901. </FormItem>
  902. </div>
  903. <div className='clearfix'>
  904. <FormItem
  905. labelCol={{ span: 3 }}
  906. wrapperCol={{ span: 18 }}
  907. label='附件'
  908. >
  909. <Upload className="demandDetailShow-upload"
  910. listType="picture-card"
  911. fileList={this.state.attachmentUrl}
  912. onPreview={(file) => {
  913. this.setState({
  914. previewImage: file.url || file.thumbUrl,
  915. previewVisible: true,
  916. });
  917. }} >
  918. </Upload>
  919. <Modal maskClosable={false} footer={null}
  920. visible={this.state.previewVisible}
  921. onCancel={() => { this.setState({ previewVisible: false }) }}>
  922. <img alt="" style={{ width: '100%' }} src={this.state.previewImage || ''} />
  923. </Modal>
  924. </FormItem>
  925. </div>
  926. <div className='clearfix'>
  927. <FormItem
  928. labelCol={{ span: 3 }}
  929. wrapperCol={{ span: 16 }}
  930. label="备注" >
  931. <span>{this.state.taskComment}</span>
  932. </FormItem>
  933. </div>
  934. <div>
  935. <h3 className='sub-title'>项目业务</h3>
  936. {this.state.processStatus==0?<Button type='primary' onClick={this.addDetailed} style={{float:'right',marginRight:'50px',marginBottom:'15px'}}>添加项目明细</Button>:""}
  937. </div>
  938. <div className="patent-table">
  939. <Spin spinning={this.state.loading}>
  940. <Table columns={this.state.columnsX}
  941. dataSource={this.state.dataSourceX}
  942. pagination={this.state.paginations}
  943. onRowClick={this.tableRowClickX}
  944. />
  945. </Spin>
  946. </div>
  947. </div>
  948. </Spin>
  949. </Form>
  950. </Modal>
  951. <Modal maskClosable={false} visible={this.state.addnextVisible}
  952. onOk={this.nextCancel} onCancel={this.nextCancel}
  953. width='900px'
  954. title='项目任务详情'
  955. footer=''
  956. className="admin-desc-content">
  957. <Form layout="horizontal" onSubmit={this.nextSubmit} id="demand-form">
  958. <Spin spinning={this.state.loading}>
  959. <div className='clearfix'>
  960. <FormItem className="half-item"
  961. {...formItemLayout}
  962. label="项目名称" >
  963. <span>{this.state.commodityName}</span>
  964. </FormItem>
  965. <FormItem className="half-item"
  966. {...formItemLayout}
  967. label="项目数量" >
  968. <span>{this.state.commodityQuantity}</span>
  969. </FormItem>
  970. <FormItem className="half-item"
  971. {...formItemLayout}
  972. label="金额(万元)" >
  973. <span>{this.state.commodityPrice}</span>
  974. </FormItem>
  975. <FormItem className="half-item"
  976. {...formItemLayout}
  977. label="主要项目" >
  978. <span>{getboutique(this.state.main)}</span>
  979. </FormItem>
  980. <div className='clearfix'>
  981. <FormItem
  982. labelCol={{ span: 4 }}
  983. wrapperCol={{ span: 16 }}
  984. label="服务说明" >
  985. <span>{this.state.taskComment}</span>
  986. </FormItem>
  987. </div>
  988. </div>
  989. </Spin>
  990. </Form >
  991. </Modal>
  992. <Modal width='800px'
  993. title='操作日志'
  994. footer=''
  995. className="admin-desc-content">
  996. <div className="patent-table patent-table-center">
  997. <Spin spinning={this.state.loading}>
  998. <Table columns={this.state.columnsY}/>
  999. </Spin>
  1000. </div>
  1001. </Modal>
  1002. <Modal maskClosable={false} visible={this.state.speVisible}
  1003. onOk={this.visitOk} onCancel={this.visitCancel}
  1004. width='900px'
  1005. title='项目概况'
  1006. footer=''
  1007. className="admin-desc-content">
  1008. <div className="clearfix">
  1009. <FormItem className="half-item"
  1010. {...formItemLayout}
  1011. label="当前项目情况">
  1012. <span>{this.state.status?'暂停':'开启'}</span>
  1013. <Button type='primary' size='small' style={{marginTop:'5px',position:'absolute'}} onClick={this.caozuorizhi}>操作日志</Button>
  1014. </FormItem>
  1015. <FormItem className="half-item"
  1016. {...formItemLayout}
  1017. label="合同编号">
  1018. <span>{this.state.contractNo}</span>
  1019. </FormItem>
  1020. </div>
  1021. <div className="clearfix">
  1022. <FormItem className="half-item"
  1023. {...formItemLayout}
  1024. label="项目状态">
  1025. <span>{getProcessStatus(this.state.projectStatus)}</span>
  1026. </FormItem>
  1027. <FormItem className="half-item"
  1028. {...formItemLayout}
  1029. label="是否特批">
  1030. <span>{getApproval(this.state.approval)}</span>
  1031. </FormItem>
  1032. <FormItem className="half-item"
  1033. {...formItemLayout}
  1034. label="结算状态">
  1035. <span>{getLiquidationStatus(this.state.liquidationStatus)}</span>
  1036. </FormItem>
  1037. <FormItem className="half-item"
  1038. {...formItemLayout}
  1039. label="流程状态">
  1040. <span>{getProcessStatus(this.state.processStatus)}</span>
  1041. </FormItem>
  1042. <FormItem className="half-item"
  1043. {...formItemLayout}
  1044. label="订单编号">
  1045. <span>{this.state.orderNo}</span>
  1046. </FormItem>
  1047. </div>
  1048. <div className="clearfix">
  1049. <FormItem className="half-item"
  1050. {...formItemLayout}
  1051. label="满意度表格">
  1052. <span>{utils.getSatisfaction(this.state.formRetrieve)}</span>
  1053. </FormItem>
  1054. <FormItem className="half-item"
  1055. {...formItemLayout}
  1056. label="退单">
  1057. <span>{utils.getChargeback(this.state.taskRefund)}</span>
  1058. </FormItem>
  1059. </div>
  1060. <div className="clearfix">
  1061. {<FormItem className='half-item'
  1062. {...formItemLayout}
  1063. label="(满意度)备注">
  1064. <span>{this.state.retrieveContent}</span>
  1065. </FormItem>}
  1066. {<FormItem className='half-item'
  1067. {...formItemLayout}
  1068. label="(退单)备注">
  1069. <span>{this.state.refundContent}</span>
  1070. </FormItem>}
  1071. </div>
  1072. <div className="clearfix">
  1073. <h3 className='sub-title'>任务信息</h3>
  1074. <FormItem className="half-item"
  1075. {...formItemLayout}
  1076. label="任务编号">
  1077. <span>{this.state.id}</span>
  1078. </FormItem>
  1079. <FormItem className="half-item"
  1080. {...formItemLayout}
  1081. label="任务名称">
  1082. <span>{this.state.taskName}</span>
  1083. </FormItem>
  1084. <FormItem className="half-item"
  1085. {...formItemLayout}
  1086. label="任务状态">
  1087. <span>{getTaskStatus(this.state.taskStatus)}</span>
  1088. </FormItem>
  1089. <FormItem className="half-item"
  1090. {...formItemLayout}
  1091. label="任务类别">
  1092. <span>{this.state.cname}</span>
  1093. </FormItem>
  1094. <FormItem className="half-item"
  1095. {...formItemLayout}
  1096. label="证书编号" >
  1097. <span>{this.state.certificateNumber}</span>
  1098. </FormItem>
  1099. </div>
  1100. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1101. <div className="clearfix">
  1102. <h3 className='sub-title'>联系信息</h3>
  1103. <FormItem className="half-item"
  1104. {...formItemLayout}
  1105. label="客户名称">
  1106. <span>{this.state.userName}</span>
  1107. </FormItem>
  1108. <FormItem className="half-item"
  1109. {...formItemLayout}
  1110. label="企业法人">
  1111. <span>{this.state.legalPerson}</span>
  1112. </FormItem>
  1113. <FormItem className="half-item"
  1114. {...formItemLayout}
  1115. label="法人电话">
  1116. <span>{this.state.legalPersonTel}</span>
  1117. </FormItem>
  1118. <FormItem className="half-item"
  1119. {...formItemLayout}
  1120. label="客户联系人">
  1121. <span>{this.state.contacts}</span>
  1122. </FormItem>
  1123. <FormItem className="half-item"
  1124. {...formItemLayout}
  1125. label="联系人电话">
  1126. <span>{this.state.contactMobile}</span>
  1127. </FormItem>
  1128. <FormItem className="half-item"
  1129. {...formItemLayout}
  1130. label="企业地址">
  1131. <span>{getprovince(this.state.locationProvince)}/{getprovince(this.state.locationCity)}/{getprovince(this.state.locationArea)}</span>
  1132. </FormItem>
  1133. <FormItem className="half-item"
  1134. {...formItemLayout}
  1135. label="">
  1136. </FormItem>
  1137. <FormItem className="half-item"
  1138. {...formItemLayout}
  1139. label="">
  1140. <span style={{paddingLeft:'12em'}}>{this.state.postalAddress}</span>
  1141. </FormItem>
  1142. </div>
  1143. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1144. <div className="clearfix">
  1145. <h3 className='sub-title'>订单负责人信息</h3>
  1146. <FormItem className="half-item"
  1147. {...formItemLayout}
  1148. label="负责人">
  1149. <span>{this.state.salesmanName+'('+this.state.depName+')'}</span>
  1150. </FormItem>
  1151. <FormItem className="half-item"
  1152. {...formItemLayout}
  1153. label="负责人电话">
  1154. <span>{this.state.salesmanMobile}</span>
  1155. </FormItem>
  1156. <FormItem className="half-item"
  1157. {...formItemLayout}
  1158. label="财务负责人">
  1159. <span>{this.state.financeName}</span>
  1160. </FormItem>
  1161. <FormItem className="half-item"
  1162. {...formItemLayout}
  1163. label="财务负责人电话">
  1164. <span>{this.state.financeMobile}</span>
  1165. </FormItem>
  1166. </div>
  1167. <div className="clearfix" style={{marginTop:'10px'}}>
  1168. <FormItem
  1169. labelCol={{ span: 3 }}
  1170. wrapperCol={{ span: 18 }}
  1171. label='附件'
  1172. >
  1173. <Upload className="demandDetailShow-upload"
  1174. listType="picture-card"
  1175. fileList={this.state.attachmentUrl}
  1176. onPreview={(file) => {
  1177. this.setState({
  1178. previewImage: file.url || file.thumbUrl,
  1179. previewVisible: true,
  1180. });
  1181. }} >
  1182. </Upload>
  1183. <Modal maskClosable={false} footer={null}
  1184. visible={this.state.previewVisible}
  1185. onCancel={() => { this.setState({ previewVisible: false }) }}>
  1186. <img alt="" style={{ width: '100%' }} src={this.state.previewImage || ''} />
  1187. </Modal>
  1188. </FormItem>
  1189. </div>
  1190. <div className="clearfix">
  1191. <FormItem
  1192. labelCol={{ span: 3 }}
  1193. wrapperCol={{ span: 16 }}
  1194. label="备注">
  1195. <span>{this.state.taskComment}</span>
  1196. </FormItem>
  1197. </div>
  1198. <div className="clearfix">
  1199. <h3 className='sub-title'>项目申报进度</h3>
  1200. <FormItem className="half-item"
  1201. {...formItemLayout}
  1202. label="启动时间">
  1203. <span>{this.state.startDate}</span>
  1204. </FormItem>
  1205. <FormItem className="half-item"
  1206. {...formItemLayout}
  1207. label="软著派单数量">
  1208. <span>{this.state.commodityQuantity}</span>
  1209. </FormItem>
  1210. <div className="patent-table patent-table-center">
  1211. <Spin spinning={this.state.loading}>
  1212. <Table columns={this.state.ContactsLists}
  1213. dataSource={this.state.contactList}
  1214. pagination={false}/>
  1215. </Spin>
  1216. </div>
  1217. </div>
  1218. <div className="clearfix">
  1219. <h3 className='sub-title'>项目业务</h3>
  1220. <div className="patent-table">
  1221. <Spin spinning={this.state.loading}>
  1222. <Table columns={this.state.columnsX}
  1223. dataSource={this.state.dataSourceX}
  1224. pagination={this.state.paginations}
  1225. onRowClick={this.tableRowClickX}
  1226. />
  1227. </Spin>
  1228. </div>
  1229. </div>
  1230. </Modal>
  1231. <Modal width='800px' visible={this.state.visibleA}
  1232. onCancel={this.visitCancelA}
  1233. title='操作日志'
  1234. footer=''
  1235. className="admin-desc-content">
  1236. <div className="patent-table patent-table-center">
  1237. <Spin spinning={this.state.loading}>
  1238. <Table columns={this.state.columnsA}
  1239. dataSource={this.state.dataSourceA}
  1240. pagination={false}/>
  1241. </Spin>
  1242. </div>
  1243. </Modal>
  1244. </div>
  1245. );
  1246. }
  1247. }));
  1248. export default MyTaskCount;