project.jsx 53 KB

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