From 9fd0f489487f53e44e777966e410faeb62c57ccb Mon Sep 17 00:00:00 2001 From: Yangk Date: Tue, 17 Mar 2026 09:12:00 +0800 Subject: [PATCH] =?UTF-8?q?feat(oa/erp):=20=E6=B7=BB=E5=8A=A0=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E9=87=87=E8=B4=AD=E6=98=8E=E7=BB=86=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/oa/erp/projectPurchase/edit.vue | 28 ++++++++++--------- src/views/oa/erp/projectPurchase/index.vue | 31 ++++++++++++++++++---- 2 files changed, 41 insertions(+), 18 deletions(-) diff --git a/src/views/oa/erp/projectPurchase/edit.vue b/src/views/oa/erp/projectPurchase/edit.vue index be228bc..8ac3b30 100644 --- a/src/views/oa/erp/projectPurchase/edit.vue +++ b/src/views/oa/erp/projectPurchase/edit.vue @@ -12,6 +12,10 @@ :mode="false" /> +
+ 导出采购明细 +
+ @@ -137,7 +141,7 @@ @@ -220,11 +224,7 @@ @@ -255,13 +255,7 @@ - + @@ -796,6 +790,14 @@ const projectInfoSelectCallBack = (data: ProjectInfoVO[]) => { } }; +const handleExportSingle = () => { + proxy?.download( + `oa/erp/projectPurchase/exportSingle/${form.value.projectPurchaseId}`, + {}, + `projectPurchase_${form.value.projectCode}_${new Date().getTime()}.xlsx` + ); +}; + // 初始化调用 const loadSelectOptions = () => { getUserList(); diff --git a/src/views/oa/erp/projectPurchase/index.vue b/src/views/oa/erp/projectPurchase/index.vue index 4218324..e2f3eb7 100644 --- a/src/views/oa/erp/projectPurchase/index.vue +++ b/src/views/oa/erp/projectPurchase/index.vue @@ -37,10 +37,14 @@ 新增 - 修改 + 修改 - 删除 + 删除 导出 @@ -95,9 +99,18 @@ - - - + + + + + + @@ -263,6 +276,14 @@ const handleExport = () => { ); }; +const handleExportSingle = (row: ProjectPurchaseVO) => { + proxy?.download( + `oa/erp/projectPurchase/exportSingle/${row.projectPurchaseId}`, + {}, + `projectPurchase_${row.projectCode}_${new Date().getTime()}.xlsx` + ); +}; + onMounted(() => { getList(); });