projectOverview.js 53 KB

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