diff --git a/src/api/financial_transfers.ts b/src/api/financial_transfers.ts new file mode 100644 index 0000000..e2e9772 --- /dev/null +++ b/src/api/financial_transfers.ts @@ -0,0 +1,11 @@ +import request from '@/utils/request' + +// 财务转账表列表 +export function apiFinancialTransfersLists(params: any) { + return request.get({ url: '/finance/financialTransfers/lists', params }) +} + +// 发送 +export function apiFinancialTransfersConfirm(params: any) { + return request.post({ url: '/finance/financialTransfers/confirmation', params }) +} diff --git a/src/api/statistics.ts b/src/api/statistics.ts index 9204c10..df12c5b 100644 --- a/src/api/statistics.ts +++ b/src/api/statistics.ts @@ -42,6 +42,6 @@ export function apideliveryOrder(params: any) { return request.get({ url: '/workbench/deliveryOrder', params }) } -export function apidbusinessStatistics() { - return request.get({ url: '/workbench/business_statistics' }) +export function apidbusinessStatistics(params: any) { + return request.get({ url: '/workbench/business_statistics', params }) } diff --git a/src/views/financialTransfers/index.vue b/src/views/financialTransfers/index.vue new file mode 100644 index 0000000..c02e69e --- /dev/null +++ b/src/views/financialTransfers/index.vue @@ -0,0 +1,119 @@ + + + + diff --git a/src/views/workbench/earnings/index.vue b/src/views/workbench/earnings/index.vue index 01e2f36..71460d7 100644 --- a/src/views/workbench/earnings/index.vue +++ b/src/views/workbench/earnings/index.vue @@ -2,25 +2,42 @@ - + +
+
+ +
+
+
{{ item.title }}
+
{{ item.value() }}
+
+
- + - - -
- -

{{ item.footer }}

+
+
+
- +
+
{{ item.title }}
+
{{ item.value() }}
+
+
@@ -37,7 +54,7 @@ import { ref, reactive, onMounted } from "vue" import { apidbusinessStatistics } from '@/api/statistics' import vCharts from 'vue-echarts' -const date = ref([]) +const month = ref() const loading = ref(true) const formData = ref({ @@ -63,7 +80,7 @@ const statisticLists = reactive([ } }, { - src: 'https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701594ff8897.png', + src: 'https://ceshi-engineering.lihaink.cn/uploads/files/20240604/202406041717013a08c6793.png', title: "成本", value: () => { return String(formData.value.today.cost_today || 0) @@ -103,7 +120,7 @@ const statisticLists2 = reactive([ } }, { - src: 'https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701594ff8897.png', + src: 'https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701fbb680115.png', title: "现金收银金额", value: () => { return String(formData.value.all.cash_all || 0) @@ -174,7 +191,7 @@ const visitorOption = reactive({ const getData = async () => { - let res = await apidbusinessStatistics() + let res = await apidbusinessStatistics({ month: month.value }) formData.value.all = res.all formData.value.today = res.today let data = res.time @@ -189,14 +206,13 @@ const getData = async () => { loading.value = false } - -const initPage = () => { +const monthChange = () => { getData() } onMounted(() => { - initPage() + getData() }) \ No newline at end of file diff --git a/src/views/workbench/index.vue b/src/views/workbench/index.vue index 9497e55..a5fc378 100644 --- a/src/views/workbench/index.vue +++ b/src/views/workbench/index.vue @@ -10,12 +10,17 @@ - - - - - - +
+
+
+ +
+
+
{{ item.title }}
+
{{ item.value() }}
+
+
+