update
This commit is contained in:
parent
56d45a0f28
commit
8334976258
@ -60,7 +60,18 @@ const handleGetData = async () => {
|
|||||||
GetFromRedis: true
|
GetFromRedis: true
|
||||||
// ProvinceCode: "340000",
|
// ProvinceCode: "340000",
|
||||||
}
|
}
|
||||||
const data = await handleGetProjectSummaryInfo(req)
|
|
||||||
|
|
||||||
|
let AccountsReceivableWarning = sessionStorage.getItem('AccountsReceivableWarning')
|
||||||
|
let data: any = []
|
||||||
|
if (AccountsReceivableWarning) {
|
||||||
|
data = JSON.parse(AccountsReceivableWarning)
|
||||||
|
} else {
|
||||||
|
data = await handleGetProjectSummaryInfo(req)
|
||||||
|
sessionStorage.setItem("AccountsReceivableWarning", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
// const data = await handleGetProjectSummaryInfo(req)
|
||||||
|
|
||||||
|
|
||||||
// 应收账款预警
|
// 应收账款预警
|
||||||
|
|||||||
@ -138,7 +138,17 @@ const handleGetData = async () => {
|
|||||||
const req: any = {
|
const req: any = {
|
||||||
GetFromRedis: true
|
GetFromRedis: true
|
||||||
}
|
}
|
||||||
const data = await handleGetProjectYearlyArrearageList(req)
|
|
||||||
|
let AnnualAccountsReceivable = sessionStorage.getItem('AnnualAccountsReceivable')
|
||||||
|
let data: any = []
|
||||||
|
if (AnnualAccountsReceivable) {
|
||||||
|
data = JSON.parse(AnnualAccountsReceivable)
|
||||||
|
} else {
|
||||||
|
data = await handleGetProjectYearlyArrearageList(req)
|
||||||
|
sessionStorage.setItem("AnnualAccountsReceivable", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
// const data = await handleGetProjectYearlyArrearageList(req)
|
||||||
|
|
||||||
let list: any = data.ProjectMonthlyCompleteList.slice(0, 5)
|
let list: any = data.ProjectMonthlyCompleteList.slice(0, 5)
|
||||||
list.reverse()
|
list.reverse()
|
||||||
|
|||||||
@ -105,7 +105,18 @@ const handleGetData = async () => {
|
|||||||
StatisticsDate: moment().subtract(1, 'd').format('YYYY-MM-DD'),
|
StatisticsDate: moment().subtract(1, 'd').format('YYYY-MM-DD'),
|
||||||
// ServerpartId: ''
|
// ServerpartId: ''
|
||||||
}
|
}
|
||||||
const data = await handleGetBusinessBrandLevel(req)
|
|
||||||
|
let BrandConsumptionLevel = sessionStorage.getItem('BrandConsumptionLevel')
|
||||||
|
let data: any = []
|
||||||
|
if (BrandConsumptionLevel) {
|
||||||
|
data = JSON.parse(BrandConsumptionLevel)
|
||||||
|
} else {
|
||||||
|
data = await handleGetBusinessBrandLevel(req)
|
||||||
|
sessionStorage.setItem("BrandConsumptionLevel", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// const data = await handleGetBusinessBrandLevel(req)
|
||||||
|
|
||||||
|
|
||||||
category = data.legend
|
category = data.legend
|
||||||
|
|||||||
@ -145,7 +145,18 @@ const handleGetData = async () => {
|
|||||||
let req: any = {
|
let req: any = {
|
||||||
ProvinceCode: "530000"
|
ProvinceCode: "530000"
|
||||||
}
|
}
|
||||||
const data = await handleGetBrandStructureAnalysis(req)
|
// const data = await handleGetBrandStructureAnalysis(req)
|
||||||
|
let BrandDetail = sessionStorage.getItem('BrandDetail')
|
||||||
|
let data: any = []
|
||||||
|
if (BrandDetail) {
|
||||||
|
data = JSON.parse(BrandDetail)
|
||||||
|
} else {
|
||||||
|
data = await handleGetBrandStructureAnalysis(req)
|
||||||
|
sessionStorage.setItem("BrandDetail", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
let category: any = []
|
let category: any = []
|
||||||
let pieData: any = []
|
let pieData: any = []
|
||||||
if (data && data.length > 0) {
|
if (data && data.length > 0) {
|
||||||
@ -170,40 +181,63 @@ const handleGetData = async () => {
|
|||||||
// }
|
// }
|
||||||
// const data = await handleGetBusinessTradeTree(req)
|
// const data = await handleGetBusinessTradeTree(req)
|
||||||
|
|
||||||
const listData = await handleGetBusinessTradeTree({
|
// const listData = await handleGetBusinessTradeTree({
|
||||||
PROVINCE_CODE: "530000",
|
// PROVINCE_CODE: "530000",
|
||||||
PageIndex: 1
|
// PageIndex: 1
|
||||||
// BRAND_STATE: 1,
|
// // BRAND_STATE: 1,
|
||||||
// SERVERPART_IDS: props.currentService?.SERVERPART_ID || ""
|
// // SERVERPART_IDS: props.currentService?.SERVERPART_ID || ""
|
||||||
})
|
// })
|
||||||
|
|
||||||
let tableList: any = []
|
|
||||||
|
|
||||||
if (listData && listData.length > 0) {
|
let BrandTab = sessionStorage.getItem('BrandTab')
|
||||||
listData.forEach((item: any) => {
|
let BrandTabList = sessionStorage.getItem('BrandTabList')
|
||||||
tableList.push({ label: item.AUTOSTATISTICS_NAME, value: item.AUTOSTATISTICS_ID })
|
let listData: any = []
|
||||||
|
if (BrandTab && BrandTabList) {
|
||||||
|
let obj = JSON.parse(BrandTab)
|
||||||
|
let list: any = JSON.parse(BrandTabList)
|
||||||
|
allBrandObjData.value = obj
|
||||||
|
brandListData.value = obj[list[0].value]
|
||||||
|
} else {
|
||||||
|
listData = await handleGetBusinessTradeTree({
|
||||||
|
PROVINCE_CODE: "530000",
|
||||||
|
PageIndex: 1
|
||||||
|
// BRAND_STATE: 1,
|
||||||
|
// SERVERPART_IDS: props.currentService?.SERVERPART_ID || ""
|
||||||
})
|
})
|
||||||
}
|
let tableList: any = []
|
||||||
|
|
||||||
tabList.value = tableList
|
if (listData && listData.length > 0) {
|
||||||
|
listData.forEach((item: any) => {
|
||||||
|
tableList.push({ label: item.AUTOSTATISTICS_NAME, value: item.AUTOSTATISTICS_ID })
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
let obj: any = {}
|
tabList.value = tableList
|
||||||
|
sessionStorage.setItem("BrandTabList", JSON.stringify(tableList))
|
||||||
|
|
||||||
if (tableList && tableList.length > 0) {
|
let obj: any = {}
|
||||||
for (let i = 0; i < tableList.length; i++) {
|
|
||||||
obj[tableList[i].value] = await handleGetTableData(tableList[i].value)
|
|
||||||
|
|
||||||
if (i === 0) {
|
if (tableList && tableList.length > 0) {
|
||||||
console.log('i 0 ', obj[tableList[i].value]);
|
for (let i = 0; i < tableList.length; i++) {
|
||||||
brandListData.value = obj[tableList[i].value]
|
obj[tableList[i].value] = await handleGetTableData(tableList[i].value)
|
||||||
|
|
||||||
|
if (i === 0) {
|
||||||
|
console.log('i 0 ', obj[tableList[i].value]);
|
||||||
|
brandListData.value = obj[tableList[i].value]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
console.log('obj', obj);
|
||||||
|
sessionStorage.setItem("BrandTab", JSON.stringify(obj))
|
||||||
|
allBrandObjData.value = obj
|
||||||
|
brandListData.value = obj[tableList[0].value]
|
||||||
|
|
||||||
}
|
}
|
||||||
console.log('obj', obj);
|
|
||||||
|
|
||||||
allBrandObjData.value = obj
|
|
||||||
|
|
||||||
brandListData.value = obj[tableList[0].value]
|
|
||||||
|
|
||||||
|
|
||||||
// await handleGetTableData(tableList[0].value)
|
// await handleGetTableData(tableList[0].value)
|
||||||
|
|
||||||
let res: any = {
|
let res: any = {
|
||||||
|
|||||||
@ -88,7 +88,16 @@ const handleGetData = async () => {
|
|||||||
ServerpartId: props.currentService?.SERVERPART_ID || "",
|
ServerpartId: props.currentService?.SERVERPART_ID || "",
|
||||||
}
|
}
|
||||||
|
|
||||||
const data = await handleCodeGetRevenueCompare(req)
|
let BusinessCase = sessionStorage.getItem('BusinessCase')
|
||||||
|
let data: any = []
|
||||||
|
if (BusinessCase) {
|
||||||
|
data = JSON.parse(BusinessCase)
|
||||||
|
} else {
|
||||||
|
data = await handleCodeGetRevenueCompare(req)
|
||||||
|
sessionStorage.setItem("BusinessCase", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
// const data = await handleCodeGetRevenueCompare(req)
|
||||||
|
|
||||||
getAllData.value = data
|
getAllData.value = data
|
||||||
|
|
||||||
|
|||||||
@ -166,7 +166,18 @@ const handleGetData = async () => {
|
|||||||
ServerpartId: props.currentService?.SERVERPART_ID || ""
|
ServerpartId: props.currentService?.SERVERPART_ID || ""
|
||||||
}
|
}
|
||||||
|
|
||||||
const data = await handleGetBusinessTradeRevenue(req)
|
let BusinessStructure = sessionStorage.getItem('BusinessStructure')
|
||||||
|
let data: any = []
|
||||||
|
if (BusinessStructure) {
|
||||||
|
data = JSON.parse(BusinessStructure)
|
||||||
|
} else {
|
||||||
|
data = await handleGetBusinessTradeRevenue(req)
|
||||||
|
sessionStorage.setItem("BusinessStructure", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// const data = await handleGetBusinessTradeRevenue(req)
|
||||||
|
|
||||||
|
|
||||||
let list: any = data.BusinessTradeRank
|
let list: any = data.BusinessTradeRank
|
||||||
|
|||||||
@ -206,7 +206,19 @@ const handleGetData = async () => {
|
|||||||
Statistics_Date: moment().subtract(1, 'd').format('YYYY-MM-DD'),
|
Statistics_Date: moment().subtract(1, 'd').format('YYYY-MM-DD'),
|
||||||
Serverpart_ID: ''
|
Serverpart_ID: ''
|
||||||
}
|
}
|
||||||
const data = await handleGetTransactionConvert(req)
|
|
||||||
|
let ConsumptionConversion = sessionStorage.getItem('ConsumptionConversion')
|
||||||
|
let data: any = []
|
||||||
|
if (ConsumptionConversion) {
|
||||||
|
data = JSON.parse(ConsumptionConversion)
|
||||||
|
} else {
|
||||||
|
data = await handleGetTransactionConvert(req)
|
||||||
|
sessionStorage.setItem("ConsumptionConversion", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// const data = await handleGetTransactionConvert(req)
|
||||||
|
|
||||||
|
|
||||||
let carList = data.BayonetList.data
|
let carList = data.BayonetList.data
|
||||||
|
|||||||
@ -112,7 +112,18 @@ const handleGetData = async () => {
|
|||||||
StatisticsDate: moment().subtract(1, 'd').format('YYYY-MM-DD'),
|
StatisticsDate: moment().subtract(1, 'd').format('YYYY-MM-DD'),
|
||||||
// ServerpartId: ''
|
// ServerpartId: ''
|
||||||
}
|
}
|
||||||
const data = await handleGetGetBusinessTradeLevel(req)
|
|
||||||
|
let ConsumptionLevel = sessionStorage.getItem('ConsumptionLevel')
|
||||||
|
let data: any = []
|
||||||
|
if (ConsumptionLevel) {
|
||||||
|
data = JSON.parse(ConsumptionLevel)
|
||||||
|
} else {
|
||||||
|
data = await handleGetGetBusinessTradeLevel(req)
|
||||||
|
sessionStorage.setItem("ConsumptionLevel", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// const data = await handleGetGetBusinessTradeLevel(req)
|
||||||
|
|
||||||
|
|
||||||
category = data.legend
|
category = data.legend
|
||||||
|
|||||||
@ -137,7 +137,18 @@ const handleGetData = async () => {
|
|||||||
Serverpart_ID: '',
|
Serverpart_ID: '',
|
||||||
TimeSpan: 1
|
TimeSpan: 1
|
||||||
}
|
}
|
||||||
const data = await handleGetTransactionTimeAnalysis(req)
|
|
||||||
|
|
||||||
|
let ConsumptionPeriod = sessionStorage.getItem('ConsumptionPeriod')
|
||||||
|
let data: any = []
|
||||||
|
if (ConsumptionPeriod) {
|
||||||
|
data = JSON.parse(ConsumptionPeriod)
|
||||||
|
} else {
|
||||||
|
data = await handleGetTransactionTimeAnalysis(req)
|
||||||
|
sessionStorage.setItem("ConsumptionPeriod", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
// const data = await handleGetTransactionTimeAnalysis(req)
|
||||||
|
|
||||||
|
|
||||||
if (data && data.length > 0) {
|
if (data && data.length > 0) {
|
||||||
|
|||||||
@ -45,7 +45,19 @@ const handleGetData = async () => {
|
|||||||
ProvinceCode: '530000',
|
ProvinceCode: '530000',
|
||||||
GetFromRedis: true
|
GetFromRedis: true
|
||||||
}
|
}
|
||||||
const data = await handleGetProjectSummaryInfo(req)
|
|
||||||
|
|
||||||
|
let ContractInformation = sessionStorage.getItem('ContractInformation')
|
||||||
|
let data: any = []
|
||||||
|
if (ContractInformation) {
|
||||||
|
data = JSON.parse(ContractInformation)
|
||||||
|
} else {
|
||||||
|
data = await handleGetProjectSummaryInfo(req)
|
||||||
|
sessionStorage.setItem("ContractInformation", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// const data = await handleGetProjectSummaryInfo(req)
|
||||||
|
|
||||||
|
|
||||||
console.log('handleGetDatahandleGetDatahandleGetDatahandleGetData', data);
|
console.log('handleGetDatahandleGetDatahandleGetDatahandleGetData', data);
|
||||||
|
|||||||
@ -57,7 +57,19 @@ const handleGetMapRealData = async () => {
|
|||||||
const req: any = {
|
const req: any = {
|
||||||
serverPartId: props.currentService?.SERVERPART_ID || ""
|
serverPartId: props.currentService?.SERVERPART_ID || ""
|
||||||
}
|
}
|
||||||
const data = await handleGetRealData(req)
|
|
||||||
|
|
||||||
|
let CoreBusinessData = sessionStorage.getItem('CoreBusinessData')
|
||||||
|
let data: any = []
|
||||||
|
if (CoreBusinessData) {
|
||||||
|
data = JSON.parse(CoreBusinessData)
|
||||||
|
} else {
|
||||||
|
data = await handleGetRealData(req)
|
||||||
|
sessionStorage.setItem("CoreBusinessData", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// const data = await handleGetRealData(req)
|
||||||
// 【1000:门店营收 2000:油品 3000:加水 4000:尿素 5000:新能源 6000:断面流量 6001:入区车流 6002:入区客流】
|
// 【1000:门店营收 2000:油品 3000:加水 4000:尿素 5000:新能源 6000:断面流量 6001:入区车流 6002:入区客流】
|
||||||
|
|
||||||
console.log('实时数据', data);
|
console.log('实时数据', data);
|
||||||
|
|||||||
@ -185,7 +185,20 @@ const handleGetData = async () => {
|
|||||||
provinceCode: '530000',
|
provinceCode: '530000',
|
||||||
statisticsMonth: moment(moment().subtract(1, 'M')).format('YYYYMM'),
|
statisticsMonth: moment(moment().subtract(1, 'M')).format('YYYYMM'),
|
||||||
}
|
}
|
||||||
const data = await handleGetCustomerAgeRatio(req)
|
|
||||||
|
|
||||||
|
|
||||||
|
let CustomerAgeGroup = sessionStorage.getItem('CustomerAgeGroup')
|
||||||
|
let data: any = []
|
||||||
|
if (CustomerAgeGroup) {
|
||||||
|
data = JSON.parse(CustomerAgeGroup)
|
||||||
|
} else {
|
||||||
|
data = await handleGetCustomerAgeRatio(req)
|
||||||
|
sessionStorage.setItem("CustomerAgeGroup", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// const data = await handleGetCustomerAgeRatio(req)
|
||||||
|
|
||||||
console.log('fdisfsauifhdsaj', data);
|
console.log('fdisfsauifhdsaj', data);
|
||||||
|
|
||||||
|
|||||||
@ -169,7 +169,16 @@ const handleGetData = async () => {
|
|||||||
sortStr: 'TOTAL_COUNT desc'
|
sortStr: 'TOTAL_COUNT desc'
|
||||||
}
|
}
|
||||||
|
|
||||||
const data = await handleGetCustomerSaleRatio(req)
|
let CustomerConsumptionPreferences = sessionStorage.getItem('CustomerConsumptionPreferences')
|
||||||
|
let data: any = []
|
||||||
|
if (CustomerConsumptionPreferences) {
|
||||||
|
data = JSON.parse(CustomerConsumptionPreferences)
|
||||||
|
} else {
|
||||||
|
data = await handleGetCustomerSaleRatio(req)
|
||||||
|
sessionStorage.setItem("CustomerConsumptionPreferences", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
// const data = await handleGetCustomerSaleRatio(req)
|
||||||
|
|
||||||
|
|
||||||
let category: string[] = []
|
let category: string[] = []
|
||||||
|
|||||||
@ -169,8 +169,17 @@ const handleGetData = async () => {
|
|||||||
serverpartId: props.currentService?.SERVERPART_ID || "",
|
serverpartId: props.currentService?.SERVERPART_ID || "",
|
||||||
}
|
}
|
||||||
|
|
||||||
const data = await handleGetCustomerGroupRatio(req)
|
let CustomerGroup = sessionStorage.getItem('CustomerGroup')
|
||||||
console.log('jfdjsfklasjflsd', data);
|
let data: any = []
|
||||||
|
if (CustomerGroup) {
|
||||||
|
data = JSON.parse(CustomerGroup)
|
||||||
|
} else {
|
||||||
|
data = await handleGetCustomerGroupRatio(req)
|
||||||
|
sessionStorage.setItem("CustomerGroup", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// const data = await handleGetCustomerGroupRatio(req)
|
||||||
|
|
||||||
let res: any = []
|
let res: any = []
|
||||||
if (data && data.length > 0) {
|
if (data && data.length > 0) {
|
||||||
|
|||||||
@ -103,8 +103,16 @@ const handleGetSectionFlowCount = async () => {
|
|||||||
const req: any = {
|
const req: any = {
|
||||||
GetFromRedis: true
|
GetFromRedis: true
|
||||||
}
|
}
|
||||||
const data = await handleGetProjectYearlyArrearageList(req)
|
// const data = await handleGetProjectYearlyArrearageList(req)
|
||||||
console.log('handleGetProjectYearlyArrearageListhandleGetProjectYearlyArrearageListhandleGetProjectYearlyArrearageList', data);
|
let DetailedPayment = sessionStorage.getItem('DetailedPayment')
|
||||||
|
let data: any = []
|
||||||
|
if (DetailedPayment) {
|
||||||
|
data = JSON.parse(DetailedPayment)
|
||||||
|
} else {
|
||||||
|
data = await handleGetProjectYearlyArrearageList(req)
|
||||||
|
sessionStorage.setItem("DetailedPayment", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
let category: any = []
|
let category: any = []
|
||||||
let seriesData: any = []
|
let seriesData: any = []
|
||||||
|
|||||||
@ -11,6 +11,7 @@ import {
|
|||||||
LegendComponent
|
LegendComponent
|
||||||
} from 'echarts/components';
|
} from 'echarts/components';
|
||||||
import { CanvasRenderer } from 'echarts/renderers';
|
import { CanvasRenderer } from 'echarts/renderers';
|
||||||
|
import { handleGetHolidayRevenueRatio } from '../../service';
|
||||||
|
|
||||||
|
|
||||||
// 注册组件
|
// 注册组件
|
||||||
@ -71,19 +72,19 @@ const handleGoMounted = async () => {
|
|||||||
legend: [ // 使用两个legend对象分别控制
|
legend: [ // 使用两个legend对象分别控制
|
||||||
// 第一行:外圈圆环图例
|
// 第一行:外圈圆环图例
|
||||||
{
|
{
|
||||||
data: ['A类', 'B类', 'C类', 'D类'].map(name => ({
|
data: res.bigType.map((name: string) => ({
|
||||||
name,
|
name,
|
||||||
icon: 'circle'
|
icon: 'circle'
|
||||||
})),
|
})),
|
||||||
orient: 'horizontal',
|
orient: 'horizontal',
|
||||||
top: 'bottom',
|
top: 'bottom',
|
||||||
left: 'center',
|
left: 'center',
|
||||||
padding: [0, 0, 30, 0], // 下边距为内圈图例留空间
|
padding: [0, 0, 60, 0], // 下边距为内圈图例留空间
|
||||||
textStyle: { color: '#fff' }
|
textStyle: { color: '#fff' }
|
||||||
},
|
},
|
||||||
// 第二行:内圈饼图图例
|
// 第二行:内圈饼图图例
|
||||||
{
|
{
|
||||||
data: ['子类1', '子类2', '子类3'].map(name => ({
|
data: res.smallType.map((name: string) => ({
|
||||||
name,
|
name,
|
||||||
icon: 'rect'
|
icon: 'rect'
|
||||||
})),
|
})),
|
||||||
@ -98,14 +99,15 @@ const handleGoMounted = async () => {
|
|||||||
{
|
{
|
||||||
name: '外圈数据',
|
name: '外圈数据',
|
||||||
type: 'pie',
|
type: 'pie',
|
||||||
radius: ['50%', '70%'],
|
radius: ['50%', '65%'],
|
||||||
center: ['50%', '45%'], // 稍微上移给图例留空间
|
center: ['50%', '35%'], // 稍微上移给图例留空间
|
||||||
data: [
|
data: res.bigData,
|
||||||
{ value: 335, name: 'A类' },
|
// data: [
|
||||||
{ value: 310, name: 'B类' },
|
// { value: 335, name: 'A类' },
|
||||||
{ value: 234, name: 'C类' },
|
// { value: 310, name: 'B类' },
|
||||||
{ value: 135, name: 'D类' }
|
// { value: 234, name: 'C类' },
|
||||||
],
|
// { value: 135, name: 'D类' }
|
||||||
|
// ],
|
||||||
label: { show: false }
|
label: { show: false }
|
||||||
},
|
},
|
||||||
// 内圈饼图
|
// 内圈饼图
|
||||||
@ -113,12 +115,13 @@ const handleGoMounted = async () => {
|
|||||||
name: '内圈数据',
|
name: '内圈数据',
|
||||||
type: 'pie',
|
type: 'pie',
|
||||||
radius: ['0%', '30%'],
|
radius: ['0%', '30%'],
|
||||||
center: ['50%', '45%'], // 与外圈同中心
|
center: ['50%', '35%'], // 与外圈同中心
|
||||||
data: [
|
data: res.smallData,
|
||||||
{ value: 100, name: '子类1' },
|
// data: [
|
||||||
{ value: 200, name: '子类2' },
|
// { value: 100, name: '子类1' },
|
||||||
{ value: 300, name: '子类3' }
|
// { value: 200, name: '子类2' },
|
||||||
],
|
// { value: 300, name: '子类3' }
|
||||||
|
// ],
|
||||||
label: { show: false }
|
label: { show: false }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -133,6 +136,52 @@ const handleGoMounted = async () => {
|
|||||||
|
|
||||||
// 拿到数据
|
// 拿到数据
|
||||||
const handleGetRealData = async () => {
|
const handleGetRealData = async () => {
|
||||||
|
const req: any = {
|
||||||
|
ProvinceCode: '530000'
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
let FestivalRevenueSumInfo = sessionStorage.getItem('FestivalRevenueSumInfo')
|
||||||
|
let data: any = []
|
||||||
|
if (FestivalRevenueSumInfo) {
|
||||||
|
data = JSON.parse(FestivalRevenueSumInfo)
|
||||||
|
} else {
|
||||||
|
data = await handleGetHolidayRevenueRatio(req)
|
||||||
|
sessionStorage.setItem("OverviewOfServiceAreaBusiness", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// const data = await handleGetHolidayRevenueRatio(req)
|
||||||
|
console.log('datadatadatadatadata', data)
|
||||||
|
|
||||||
|
// 圆环图数据
|
||||||
|
let bigData: any = []
|
||||||
|
let bigType: any = []
|
||||||
|
// 里面的扇形数据
|
||||||
|
let smallData: any = []
|
||||||
|
let smallType: any = []
|
||||||
|
if (data && data.length > 0) {
|
||||||
|
data.forEach((item: any) => {
|
||||||
|
bigData.push({ name: `${item.name} ${item.value}%`, value: Number(item.value) })
|
||||||
|
bigType.push(`${item.name} ${item.value}%`)
|
||||||
|
if (item.name === "节假日") {
|
||||||
|
if (item.children && item.children.length > 0) {
|
||||||
|
item.children.forEach((subItem: any) => {
|
||||||
|
smallType.push(`${subItem.name} ${subItem.value}%`)
|
||||||
|
smallData.push({ name: `${subItem.name} ${subItem.value}%`, value: Number(subItem.value) })
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
bigData: bigData,
|
||||||
|
smallData: smallData,
|
||||||
|
bigType: bigType,
|
||||||
|
smallType: smallType,
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -59,7 +59,7 @@ onMounted(async () => {
|
|||||||
return `
|
return `
|
||||||
<div style="font-weight:bold">${params.name}</div>
|
<div style="font-weight:bold">${params.name}</div>
|
||||||
`;
|
`;
|
||||||
// ${params.value}%
|
// ${params.value}%
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
graphic: { // 关键配置:在图表中心添加图片
|
graphic: { // 关键配置:在图表中心添加图片
|
||||||
@ -126,7 +126,16 @@ const handleGetSectionFlowCount = async () => {
|
|||||||
statisticsMonth: moment(moment().subtract(1, 'M')).format('YYYYMM'),
|
statisticsMonth: moment(moment().subtract(1, 'M')).format('YYYYMM'),
|
||||||
}
|
}
|
||||||
|
|
||||||
const data = await handleGetCustomerRatio(req)
|
let GenderCustomerGroup = sessionStorage.getItem('GenderCustomerGroup')
|
||||||
|
let data: any = []
|
||||||
|
if (GenderCustomerGroup) {
|
||||||
|
data = JSON.parse(GenderCustomerGroup)
|
||||||
|
} else {
|
||||||
|
data = await handleGetCustomerRatio(req)
|
||||||
|
sessionStorage.setItem("GenderCustomerGroup", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
// const data = await handleGetCustomerRatio(req)
|
||||||
|
|
||||||
let seriesData: any = []
|
let seriesData: any = []
|
||||||
let realData: any = []
|
let realData: any = []
|
||||||
|
|||||||
@ -138,7 +138,16 @@ const handleGetData = async () => {
|
|||||||
rowNum: props?.pageType === 'left' ? 5 : 10
|
rowNum: props?.pageType === 'left' ? 5 : 10
|
||||||
}
|
}
|
||||||
|
|
||||||
const data = await handleGetSalesRank(req)
|
let HotProductList = sessionStorage.getItem('HotProductList')
|
||||||
|
let data: any = []
|
||||||
|
if (HotProductList) {
|
||||||
|
data = JSON.parse(HotProductList)
|
||||||
|
} else {
|
||||||
|
data = await handleGetSalesRank(req)
|
||||||
|
sessionStorage.setItem("HotProductList", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
// const data = await handleGetSalesRank(req)
|
||||||
|
|
||||||
let list: any = data.COMMODITYSALE_DESC
|
let list: any = data.COMMODITYSALE_DESC
|
||||||
list.reverse()
|
list.reverse()
|
||||||
|
|||||||
@ -161,7 +161,18 @@ const handleGetData = async () => {
|
|||||||
|
|
||||||
console.log('dkosajdaihfysudafhs', req);
|
console.log('dkosajdaihfysudafhs', req);
|
||||||
|
|
||||||
const data = await handleGetMallOrderSummary(req)
|
// const data = await handleGetMallOrderSummary(req)
|
||||||
|
|
||||||
|
let MallOrderStatistics = sessionStorage.getItem('MallOrderStatistics')
|
||||||
|
let data: any = []
|
||||||
|
if (MallOrderStatistics) {
|
||||||
|
data = JSON.parse(MallOrderStatistics)
|
||||||
|
} else {
|
||||||
|
data = await handleGetMallOrderSummary(req)
|
||||||
|
sessionStorage.setItem("MallOrderStatistics", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
console.log('gjisayudshfsdafdfdasfasd', data);
|
console.log('gjisayudshfsdafdfdasfasd', data);
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import SmallTitle from '../smallTitle/smallTitle.vue'
|
import SmallTitle from '../smallTitle/smallTitle.vue'
|
||||||
import { onMounted, onBeforeUnmount, ref } from 'vue';
|
import { onMounted, onBeforeUnmount, ref, nextTick } from 'vue';
|
||||||
import * as echarts from 'echarts/core';
|
import * as echarts from 'echarts/core';
|
||||||
import { BarChart } from 'echarts/charts';
|
import { BarChart } from 'echarts/charts';
|
||||||
import {
|
import {
|
||||||
@ -27,7 +27,7 @@ echarts.use([
|
|||||||
let myChart: echarts.ECharts;
|
let myChart: echarts.ECharts;
|
||||||
|
|
||||||
// 排行列表
|
// 排行列表
|
||||||
let rankList = ref<any>()
|
let rankList = ref<any>([])
|
||||||
|
|
||||||
// 拿到传入的数据
|
// 拿到传入的数据
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
@ -132,8 +132,17 @@ const handleGetData = async () => {
|
|||||||
StatisticsMonth: moment().subtract(1, 'M').format('YYYYMM')
|
StatisticsMonth: moment().subtract(1, 'M').format('YYYYMM')
|
||||||
}
|
}
|
||||||
|
|
||||||
const data = await handleGetEvaluateResList(req)
|
// const data = await handleGetEvaluateResList(req)
|
||||||
console.log('djsauhdusahcjksdahvasjkdf', data);
|
|
||||||
|
let MerchantRatingRanking = sessionStorage.getItem('MerchantRatingRanking')
|
||||||
|
let data: any = []
|
||||||
|
if (MerchantRatingRanking) {
|
||||||
|
data = JSON.parse(MerchantRatingRanking)
|
||||||
|
console.log('djsauhdusahcjksdahvasjkdf', data);
|
||||||
|
} else {
|
||||||
|
data = await handleGetEvaluateResList(req)
|
||||||
|
sessionStorage.setItem("MerchantRatingRanking", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
rankList.value = data
|
rankList.value = data
|
||||||
|
|
||||||
|
|||||||
@ -21,7 +21,15 @@ const handleGetData = async () => {
|
|||||||
ProvinceCode: "530000",
|
ProvinceCode: "530000",
|
||||||
}
|
}
|
||||||
|
|
||||||
const data = await handleGetServerpartServiceSummary(req)
|
|
||||||
|
let OverviewOfServiceArea = sessionStorage.getItem('OverviewOfServiceArea')
|
||||||
|
let data: any = []
|
||||||
|
if (OverviewOfServiceArea) {
|
||||||
|
data = JSON.parse(OverviewOfServiceArea)
|
||||||
|
} else {
|
||||||
|
data = await handleGetServerpartServiceSummary(req)
|
||||||
|
sessionStorage.setItem("OverviewOfServiceArea", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
console.log('fhdushgsu9dgvuisdvgsudvhnjldsfas', data);
|
console.log('fhdushgsu9dgvuisdvgsudvhnjldsfas', data);
|
||||||
|
|
||||||
@ -136,7 +144,19 @@ const handleGetData = async () => {
|
|||||||
DataType: '1'
|
DataType: '1'
|
||||||
}
|
}
|
||||||
// const data = await handleGetCurHalfCollect(req)
|
// const data = await handleGetCurHalfCollect(req)
|
||||||
const businessData = await handleGetCurBusyRank(businessReq)
|
|
||||||
|
|
||||||
|
|
||||||
|
let OverviewOfServiceAreaBusiness = sessionStorage.getItem('OverviewOfServiceAreaBusiness')
|
||||||
|
let businessData: any = {}
|
||||||
|
if (OverviewOfServiceAreaBusiness) {
|
||||||
|
businessData = JSON.parse(OverviewOfServiceAreaBusiness)
|
||||||
|
} else {
|
||||||
|
businessData = await handleGetCurBusyRank(businessReq)
|
||||||
|
sessionStorage.setItem("OverviewOfServiceAreaBusiness", JSON.stringify(businessData))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
console.log('服务区繁忙度数据:', businessData);
|
console.log('服务区繁忙度数据:', businessData);
|
||||||
|
|
||||||
let businessRes: any = businessData.OtherData
|
let businessRes: any = businessData.OtherData
|
||||||
@ -155,8 +175,8 @@ const handleGetData = async () => {
|
|||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
businessInfo.value = {
|
businessInfo.value = {
|
||||||
businessTotal: businessRes.value,
|
businessTotal: businessRes?.value || "",
|
||||||
noramlTotal: businessRes.data,
|
noramlTotal: businessRes?.data || "",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -216,12 +236,12 @@ const handleGetData = async () => {
|
|||||||
<div class="OverviewOfServiceAreaContentBottomItem">
|
<div class="OverviewOfServiceAreaContentBottomItem">
|
||||||
<div class="OverviewOfServiceAreaContentBottomItemLabel">加油站/座</div>
|
<div class="OverviewOfServiceAreaContentBottomItemLabel">加油站/座</div>
|
||||||
<div class="OverviewOfServiceAreaContentBottomItemValue">{{ serviceInfo?.REFUELINGGUNTotal || "0"
|
<div class="OverviewOfServiceAreaContentBottomItemValue">{{ serviceInfo?.REFUELINGGUNTotal || "0"
|
||||||
}}</div>
|
}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="OverviewOfServiceAreaContentBottomItem">
|
<div class="OverviewOfServiceAreaContentBottomItem">
|
||||||
<div class="OverviewOfServiceAreaContentBottomItemLabel">充电桩/座</div>
|
<div class="OverviewOfServiceAreaContentBottomItemLabel">充电桩/座</div>
|
||||||
<div class="OverviewOfServiceAreaContentBottomItemValue">{{ serviceInfo?.ChargingStationTotal || "0"
|
<div class="OverviewOfServiceAreaContentBottomItemValue">{{ serviceInfo?.ChargingStationTotal || "0"
|
||||||
}}</div>
|
}}</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="OverviewOfServiceAreaContentBottomItem">
|
<!-- <div class="OverviewOfServiceAreaContentBottomItem">
|
||||||
<div class="OverviewOfServiceAreaContentBottomItemLabel">停车位/座</div>
|
<div class="OverviewOfServiceAreaContentBottomItemLabel">停车位/座</div>
|
||||||
@ -236,17 +256,17 @@ const handleGetData = async () => {
|
|||||||
<div class="OverviewOfServiceAreaContentBottomItem">
|
<div class="OverviewOfServiceAreaContentBottomItem">
|
||||||
<div class="OverviewOfServiceAreaContentBottomItemLabel">母婴室/座</div>
|
<div class="OverviewOfServiceAreaContentBottomItemLabel">母婴室/座</div>
|
||||||
<div class="OverviewOfServiceAreaContentBottomItemValue">{{ serviceInfo?.NursingRoomTotal || "0"
|
<div class="OverviewOfServiceAreaContentBottomItemValue">{{ serviceInfo?.NursingRoomTotal || "0"
|
||||||
}}</div>
|
}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="OverviewOfServiceAreaContentBottomItem">
|
<div class="OverviewOfServiceAreaContentBottomItem">
|
||||||
<div class="OverviewOfServiceAreaContentBottomItemLabel">尿素/座</div>
|
<div class="OverviewOfServiceAreaContentBottomItemLabel">尿素/座</div>
|
||||||
<div class="OverviewOfServiceAreaContentBottomItemValue">{{ serviceInfo?.URECOUNTTotal || "0"
|
<div class="OverviewOfServiceAreaContentBottomItemValue">{{ serviceInfo?.URECOUNTTotal || "0"
|
||||||
}}</div>
|
}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="OverviewOfServiceAreaContentBottomItem">
|
<div class="OverviewOfServiceAreaContentBottomItem">
|
||||||
<div class="OverviewOfServiceAreaContentBottomItemLabel">加水/座</div>
|
<div class="OverviewOfServiceAreaContentBottomItemLabel">加水/座</div>
|
||||||
<div class="OverviewOfServiceAreaContentBottomItemValue">{{ serviceInfo?.WaterCount || "0"
|
<div class="OverviewOfServiceAreaContentBottomItemValue">{{ serviceInfo?.WaterCount || "0"
|
||||||
}}</div>
|
}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -111,8 +111,19 @@ const handleGetData = async () => {
|
|||||||
GetFromRedis: true
|
GetFromRedis: true
|
||||||
}
|
}
|
||||||
|
|
||||||
const data = await handleGetContractExpiredInfo(req)
|
let PaymentProgress = sessionStorage.getItem('PaymentProgress')
|
||||||
console.log('首款完成进度', data);
|
let data: any = []
|
||||||
|
if (PaymentProgress) {
|
||||||
|
data = JSON.parse(PaymentProgress)
|
||||||
|
} else {
|
||||||
|
data = await handleGetContractExpiredInfo(req)
|
||||||
|
sessionStorage.setItem("PaymentProgress", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// const data = await handleGetContractExpiredInfo(req)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
receivePayment.value = data
|
receivePayment.value = data
|
||||||
|
|
||||||
@ -151,9 +162,10 @@ onBeforeUnmount(() => {
|
|||||||
<div class="boxTopLeft">到期金额收款进度</div>
|
<div class="boxTopLeft">到期金额收款进度</div>
|
||||||
<div class="boxTopRight">
|
<div class="boxTopRight">
|
||||||
<span class="progressBoxrightLabel">总金额:</span>
|
<span class="progressBoxrightLabel">总金额:</span>
|
||||||
<span class="progressBoxrightValue">{{ receivePayment?.Paid_Amount ? receivePayment?.Paid_Amount.toFixed(2) :
|
<span class="progressBoxrightValue">{{ receivePayment?.Paid_Amount ?
|
||||||
|
receivePayment?.Paid_Amount.toFixed(2) :
|
||||||
""
|
""
|
||||||
}}</span>
|
}}</span>
|
||||||
<span class="progressBoxrightUnit">万元</span>
|
<span class="progressBoxrightUnit">万元</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -109,7 +109,17 @@ const handleGetSectionFlowCount = async () => {
|
|||||||
StatisticsDate: moment(moment().subtract(1, 'M')).format('YYYY-MM-DD'),
|
StatisticsDate: moment(moment().subtract(1, 'M')).format('YYYY-MM-DD'),
|
||||||
BusinessTradeIds: -1
|
BusinessTradeIds: -1
|
||||||
}
|
}
|
||||||
const data = await handleGetBusinessTradeRevenue(req)
|
|
||||||
|
let PreferenceType = sessionStorage.getItem('PreferenceType')
|
||||||
|
let data: any = []
|
||||||
|
if (PreferenceType) {
|
||||||
|
data = JSON.parse(PreferenceType)
|
||||||
|
} else {
|
||||||
|
data = await handleGetBusinessTradeRevenue(req)
|
||||||
|
sessionStorage.setItem("PreferenceType", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
// const data = await handleGetBusinessTradeRevenue(req)
|
||||||
|
|
||||||
let category: any = []
|
let category: any = []
|
||||||
let seriesData: any = []
|
let seriesData: any = []
|
||||||
|
|||||||
@ -143,7 +143,16 @@ const handleGetData = async () => {
|
|||||||
ServerpartIds: props.currentService?.SERVERPART_ID || allServiceId,
|
ServerpartIds: props.currentService?.SERVERPART_ID || allServiceId,
|
||||||
DataSourceType: 1,
|
DataSourceType: 1,
|
||||||
}
|
}
|
||||||
const data = await handleGetRevenueReport(req)
|
|
||||||
|
let RegionalRevenue = sessionStorage.getItem('RegionalRevenue')
|
||||||
|
let data: any = []
|
||||||
|
if (RegionalRevenue) {
|
||||||
|
data = JSON.parse(RegionalRevenue)
|
||||||
|
} else {
|
||||||
|
data = await handleGetRevenueReport(req)
|
||||||
|
sessionStorage.setItem("RegionalRevenue", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
// const data = await handleGetRevenueReport(req)
|
||||||
|
|
||||||
showCharts.value = true
|
showCharts.value = true
|
||||||
|
|
||||||
|
|||||||
@ -45,7 +45,17 @@ const handleGetData = async () => {
|
|||||||
ProvinceCode: '530000',
|
ProvinceCode: '530000',
|
||||||
GetFromRedis: true
|
GetFromRedis: true
|
||||||
}
|
}
|
||||||
const data = await handleGetProjectSummaryInfo(req)
|
|
||||||
|
let SignedClients = sessionStorage.getItem('SignedClients')
|
||||||
|
let data: any = []
|
||||||
|
if (SignedClients) {
|
||||||
|
data = JSON.parse(SignedClients)
|
||||||
|
} else {
|
||||||
|
data = await handleGetProjectSummaryInfo(req)
|
||||||
|
sessionStorage.setItem("SignedClients", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
// const data = await handleGetProjectSummaryInfo(req)
|
||||||
|
|
||||||
|
|
||||||
console.log('handleGetDatahandleGetDatahandleGetDatahandleGetData', data);
|
console.log('handleGetDatahandleGetDatahandleGetDatahandleGetData', data);
|
||||||
|
|||||||
@ -141,7 +141,16 @@ const handleGetData = async () => {
|
|||||||
ProvinceCode: '530000',
|
ProvinceCode: '530000',
|
||||||
StatisticsMonth: moment().subtract(1, 'M').format('YYYYMM')
|
StatisticsMonth: moment().subtract(1, 'M').format('YYYYMM')
|
||||||
}
|
}
|
||||||
const data = await handleGetWelFareSummary(req)
|
// const data = await handleGetWelFareSummary(req)
|
||||||
|
|
||||||
|
let ThisMonthBenefits = sessionStorage.getItem('ThisMonthBenefits')
|
||||||
|
let data: any = []
|
||||||
|
if (ThisMonthBenefits) {
|
||||||
|
data = JSON.parse(ThisMonthBenefits)
|
||||||
|
} else {
|
||||||
|
data = await handleGetWelFareSummary(req)
|
||||||
|
sessionStorage.setItem("ThisMonthBenefits", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
console.log('fjidsfhasjfasdfdsf', data);
|
console.log('fjidsfhasjfasdfdsf', data);
|
||||||
|
|
||||||
@ -186,7 +195,7 @@ const handleGetData = async () => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ThisMonthBenefitsContentRight">
|
<div class="ThisMonthBenefitsContentRight">
|
||||||
<span class="thisMonthValue">{{ allRealData?.value.distributeAmount || '0' }}</span>
|
<span class="thisMonthValue">{{ allRealData?.value?.distributeAmount || '0' }}</span>
|
||||||
<span class="thisMonthUnit">元</span>
|
<span class="thisMonthUnit">元</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -168,7 +168,16 @@ const handleGetSectionFlowCount = async () => {
|
|||||||
StatisticsYear: moment().subtract(1, 'd').format('YYYY'),
|
StatisticsYear: moment().subtract(1, 'd').format('YYYY'),
|
||||||
GetFromRedis: true
|
GetFromRedis: true
|
||||||
}
|
}
|
||||||
const data = await handleGetProjectMonthlyArrearageList(req)
|
|
||||||
|
let TotalAccountsReceivable = sessionStorage.getItem('TotalAccountsReceivable')
|
||||||
|
let data: any = []
|
||||||
|
if (TotalAccountsReceivable) {
|
||||||
|
data = JSON.parse(TotalAccountsReceivable)
|
||||||
|
} else {
|
||||||
|
data = await handleGetProjectMonthlyArrearageList(req)
|
||||||
|
sessionStorage.setItem("TotalAccountsReceivable", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
// const data = await handleGetProjectMonthlyArrearageList(req)
|
||||||
|
|
||||||
console.log('dsaidjaiodjaos', data);
|
console.log('dsaidjaiodjaos', data);
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,17 @@ const handleGetData = async () => {
|
|||||||
ProvinceCode: "530000",
|
ProvinceCode: "530000",
|
||||||
ServerpartId: ""
|
ServerpartId: ""
|
||||||
}
|
}
|
||||||
const data = await handleGetCurrentEarlyWarning(req)
|
|
||||||
|
|
||||||
|
|
||||||
|
let TradingAlert = sessionStorage.getItem('TradingAlert')
|
||||||
|
let data: any = []
|
||||||
|
if (TradingAlert) {
|
||||||
|
data = JSON.parse(TradingAlert)
|
||||||
|
} else {
|
||||||
|
data = await handleGetCurrentEarlyWarning(req)
|
||||||
|
sessionStorage.setItem("TradingAlert", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
console.log('skodpijasidjaslfddfas', data);
|
console.log('skodpijasidjaslfddfas', data);
|
||||||
|
|
||||||
|
|||||||
@ -185,8 +185,15 @@ const handleGetSectionFlowCount = async () => {
|
|||||||
StartDate: moment().startOf('y').format('YYYY-MM-DD'),
|
StartDate: moment().startOf('y').format('YYYY-MM-DD'),
|
||||||
EndDate: moment().endOf('M').format('YYYY-MM-DD'),
|
EndDate: moment().endOf('M').format('YYYY-MM-DD'),
|
||||||
}
|
}
|
||||||
let data = await handleGetMonthAnalysis(req)
|
|
||||||
console.log('fdjisfhhusahfdskf', data);
|
let TrendOfTrafficFlow = sessionStorage.getItem('TrendOfTrafficFlow')
|
||||||
|
let data: any = []
|
||||||
|
if (TrendOfTrafficFlow) {
|
||||||
|
data = JSON.parse(TrendOfTrafficFlow)
|
||||||
|
} else {
|
||||||
|
data = await handleGetMonthAnalysis(req)
|
||||||
|
sessionStorage.setItem("TrendOfTrafficFlow", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const yesReq: any = {
|
const yesReq: any = {
|
||||||
@ -195,8 +202,17 @@ const handleGetSectionFlowCount = async () => {
|
|||||||
StartDate: moment().subtract(1, 'y').startOf('y').format('YYYY-MM-DD'),
|
StartDate: moment().subtract(1, 'y').startOf('y').format('YYYY-MM-DD'),
|
||||||
EndDate: moment().subtract(1, 'y').endOf('M').format('YYYY-MM-DD'),
|
EndDate: moment().subtract(1, 'y').endOf('M').format('YYYY-MM-DD'),
|
||||||
}
|
}
|
||||||
let yesData = await handleGetMonthAnalysis(yesReq)
|
// let yesData = await handleGetMonthAnalysis(yesReq)
|
||||||
console.log('yesDatayesDatayesDatayesData', yesData);
|
|
||||||
|
|
||||||
|
let TrendOfTrafficFlowYes = sessionStorage.getItem('TrendOfTrafficFlowYes')
|
||||||
|
let yesData: any = []
|
||||||
|
if (TrendOfTrafficFlowYes) {
|
||||||
|
yesData = JSON.parse(TrendOfTrafficFlowYes)
|
||||||
|
} else {
|
||||||
|
yesData = await handleGetMonthAnalysis(yesReq)
|
||||||
|
sessionStorage.setItem("TrendOfTrafficFlowYes", JSON.stringify(yesData))
|
||||||
|
}
|
||||||
|
|
||||||
// let list = data.slice(0, 5)
|
// let list = data.slice(0, 5)
|
||||||
let category: string[] = []
|
let category: string[] = []
|
||||||
|
|||||||
@ -188,7 +188,16 @@ const handleGetData = async () => {
|
|||||||
ProvinceCode: '530000',
|
ProvinceCode: '530000',
|
||||||
StatisticsType: 4,
|
StatisticsType: 4,
|
||||||
}
|
}
|
||||||
const data = await handleGetRevenueTrend(req)
|
|
||||||
|
let VehicleModelStay = sessionStorage.getItem('VehicleModelStay')
|
||||||
|
let data: any = []
|
||||||
|
if (VehicleModelStay) {
|
||||||
|
data = JSON.parse(VehicleModelStay)
|
||||||
|
} else {
|
||||||
|
data = await handleGetRevenueTrend(req)
|
||||||
|
sessionStorage.setItem("VehicleModelStay", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (data && data.length > 0) {
|
if (data && data.length > 0) {
|
||||||
data.forEach((item: any) => {
|
data.forEach((item: any) => {
|
||||||
|
|||||||
@ -333,7 +333,17 @@ const handleGetSectionFlowCount = async () => {
|
|||||||
ProvinceCode: 530000
|
ProvinceCode: 530000
|
||||||
// Serverpart_ID: props.currentService?.SERVERPART_ID || "1143,1144,1186,1188,1189,1190,1191,1192,1193,979,999,1023,1029,1030,1031,1033,1037,1041,1078,1087,1095,1137,1141,1147,1157,1159,1164,1165,1170,1174,981,985,987,994,1007,1009,1010,1012,1016,971,996,1002,1017,1018,1022,1027,1032,1073,1076,1099,1118,1122,1140,1142,1150,1171,970,969,978,1001,1005,1015,1050,1051,1052,1053,1064,1066,1096,1097,1101,1103,1104,1105,1106,1109,1112,1114,1115,1116,1117,991,995,1039,1080,1094,1100,1107,1123,1127,1133,1154,1155,1161,1163,1179,1180,1019,1021,1048,1049,1056,1059,1062,1063,1069,1093,1067,1228,1008,1070,1072,1166,1113,1148,1153,986,1086,1075,1182,1068,1226,1218,1088,1090,1058,1044,1084,1077,1089,1081,1091,1083,1162,1036,1092,988,993,1111,1158,1194,1202,1230,1198,1207,1216,1221,1203,1206,1209,1215,1227,1201,1205,1208,1214,1217,1229,1212,1065,1085,1055,1071,982,1168,1185,1110,977,1169,973,974,1011,1151,1121,1046,1045,1172,1146,976,1187,1156,1181,1136,1138,1211,983,1195,1131,1176,1167,1223,997,1252,1225,1043,1129,992,1149,975,1382,989,1047,1197,1025,1199,1183,1222,1178,1003,1013,1224,1139,1125,1173,1135,1038,1177,1060,1175,1184,1035,1026,1028,1079,1119,1120,1489"
|
// Serverpart_ID: props.currentService?.SERVERPART_ID || "1143,1144,1186,1188,1189,1190,1191,1192,1193,979,999,1023,1029,1030,1031,1033,1037,1041,1078,1087,1095,1137,1141,1147,1157,1159,1164,1165,1170,1174,981,985,987,994,1007,1009,1010,1012,1016,971,996,1002,1017,1018,1022,1027,1032,1073,1076,1099,1118,1122,1140,1142,1150,1171,970,969,978,1001,1005,1015,1050,1051,1052,1053,1064,1066,1096,1097,1101,1103,1104,1105,1106,1109,1112,1114,1115,1116,1117,991,995,1039,1080,1094,1100,1107,1123,1127,1133,1154,1155,1161,1163,1179,1180,1019,1021,1048,1049,1056,1059,1062,1063,1069,1093,1067,1228,1008,1070,1072,1166,1113,1148,1153,986,1086,1075,1182,1068,1226,1218,1088,1090,1058,1044,1084,1077,1089,1081,1091,1083,1162,1036,1092,988,993,1111,1158,1194,1202,1230,1198,1207,1216,1221,1203,1206,1209,1215,1227,1201,1205,1208,1214,1217,1229,1212,1065,1085,1055,1071,982,1168,1185,1110,977,1169,973,974,1011,1151,1121,1046,1045,1172,1146,976,1187,1156,1181,1136,1138,1211,983,1195,1131,1176,1167,1223,997,1252,1225,1043,1129,992,1149,975,1382,989,1047,1197,1025,1199,1183,1222,1178,1003,1013,1224,1139,1125,1173,1135,1038,1177,1060,1175,1184,1035,1026,1028,1079,1119,1120,1489"
|
||||||
}
|
}
|
||||||
const data = await handleGetMonthAnalysis(req)
|
|
||||||
|
let VehiclesEntering = sessionStorage.getItem('VehiclesEntering')
|
||||||
|
let data: any = []
|
||||||
|
if (VehiclesEntering) {
|
||||||
|
data = JSON.parse(VehiclesEntering)
|
||||||
|
} else {
|
||||||
|
data = await handleGetMonthAnalysis(req)
|
||||||
|
sessionStorage.setItem("VehiclesEntering", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
// const data = await handleGetMonthAnalysis(req)
|
||||||
|
|
||||||
const yesReq: any = {
|
const yesReq: any = {
|
||||||
StartDate: moment().subtract(1, 'y').startOf('y').format('YYYY-MM-DD'),
|
StartDate: moment().subtract(1, 'y').startOf('y').format('YYYY-MM-DD'),
|
||||||
@ -342,7 +352,16 @@ const handleGetSectionFlowCount = async () => {
|
|||||||
// Serverpart_ID: props.currentService?.SERVERPART_ID || "1143,1144,1186,1188,1189,1190,1191,1192,1193,979,999,1023,1029,1030,1031,1033,1037,1041,1078,1087,1095,1137,1141,1147,1157,1159,1164,1165,1170,1174,981,985,987,994,1007,1009,1010,1012,1016,971,996,1002,1017,1018,1022,1027,1032,1073,1076,1099,1118,1122,1140,1142,1150,1171,970,969,978,1001,1005,1015,1050,1051,1052,1053,1064,1066,1096,1097,1101,1103,1104,1105,1106,1109,1112,1114,1115,1116,1117,991,995,1039,1080,1094,1100,1107,1123,1127,1133,1154,1155,1161,1163,1179,1180,1019,1021,1048,1049,1056,1059,1062,1063,1069,1093,1067,1228,1008,1070,1072,1166,1113,1148,1153,986,1086,1075,1182,1068,1226,1218,1088,1090,1058,1044,1084,1077,1089,1081,1091,1083,1162,1036,1092,988,993,1111,1158,1194,1202,1230,1198,1207,1216,1221,1203,1206,1209,1215,1227,1201,1205,1208,1214,1217,1229,1212,1065,1085,1055,1071,982,1168,1185,1110,977,1169,973,974,1011,1151,1121,1046,1045,1172,1146,976,1187,1156,1181,1136,1138,1211,983,1195,1131,1176,1167,1223,997,1252,1225,1043,1129,992,1149,975,1382,989,1047,1197,1025,1199,1183,1222,1178,1003,1013,1224,1139,1125,1173,1135,1038,1177,1060,1175,1184,1035,1026,1028,1079,1119,1120,1489"
|
// Serverpart_ID: props.currentService?.SERVERPART_ID || "1143,1144,1186,1188,1189,1190,1191,1192,1193,979,999,1023,1029,1030,1031,1033,1037,1041,1078,1087,1095,1137,1141,1147,1157,1159,1164,1165,1170,1174,981,985,987,994,1007,1009,1010,1012,1016,971,996,1002,1017,1018,1022,1027,1032,1073,1076,1099,1118,1122,1140,1142,1150,1171,970,969,978,1001,1005,1015,1050,1051,1052,1053,1064,1066,1096,1097,1101,1103,1104,1105,1106,1109,1112,1114,1115,1116,1117,991,995,1039,1080,1094,1100,1107,1123,1127,1133,1154,1155,1161,1163,1179,1180,1019,1021,1048,1049,1056,1059,1062,1063,1069,1093,1067,1228,1008,1070,1072,1166,1113,1148,1153,986,1086,1075,1182,1068,1226,1218,1088,1090,1058,1044,1084,1077,1089,1081,1091,1083,1162,1036,1092,988,993,1111,1158,1194,1202,1230,1198,1207,1216,1221,1203,1206,1209,1215,1227,1201,1205,1208,1214,1217,1229,1212,1065,1085,1055,1071,982,1168,1185,1110,977,1169,973,974,1011,1151,1121,1046,1045,1172,1146,976,1187,1156,1181,1136,1138,1211,983,1195,1131,1176,1167,1223,997,1252,1225,1043,1129,992,1149,975,1382,989,1047,1197,1025,1199,1183,1222,1178,1003,1013,1224,1139,1125,1173,1135,1038,1177,1060,1175,1184,1035,1026,1028,1079,1119,1120,1489"
|
||||||
}
|
}
|
||||||
|
|
||||||
const yesData = await handleGetMonthAnalysis(yesReq)
|
let VehiclesEntering2 = sessionStorage.getItem('VehiclesEntering2')
|
||||||
|
let yesData: any = []
|
||||||
|
if (VehiclesEntering2) {
|
||||||
|
yesData = JSON.parse(VehiclesEntering2)
|
||||||
|
} else {
|
||||||
|
yesData = await handleGetMonthAnalysis(yesReq)
|
||||||
|
sessionStorage.setItem("VehiclesEntering2", JSON.stringify(yesData))
|
||||||
|
}
|
||||||
|
|
||||||
|
// const yesData = await handleGetMonthAnalysis(yesReq)
|
||||||
|
|
||||||
let category: string[] = []
|
let category: string[] = []
|
||||||
let seriesDataCar: number[] = []
|
let seriesDataCar: number[] = []
|
||||||
|
|||||||
@ -67,10 +67,18 @@ const handleGetNoticeList = async () => {
|
|||||||
PageSize: 10,
|
PageSize: 10,
|
||||||
appId: "wxee018fb96955552a"
|
appId: "wxee018fb96955552a"
|
||||||
}
|
}
|
||||||
const data = await handleGetGDNearServiceList(req)
|
|
||||||
// let list: any = data
|
|
||||||
|
|
||||||
console.log('listlistlistlist', data);
|
let noticeListBox = sessionStorage.getItem('noticeListBox')
|
||||||
|
let data: any = []
|
||||||
|
if (noticeListBox) {
|
||||||
|
data = JSON.parse(noticeListBox)
|
||||||
|
console.log('11121');
|
||||||
|
|
||||||
|
} else {
|
||||||
|
data = await handleGetGDNearServiceList(req)
|
||||||
|
sessionStorage.setItem("noticeListBox", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
// let list: any = data
|
||||||
|
|
||||||
let list: any = [
|
let list: any = [
|
||||||
{
|
{
|
||||||
|
|||||||
@ -20,7 +20,18 @@ const handleGetData = async () => {
|
|||||||
ProvinceCode: "530000",
|
ProvinceCode: "530000",
|
||||||
StatisticsMonth: "202505"
|
StatisticsMonth: "202505"
|
||||||
}
|
}
|
||||||
const data = await handleGetSupplierListChain(req)
|
// const data = await handleGetSupplierListChain(req)
|
||||||
|
|
||||||
|
let supplierListBox = sessionStorage.getItem('supplierListBox')
|
||||||
|
let data: any = []
|
||||||
|
if (supplierListBox) {
|
||||||
|
data = JSON.parse(supplierListBox)
|
||||||
|
} else {
|
||||||
|
data = await handleGetSupplierListChain(req)
|
||||||
|
sessionStorage.setItem("supplierListBox", JSON.stringify(data))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
console.log('handleGetSupplierListChainhandleGetSupplierListChain', data);
|
console.log('handleGetSupplierListChainhandleGetSupplierListChain', data);
|
||||||
|
|
||||||
supplierList.value = data.slice(0, 11)
|
supplierList.value = data.slice(0, 11)
|
||||||
|
|||||||
@ -392,7 +392,7 @@ const handleStopPrint = () => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<NewBigTitleBox :title="'节假日营收分析'" style="margin-top: 44px;">
|
<NewBigTitleBox :title="'节假日营收分析'" style="margin-top: 44px;">
|
||||||
<template #extra>
|
<!-- <template #extra>
|
||||||
<div class="FestivalBox">
|
<div class="FestivalBox">
|
||||||
<el-select class="festivalSelect" v-model="FestivalValue" placeholder="Select"
|
<el-select class="festivalSelect" v-model="FestivalValue" placeholder="Select"
|
||||||
style="width: 72px;">
|
style="width: 72px;">
|
||||||
@ -400,15 +400,12 @@ const handleStopPrint = () => {
|
|||||||
:value="item.value" />
|
:value="item.value" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template> -->
|
||||||
</NewBigTitleBox>
|
</NewBigTitleBox>
|
||||||
<!-- 节假日营收分析 -->
|
<!-- 节假日营收分析 -->
|
||||||
<!-- <FestivalRevenue :currentService="currentService" :FestivalValue="FestivalValue" /> -->
|
<!-- <FestivalRevenue :currentService="currentService" :FestivalValue="FestivalValue" /> -->
|
||||||
<FestivalRevenueSumInfo :currentService="currentService" :FestivalValue="FestivalValue" />
|
<FestivalRevenueSumInfo :currentService="currentService" :FestivalValue="FestivalValue" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- 电商模块 -->
|
<!-- 电商模块 -->
|
||||||
<!-- <modalTitle :title="'电商模块'" style="margin-top: 20px;" /> -->
|
<!-- <modalTitle :title="'电商模块'" style="margin-top: 20px;" /> -->
|
||||||
|
|
||||||
|
|||||||
@ -494,3 +494,14 @@ export async function handleGetWelFareSummary(params: any) {
|
|||||||
}
|
}
|
||||||
return data.Result_Data
|
return data.Result_Data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// 获取新的节假日营收数据
|
||||||
|
export async function handleGetHolidayRevenueRatio(params: any) {
|
||||||
|
const data: any = await requestCode.get('/Revenue/GetHolidayRevenueRatio', params)
|
||||||
|
if (data.Result_Code !== 100) {
|
||||||
|
return data
|
||||||
|
}
|
||||||
|
return wrapTreeNode(data.Result_Data.List)
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user