projectOverview.js 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066
  1. import React,{Component} from 'react';
  2. import {
  3. Button,
  4. Cascader,
  5. DatePicker,
  6. Form,
  7. Input,
  8. message,
  9. Modal,
  10. Radio,
  11. Select,
  12. Spin,
  13. Table,
  14. Tabs,
  15. Tag,
  16. Upload
  17. } from "antd";
  18. import Picture from '@/manageCenter/publicComponent/picture'
  19. import {
  20. getProcessStatus,
  21. getApproval,
  22. getTaskStatus,
  23. getLiquidationStatus,
  24. splitUrl,
  25. getProjectStatus,
  26. getboutique,
  27. getprovince,
  28. ShowModal,
  29. getRefundStatus,
  30. } from '@/tools'
  31. import { taskStatus, projectStatus, cuiJieDian } from '@/dataDic.js'
  32. import { areaSelect } from '@/NewDicProvinceList'
  33. import '@/manageCenter/financialManage/distribute/public.less'
  34. import '@/manageCenter/financialManage/distribute/shouKuan.less'
  35. import OrderRiZi from '@/orderRiZi.jsx'
  36. import moment from "moment";
  37. import $ from "jquery";
  38. const FormItem = Form.Item
  39. const { Option } = Select
  40. const formItemLayout = {
  41. labelCol: { span: 8 },
  42. wrapperCol: { span: 14 },
  43. }
  44. const utils = {
  45. getSatisfaction: function (num) {
  46. switch (num) {
  47. case 0:
  48. return '未收回'
  49. case 1:
  50. return '已收回'
  51. default:
  52. return '其它'
  53. }
  54. },
  55. getChargeback: function (num) {
  56. switch (num) {
  57. case 0:
  58. return '已完成'
  59. case 1:
  60. return '未完成'
  61. default:
  62. return '其它'
  63. }
  64. },
  65. }
  66. class projectOverview extends Component{
  67. constructor(props) {
  68. super(props);
  69. this.state={
  70. loading: false,
  71. projectStatus: props.projectStatus,
  72. pagination: {
  73. defaultCurrent: 1,
  74. defaultPageSize: 10,
  75. showQuickJumper: true,
  76. pageSize: 10,
  77. onChange: function (page) {
  78. this.loadData(page)
  79. }.bind(this),
  80. showTotal: function (total) {
  81. return '共' + total + '条数据'
  82. },
  83. },
  84. attachmentUrl: [],
  85. paginations: false,
  86. columnsX: [
  87. {
  88. title: '业务项目名称',
  89. dataIndex: 'commodityName',
  90. key: 'commodityName',
  91. },
  92. {
  93. title: '项目类别',
  94. dataIndex: 'cname',
  95. key: 'cname',
  96. },
  97. {
  98. title: '项目数量',
  99. dataIndex: 'commodityQuantity',
  100. key: 'commodityQuantity',
  101. render: (text, record) => {
  102. if (record.splitStatus == 1) {
  103. return (
  104. <span>
  105. {text}{' '}
  106. <Tag
  107. color="#108ee9"
  108. onClick={(e) => {
  109. e.stopPropagation()
  110. this.showRes(record)
  111. }}
  112. >
  113. 已拆
  114. </Tag>
  115. </span>
  116. )
  117. } else {
  118. return text
  119. }
  120. },
  121. },
  122. {
  123. title: '金额(万元)',
  124. dataIndex: 'commodityPrice',
  125. key: 'commodityPrice',
  126. },
  127. {
  128. title: '负责人',
  129. dataIndex: 'contacts',
  130. key: 'contacts',
  131. },
  132. {
  133. title: '负责人电话',
  134. dataIndex: 'contactsMobile',
  135. key: 'contactsMobile',
  136. },
  137. {
  138. title: '主要项目',
  139. dataIndex: 'main',
  140. key: 'main',
  141. render: (text) => {
  142. return text ? '是' : '否'
  143. },
  144. },
  145. {
  146. title: '项目说明',
  147. dataIndex: 'taskComment',
  148. key: 'taskComment',
  149. render: (text) => {
  150. return text && text.length > 8 ? text.substr(0, 8) + '…' : text
  151. },
  152. },
  153. ],
  154. columnsA: [
  155. {
  156. title: '流程',
  157. dataIndex: 'content',
  158. key: 'content',
  159. align: 'center',
  160. },
  161. {
  162. title: '操作人',
  163. dataIndex: 'aName',
  164. key: 'aName',
  165. align: 'center',
  166. },
  167. {
  168. title: '时间',
  169. dataIndex: 'createTimes',
  170. key: 'createTimes',
  171. align: 'center',
  172. },
  173. ],
  174. editFw: {},
  175. }
  176. this.visitCancelA = this.visitCancelA.bind(this);
  177. this.caozuorizhi = this.caozuorizhi.bind(this);
  178. this.tableRowClickX = this.tableRowClickX.bind(this);
  179. }
  180. //关闭操作工时
  181. visitCancelA() {
  182. this.setState({
  183. visibleA: false,
  184. })
  185. }
  186. componentDidMount() {
  187. this.xiangqing(this.props.tid);
  188. this.loadData();
  189. }
  190. caozuorizhi() {
  191. this.setState({
  192. visibleA: true,
  193. })
  194. $.ajax({
  195. method: 'get',
  196. dataType: 'json',
  197. crossDomain: false,
  198. url: globalConfig.context + '/api/admin/orderProject/TaskLogList',
  199. data: {
  200. id: this.state.id,
  201. },
  202. success: function (data) {
  203. let theArr = []
  204. if (data.error.length || data.data.list == '') {
  205. if (data.error && data.error.length) {
  206. message.warning(data.error[0].message)
  207. }
  208. } else {
  209. for (let i = 0; i < data.data.length; i++) {
  210. let thisdata = data.data[i]
  211. theArr.push({
  212. key: i,
  213. id: thisdata.id, //日志ID
  214. content: thisdata.content, //流程
  215. taskId: thisdata.taskId, //项目ID
  216. aName: thisdata.aName, //负责人
  217. createTimes: thisdata.createTimes, //时间
  218. })
  219. }
  220. }
  221. this.setState({
  222. dataSourceA: theArr,
  223. })
  224. }.bind(this),
  225. }).always(
  226. function () {
  227. this.setState({
  228. loading: false,
  229. })
  230. }.bind(this)
  231. )
  232. }
  233. //订单详情
  234. xiangqing(id) {
  235. $.ajax({
  236. method: 'get',
  237. dataType: 'json',
  238. crossDomain: false,
  239. url: globalConfig.context + '/api/admin/orderProject/orderTaskDetail',
  240. data: {
  241. id: id,
  242. },
  243. success: function (data) {
  244. let thisdata = data.data
  245. if (data.error.length || data.data.list == '') {
  246. if (data.error && data.error.length) {
  247. message.warning(data.error[0].message)
  248. }
  249. } else {
  250. this.setState({
  251. id: thisdata.id, //ID
  252. orderNo: thisdata.orderNo, //订单编号
  253. userName: thisdata.userName, //客户名称
  254. taskName: thisdata.taskName, //项目名称
  255. cname: thisdata.cname, //项目品类
  256. contractNo: thisdata.contractNo, //合同编号
  257. projectStatus: thisdata.projectStatus.toString(), //项目状态
  258. taskStatus: thisdata.taskStatus.toString(), //项目状态
  259. taskDate: thisdata.taskDate, //分配时间
  260. taskComment: thisdata.taskComment, //说明
  261. attachmentUrl: thisdata.attachmentUrl
  262. ? splitUrl(
  263. thisdata.attachmentUrl,
  264. ',',
  265. globalConfig.avatarHost + '/upload'
  266. )
  267. : [], //图片地址
  268. salesmanName: thisdata.salesmanName, //订单负责人
  269. startDate: thisdata.startDate, //启动日期
  270. endDate: thisdata.endDate, //结束日期
  271. acceptDate: thisdata.acceptDate, //受理日期
  272. reviewDate: thisdata.reviewDate, //评审日期
  273. publicityDate: thisdata.publicityDate, //公示日期
  274. licenceDate: thisdata.licenceDate, //发证日期
  275. contacts: thisdata.contacts, //联系人
  276. contactMobile: thisdata.contactMobile, //联系人电话
  277. legalPerson: thisdata.legalPerson, //法人
  278. legalPersonTel: thisdata.legalPersonTel, //法人电话
  279. certificateNumber: thisdata.certificateNumber, //证书编号
  280. status: thisdata.status, //状态
  281. formRetrieve: thisdata.formRetrieve, //满意度表格
  282. taskRefund: thisdata.taskRefund, //退单
  283. refundContent: thisdata.refundContent, //退单信息
  284. retrieveContent: thisdata.retrieveContent, //回收信息
  285. arrivalMoney: thisdata.arrivalMoney, //是否到款
  286. setUpAmount: thisdata.setUpAmount, //立项金额
  287. declareUser: thisdata.declareUser, //账号
  288. declarePwd: thisdata.declarePwd, //密码
  289. outsourceName: thisdata.outsourceName, //外包公司
  290. outsourcePrice: thisdata.outsourcePrice, //外包价格
  291. declarationBatch: thisdata.declarationBatch,
  292. })
  293. this.loadData(thisdata.orderNo);
  294. this.xiangqings(thisdata.orderNo);
  295. this.xiangmu(thisdata.orderNo)
  296. }
  297. }.bind(this),
  298. }).always(
  299. function () {
  300. this.setState({
  301. loading: false,
  302. })
  303. }.bind(this)
  304. )
  305. }
  306. loadData(pageNo) {
  307. this.state.data = []
  308. this.setState({
  309. page: pageNo,
  310. loading: true,
  311. })
  312. $.ajax({
  313. method: 'get',
  314. dataType: 'json',
  315. crossDomain: false,
  316. url: globalConfig.context + '/api/admin/orderProject/orderTaskList',
  317. data: {
  318. // pageNo: pageNo || 1,
  319. pageSize: this.state.pagination.pageSize,
  320. specially: 0, //个人
  321. name: this.state.nameSearch, //客户名称
  322. depId: this.state.departmenttSearch, //订单部门
  323. orderNo: this.state.orderNoSearch, //订单编号
  324. contractNo: this.state.contractNoSearch, //合同编号
  325. taskId: this.state.taskNoSearch, //项目编号
  326. taskStatus: this.state.taskStatuSearch, //项目状态
  327. projectStatus: this.state.projectStatusSearch, //项目状态
  328. adminName: this.state.adminName, //项目受理人
  329. approval: this.state.approvalSearch, //特批状态搜索
  330. outsourceStatus:
  331. this.state.outsourceStatusSearch >= 999
  332. ? undefined
  333. : this.state.outsourceStatusSearch, //外包状态搜索
  334. },
  335. success: function (data) {
  336. ShowModal(this)
  337. let theArr = []
  338. if (!data.data || !data.data.list) {
  339. if (data.error && data.error.length) {
  340. message.warning(data.error[0].message)
  341. }
  342. } else {
  343. for (let i = 0; i < data.data.list.length; i++) {
  344. let thisdata = data.data.list[i]
  345. theArr.push({
  346. key: i,
  347. orderNo: thisdata.orderNo, //订单编号
  348. id: thisdata.id, //项目ID
  349. taskName: thisdata.taskName, //名称
  350. cname: thisdata.cname, //项目品类
  351. receiverName: thisdata.receiverName, //受理人
  352. projectStatus: thisdata.projectStatus, //项目状态
  353. taskStatus: thisdata.taskStatus, //项目状态
  354. taskDate: thisdata.taskDate, //分配时间
  355. userName:
  356. thisdata.taskName.substring(0, 5) === '软件著作权'
  357. ? thisdata.userName +
  358. '(' +
  359. thisdata.commodityQuantity.toString() +
  360. '/' +
  361. thisdata.alreadyNumber +
  362. ')'
  363. : thisdata.userName, //用户名
  364. depName: thisdata.depName, //部门名称
  365. commodityQuantity: thisdata.commodityQuantity, //项目数量
  366. hours: thisdata.hours,
  367. contractNo: thisdata.contractNo,
  368. approval: thisdata.approval, //特批状态
  369. outsourceStatus: thisdata.outsourceStatus, //外包审核状态
  370. splitStatus: thisdata.splitStatus, //是否为子项目 2是 1主项目
  371. splitSuper: thisdata.splitSuper,
  372. splitId: thisdata.splitId,
  373. })
  374. }
  375. }
  376. this.state.pagination.current = data.data.pageNo
  377. this.state.pagination.total = data.data.totalCount
  378. if (data.data && data.data.list && !data.data.list.length) {
  379. this.state.pagination.current = 0
  380. this.state.pagination.total = 0
  381. }
  382. this.setState({
  383. dataSource: theArr,
  384. pagination: this.state.pagination,
  385. })
  386. }.bind(this),
  387. }).always(
  388. function () {
  389. this.setState({
  390. loading: false,
  391. })
  392. }.bind(this)
  393. )
  394. }
  395. //订单详情
  396. xiangqings(orderNos) {
  397. $.ajax({
  398. method: 'get',
  399. dataType: 'json',
  400. crossDomain: false,
  401. url: globalConfig.context + '/api/admin/newOrder/getOrderNewDetail',
  402. data: {
  403. orderNo: orderNos,
  404. },
  405. success: function (data) {
  406. let thisdata = data.data
  407. let ProvinceCityArr = []
  408. let ProvinceS = thisdata.locationProvince //省
  409. let citys = thisdata.locationCity //市
  410. let Areas = thisdata.locationArea //区
  411. ProvinceCityArr.push(ProvinceS, citys, Areas)
  412. if (data.error.length || data.data.list == '') {
  413. if (data.error && data.error.length) {
  414. message.warning(data.error[0].message)
  415. }
  416. } else {
  417. this.setState({
  418. processStatus: thisdata.processStatus, //流程状态
  419. liquidationStatus: thisdata.liquidationStatus, //结算状态
  420. approval: thisdata.approval, //特批状态
  421. orderRemarks: thisdata.orderRemarks, //订单留言
  422. salesmanName: thisdata.salesmanName, //营销员名称
  423. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  424. financeName: thisdata.financeName, //财务名称
  425. financeMobile: thisdata.financeMobile, //财务电话
  426. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  427. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  428. nowFinance: thisdata.nowFinance, //财务名称
  429. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  430. depName: thisdata.depName, //订单部门
  431. ProvinceCity: ProvinceCityArr[0] === null ? [] : ProvinceCityArr,
  432. postalAddress: thisdata.postalAddress, //详细地址
  433. })
  434. }
  435. }.bind(this),
  436. }).always(
  437. function () {
  438. this.setState({
  439. loading: false,
  440. })
  441. }.bind(this)
  442. )
  443. }
  444. xiangmu(orderNos) {
  445. $.ajax({
  446. method: 'get',
  447. dataType: 'json',
  448. crossDomain: false,
  449. url: globalConfig.context + '/api/admin/newOrder/getOrderTask',
  450. data: {
  451. orderNo: orderNos,
  452. },
  453. success: function (data) {
  454. let theArr = []
  455. if (data.error.length || data.data.list == '') {
  456. if (data.error && data.error.length) {
  457. message.warning(data.error[0].message)
  458. }
  459. } else {
  460. for (let i = 0; i < data.data.length; i++) {
  461. let thisdata = data.data[i]
  462. localStorage.setItem('cSort', thisdata.cSort)
  463. thisdata.key = i;
  464. theArr.push(thisdata)
  465. }
  466. }
  467. this.setState({
  468. dataSourceX: theArr,
  469. type: theArr[0].type,
  470. cSort: theArr[0].cSort,
  471. })
  472. }.bind(this),
  473. }).always(
  474. function () {
  475. this.setState({
  476. loading: false,
  477. })
  478. }.bind(this)
  479. )
  480. }
  481. tableRowClickX(record) {
  482. this.setState({
  483. editFw:record,
  484. addnextVisible: true,
  485. })
  486. }
  487. render() {
  488. const {editFw} = this.state;
  489. return(
  490. <Form
  491. layout="horizontal"
  492. onSubmit={this.handleSubmit}
  493. id="demand-form"
  494. style={{ paddingBottom: '0px' }}
  495. >
  496. <Spin spinning={this.state.loading}>
  497. <div className="clearfix">
  498. <div className="clearfix">
  499. <FormItem
  500. className="half-item"
  501. {...formItemLayout}
  502. label="当前项目情况"
  503. >
  504. <span>
  505. {
  506. this.state.status === 0 ? '未开始':
  507. this.state.status === 1 ? '进行中':
  508. this.state.status === 2 ? '已暂停':
  509. this.state.status === 3 ? '已驳回(专利、软著项目编写)':
  510. this.state.status === 4 ? '已完成':
  511. this.state.status === 5 ? '项目已完成 已退单':
  512. this.state.status === 6 ? '项目未完成 已退单': ''
  513. }
  514. </span>
  515. <Button
  516. type="primary"
  517. size="small"
  518. style={{ marginTop: '5px', position: 'absolute' }}
  519. onClick={this.caozuorizhi}
  520. >
  521. 操作日志
  522. </Button>
  523. </FormItem>
  524. <FormItem
  525. className="half-item"
  526. {...formItemLayout}
  527. label="合同编号"
  528. >
  529. <span>{this.state.contractNo}</span>
  530. </FormItem>
  531. </div>
  532. <div className="clearfix">
  533. <FormItem
  534. className="half-item"
  535. {...formItemLayout}
  536. label="项目状态"
  537. >
  538. {/* <span>{getProcessStatus(this.state.projectStatus)}</span> */}
  539. <span>{getProjectStatus(this.state.projectStatus)}</span>
  540. </FormItem>
  541. <FormItem
  542. className="half-item"
  543. {...formItemLayout}
  544. label="是否特批"
  545. >
  546. <span>{getApproval(this.state.approval)}</span>
  547. </FormItem>
  548. <FormItem
  549. className="half-item"
  550. {...formItemLayout}
  551. label="结算状态"
  552. >
  553. <span>
  554. {getLiquidationStatus(this.state.liquidationStatus)}
  555. </span>
  556. </FormItem>
  557. <FormItem
  558. className="half-item"
  559. {...formItemLayout}
  560. label="流程状态"
  561. >
  562. <span>{getProcessStatus(this.state.processStatus)}</span>
  563. </FormItem>
  564. <FormItem
  565. className="half-item"
  566. {...formItemLayout}
  567. label="订单编号"
  568. >
  569. <span>{this.state.orderNo}</span>
  570. </FormItem>
  571. <FormItem
  572. className="half-item"
  573. {...formItemLayout}
  574. label="是否外包"
  575. >
  576. <span>{this.state.outsource == 0 ? '否' : '是'}</span>
  577. </FormItem>
  578. </div>
  579. <div className="clearfix">
  580. <FormItem
  581. className="half-item"
  582. {...formItemLayout}
  583. label="满意度表格"
  584. >
  585. <span>
  586. {utils.getSatisfaction(this.state.formRetrieve)}
  587. </span>
  588. </FormItem>
  589. <FormItem
  590. className="half-item"
  591. {...formItemLayout}
  592. label="(满意度)备注"
  593. >
  594. <span>{this.state.retrieveContent}</span>
  595. </FormItem>
  596. {/*<FormItem*/}
  597. {/* className="half-item"*/}
  598. {/* {...formItemLayout}*/}
  599. {/* label="退单"*/}
  600. {/*>*/}
  601. {/* <span>{utils.getChargeback(this.state.taskRefund)}</span>*/}
  602. {/*</FormItem>*/}
  603. </div>
  604. <div className="clearfix">
  605. <div style={{
  606. paddingLeft: '8%',
  607. }}>
  608. <div style={{color:'#000',fontWeight:500}}>
  609. 特别说明
  610. <span style={{color: '#58a3ff',}}>(针对项目的特殊情况说明)</span>
  611. </div>
  612. <div>{this.state.specialExplain}</div>
  613. </div>
  614. {
  615. // <FormItem
  616. // className="half-item"
  617. // {...formItemLayout}
  618. // label="(退单)备注"
  619. // >
  620. // <span>{this.state.refundContent}</span>
  621. // </FormItem>
  622. }
  623. </div>
  624. <div className="clearfix">
  625. <h3 className="sub-title">任务信息</h3>
  626. <FormItem
  627. className="half-item"
  628. {...formItemLayout}
  629. label="任务编号"
  630. >
  631. <span>{this.state.id}</span>
  632. </FormItem>
  633. <FormItem
  634. className="half-item"
  635. {...formItemLayout}
  636. label="任务名称"
  637. >
  638. <span>{this.state.taskName}</span>
  639. </FormItem>
  640. <FormItem
  641. className="half-item"
  642. {...formItemLayout}
  643. label="任务状态"
  644. >
  645. <span>{getTaskStatus(this.state.taskStatus)}</span>
  646. </FormItem>
  647. <FormItem
  648. className="half-item"
  649. {...formItemLayout}
  650. label="任务类别"
  651. >
  652. <span>{this.state.cname}</span>
  653. </FormItem>
  654. <FormItem
  655. className="half-item"
  656. {...formItemLayout}
  657. label="证书编号"
  658. >
  659. <span>{this.state.certificateNumber}</span>
  660. </FormItem>
  661. </div>
  662. {/*{this.state.outsource === 1 ? (*/}
  663. {/* <div className="clearfix">*/}
  664. {/* <h3 className="sub-title">外包信息</h3>*/}
  665. {/* <FormItem*/}
  666. {/* className="half-item"*/}
  667. {/* {...formItemLayout}*/}
  668. {/* label="外包公司"*/}
  669. {/* >*/}
  670. {/* <span>{this.state.outsourceName}</span>*/}
  671. {/* </FormItem>*/}
  672. {/* <FormItem*/}
  673. {/* className="half-item"*/}
  674. {/* {...formItemLayout}*/}
  675. {/* label="外包成本(万元)"*/}
  676. {/* >*/}
  677. {/* <span>{this.state.outsourcePrice}</span>*/}
  678. {/* </FormItem>*/}
  679. {/* </div>*/}
  680. {/*) : (*/}
  681. {/* ''*/}
  682. {/*)}*/}
  683. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  684. <div className="clearfix">
  685. <h3 className="sub-title">联系信息</h3>
  686. <FormItem
  687. className="half-item"
  688. {...formItemLayout}
  689. label="客户名称"
  690. >
  691. <span>{this.state.userName}</span>
  692. </FormItem>
  693. <FormItem
  694. className="half-item"
  695. {...formItemLayout}
  696. label="企业法人"
  697. >
  698. <span>{this.state.legalPerson}</span>
  699. </FormItem>
  700. <FormItem
  701. className="half-item"
  702. {...formItemLayout}
  703. label="法人电话"
  704. >
  705. <span>{this.state.legalPersonTel}</span>
  706. </FormItem>
  707. <FormItem
  708. className="half-item"
  709. {...formItemLayout}
  710. label="客户联系人"
  711. >
  712. <span>{this.state.contacts}</span>
  713. </FormItem>
  714. <FormItem
  715. className="half-item"
  716. {...formItemLayout}
  717. label="联系人电话"
  718. >
  719. <span>{this.state.contactMobile}</span>
  720. </FormItem>
  721. <FormItem
  722. className="half-item"
  723. {...formItemLayout}
  724. label="企业地址"
  725. >
  726. <span>
  727. {getprovince(this.state.locationProvince)}/
  728. {getprovince(this.state.locationCity)}/
  729. {getprovince(this.state.locationArea)}
  730. </span>
  731. </FormItem>
  732. <FormItem
  733. className="half-item"
  734. {...formItemLayout}
  735. label=""
  736. ></FormItem>
  737. <FormItem className="half-item" {...formItemLayout}>
  738. <span style={{ paddingLeft: '12em' }}>
  739. {this.state.postalAddress}
  740. </span>
  741. </FormItem>
  742. </div>
  743. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  744. <div className="clearfix">
  745. <h3 className="sub-title">订单负责人信息</h3>
  746. <FormItem
  747. className="half-item"
  748. {...formItemLayout}
  749. label="负责人"
  750. >
  751. <span>
  752. {this.state.salesmanName +
  753. '(' +
  754. this.state.depName +
  755. ')'}
  756. </span>
  757. </FormItem>
  758. <FormItem
  759. className="half-item"
  760. {...formItemLayout}
  761. label="负责人电话"
  762. >
  763. <span>{this.state.salesmanMobile}</span>
  764. </FormItem>
  765. <FormItem
  766. className="half-item"
  767. {...formItemLayout}
  768. label="当前财务负责人"
  769. >
  770. <span>{this.state.nowFinance}</span>
  771. </FormItem>
  772. <FormItem
  773. className="half-item"
  774. {...formItemLayout}
  775. label="当前财务负责人电话"
  776. >
  777. <span>{this.state.nowFinanceMobile}</span>
  778. </FormItem>
  779. <FormItem
  780. className="half-item"
  781. {...formItemLayout}
  782. style={{ opacity: '.5' }}
  783. label="原负责人"
  784. >
  785. <span>{this.state.oldSalesmanName}</span>
  786. </FormItem>
  787. <FormItem
  788. className="half-item"
  789. {...formItemLayout}
  790. style={{ opacity: '.5' }}
  791. label="原负责人电话"
  792. >
  793. <span>{this.state.oldSalesmanMobile}</span>
  794. </FormItem>
  795. <FormItem
  796. className="half-item"
  797. {...formItemLayout}
  798. style={{ opacity: '.5' }}
  799. label="实际财务操作人"
  800. >
  801. <span>{this.state.financeName}</span>
  802. </FormItem>
  803. <FormItem
  804. className="half-item"
  805. {...formItemLayout}
  806. style={{ opacity: '.5' }}
  807. label="实际财务操作人电话"
  808. >
  809. <span>{this.state.financeMobile}</span>
  810. </FormItem>
  811. </div>
  812. <div className="clearfix">
  813. <h3 className="sub-title">申报系统账户信息</h3>
  814. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  815. <FormItem
  816. className="half-item"
  817. {...formItemLayout}
  818. label="用户名"
  819. >
  820. <span>{this.state.declareUser ? '****' : ''}</span>
  821. </FormItem>
  822. <FormItem
  823. className="half-item"
  824. {...formItemLayout}
  825. label="密码"
  826. >
  827. <span>{this.state.declarePwd ? '****' : ''}</span>
  828. </FormItem>
  829. </div>
  830. <div className="clearfix">
  831. <h3 className="sub-title">项目申报进度</h3>
  832. <FormItem
  833. className="half-item"
  834. {...formItemLayout}
  835. label="申报批次"
  836. >
  837. <span>{this.state.declarationBatch}</span>
  838. </FormItem>
  839. <FormItem
  840. className="half-item"
  841. {...formItemLayout}
  842. label="启动时间"
  843. >
  844. <span>{this.state.startDate}</span>
  845. </FormItem>
  846. <FormItem
  847. className="half-item"
  848. {...formItemLayout}
  849. label="完成时间"
  850. >
  851. <span>{this.state.endDate}</span>
  852. </FormItem>
  853. <FormItem
  854. className="half-item"
  855. {...formItemLayout}
  856. label="受理时间"
  857. >
  858. <span>{this.state.acceptDate}</span>
  859. </FormItem>
  860. <FormItem
  861. className="half-item"
  862. {...formItemLayout}
  863. label="评审时间"
  864. >
  865. <span>{this.state.reviewDate}</span>
  866. </FormItem>
  867. <FormItem
  868. className="half-item"
  869. {...formItemLayout}
  870. label="公示时间"
  871. >
  872. <span>{this.state.publicityDate}</span>
  873. </FormItem>
  874. <FormItem
  875. className="half-item"
  876. {...formItemLayout}
  877. label="发证时间"
  878. >
  879. <span>{this.state.licenceDate}</span>
  880. </FormItem>
  881. <FormItem
  882. className="half-item"
  883. {...formItemLayout}
  884. label="立项金额(万元)"
  885. >
  886. <span>{this.state.setUpAmount}</span>
  887. </FormItem>
  888. <FormItem
  889. className="half-item"
  890. {...formItemLayout}
  891. label="是否到款"
  892. >
  893. <span>
  894. {this.state.arrivalMoney ? '已到企业' : '未到企业'}
  895. </span>
  896. </FormItem>
  897. </div>
  898. <div className="clearfix">
  899. <FormItem
  900. labelCol={{ span: 3 }}
  901. wrapperCol={{ span: 18 }}
  902. label="附件"
  903. >
  904. <Upload
  905. className="demandDetailShow-upload"
  906. listType="picture-card"
  907. fileList={this.state.attachmentUrl}
  908. onPreview={(file) => {
  909. this.setState({
  910. previewImage: file.url || file.thumbUrl,
  911. previewVisible: true,
  912. })
  913. }}
  914. ></Upload>
  915. <Modal
  916. maskClosable={false}
  917. footer={null}
  918. visible={this.state.previewVisible}
  919. onCancel={() => {
  920. this.setState({ previewVisible: false })
  921. }}
  922. >
  923. <img
  924. alt=""
  925. style={{ width: '100%' }}
  926. src={this.state.previewImage || ''}
  927. />
  928. </Modal>
  929. </FormItem>
  930. </div>
  931. <div className="clearfix">
  932. <FormItem
  933. labelCol={{ span: 3 }}
  934. wrapperCol={{ span: 16 }}
  935. label="项目说明"
  936. >
  937. <span>{this.state.taskComment}</span>
  938. </FormItem>
  939. </div>
  940. <div>
  941. <h3 className="sub-title">项目业务</h3>
  942. {/* {this.state.processStatus == 0 ? (
  943. <Button
  944. type="primary"
  945. onClick={this.addDetailed}
  946. style={{
  947. float: "right",
  948. marginRight: "50px",
  949. marginBottom: "15px"
  950. }}
  951. >
  952. 添加项目明细
  953. </Button>
  954. ) : (
  955. ""
  956. )} */}
  957. </div>
  958. <div className="patent-table">
  959. <Spin spinning={this.state.loading}>
  960. <Table
  961. columns={this.state.columnsX}
  962. dataSource={this.state.dataSourceX}
  963. pagination={this.state.paginations}
  964. onRowClick={this.tableRowClickX}
  965. bordered
  966. size="small"
  967. />
  968. </Spin>
  969. </div>
  970. </div>
  971. </Spin>
  972. <Modal
  973. width="800px"
  974. visible={this.state.visibleA}
  975. onCancel={this.visitCancelA}
  976. title="操作日志"
  977. footer=""
  978. className="admin-desc-content"
  979. >
  980. <div className="patent-table patent-table-center">
  981. <Spin spinning={this.state.loading}>
  982. <Table
  983. columns={this.state.columnsA}
  984. dataSource={this.state.dataSourceA}
  985. pagination={false}
  986. bordered
  987. size="small"
  988. />
  989. </Spin>
  990. </div>
  991. </Modal>
  992. <Modal maskClosable={false} visible={this.state.addnextVisible} onCancel={()=>{
  993. this.setState({
  994. addnextVisible: false
  995. })
  996. }}
  997. width='550px'
  998. title='查看项目详细'
  999. footer=''
  1000. className="admin-desc-content">
  1001. <Form layout="horizontal" id="demand-form">
  1002. <Spin spinning={this.state.loading}>
  1003. <div className="clearfix">
  1004. <FormItem
  1005. className="half-item"
  1006. {...formItemLayout}
  1007. label="项目名称"
  1008. >
  1009. <span>{editFw.commodityName}</span>
  1010. </FormItem>
  1011. <FormItem
  1012. className="half-item"
  1013. {...formItemLayout}
  1014. label="项目数量"
  1015. >
  1016. <span>{editFw.commodityQuantity}</span>
  1017. </FormItem>
  1018. <FormItem
  1019. className="half-item"
  1020. {...formItemLayout}
  1021. label="金额(万元)"
  1022. >
  1023. <span>{editFw.commodityPrice}</span>
  1024. </FormItem>
  1025. <FormItem
  1026. className="half-item"
  1027. {...formItemLayout}
  1028. label="主要项目"
  1029. >
  1030. <span>{editFw.main ? '是' : '否'}</span>
  1031. </FormItem>
  1032. <div className="clearfix">
  1033. <FormItem
  1034. labelCol={{ span: 4 }}
  1035. wrapperCol={{ span: 16 }}
  1036. label="服务说明"
  1037. >
  1038. <span>{editFw.taskComment}</span>
  1039. </FormItem>
  1040. </div>
  1041. </div>
  1042. </Spin>
  1043. </Form >
  1044. </Modal>
  1045. </Form>
  1046. )
  1047. }
  1048. }
  1049. export default projectOverview;