From 490f9d3bfeed872858b8069fd79b091a003ef9f6 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Fri, 14 Jun 2024 18:08:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=B7=A5=E4=BD=9C=E5=8F=B0?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=8C=E4=BC=98=E5=8C=96=E4=BA=A4=E6=98=93?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=B1=95=E7=A4=BA=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=A0=B8=E9=94=80=E8=AE=A2=E5=8D=95=E9=87=91=E9=A2=9D=E7=AD=89?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=B1=95=E7=A4=BA=E9=94=99=E8=AF=AF=EF=BC=8C?= =?UTF-8?q?=E5=B9=B6=E8=B0=83=E6=95=B4=E7=9B=B8=E5=85=B3API=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/financial_transfers.ts | 11 +++ src/api/statistics.ts | 4 +- src/views/financialTransfers/index.vue | 119 +++++++++++++++++++++++++ src/views/workbench/earnings/index.vue | 48 ++++++---- src/views/workbench/index.vue | 38 +++++--- 5 files changed, 189 insertions(+), 31 deletions(-) create mode 100644 src/api/financial_transfers.ts create mode 100644 src/views/financialTransfers/index.vue 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() }}
+
+
+