projectOverview.js 52 KB

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