diff --git a/src/pages.json b/src/pages.json index bb92a69..fbca8a3 100644 --- a/src/pages.json +++ b/src/pages.json @@ -359,6 +359,17 @@ } ] }, + { + "root": "pages/water", + "pages": [ + { + "path": "waterTotal", + "style": { + "navigationBarTitleText": "月度流水统计" + } + } + ] + }, { "root": "pages/integrated", "pages": [ diff --git a/src/pages/tabbar/flowStatistics.vue b/src/pages/tabbar/flowStatistics.vue index 8504464..b78b4c3 100644 --- a/src/pages/tabbar/flowStatistics.vue +++ b/src/pages/tabbar/flowStatistics.vue @@ -16,24 +16,27 @@ > @@ -97,7 +100,7 @@ const state = reactive({ createTimeList: [], }, formatVal: "", - date: "", + date: [], }) const formatVal = computed(() => (state.date.length === 2 ? state.formatVal : "")) const pageHook = hooks.usePage(pageRef, flowStatisticsApi.page, null, "data") @@ -112,7 +115,6 @@ onShow(() => { if (pageRef.value) { pageRef.value.reload(false) } - // getTotalWatar() }) const query = (page: number, pagesize: number) => { @@ -127,10 +129,10 @@ const datePickerConfirm = (date: any) => { pageRef.value.reload(false) } -// 查询全部流水 -// const getTotalWatar = async () => { -// const res: any = await flowStatisticsApi.mchWaterTotal() -// if (res.code == 0) { -// } -// } +// 月度流水 +const doWaterTotal = () => { + uni.navigateTo({ + url: "/pages/water/waterTotal", + }) +} diff --git a/src/pages/water/waterTotal.vue b/src/pages/water/waterTotal.vue new file mode 100644 index 0000000..2c1a032 --- /dev/null +++ b/src/pages/water/waterTotal.vue @@ -0,0 +1,142 @@ + + +