projectOverview.js 55 KB

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