project.jsx 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513
  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. })
  641. }
  642. }.bind(this)
  643. )
  644. },
  645. //加载外包
  646. loadCompany() {
  647. this.setState({
  648. loading: true,
  649. })
  650. $.ajax({
  651. method: 'get',
  652. dataType: 'json',
  653. crossDomain: false,
  654. url: globalConfig.context + '/api/admin/outsourceOrg/selectOutsourceOrg',
  655. data: {
  656. tid: this.props.record.id,
  657. orderNo: this.props.record.orderNo,
  658. },
  659. success: function (data) {
  660. let theArr = []
  661. if (data.error.length || data.data.list == '') {
  662. if (data.error && data.error.length) {
  663. message.warning(data.error[0].message)
  664. }
  665. } else {
  666. for (let i = 0; i < data.data.length; i++) {
  667. let thisdata = data.data[i]
  668. let ProvinceCityArr = []
  669. let ProvinceS = thisdata.province //省
  670. let citys = thisdata.city //市
  671. let Areas = thisdata.area //区
  672. ProvinceCityArr.push(ProvinceS, citys, Areas)
  673. theArr.push({
  674. key: i,
  675. id: thisdata.id, //外包Id
  676. name: thisdata.name, //名称
  677. contacts: thisdata.contacts, //联系人
  678. contactsMobile: thisdata.contactsMobile, //联系人电话
  679. companyProvinceArr: ProvinceCityArr,
  680. address: thisdata.address,
  681. remarks: thisdata.remarks,
  682. })
  683. }
  684. }
  685. this.setState({
  686. companys: theArr,
  687. })
  688. }.bind(this),
  689. }).always(
  690. function () {
  691. this.setState({
  692. loading: false,
  693. })
  694. }.bind(this)
  695. )
  696. },
  697. tabChange(e) {
  698. this.setState({
  699. tabsKey: e
  700. })
  701. if (e == 2) {
  702. this.waiDetail();
  703. this.payNodeTable();
  704. this.thirdTable();
  705. this.getCsortData();
  706. } else if (e == 3) {
  707. this.loadCompany()
  708. }
  709. },
  710. //查看第三方信息表格
  711. thirdTable() {
  712. this.setState({
  713. thirdInfoLoading: true,
  714. })
  715. let ajaxObj = $.ajax({
  716. method: 'get',
  717. dataType: 'json',
  718. crossDomain: false,
  719. url: globalConfig.context + '/api/admin/company/selectCompany',
  720. data: {
  721. tid: this.props.record.id,
  722. },
  723. success: function (data) {
  724. if (data.error && data.error.length) {
  725. message.warning(data.error[0].message)
  726. } else {
  727. let companyNameArr = [];
  728. let theArr = [];
  729. let thisData = [];
  730. let arr = data.data || [];
  731. let allTotalAmount = 0;
  732. let type = 0;
  733. let startType = 0;
  734. let patentNameType = 0;
  735. for (let i = 0; i < arr.length; i++) {
  736. thisData = arr[i]
  737. allTotalAmount =
  738. (allTotalAmount * 10000 + thisData.totalAmount * 10000) / 10000
  739. companyNameArr.push(thisData.companyName);
  740. thisData.key = i;
  741. type = thisData.patentType;
  742. thisData.patentType = thisData.type;
  743. theArr.push(thisData);
  744. startType = thisData.startType;
  745. patentNameType = thisData.patentNameType
  746. }
  747. if (!allTotalAmount) {
  748. allTotalAmount = 0
  749. }
  750. for (let d = 0; d < theArr.length; d++) {
  751. theArr[d].companyName = theArr[d].companyName + '-' + theArr[d].id;
  752. companyNameArr[d] = {
  753. companyName: theArr[d].companyName,
  754. id: theArr[d].id,
  755. }
  756. }
  757. if ((type === 0 || type === 1) && arr.length > 0) {
  758. this.setState({
  759. patentType: type === 0 ? 0 : 1, //0专利申请 1专利买卖
  760. patentNameType: patentNameType, //0实用新型 1发明专利 2外观专利 3 其他
  761. })
  762. }
  763. //设置项目类型
  764. if (arr.length > 0) {
  765. this.setState({
  766. startType: startType
  767. })
  768. }
  769. this.setState({
  770. thirdInfoList: theArr,
  771. })
  772. }
  773. }.bind(this),
  774. }).always(
  775. function () {
  776. this.setState({
  777. thirdInfoLoading: false,
  778. })
  779. }.bind(this)
  780. )
  781. this.setState({
  782. selectCompanyAjaxObj: ajaxObj
  783. })
  784. },
  785. payNodeTable() {
  786. this.setState({
  787. payNodeLoading: true,
  788. })
  789. let ajaxObj = $.ajax({
  790. method: 'get',
  791. dataType: 'json',
  792. crossDomain: false,
  793. url: globalConfig.context + '/api/admin/company/selectPaymentNode',
  794. data: {
  795. tid: this.props.record.id,
  796. },
  797. success: function (data) {
  798. if (data.error && data.error.length) {
  799. message.warning(data.error[0].message)
  800. } else {
  801. let payNodeArr = []
  802. let thisData = []
  803. let arr = data.data || []
  804. //对#5283自定义的补充展示
  805. this.state.paySubject.push({ key: '自定义', value: '0' })
  806. for (let i = 0; i < arr.length; i++) {
  807. thisData = arr[i]
  808. //遍历paySubject,获取当前dunType对应的key
  809. this.state.paySubject.map((item) => {
  810. if (item.value == thisData.dunType) {
  811. thisData.dunType = item.key
  812. }
  813. })
  814. payNodeArr.push({
  815. key: i,
  816. id: thisData.id, //付款节点Id
  817. nodeId: thisData.id, //付款节点Id
  818. tid: thisData.tid,
  819. companyName: thisData.companyName, //供应商名称
  820. projectType: thisData.projectType, //项目分类
  821. dunType: thisData.dunType, //催款分类
  822. unitPrice: thisData.unitPrice, //单价
  823. quantity: thisData.quantity, //数量
  824. totalAmount: thisData.totalAmount, //总价
  825. partyAmount: thisData.partyAmount, //付款
  826. partyTimes: thisData.partyTimes, //付款时间
  827. cid: thisData.cid, //机构id
  828. status: thisData.status, //催款状态 0-未支付 1-待全款 ,2已全款 status=2的时候已经全款,申请付款按钮可以去掉了
  829. })
  830. }
  831. for (let d = 0; d < payNodeArr.length; d++) {
  832. payNodeArr[d].companyName = payNodeArr[d].companyName + '-' + payNodeArr[d].cid;
  833. }
  834. this.setState({
  835. payNodeList: payNodeArr,
  836. })
  837. }
  838. }.bind(this),
  839. }).always(
  840. function () {
  841. this.setState({
  842. payNodeLoading: false,
  843. })
  844. }.bind(this)
  845. )
  846. this.setState({
  847. selectPaymentNodeAjaxObj: ajaxObj
  848. })
  849. },
  850. render() {
  851. const formItemLayout = {
  852. labelCol: { span: 8 },
  853. wrapperCol: { span: 14 },
  854. }
  855. const utils = {
  856. getSatisfaction: function (num) {
  857. switch (num) {
  858. case 0:
  859. return '未收回'
  860. case 1:
  861. return '已收回'
  862. default:
  863. return '其它'
  864. }
  865. },
  866. getChargeback: function (num) {
  867. switch (num) {
  868. case 0:
  869. return '已完成'
  870. case 1:
  871. return '未完成'
  872. default:
  873. return '其它'
  874. }
  875. },
  876. }
  877. return (
  878. this.props.visible ? <Modal
  879. className="customeDetails"
  880. footer=""
  881. title=""
  882. width="1200px"
  883. visible={this.props.visible}
  884. // onOk={this.visitOk}
  885. onCancel={(e) => {
  886. this.setState({
  887. tabsKey: "1"
  888. })
  889. this.props.cancel()
  890. }}
  891. >
  892. {this.state.resVisible ? (
  893. <ResolutionDetail
  894. cancel={this.resCancel}
  895. detail={this.state.resRecord}
  896. visible={this.state.resVisible}
  897. id={this.state.resRecord.orderNo}
  898. />
  899. ) : (
  900. ''
  901. )}
  902. <Tabs defaultActiveKey="1" activeKey={this.state.tabsKey} onChange={this.tabChange}>
  903. <TabPane tab="项目概况" key="1">
  904. {this.state.tabsKey === "1" ? <Form
  905. layout="horizontal"
  906. onSubmit={this.handleSubmit}
  907. id="demand-form"
  908. style={{ paddingBottom: '0px' }}
  909. >
  910. <Spin spinning={this.state.loading}>
  911. <div className="clearfix">
  912. <div className="clearfix">
  913. <FormItem
  914. className="half-item"
  915. {...formItemLayout}
  916. label="项目状态"
  917. >
  918. {/* <span>{getProcessStatus(this.state.projectStatus)}</span> */}
  919. <span>{getProjectName(this.state.projectStatus)}</span>
  920. <Button
  921. type="primary"
  922. size="small"
  923. style={{ marginTop: '5px', position: 'absolute' }}
  924. onClick={this.caozuorizhi}
  925. >
  926. 操作日志
  927. </Button>
  928. </FormItem>
  929. <FormItem
  930. className="half-item"
  931. {...formItemLayout}
  932. label="合同编号"
  933. >
  934. <span>{this.state.contractNo}</span>
  935. </FormItem>
  936. </div>
  937. <div className="clearfix">
  938. <FormItem
  939. className="half-item"
  940. {...formItemLayout}
  941. label="是否特批"
  942. >
  943. <span>{getApproval(this.state.approval)}</span>
  944. </FormItem>
  945. <FormItem
  946. className="half-item"
  947. {...formItemLayout}
  948. label="结算状态"
  949. >
  950. <span>
  951. {getLiquidationStatus(this.state.liquidationStatus)}
  952. </span>
  953. </FormItem>
  954. <FormItem
  955. className="half-item"
  956. {...formItemLayout}
  957. label="流程状态"
  958. >
  959. <span>{getProcessStatus(this.state.processStatus)}</span>
  960. </FormItem>
  961. <FormItem
  962. className="half-item"
  963. {...formItemLayout}
  964. label="订单编号"
  965. >
  966. <span>{this.state.orderNo}</span>
  967. </FormItem>
  968. <FormItem
  969. className="half-item"
  970. {...formItemLayout}
  971. label="是否外包"
  972. >
  973. <span>{this.state.outsource == 0 ? '否' : '是'}</span>
  974. </FormItem>
  975. </div>
  976. <div className="clearfix">
  977. <FormItem
  978. className="half-item"
  979. {...formItemLayout}
  980. label="满意度表格"
  981. >
  982. <span>
  983. {utils.getSatisfaction(this.state.formRetrieve)}
  984. </span>
  985. </FormItem>
  986. {/*<FormItem*/}
  987. {/* className="half-item"*/}
  988. {/* {...formItemLayout}*/}
  989. {/* label="退单"*/}
  990. {/*>*/}
  991. {/* <span>{utils.getChargeback(this.state.taskRefund)}</span>*/}
  992. {/*</FormItem>*/}
  993. </div>
  994. <div className="clearfix">
  995. {
  996. <FormItem
  997. className="half-item"
  998. {...formItemLayout}
  999. label="(满意度)备注"
  1000. >
  1001. <span>{this.state.retrieveContent}</span>
  1002. </FormItem>
  1003. }
  1004. {
  1005. // <FormItem
  1006. // className="half-item"
  1007. // {...formItemLayout}
  1008. // label="(退单)备注"
  1009. // >
  1010. // <span>{this.state.refundContent}</span>
  1011. // </FormItem>
  1012. }
  1013. </div>
  1014. <div className="clearfix">
  1015. <h3 className="sub-title">任务信息</h3>
  1016. <FormItem
  1017. className="half-item"
  1018. {...formItemLayout}
  1019. label="任务编号"
  1020. >
  1021. <span>{this.state.id}</span>
  1022. </FormItem>
  1023. <FormItem
  1024. className="half-item"
  1025. {...formItemLayout}
  1026. label="任务名称"
  1027. >
  1028. <span>{this.state.taskName}</span>
  1029. </FormItem>
  1030. <FormItem
  1031. className="half-item"
  1032. {...formItemLayout}
  1033. label="任务状态"
  1034. >
  1035. <span>{getTaskStatus(this.state.taskStatus)}</span>
  1036. </FormItem>
  1037. <FormItem
  1038. className="half-item"
  1039. {...formItemLayout}
  1040. label="任务类别"
  1041. >
  1042. <span>{this.state.cname}</span>
  1043. </FormItem>
  1044. <FormItem
  1045. className="half-item"
  1046. {...formItemLayout}
  1047. label="证书编号"
  1048. >
  1049. <span>{this.state.certificateNumber}</span>
  1050. </FormItem>
  1051. </div>
  1052. {/*{this.state.outsource === 1 ? (*/}
  1053. {/* <div className="clearfix">*/}
  1054. {/* <h3 className="sub-title">外包信息</h3>*/}
  1055. {/* <FormItem*/}
  1056. {/* className="half-item"*/}
  1057. {/* {...formItemLayout}*/}
  1058. {/* label="外包公司"*/}
  1059. {/* >*/}
  1060. {/* <span>{this.state.outsourceName}</span>*/}
  1061. {/* </FormItem>*/}
  1062. {/* <FormItem*/}
  1063. {/* className="half-item"*/}
  1064. {/* {...formItemLayout}*/}
  1065. {/* label="外包成本(万元)"*/}
  1066. {/* >*/}
  1067. {/* <span>{this.state.outsourcePrice}</span>*/}
  1068. {/* </FormItem>*/}
  1069. {/* </div>*/}
  1070. {/*) : (*/}
  1071. {/* ''*/}
  1072. {/*)}*/}
  1073. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1074. <div className="clearfix">
  1075. <h3 className="sub-title">联系信息</h3>
  1076. <FormItem
  1077. className="half-item"
  1078. {...formItemLayout}
  1079. label="客户名称"
  1080. >
  1081. <span>{this.state.userName}</span>
  1082. </FormItem>
  1083. <FormItem
  1084. className="half-item"
  1085. {...formItemLayout}
  1086. label="企业法人"
  1087. >
  1088. <span>{this.state.legalPerson}</span>
  1089. </FormItem>
  1090. <FormItem
  1091. className="half-item"
  1092. {...formItemLayout}
  1093. label="法人电话"
  1094. >
  1095. <span>{this.state.legalPersonTel}</span>
  1096. </FormItem>
  1097. <FormItem
  1098. className="half-item"
  1099. {...formItemLayout}
  1100. label="客户联系人"
  1101. >
  1102. <span>{this.state.contacts}</span>
  1103. </FormItem>
  1104. <FormItem
  1105. className="half-item"
  1106. {...formItemLayout}
  1107. label="联系人电话"
  1108. >
  1109. <span>{this.state.contactMobile}</span>
  1110. </FormItem>
  1111. <FormItem
  1112. className="half-item"
  1113. {...formItemLayout}
  1114. label="企业地址"
  1115. >
  1116. <span>
  1117. {getprovince(this.state.locationProvince)}/
  1118. {getprovince(this.state.locationCity)}/
  1119. {getprovince(this.state.locationArea)}
  1120. </span>
  1121. </FormItem>
  1122. <FormItem
  1123. className="half-item"
  1124. {...formItemLayout}
  1125. label=""
  1126. />
  1127. <FormItem className="half-item" {...formItemLayout}>
  1128. <span style={{ paddingLeft: '12em' }}>
  1129. {this.state.postalAddress}
  1130. </span>
  1131. </FormItem>
  1132. </div>
  1133. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1134. <div className="clearfix">
  1135. <h3 className="sub-title">订单负责人信息</h3>
  1136. <FormItem
  1137. className="half-item"
  1138. {...formItemLayout}
  1139. label="负责人"
  1140. >
  1141. <span>
  1142. {this.state.salesmanName +
  1143. '(' +
  1144. this.state.depName +
  1145. ')'}
  1146. </span>
  1147. </FormItem>
  1148. <FormItem
  1149. className="half-item"
  1150. {...formItemLayout}
  1151. label="负责人电话"
  1152. >
  1153. <span>{this.state.salesmanMobile}</span>
  1154. </FormItem>
  1155. <FormItem
  1156. className="half-item"
  1157. {...formItemLayout}
  1158. label="当前财务负责人"
  1159. >
  1160. <span>{this.state.nowFinance}</span>
  1161. </FormItem>
  1162. <FormItem
  1163. className="half-item"
  1164. {...formItemLayout}
  1165. label="当前财务负责人电话"
  1166. >
  1167. <span>{this.state.nowFinanceMobile}</span>
  1168. </FormItem>
  1169. <FormItem
  1170. className="half-item"
  1171. {...formItemLayout}
  1172. style={{ opacity: '.5' }}
  1173. label="原负责人"
  1174. >
  1175. <span>{this.state.oldSalesmanName}</span>
  1176. </FormItem>
  1177. <FormItem
  1178. className="half-item"
  1179. {...formItemLayout}
  1180. style={{ opacity: '.5' }}
  1181. label="原负责人电话"
  1182. >
  1183. <span>{this.state.oldSalesmanMobile}</span>
  1184. </FormItem>
  1185. <FormItem
  1186. className="half-item"
  1187. {...formItemLayout}
  1188. style={{ opacity: '.5' }}
  1189. label="实际财务操作人"
  1190. >
  1191. <span>{this.state.financeName}</span>
  1192. </FormItem>
  1193. <FormItem
  1194. className="half-item"
  1195. {...formItemLayout}
  1196. style={{ opacity: '.5' }}
  1197. label="实际财务操作人电话"
  1198. >
  1199. <span>{this.state.financeMobile}</span>
  1200. </FormItem>
  1201. </div>
  1202. <div className="clearfix">
  1203. <h3 className="sub-title">申报系统账户信息</h3>
  1204. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  1205. <FormItem
  1206. className="half-item"
  1207. {...formItemLayout}
  1208. label="用户名"
  1209. >
  1210. <span>{this.state.declareUser ? '****' : ''}</span>
  1211. </FormItem>
  1212. <FormItem
  1213. className="half-item"
  1214. {...formItemLayout}
  1215. label="密码"
  1216. >
  1217. <span>{this.state.declarePwd ? '****' : ''}</span>
  1218. </FormItem>
  1219. </div>
  1220. <div className="clearfix">
  1221. <h3 className="sub-title">项目申报进度</h3>
  1222. <FormItem
  1223. className="half-item"
  1224. {...formItemLayout}
  1225. label="申报批次"
  1226. >
  1227. <span>{this.state.declarationBatch}</span>
  1228. </FormItem>
  1229. <FormItem
  1230. className="half-item"
  1231. {...formItemLayout}
  1232. label="启动时间"
  1233. >
  1234. <span>{this.state.startDate}</span>
  1235. </FormItem>
  1236. <FormItem
  1237. className="half-item"
  1238. {...formItemLayout}
  1239. label="完成时间"
  1240. >
  1241. <span>{this.state.endDate}</span>
  1242. </FormItem>
  1243. <FormItem
  1244. className="half-item"
  1245. {...formItemLayout}
  1246. label="受理时间"
  1247. >
  1248. <span>{this.state.acceptDate}</span>
  1249. </FormItem>
  1250. <FormItem
  1251. className="half-item"
  1252. {...formItemLayout}
  1253. label="评审时间"
  1254. >
  1255. <span>{this.state.reviewDate}</span>
  1256. </FormItem>
  1257. <FormItem
  1258. className="half-item"
  1259. {...formItemLayout}
  1260. label="公示时间"
  1261. >
  1262. <span>{this.state.publicityDate}</span>
  1263. </FormItem>
  1264. <FormItem
  1265. className="half-item"
  1266. {...formItemLayout}
  1267. label="发证时间"
  1268. >
  1269. <span>{this.state.licenceDate}</span>
  1270. </FormItem>
  1271. <FormItem
  1272. className="half-item"
  1273. {...formItemLayout}
  1274. label="立项金额(万元)"
  1275. >
  1276. <span>{this.state.setUpAmount}</span>
  1277. </FormItem>
  1278. <FormItem
  1279. className="half-item"
  1280. {...formItemLayout}
  1281. label="是否到款"
  1282. >
  1283. <span>
  1284. {this.state.arrivalMoney ? '已到企业' : '未到企业'}
  1285. </span>
  1286. </FormItem>
  1287. </div>
  1288. <div className="clearfix">
  1289. <FormItem
  1290. labelCol={{ span: 3 }}
  1291. wrapperCol={{ span: 18 }}
  1292. label="附件"
  1293. >
  1294. {/*<Upload*/}
  1295. {/* className="demandDetailShow-upload"*/}
  1296. {/* listType="picture-card"*/}
  1297. {/* fileList={this.state.attachmentUrl}*/}
  1298. {/* onPreview={(file) => {*/}
  1299. {/* this.setState({*/}
  1300. {/* previewImage: file.url || file.thumbUrl,*/}
  1301. {/* previewVisible: true,*/}
  1302. {/* })*/}
  1303. {/* }}*/}
  1304. {/*/>*/}
  1305. {this.state.attachmentUrl && this.props.visible && this.state.tabsKey === "1" ? <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  1306. <ImgList fileList={this.state.attachmentUrl} ItemWidth={'96px'} />
  1307. </div> : <div />}
  1308. <Modal
  1309. maskClosable={false}
  1310. footer={null}
  1311. visible={this.state.previewVisible}
  1312. onCancel={() => {
  1313. this.setState({ previewVisible: false })
  1314. }}
  1315. >
  1316. <img
  1317. alt=""
  1318. style={{ width: '100%' }}
  1319. src={this.state.previewImage || ''}
  1320. />
  1321. </Modal>
  1322. </FormItem>
  1323. </div>
  1324. <div className="clearfix">
  1325. <FormItem
  1326. labelCol={{ span: 3 }}
  1327. wrapperCol={{ span: 16 }}
  1328. label="备注"
  1329. >
  1330. <span>{this.state.taskComment}</span>
  1331. </FormItem>
  1332. </div>
  1333. {/* 协单人员 */}
  1334. <OrderCoor orderNo={this.props.record.orderNo} />
  1335. <div>
  1336. <h3 className="sub-title">项目业务</h3>
  1337. {/* {this.state.processStatus == 0 ? (
  1338. <Button
  1339. type="primary"
  1340. onClick={this.addDetailed}
  1341. style={{
  1342. float: "right",
  1343. marginRight: "50px",
  1344. marginBottom: "15px"
  1345. }}
  1346. >
  1347. 添加项目明细
  1348. </Button>
  1349. ) : (
  1350. ""
  1351. )} */}
  1352. </div>
  1353. <div className="patent-table">
  1354. <Spin spinning={this.state.loading}>
  1355. <Table
  1356. columns={this.state.columnsX}
  1357. dataSource={this.state.dataSourceX}
  1358. pagination={this.state.paginations}
  1359. onRowClick={this.tableRowClickX}
  1360. style={{
  1361. cursor: 'pointer',
  1362. }}
  1363. bordered
  1364. size="small"
  1365. />
  1366. </Spin>
  1367. </div>
  1368. </div>
  1369. </Spin>
  1370. </Form> : <div />}
  1371. </TabPane>
  1372. <TabPane tab="外包/供应商信息" key="2">
  1373. {this.state.tabsKey === "2" ? <Spin spinning={this.state.loading}>
  1374. <div>
  1375. {
  1376. this.props.visible && this.state.tabsKey === '2' ?
  1377. <CheckProject
  1378. {...this.props}
  1379. tid={this.props.record.id}
  1380. sort={this.state.sort}
  1381. patentTypeName={this.state.patentTypeName} //官费类型
  1382. patentTypeId={this.state.patentTypeId}
  1383. commodityQuantity={this.state.commodityQuantity} //项目数量
  1384. checkStatus={this.state.checkStatus} //核对状态
  1385. orderTaskCostReduction={this.state.orderTaskCostReduction} //是否含费减 0无1有
  1386. orderTaskOfficialCost={this.state.orderTaskOfficialCost} //是否含官费 0无1有
  1387. containOfficialFees={this.state.containOfficialFees} //0:实际已缴费 1:实际未缴费
  1388. oldInfor={this.state.oldInfor}
  1389. projectType={this.state.projectType} //0正常 1专利 2软著 3审计
  1390. patentNameType={this.state.patentNameType}
  1391. isAuditPayment={this.props.isAuditPayment} //是否为财务
  1392. isAuditPaymentGLY={this.props.isAuditPaymentGLY} //是否为财务经理或者为财务管理员
  1393. patentName={this.state.patentName}
  1394. patentType={this.state.patentType}
  1395. status={this.state.refundStatus}
  1396. mid={this.state.mid}
  1397. thirdInfoList={this.state.thirdInfoList}
  1398. dataSource={this.state.payNodeList}
  1399. outsourceRemarks={this.state.outsourceRemarks}
  1400. fileList={this.state.pictureUrl}
  1401. startType={this.state.startType}
  1402. projectStatus={this.state.projectStatus}
  1403. onRefresh={() => {
  1404. this.waiDetail();
  1405. this.thirdTable();
  1406. this.payNodeTable()
  1407. this.xiangqing(this.state.id);
  1408. }}
  1409. /> : <div />
  1410. }
  1411. </div>
  1412. <div className="clearfix">
  1413. <hr className="division" />
  1414. <div
  1415. className="clearfix"
  1416. style={{
  1417. display: this.state.refundStatus == 0 ? 'none' : 'block',
  1418. }}
  1419. >
  1420. <FormItem
  1421. className="half-item"
  1422. {...formItemLayout}
  1423. label="审核意见"
  1424. >
  1425. <span>{this.state.remarks}</span>
  1426. </FormItem>
  1427. </div>
  1428. {!(this.state.oldInfor && Object.keys(this.state.oldInfor).length > 0) ? <div className="clearfix">
  1429. <FormItem
  1430. className="half-item"
  1431. {...formItemLayout}
  1432. label="审核结果"
  1433. >
  1434. <span>{getRefundStatus(this.state.refundStatus)}</span>
  1435. </FormItem>
  1436. </div> : <div />}
  1437. <div
  1438. className="clearfix"
  1439. style={{
  1440. display: this.state.refundStatus == 0 ? 'none' : 'block',
  1441. }}
  1442. >
  1443. <FormItem
  1444. className="half-item"
  1445. {...formItemLayout}
  1446. label="审核时间"
  1447. >
  1448. <span>{this.state.auditTimes}</span>
  1449. </FormItem>
  1450. </div>
  1451. </div>
  1452. </Spin> : <div />}
  1453. </TabPane>
  1454. {/*{this.props.record && this.props.record.outsource == 1 ? (*/}
  1455. {/* <TabPane tab="外包公司信息" key="3">*/}
  1456. {/* <div className="patent-table" style={{ marginTop: '10px' }}>*/}
  1457. {/* <Spin spinning={this.state.loading}>*/}
  1458. {/* <Table*/}
  1459. {/* columns={this.state.companyColumns}*/}
  1460. {/* dataSource={this.state.companys}*/}
  1461. {/* scroll={{ x: 300, y: 0 }}*/}
  1462. {/* bordered*/}
  1463. {/* size="small"*/}
  1464. {/* expandedRowRender={(record) => {*/}
  1465. {/* return <p>{record.remarks}</p>*/}
  1466. {/* }}*/}
  1467. {/* pagination={false}*/}
  1468. {/* />*/}
  1469. {/* </Spin>*/}
  1470. {/* </div>*/}
  1471. {/* </TabPane>*/}
  1472. {/*) : (*/}
  1473. {/* ''*/}
  1474. {/*)}*/}
  1475. </Tabs>
  1476. <Modal
  1477. width="800px"
  1478. visible={this.state.visibleA}
  1479. onCancel={this.visitCancelA}
  1480. title="操作日志"
  1481. footer=""
  1482. className="admin-desc-content"
  1483. >
  1484. <div className="patent-table patent-table-center">
  1485. <Spin spinning={this.state.loading}>
  1486. <Table
  1487. columns={this.state.columnsA}
  1488. dataSource={this.state.dataSourceA}
  1489. pagination={false}
  1490. bordered
  1491. size="small"
  1492. />
  1493. </Spin>
  1494. </div>
  1495. </Modal>
  1496. </Modal> : <div />
  1497. )
  1498. },
  1499. })
  1500. export default project