project.jsx 51 KB

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