taskQuery.jsx 58 KB

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