taskQuery.jsx 58 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642
  1. import React from 'react';
  2. import $ from 'jquery';
  3. import '@/manageCenter/financialManage/distribute/public.less';
  4. import { Button, Form, Input, Select, Upload,Spin, Table, message, Modal} from 'antd';
  5. import Assign from '@/manageCenter/publicComponent/assign';
  6. import './table.less';
  7. import {
  8. getProcessStatus,
  9. getApproval,
  10. getTaskStatus,
  11. getLiquidationStatus,
  12. splitUrl,
  13. getProjectStatus,
  14. getboutique,
  15. getprovince,
  16. ShowModal
  17. } from "@/tools";
  18. const FormItem =Form.Item;
  19. import ShowModalDiv from "@/showModal.jsx";
  20. const Task = React.createClass({
  21. loadData(pageNo) {
  22. this.state.data = [];
  23. this.setState({
  24. page:pageNo,
  25. loading: true
  26. });
  27. $.ajax({
  28. method: "get",
  29. dataType: "json",
  30. crossDomain: false,
  31. url: globalConfig.context + "/api/admin/orderProject/selectTaskList",
  32. data: {
  33. pageNo: pageNo || this.state.page || 1,
  34. pageSize: this.state.pagination.pageSize,
  35. specially:1,//经理
  36. name: this.state.nameSearch,//客户名称
  37. orderNo:this.state.orderNoSearch,//订单编号
  38. depId: this.state.departmenttSearch,//订单部门
  39. taskId:this.state.taskId, //任务编号
  40. adminName:this.state.adminName,//任务受理人
  41. },
  42. success: function (data) {
  43. ShowModal(this);
  44. let theArr = [];
  45. if (!data.data || !data.data.list) {
  46. if (data.error && data.error.length) {
  47. message.warning(data.error[0].message);
  48. };
  49. } else {
  50. for (let i = 0; i < data.data.list.length; i++) {
  51. let thisdata = data.data.list[i];
  52. theArr.push({
  53. key: i,
  54. orderNo: thisdata.orderNo,//订单编号
  55. id:thisdata.id,//任务ID
  56. taskName:thisdata.taskName,//名称
  57. cname:thisdata.cname,//项目品类
  58. receiverName:thisdata.receiverName,//受理人
  59. projectStatus:thisdata.projectStatus,//项目状态
  60. taskStatus:thisdata.taskStatus,//任务状态
  61. taskDate:thisdata.taskDate,//分配时间
  62. commodityQuantity:thisdata.commodityQuantity,//软著数量
  63. alreadyNumber:thisdata.alreadyNumber,//下证数量
  64. userName:thisdata.taskName.substring(0,5) === '软件著作权'?thisdata.userName+'('+thisdata.commodityQuantity.toString()+'/'+thisdata.alreadyNumber+')':thisdata.userName,//用户名
  65. depName:thisdata.depName,//部门名称
  66. receiverName:thisdata.receiverName,//任务责任人
  67. });
  68. };
  69. }
  70. this.state.pagination.current = data.data.pageNo;
  71. this.state.pagination.total = data.data.totalCount;
  72. if(data.data&&data.data.list&&!data.data.list.length){
  73. this.state.pagination.current=0
  74. this.state.pagination.total=0
  75. }
  76. this.setState({
  77. dataSource: theArr,
  78. pagination: this.state.pagination
  79. });
  80. }.bind(this),
  81. }).always(function () {
  82. this.setState({
  83. loading: false
  84. });
  85. }.bind(this));
  86. },
  87. getInitialState() {
  88. return {
  89. searchMore: true,
  90. assignVisible:false,
  91. releaseDate: [],
  92. roleName:'',
  93. testFlag:true,
  94. departmentArr: [],
  95. boHuivisible:false,
  96. selectedRowKeys: [],
  97. selectedRows: [],
  98. paginations:false,
  99. loading: false,
  100. pagination: {
  101. defaultCurrent: 1,
  102. defaultPageSize: 10,
  103. showQuickJumper: true,
  104. pageSize: 10,
  105. onChange: function (page) {
  106. this.loadData(page);
  107. }.bind(this),
  108. showTotal: function (total) {
  109. return '共' + total + '条数据';
  110. }
  111. },
  112. columns: [
  113. {
  114. title: '任务编号',
  115. dataIndex: 'id',
  116. key: 'id',
  117. }, {
  118. title: '任务名称',
  119. dataIndex: 'taskName',
  120. key: 'taskName',
  121. className: 'taskName'
  122. }, {
  123. title: '订单编号',
  124. dataIndex: 'orderNo',
  125. key: 'orderNo',
  126. },
  127. {
  128. title: '业务类别',
  129. dataIndex: 'cname',
  130. key: 'cname',
  131. },
  132. {
  133. title: '客户名称',
  134. dataIndex: 'userName',
  135. key: 'userName',
  136. className: 'userName'
  137. },
  138. {
  139. title: '任务状态',
  140. dataIndex: 'taskStatus',
  141. key: 'taskStatus',
  142. render: text => { return getTaskStatus(text)}
  143. },
  144. {
  145. title: '项目状态',
  146. dataIndex: 'projectStatus',
  147. key: 'projectStatus',
  148. render: text => { return getProjectStatus(text)}
  149. },
  150. {
  151. title: '分配时间',
  152. dataIndex: 'taskDate',
  153. key: 'taskDate'
  154. },
  155. {
  156. title: '任务数量',
  157. dataIndex: 'commodityQuantity',
  158. key: 'commodityQuantity'
  159. },
  160. {
  161. title: '任务责任人',
  162. dataIndex: 'receiverName',
  163. key: 'receiverName'
  164. },{
  165. title: '订单部门',
  166. dataIndex: 'depName',
  167. key: 'depName'
  168. }
  169. ],
  170. dataSource: [],
  171. searchTime: [],
  172. columnsX: [
  173. {
  174. title: '业务项目名称',
  175. dataIndex: 'commodityName',
  176. key: 'commodityName'
  177. }, {
  178. title: '项目类别',
  179. dataIndex: 'cname',
  180. key: 'cname',
  181. },{
  182. title: '项目数量',
  183. dataIndex: 'commodityQuantity',
  184. key: 'commodityQuantity'
  185. }, {
  186. title: '金额(万元)',
  187. dataIndex: 'commodityPrice',
  188. key: 'commodityPrice'
  189. }, {
  190. title: '负责人',
  191. dataIndex: 'contacts',
  192. key: 'contacts'
  193. }, {
  194. title: '负责人电话',
  195. dataIndex: 'contactsMobile',
  196. key: 'contactsMobile'
  197. }, {
  198. title: '主要项目',
  199. dataIndex: 'main',
  200. key: 'main',
  201. render:(text)=>{
  202. return (text?'是':'否')
  203. }
  204. }, {
  205. title: '项目说明',
  206. dataIndex: 'taskComment',
  207. key: 'taskComment',
  208. render:(text)=>{
  209. return (text&&text.length>8?text.substr(0,8)+'…':text)
  210. }
  211. }
  212. ],
  213. columnsA: [
  214. {
  215. title: '流程',
  216. dataIndex: 'content',
  217. key: 'content',
  218. align:'center'
  219. }, {
  220. title: '操作人',
  221. dataIndex: 'aName',
  222. key: 'aName',
  223. align:'center'
  224. }, {
  225. title: '时间',
  226. dataIndex: 'createTimes',
  227. key: 'createTimes',
  228. align:'center'
  229. }
  230. ],
  231. dataSourceX: [],
  232. dataSourceA: [],
  233. ContactsLists: [{
  234. title: '批次',
  235. dataIndex: 'num',
  236. key: 'num',
  237. },{
  238. title: '下证时间',
  239. dataIndex: 'licenceTimes',
  240. key: 'licenceTimes',
  241. }, {
  242. title: '下证数量',
  243. dataIndex: 'alreadyNumber',
  244. key: 'alreadyNumber',
  245. },
  246. {
  247. title: '未下证数量',
  248. dataIndex: 'notCount',
  249. key: 'notCount',
  250. }
  251. ],
  252. }
  253. },
  254. /* 分派 */
  255. evaluate(record,nub){
  256. this.state.assignData=record;
  257. this.setState({
  258. nub,
  259. assignVisible:true
  260. })
  261. },
  262. componentDidMount(){
  263. this.setColor()
  264. },
  265. componentWillMount() {
  266. this.departmentList();
  267. this.loadData();
  268. },
  269. tableRowClick(record) {
  270. this.state.RowData = record;
  271. if(record.taskName.substring(0,5) === '软件著作权'){
  272. this.setState({
  273. speVisible: true,
  274. id: record.id,
  275. dataArr:record,
  276. commodityQuantity:record.commodityQuantity
  277. });
  278. }else{
  279. this.setState({
  280. visible: true,
  281. });
  282. }
  283. this.xiangqing(record.id,record.taskName);
  284. this.xiangqings(record.orderNo);
  285. this.xiangmu(record.orderNo);
  286. this.loaduserss(record);
  287. },
  288. //订单详情
  289. xiangqing(id) {
  290. $.ajax({
  291. method: "get",
  292. dataType: "json",
  293. crossDomain: false,
  294. url: globalConfig.context +"/api/admin/orderProject/orderTaskDetail",
  295. data: {
  296. id:id
  297. },
  298. success: function(data) {
  299. if(data.error.length || data.data.list == "") {
  300. if(data.error && data.error.length) {
  301. message.warning(data.error[0].message);
  302. };
  303. } else {
  304. let thisdata=data.data;
  305. this.setState({
  306. id: thisdata.id,//ID
  307. orderNo: thisdata.orderNo,//订单编号
  308. userName:thisdata.userName,//客户名称
  309. taskName: thisdata.taskName,//任务名称
  310. cname:thisdata.cname,//项目品类
  311. contractNo:thisdata.contractNo,//合同编号
  312. projectStatus:thisdata.projectStatus,//项目状态
  313. taskStatus:thisdata.taskStatus,//任务状态
  314. taskDate:thisdata.taskDate,//分配时间
  315. taskComment:thisdata.taskComment,//说明
  316. attachmentUrl: thisdata.attachmentUrl ? splitUrl(thisdata.attachmentUrl, ',', globalConfig.avatarHost + '/upload') : [],//图片地址
  317. salesmanName:thisdata.salesmanName,//订单负责人
  318. startDate:thisdata.startDate,//启动日期
  319. endDate:thisdata.endDate,//结束日期
  320. acceptDate:thisdata.acceptDate,//受理日期
  321. reviewDate:thisdata.reviewDate,//评审日期
  322. publicityDate:thisdata.publicityDate,//公示日期
  323. licenceDate:thisdata.licenceDate,//发证日期
  324. contacts:thisdata.contacts,//联系人
  325. contactMobile:thisdata.contactMobile,//联系人电话
  326. legalPerson:thisdata.legalPerson,//法人
  327. legalPersonTel:thisdata.legalPersonTel,//法人电话
  328. certificateNumber:thisdata.certificateNumber,//证书编号
  329. status:thisdata.status,//状态
  330. formRetrieve:thisdata.formRetrieve,//满意度表格
  331. taskRefund:thisdata.taskRefund,//退单
  332. refundContent:thisdata.refundContent,//退单信息
  333. retrieveContent:thisdata.retrieveContent,//回收信息
  334. arrivalMoney:thisdata.arrivalMoney,//是否到款
  335. setUpAmount:thisdata.setUpAmount,//立项金额
  336. declareUser:thisdata.declareUser,//账号
  337. declarePwd:thisdata.declarePwd,//密码
  338. depName:thisdata.depName,//订单部门
  339. outsourceName:thisdata.outsourceName,//外包公司名称
  340. outsourcePrice:thisdata.outsourcePrice,//外包价格
  341. })
  342. };
  343. }.bind(this),
  344. }).always(function() {
  345. this.setState({
  346. loading: false
  347. });
  348. }.bind(this));
  349. },
  350. //订单详情
  351. xiangqings(orderNos) {
  352. $.ajax({
  353. method: "get",
  354. dataType: "json",
  355. crossDomain: false,
  356. url: globalConfig.context +"/api/admin/newOrder/getOrderNewDetail",
  357. data: {
  358. orderNo:orderNos
  359. },
  360. success: function(data) {
  361. let thisdata=data.data;
  362. let ProvinceCityArr = [];
  363. let ProvinceS = thisdata.locationProvince; //省
  364. let citys = thisdata.locationCity;//市
  365. let Areas = thisdata.locationArea;//区
  366. ProvinceCityArr.push(ProvinceS, citys, Areas);
  367. if(data.error.length || data.data.list == "") {
  368. if(data.error && data.error.length) {
  369. message.warning(data.error[0].message);
  370. };
  371. } else {
  372. this.setState({
  373. processStatus: thisdata.processStatus, //流程状态
  374. liquidationStatus: thisdata.liquidationStatus, //结算状态
  375. approval: thisdata.approval, //特批状态
  376. orderRemarks: thisdata.orderRemarks, //订单留言
  377. salesmanName: thisdata.salesmanName, //营销员名称
  378. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  379. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  380. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  381. financeName: thisdata.financeName, //财务名称
  382. financeMobile: thisdata.financeMobile, //财务电话
  383. nowFinance: thisdata.nowFinance, //财务名称
  384. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  385. depName: thisdata.depName, //订单部门
  386. locationProvince: thisdata.locationProvince,
  387. locationCity: thisdata.locationCity,
  388. locationArea: thisdata.locationArea,
  389. ProvinceCity: ProvinceCityArr,
  390. postalAddress: thisdata.postalAddress, //详细地址
  391. outsource: thisdata.outsource
  392. });
  393. };
  394. }.bind(this),
  395. }).always(function() {
  396. this.setState({
  397. loading: false
  398. });
  399. }.bind(this));
  400. },
  401. //查看下证信息
  402. loaduserss(record){
  403. $.ajax({
  404. method: "get",
  405. dataType: "json",
  406. crossDomain: false,
  407. url: globalConfig.context + '/api/admin/orderProject/selectTaskProgress',
  408. data: {
  409. tid:record.id
  410. },
  411. success: function (data) {
  412. let theArr=[];
  413. let thisData=[];
  414. if (!thisData) {
  415. if (data.error && data.error.length) {
  416. message.warning(data.error[0].message);
  417. };
  418. thisData = {};
  419. }else{
  420. for(let i = 0; i < data.data.length; i++) {
  421. thisData= data.data[i];
  422. theArr.push({
  423. num:i+1,
  424. key:i,
  425. id:thisData.id,//编号
  426. alreadyNumber:thisData.alreadyNumber,//下证数
  427. licenceTimes:thisData.licenceTimes,//下证时间
  428. notCount:thisData.notCount,//未下证数
  429. flag:true
  430. })
  431. }
  432. this.setState({
  433. contactList:theArr
  434. })
  435. };
  436. }.bind(this),
  437. }).always(function () {
  438. this.setState({
  439. loading: false
  440. });
  441. }.bind(this));
  442. },
  443. //项目列表
  444. xiangmu(orderNos) {
  445. $.ajax({
  446. method: "get",
  447. dataType: "json",
  448. crossDomain: false,
  449. url: globalConfig.context +"/api/admin/newOrder/getOrderTask",
  450. data: {
  451. orderNo:orderNos
  452. },
  453. success: function(data) {
  454. let theArr = [];
  455. if(data.error.length || data.data.list == "") {
  456. if(data.error && data.error.length) {
  457. message.warning(data.error[0].message);
  458. };
  459. } else {
  460. for (let i = 0; i < data.data.length; i++) {
  461. let thisdata = data.data[i];
  462. theArr.push({
  463. key: i,
  464. id:thisdata.id,
  465. orderNo:thisdata.orderNo,//订单编号
  466. commodityId:thisdata.commodityId,//项目ID
  467. commodityName:thisdata.commodityName,//项目名称
  468. cname:thisdata.cname,//项目类别
  469. commodityPrice:thisdata.commodityPrice,//项目价格
  470. commodityQuantity:thisdata.commodityQuantity,//项目数量
  471. main:thisdata.main,//是否为主要任务
  472. taskComment:thisdata.taskComment,//任务说明
  473. contacts:thisdata.contacts,//联系人
  474. contactsMobile:thisdata.contactsMobile,//联系人电话
  475. taskStatus:thisdata.taskStatus,//是否分配
  476. });
  477. };
  478. };
  479. this.setState({
  480. dataSourceX: theArr,
  481. });
  482. }.bind(this),
  483. }).always(function() {
  484. this.setState({
  485. loading: false
  486. });
  487. }.bind(this));
  488. },
  489. caozuorizhi(){
  490. this.setState({
  491. visibleA:true
  492. })
  493. $.ajax({
  494. method: "get",
  495. dataType: "json",
  496. crossDomain: false,
  497. url: globalConfig.context +"/api/admin/orderProject/TaskLogList",
  498. data: {
  499. id:this.state.id
  500. },
  501. success: function(data) {
  502. let theArr = [];
  503. if(data.error.length || data.data.list == "") {
  504. if(data.error && data.error.length) {
  505. message.warning(data.error[0].message);
  506. };
  507. } else {
  508. for (let i = 0; i < data.data.length; i++) {
  509. let thisdata = data.data[i];
  510. theArr.push({
  511. key: i,
  512. id:thisdata.id,//日志ID
  513. content:thisdata.content,//流程
  514. taskId:thisdata.taskId,//任务ID
  515. aName:thisdata.aName,//负责人
  516. createTimes:thisdata.createTimes,//时间
  517. });
  518. };
  519. };
  520. this.setState({
  521. dataSourceA: theArr,
  522. });
  523. }.bind(this),
  524. }).always(function() {
  525. this.setState({
  526. loading: false
  527. });
  528. }.bind(this));
  529. },
  530. //关闭操作工时
  531. visitCancelA(){
  532. this.setState({
  533. visibleA:false
  534. })
  535. },
  536. //关闭详情
  537. visitCancel(){
  538. this.setState({
  539. visible:false,
  540. speVisible:false,
  541. })
  542. this.reset();
  543. },
  544. visitOk(){
  545. this.setState({
  546. visible:false
  547. })
  548. this.reset();
  549. },
  550. setColor(){
  551. $(".userName span").after("(<span class='ruanzhu'>软著数</span>/<span class='xiazheng'>下证数</span>)")
  552. },
  553. closeDesc(e, s) {
  554. this.state.showDesc = e;
  555. if (s) {
  556. this.loadData(this.state.page);
  557. };
  558. },
  559. closeAssign(e, s) {
  560. this.state.roleName='';
  561. this.state.assignVisible = e;
  562. if (s) {
  563. this.loadData(this.state.page);
  564. };
  565. },
  566. nextCancel() {
  567. this.setState({
  568. addnextVisible: false
  569. })
  570. },
  571. //点击打卡项目详情
  572. tableRowClickX(record) {
  573. this.setState({
  574. jid:record.id,//项目ID
  575. kid:record.commodityId,//商品ID
  576. commodityName:record.commodityName,//金额
  577. commodityPrice:record.commodityPrice,//金额
  578. commodityQuantity:record.commodityQuantity,//数量
  579. taskComment:record.taskComment,//备注
  580. main:record.main.toString(),//是否为主要
  581. addnextVisible:true,
  582. addState:0,
  583. });
  584. },
  585. search() {
  586. this.loadData();
  587. },
  588. reset() {
  589. this.state.nameSearch = '';
  590. this.state.releaseDate = [];
  591. this.state.orderNoSearch='';
  592. this.state.taskNoSearch='';
  593. this.state.departmenttSearch=undefined;
  594. this.loadData(this.state.page);
  595. },
  596. searchSwitch() {
  597. this.setState({
  598. searchMore: !this.state.searchMore
  599. });
  600. },
  601. //部门
  602. departmentList() {
  603. this.setState({
  604. loading: true
  605. });
  606. $.ajax({
  607. method: "get",
  608. dataType: "json",
  609. crossDomain: false,
  610. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  611. data: {
  612. },
  613. success: function(data) {
  614. let thedata = data.data;
  615. let theArr = [];
  616. if(!thedata) {
  617. if(data.error && data.error.length) {
  618. message.warning(data.error[0].message);
  619. };
  620. thedata = {};
  621. } else {
  622. thedata.map(function(item, index) {
  623. theArr.push({
  624. key: index,
  625. name: item.name,
  626. id: item.id,
  627. })
  628. })
  629. }
  630. this.setState({
  631. departmentArr: theArr,
  632. })
  633. }.bind(this),
  634. }).always(function() {
  635. this.setState({
  636. loading: false
  637. });
  638. }.bind(this));
  639. },
  640. render() {
  641. const utils = {
  642. getSatisfaction:function(num){
  643. switch(num){
  644. case 0:
  645. return '未收回';
  646. case 1:
  647. return '已收回';
  648. default:
  649. return '其它';
  650. }
  651. },
  652. getChargeback:function(num){
  653. switch(num){
  654. case 0:
  655. return '已完成';
  656. case 1:
  657. return '未完成';
  658. default:
  659. return '其它';
  660. }
  661. }
  662. }
  663. const formItemLayout = {
  664. labelCol: { span: 8 },
  665. wrapperCol: { span: 14 },
  666. };
  667. let departmentArr = this.state.departmentArr || [];
  668. return (
  669. <div className="user-content">
  670. <ShowModalDiv ShowModal={this.state.showModal} />
  671. <div className="content-title">
  672. <span>任务查询</span>
  673. </div>
  674. <div className="user-search">
  675. <Input
  676. placeholder="客户名称"
  677. value={this.state.nameSearch}
  678. onChange={e => {
  679. this.setState({ nameSearch: e.target.value });
  680. }}
  681. />
  682. <Input
  683. placeholder="订单编号"
  684. value={this.state.orderNoSearch}
  685. onChange={e => {
  686. this.setState({ orderNoSearch: e.target.value });
  687. }}
  688. />
  689. <Input
  690. placeholder="任务编号"
  691. value={this.state.taskNoSearch}
  692. onChange={e => {
  693. this.setState({ taskNoSearch: e.target.value });
  694. }}
  695. />
  696. <Select
  697. placeholder="选择部门"
  698. style={{ width: 150, marginRight: "10px" }}
  699. value={this.state.departmenttSearch}
  700. onChange={e => {
  701. this.setState({ departmenttSearch: e });
  702. }}
  703. >
  704. {departmentArr.map(function(item) {
  705. return (
  706. <Select.Option key={item.id}>{item.name}</Select.Option>
  707. );
  708. })}
  709. </Select>
  710. <Button type="primary" onClick={this.search}>
  711. 搜索
  712. </Button>
  713. <Button onClick={this.reset}>重置</Button>
  714. {/* <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  715. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  716. <span>订单时间 :</span>
  717. <RangePicker
  718. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  719. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  720. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  721. </div> */}
  722. </div>
  723. <div className="patent-table">
  724. <Spin spinning={this.state.loading}>
  725. <Table
  726. columns={this.state.columns}
  727. dataSource={this.state.dataSource}
  728. onHeaderRow={column => {
  729. console.log(column.index);
  730. }}
  731. pagination={this.state.pagination}
  732. onRowClick={this.tableRowClick.bind(this)}
  733. />
  734. </Spin>
  735. </div>
  736. <Assign
  737. title="任务"
  738. selApi={"/api/admin/orderProject/projectDistribution"}
  739. data={this.state.assignData}
  740. showDesc={this.state.assignVisible}
  741. closeDesc={this.closeAssign.bind(this)}
  742. fenpaiData={8}
  743. specially={0}
  744. roleName={this.state.nub}
  745. />
  746. <Modal
  747. className="customeDetails"
  748. footer=""
  749. title="项目概况"
  750. width="900px"
  751. visible={this.state.visible}
  752. onOk={this.visitOk}
  753. onCancel={this.visitCancel}
  754. >
  755. <Form
  756. layout="horizontal"
  757. onSubmit={this.handleSubmit}
  758. id="demand-form"
  759. style={{ paddingBottom: "00px" }}
  760. >
  761. <Spin spinning={this.state.loading}>
  762. <div className="clearfix">
  763. <div className="clearfix">
  764. <FormItem
  765. className="half-item"
  766. {...formItemLayout}
  767. label="当前项目情况"
  768. >
  769. <span>{this.state.status ? "暂停" : "开启"}</span>
  770. <Button
  771. type="primary"
  772. size="small"
  773. style={{ marginTop: "5px", position: "absolute" }}
  774. onClick={this.caozuorizhi}
  775. >
  776. 操作日志
  777. </Button>
  778. </FormItem>
  779. <FormItem
  780. className="half-item"
  781. {...formItemLayout}
  782. label="合同编号"
  783. >
  784. <span>{this.state.contractNo}</span>
  785. </FormItem>
  786. </div>
  787. <div className="clearfix">
  788. <FormItem
  789. className="half-item"
  790. {...formItemLayout}
  791. label="项目状态"
  792. >
  793. <span>
  794. {getProcessStatus(this.state.projectStatus)}
  795. </span>
  796. </FormItem>
  797. <FormItem
  798. className="half-item"
  799. {...formItemLayout}
  800. label="是否特批"
  801. >
  802. <span>{getApproval(this.state.approval)}</span>
  803. </FormItem>
  804. <FormItem
  805. className="half-item"
  806. {...formItemLayout}
  807. label="结算状态"
  808. >
  809. <span>
  810. {getLiquidationStatus(this.state.liquidationStatus)}
  811. </span>
  812. </FormItem>
  813. <FormItem
  814. className="half-item"
  815. {...formItemLayout}
  816. label="流程状态"
  817. >
  818. <span>
  819. {getProcessStatus(this.state.processStatus)}
  820. </span>
  821. </FormItem>
  822. <FormItem
  823. className="half-item"
  824. {...formItemLayout}
  825. label="订单编号"
  826. >
  827. <span>{this.state.orderNo}</span>
  828. </FormItem>
  829. <FormItem
  830. className="half-item"
  831. {...formItemLayout}
  832. label="是否外包"
  833. >
  834. <span>{this.state.outsource == 0 ? "否" : "是"}</span>
  835. </FormItem>
  836. </div>
  837. <div className="clearfix">
  838. <FormItem
  839. className="half-item"
  840. {...formItemLayout}
  841. label="满意度表格"
  842. >
  843. <span>
  844. {utils.getSatisfaction(this.state.formRetrieve)}
  845. </span>
  846. </FormItem>
  847. <FormItem
  848. className="half-item"
  849. {...formItemLayout}
  850. label="退单"
  851. >
  852. <span>
  853. {utils.getChargeback(this.state.taskRefund)}
  854. </span>
  855. </FormItem>
  856. </div>
  857. <div className="clearfix">
  858. {
  859. <FormItem
  860. className="half-item"
  861. {...formItemLayout}
  862. label="(满意度)备注"
  863. >
  864. <span>{this.state.retrieveContent}</span>
  865. </FormItem>
  866. }
  867. {
  868. <FormItem
  869. className="half-item"
  870. {...formItemLayout}
  871. label="(退单)备注"
  872. >
  873. <span>{this.state.refundContent}</span>
  874. </FormItem>
  875. }
  876. </div>
  877. <div className="clearfix">
  878. <h3 className="sub-title">任务信息</h3>
  879. <FormItem
  880. className="half-item"
  881. {...formItemLayout}
  882. label="任务编号"
  883. >
  884. <span>{this.state.id}</span>
  885. </FormItem>
  886. <FormItem
  887. className="half-item"
  888. {...formItemLayout}
  889. label="任务名称"
  890. >
  891. <span>{this.state.taskName}</span>
  892. </FormItem>
  893. <FormItem
  894. className="half-item"
  895. {...formItemLayout}
  896. label="任务状态"
  897. >
  898. <span>{getTaskStatus(this.state.taskStatus)}</span>
  899. </FormItem>
  900. <FormItem
  901. className="half-item"
  902. {...formItemLayout}
  903. label="任务类别"
  904. >
  905. <span>{this.state.cname}</span>
  906. </FormItem>
  907. <FormItem
  908. className="half-item"
  909. {...formItemLayout}
  910. label="证书编号"
  911. >
  912. <span>{this.state.certificateNumber}</span>
  913. </FormItem>
  914. </div>
  915. {this.state.outsource === 1 ? (
  916. <div className="clearfix">
  917. <h3 className="sub-title">外包信息</h3>
  918. <FormItem
  919. className="half-item"
  920. {...formItemLayout}
  921. label="外包公司"
  922. >
  923. <span>{this.state.outsourceName}</span>
  924. </FormItem>
  925. <FormItem
  926. className="half-item"
  927. {...formItemLayout}
  928. label="外包成本(万元)"
  929. >
  930. <span>{this.state.outsourcePrice}</span>
  931. </FormItem>
  932. </div>
  933. ) : (
  934. ""
  935. )}
  936. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  937. <div className="clearfix">
  938. <h3 className="sub-title">联系信息</h3>
  939. <FormItem
  940. className="half-item"
  941. {...formItemLayout}
  942. label="客户名称"
  943. >
  944. <span>{this.state.userName}</span>
  945. </FormItem>
  946. <FormItem
  947. className="half-item"
  948. {...formItemLayout}
  949. label="企业法人"
  950. >
  951. <span>{this.state.legalPerson}</span>
  952. </FormItem>
  953. <FormItem
  954. className="half-item"
  955. {...formItemLayout}
  956. label="法人电话"
  957. >
  958. <span>{this.state.legalPersonTel}</span>
  959. </FormItem>
  960. <FormItem
  961. className="half-item"
  962. {...formItemLayout}
  963. label="客户联系人"
  964. >
  965. <span>{this.state.contacts}</span>
  966. </FormItem>
  967. <FormItem
  968. className="half-item"
  969. {...formItemLayout}
  970. label="联系人电话"
  971. >
  972. <span>{this.state.contactMobile}</span>
  973. </FormItem>
  974. <FormItem
  975. className="half-item"
  976. {...formItemLayout}
  977. label="企业地址"
  978. >
  979. <span>
  980. {getprovince(this.state.locationProvince)}/
  981. {getprovince(this.state.locationCity)}/
  982. {getprovince(this.state.locationArea)}
  983. </span>
  984. </FormItem>
  985. <FormItem
  986. className="half-item"
  987. {...formItemLayout}
  988. label=""
  989. ></FormItem>
  990. <FormItem className="half-item" {...formItemLayout}>
  991. <span style={{ paddingLeft: "12em" }}>
  992. {this.state.postalAddress}
  993. </span>
  994. </FormItem>
  995. </div>
  996. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  997. <div className="clearfix">
  998. <h3 className="sub-title">订单负责人信息</h3>
  999. <FormItem
  1000. className="half-item"
  1001. {...formItemLayout}
  1002. label="负责人"
  1003. >
  1004. <span>
  1005. {this.state.salesmanName +
  1006. "(" +
  1007. this.state.depName +
  1008. ")"}
  1009. </span>
  1010. </FormItem>
  1011. <FormItem
  1012. className="half-item"
  1013. {...formItemLayout}
  1014. label="负责人电话"
  1015. >
  1016. <span>{this.state.salesmanMobile}</span>
  1017. </FormItem>
  1018. <FormItem
  1019. className="half-item"
  1020. {...formItemLayout}
  1021. label="当前财务负责人"
  1022. >
  1023. <span>{this.state.nowFinance}</span>
  1024. </FormItem>
  1025. <FormItem
  1026. className="half-item"
  1027. {...formItemLayout}
  1028. label="当前财务负责人电话"
  1029. >
  1030. <span>{this.state.nowFinanceMobile}</span>
  1031. </FormItem>
  1032. <FormItem
  1033. className="half-item"
  1034. {...formItemLayout}
  1035. style={{ opacity: ".5" }}
  1036. label="原负责人"
  1037. >
  1038. <span>{this.state.oldSalesmanName}</span>
  1039. </FormItem>
  1040. <FormItem
  1041. className="half-item"
  1042. {...formItemLayout}
  1043. style={{ opacity: ".5" }}
  1044. label="原负责人电话"
  1045. >
  1046. <span>{this.state.oldSalesmanMobile}</span>
  1047. </FormItem>
  1048. <FormItem
  1049. className="half-item"
  1050. {...formItemLayout}
  1051. style={{ opacity: ".5" }}
  1052. label="实际财务操作人"
  1053. >
  1054. <span>{this.state.financeName}</span>
  1055. </FormItem>
  1056. <FormItem
  1057. className="half-item"
  1058. {...formItemLayout}
  1059. style={{ opacity: ".5" }}
  1060. label="实际财务操作人电话"
  1061. >
  1062. <span>{this.state.financeMobile}</span>
  1063. </FormItem>
  1064. </div>
  1065. <div className="clearfix">
  1066. <h3 className="sub-title">申报系统账户信息</h3>
  1067. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  1068. <FormItem
  1069. className="half-item"
  1070. {...formItemLayout}
  1071. label="用户名"
  1072. >
  1073. <span>{this.state.declareUser ? "*" : ""}</span>
  1074. </FormItem>
  1075. <FormItem
  1076. className="half-item"
  1077. {...formItemLayout}
  1078. label="密码"
  1079. >
  1080. <span>{this.state.declarePwd ? "*" : ""}</span>
  1081. </FormItem>
  1082. </div>
  1083. <div className="clearfix">
  1084. <h3 className="sub-title">项目申报进度</h3>
  1085. <FormItem
  1086. className="half-item"
  1087. {...formItemLayout}
  1088. label="启动时间"
  1089. >
  1090. <span>{this.state.startDate}</span>
  1091. </FormItem>
  1092. <FormItem
  1093. className="half-item"
  1094. {...formItemLayout}
  1095. label="完成时间"
  1096. >
  1097. <span>{this.state.endDate}</span>
  1098. </FormItem>
  1099. <FormItem
  1100. className="half-item"
  1101. {...formItemLayout}
  1102. label="受理时间"
  1103. >
  1104. <span>{this.state.acceptDate}</span>
  1105. </FormItem>
  1106. <FormItem
  1107. className="half-item"
  1108. {...formItemLayout}
  1109. label="评审时间"
  1110. >
  1111. <span>{this.state.reviewDate}</span>
  1112. </FormItem>
  1113. <FormItem
  1114. className="half-item"
  1115. {...formItemLayout}
  1116. label="公示时间"
  1117. >
  1118. <span>{this.state.publicityDate}</span>
  1119. </FormItem>
  1120. <FormItem
  1121. className="half-item"
  1122. {...formItemLayout}
  1123. label="发证时间"
  1124. >
  1125. <span>{this.state.licenceDate}</span>
  1126. </FormItem>
  1127. <FormItem
  1128. className="half-item"
  1129. {...formItemLayout}
  1130. label="立项金额(万元)"
  1131. >
  1132. <span>{this.state.setUpAmount}</span>
  1133. </FormItem>
  1134. <FormItem
  1135. className="half-item"
  1136. {...formItemLayout}
  1137. label="是否到款"
  1138. >
  1139. <span>
  1140. {this.state.arrivalMoney ? "已到企业" : "未到企业"}
  1141. </span>
  1142. </FormItem>
  1143. </div>
  1144. <div className="clearfix">
  1145. <FormItem
  1146. labelCol={{ span: 3 }}
  1147. wrapperCol={{ span: 18 }}
  1148. label="附件"
  1149. >
  1150. <Upload
  1151. className="demandDetailShow-upload"
  1152. listType="picture-card"
  1153. fileList={this.state.attachmentUrl}
  1154. onPreview={file => {
  1155. this.setState({
  1156. previewImage: file.url || file.thumbUrl,
  1157. previewVisible: true
  1158. });
  1159. }}
  1160. ></Upload>
  1161. <Modal
  1162. maskClosable={false}
  1163. footer={null}
  1164. visible={this.state.previewVisible}
  1165. onCancel={() => {
  1166. this.setState({ previewVisible: false });
  1167. }}
  1168. >
  1169. <img
  1170. alt=""
  1171. style={{ width: "100%" }}
  1172. src={this.state.previewImage || ""}
  1173. />
  1174. </Modal>
  1175. </FormItem>
  1176. </div>
  1177. <div className="clearfix">
  1178. <FormItem
  1179. labelCol={{ span: 3 }}
  1180. wrapperCol={{ span: 16 }}
  1181. label="备注"
  1182. >
  1183. <span>{this.state.taskComment}</span>
  1184. </FormItem>
  1185. </div>
  1186. <div>
  1187. <h3 className="sub-title">项目业务</h3>
  1188. {this.state.processStatus == 0 ? (
  1189. <Button
  1190. type="primary"
  1191. onClick={this.addDetailed}
  1192. style={{
  1193. float: "right",
  1194. marginRight: "50px",
  1195. marginBottom: "15px"
  1196. }}
  1197. >
  1198. 添加项目明细
  1199. </Button>
  1200. ) : (
  1201. ""
  1202. )}
  1203. </div>
  1204. <div className="patent-table">
  1205. <Spin spinning={this.state.loading}>
  1206. <Table
  1207. columns={this.state.columnsX}
  1208. dataSource={this.state.dataSourceX}
  1209. pagination={this.state.paginations}
  1210. onRowClick={this.tableRowClickX}
  1211. />
  1212. </Spin>
  1213. </div>
  1214. </div>
  1215. </Spin>
  1216. </Form>
  1217. </Modal>
  1218. <Modal
  1219. maskClosable={false}
  1220. visible={this.state.addnextVisible}
  1221. onOk={this.nextCancel}
  1222. onCancel={this.nextCancel}
  1223. width="900px"
  1224. title="项目任务详情"
  1225. footer=""
  1226. className="admin-desc-content"
  1227. >
  1228. <Form
  1229. layout="horizontal"
  1230. onSubmit={this.nextSubmit}
  1231. id="demand-form"
  1232. >
  1233. <Spin spinning={this.state.loading}>
  1234. <div className="clearfix">
  1235. <FormItem
  1236. className="half-item"
  1237. {...formItemLayout}
  1238. label="项目名称"
  1239. >
  1240. <span>{this.state.commodityName}</span>
  1241. </FormItem>
  1242. <FormItem
  1243. className="half-item"
  1244. {...formItemLayout}
  1245. label="项目数量"
  1246. >
  1247. <span>{this.state.commodityQuantity}</span>
  1248. </FormItem>
  1249. <FormItem
  1250. className="half-item"
  1251. {...formItemLayout}
  1252. label="金额(万元)"
  1253. >
  1254. <span>{this.state.commodityPrice}</span>
  1255. </FormItem>
  1256. <FormItem
  1257. className="half-item"
  1258. {...formItemLayout}
  1259. label="主要项目"
  1260. >
  1261. <span>{getboutique(this.state.main)}</span>
  1262. </FormItem>
  1263. <div className="clearfix">
  1264. <FormItem
  1265. labelCol={{ span: 4 }}
  1266. wrapperCol={{ span: 16 }}
  1267. label="服务说明"
  1268. >
  1269. <span>{this.state.taskComment}</span>
  1270. </FormItem>
  1271. </div>
  1272. </div>
  1273. </Spin>
  1274. </Form>
  1275. </Modal>
  1276. <Modal
  1277. width="800px"
  1278. title="操作日志"
  1279. footer=""
  1280. className="admin-desc-content"
  1281. >
  1282. <div className="patent-table patent-table-center">
  1283. <Spin spinning={this.state.loading}>
  1284. <Table columns={this.state.columnsY} />
  1285. </Spin>
  1286. </div>
  1287. </Modal>
  1288. <Modal
  1289. maskClosable={false}
  1290. visible={this.state.speVisible}
  1291. onOk={this.visitOk}
  1292. onCancel={this.visitCancel}
  1293. width="900px"
  1294. title="项目概况"
  1295. footer=""
  1296. className="admin-desc-content"
  1297. >
  1298. <div className="clearfix">
  1299. <FormItem
  1300. className="half-item"
  1301. {...formItemLayout}
  1302. label="当前项目情况"
  1303. >
  1304. <span>{this.state.status ? "暂停" : "开启"}</span>
  1305. <Button
  1306. type="primary"
  1307. size="small"
  1308. style={{ marginTop: "5px", position: "absolute" }}
  1309. onClick={this.caozuorizhi}
  1310. >
  1311. 操作日志
  1312. </Button>
  1313. </FormItem>
  1314. <FormItem
  1315. className="half-item"
  1316. {...formItemLayout}
  1317. label="合同编号"
  1318. >
  1319. <span>{this.state.contractNo}</span>
  1320. </FormItem>
  1321. </div>
  1322. <div className="clearfix">
  1323. <FormItem
  1324. className="half-item"
  1325. {...formItemLayout}
  1326. label="项目状态"
  1327. >
  1328. <span>{getProcessStatus(this.state.projectStatus)}</span>
  1329. </FormItem>
  1330. <FormItem
  1331. className="half-item"
  1332. {...formItemLayout}
  1333. label="是否特批"
  1334. >
  1335. <span>{getApproval(this.state.approval)}</span>
  1336. </FormItem>
  1337. <FormItem
  1338. className="half-item"
  1339. {...formItemLayout}
  1340. label="结算状态"
  1341. >
  1342. <span>
  1343. {getLiquidationStatus(this.state.liquidationStatus)}
  1344. </span>
  1345. </FormItem>
  1346. <FormItem
  1347. className="half-item"
  1348. {...formItemLayout}
  1349. label="流程状态"
  1350. >
  1351. <span>{getProcessStatus(this.state.processStatus)}</span>
  1352. </FormItem>
  1353. <FormItem
  1354. className="half-item"
  1355. {...formItemLayout}
  1356. label="订单编号"
  1357. >
  1358. <span>{this.state.orderNo}</span>
  1359. </FormItem>
  1360. </div>
  1361. <div className="clearfix">
  1362. <FormItem
  1363. className="half-item"
  1364. {...formItemLayout}
  1365. label="满意度表格"
  1366. >
  1367. <span>{utils.getSatisfaction(this.state.formRetrieve)}</span>
  1368. </FormItem>
  1369. <FormItem
  1370. className="half-item"
  1371. {...formItemLayout}
  1372. label="退单"
  1373. >
  1374. <span>{utils.getChargeback(this.state.taskRefund)}</span>
  1375. </FormItem>
  1376. </div>
  1377. <div className="clearfix">
  1378. {
  1379. <FormItem
  1380. className="half-item"
  1381. {...formItemLayout}
  1382. label="(满意度)备注"
  1383. >
  1384. <span>{this.state.retrieveContent}</span>
  1385. </FormItem>
  1386. }
  1387. {
  1388. <FormItem
  1389. className="half-item"
  1390. {...formItemLayout}
  1391. label="(退单)备注"
  1392. >
  1393. <span>{this.state.refundContent}</span>
  1394. </FormItem>
  1395. }
  1396. </div>
  1397. <div className="clearfix">
  1398. <h3 className="sub-title">任务信息</h3>
  1399. <FormItem
  1400. className="half-item"
  1401. {...formItemLayout}
  1402. label="任务编号"
  1403. >
  1404. <span>{this.state.id}</span>
  1405. </FormItem>
  1406. <FormItem
  1407. className="half-item"
  1408. {...formItemLayout}
  1409. label="任务名称"
  1410. >
  1411. <span>{this.state.taskName}</span>
  1412. </FormItem>
  1413. <FormItem
  1414. className="half-item"
  1415. {...formItemLayout}
  1416. label="任务状态"
  1417. >
  1418. <span>{getTaskStatus(this.state.taskStatus)}</span>
  1419. </FormItem>
  1420. <FormItem
  1421. className="half-item"
  1422. {...formItemLayout}
  1423. label="任务类别"
  1424. >
  1425. <span>{this.state.cname}</span>
  1426. </FormItem>
  1427. <FormItem
  1428. className="half-item"
  1429. {...formItemLayout}
  1430. label="证书编号"
  1431. >
  1432. <span>{this.state.certificateNumber}</span>
  1433. </FormItem>
  1434. </div>
  1435. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1436. <div className="clearfix">
  1437. <h3 className="sub-title">联系信息</h3>
  1438. <FormItem
  1439. className="half-item"
  1440. {...formItemLayout}
  1441. label="客户名称"
  1442. >
  1443. <span>{this.state.userName}</span>
  1444. </FormItem>
  1445. <FormItem
  1446. className="half-item"
  1447. {...formItemLayout}
  1448. label="企业法人"
  1449. >
  1450. <span>{this.state.legalPerson}</span>
  1451. </FormItem>
  1452. <FormItem
  1453. className="half-item"
  1454. {...formItemLayout}
  1455. label="法人电话"
  1456. >
  1457. <span>{this.state.legalPersonTel}</span>
  1458. </FormItem>
  1459. <FormItem
  1460. className="half-item"
  1461. {...formItemLayout}
  1462. label="客户联系人"
  1463. >
  1464. <span>{this.state.contacts}</span>
  1465. </FormItem>
  1466. <FormItem
  1467. className="half-item"
  1468. {...formItemLayout}
  1469. label="联系人电话"
  1470. >
  1471. <span>{this.state.contactMobile}</span>
  1472. </FormItem>
  1473. <FormItem
  1474. className="half-item"
  1475. {...formItemLayout}
  1476. label="企业地址"
  1477. >
  1478. <span>
  1479. {getprovince(this.state.locationProvince)}/
  1480. {getprovince(this.state.locationCity)}/
  1481. {getprovince(this.state.locationArea)}
  1482. </span>
  1483. </FormItem>
  1484. <FormItem
  1485. className="half-item"
  1486. {...formItemLayout}
  1487. label=""
  1488. ></FormItem>
  1489. <FormItem className="half-item" {...formItemLayout} label="">
  1490. <span style={{ paddingLeft: "12em" }}>
  1491. {this.state.postalAddress}
  1492. </span>
  1493. </FormItem>
  1494. </div>
  1495. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1496. <div className="clearfix">
  1497. <h3 className="sub-title">订单负责人信息</h3>
  1498. <FormItem
  1499. className="half-item"
  1500. {...formItemLayout}
  1501. label="负责人"
  1502. >
  1503. <span>
  1504. {this.state.salesmanName + "(" + this.state.depName + ")"}
  1505. </span>
  1506. </FormItem>
  1507. <FormItem
  1508. className="half-item"
  1509. {...formItemLayout}
  1510. label="负责人电话"
  1511. >
  1512. <span>{this.state.salesmanMobile}</span>
  1513. </FormItem>
  1514. <FormItem
  1515. className="half-item"
  1516. {...formItemLayout}
  1517. label="财务负责人"
  1518. >
  1519. <span>{this.state.financeName}</span>
  1520. </FormItem>
  1521. <FormItem
  1522. className="half-item"
  1523. {...formItemLayout}
  1524. label="财务负责人电话"
  1525. >
  1526. <span>{this.state.financeMobile}</span>
  1527. </FormItem>
  1528. </div>
  1529. <div className="clearfix" style={{ marginTop: "10px" }}>
  1530. <FormItem
  1531. labelCol={{ span: 3 }}
  1532. wrapperCol={{ span: 18 }}
  1533. label="附件"
  1534. >
  1535. <Upload
  1536. className="demandDetailShow-upload"
  1537. listType="picture-card"
  1538. fileList={this.state.attachmentUrl}
  1539. onPreview={file => {
  1540. this.setState({
  1541. previewImage: file.url || file.thumbUrl,
  1542. previewVisible: true
  1543. });
  1544. }}
  1545. ></Upload>
  1546. <Modal
  1547. maskClosable={false}
  1548. footer={null}
  1549. visible={this.state.previewVisible}
  1550. onCancel={() => {
  1551. this.setState({ previewVisible: false });
  1552. }}
  1553. >
  1554. <img
  1555. alt=""
  1556. style={{ width: "100%" }}
  1557. src={this.state.previewImage || ""}
  1558. />
  1559. </Modal>
  1560. </FormItem>
  1561. </div>
  1562. <div className="clearfix">
  1563. <FormItem
  1564. labelCol={{ span: 3 }}
  1565. wrapperCol={{ span: 16 }}
  1566. label="备注"
  1567. >
  1568. <span>{this.state.taskComment}</span>
  1569. </FormItem>
  1570. </div>
  1571. <div className="clearfix">
  1572. <h3 className="sub-title">项目申报进度</h3>
  1573. <FormItem
  1574. className="half-item"
  1575. {...formItemLayout}
  1576. label="启动时间"
  1577. >
  1578. <span>{this.state.startDate}</span>
  1579. </FormItem>
  1580. <FormItem
  1581. className="half-item"
  1582. {...formItemLayout}
  1583. label="软著派单数量"
  1584. >
  1585. <span>{this.state.commodityQuantity}</span>
  1586. </FormItem>
  1587. <div className="patent-table patent-table-center">
  1588. <Spin spinning={this.state.loading}>
  1589. <Table
  1590. columns={this.state.ContactsLists}
  1591. dataSource={this.state.contactList}
  1592. pagination={false}
  1593. />
  1594. </Spin>
  1595. </div>
  1596. </div>
  1597. <div className="clearfix">
  1598. <h3 className="sub-title">项目业务</h3>
  1599. <div className="patent-table">
  1600. <Spin spinning={this.state.loading}>
  1601. <Table
  1602. columns={this.state.columnsX}
  1603. dataSource={this.state.dataSourceX}
  1604. pagination={this.state.paginations}
  1605. onRowClick={this.tableRowClickX}
  1606. />
  1607. </Spin>
  1608. </div>
  1609. </div>
  1610. </Modal>
  1611. <Modal
  1612. width="800px"
  1613. visible={this.state.visibleA}
  1614. onCancel={this.visitCancelA}
  1615. title="操作日志"
  1616. footer=""
  1617. className="admin-desc-content"
  1618. >
  1619. <div className="patent-table patent-table-center">
  1620. <Spin spinning={this.state.loading}>
  1621. <Table
  1622. columns={this.state.columnsA}
  1623. dataSource={this.state.dataSourceA}
  1624. pagination={false}
  1625. />
  1626. </Spin>
  1627. </div>
  1628. </Modal>
  1629. </div>
  1630. );
  1631. }
  1632. })
  1633. export default Task;