project.jsx 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309
  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. } from 'antd'
  14. import {
  15. getProcessStatus,
  16. getApproval,
  17. getTaskStatus,
  18. getLiquidationStatus,
  19. splitUrl,
  20. getProjectStatus,
  21. getboutique,
  22. getprovince,
  23. ShowModal,
  24. getRefundStatus,
  25. } from '@/tools'
  26. const FormItem = Form.Item
  27. import ResolutionDetail from '@/resolutionDetail'
  28. import ImgList from "./common/imgList";
  29. const { TabPane } = Tabs
  30. const project = React.createClass({
  31. getInitialState() {
  32. return {
  33. visible: false,
  34. record: this.props.record,
  35. paginations: false,
  36. columnsX: [
  37. {
  38. title: '业务项目名称',
  39. dataIndex: 'commodityName',
  40. key: 'commodityName',
  41. },
  42. {
  43. title: '项目类别',
  44. dataIndex: 'cname',
  45. key: 'cname',
  46. },
  47. {
  48. title: '项目数量',
  49. dataIndex: 'commodityQuantity',
  50. key: 'commodityQuantity',
  51. render: (text, record) => {
  52. if (record.splitStatus == 1) {
  53. return (
  54. <span>
  55. {text}{' '}
  56. <Tag
  57. color="#108ee9"
  58. onClick={(e) => {
  59. e.stopPropagation()
  60. this.showRes(record)
  61. }}
  62. >
  63. 已拆
  64. </Tag>
  65. </span>
  66. )
  67. } else {
  68. return text
  69. }
  70. },
  71. },
  72. {
  73. title: '金额(万元)',
  74. dataIndex: 'commodityPrice',
  75. key: 'commodityPrice',
  76. },
  77. {
  78. title: '负责人',
  79. dataIndex: 'contacts',
  80. key: 'contacts',
  81. },
  82. {
  83. title: '负责人电话',
  84. dataIndex: 'contactsMobile',
  85. key: 'contactsMobile',
  86. },
  87. {
  88. title: '主要项目',
  89. dataIndex: 'main',
  90. key: 'main',
  91. render: (text) => {
  92. return text ? '是' : '否'
  93. },
  94. },
  95. {
  96. title: '项目说明',
  97. dataIndex: 'taskComment',
  98. key: 'taskComment',
  99. render: (text) => {
  100. return text && text.length > 8 ? text.substr(0, 8) + '…' : text
  101. },
  102. },
  103. ],
  104. columnsA: [
  105. {
  106. title: '流程',
  107. dataIndex: 'content',
  108. key: 'content',
  109. align: 'center',
  110. },
  111. {
  112. title: '操作人',
  113. dataIndex: 'aName',
  114. key: 'aName',
  115. align: 'center',
  116. },
  117. {
  118. title: '时间',
  119. dataIndex: 'createTimes',
  120. key: 'createTimes',
  121. align: 'center',
  122. },
  123. ],
  124. resVisible: false,
  125. companyColumns: [
  126. {
  127. title: '公司',
  128. dataIndex: 'name',
  129. key: 'name',
  130. //fixed:'left',
  131. width: 160,
  132. },
  133. {
  134. title: '联系人',
  135. dataIndex: 'contacts',
  136. key: 'contacts',
  137. },
  138. {
  139. title: '联系人电话',
  140. dataIndex: 'contactsMobile',
  141. key: 'contactsMobile',
  142. },
  143. {
  144. title: '地址',
  145. dataIndex: 'companyProvinceArr',
  146. key: 'companyProvinceArr',
  147. width: 140,
  148. render: (test) => {
  149. return test[0] === null
  150. ? ''
  151. : getprovince(test[0]) +
  152. '/' +
  153. getprovince(test[1]) +
  154. '/' +
  155. getprovince(test[2])
  156. },
  157. },
  158. {
  159. title: '详细地址',
  160. dataIndex: 'address',
  161. key: 'address',
  162. },
  163. ],
  164. }
  165. },
  166. componentWillReceiveProps(nextProps) {
  167. this.setState({
  168. visible: nextProps.visible,
  169. record: nextProps.record,
  170. })
  171. if (nextProps.record) {
  172. this.xiangqing(nextProps.record.id)
  173. this.xiangqings(nextProps.record.orderNo)
  174. this.xiangmu(nextProps.record.orderNo)
  175. this.loaduserss(nextProps.record)
  176. }
  177. },
  178. // handleOk() {
  179. // this.setState({
  180. // newVisible: false
  181. // });
  182. // // window.setTimeout( () => {
  183. // // this.setState({
  184. // // newVisible: true
  185. // // });
  186. // // },)
  187. // },
  188. // 拆分详细
  189. showRes(record) {
  190. this.setState({
  191. resVisible: true,
  192. resRecord: record,
  193. })
  194. },
  195. resCancel() {
  196. this.setState({
  197. resVisible: false,
  198. })
  199. },
  200. componentDidMount() {},
  201. xiangqing(id) {
  202. this.setState({
  203. loading: true,
  204. })
  205. $.ajax({
  206. method: 'get',
  207. dataType: 'json',
  208. crossDomain: false,
  209. url: globalConfig.context + '/api/admin/orderProject/orderTaskDetail',
  210. data: {
  211. id: id,
  212. },
  213. success: function (data) {
  214. if (data.error.length || data.data.list == '') {
  215. if (data.error && data.error.length) {
  216. message.warning(data.error[0].message)
  217. }
  218. } else {
  219. let thisdata = data.data
  220. this.setState({
  221. id: thisdata.id, //ID
  222. orderNo: thisdata.orderNo, //订单编号
  223. userName: thisdata.userName, //客户名称
  224. taskName: thisdata.taskName, //任务名称
  225. cname: thisdata.cname, //项目品类
  226. contractNo: thisdata.contractNo, //合同编号
  227. projectStatus: thisdata.projectStatus, //项目状态
  228. taskStatus: thisdata.taskStatus, //任务状态
  229. taskDate: thisdata.taskDate, //分配时间
  230. taskComment: thisdata.taskComment, //说明
  231. attachmentUrl: thisdata.attachmentUrl
  232. ? splitUrl(
  233. thisdata.attachmentUrl,
  234. ',',
  235. globalConfig.avatarHost + '/upload'
  236. )
  237. : [], //图片地址
  238. salesmanName: thisdata.salesmanName, //订单负责人
  239. startDate: thisdata.startDate, //启动日期
  240. endDate: thisdata.endDate, //结束日期
  241. acceptDate: thisdata.acceptDate, //受理日期
  242. reviewDate: thisdata.reviewDate, //评审日期
  243. publicityDate: thisdata.publicityDate, //公示日期
  244. licenceDate: thisdata.licenceDate, //发证日期
  245. contacts: thisdata.contacts, //联系人
  246. contactMobile: thisdata.contactMobile, //联系人电话
  247. legalPerson: thisdata.legalPerson, //法人
  248. legalPersonTel: thisdata.legalPersonTel, //法人电话
  249. certificateNumber: thisdata.certificateNumber, //证书编号
  250. status: thisdata.status, //状态
  251. formRetrieve: thisdata.formRetrieve, //满意度表格
  252. taskRefund: thisdata.taskRefund, //退单
  253. refundContent: thisdata.refundContent, //退单信息
  254. retrieveContent: thisdata.retrieveContent, //回收信息
  255. arrivalMoney: thisdata.arrivalMoney, //是否到款
  256. setUpAmount: thisdata.setUpAmount, //立项金额
  257. declareUser: thisdata.declareUser, //账号
  258. declarePwd: thisdata.declarePwd, //密码
  259. depName: thisdata.depName, //订单部门
  260. outsourceName: thisdata.outsourceName, //外包公司名称
  261. outsourcePrice: thisdata.outsourcePrice, //外包价格
  262. declarationBatch: thisdata.declarationBatch, //外包价格
  263. })
  264. }
  265. }.bind(this),
  266. }).always(
  267. function () {
  268. this.setState({
  269. loading: false,
  270. })
  271. }.bind(this)
  272. )
  273. },
  274. //订单详情
  275. xiangqings(orderNos) {
  276. this.setState({
  277. loading: true,
  278. })
  279. $.ajax({
  280. method: 'get',
  281. dataType: 'json',
  282. crossDomain: false,
  283. url: globalConfig.context + '/api/admin/newOrder/getOrderNewDetail',
  284. data: {
  285. orderNo: orderNos,
  286. },
  287. success: function (data) {
  288. let thisdata = data.data
  289. let ProvinceCityArr = []
  290. let ProvinceS = thisdata.locationProvince //省
  291. let citys = thisdata.locationCity //市
  292. let Areas = thisdata.locationArea //区
  293. ProvinceCityArr.push(ProvinceS, citys, Areas)
  294. if (data.error.length || data.data.list == '') {
  295. if (data.error && data.error.length) {
  296. message.warning(data.error[0].message)
  297. }
  298. } else {
  299. this.setState({
  300. processStatus: thisdata.processStatus, //流程状态
  301. liquidationStatus: thisdata.liquidationStatus, //结算状态
  302. approval: thisdata.approval, //特批状态
  303. orderRemarks: thisdata.orderRemarks, //订单留言
  304. salesmanName: thisdata.salesmanName, //营销员名称
  305. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  306. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  307. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  308. financeName: thisdata.financeName, //财务名称
  309. financeMobile: thisdata.financeMobile, //财务电话
  310. nowFinance: thisdata.nowFinance, //财务名称
  311. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  312. depName: thisdata.depName, //订单部门
  313. locationProvince: thisdata.locationProvince,
  314. locationCity: thisdata.locationCity,
  315. locationArea: thisdata.locationArea,
  316. ProvinceCity: ProvinceCityArr,
  317. postalAddress: thisdata.postalAddress, //详细地址
  318. outsource: thisdata.outsource,
  319. })
  320. }
  321. }.bind(this),
  322. }).always(
  323. function () {
  324. this.setState({
  325. loading: false,
  326. })
  327. }.bind(this)
  328. )
  329. },
  330. //查看下证信息
  331. loaduserss(record) {
  332. this.setState({
  333. loading: true,
  334. })
  335. $.ajax({
  336. method: 'get',
  337. dataType: 'json',
  338. crossDomain: false,
  339. url: globalConfig.context + '/api/admin/orderProject/selectTaskProgress',
  340. data: {
  341. tid: record.id,
  342. },
  343. success: function (data) {
  344. let theArr = []
  345. let thisData = []
  346. if (!thisData) {
  347. if (data.error && data.error.length) {
  348. message.warning(data.error[0].message)
  349. }
  350. thisData = {}
  351. } else {
  352. for (let i = 0; i < data.data.length; i++) {
  353. thisData = data.data[i]
  354. theArr.push({
  355. num: i + 1,
  356. key: i,
  357. id: thisData.id, //编号
  358. alreadyNumber: thisData.alreadyNumber, //下证数
  359. licenceTimes: thisData.licenceTimes, //下证时间
  360. notCount: thisData.notCount, //未下证数
  361. flag: true,
  362. })
  363. }
  364. this.setState({
  365. contactList: theArr,
  366. })
  367. }
  368. }.bind(this),
  369. }).always(
  370. function () {
  371. this.setState({
  372. loading: false,
  373. })
  374. }.bind(this)
  375. )
  376. },
  377. //项目列表
  378. xiangmu(orderNos) {
  379. this.setState({
  380. loading: true,
  381. })
  382. $.ajax({
  383. method: 'get',
  384. dataType: 'json',
  385. crossDomain: false,
  386. url: globalConfig.context + '/api/admin/newOrder/getOrderTask',
  387. data: {
  388. orderNo: orderNos,
  389. },
  390. success: function (data) {
  391. let theArr = []
  392. if (data.error.length || data.data.list == '') {
  393. if (data.error && data.error.length) {
  394. message.warning(data.error[0].message)
  395. }
  396. } else {
  397. for (let i = 0; i < data.data.length; i++) {
  398. let thisdata = data.data[i]
  399. theArr.push({
  400. key: i,
  401. id: thisdata.id,
  402. orderNo: thisdata.orderNo, //订单编号
  403. commodityId: thisdata.commodityId, //项目ID
  404. commodityName: thisdata.commodityName, //项目名称
  405. cname: thisdata.cname, //项目类别
  406. commodityPrice: thisdata.commodityPrice, //项目价格
  407. commodityQuantity: thisdata.commodityQuantity, //项目数量
  408. main: thisdata.main, //是否为主要任务
  409. taskComment: thisdata.taskComment, //任务说明
  410. contacts: thisdata.contacts, //联系人
  411. contactsMobile: thisdata.contactsMobile, //联系人电话
  412. taskStatus: thisdata.taskStatus, //是否分配
  413. splitStatus: thisdata.splitStatus,
  414. sort: thisdata.cSort,
  415. })
  416. }
  417. }
  418. this.setState({
  419. dataSourceX: theArr,
  420. })
  421. }.bind(this),
  422. }).always(
  423. function () {
  424. this.setState({
  425. loading: false,
  426. })
  427. }.bind(this)
  428. )
  429. },
  430. tableRowClickX(record) {
  431. this.setState({
  432. jid: record.id, //项目ID
  433. kid: record.commodityId, //商品ID
  434. commodityName: record.commodityName, //金额
  435. commodityPrice: record.commodityPrice, //金额
  436. commodityQuantity: record.commodityQuantity, //数量
  437. taskComment: record.taskComment, //备注
  438. main: record.main.toString(), //是否为主要
  439. addnextVisible: true,
  440. addState: 0,
  441. })
  442. },
  443. caozuorizhi() {
  444. this.setState({
  445. loading: true,
  446. })
  447. this.setState({
  448. visibleA: true,
  449. })
  450. $.ajax({
  451. method: 'get',
  452. dataType: 'json',
  453. crossDomain: false,
  454. url: globalConfig.context + '/api/admin/orderProject/TaskLogList',
  455. data: {
  456. id: this.state.id,
  457. },
  458. success: function (data) {
  459. let theArr = []
  460. if (data.error.length || data.data.list == '') {
  461. if (data.error && data.error.length) {
  462. message.warning(data.error[0].message)
  463. }
  464. } else {
  465. for (let i = 0; i < data.data.length; i++) {
  466. let thisdata = data.data[i]
  467. theArr.push({
  468. key: i,
  469. id: thisdata.id, //日志ID
  470. content: thisdata.content, //流程
  471. taskId: thisdata.taskId, //任务ID
  472. aName: thisdata.aName, //负责人
  473. createTimes: thisdata.createTimes, //时间
  474. })
  475. }
  476. }
  477. this.setState({
  478. dataSourceA: theArr,
  479. })
  480. }.bind(this),
  481. }).always(
  482. function () {
  483. this.setState({
  484. loading: false,
  485. })
  486. }.bind(this)
  487. )
  488. }, //关闭操作工时
  489. visitCancelA() {
  490. this.setState({
  491. visibleA: false,
  492. })
  493. },
  494. waiDetail() {
  495. let url = window.location.href.substring(7)
  496. this.setState({
  497. loading: true,
  498. })
  499. $.ajax({
  500. method: 'get',
  501. dataType: 'json',
  502. crossDomain: false,
  503. url:
  504. globalConfig.context + '/api/admin/outsourceOrg/orderOutsourceDtails',
  505. data: {
  506. tid: this.props.record.id,
  507. orderNo: this.props.record.orderNo,
  508. },
  509. }).done(
  510. function (data) {
  511. this.setState({
  512. loading: false,
  513. })
  514. if (!data.error.length && data.data) {
  515. this.setState({
  516. outsourceRemarks: data.data.outsourceRemarks,
  517. remarks: data.data.remarks,
  518. companyName: data.data.companyName,
  519. amount: data.data.amount,
  520. mid: data.data.id,
  521. unitPrice: data.data.unitPrice,
  522. refundStatus: data.data.refundStatus,
  523. unitNumber: data.data.unitNumber,
  524. pictureUrl: data.data.pictureUrl
  525. ? splitUrl(
  526. data.data.pictureUrl,
  527. ',',
  528. globalConfig.avatarHost + '/upload',
  529. url
  530. )
  531. : [], //图片地址
  532. createTimes: data.data.createTimes,
  533. auditTimes: data.data.auditTimes,
  534. })
  535. } else if (data.error && data.error.length) {
  536. message.warning(data.error[0].message)
  537. } else if (!data.data) {
  538. this.setState({
  539. refundStatus: undefined,
  540. })
  541. }
  542. }.bind(this)
  543. )
  544. },
  545. //加载外包
  546. loadCompany() {
  547. this.setState({
  548. loading: true,
  549. })
  550. $.ajax({
  551. method: 'get',
  552. dataType: 'json',
  553. crossDomain: false,
  554. url: globalConfig.context + '/api/admin/outsourceOrg/selectOutsourceOrg',
  555. data: {
  556. tid: this.props.record.id,
  557. orderNo: this.props.record.orderNo,
  558. },
  559. success: function (data) {
  560. let theArr = []
  561. if (data.error.length || data.data.list == '') {
  562. if (data.error && data.error.length) {
  563. message.warning(data.error[0].message)
  564. }
  565. } else {
  566. for (let i = 0; i < data.data.length; i++) {
  567. let thisdata = data.data[i]
  568. let ProvinceCityArr = []
  569. let ProvinceS = thisdata.province //省
  570. let citys = thisdata.city //市
  571. let Areas = thisdata.area //区
  572. ProvinceCityArr.push(ProvinceS, citys, Areas)
  573. theArr.push({
  574. key: i,
  575. id: thisdata.id, //外包Id
  576. name: thisdata.name, //名称
  577. contacts: thisdata.contacts, //联系人
  578. contactsMobile: thisdata.contactsMobile, //联系人电话
  579. companyProvinceArr: ProvinceCityArr,
  580. address: thisdata.address,
  581. remarks: thisdata.remarks,
  582. })
  583. }
  584. }
  585. this.setState({
  586. companys: theArr,
  587. })
  588. }.bind(this),
  589. }).always(
  590. function () {
  591. this.setState({
  592. loading: false,
  593. })
  594. }.bind(this)
  595. )
  596. },
  597. tabChange(e) {
  598. if (e == 2) {
  599. this.waiDetail()
  600. } else if (e == 3) {
  601. this.loadCompany()
  602. }
  603. },
  604. render() {
  605. const formItemLayout = {
  606. labelCol: { span: 8 },
  607. wrapperCol: { span: 14 },
  608. }
  609. const utils = {
  610. getSatisfaction: function (num) {
  611. switch (num) {
  612. case 0:
  613. return '未收回'
  614. case 1:
  615. return '已收回'
  616. default:
  617. return '其它'
  618. }
  619. },
  620. getChargeback: function (num) {
  621. switch (num) {
  622. case 0:
  623. return '已完成'
  624. case 1:
  625. return '未完成'
  626. default:
  627. return '其它'
  628. }
  629. },
  630. }
  631. return (
  632. <Modal
  633. className="customeDetails"
  634. footer=""
  635. title=""
  636. width="900px"
  637. visible={this.state.visible}
  638. // onOk={this.visitOk}
  639. onCancel={(e) => {
  640. this.props.cancel()
  641. }}
  642. >
  643. {this.state.resVisible ? (
  644. <ResolutionDetail
  645. cancel={this.resCancel}
  646. detail={this.state.resRecord}
  647. visible={this.state.resVisible}
  648. id={this.state.resRecord.orderNo}
  649. />
  650. ) : (
  651. ''
  652. )}
  653. <Tabs defaultActiveKey="1" onChange={this.tabChange}>
  654. <TabPane tab="项目概况" key="1">
  655. <Form
  656. layout="horizontal"
  657. onSubmit={this.handleSubmit}
  658. id="demand-form"
  659. style={{ paddingBottom: '0px' }}
  660. >
  661. <Spin spinning={this.state.loading}>
  662. <div className="clearfix">
  663. <div className="clearfix">
  664. <FormItem
  665. className="half-item"
  666. {...formItemLayout}
  667. label="当前项目情况"
  668. >
  669. <span>{this.state.status ? '暂停' : '开启'}</span>
  670. <Button
  671. type="primary"
  672. size="small"
  673. style={{ marginTop: '5px', position: 'absolute' }}
  674. onClick={this.caozuorizhi}
  675. >
  676. 操作日志
  677. </Button>
  678. </FormItem>
  679. <FormItem
  680. className="half-item"
  681. {...formItemLayout}
  682. label="合同编号"
  683. >
  684. <span>{this.state.contractNo}</span>
  685. </FormItem>
  686. </div>
  687. <div className="clearfix">
  688. <FormItem
  689. className="half-item"
  690. {...formItemLayout}
  691. label="项目状态"
  692. >
  693. {/* <span>{getProcessStatus(this.state.projectStatus)}</span> */}
  694. <span>{getProjectStatus(this.state.projectStatus)}</span>
  695. </FormItem>
  696. <FormItem
  697. className="half-item"
  698. {...formItemLayout}
  699. label="是否特批"
  700. >
  701. <span>{getApproval(this.state.approval)}</span>
  702. </FormItem>
  703. <FormItem
  704. className="half-item"
  705. {...formItemLayout}
  706. label="结算状态"
  707. >
  708. <span>
  709. {getLiquidationStatus(this.state.liquidationStatus)}
  710. </span>
  711. </FormItem>
  712. <FormItem
  713. className="half-item"
  714. {...formItemLayout}
  715. label="流程状态"
  716. >
  717. <span>{getProcessStatus(this.state.processStatus)}</span>
  718. </FormItem>
  719. <FormItem
  720. className="half-item"
  721. {...formItemLayout}
  722. label="订单编号"
  723. >
  724. <span>{this.state.orderNo}</span>
  725. </FormItem>
  726. <FormItem
  727. className="half-item"
  728. {...formItemLayout}
  729. label="是否外包"
  730. >
  731. <span>{this.state.outsource == 0 ? '否' : '是'}</span>
  732. </FormItem>
  733. </div>
  734. <div className="clearfix">
  735. <FormItem
  736. className="half-item"
  737. {...formItemLayout}
  738. label="满意度表格"
  739. >
  740. <span>
  741. {utils.getSatisfaction(this.state.formRetrieve)}
  742. </span>
  743. </FormItem>
  744. <FormItem
  745. className="half-item"
  746. {...formItemLayout}
  747. label="退单"
  748. >
  749. <span>{utils.getChargeback(this.state.taskRefund)}</span>
  750. </FormItem>
  751. </div>
  752. <div className="clearfix">
  753. {
  754. <FormItem
  755. className="half-item"
  756. {...formItemLayout}
  757. label="(满意度)备注"
  758. >
  759. <span>{this.state.retrieveContent}</span>
  760. </FormItem>
  761. }
  762. {
  763. <FormItem
  764. className="half-item"
  765. {...formItemLayout}
  766. label="(退单)备注"
  767. >
  768. <span>{this.state.refundContent}</span>
  769. </FormItem>
  770. }
  771. </div>
  772. <div className="clearfix">
  773. <h3 className="sub-title">任务信息</h3>
  774. <FormItem
  775. className="half-item"
  776. {...formItemLayout}
  777. label="任务编号"
  778. >
  779. <span>{this.state.id}</span>
  780. </FormItem>
  781. <FormItem
  782. className="half-item"
  783. {...formItemLayout}
  784. label="任务名称"
  785. >
  786. <span>{this.state.taskName}</span>
  787. </FormItem>
  788. <FormItem
  789. className="half-item"
  790. {...formItemLayout}
  791. label="任务状态"
  792. >
  793. <span>{getTaskStatus(this.state.taskStatus)}</span>
  794. </FormItem>
  795. <FormItem
  796. className="half-item"
  797. {...formItemLayout}
  798. label="任务类别"
  799. >
  800. <span>{this.state.cname}</span>
  801. </FormItem>
  802. <FormItem
  803. className="half-item"
  804. {...formItemLayout}
  805. label="证书编号"
  806. >
  807. <span>{this.state.certificateNumber}</span>
  808. </FormItem>
  809. </div>
  810. {/*{this.state.outsource === 1 ? (*/}
  811. {/* <div className="clearfix">*/}
  812. {/* <h3 className="sub-title">外包信息</h3>*/}
  813. {/* <FormItem*/}
  814. {/* className="half-item"*/}
  815. {/* {...formItemLayout}*/}
  816. {/* label="外包公司"*/}
  817. {/* >*/}
  818. {/* <span>{this.state.outsourceName}</span>*/}
  819. {/* </FormItem>*/}
  820. {/* <FormItem*/}
  821. {/* className="half-item"*/}
  822. {/* {...formItemLayout}*/}
  823. {/* label="外包成本(万元)"*/}
  824. {/* >*/}
  825. {/* <span>{this.state.outsourcePrice}</span>*/}
  826. {/* </FormItem>*/}
  827. {/* </div>*/}
  828. {/*) : (*/}
  829. {/* ''*/}
  830. {/*)}*/}
  831. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  832. <div className="clearfix">
  833. <h3 className="sub-title">联系信息</h3>
  834. <FormItem
  835. className="half-item"
  836. {...formItemLayout}
  837. label="客户名称"
  838. >
  839. <span>{this.state.userName}</span>
  840. </FormItem>
  841. <FormItem
  842. className="half-item"
  843. {...formItemLayout}
  844. label="企业法人"
  845. >
  846. <span>{this.state.legalPerson}</span>
  847. </FormItem>
  848. <FormItem
  849. className="half-item"
  850. {...formItemLayout}
  851. label="法人电话"
  852. >
  853. <span>{this.state.legalPersonTel}</span>
  854. </FormItem>
  855. <FormItem
  856. className="half-item"
  857. {...formItemLayout}
  858. label="客户联系人"
  859. >
  860. <span>{this.state.contacts}</span>
  861. </FormItem>
  862. <FormItem
  863. className="half-item"
  864. {...formItemLayout}
  865. label="联系人电话"
  866. >
  867. <span>{this.state.contactMobile}</span>
  868. </FormItem>
  869. <FormItem
  870. className="half-item"
  871. {...formItemLayout}
  872. label="企业地址"
  873. >
  874. <span>
  875. {getprovince(this.state.locationProvince)}/
  876. {getprovince(this.state.locationCity)}/
  877. {getprovince(this.state.locationArea)}
  878. </span>
  879. </FormItem>
  880. <FormItem
  881. className="half-item"
  882. {...formItemLayout}
  883. label=""
  884. ></FormItem>
  885. <FormItem className="half-item" {...formItemLayout}>
  886. <span style={{ paddingLeft: '12em' }}>
  887. {this.state.postalAddress}
  888. </span>
  889. </FormItem>
  890. </div>
  891. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  892. <div className="clearfix">
  893. <h3 className="sub-title">订单负责人信息</h3>
  894. <FormItem
  895. className="half-item"
  896. {...formItemLayout}
  897. label="负责人"
  898. >
  899. <span>
  900. {this.state.salesmanName +
  901. '(' +
  902. this.state.depName +
  903. ')'}
  904. </span>
  905. </FormItem>
  906. <FormItem
  907. className="half-item"
  908. {...formItemLayout}
  909. label="负责人电话"
  910. >
  911. <span>{this.state.salesmanMobile}</span>
  912. </FormItem>
  913. <FormItem
  914. className="half-item"
  915. {...formItemLayout}
  916. label="当前财务负责人"
  917. >
  918. <span>{this.state.nowFinance}</span>
  919. </FormItem>
  920. <FormItem
  921. className="half-item"
  922. {...formItemLayout}
  923. label="当前财务负责人电话"
  924. >
  925. <span>{this.state.nowFinanceMobile}</span>
  926. </FormItem>
  927. <FormItem
  928. className="half-item"
  929. {...formItemLayout}
  930. style={{ opacity: '.5' }}
  931. label="原负责人"
  932. >
  933. <span>{this.state.oldSalesmanName}</span>
  934. </FormItem>
  935. <FormItem
  936. className="half-item"
  937. {...formItemLayout}
  938. style={{ opacity: '.5' }}
  939. label="原负责人电话"
  940. >
  941. <span>{this.state.oldSalesmanMobile}</span>
  942. </FormItem>
  943. <FormItem
  944. className="half-item"
  945. {...formItemLayout}
  946. style={{ opacity: '.5' }}
  947. label="实际财务操作人"
  948. >
  949. <span>{this.state.financeName}</span>
  950. </FormItem>
  951. <FormItem
  952. className="half-item"
  953. {...formItemLayout}
  954. style={{ opacity: '.5' }}
  955. label="实际财务操作人电话"
  956. >
  957. <span>{this.state.financeMobile}</span>
  958. </FormItem>
  959. </div>
  960. <div className="clearfix">
  961. <h3 className="sub-title">申报系统账户信息</h3>
  962. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  963. <FormItem
  964. className="half-item"
  965. {...formItemLayout}
  966. label="用户名"
  967. >
  968. <span>{this.state.declareUser ? '****' : ''}</span>
  969. </FormItem>
  970. <FormItem
  971. className="half-item"
  972. {...formItemLayout}
  973. label="密码"
  974. >
  975. <span>{this.state.declarePwd ? '****' : ''}</span>
  976. </FormItem>
  977. </div>
  978. <div className="clearfix">
  979. <h3 className="sub-title">项目申报进度</h3>
  980. <FormItem
  981. className="half-item"
  982. {...formItemLayout}
  983. label="申报批次"
  984. >
  985. <span>{this.state.declarationBatch}</span>
  986. </FormItem>
  987. <FormItem
  988. className="half-item"
  989. {...formItemLayout}
  990. label="启动时间"
  991. >
  992. <span>{this.state.startDate}</span>
  993. </FormItem>
  994. <FormItem
  995. className="half-item"
  996. {...formItemLayout}
  997. label="完成时间"
  998. >
  999. <span>{this.state.endDate}</span>
  1000. </FormItem>
  1001. <FormItem
  1002. className="half-item"
  1003. {...formItemLayout}
  1004. label="受理时间"
  1005. >
  1006. <span>{this.state.acceptDate}</span>
  1007. </FormItem>
  1008. <FormItem
  1009. className="half-item"
  1010. {...formItemLayout}
  1011. label="评审时间"
  1012. >
  1013. <span>{this.state.reviewDate}</span>
  1014. </FormItem>
  1015. <FormItem
  1016. className="half-item"
  1017. {...formItemLayout}
  1018. label="公示时间"
  1019. >
  1020. <span>{this.state.publicityDate}</span>
  1021. </FormItem>
  1022. <FormItem
  1023. className="half-item"
  1024. {...formItemLayout}
  1025. label="发证时间"
  1026. >
  1027. <span>{this.state.licenceDate}</span>
  1028. </FormItem>
  1029. <FormItem
  1030. className="half-item"
  1031. {...formItemLayout}
  1032. label="立项金额(万元)"
  1033. >
  1034. <span>{this.state.setUpAmount}</span>
  1035. </FormItem>
  1036. <FormItem
  1037. className="half-item"
  1038. {...formItemLayout}
  1039. label="是否到款"
  1040. >
  1041. <span>
  1042. {this.state.arrivalMoney ? '已到企业' : '未到企业'}
  1043. </span>
  1044. </FormItem>
  1045. </div>
  1046. <div className="clearfix">
  1047. <FormItem
  1048. labelCol={{ span: 3 }}
  1049. wrapperCol={{ span: 18 }}
  1050. label="附件"
  1051. >
  1052. {/*<Upload*/}
  1053. {/* className="demandDetailShow-upload"*/}
  1054. {/* listType="picture-card"*/}
  1055. {/* fileList={this.state.attachmentUrl}*/}
  1056. {/* onPreview={(file) => {*/}
  1057. {/* this.setState({*/}
  1058. {/* previewImage: file.url || file.thumbUrl,*/}
  1059. {/* previewVisible: true,*/}
  1060. {/* })*/}
  1061. {/* }}*/}
  1062. {/*/>*/}
  1063. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  1064. <ImgList fileList={this.state.attachmentUrl} ItemWidth={'96px'}/>
  1065. </div>
  1066. <Modal
  1067. maskClosable={false}
  1068. footer={null}
  1069. visible={this.state.previewVisible}
  1070. onCancel={() => {
  1071. this.setState({ previewVisible: false })
  1072. }}
  1073. >
  1074. <img
  1075. alt=""
  1076. style={{ width: '100%' }}
  1077. src={this.state.previewImage || ''}
  1078. />
  1079. </Modal>
  1080. </FormItem>
  1081. </div>
  1082. <div className="clearfix">
  1083. <FormItem
  1084. labelCol={{ span: 3 }}
  1085. wrapperCol={{ span: 16 }}
  1086. label="备注"
  1087. >
  1088. <span>{this.state.taskComment}</span>
  1089. </FormItem>
  1090. </div>
  1091. <div>
  1092. <h3 className="sub-title">项目业务</h3>
  1093. {/* {this.state.processStatus == 0 ? (
  1094. <Button
  1095. type="primary"
  1096. onClick={this.addDetailed}
  1097. style={{
  1098. float: "right",
  1099. marginRight: "50px",
  1100. marginBottom: "15px"
  1101. }}
  1102. >
  1103. 添加项目明细
  1104. </Button>
  1105. ) : (
  1106. ""
  1107. )} */}
  1108. </div>
  1109. <div className="patent-table">
  1110. <Spin spinning={this.state.loading}>
  1111. <Table
  1112. columns={this.state.columnsX}
  1113. dataSource={this.state.dataSourceX}
  1114. pagination={this.state.paginations}
  1115. onRowClick={this.tableRowClickX}
  1116. bordered
  1117. size="small"
  1118. />
  1119. </Spin>
  1120. </div>
  1121. </div>
  1122. </Spin>
  1123. </Form>
  1124. </TabPane>
  1125. {this.props.record && this.props.record.outsource == 1 ? (
  1126. <TabPane tab="外包审核信息" key="2">
  1127. <Spin spinning={this.state.loading}>
  1128. <div>
  1129. <div className="clearfix">
  1130. <FormItem
  1131. className="half-item"
  1132. {...formItemLayout}
  1133. label="外包公司"
  1134. >
  1135. <span>{this.state.companyName}</span>
  1136. </FormItem>
  1137. </div>
  1138. <div className="clearfix">
  1139. <FormItem
  1140. className="half-item"
  1141. {...formItemLayout}
  1142. label="单价(万元)"
  1143. >
  1144. <span>{this.state.unitPrice}</span>
  1145. </FormItem>
  1146. </div>
  1147. <div className="clearfix">
  1148. <FormItem
  1149. className="half-item"
  1150. {...formItemLayout}
  1151. label="数量(个)"
  1152. >
  1153. <span>{this.state.unitNumber}</span>
  1154. </FormItem>
  1155. </div>
  1156. <div className="clearfix">
  1157. <FormItem
  1158. className="half-item"
  1159. {...formItemLayout}
  1160. label="总金额(万元)"
  1161. >
  1162. <span>{this.state.amount}</span>
  1163. </FormItem>
  1164. </div>
  1165. <div className="clearfix">
  1166. <FormItem
  1167. className="half-item"
  1168. {...formItemLayout}
  1169. label="备注"
  1170. >
  1171. <span>{this.state.outsourceRemarks}</span>
  1172. </FormItem>
  1173. </div>
  1174. <div className="clearfix">
  1175. <FormItem
  1176. labelCol={{ span: 4 }}
  1177. wrapperCol={{ span: 18 }}
  1178. label="合同/协议扫描件"
  1179. >
  1180. {/*<Upload*/}
  1181. {/* className="demandDetailShow-upload"*/}
  1182. {/* listType="picture-card"*/}
  1183. {/* fileList={this.state.pictureUrl}*/}
  1184. {/* onPreview={(file) => {*/}
  1185. {/* this.setState({*/}
  1186. {/* previewImage: file.url || file.thumbUrl,*/}
  1187. {/* previewVisible: true,*/}
  1188. {/* })*/}
  1189. {/* }}*/}
  1190. {/*/>*/}
  1191. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  1192. <ImgList fileList={this.state.pictureUrl} ItemWidth={'96px'}/>
  1193. </div>
  1194. <Modal
  1195. maskClosable={false}
  1196. footer={null}
  1197. visible={this.state.previewVisible}
  1198. onCancel={() => {
  1199. this.setState({ previewVisible: false })
  1200. }}
  1201. >
  1202. <img
  1203. alt=""
  1204. style={{ width: '100%' }}
  1205. src={this.state.previewImage || ''}
  1206. />
  1207. </Modal>
  1208. </FormItem>
  1209. </div>
  1210. </div>
  1211. <div className="clearfix">
  1212. <hr className="division" />
  1213. <div
  1214. className="clearfix"
  1215. style={{
  1216. display: this.state.refundStatus == 0 ? 'none' : 'block',
  1217. }}
  1218. >
  1219. <FormItem
  1220. className="half-item"
  1221. {...formItemLayout}
  1222. label="审核意见"
  1223. >
  1224. <span>{this.state.remarks}</span>
  1225. </FormItem>
  1226. </div>
  1227. <div className="clearfix">
  1228. <FormItem
  1229. className="half-item"
  1230. {...formItemLayout}
  1231. label="审核结果"
  1232. >
  1233. <span>{getRefundStatus(this.state.refundStatus)}</span>
  1234. </FormItem>
  1235. </div>
  1236. <div
  1237. className="clearfix"
  1238. style={{
  1239. display: this.state.refundStatus == 0 ? 'none' : 'block',
  1240. }}
  1241. >
  1242. <FormItem
  1243. className="half-item"
  1244. {...formItemLayout}
  1245. label="审核时间"
  1246. >
  1247. <span>{this.state.auditTimes}</span>
  1248. </FormItem>
  1249. </div>
  1250. </div>
  1251. </Spin>
  1252. </TabPane>
  1253. ) : (
  1254. ''
  1255. )}
  1256. {/*{this.props.record && this.props.record.outsource == 1 ? (*/}
  1257. {/* <TabPane tab="外包公司信息" key="3">*/}
  1258. {/* <div className="patent-table" style={{ marginTop: '10px' }}>*/}
  1259. {/* <Spin spinning={this.state.loading}>*/}
  1260. {/* <Table*/}
  1261. {/* columns={this.state.companyColumns}*/}
  1262. {/* dataSource={this.state.companys}*/}
  1263. {/* scroll={{ x: 300, y: 0 }}*/}
  1264. {/* bordered*/}
  1265. {/* size="small"*/}
  1266. {/* expandedRowRender={(record) => {*/}
  1267. {/* return <p>{record.remarks}</p>*/}
  1268. {/* }}*/}
  1269. {/* pagination={false}*/}
  1270. {/* />*/}
  1271. {/* </Spin>*/}
  1272. {/* </div>*/}
  1273. {/* </TabPane>*/}
  1274. {/*) : (*/}
  1275. {/* ''*/}
  1276. {/*)}*/}
  1277. </Tabs>
  1278. <Modal
  1279. width="800px"
  1280. visible={this.state.visibleA}
  1281. onCancel={this.visitCancelA}
  1282. title="操作日志"
  1283. footer=""
  1284. className="admin-desc-content"
  1285. >
  1286. <div className="patent-table patent-table-center">
  1287. <Spin spinning={this.state.loading}>
  1288. <Table
  1289. columns={this.state.columnsA}
  1290. dataSource={this.state.dataSourceA}
  1291. pagination={false}
  1292. bordered
  1293. size="small"
  1294. />
  1295. </Spin>
  1296. </div>
  1297. </Modal>
  1298. </Modal>
  1299. )
  1300. },
  1301. })
  1302. export default project