diff --git a/src/components/statistics/over/Charge.vue b/src/components/statistics/over/Charge.vue index e2315fa..25a7e60 100644 --- a/src/components/statistics/over/Charge.vue +++ b/src/components/statistics/over/Charge.vue @@ -2,13 +2,16 @@
- - - - - - - +
@@ -36,26 +39,28 @@ \ No newline at end of file diff --git a/src/components/statistics/over/ChargeDetail.vue b/src/components/statistics/over/ChargeDetail.vue index 9f3e260..7b0386a 100644 --- a/src/components/statistics/over/ChargeDetail.vue +++ b/src/components/statistics/over/ChargeDetail.vue @@ -2,69 +2,20 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
- + @@ -72,10 +23,10 @@ - - + +
@@ -85,8 +36,11 @@ import {onMounted, ref} from 'vue' import {post} from "@/utils/request.ts"; import {API} from "@/assets/config/API.ts"; +import {getCurrentDate, getPrevious30Days} from "@/utils/dateUtils.ts"; const tableData = ref([]) -const date = ref([]) +const date = ref([ + getPrevious30Days() ,getCurrentDate() +]) const salesPerson = ref('') const salesPersonOptions = [{} ] @@ -118,7 +72,7 @@ const payOptions = [{ ] const getDate = () => { - post(API.Statistics.Base.GetQueueCount).then((res:any)=>{ + post(API.Charge.Log.List,{beginTime:date.value[0],endTime:date.value[1]}).then((res:any)=>{ tableData.value = res.list }) } diff --git a/src/components/statistics/over/ChargeMan.vue b/src/components/statistics/over/ChargeMan.vue index 7303a91..bfa0327 100644 --- a/src/components/statistics/over/ChargeMan.vue +++ b/src/components/statistics/over/ChargeMan.vue @@ -2,30 +2,33 @@
- - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + +
- - + + + @@ -34,7 +37,10 @@ - + +
@@ -54,12 +60,11 @@ const chargeMan = ref(''); const chargeManOptions = ref([]); const getSalePersonCharge = () => { - post(API.Statistics.Base.SalePerson).then((res:any)=>{ - + post(API.Statistics.Base.SalePerson).then((res: any) => { tableData.value = res }) } -onMounted(()=>{ +onMounted(() => { getSalePersonCharge() }) diff --git a/src/components/statistics/over/Revenue.vue b/src/components/statistics/over/Revenue.vue index 929c15b..e260a4c 100644 --- a/src/components/statistics/over/Revenue.vue +++ b/src/components/statistics/over/Revenue.vue @@ -399,7 +399,6 @@ const initIncomeChart = () => { date.start = selectIncomeDate.value[0] date.end = selectIncomeDate.value[1] } - post(API.Statistics.Base.GetPayOverview, {beginTime: date.start, endTime: date.end}).then((res: any) => { incomeDateList.value = res.dateList incomeCommonData.value = res.commonPrice @@ -446,7 +445,6 @@ const changeSelectIncomeDate = (date: any) => { } - const curCountDate = ref(weekAndMonth[0]); const selectCountDate = ref(); const changeCountDate = (dateItem: any) => { @@ -466,7 +464,7 @@ const countDateList = ref([ '2024-03-06', '2024-03-02', ]) -const countDataList = ref([5, 20, 36, 10, 10, 20]) +const countDataList = ref([5, 20, 36, 10, 10, 20]) const changeSelectCountDate = (date: any) => { curCountDate.value = null selectCountDate.value = date @@ -496,8 +494,7 @@ const initCountChart = () => { data: countDateList.value }, - yAxis: { - }, + yAxis: {}, series: [ { name: '销量', @@ -529,7 +526,7 @@ const initCountChart = () => { &:hover { color: #fff; - background: rgba(#4D6DE4,0.5); + background: rgba(#4D6DE4, 0.5); } }