project.jsx 51 KB

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