projectOverview.js 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169
  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',paddingTop:'15px' }}
  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. 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.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. <DeclarationProgress
  911. timeRecordparse={this.state.timeRecordparse}
  912. taskDate={this.state.taskDate}
  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. {/*高新和科技项目显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  979. {/*cSort: 3 科技项目 6: 会员*/}
  980. {(this.state.bpType === 5 || this.state.cSort === 3) && <FormItem
  981. className="half-item"
  982. {...formItemLayout}
  983. label="申报批次"
  984. >
  985. <span>{this.state.declarationBatch}</span>
  986. </FormItem>}
  987. {/*只有科技项目才有是否到款*/}
  988. {/*cSort: 3 科技项目 6: 会员*/}
  989. {this.state.cSort === 3 && <FormItem
  990. className="half-item"
  991. {...formItemLayout}
  992. label="是否到款"
  993. >
  994. <span>
  995. {this.state.arrivalMoney ? '已到企业' : '未到企业'}
  996. </span>
  997. </FormItem>}
  998. <div className="clearfix">
  999. <FormItem
  1000. labelCol={{ span: 3 }}
  1001. wrapperCol={{ span: 18 }}
  1002. label="附件"
  1003. >
  1004. <Upload
  1005. className="demandDetailShow-upload"
  1006. listType="picture-card"
  1007. fileList={this.state.attachmentUrl}
  1008. onPreview={(file) => {
  1009. this.setState({
  1010. previewImage: file.url || file.thumbUrl,
  1011. previewVisible: true,
  1012. })
  1013. }}
  1014. />
  1015. <Modal
  1016. maskClosable={false}
  1017. footer={null}
  1018. visible={this.state.previewVisible}
  1019. onCancel={() => {
  1020. this.setState({ previewVisible: false })
  1021. }}
  1022. >
  1023. <img
  1024. alt=""
  1025. style={{ width: '100%' }}
  1026. src={this.state.previewImage || ''}
  1027. />
  1028. </Modal>
  1029. </FormItem>
  1030. </div>
  1031. </div>}
  1032. </div>
  1033. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  1034. <FormItem
  1035. labelCol={{ span: 3 }}
  1036. wrapperCol={{ span: 16 }}
  1037. label="项目说明"
  1038. >
  1039. <span>{this.state.taskComment}</span>
  1040. </FormItem>
  1041. </div> : null}
  1042. <div>
  1043. <h3 className="sub-title">项目业务</h3>
  1044. {/* {this.state.processStatus == 0 ? (
  1045. <Button
  1046. type="primary"
  1047. onClick={this.addDetailed}
  1048. style={{
  1049. float: "right",
  1050. marginRight: "50px",
  1051. marginBottom: "15px"
  1052. }}
  1053. >
  1054. 添加项目明细
  1055. </Button>
  1056. ) : (
  1057. ""
  1058. )} */}
  1059. </div>
  1060. <div className="patent-table">
  1061. <Spin spinning={this.state.loading}>
  1062. <Table
  1063. columns={this.state.columnsX}
  1064. dataSource={this.state.dataSourceX}
  1065. pagination={this.state.paginations}
  1066. onRowClick={this.tableRowClickX}
  1067. bordered
  1068. size="small"
  1069. />
  1070. </Spin>
  1071. </div>
  1072. </div>
  1073. </Spin>
  1074. <Modal
  1075. maskClosable={false}
  1076. width="800px"
  1077. visible={this.state.visibleA}
  1078. onCancel={this.visitCancelA}
  1079. title="操作日志"
  1080. footer=""
  1081. className="admin-desc-content"
  1082. >
  1083. <div className="patent-table patent-table-center">
  1084. <Spin spinning={this.state.loading}>
  1085. <Table
  1086. columns={this.state.columnsA}
  1087. dataSource={this.state.dataSourceA}
  1088. pagination={false}
  1089. bordered
  1090. size="small"
  1091. />
  1092. </Spin>
  1093. </div>
  1094. </Modal>
  1095. <Modal maskClosable={false} visible={this.state.addnextVisible} onCancel={()=>{
  1096. this.setState({
  1097. addnextVisible: false
  1098. })
  1099. }}
  1100. width='550px'
  1101. title='查看项目详细'
  1102. footer=''
  1103. className="admin-desc-content">
  1104. <Form layout="horizontal" id="demand-form">
  1105. <Spin spinning={this.state.loading}>
  1106. <div className="clearfix">
  1107. <FormItem
  1108. className="half-item"
  1109. {...formItemLayout}
  1110. label="项目名称"
  1111. >
  1112. <span>{editFw.commodityName}</span>
  1113. </FormItem>
  1114. <FormItem
  1115. className="half-item"
  1116. {...formItemLayout}
  1117. label="项目数量"
  1118. >
  1119. <span>{editFw.commodityQuantity}</span>
  1120. </FormItem>
  1121. <FormItem
  1122. className="half-item"
  1123. {...formItemLayout}
  1124. label="金额(万元)"
  1125. >
  1126. <span>{editFw.commodityPrice}</span>
  1127. </FormItem>
  1128. <FormItem
  1129. className="half-item"
  1130. {...formItemLayout}
  1131. label="主要项目"
  1132. >
  1133. <span>{editFw.main ? '是' : '否'}</span>
  1134. </FormItem>
  1135. <div className="clearfix">
  1136. <FormItem
  1137. labelCol={{ span: 4 }}
  1138. wrapperCol={{ span: 16 }}
  1139. label="服务说明"
  1140. >
  1141. <span>{editFw.taskComment}</span>
  1142. </FormItem>
  1143. </div>
  1144. </div>
  1145. </Spin>
  1146. </Form >
  1147. </Modal>
  1148. </Form>
  1149. )
  1150. }
  1151. }
  1152. export default projectOverview;