From 89e43b7b12d4d991f1178d31fdd674209d32ff6c Mon Sep 17 00:00:00 2001 From: WUSIJIAN <13825895+wsj0228@user.noreply.gitee.com> Date: Mon, 2 Mar 2026 17:38:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E7=9B=98=E7=82=B9=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=AF=BC=E5=87=BA=E5=8A=9F=E8=83=BD,=E5=B0=86?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=A8=A1=E6=9D=BF=E6=8E=A5=E5=8F=A3=E9=87=8D?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E4=B8=BA=E5=AF=BC=E5=87=BA=E7=9B=98=E7=82=B9?= =?UTF-8?q?,=E7=BB=9F=E4=B8=80=E6=8E=A5=E5=8F=A3=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/assets/operation/count/index.ts | 6 +++--- src/views/assets/operation/count/component/importDialog.vue | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/api/assets/operation/count/index.ts b/src/api/assets/operation/count/index.ts index 84f1727..3ecb8a1 100644 --- a/src/api/assets/operation/count/index.ts +++ b/src/api/assets/operation/count/index.ts @@ -91,10 +91,10 @@ export function cancelInventoryCount(id: string[], reason?: string) { }); } -// 导出盘点模板 -export function exportInventoryCountTemplate(id: string) { +// 导出盘点 +export function exportInventoryCount(id: string) { return newService({ - url: 'assets/inventory/count/exportInventoryCountTemplate', + url: 'assets/inventory/count/exportInventoryCount', method: 'get', params: { id }, responseType: 'blob', diff --git a/src/views/assets/operation/count/component/importDialog.vue b/src/views/assets/operation/count/component/importDialog.vue index e4a7ff8..51b56cf 100644 --- a/src/views/assets/operation/count/component/importDialog.vue +++ b/src/views/assets/operation/count/component/importDialog.vue @@ -51,7 +51,7 @@ export default { import { ref } from 'vue'; import { ElMessage } from 'element-plus'; import type { UploadFile, UploadInstance, UploadRawFile } from 'element-plus'; -import { exportInventoryCountTemplate, importInventoryCount } from '/@/api/assets/operation/count'; +import { exportInventoryCount, importInventoryCount } from '/@/api/assets/operation/count'; // 定义事件 const emit = defineEmits(['refresh']); @@ -96,7 +96,7 @@ const onDownloadTemplate = async () => { return; } try { - const res = await exportInventoryCountTemplate(countId.value); + const res = await exportInventoryCount(countId.value); const blob = new Blob([res.data], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' }); const url = window.URL.createObjectURL(blob); const link = document.createElement('a');