From 552e3f20a06d677f7d2cc95e7ff52f01e48c1850 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Thu, 20 Mar 2025 15:38:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BA=97=E9=93=BA=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8D=95=E7=8B=AC=E6=BF=80=E6=B4=BB=E7=A0=81?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=EF=BC=8C=E4=BF=AE=E6=94=B9=E8=80=97=E6=9D=90?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=90=9C=E7=B4=A2=E6=97=B6=E9=97=B4=E7=AD=9B?= =?UTF-8?q?=E9=80=89=E6=9D=A1=E4=BB=B6=E4=BC=A0=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inventory/consumables/index.vue | 8 ++- .../shop/list/components/activateCode.vue | 60 +++++++++++++++++++ src/views/shop/list/index.vue | 14 ++++- 3 files changed, 79 insertions(+), 3 deletions(-) create mode 100644 src/views/shop/list/components/activateCode.vue diff --git a/src/views/inventory/consumables/index.vue b/src/views/inventory/consumables/index.vue index 83cfd3d..73176b2 100644 --- a/src/views/inventory/consumables/index.vue +++ b/src/views/inventory/consumables/index.vue @@ -123,7 +123,13 @@ function toGoods(id: number | string) { //统计数据 const gongjiData = reactive({ totalRow: 0 }); function getTongji(params: IObject | undefined) { - consApi.statistics(params).then((res) => { + const query = { ...params }; + if (params?.createAt) { + query.beginTime = params.createAt[0]; + query.endTime = params.createAt[1]; + delete query.createAt; + } + consApi.statistics(query).then((res) => { Object.assign(gongjiData, res); }); } diff --git a/src/views/shop/list/components/activateCode.vue b/src/views/shop/list/components/activateCode.vue new file mode 100644 index 0000000..7b77d78 --- /dev/null +++ b/src/views/shop/list/components/activateCode.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/src/views/shop/list/index.vue b/src/views/shop/list/index.vue index fe6c761..a084d3d 100644 --- a/src/views/shop/list/index.vue +++ b/src/views/shop/list/index.vue @@ -103,12 +103,16 @@ - +