activityCostList.jsx 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638
  1. import React from 'react';
  2. import { Icon, Form, Upload, Button, Input, Spin, Table, message, Select, Modal, DatePicker, InputNumber } from 'antd';
  3. import './activityCostList.less';
  4. import { beforeUploadFile, downloadFile } from '../../tools.js';
  5. import moment from 'moment';
  6. import ajax from 'jquery/src/ajax/xhr.js';
  7. import $ from 'jquery/src/ajax';
  8. const ActivityDescFrom = Form.create()(React.createClass({
  9. getInitialState() {
  10. return {
  11. loading: false,
  12. activityNumberOption: [],
  13. };
  14. },
  15. componentWillMount() {
  16. let _me = this;
  17. this.props.activityNumberList.map(function (item) {
  18. _me.state.activityNumberOption.push(
  19. <Select.Option value={item.aid} key={item.uid}>{item.activityNumber}</Select.Option>
  20. )
  21. });
  22. },
  23. allCostCount() {
  24. this.state.internalAllCost = this.props.form.getFieldValue('internalLaborCost') + this.props.form.getFieldValue('internalDirectCost') +
  25. this.props.form.getFieldValue('internalDepreciationCost') + this.props.form.getFieldValue('internalAmortizationCost') +
  26. this.props.form.getFieldValue('internalDesignCost') + this.props.form.getFieldValue('internalEquipmentCost') +
  27. this.props.form.getFieldValue('internalOtherCost');
  28. this.state.allCost = this.props.form.getFieldValue('internalLaborCost') + this.props.form.getFieldValue('internalDirectCost') +
  29. this.props.form.getFieldValue('internalDepreciationCost') + this.props.form.getFieldValue('internalAmortizationCost') +
  30. this.props.form.getFieldValue('internalDesignCost') + this.props.form.getFieldValue('internalEquipmentCost') +
  31. this.props.form.getFieldValue('internalOtherCost') + this.props.form.getFieldValue('externalTotalCost');
  32. },
  33. componentDidMount() {
  34. this.allCostCount();
  35. this.setState({
  36. loading: false
  37. });
  38. },
  39. componentWillReceiveProps() {
  40. this.allCostCount();
  41. },
  42. handleSubmit(e) {
  43. e.preventDefault();
  44. this.props.form.validateFields((err, values) => {
  45. if (!err) {
  46. this.props.spinState(true);
  47. $.ajax({
  48. method: "POST",
  49. dataType: "json",
  50. crossDomain: false,
  51. url: globalConfig.context + "/techservice/cognizance/activityCost",
  52. data: {
  53. id: this.props.data.id,
  54. aid: this.state.aid,
  55. activityNumber: this.state.activityNumber,
  56. internalLaborCost: values.internalLaborCost,
  57. internalDirectCost: values.internalDirectCost,
  58. internalDepreciationCost: values.internalDepreciationCost,
  59. internalAmortizationCost: values.internalAmortizationCost,
  60. internalDesignCost: values.internalDesignCost,
  61. internalEquipmentCost: values.internalEquipmentCost,
  62. internalOtherCost: values.internalOtherCost,
  63. externalTotalCost: values.externalTotalCost,
  64. externalAbroadCost: values.externalAbroadCost,
  65. enterpriseFiller: values.enterpriseFiller,
  66. signDateFormattedDate: values.signDate.format('YYYY-MM-DD'),
  67. sortNumber: values.sortNumber,
  68. accountUrl: this.state.accountUrl
  69. }
  70. }).done(function (data) {
  71. if (!data.error.length) {
  72. message.success('保存成功!');
  73. } else {
  74. message.warning(data.error[0].message);
  75. }
  76. }.bind(this)).always(function () {
  77. this.props.spinState(false);
  78. this.props.clickOk();
  79. this.props.form.resetFields();
  80. }.bind(this));
  81. }
  82. });
  83. },
  84. render() {
  85. const FormItem = Form.Item;
  86. const { getFieldDecorator } = this.props.form;
  87. const theData = this.props.data;
  88. const formItemLayout = {
  89. labelCol: { span: 14 },
  90. wrapperCol: { span: 8 },
  91. };
  92. const _me = this;
  93. return (
  94. <Form onSubmit={this.handleSubmit} className="activityCost-form">
  95. <p className="activityCost-title">项目编号</p>
  96. {
  97. theData.activityNumber ? <span>{theData.activityNumber}</span> :
  98. <Select placeholder="请选择项目编号" style={{ width: 200 }}
  99. onSelect={(e, n) => { this.state.aid = e; this.state.activityNumber = n.props.children }}>
  100. {this.state.activityNumberOption}
  101. </Select>
  102. }
  103. <p className="activityCost-title">内部研究开发费用(万元)</p>
  104. <div className="clearfix activityCost-box">
  105. <FormItem className="half-item"
  106. {...formItemLayout}
  107. label="共计(万元)"
  108. >
  109. {getFieldDecorator('internalAllCost')(
  110. <span className="number-box">
  111. {this.state.internalAllCost}
  112. </span>
  113. )}
  114. </FormItem>
  115. <FormItem className="half-item"
  116. {...formItemLayout}
  117. label="人员人工费用(万元)"
  118. >
  119. {getFieldDecorator('internalLaborCost', {
  120. rules: [{ type: "number", required: true, message: '此项为必填项!' }],
  121. initialValue: theData.internalLaborCost
  122. })(
  123. <InputNumber />
  124. )}
  125. </FormItem>
  126. <FormItem className="half-item"
  127. {...formItemLayout}
  128. label="直接投入费用(万元)"
  129. >
  130. {getFieldDecorator('internalDirectCost', {
  131. rules: [{ type: "number", required: true, message: '此项为必填项!' }],
  132. initialValue: theData.internalDirectCost
  133. })(
  134. <InputNumber />
  135. )}
  136. </FormItem>
  137. <FormItem className="half-item"
  138. {...formItemLayout}
  139. label="折旧费用与长期待摊费用(万元)"
  140. >
  141. {getFieldDecorator('internalDepreciationCost', {
  142. rules: [{ type: "number", required: true, message: '此项为必填项!' }],
  143. initialValue: theData.internalDepreciationCost
  144. })(
  145. <InputNumber />
  146. )}
  147. </FormItem>
  148. <FormItem className="half-item"
  149. {...formItemLayout}
  150. label="无形资产摊销费用(万元)"
  151. >
  152. {getFieldDecorator('internalAmortizationCost', {
  153. rules: [{ type: "number", required: true, message: '此项为必填项!' }],
  154. initialValue: theData.internalAmortizationCost
  155. })(
  156. <InputNumber />
  157. )}
  158. </FormItem>
  159. <FormItem className="half-item"
  160. {...formItemLayout}
  161. label="设计费用(万元)"
  162. >
  163. {getFieldDecorator('internalDesignCost', {
  164. rules: [{ type: "number", required: true, message: '此项为必填项!' }],
  165. initialValue: theData.internalDesignCost
  166. })(
  167. <InputNumber />
  168. )}
  169. </FormItem>
  170. <FormItem className="half-item"
  171. {...formItemLayout}
  172. label="装备调试费用与实验费用(万元)"
  173. >
  174. {getFieldDecorator('internalEquipmentCost', {
  175. rules: [{ type: "number", required: true, message: '此项为必填项!' }],
  176. initialValue: theData.internalEquipmentCost
  177. })(
  178. <InputNumber />
  179. )}
  180. </FormItem>
  181. <FormItem className="half-item"
  182. {...formItemLayout}
  183. label="其他费用(万元)"
  184. >
  185. {getFieldDecorator('internalOtherCost', {
  186. rules: [{ type: "number", required: true, message: '此项为必填项!' }],
  187. initialValue: theData.internalOtherCost
  188. })(
  189. <InputNumber />
  190. )}
  191. </FormItem>
  192. </div>
  193. <p className="activityCost-title">委托外部研究开发费用(万元)</p>
  194. <div className="clearfix activityCost-box">
  195. <FormItem className="half-item"
  196. {...formItemLayout}
  197. label="共计(万元)"
  198. >
  199. {getFieldDecorator('externalTotalCost', {
  200. rules: [{ type: "number", required: true, message: '此项为必填项!' }],
  201. initialValue: theData.externalTotalCost
  202. })(
  203. <InputNumber />
  204. )}
  205. </FormItem>
  206. <FormItem className="half-item"
  207. {...formItemLayout}
  208. label="境内的外部研发费用"
  209. >
  210. {getFieldDecorator('externalAbroadCost', {
  211. rules: [{ type: "number", required: true, message: '此项为必填项!' }],
  212. initialValue: theData.externalAbroadCost
  213. })(
  214. <InputNumber />
  215. )}
  216. </FormItem>
  217. </div>
  218. <p className="activityCost-title">研发开发费用(内、外部)小计(万元)</p>
  219. <div className="clearfix activityCost-box">
  220. <FormItem className="half-item"
  221. {...formItemLayout}
  222. label="共计(万元)"
  223. >
  224. {getFieldDecorator('allCost')(
  225. <span className="number-box">
  226. {this.state.allCost}
  227. </span>
  228. )}
  229. </FormItem>
  230. <FormItem className="half-item"
  231. {...formItemLayout}
  232. label="企业填报人"
  233. >
  234. {getFieldDecorator('enterpriseFiller', {
  235. rules: [{ required: true, message: '此项为必填项!' }],
  236. initialValue: theData.enterpriseFiller
  237. })(
  238. <Input />
  239. )}
  240. </FormItem>
  241. <FormItem className="half-item"
  242. {...formItemLayout}
  243. label="企业填报人签字日期"
  244. >
  245. {getFieldDecorator('signDate', {
  246. rules: [{ type: "object", required: true, message: '此项为必填项!' }],
  247. initialValue: theData.signDate ? moment(theData.signDate) : null
  248. })(
  249. <DatePicker onChange={(date, dateString) => { this.state.signDateFormattedDate = dateString }} />
  250. )}
  251. </FormItem>
  252. <FormItem className="half-item"
  253. {...formItemLayout}
  254. label="排序号"
  255. >
  256. {getFieldDecorator('sortNumber', {
  257. rules: [{ required: true, message: '此项为必填项!' }],
  258. initialValue: theData.sortNumber
  259. })(
  260. <Input />
  261. )}
  262. </FormItem>
  263. </div>
  264. <div style={{ width: '50%', marginTop: '20px' }}>
  265. <Upload
  266. name="ratepay"
  267. action={globalConfig.context + "/techservice/cognizance/upload"}
  268. data={{ 'sign': 'activity_cost_account' }}
  269. beforeUpload={beforeUploadFile}
  270. showUploadList={false}
  271. onChange={(info) => {
  272. if (info.file.status !== 'uploading') {
  273. console.log(info.file, info.fileList);
  274. }
  275. if (info.file.status === 'done') {
  276. if (!info.file.response.error.length) {
  277. message.success(`${info.file.name} 文件上传成功!`);
  278. } else {
  279. message.warning(info.file.response.error[0].message);
  280. return;
  281. };
  282. this.state.accountUrl = info.file.response.data;
  283. } else if (info.file.status === 'error') {
  284. message.error(`${info.file.name} 文件上传失败。`);
  285. }
  286. }}
  287. >
  288. <Button><Icon type="upload" /> 上传研发费用台账 </Button>
  289. </Upload>
  290. <p style={{ marginTop: '20px' }}>{theData.accountUrl ? <a onClick={downloadFile.bind(null, theData.accountUrl, theData.accountDownloadFileName)}>{theData.accountDownloadFileName}</a> : <span>未上传!</span>}</p>
  291. </div>
  292. <FormItem style={{ marginTop: '20px' }}>
  293. <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
  294. <Button type="ghost" style={{ marginLeft: '20px' }} onClick={this.props.closeModal}>取消</Button>
  295. </FormItem>
  296. </Form >
  297. );
  298. },
  299. }));
  300. const ActivityDesc = React.createClass({
  301. getInitialState() {
  302. return {
  303. visible: false,
  304. loading: false
  305. };
  306. },
  307. componentWillReceiveProps(nextProps) {
  308. this.state.visible = nextProps.showDesc
  309. },
  310. showModal() {
  311. this.setState({
  312. visible: true,
  313. });
  314. },
  315. handleOk() {
  316. this.setState({
  317. visible: false,
  318. });
  319. this.props.closeDesc(false, true);
  320. },
  321. handleCancel(e) {
  322. this.setState({
  323. visible: false,
  324. });
  325. this.props.closeDesc(false);
  326. },
  327. spinChange(e) {
  328. this.setState({
  329. loading: e
  330. });
  331. },
  332. render() {
  333. return (
  334. <div className="patent-addNew">
  335. <Spin spinning={this.state.loading} className='spin-box'>
  336. <Modal title="企业研究开发费用结构明细" visible={this.state.visible}
  337. onOk={this.handleOk} onCancel={this.handleCancel}
  338. width='800px'
  339. footer=''
  340. >
  341. <ActivityDescFrom data={this.props.data} activityNumberList={this.props.activityNumberList}
  342. spinState={this.spinChange} closeModal={this.handleCancel} clickOk={this.handleOk} />
  343. </Modal>
  344. </Spin>
  345. </div>
  346. );
  347. },
  348. });
  349. const Activity = React.createClass({
  350. loadData(pageNo) {
  351. this.state.data = [];
  352. this.setState({
  353. loading: true
  354. });
  355. $.when($.ajax({
  356. method: "post",
  357. dataType: "json",
  358. crossDomain: false,
  359. url: globalConfig.context + "/techservice/cognizance/activityCostList",
  360. data: {
  361. pageNo: pageNo || 1,
  362. pageSize: this.state.pagination.pageSize,
  363. activityNumber: this.state.activityNumber,
  364. startDate: this.state.startDate,
  365. endDate: this.state.endDate
  366. }
  367. }), $.ajax({
  368. method: "get",
  369. dataType: "json",
  370. crossDomain: false,
  371. url: globalConfig.context + "/techservice/cognizance/activityNumber",
  372. })).done((data1, data2) => {
  373. let data = data1[0];
  374. let activityNumber = data2[0];
  375. if (data.error.length || !data.data || !data.data.list) {
  376. message.warning(data.error[0].message);
  377. return;
  378. };
  379. if (activityNumber.error.length || !activityNumber.data) {
  380. message.warning(activityNumber.error[0].message);
  381. return;
  382. };
  383. for (let i = 0; i < data.data.list.length; i++) {
  384. let thisdata = data.data.list[i];
  385. this.state.data.push({
  386. key: i,
  387. id: thisdata.id,
  388. uid: thisdata.uid,
  389. aid: thisdata.aid,
  390. activityNumber: thisdata.activityNumber,
  391. startDate: thisdata.startDate,
  392. endDate: thisdata.endDate,
  393. internalAllCost:
  394. thisdata.internalLaborCost + thisdata.internalDirectCost + thisdata.internalDepreciationCost +
  395. thisdata.internalAmortizationCost + thisdata.internalAmortizationCost + thisdata.internalDesignCost +
  396. thisdata.internalEquipmentCost + thisdata.internalOtherCost,
  397. internalLaborCost: thisdata.internalLaborCost,
  398. internalDirectCost: thisdata.internalDirectCost,
  399. internalDepreciationCost: thisdata.internalDepreciationCost,
  400. internalAmortizationCost: thisdata.internalAmortizationCost,
  401. internalDesignCost: thisdata.internalDesignCost,
  402. internalEquipmentCost: thisdata.internalEquipmentCost,
  403. internalOtherCost: thisdata.internalOtherCost,
  404. externalTotalCost: thisdata.externalTotalCost,
  405. externalAbroadCost: thisdata.externalAbroadCost,
  406. allCost:
  407. thisdata.internalLaborCost + thisdata.internalDirectCost + thisdata.internalDepreciationCost +
  408. thisdata.internalAmortizationCost + thisdata.internalAmortizationCost + thisdata.internalDesignCost +
  409. thisdata.internalEquipmentCost + thisdata.internalOtherCost + thisdata.externalTotalCost,
  410. enterpriseFiller: thisdata.enterpriseFiller,
  411. signDate: thisdata.signDate,
  412. signDateFormattedDate: thisdata.signDateFormattedDate,
  413. sortNumber: thisdata.sortNumber,
  414. startDateFormattedDate: thisdata.startDateFormattedDate,
  415. endDateFormattedDate: thisdata.endDateFormattedDate,
  416. accountDownloadFileName: thisdata.accountDownloadFileName,
  417. accountUrl: thisdata.accountUrl
  418. });
  419. };
  420. this.state.activityNumberList = activityNumber.data;
  421. this.state.pagination.current = data.data.pageNo;
  422. this.state.pagination.total = data.data.totalCount;
  423. this.setState({
  424. dataSource: this.state.data,
  425. pagination: this.state.pagination
  426. });
  427. }).always(function () {
  428. this.setState({
  429. loading: false
  430. });
  431. }.bind(this));
  432. },
  433. getInitialState() {
  434. return {
  435. selectedRowKeys: [],
  436. selectedRows: [],
  437. loading: false,
  438. pagination: {
  439. defaultCurrent: 1,
  440. defaultPageSize: 10,
  441. showQuickJumper: true,
  442. pageSize: 10,
  443. onChange: function (page) {
  444. this.loadData(page);
  445. }.bind(this),
  446. showTotal: function (total) {
  447. return '共' + total + '条数据';
  448. }
  449. },
  450. columns: [
  451. {
  452. title: '研发活动编号',
  453. dataIndex: 'activityNumber',
  454. key: 'activityNumber'
  455. }, {
  456. title: '内部研究开发费用',
  457. dataIndex: 'internalAllCost',
  458. key: 'internalAllCost'
  459. }, {
  460. title: '人员人工费用',
  461. dataIndex: 'internalLaborCost',
  462. key: 'internalLaborCost'
  463. }, {
  464. title: '直接投入费用',
  465. dataIndex: 'internalDirectCost',
  466. key: 'internalDirectCost'
  467. }, {
  468. title: '折旧费用与长期待摊费用',
  469. dataIndex: 'internalDepreciationCost',
  470. key: 'internalDepreciationCost'
  471. }, {
  472. title: '设计费用',
  473. dataIndex: 'internalDesignCost',
  474. key: 'internalDesignCost'
  475. }, {
  476. title: '装备调试费用与试验费用',
  477. dataIndex: 'internalEquipmentCost',
  478. key: 'internalEquipmentCost'
  479. }, {
  480. title: '无形资产摊销费用',
  481. dataIndex: 'internalAmortizationCost',
  482. key: 'internalAmortizationCost'
  483. }, {
  484. title: '其他费用',
  485. dataIndex: 'internalOtherCost',
  486. key: 'internalOtherCost'
  487. }, {
  488. title: '委托外部研究开发费用',
  489. dataIndex: 'externalTotalCost',
  490. key: 'externalTotalCost'
  491. }, {
  492. title: '境内外部研发费用',
  493. dataIndex: 'externalAbroadCost',
  494. key: 'externalAbroadCost'
  495. }, {
  496. title: '研发费用合计',
  497. dataIndex: 'allCost',
  498. key: 'allCost'
  499. }, {
  500. title: '企业填报人',
  501. dataIndex: 'enterpriseFiller',
  502. key: 'enterpriseFiller'
  503. }, {
  504. title: '企业填报人签字日期',
  505. dataIndex: 'signDateFormattedDate',
  506. key: 'signDateFormattedDate'
  507. }, {
  508. title: '排序号',
  509. dataIndex: 'sortNumber',
  510. key: 'sortNumber'
  511. }
  512. ],
  513. dataSource: []
  514. };
  515. },
  516. componentWillMount() {
  517. this.loadData();
  518. },
  519. tableRowClick(record, index) {
  520. this.state.RowData = record;
  521. this.setState({
  522. showDesc: true
  523. });
  524. },
  525. delectRow() {
  526. let deletedIds = [];
  527. for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  528. let rowItem = this.state.selectedRows[idx];
  529. if (rowItem.id) {
  530. deletedIds.push(rowItem.id)
  531. }
  532. }
  533. this.setState({
  534. selectedRowKeys: [],
  535. loading: deletedIds.length > 0
  536. });
  537. $.ajax({
  538. method: "POST",
  539. dataType: "json",
  540. crossDomain: false,
  541. url: globalConfig.context + "/techservice/cognizance/deleteActivityCost",
  542. data: {
  543. ids: deletedIds
  544. }
  545. }).done(function (data) {
  546. if (!data.error.length) {
  547. message.success('保存成功!');
  548. this.setState({
  549. loading: false,
  550. });
  551. } else {
  552. message.warning(data.error[0].message);
  553. };
  554. this.loadData();
  555. }.bind(this));
  556. },
  557. closeDesc(e, s) {
  558. this.state.showDesc = e;
  559. if (s) {
  560. this.loadData();
  561. };
  562. },
  563. search() {
  564. this.loadData();
  565. },
  566. reset() {
  567. this.state.startDateFormattedDate = undefined;
  568. this.state.endDateFormattedDate = undefined;
  569. this.state.activityNumber = undefined;
  570. this.loadData();
  571. },
  572. render() {
  573. const rowSelection = {
  574. selectedRowKeys: this.state.selectedRowKeys,
  575. onChange: (selectedRowKeys, selectedRows) => {
  576. this.setState({
  577. selectedRows: selectedRows,
  578. selectedRowKeys: selectedRowKeys
  579. });
  580. }
  581. };
  582. const hasSelected = this.state.selectedRowKeys.length > 0;
  583. return (
  584. <div className="user-content" >
  585. <div className="content-title">
  586. <span>企业研究开发费用结构明细</span>
  587. </div>
  588. <div className="user-search">
  589. <Input placeholder="研发活动编号" value={this.state.activityNumber}
  590. onChange={(e) => { this.setState({ activityNumber: e.target.value }); }} />
  591. <span>开始日期:</span>
  592. <DatePicker
  593. value={this.state.startDateFormattedDate ? moment(this.state.startDateFormattedDate) : null}
  594. onChange={(data, dataString) => { this.setState({ startDateFormattedDate: dataString }); }} />
  595. <span>结束日期:</span>
  596. <DatePicker
  597. value={this.state.endDateFormattedDate ? moment(this.state.endDateFormattedDate) : null}
  598. onChange={(data, dataString) => { this.setState({ endDateFormattedDate: dataString }); }} />
  599. <Button type="primary" onClick={this.search}>搜索</Button>
  600. <Button onClick={this.reset}>重置</Button>
  601. <p>
  602. <Button style={{ background: "#ea0862", border: "none", color: "#fff" }}
  603. onClick={this.tableRowClick}>添加<Icon type="plus" /></Button>
  604. <Button style={{ background: "#3fcf9e", border: "none", color: "#fff" }}
  605. disabled={!hasSelected}
  606. onClick={this.delectRow}>删除<Icon type="minus" /></Button>
  607. </p>
  608. </div>
  609. <div className="patent-table">
  610. <Spin spinning={this.state.loading}>
  611. <Table columns={this.state.columns}
  612. dataSource={this.state.dataSource}
  613. pagination={this.state.pagination}
  614. rowSelection={rowSelection}
  615. onRowClick={this.tableRowClick} />
  616. </Spin>
  617. </div>
  618. <ActivityDesc data={this.state.RowData}
  619. activityNumberList={this.state.activityNumberList}
  620. showDesc={this.state.showDesc} closeDesc={this.closeDesc} />
  621. </div >
  622. );
  623. }
  624. });
  625. export default Activity;