projectOverview.js 56 KB

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