projectOverview.js 54 KB

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