projectOverview.js 45 KB

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