orderStatistics.jsx 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813
  1. import React from 'react';
  2. import { Select, Spin, Input, Table, Button ,DatePicker, Form , Tabs , Switch,message} from 'antd';
  3. import ajax from 'jquery/src/ajax/xhr.js';
  4. import $ from 'jquery/src/ajax';
  5. import './report.less';
  6. import { post,taskStatus,publishStatus } from '../../../dataDic.js';
  7. import moment from 'moment';
  8. const TabPane = Tabs.TabPane;
  9. const DiurnalStatistics = React.createClass({
  10. loadData(timeTypes) {
  11. this.setState({
  12. loading: true,
  13. timeTypes:timeTypes
  14. });
  15. $.ajax({
  16. method: "get",
  17. dataType: "json",
  18. crossDomain: false,
  19. url: globalConfig.context + "/api/admin/report/technicalDepStatistics",
  20. data: {
  21. type:'1',
  22. timeType:this.state.releaseDate[0]?4:timeTypes,
  23. startTime: this.state.releaseDate[0],
  24. endTime: this.state.releaseDate[1],
  25. depId:this.state.superId,//部门机构
  26. taskStatus:this.state.taskStatus,//任务状态
  27. publishStatus:this.state.publishStatus,//公示状态
  28. },
  29. success: function(data) {
  30. let thedata = data.data;
  31. let theArr = [];
  32. if(!thedata) {
  33. if(data.error && data.error.length) {
  34. message.warning(data.error[0].message);
  35. };
  36. thedata = {};
  37. } else {
  38. thedata.map(function(item, index) {
  39. let nub=index+1;
  40. theArr.push({
  41. key: index,
  42. theNumber:false,
  43. nub:nub,
  44. orderDep: item.orderDep,//订单部门
  45. signTotalAmount:item.signTotalAmount,//项目签单金额
  46. signTime:item.signTime,//签单日期
  47. contractNo:item.contractNo,//合同编号
  48. orderRemarks:item.orderRemarks, //订单留言
  49. contacts:item.contacts,//企业联系人
  50. contactMobile:item.contactMobile,//联系人电话
  51. commodityName:item.commodityName,//任务名称
  52. taskDistributionTime:item.taskDistributionTime,//派单时间
  53. dutyDep:item.dutyDep, //任务责任部门
  54. dutyName:item.dutyName,//任务责任人
  55. dutyContactMobile:item.dutyContactMobile,//责任人联系电话
  56. taskStatus:item.taskStatus,//任务状态
  57. finishTime:item.finishTime, //完成时间
  58. taskComment:item.taskComment,//任务说明
  59. publishStatus:item.publishStatus, //公示状态
  60. publishTime:item.publishTime,//公示时间
  61. salesmanName:item.salesmanName, //营销员
  62. orgName:item.orgName,//公司名称
  63. })
  64. })
  65. }
  66. this.setState({
  67. dataSource: theArr,
  68. })
  69. }.bind(this),
  70. }).always(function() {
  71. this.setState({
  72. loading: false
  73. });
  74. }.bind(this));
  75. },
  76. totalData(timeTypes) {
  77. this.setState({
  78. loading: true
  79. });
  80. $.ajax({
  81. method: "get",
  82. dataType: "json",
  83. crossDomain: false,
  84. url: globalConfig.context + "/api/admin/report/sales/countsometimeMarketingStatistics",
  85. data: {
  86. type:'1',
  87. timeType:this.state.releaseDate[0]?4:timeTypes,
  88. startTime: this.state.releaseDate[0],
  89. endTime: this.state.releaseDate[1],
  90. depId:this.state.superId,//部门机构
  91. },
  92. success: function(data) {
  93. let thedata = data.data;
  94. let theArr = [];
  95. if(!thedata) {
  96. if(data.error && data.error.length) {
  97. message.warning(data.error[0].message);
  98. };
  99. thedata = {};
  100. }
  101. this.loadData(timeTypes)
  102. this.selectSuperId();
  103. }.bind(this),
  104. }).always(function() {
  105. this.setState({
  106. loading: false
  107. });
  108. }.bind(this));
  109. },
  110. //时间选择
  111. selTime(value,index){
  112. this.setState({
  113. Dtime:value,
  114. selTime:index
  115. })
  116. },
  117. //获取上级组织
  118. selectSuperId() {
  119. this.state.data = []
  120. $.ajax({
  121. method: "post",
  122. dataType: "json",
  123. crossDomain: false,
  124. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  125. data:{
  126. },
  127. success: function (data) {
  128. let theArr = [];
  129. let theId=[];//用于保存上级组织的ID和名称
  130. let thedata=data.data;
  131. if (!thedata) {
  132. if (data.error && data.error.length) {
  133. message.warning(data.error[0].message);
  134. };
  135. thedata = {};
  136. };
  137. var contactIds=[];
  138. for(var i=0;i<data.data.length;i++){
  139. let theData = data.data[i];
  140. theArr.push(
  141. <Select.Option value={theData.id} key={theData.id}>{theData.name}</Select.Option>
  142. );
  143. theId.push(
  144. [theData.id,theData.name]
  145. );
  146. };
  147. this.setState({
  148. SuperArr:thedata,
  149. contactsOption: theArr,
  150. theId: theId,
  151. orderStatusOptions:data.data,
  152. });
  153. }.bind(this),
  154. }).always(function () {
  155. this.setState({
  156. loading: false
  157. });
  158. }.bind(this));
  159. },
  160. //判断浏览器类型
  161. getExplorer() {
  162. var explorer = window.navigator.userAgent;
  163. //ie
  164. if(explorer.indexOf("MSIE") >= 0) {
  165. return 'ie';
  166. }
  167. //firefox
  168. else if(explorer.indexOf("Firefox") >= 0) {
  169. return 'Firefox';
  170. }
  171. //Chrome
  172. else if(explorer.indexOf("Chrome") >= 0) {
  173. return 'Chrome';
  174. }
  175. //Opera
  176. else if(explorer.indexOf("Opera") >= 0) {
  177. return 'Opera';
  178. }
  179. //Safari
  180. else if(explorer.indexOf("Safari") >= 0) {
  181. return 'Safari';
  182. }
  183. },
  184. //导出为exel表格
  185. tabExel() {
  186. var table = document.querySelector('#daochu');
  187. var idTmr;
  188. //debugger;
  189. //整个表格拷贝到EXCEL中
  190. if(this.getExplorer() == 'ie') {
  191. var curTbl = document.getElementById(tableid);
  192. var oXL = new ActiveXObject("Excel.Application");
  193. //创建AX对象excel
  194. var oWB = oXL.Workbooks.Add();
  195. //获取workbook对象
  196. var xlsheet = oWB.Worksheets(1);
  197. //激活当前sheet
  198. var sel = document.body.createTextRange();
  199. sel.moveToElementText(curTbl);
  200. //把表格中的内容移到TextRange中
  201. sel.select();
  202. //全选TextRange中内容
  203. sel.execCommand("Copy");
  204. //复制TextRange中内容
  205. xlsheet.Paste();
  206. //粘贴到活动的EXCEL中
  207. oXL.Visible = true;
  208. //设置excel可见属性
  209. try {
  210. var fname = oXL.Application.GetSaveAsFilename("Excel.xls", "Excel Spreadsheets (*.xls), *.xls");
  211. } catch(e) {
  212. print("Nested catch caught " + e);
  213. } finally {
  214. oWB.SaveAs(fname);
  215. oWB.Close(savechanges = false);
  216. //xls.visible = false;
  217. oXL.Quit();
  218. oXL = null;
  219. //结束excel进程,退出完成
  220. //window.setInterval("Cleanup();",1);
  221. idTmr = window.setInterval("Cleanup();", 1);
  222. }
  223. } else {
  224. this.tableToExcel(table,this.getExplorer());
  225. }
  226. function Cleanup() {
  227. window.clearInterval(idTmr);
  228. CollectGarbage();
  229. }
  230. },
  231. tableToExcel(table,name) {
  232. var uri = 'data:application/vnd.ms-excel;base64,',
  233. template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>',
  234. base64 = function(s) {
  235. return window.btoa(unescape(encodeURIComponent(s)))
  236. },
  237. format = function(s, c) {
  238. return s.replace(/{(\w+)}/g,
  239. function(m, p) {
  240. return c[p];
  241. })
  242. }
  243. if(!table.nodeType) table = document.getElementById(table);
  244. var ctx = {
  245. worksheet: name || 'Worksheet',
  246. table: table.innerHTML
  247. };
  248. window.location.href = uri + base64(format(template, ctx))
  249. },
  250. getInitialState() {
  251. return {
  252. releaseDate: [],
  253. selectedRowKeys: [],
  254. selectedRows: [],
  255. loading: false,
  256. visible: false,
  257. showDesc: false,
  258. timeState:false,
  259. weekColor:true,
  260. monthColor:false,
  261. quarterColor:false,
  262. yearColor:false,
  263. Dtime:undefined,
  264. timeTypes:0,
  265. selTime:'',
  266. columns: [
  267. {
  268. title: '序号',
  269. dataIndex: 'nub',
  270. width:50,
  271. key: 'nub',
  272. fixed:false,
  273. render:(text,record)=>{
  274. if(!record.theNumber){
  275. return text
  276. }else{
  277. return {
  278. children: text,
  279. props: {
  280. colSpan:0
  281. },
  282. }
  283. }
  284. }
  285. },
  286. {
  287. title: '公司名称',
  288. dataIndex: 'orgName',
  289. key: 'orgName',
  290. width:100,
  291. fixed:false,
  292. render:(text,record)=>{
  293. if(!record.theNumber){
  294. return text//&&text.length>6?<span title={text}>{text.substr(0,6)+'…'}</span>:text
  295. }else{
  296. return {
  297. children: text,
  298. props: {
  299. colSpan:3
  300. },
  301. }
  302. }
  303. }
  304. }, {
  305. title: '订单部门',
  306. fixed:false,
  307. width:100,
  308. dataIndex: 'orderDep',
  309. key: 'orderDep',
  310. render:(text,record)=>{
  311. if(!record.theNumber){
  312. return text
  313. }else{
  314. return {
  315. children: text,
  316. props: {
  317. colSpan:0
  318. },
  319. }
  320. }
  321. }
  322. },
  323. {
  324. title: '项目签单金额',
  325. fixed:false,
  326. dataIndex: 'signTotalAmount',
  327. key: 'signTotalAmount',
  328. sorter: (a, b) => a.signTotalAmount - b.signTotalAmount,
  329. render:(text,record)=>{
  330. if(!record.theNumber){
  331. return text
  332. }else{
  333. return {
  334. children: text,
  335. props: {
  336. colSpan:1
  337. },
  338. }
  339. }
  340. }
  341. }, {
  342. title: '签单日期',
  343. fixed:false,
  344. width:50,
  345. dataIndex: 'signTime',
  346. key: 'signTime',
  347. render:(text,record)=>{
  348. if(!record.theNumber){
  349. return text
  350. }else{
  351. return {
  352. children: text,
  353. props: {
  354. colSpan:0
  355. },
  356. }
  357. }
  358. }
  359. }, {
  360. title: '合同编号',
  361. fixed:false,
  362. dataIndex: 'contractNo',
  363. key: 'contractNo',
  364. render:(text,record)=>{
  365. if(!record.theNumber){
  366. return text
  367. }else{
  368. return {
  369. children: text,
  370. props: {
  371. colSpan:0
  372. },
  373. }
  374. }
  375. }
  376. },{
  377. title: '订单留言',
  378. fixed:false,
  379. width:200,
  380. dataIndex: 'orderRemarks',
  381. key: 'orderRemarks',
  382. render:(text,record)=>{
  383. if(!record.theNumber){
  384. return text
  385. }else{
  386. return {
  387. children: text,
  388. props: {
  389. colSpan:0
  390. },
  391. }
  392. }
  393. }
  394. },{
  395. title: '企业联系人',
  396. fixed:false,
  397. dataIndex: 'contacts',
  398. key: 'contacts',
  399. render:(text,record)=>{
  400. if(!record.theNumber){
  401. return text
  402. }else{
  403. return {
  404. children: text,
  405. props: {
  406. colSpan:0
  407. },
  408. }
  409. }
  410. }
  411. },{
  412. title: '联系人电话',
  413. fixed:false,
  414. dataIndex: 'contactMobile',
  415. key: 'contactMobile',
  416. render:(text,record)=>{
  417. if(!record.theNumber){
  418. return text
  419. }else{
  420. return {
  421. children: text,
  422. props: {
  423. colSpan:0
  424. },
  425. }
  426. }
  427. }
  428. },{
  429. title: '任务名称',
  430. fixed:false,
  431. dataIndex: 'commodityName',
  432. key: 'commodityName',
  433. render:(text,record)=>{
  434. if(!record.theNumber){
  435. return text
  436. }else{
  437. return {
  438. children: text,
  439. props: {
  440. colSpan:0
  441. },
  442. }
  443. }
  444. }
  445. },{
  446. title: '派单时间',
  447. fixed:false,
  448. dataIndex: 'taskDistributionTime',
  449. key: 'taskDistributionTime',
  450. render:(text,record)=>{
  451. if(!record.theNumber){
  452. return text
  453. }else{
  454. return {
  455. children: text,
  456. props: {
  457. colSpan:0
  458. },
  459. }
  460. }
  461. }
  462. },{
  463. title: '部门',
  464. fixed:false,
  465. dataIndex: 'dutyDep',
  466. key: 'dutyDep',
  467. render:(text,record)=>{
  468. if(!record.theNumber){
  469. return text
  470. }else{
  471. return {
  472. children: text,
  473. props: {
  474. colSpan:0
  475. },
  476. }
  477. }
  478. }
  479. },{
  480. title: '负责人',
  481. fixed:false,
  482. dataIndex: 'dutyName',
  483. key: 'dutyName',
  484. render:(text,record)=>{
  485. if(!record.theNumber){
  486. return text
  487. }else{
  488. return {
  489. children: text,
  490. props: {
  491. colSpan:0
  492. },
  493. }
  494. }
  495. }
  496. },{
  497. title: '负责人电话',
  498. fixed:false,
  499. dataIndex: 'dutyContactMobile',
  500. key: 'dutyContactMobile',
  501. render:(text,record)=>{
  502. if(!record.theNumber){
  503. return text
  504. }else{
  505. return {
  506. children: text,
  507. props: {
  508. colSpan:0
  509. },
  510. }
  511. }
  512. }
  513. },{
  514. title: '任务状态',
  515. fixed:false,
  516. dataIndex: 'taskStatus',
  517. key: 'taskStatus',
  518. render:(text,record)=>{
  519. if(!record.theNumber){
  520. return text
  521. }else{
  522. return {
  523. children: text,
  524. props: {
  525. colSpan:0
  526. },
  527. }
  528. }
  529. }
  530. },{
  531. title: '项目完成时间',
  532. fixed:false,
  533. dataIndex: 'finishTime',
  534. key: 'finishTime',
  535. render:(text,record)=>{
  536. if(!record.theNumber){
  537. return text
  538. }else{
  539. return {
  540. children: text,
  541. props: {
  542. colSpan:0
  543. },
  544. }
  545. }
  546. }
  547. },{
  548. title: '任务说明',
  549. fixed:false,
  550. width:200,
  551. dataIndex: 'taskComment',
  552. key: 'taskComment',
  553. render:(text,record)=>{
  554. if(!record.theNumber){
  555. return text
  556. }else{
  557. return {
  558. children: text,
  559. props: {
  560. colSpan:0
  561. },
  562. }
  563. }
  564. }
  565. },{
  566. title: '公示状态',
  567. fixed:false,
  568. dataIndex: 'publishStatus',
  569. key: 'publishStatus',
  570. render:(text,record)=>{
  571. if(!record.theNumber){
  572. return text
  573. }else{
  574. return {
  575. children: text,
  576. props: {
  577. colSpan:0
  578. },
  579. }
  580. }
  581. }
  582. },{
  583. title: '公示时间',
  584. fixed:false,
  585. dataIndex: 'publishTime',
  586. key: 'publishTime',
  587. render:(text,record)=>{
  588. if(!record.theNumber){
  589. return text
  590. }else{
  591. return {
  592. children: text,
  593. props: {
  594. colSpan:0
  595. },
  596. }
  597. }
  598. }
  599. },
  600. {
  601. title: '营销员',
  602. fixed:false,
  603. dataIndex: 'salesmanName',
  604. key: 'salesmanName',
  605. render:(text,record)=>{
  606. if(!record.theNumber){
  607. return text
  608. }else{
  609. return {
  610. children: text,
  611. props: {
  612. colSpan:1
  613. },
  614. }
  615. }
  616. }
  617. }
  618. ],
  619. dataSource: [],
  620. };
  621. },
  622. search() {
  623. this.loadData(this.state.timeTypes);
  624. },
  625. reset() {
  626. this.state.superId = undefined;//部门机构清零
  627. this.state.taskStatus= undefined;//任务状态
  628. this.state.publishStatus= undefined;//公示状态
  629. this.loadData(0)
  630. this.setState({
  631. order:"false",
  632. weekColor:true,
  633. monthColor:false,
  634. quarterColor:false,
  635. yearColor:false
  636. })
  637. },
  638. week(){
  639. this.state.releaseDate[0] = undefined;//开始时间清零
  640. this.state.releaseDate[1] = undefined;//结束时间清零
  641. this.loadData(0);
  642. this.setState({
  643. weekColor:true,
  644. monthColor:false,
  645. quarterColor:false,
  646. yearColor:false
  647. })
  648. },
  649. month(){
  650. this.state.releaseDate[0] = undefined;//开始时间清零
  651. this.state.releaseDate[1] = undefined;//结束时间清零
  652. this.loadData(1);
  653. this.setState({
  654. weekColor:false,
  655. monthColor:true,
  656. quarterColor:false,
  657. yearColor:false
  658. })
  659. },
  660. quarter(){
  661. this.state.releaseDate[0] = undefined;//开始时间清零
  662. this.state.releaseDate[1] = undefined;//结束时间清零
  663. this.loadData(2);
  664. this.setState({
  665. weekColor:false,
  666. monthColor:false,
  667. quarterColor:true,
  668. yearColor:false
  669. })
  670. },
  671. year(){
  672. this.state.releaseDate[0] = undefined;//开始时间清零
  673. this.state.releaseDate[1] = undefined;//结束时间清零
  674. this.loadData(3);
  675. this.setState({
  676. weekColor:false,
  677. monthColor:false,
  678. quarterColor:false,
  679. yearColor:true
  680. })
  681. },
  682. //重构排序
  683. tabChange(pagination,filter,sorter){
  684. console.log(pagination)
  685. console.log(sorter)
  686. },
  687. componentWillMount() {
  688. //this.loadData();
  689. this.totalData(0);
  690. let times=new Date();
  691. let nowTime=times.getFullYear()+'年'+(times.getMonth()+1)+'月'+times.getDate()+'日';
  692. this.setState({
  693. Nowtime:nowTime
  694. })
  695. },
  696. render() {
  697. const { RangePicker } = DatePicker;
  698. let departmentArr = this.state.departmentArr || [];
  699. return(
  700. <div className='set-content'>
  701. <p style={{fontSize:'20px',marginBottom:'10px'}}>订单统计报表</p>
  702. <div className="clearfix">
  703. <Button type="primary" onClick={this.tabExel} style={{ float:'right' }}>导出到表格</Button>
  704. <span style={{fontSize:'16px'}}>部门机构 : </span>
  705. <Select placeholder="选择部门"
  706. style={{ width:'200px',marginRight:'10px' }}
  707. value={this.state.superId}
  708. onChange={(e) => { this.setState({ superId: e }) }} notFoundContent="未获取到上级组织列表">
  709. {this.state.contactsOption}
  710. </Select>
  711. <Select placeholder="任务状态"
  712. style={{ width: 150 ,marginRight:'10px'}}
  713. value={this.state.taskStatus}
  714. onChange={(e) => { this.setState({ taskStatus: e }) }}>
  715. {
  716. taskStatus.map(function (item) {
  717. return <Select.Option key={item.value} >{item.key}</Select.Option>
  718. })
  719. }
  720. </Select>
  721. <Select placeholder="公示状态"
  722. style={{ width: 150 ,marginRight:'10px'}}
  723. value={this.state.publishStatus}
  724. onChange={(e) => { this.setState({ publishStatus: e }) }}>
  725. {
  726. publishStatus.map(function (item) {
  727. return <Select.Option key={item.value} >{item.key}</Select.Option>
  728. })
  729. }
  730. </Select>
  731. <Button type="primary" onClick={this.search} style={{marginLeft:'10px',marginRight:'10px'}}>搜索</Button>
  732. <Button onClick={this.reset}>重置</Button>
  733. <div className="clearfix" style={{marginTop:"10px"}}>
  734. <Button onClick={this.week} style={{marginRight:'5px'}} type={this.state.weekColor?"primary":''}>本周</Button>
  735. <Button onClick={this.month} style={{marginRight:'5px'}} type={this.state.monthColor?"primary":''}>本月</Button>
  736. <Button onClick={this.quarter} style={{marginRight:'5px'}} type={this.state.quarterColor?"primary":''}>本季</Button>
  737. <Button onClick={this.year} style={{marginRight:'5px'}} type={this.state.yearColor?"primary":''}>本年</Button>
  738. <span className="titleTime" style={{marginRight:'5px',marginTop:"0px"}}>起止时间:</span>
  739. <RangePicker style={{marginRight:'5px',marginTop:"0px"}}
  740. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  741. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  742. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  743. </div>
  744. </div>
  745. <div id='daochu'>
  746. <div className="surfaceTitle">
  747. <span style={{marginTop:"10px"}}>订单统计报表</span>
  748. </div>
  749. <div className="patent-table" id='daochu'>
  750. <div className="scroll">
  751. <Spin spinning={this.state.loading}>
  752. <Table columns={this.state.columns}
  753. dataSource={this.state.dataSource}
  754. //scroll={{ x: 600,y:500}}
  755. bordered
  756. onChange={this.tabChange}
  757. pagination={false}
  758. />
  759. </Spin>
  760. </div>
  761. </div>
  762. </div>
  763. </div>
  764. )
  765. }
  766. });
  767. export default DiurnalStatistics;