project.jsx 49 KB

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