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()
}
}