project.jsx 52 KB

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