projectOverview.js 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048
  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>{this.state.status ? '暂停' : '开启'}</span>
  505. <Button
  506. type="primary"
  507. size="small"
  508. style={{ marginTop: '5px', position: 'absolute' }}
  509. onClick={this.caozuorizhi}
  510. >
  511. 操作日志
  512. </Button>
  513. </FormItem>
  514. <FormItem
  515. className="half-item"
  516. {...formItemLayout}
  517. label="合同编号"
  518. >
  519. <span>{this.state.contractNo}</span>
  520. </FormItem>
  521. </div>
  522. <div className="clearfix">
  523. <FormItem
  524. className="half-item"
  525. {...formItemLayout}
  526. label="项目状态"
  527. >
  528. {/* <span>{getProcessStatus(this.state.projectStatus)}</span> */}
  529. <span>{getProjectStatus(this.state.projectStatus)}</span>
  530. </FormItem>
  531. <FormItem
  532. className="half-item"
  533. {...formItemLayout}
  534. label="是否特批"
  535. >
  536. <span>{getApproval(this.state.approval)}</span>
  537. </FormItem>
  538. <FormItem
  539. className="half-item"
  540. {...formItemLayout}
  541. label="结算状态"
  542. >
  543. <span>
  544. {getLiquidationStatus(this.state.liquidationStatus)}
  545. </span>
  546. </FormItem>
  547. <FormItem
  548. className="half-item"
  549. {...formItemLayout}
  550. label="流程状态"
  551. >
  552. <span>{getProcessStatus(this.state.processStatus)}</span>
  553. </FormItem>
  554. <FormItem
  555. className="half-item"
  556. {...formItemLayout}
  557. label="订单编号"
  558. >
  559. <span>{this.state.orderNo}</span>
  560. </FormItem>
  561. <FormItem
  562. className="half-item"
  563. {...formItemLayout}
  564. label="是否外包"
  565. >
  566. <span>{this.state.outsource == 0 ? '否' : '是'}</span>
  567. </FormItem>
  568. </div>
  569. <div className="clearfix">
  570. <FormItem
  571. className="half-item"
  572. {...formItemLayout}
  573. label="满意度表格"
  574. >
  575. <span>
  576. {utils.getSatisfaction(this.state.formRetrieve)}
  577. </span>
  578. </FormItem>
  579. <FormItem
  580. className="half-item"
  581. {...formItemLayout}
  582. label="退单"
  583. >
  584. <span>{utils.getChargeback(this.state.taskRefund)}</span>
  585. </FormItem>
  586. </div>
  587. <div className="clearfix">
  588. {
  589. <FormItem
  590. className="half-item"
  591. {...formItemLayout}
  592. label="(满意度)备注"
  593. >
  594. <span>{this.state.retrieveContent}</span>
  595. </FormItem>
  596. }
  597. {
  598. <FormItem
  599. className="half-item"
  600. {...formItemLayout}
  601. label="(退单)备注"
  602. >
  603. <span>{this.state.refundContent}</span>
  604. </FormItem>
  605. }
  606. </div>
  607. <div className="clearfix">
  608. <h3 className="sub-title">任务信息</h3>
  609. <FormItem
  610. className="half-item"
  611. {...formItemLayout}
  612. label="任务编号"
  613. >
  614. <span>{this.state.id}</span>
  615. </FormItem>
  616. <FormItem
  617. className="half-item"
  618. {...formItemLayout}
  619. label="任务名称"
  620. >
  621. <span>{this.state.taskName}</span>
  622. </FormItem>
  623. <FormItem
  624. className="half-item"
  625. {...formItemLayout}
  626. label="任务状态"
  627. >
  628. <span>{getTaskStatus(this.state.taskStatus)}</span>
  629. </FormItem>
  630. <FormItem
  631. className="half-item"
  632. {...formItemLayout}
  633. label="任务类别"
  634. >
  635. <span>{this.state.cname}</span>
  636. </FormItem>
  637. <FormItem
  638. className="half-item"
  639. {...formItemLayout}
  640. label="证书编号"
  641. >
  642. <span>{this.state.certificateNumber}</span>
  643. </FormItem>
  644. </div>
  645. {/*{this.state.outsource === 1 ? (*/}
  646. {/* <div className="clearfix">*/}
  647. {/* <h3 className="sub-title">外包信息</h3>*/}
  648. {/* <FormItem*/}
  649. {/* className="half-item"*/}
  650. {/* {...formItemLayout}*/}
  651. {/* label="外包公司"*/}
  652. {/* >*/}
  653. {/* <span>{this.state.outsourceName}</span>*/}
  654. {/* </FormItem>*/}
  655. {/* <FormItem*/}
  656. {/* className="half-item"*/}
  657. {/* {...formItemLayout}*/}
  658. {/* label="外包成本(万元)"*/}
  659. {/* >*/}
  660. {/* <span>{this.state.outsourcePrice}</span>*/}
  661. {/* </FormItem>*/}
  662. {/* </div>*/}
  663. {/*) : (*/}
  664. {/* ''*/}
  665. {/*)}*/}
  666. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  667. <div className="clearfix">
  668. <h3 className="sub-title">联系信息</h3>
  669. <FormItem
  670. className="half-item"
  671. {...formItemLayout}
  672. label="客户名称"
  673. >
  674. <span>{this.state.userName}</span>
  675. </FormItem>
  676. <FormItem
  677. className="half-item"
  678. {...formItemLayout}
  679. label="企业法人"
  680. >
  681. <span>{this.state.legalPerson}</span>
  682. </FormItem>
  683. <FormItem
  684. className="half-item"
  685. {...formItemLayout}
  686. label="法人电话"
  687. >
  688. <span>{this.state.legalPersonTel}</span>
  689. </FormItem>
  690. <FormItem
  691. className="half-item"
  692. {...formItemLayout}
  693. label="客户联系人"
  694. >
  695. <span>{this.state.contacts}</span>
  696. </FormItem>
  697. <FormItem
  698. className="half-item"
  699. {...formItemLayout}
  700. label="联系人电话"
  701. >
  702. <span>{this.state.contactMobile}</span>
  703. </FormItem>
  704. <FormItem
  705. className="half-item"
  706. {...formItemLayout}
  707. label="企业地址"
  708. >
  709. <span>
  710. {getprovince(this.state.locationProvince)}/
  711. {getprovince(this.state.locationCity)}/
  712. {getprovince(this.state.locationArea)}
  713. </span>
  714. </FormItem>
  715. <FormItem
  716. className="half-item"
  717. {...formItemLayout}
  718. label=""
  719. ></FormItem>
  720. <FormItem className="half-item" {...formItemLayout}>
  721. <span style={{ paddingLeft: '12em' }}>
  722. {this.state.postalAddress}
  723. </span>
  724. </FormItem>
  725. </div>
  726. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  727. <div className="clearfix">
  728. <h3 className="sub-title">订单负责人信息</h3>
  729. <FormItem
  730. className="half-item"
  731. {...formItemLayout}
  732. label="负责人"
  733. >
  734. <span>
  735. {this.state.salesmanName +
  736. '(' +
  737. this.state.depName +
  738. ')'}
  739. </span>
  740. </FormItem>
  741. <FormItem
  742. className="half-item"
  743. {...formItemLayout}
  744. label="负责人电话"
  745. >
  746. <span>{this.state.salesmanMobile}</span>
  747. </FormItem>
  748. <FormItem
  749. className="half-item"
  750. {...formItemLayout}
  751. label="当前财务负责人"
  752. >
  753. <span>{this.state.nowFinance}</span>
  754. </FormItem>
  755. <FormItem
  756. className="half-item"
  757. {...formItemLayout}
  758. label="当前财务负责人电话"
  759. >
  760. <span>{this.state.nowFinanceMobile}</span>
  761. </FormItem>
  762. <FormItem
  763. className="half-item"
  764. {...formItemLayout}
  765. style={{ opacity: '.5' }}
  766. label="原负责人"
  767. >
  768. <span>{this.state.oldSalesmanName}</span>
  769. </FormItem>
  770. <FormItem
  771. className="half-item"
  772. {...formItemLayout}
  773. style={{ opacity: '.5' }}
  774. label="原负责人电话"
  775. >
  776. <span>{this.state.oldSalesmanMobile}</span>
  777. </FormItem>
  778. <FormItem
  779. className="half-item"
  780. {...formItemLayout}
  781. style={{ opacity: '.5' }}
  782. label="实际财务操作人"
  783. >
  784. <span>{this.state.financeName}</span>
  785. </FormItem>
  786. <FormItem
  787. className="half-item"
  788. {...formItemLayout}
  789. style={{ opacity: '.5' }}
  790. label="实际财务操作人电话"
  791. >
  792. <span>{this.state.financeMobile}</span>
  793. </FormItem>
  794. </div>
  795. <div className="clearfix">
  796. <h3 className="sub-title">申报系统账户信息</h3>
  797. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  798. <FormItem
  799. className="half-item"
  800. {...formItemLayout}
  801. label="用户名"
  802. >
  803. <span>{this.state.declareUser ? '****' : ''}</span>
  804. </FormItem>
  805. <FormItem
  806. className="half-item"
  807. {...formItemLayout}
  808. label="密码"
  809. >
  810. <span>{this.state.declarePwd ? '****' : ''}</span>
  811. </FormItem>
  812. </div>
  813. <div className="clearfix">
  814. <h3 className="sub-title">项目申报进度</h3>
  815. <FormItem
  816. className="half-item"
  817. {...formItemLayout}
  818. label="申报批次"
  819. >
  820. <span>{this.state.declarationBatch}</span>
  821. </FormItem>
  822. <FormItem
  823. className="half-item"
  824. {...formItemLayout}
  825. label="启动时间"
  826. >
  827. <span>{this.state.startDate}</span>
  828. </FormItem>
  829. <FormItem
  830. className="half-item"
  831. {...formItemLayout}
  832. label="完成时间"
  833. >
  834. <span>{this.state.endDate}</span>
  835. </FormItem>
  836. <FormItem
  837. className="half-item"
  838. {...formItemLayout}
  839. label="受理时间"
  840. >
  841. <span>{this.state.acceptDate}</span>
  842. </FormItem>
  843. <FormItem
  844. className="half-item"
  845. {...formItemLayout}
  846. label="评审时间"
  847. >
  848. <span>{this.state.reviewDate}</span>
  849. </FormItem>
  850. <FormItem
  851. className="half-item"
  852. {...formItemLayout}
  853. label="公示时间"
  854. >
  855. <span>{this.state.publicityDate}</span>
  856. </FormItem>
  857. <FormItem
  858. className="half-item"
  859. {...formItemLayout}
  860. label="发证时间"
  861. >
  862. <span>{this.state.licenceDate}</span>
  863. </FormItem>
  864. <FormItem
  865. className="half-item"
  866. {...formItemLayout}
  867. label="立项金额(万元)"
  868. >
  869. <span>{this.state.setUpAmount}</span>
  870. </FormItem>
  871. <FormItem
  872. className="half-item"
  873. {...formItemLayout}
  874. label="是否到款"
  875. >
  876. <span>
  877. {this.state.arrivalMoney ? '已到企业' : '未到企业'}
  878. </span>
  879. </FormItem>
  880. </div>
  881. <div className="clearfix">
  882. <FormItem
  883. labelCol={{ span: 3 }}
  884. wrapperCol={{ span: 18 }}
  885. label="附件"
  886. >
  887. <Upload
  888. className="demandDetailShow-upload"
  889. listType="picture-card"
  890. fileList={this.state.attachmentUrl}
  891. onPreview={(file) => {
  892. this.setState({
  893. previewImage: file.url || file.thumbUrl,
  894. previewVisible: true,
  895. })
  896. }}
  897. ></Upload>
  898. <Modal
  899. maskClosable={false}
  900. footer={null}
  901. visible={this.state.previewVisible}
  902. onCancel={() => {
  903. this.setState({ previewVisible: false })
  904. }}
  905. >
  906. <img
  907. alt=""
  908. style={{ width: '100%' }}
  909. src={this.state.previewImage || ''}
  910. />
  911. </Modal>
  912. </FormItem>
  913. </div>
  914. <div className="clearfix">
  915. <FormItem
  916. labelCol={{ span: 3 }}
  917. wrapperCol={{ span: 16 }}
  918. label="备注"
  919. >
  920. <span>{this.state.taskComment}</span>
  921. </FormItem>
  922. </div>
  923. <div>
  924. <h3 className="sub-title">项目业务</h3>
  925. {/* {this.state.processStatus == 0 ? (
  926. <Button
  927. type="primary"
  928. onClick={this.addDetailed}
  929. style={{
  930. float: "right",
  931. marginRight: "50px",
  932. marginBottom: "15px"
  933. }}
  934. >
  935. 添加项目明细
  936. </Button>
  937. ) : (
  938. ""
  939. )} */}
  940. </div>
  941. <div className="patent-table">
  942. <Spin spinning={this.state.loading}>
  943. <Table
  944. columns={this.state.columnsX}
  945. dataSource={this.state.dataSourceX}
  946. pagination={this.state.paginations}
  947. onRowClick={this.tableRowClickX}
  948. bordered
  949. size="small"
  950. />
  951. </Spin>
  952. </div>
  953. </div>
  954. </Spin>
  955. <Modal
  956. width="800px"
  957. visible={this.state.visibleA}
  958. onCancel={this.visitCancelA}
  959. title="操作日志"
  960. footer=""
  961. className="admin-desc-content"
  962. >
  963. <div className="patent-table patent-table-center">
  964. <Spin spinning={this.state.loading}>
  965. <Table
  966. columns={this.state.columnsA}
  967. dataSource={this.state.dataSourceA}
  968. pagination={false}
  969. bordered
  970. size="small"
  971. />
  972. </Spin>
  973. </div>
  974. </Modal>
  975. <Modal maskClosable={false} visible={this.state.addnextVisible} onCancel={()=>{
  976. this.setState({
  977. addnextVisible: false
  978. })
  979. }}
  980. width='550px'
  981. title='查看项目详细'
  982. footer=''
  983. className="admin-desc-content">
  984. <Form layout="horizontal" id="demand-form">
  985. <Spin spinning={this.state.loading}>
  986. <div className="clearfix">
  987. <FormItem
  988. className="half-item"
  989. {...formItemLayout}
  990. label="项目名称"
  991. >
  992. <span>{editFw.commodityName}</span>
  993. </FormItem>
  994. <FormItem
  995. className="half-item"
  996. {...formItemLayout}
  997. label="项目数量"
  998. >
  999. <span>{editFw.commodityQuantity}</span>
  1000. </FormItem>
  1001. <FormItem
  1002. className="half-item"
  1003. {...formItemLayout}
  1004. label="金额(万元)"
  1005. >
  1006. <span>{editFw.commodityPrice}</span>
  1007. </FormItem>
  1008. <FormItem
  1009. className="half-item"
  1010. {...formItemLayout}
  1011. label="主要项目"
  1012. >
  1013. <span>{editFw.main ? '是' : '否'}</span>
  1014. </FormItem>
  1015. <div className="clearfix">
  1016. <FormItem
  1017. labelCol={{ span: 4 }}
  1018. wrapperCol={{ span: 16 }}
  1019. label="服务说明"
  1020. >
  1021. <span>{editFw.taskComment}</span>
  1022. </FormItem>
  1023. </div>
  1024. </div>
  1025. </Spin>
  1026. </Form >
  1027. </Modal>
  1028. </Form>
  1029. )
  1030. }
  1031. }
  1032. export default projectOverview;