dev
This commit is contained in:
parent
062df7714d
commit
d9dac5d824
|
|
@ -24,7 +24,6 @@ const getPersonPayOverview = () => {
|
||||||
const thisWeek = getThisWeek();
|
const thisWeek = getThisWeek();
|
||||||
post("statistics/getPersonPayOverview", {beginTime: thisWeek.start, endTime: thisWeek.end}).then((res: any) => {
|
post("statistics/getPersonPayOverview", {beginTime: thisWeek.start, endTime: thisWeek.end}).then((res: any) => {
|
||||||
dateList.value = res.dateList
|
dateList.value = res.dateList
|
||||||
vipData.value = res.vipPrice
|
|
||||||
commonData.value = res.commonPrice
|
commonData.value = res.commonPrice
|
||||||
initEcharts(dateList.value, vipData.value, commonData.value)
|
initEcharts(dateList.value, vipData.value, commonData.value)
|
||||||
})
|
})
|
||||||
|
|
@ -56,7 +55,7 @@ const initEcharts = (dateList: any[], vipData: any, commonData: any) => {
|
||||||
trigger: 'axis'
|
trigger: 'axis'
|
||||||
},
|
},
|
||||||
legend: {
|
legend: {
|
||||||
data: ['患者', '普通',]
|
data: [ '普通',]
|
||||||
},
|
},
|
||||||
grid: {
|
grid: {
|
||||||
left: '3%',
|
left: '3%',
|
||||||
|
|
@ -73,12 +72,6 @@ const initEcharts = (dateList: any[], vipData: any, commonData: any) => {
|
||||||
type: 'value'
|
type: 'value'
|
||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
{
|
|
||||||
name: '患者',
|
|
||||||
type: 'line',
|
|
||||||
stack: 'Total',
|
|
||||||
data: vipData
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: '普通',
|
name: '普通',
|
||||||
type: 'line',
|
type: 'line',
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ const openInventoryWarnDetail = () => {
|
||||||
const getInventoryWarning = () => {
|
const getInventoryWarning = () => {
|
||||||
post("statistics/numberEarlyWarning").then((res: any) => {
|
post("statistics/numberEarlyWarning").then((res: any) => {
|
||||||
inventoryWarnListSrc.value = res
|
inventoryWarnListSrc.value = res
|
||||||
inventoryWarnList.value = res.slice(0, 3)
|
inventoryWarnList.value = res.slice(0, 4)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ const expireDateWarningList = ref<any>([]);
|
||||||
const getExpiryDateWarning = () => {
|
const getExpiryDateWarning = () => {
|
||||||
post("statistics/expiryDateWarning").then((res: any) => {
|
post("statistics/expiryDateWarning").then((res: any) => {
|
||||||
expireDateWarningListSrc.value = res
|
expireDateWarningListSrc.value = res
|
||||||
expireDateWarningList.value = res.slice(0, 3)
|
expireDateWarningList.value = res.slice(0, 4)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue