project.jsx 50 KB

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