project.jsx 51 KB

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