diff --git a/src/views/planMange/dailyPlan/index.vue b/src/views/planMange/dailyPlan/index.vue index 0b616fc..6b895d7 100644 --- a/src/views/planMange/dailyPlan/index.vue +++ b/src/views/planMange/dailyPlan/index.vue @@ -318,10 +318,17 @@ const onDownloadStatistic = () => { // 下载工作量统计表 const onDownloadWorkloadSummary = () => { + + // 获取查询表单的日期数据 + const formData = comTableRef.value?.searchFormRef?.getFormData() || {} + const startDate = formData.startDate || dayjs().startOf('month').format('YYYY-MM-DD') + const endDate = formData.endDate || dayjs().endOf('month').format('YYYY-MM-DD') proxy.download( - '/monthlyPlan/exportWorkloadSummary', + '/dayPlan/exportWorkloadSummary', { dayPlanType: tableType.value, + startDate, + endDate, }, `${tableType.value === '1' ? '检修' : '项目部'}统计表.xlsx`, )