From ede4834577b0c780081f26e9b78ffbccb64ed8d1 Mon Sep 17 00:00:00 2001 From: Jimmy Liow <18777396951@163.com> Date: Wed, 14 Dec 2022 10:47:36 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=9C=B0=E6=8E=A5?= =?UTF-8?q?=E7=A4=BE=E5=9B=A2=E4=BF=A1=E6=81=AF=EF=BC=8C=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=EF=BC=8C=E8=B0=83=E6=95=B4?= =?UTF-8?q?=20URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.js | 6 +- src/stores/CustomerServices.js | 64 +++++++++++-- src/views/AgentGroupCount.js | 167 +++++++++++++++++++++++++++++++++ src/views/AgentList.js | 87 ----------------- src/views/GroupList.js | 2 +- 5 files changed, 228 insertions(+), 98 deletions(-) create mode 100644 src/views/AgentGroupCount.js delete mode 100644 src/views/AgentList.js diff --git a/src/App.js b/src/App.js index 207e392..18ea10f 100644 --- a/src/App.js +++ b/src/App.js @@ -13,7 +13,7 @@ import Customer_care_potential from "./charts/Customer_care_potential"; import Customer_care_regular from "./charts/Customer_care_regular"; import Wechat_session from "./charts/Wechat_session"; import WhatsApp_session from "./charts/WhatsApp_session"; -import AgentList from "./views/AgentList"; +import AgentGroupCount from "./views/AgentGroupCount"; import GroupList from "./views/GroupList"; import Credit_card_bill from "./views/Credit_card_bill"; import exchange_rate from "./charts/ExchangeRate"; @@ -71,7 +71,7 @@ const App = () => { label: "客服", icon: , children: [ - { key: 61, label: 地接社接团 }, + { key: 61, label: 地接社接团 }, ], } ]; @@ -105,7 +105,7 @@ const App = () => { } /> } /> } /> - } /> + } /> } /> }> diff --git a/src/stores/CustomerServices.js b/src/stores/CustomerServices.js index ebaea7a..4e3a665 100644 --- a/src/stores/CustomerServices.js +++ b/src/stores/CustomerServices.js @@ -3,6 +3,7 @@ import moment from "moment"; import { NavLink } from "react-router-dom"; import * as config from "../config"; import * as req from '../utils/request'; +import { prepareUrl } from '../utils/commons'; class CustomerServices { @@ -14,19 +15,47 @@ class CustomerServices { this.endDateString = this.endDate.format(config.DATE_FORMAT) + '%2023:59'; this.dateType = 'startDate'; this.inProgress = false; - this.selectedAgent = {VendorName: '请选择地接社'}; + this.selectedAgent = ''; + this.selectedTeam = ''; + this.selectedCountry = ''; makeAutoObservable(this); } - fetchAgentList() { + fetchAllAgent() { this.inProgress = true; - req.fetchJSON(config.HT_HOST + '/service-web/QueryData/GetAgentGroupInfoALL?DateType=' + this.dateType + '&Date1=' + this.startDateString + '&Date2=' + this.endDateString + '&OldDate1=' + this.startDateString + '&OldDate2=' + this.endDateString) + req.fetchJSON(config.HT_HOST + '/service-web/QueryData/GetVEIName') .then(json => { if (json.errcode === 0) { runInAction(() => { this.agentList = json.result1; + }); + } + }) + .then(() => { + this.inProgress = false; + }); + } + + fetchAgentGroupList() { + this.inProgress = true; + const fetchUrl = prepareUrl(config.HT_HOST + '/service-web/QueryData/GetAgentGroupInfoALL') + .append('DateType', this.dateType) + .append('Date1', this.startDateString) + .append('Date2', this.endDateString) + .append('OldDate1', this.startDateString) + .append('OldDate2', this.endDateString) + .append('VEI_SN', this.selectedAgent) + .append('DepList', this.selectedTeam) + .append('Country', this.selectedCountry) + .build(); + console.info('fetchUrl: ' + fetchUrl); + req.fetchJSON(fetchUrl) + .then(json => { + if (json.errcode === 0) { + runInAction(() => { + this.agentGroupList = json.result1; const total1 = json.total1; - this.agentListColumns = [ + this.agentGroupListColumns = [ { title: '地接社名称', dataIndex: 'VendorName', @@ -77,6 +106,16 @@ class CustomerServices { } ] }, + { + title: '前勤分', + dataIndex: 'qianqin', + sorter: (a, b) => a.qianqin - b.qianqin, + children: [{ + title: total1.qianqin, + dataIndex: 'qianqin' + } + ] + }, { title: '好评数', dataIndex: 'GoodCount', @@ -249,7 +288,14 @@ class CustomerServices { selectAgent(agent) { this.selectedAgent = agent; - this.fetchGroupListByAgent(); + } + + selectTeam(team) { + this.selectedTeam = team; + } + + selectCountry(country) { + this.selectedCountry = country; } startDate; @@ -258,13 +304,17 @@ class CustomerServices { endDateString; dateType; selectedAgent; + selectedTeam; + selectedCountry; inProgress; + + agentList = []; groupList = []; groupListColumns = []; - agentList = [{ + agentGroupList = [{ EOI_ObjSN: 1, VendorName: '---', GroupCount: 0, @@ -278,7 +328,7 @@ class CustomerServices { key: 1 }]; - agentListColumns = [ + agentGroupListColumns = [ { title: '地接社名称', dataIndex: 'VendorName', diff --git a/src/views/AgentGroupCount.js b/src/views/AgentGroupCount.js new file mode 100644 index 0000000..ccfb7e6 --- /dev/null +++ b/src/views/AgentGroupCount.js @@ -0,0 +1,167 @@ +import React, {useContext, useEffect} from 'react'; +import { Row, Col, Typography, Space, DatePicker, Button, Select, Table, Divider } from 'antd'; +import { + SearchOutlined, +} from '@ant-design/icons'; +import { stores_Context } from '../config' +import * as config from "../config"; +import { observer } from 'mobx-react'; +import 'moment/locale/zh-cn'; +import moment from "moment"; +import zhCNlocale from 'antd/es/date-picker/locale/zh_CN'; +import { utils, writeFileXLSX } from "xlsx"; + +const AgentGroupCount = () => { + + const {customerServicesStore} = useContext(stores_Context); + const agentList = customerServicesStore.agentList; + const agentGroupList = customerServicesStore.agentGroupList; + const agentGroupListColumns = customerServicesStore.agentGroupListColumns; + const {startDate, endDate, dateType, inProgress} = customerServicesStore; + + useEffect(() => { + customerServicesStore.fetchAllAgent(); + }, []); + + const handleSearchClick = () => { + customerServicesStore.fetchAgentGroupList(); + } + + const renderAgentItem = (agent) => { + return ( + + {agent.VEI2_CompanyBN} + + ); + } + + return ( + <> + + + + + + + + + + + + + + + + { customerServicesStore.selectDateRange(dates[0], dates[1]) }} + ranges={{ + '本周': [moment().startOf('week'), moment().endOf('week')], + '上周': [moment().startOf('week').subtract(7, 'days'), moment().endOf('week').subtract(7, 'days')], + '本月': [moment().startOf('month'), moment().endOf('month')], + '上个月': [moment().subtract(1, 'months').startOf('month'), moment(new Date()).subtract(1, 'months').endOf('month')], + '近30天': [moment().subtract(30, 'days'), moment()], + '近三个月': [moment().subtract(2, 'month').startOf('month'), moment().endOf('month')], + '今年': [moment().startOf('year').subtract(1, 'month'), moment().endOf('year').subtract(1, 'month')], + '去年': [moment().subtract(1, 'year').startOf('year').subtract(1, 'month'), moment().subtract(1, 'year').endOf('year').subtract(1, 'month')], + }} + /> + + + + + + + + 地接社团信息 + record.key} + loading={inProgress} + pagination={false} + scroll={{ x: "100%" }} + /> + + { + const wb = utils.table_to_book(document.getElementById("agentGroupList").getElementsByTagName("table")[0]); + writeFileXLSX(wb, "地接社团信息.xlsx"); + }}> + 导出excel + + + + + + + ); +} + +export default observer(AgentGroupCount); \ No newline at end of file diff --git a/src/views/AgentList.js b/src/views/AgentList.js deleted file mode 100644 index 70d26da..0000000 --- a/src/views/AgentList.js +++ /dev/null @@ -1,87 +0,0 @@ -import React, {useContext} from 'react'; -import { Row, Col, Typography, Space, DatePicker, Button, Select, Table } from 'antd'; -import { - SearchOutlined, -} from '@ant-design/icons'; -import { stores_Context } from '../config' -import * as config from "../config"; -import { observer } from 'mobx-react'; -import 'moment/locale/zh-cn'; -import moment from "moment"; -import zhCNlocale from 'antd/es/date-picker/locale/zh_CN'; - -const AgentList = () => { - - const {customerServicesStore} = useContext(stores_Context); - const agentList = customerServicesStore.agentList; - const agentListColumns = customerServicesStore.agentListColumns; - const {startDate, endDate, dateType, inProgress} = customerServicesStore; - - const handleSearchClick = () => { - customerServicesStore.fetchAgentList(); - } - - return ( - <> - - - - - - - { customerServicesStore.selectDateRange(dates[0], dates[1]) }} - ranges={{ - '本周': [moment().startOf('week'), moment().endOf('week')], - '上周': [moment().startOf('week').subtract(7, 'days'), moment().endOf('week').subtract(7, 'days')], - '本月': [moment().startOf('month'), moment().endOf('month')], - '上个月': [moment().subtract(1, 'months').startOf('month'), moment(new Date()).subtract(1, 'months').endOf('month')], - '近30天': [moment().subtract(30, 'days'), moment()], - '近三个月': [moment().subtract(2, 'month').startOf('month'), moment().endOf('month')], - '今年': [moment().startOf('year').subtract(1, 'month'), moment().endOf('year').subtract(1, 'month')], - '去年': [moment().subtract(1, 'year').startOf('year').subtract(1, 'month'), moment().subtract(1, 'year').endOf('year').subtract(1, 'month')], - }} - /> - - - - - - - - 地接社团信息 -
record.key} - loading={inProgress} - pagination={false} - scroll={{ x: "100%" }} - /> - - - - - ); -} - -export default observer(AgentList); \ No newline at end of file diff --git a/src/views/GroupList.js b/src/views/GroupList.js index beaf307..99e795d 100644 --- a/src/views/GroupList.js +++ b/src/views/GroupList.js @@ -29,7 +29,7 @@ const GroupList = () => { - 返回 + 返回 customerServicesStore.selectTeam(value)} + > + 所有小组 + GH事业部 + 国际事业部 + 孵化学院 + CH直销 + CH大客户 + AH + 市场推广 + 德语 + 日语 + 法语 + 西语 + 俄语 + 意语 + 商旅 + CT + APP + Trippest + 花梨鹰 + + + +
record.key} loading={inProgress} pagination={false} scroll={{ x: "100%" }} /> + {customerServicesStore.agentCompany} +
record.key} + loading={inProgress} + pagination={false} + scroll={{ x: "100%" }} + expandable={{ + expandedRowRender: (record) => ( + + + + + + + + + + ), + }} + /> From 8f90ddcd77269a7544dcde6bb1371628e33763db Mon Sep 17 00:00:00 2001 From: Jimmy Liow <18777396951@163.com> Date: Wed, 14 Dec 2022 15:48:21 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=B0=E6=8E=A5?= =?UTF-8?q?=E7=A4=BE=E5=9B=A2=E7=BB=9F=E8=AE=A1=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.js | 8 ++++---- src/stores/CustomerServices.js | 2 +- src/views/{GroupList.js => AgentGroupList.js} | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) rename src/views/{GroupList.js => AgentGroupList.js} (98%) diff --git a/src/App.js b/src/App.js index 18ea10f..03a4f53 100644 --- a/src/App.js +++ b/src/App.js @@ -14,7 +14,7 @@ import Customer_care_regular from "./charts/Customer_care_regular"; import Wechat_session from "./charts/Wechat_session"; import WhatsApp_session from "./charts/WhatsApp_session"; import AgentGroupCount from "./views/AgentGroupCount"; -import GroupList from "./views/GroupList"; +import AgentGroupList from "./views/AgentGroupList"; import Credit_card_bill from "./views/Credit_card_bill"; import exchange_rate from "./charts/ExchangeRate"; import Sale from "./views/Sale"; @@ -71,7 +71,7 @@ const App = () => { label: "客服", icon: , children: [ - { key: 61, label: 地接社接团 }, + { key: 61, label: 地接社接团 }, ], } ]; @@ -105,8 +105,8 @@ const App = () => { } /> } /> } /> - } /> - } /> + } /> + } /> }> } /> diff --git a/src/stores/CustomerServices.js b/src/stores/CustomerServices.js index 92ce906..fb399ed 100644 --- a/src/stores/CustomerServices.js +++ b/src/stores/CustomerServices.js @@ -61,7 +61,7 @@ class CustomerServices { children: [{ // title: this.startDate.format(config.DATE_FORMAT) + '~' + this.endDate.format(config.DATE_FORMAT), dataIndex: 'VendorName', - render: (text, record) => {record.VendorName} + render: (text, record) => {record.VendorName} } ] }, diff --git a/src/views/GroupList.js b/src/views/AgentGroupList.js similarity index 98% rename from src/views/GroupList.js rename to src/views/AgentGroupList.js index 8009050..7e8e016 100644 --- a/src/views/GroupList.js +++ b/src/views/AgentGroupList.js @@ -11,7 +11,7 @@ import 'moment/locale/zh-cn'; import moment from "moment"; import zhCNlocale from 'antd/es/date-picker/locale/zh_CN'; -const GroupList = () => { +const AgentGroupList = () => { const {agentId} = useParams(); const { customerServicesStore } = useContext(stores_Context); @@ -29,7 +29,7 @@ const GroupList = () => { - 返回 + 返回 - - - customerServicesStore.selectTeam(value)} + > + 所有小组 + GH事业部 + 国际事业部 + 孵化学院 + CH直销 + CH大客户 + AH + 市场推广 + 德语 + 日语 + 法语 + 西语 + 俄语 + 意语 + 商旅 + CT + APP + Trippest + 花梨鹰 + + + + + + + + + + { customerServicesStore.selectDateRange(dates[0], dates[1]) }} + ranges={{ + '本周': [moment().startOf('week'), moment().endOf('week')], + '上周': [moment().startOf('week').subtract(7, 'days'), moment().endOf('week').subtract(7, 'days')], + '本月': [moment().startOf('month'), moment().endOf('month')], + '上个月': [moment().subtract(1, 'months').startOf('month'), moment(new Date()).subtract(1, 'months').endOf('month')], + '近30天': [moment().subtract(30, 'days'), moment()], + '近三个月': [moment().subtract(2, 'month').startOf('month'), moment().endOf('month')], + '今年': [moment().startOf('year').subtract(1, 'month'), moment().endOf('year').subtract(1, 'month')], + '去年': [moment().subtract(1, 'year').startOf('year').subtract(1, 'month'), moment().subtract(1, 'year').endOf('year').subtract(1, 'month')], + }} + /> + + + + + + + + 目的地团信息 +
record.key} + loading={inProgress} + pagination={false} + scroll={{ x: "100%" }} + /> + + { + const wb = utils.table_to_book(document.getElementById("destinationGroupCount").getElementsByTagName("table")[0]); + writeFileXLSX(wb, "目的地团信息.xlsx"); + }}> + 导出excel + + + + + + + ); +} + +export default observer(DestinationGroupCount); \ No newline at end of file From 12e37cc85c7c5efaa6a865054f39f4da3a92a21b Mon Sep 17 00:00:00 2001 From: Jimmy Liow <18777396951@163.com> Date: Wed, 28 Dec 2022 16:13:28 +0800 Subject: [PATCH 7/9] =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=9B=AE=E7=9A=84?= =?UTF-8?q?=E5=9C=B0=E5=9B=A2=E9=87=8F=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.js | 4 +- src/stores/CustomerServices.js | 91 +++++++++++++++++++ src/views/DestinationGroupList.js | 142 ++++++++++++++++++++++++++++++ 3 files changed, 236 insertions(+), 1 deletion(-) create mode 100644 src/views/DestinationGroupList.js diff --git a/src/App.js b/src/App.js index 6807383..f209d8f 100644 --- a/src/App.js +++ b/src/App.js @@ -16,6 +16,7 @@ import WhatsApp_session from "./charts/WhatsApp_session"; import AgentGroupCount from "./views/AgentGroupCount"; import AgentGroupList from "./views/AgentGroupList"; import DestinationGroupCount from "./views/DestinationGroupCount"; +import DestinationGroupList from "./views/DestinationGroupList"; import Credit_card_bill from "./views/Credit_card_bill"; import exchange_rate from "./charts/ExchangeRate"; import Sale from "./views/Sale"; @@ -109,7 +110,8 @@ const App = () => { } /> } /> } /> - } /> + } /> + } /> }> } /> diff --git a/src/stores/CustomerServices.js b/src/stores/CustomerServices.js index 3d2fc54..5689b40 100644 --- a/src/stores/CustomerServices.js +++ b/src/stores/CustomerServices.js @@ -350,6 +350,97 @@ class CustomerServices { }); } + fetchGroupListByDestinationId(destinationId) { + this.inProgress = true; + this.destinationName = '...'; + this.destinationGroupList = []; + this.destinationGroupListColumns = []; + const fetchUrl = prepareUrl(config.HT_HOST + '/service-web/QueryData/GetdistGroupInfo') + .append('city', destinationId) + .append('DateType', this.dateType) + .append('Date1', this.startDateString) + .append('Date2', this.endDateString) + .append('OldDate1', this.startDateString) + .append('OldDate2', this.endDateString) + .append('DepList', this.selectedTeam) + .append('Country', this.selectedCountry) + .build(); + req.fetchJSON(fetchUrl) + .then(json => { + if (json.errcode === 0) { + runInAction(() => { + this.destinationGroupList = json.result1; + if (json.result1.length > 0) { + // this.destinationName = json.result1[0].VendorName; + } + const total1 = json.total1; + this.destinationGroupListColumns = [ + { + title: '团名', + dataIndex: 'GRI_Name', + children: [{ + title: '', + dataIndex: 'GRI_Name' + } + ] + }, + { + title: '人数', + dataIndex: 'COLI_PersonNum', + sorter: (a, b) => a.COLI_PersonNum - b.COLI_PersonNum, + children: [{ + title: total1.COLI_PersonNum, + dataIndex: 'COLI_PersonNum' + } + ] + }, + { + title: '天数', + dataIndex: 'COLI_Days', + sorter: (a, b) => a.COLI_Days - b.COLI_Days, + children: [{ + title: total1.COLI_Days, + dataIndex: 'COLI_Days' + } + ] + }, + { + title: '交易额', + dataIndex: 'COLD_TotalCost', + sorter: (a, b) => a.COLD_TotalCost - b.COLD_TotalCost, + children: [{ + title: total1.COLD_TotalCost, + dataIndex: 'COLD_TotalCost' + } + ] + }, + { + title: '确认日期', + dataIndex: 'COLI_ConfirmDate', + children: [{ + title: '-', + dataIndex: 'COLI_ConfirmDate' + } + ] + }, + { + title: '出发日期', + dataIndex: 'COLI_OrderStartDate', + children: [{ + title: '-', + dataIndex: 'COLI_OrderStartDate' + } + ] + } + ]; + }); + } + }) + .then(() => { + this.inProgress = false; + }); + } + selectDateRange(startDate, endDate) { this.startDate = startDate; this.endDate = endDate; diff --git a/src/views/DestinationGroupList.js b/src/views/DestinationGroupList.js new file mode 100644 index 0000000..0fcfb15 --- /dev/null +++ b/src/views/DestinationGroupList.js @@ -0,0 +1,142 @@ +import React, {useContext, useEffect} from 'react'; +import {Row, Col, Typography, Space, DatePicker, Button, Select, Table, List} from 'antd'; +import { + SearchOutlined, +} from '@ant-design/icons'; +import {stores_Context} from '../config' +import * as config from "../config"; +import {observer} from 'mobx-react'; +import { NavLink, useParams } from "react-router-dom"; +import 'moment/locale/zh-cn'; +import moment from "moment"; +import zhCNlocale from 'antd/es/date-picker/locale/zh_CN'; + +const DestinationGroupList = () => { + + const {destinationId} = useParams(); + const { customerServicesStore } = useContext(stores_Context); + + useEffect(() => { + customerServicesStore.fetchGroupListByDestinationId(destinationId); + }, []); + + const destinationGroupList = customerServicesStore.destinationGroupList; + const destinationGroupListColumns = customerServicesStore.destinationGroupListColumns; + const {startDate, endDate, dateType, inProgress} = customerServicesStore; + + return ( + <> + + + + 返回 + + + + + + + + + {customerServicesStore.selectDateRange(dates[0], dates[1])}} + ranges={{ + '本周': [moment().startOf('week'), moment().endOf('week')], + '上周': [moment().startOf('week').subtract(7, 'days'), moment().endOf('week').subtract(7, 'days')], + '本月': [moment().startOf('month'), moment().endOf('month')], + '上个月': [moment().subtract(1, 'months').startOf('month'), moment(new Date()).subtract(1, 'months').endOf('month')], + '近30天': [moment().subtract(30, 'days'), moment()], + '近三个月': [moment().subtract(2, 'month').startOf('month'), moment().endOf('month')], + '今年': [moment().startOf('year').subtract(1, 'month'), moment().endOf('year').subtract(1, 'month')], + '去年': [moment().subtract(1, 'year').startOf('year').subtract(1, 'month'), moment().subtract(1, 'year').endOf('year').subtract(1, 'month')], + }} + /> + + + + + + + + {customerServicesStore.agentCompany} +
record.key} + loading={inProgress} + pagination={false} + scroll={{ x: "100%" }} + expandable={{ + expandedRowRender: (record) => ( + + + + + + + + + + ), + }} + /> + + + + + ); +} + +export default observer(DestinationGroupList); From 157c892f4a933d1ac6b06323a6af928dff5886d1 Mon Sep 17 00:00:00 2001 From: Jimmy Liow <18777396951@163.com> Date: Thu, 29 Dec 2022 16:10:22 +0800 Subject: [PATCH 8/9] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=9C=B0=E6=8E=A5?= =?UTF-8?q?=E7=A4=BE=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/DestinationGroupList.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/views/DestinationGroupList.js b/src/views/DestinationGroupList.js index 0fcfb15..2077b78 100644 --- a/src/views/DestinationGroupList.js +++ b/src/views/DestinationGroupList.js @@ -29,7 +29,7 @@ const DestinationGroupList = () => { - 返回 + 返回
{ From 3ccf68af6ad806af087aaa478d86c659922d8052 Mon Sep 17 00:00:00 2001 From: Jimmy Liow <18777396951@163.com> Date: Tue, 3 Jan 2023 09:48:43 +0800 Subject: [PATCH 9/9] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=8D=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E7=9A=84=E4=BE=9B=E5=BA=94=E5=95=86=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/DestinationGroupCount.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/views/DestinationGroupCount.js b/src/views/DestinationGroupCount.js index b6d7ab9..160c832 100644 --- a/src/views/DestinationGroupCount.js +++ b/src/views/DestinationGroupCount.js @@ -14,7 +14,6 @@ import { utils, writeFileXLSX } from "xlsx"; const DestinationGroupCount = () => { const {customerServicesStore} = useContext(stores_Context); - const agentList = customerServicesStore.agentList; const destinationGroupCount = customerServicesStore.destinationGroupCount; const destinationGroupCountColumns = customerServicesStore.destinationGroupCountColumns; const {startDate, endDate, dateType, inProgress} = customerServicesStore; @@ -27,14 +26,6 @@ const DestinationGroupCount = () => { customerServicesStore.fetchDestinationGroupCount(); } - const renderAgentItem = (agent) => { - return ( - - {agent.VEI2_CompanyBN} - - ); - } - return ( <>