taskCount.jsx 43 KB

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