diff --git a/src/views/oa/erp/timesheetPreAlloc/index.vue b/src/views/oa/erp/timesheetPreAlloc/index.vue index 3baf36d..7e1e0c2 100644 --- a/src/views/oa/erp/timesheetPreAlloc/index.vue +++ b/src/views/oa/erp/timesheetPreAlloc/index.vue @@ -66,7 +66,12 @@ - 导出 + 导出 + + + + 导出分配明细 + @@ -632,6 +637,18 @@ const handleExport = () => { ); }; +const handleExportDetail = () => { + proxy?.download( + 'oa/erp/timesheetPreAlloc/exportDetail', + { + ...queryParams.value, + // 如果选中了数据,则只导出选中的数据的分配明细 + allocIds: ids.value.length > 0 ? ids.value.join(',') : undefined + }, + `timesheetPreAllocDetail_${new Date().getTime()}.xlsx` + ); +}; + onMounted(async () => { await Promise.all([loadTargetProjectOptions(), loadQuerySourceProjectOptions()]); await getList();