| | |
| | | <script lang="ts" setup> |
| | | import type { EchartsUIType } from '..\..\..\..\packages\effects\plugins\src\echarts'; |
| | | import type { EchartsUIType } from '@vben/plugins/echarts'; |
| | | |
| | | import type { VxeTableGridOptions } from '#/adapter/vxe-table'; |
| | | import type { CrmStatisticsCustomerApi } from '#/api/crm/statistics/customer'; |
| | | |
| | | import { onMounted, ref } from 'vue'; |
| | | |
| | | import { ContentWrap, Page } from '..\..\..\..\packages\effects\common-ui\src'; |
| | | import { EchartsUI, useEcharts } from '..\..\..\..\packages\effects\plugins\src\echarts'; |
| | | import { beginOfDay, endOfDay, formatDateTime } from '..\..\..\..\packages\utils\src'; |
| | | import { ContentWrap, Page } from '@vben/common-ui'; |
| | | import { EchartsUI, useEcharts } from '@vben/plugins/echarts'; |
| | | import { beginOfDay, endOfDay, formatDateTime } from '@vben/utils'; |
| | | |
| | | import { Tabs } from 'ant-design-vue'; |
| | | |
| | |
| | | tableData[2][`field${index}`] = item.lastYearCount; |
| | | tableData[3][`field${index}`] = |
| | | item.lastMonthCount === 0 |
| | | ? 'NULL' |
| | | ? (item.currentMonthCount > 0 ? 100 : 0).toFixed(2) |
| | | : ( |
| | | ((item.currentMonthCount - item.lastMonthCount) / |
| | | item.lastMonthCount) * |
| | |
| | | ).toFixed(2); |
| | | tableData[4][`field${index}`] = |
| | | item.lastYearCount === 0 |
| | | ? 'NULL' |
| | | ? (item.currentMonthCount > 0 ? 100 : 0).toFixed(2) |
| | | : ( |
| | | ((item.currentMonthCount - item.lastYearCount) / |
| | | item.lastYearCount) * |