project.jsx 50 KB

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