taskQuery.jsx 58 KB

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