projectOverview.js 45 KB

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