project.jsx 44 KB

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