myTaskCount.jsx 43 KB

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