From 5f17a681b66881cdaad2272267fa7eebe951f82d Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Thu, 22 Aug 2024 09:06:29 +0800 Subject: [PATCH] =?UTF-8?q?Q2=E9=80=9A=E7=9F=A5=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/inspectionQ2/index.vue | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/views/qms/inspectionQ2/index.vue b/src/views/qms/inspectionQ2/index.vue index 8289a9667..06ac5013e 100644 --- a/src/views/qms/inspectionQ2/index.vue +++ b/src/views/qms/inspectionQ2/index.vue @@ -56,7 +56,18 @@ @searchTableSuccess="searchTableSuccess" :isBusiness="false" @onChange="onChange" - /> + > + + @@ -83,8 +94,9 @@ import { formatDate } from '@/utils/formatTime' import * as SupplieritemApi from '@/api/wms/supplieritem' import * as SupplierApi from '@/api/wms/supplier' import * as ItembasicApi from '@/api/wms/itembasic' - import { useUserStore } from '@/store/modules/user' +import { usePageLoading } from '@/hooks/web/usePageLoading' +const { loadStart, loadDone } = usePageLoading() const userStore = useUserStore() defineOptions({ name: 'InspectionQ2' }) @@ -487,13 +499,13 @@ const handleExport = async () => { // 导出的二次确认 await message.exportConfirm() // 发起导出 - exportLoading.value = true + loadStart() const excelTitle = ref(route.meta.title) const data = await Q2Api.exportQ2(tableObject.params) download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { - exportLoading.value = false + loadDone() } }