projectOverview.js 53 KB

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