dev
This commit is contained in:
parent
5b63cf7b38
commit
73f96130d8
|
|
@ -84,6 +84,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {onMounted, ref} from 'vue'
|
import {onMounted, ref} from 'vue'
|
||||||
import {post} from "@/utils/request.ts";
|
import {post} from "@/utils/request.ts";
|
||||||
|
import {API} from "@/assets/config/API.ts";
|
||||||
const tableData = ref<any[]>([])
|
const tableData = ref<any[]>([])
|
||||||
const date = ref<any>([])
|
const date = ref<any>([])
|
||||||
const salesPerson = ref<any>('')
|
const salesPerson = ref<any>('')
|
||||||
|
|
@ -117,7 +118,7 @@ const payOptions = [{
|
||||||
]
|
]
|
||||||
|
|
||||||
const getDate = () => {
|
const getDate = () => {
|
||||||
post("charge/getChargeRecord").then((res:any)=>{
|
post(API.Statistics.Base.GetQueueCount).then((res:any)=>{
|
||||||
tableData.value = res.list
|
tableData.value = res.list
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@
|
||||||
import {onMounted, ref} from 'vue'
|
import {onMounted, ref} from 'vue'
|
||||||
import {dateEquals} from "element-plus";
|
import {dateEquals} from "element-plus";
|
||||||
import {post} from "@/utils/request.ts";
|
import {post} from "@/utils/request.ts";
|
||||||
|
import {API} from "@/assets/config/API.ts";
|
||||||
|
|
||||||
const tableData = ref<any>([]);
|
const tableData = ref<any>([]);
|
||||||
|
|
||||||
|
|
@ -53,7 +54,7 @@ const chargeMan = ref<any>('');
|
||||||
const chargeManOptions = ref<any>([]);
|
const chargeManOptions = ref<any>([]);
|
||||||
|
|
||||||
const getSalePersonCharge = () => {
|
const getSalePersonCharge = () => {
|
||||||
post("statistics/salePerson").then((res:any)=>{
|
post(API.Statistics.Base.SalePerson).then((res:any)=>{
|
||||||
|
|
||||||
tableData.value = res
|
tableData.value = res
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -150,6 +150,7 @@ import {
|
||||||
formatDateArray,
|
formatDateArray,
|
||||||
getEndOfDay
|
getEndOfDay
|
||||||
} from "@/utils/dateUtils.ts"
|
} from "@/utils/dateUtils.ts"
|
||||||
|
import {API} from "@/assets/config/API.ts";
|
||||||
|
|
||||||
const changeNum = ref(0)
|
const changeNum = ref(0)
|
||||||
const data = ref<any>({
|
const data = ref<any>({
|
||||||
|
|
@ -399,7 +400,7 @@ const initIncomeChart = () => {
|
||||||
date.end = selectIncomeDate.value[1]
|
date.end = selectIncomeDate.value[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
post("statistics/getPersonPayOverview", {beginTime: date.start, endTime: date.end}).then((res: any) => {
|
post(API.Statistics.Base.GetPayOverview, {beginTime: date.start, endTime: date.end}).then((res: any) => {
|
||||||
incomeDateList.value = res.dateList
|
incomeDateList.value = res.dateList
|
||||||
incomeCommonData.value = res.commonPrice
|
incomeCommonData.value = res.commonPrice
|
||||||
const newChart = echarts.init(document.getElementById('incomeChart'));
|
const newChart = echarts.init(document.getElementById('incomeChart'));
|
||||||
|
|
@ -485,7 +486,7 @@ const initCountChart = () => {
|
||||||
date.end = selectCountDate.value[1]
|
date.end = selectCountDate.value[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
post("statistics/getSalesVolumeOverview", {beginTime: date.start, endTime: date.end}).then((res: any) => {
|
post(API.Statistics.Base.GetSalesVolumeOverview, {beginTime: date.start, endTime: date.end}).then((res: any) => {
|
||||||
countDateList.value = res.dateList
|
countDateList.value = res.dateList
|
||||||
countDataList.value = res.countList
|
countDataList.value = res.countList
|
||||||
const newChart = echarts.init(document.getElementById('countChart'));
|
const newChart = echarts.init(document.getElementById('countChart'));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue