taskQuery.jsx 57 KB

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