projectOverview.js 54 KB

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