taskQuery.jsx 58 KB

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