project.jsx 49 KB

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