Browse Source

所有页面导出添加loading功能

hella_online_20240823
wangyufei 3 months ago
parent
commit
5f9315e5ea
  1. 7
      src/views/eam/SparePartsOutLocationRecord/index.vue
  2. 8
      src/views/eam/equipmentShutdown/index.vue
  3. 9
      src/views/eam/equipmentSigning/index.vue
  4. 9
      src/views/eam/equipmentSpotCheckDetail/index.vue
  5. 8
      src/views/eam/equipmentSpotCheckMain/index.vue
  6. 8
      src/views/eam/equipmentSpotCheckRecordDetail/index.vue
  7. 9
      src/views/eam/equipmentSpotCheckRecordMain/index.vue
  8. 9
      src/views/eam/equipmentSupplier/index.vue
  9. 8
      src/views/eam/equipmentToolSparePart/index.vue
  10. 8
      src/views/eam/equipmentTransferRecord/index.vue
  11. 8
      src/views/eam/inspectionItem/index.vue
  12. 8
      src/views/eam/inspectionItemSelectSet/index.vue
  13. 8
      src/views/eam/item/index.vue
  14. 8
      src/views/eam/itemAccounts/index.vue
  15. 9
      src/views/eam/itemApplyMain/index.vue
  16. 8
      src/views/eam/itemDelete/index.vue
  17. 9
      src/views/eam/itemInLocation/index.vue
  18. 8
      src/views/eam/itemLocationReplace/index.vue
  19. 8
      src/views/eam/itemMaintenance/index.vue
  20. 8
      src/views/eam/itemOrderMain/index.vue
  21. 8
      src/views/eam/itemOutLocation/index.vue
  22. 9
      src/views/eam/location/index.vue
  23. 9
      src/views/eam/locationArea/index.vue
  24. 8
      src/views/eam/maintainExperience/index.vue
  25. 8
      src/views/eam/maintenance/index.vue
  26. 8
      src/views/eam/maintenanceItem/index.vue
  27. 8
      src/views/eam/maintenanceItemSelectSet/index.vue
  28. 8
      src/views/eam/planInspection/index.vue
  29. 9
      src/views/eam/planSpotCheck/index.vue
  30. 9
      src/views/eam/recordDeviceChanged/index.vue
  31. 9
      src/views/eam/relationMainPart/index.vue
  32. 9
      src/views/eam/repairExperience/index.vue
  33. 8
      src/views/eam/repairSparePartsRecord/index.vue
  34. 7
      src/views/eam/repairSparePartsRequest/index.vue
  35. 8
      src/views/eam/sparePart/index.vue
  36. 7
      src/views/eam/sparePartsApplyMain/index.vue
  37. 8
      src/views/eam/sparepartsinlocation/index.vue
  38. 7
      src/views/eam/sparepartsoutlocation/index.vue
  39. 8
      src/views/eam/spotCheckItem/index.vue
  40. 8
      src/views/eam/spotCheckSelectSet/index.vue
  41. 8
      src/views/eam/tableDataExtendedAttribute/index.vue
  42. 8
      src/views/eam/toolAccounts/index.vue
  43. 8
      src/views/eam/toolChangedRecord/index.vue
  44. 9
      src/views/eam/toolEquipmentIn/index.vue
  45. 7
      src/views/eam/toolEquipmentOut/index.vue
  46. 7
      src/views/eam/toolMod/index.vue
  47. 8
      src/views/eam/toolSigning/index.vue
  48. 7
      src/views/eam/transaction/index.vue
  49. 7
      src/views/infra/apiAccessLog/index.vue
  50. 7
      src/views/infra/apiErrorLog/index.vue
  51. 7
      src/views/infra/config/index.vue
  52. 7
      src/views/infra/job/index.vue
  53. 7
      src/views/infra/job/logger/index.vue
  54. 8
      src/views/mes/dismantlingMain/index.vue
  55. 8
      src/views/mes/holiday/index.vue

7
src/views/eam/SparePartsOutLocationRecord/index.vue

@ -101,7 +101,8 @@ import * as SparePartsOutLocationRecordDetailApi from '@/api/eam/sparePartsOutLo
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'SparePartsOutLocationRecord' })
@ -292,14 +293,14 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await SparePartsOutLocationRecordMainApi.exportSparePartsOutLocationRecordMain(
tableObject.params
)
download.excel(data, '备件申领记录主.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/equipmentShutdown/index.vue

@ -65,6 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentShutdown' })
@ -196,18 +198,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await EquipmentShutdownApi.exportEquipmentShutdown(tableObject.params)
download.excel(data, '设备停机记录.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

9
src/views/eam/equipmentSigning/index.vue

@ -68,7 +68,8 @@ import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import * as UserApi from '@/api/system/user'
import * as EquipmentSupplierApi from '@/api/eam/equipmentSupplier'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentSigning' })
const message = useMessage() //
@ -218,18 +219,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await EquipmentSigningApi.exportEquipmentSigning(tableObject.params)
download.excel(data, '设备到货签收记录.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

9
src/views/eam/equipmentSpotCheckDetail/index.vue

@ -65,7 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentSpotCheckDetail' })
const message = useMessage() //
@ -196,18 +197,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await EquipmentSpotCheckDetailApi.exportEquipmentSpotCheckDetail(tableObject.params)
download.excel(data, '点检工单子.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/equipmentSpotCheckMain/index.vue

@ -94,7 +94,8 @@ import * as EquipmentItemApi from "@/api/eam/equipmentAccounts";
import {ToolAccounts} from "@/views/eam/toolAccounts/toolAccounts.data";
import * as ToolItemApi from "@/api/eam/toolAccounts";
import * as EquipmentRepairJobMainApi from "@/api/eam/equipmentRepairJobMain";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentSpotCheckMain' })
const message = useMessage() //
@ -514,18 +515,17 @@ const getData2=(val)=> {
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await EquipmentSpotCheckMainApi.exportEquipmentSpotCheckMain(tableObject.params)
download.excel(data, '点检工单主.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/equipmentSpotCheckRecordDetail/index.vue

@ -65,6 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentSpotCheckRecordDetail' })
@ -196,18 +198,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await EquipmentSpotCheckRecordDetailApi.exportEquipmentSpotCheckRecordDetail(tableObject.params)
download.excel(data, '点检记录子.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

9
src/views/eam/equipmentSpotCheckRecordMain/index.vue

@ -78,7 +78,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentSpotCheckRecordMain' })
const message = useMessage() //
@ -209,18 +210,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await EquipmentSpotCheckRecordMainApi.exportEquipmentSpotCheckRecordMain(tableObject.params)
download.excel(data, '点检记录主.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

9
src/views/eam/equipmentSupplier/index.vue

@ -65,7 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentSupplier' })
const message = useMessage() //
@ -212,18 +213,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await EquipmentSupplierApi.exportEquipmentSupplier(tableObject.params)
download.excel(data, '供应商.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/equipmentToolSparePart/index.vue

@ -65,7 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentToolSparePart' })
const message = useMessage() //
@ -196,18 +197,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await EquipmentToolSparePartApi.exportEquipmentToolSparePart(tableObject.params)
download.excel(data, '设备或工装与备件关联.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/equipmentTransferRecord/index.vue

@ -68,7 +68,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import * as UserApi from '@/api/system/user'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentTransferRecord' })
const message = useMessage() //
@ -215,18 +216,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await EquipmentTransferRecordApi.exportEquipmentTransferRecord(tableObject.params)
download.excel(data, '设备移动记录.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/inspectionItem/index.vue

@ -66,7 +66,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import * as InspectionItemSelectSetApi from "@/api/eam/inspectionItemSelectSet";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'InspectionItem' })
const message = useMessage() //
@ -214,18 +215,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await InspectionItemApi.exportInspectionItem(tableObject.params)
download.excel(data, '巡检项.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/inspectionItemSelectSet/index.vue

@ -57,7 +57,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import ItemForm from "@/views/eam/inspectionItemSelectSet/itemSelectSetForm.vue";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'InspectionItemSelectSet' })
const message = useMessage() //
@ -240,18 +241,17 @@ const handleDisable = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await InspectionItemSelectSetApi.exportInspectionItemSelectSet(tableObject.params)
download.excel(data, '巡检项选择集.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/item/index.vue

@ -89,7 +89,8 @@ import Detail from '@/components/Detail/src/Detail.vue'
import { SearchTable } from '@/components/SearchTable'
import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Item' })
const message = useMessage() //
@ -314,18 +315,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ItemApi.exportItem(tableObject.params)
download.excel(data, '备件.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/itemAccounts/index.vue

@ -91,7 +91,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ItemAccounts' })
const message = useMessage() //
@ -364,18 +365,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ItemAccountsApi.exportItemAccounts(tableObject.params)
download.excel(data, '备件台账.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

9
src/views/eam/itemApplyMain/index.vue

@ -54,7 +54,9 @@
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'ItemApplyMain' })
@ -251,18 +253,17 @@
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ItemApplyMainApi.exportItemApplyMain(tableObject.params)
download.excel(data, '备件申领记录主.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/itemDelete/index.vue

@ -98,6 +98,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ItemDelete' })
@ -352,18 +354,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ItemAccountsApi.exportItemAccounts(tableObject.params)
download.excel(data, '备件台账.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

9
src/views/eam/itemInLocation/index.vue

@ -47,7 +47,9 @@
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ItemInLocation' })
const message = useMessage() //
@ -177,18 +179,17 @@
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ItemInLocationApi.exportItemInLocation(tableObject.params)
download.excel(data, '备件入库记录.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/itemLocationReplace/index.vue

@ -65,7 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ItemLocationReplace' })
const message = useMessage() //
@ -196,18 +197,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ItemLocationReplaceApi.exportItemLocationReplace(tableObject.params)
download.excel(data, '备件库位变更记录.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/itemMaintenance/index.vue

@ -65,7 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ItemMaintenance' })
const message = useMessage() //
@ -195,18 +196,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ItemMaintenanceApi.exportItemMaintenance(tableObject.params)
download.excel(data, '备件维修记录.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/itemOrderMain/index.vue

@ -55,7 +55,8 @@
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'ItemOrderMain' })
@ -218,18 +219,17 @@
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ItemOrderMainApi.exportItemOrderMain(tableObject.params)
download.excel(data, '备件申领记录主.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/itemOutLocation/index.vue

@ -65,7 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ItemOutLocation' })
const message = useMessage() //
@ -195,18 +196,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ItemOutLocationApi.exportItemOutLocation(tableObject.params)
download.excel(data, '备件出库记录.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

9
src/views/eam/location/index.vue

@ -76,7 +76,8 @@ import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Location' })
const message = useMessage() //
@ -237,18 +238,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await LocationApi.exportLocation(tableObject.params)
download.excel(data, '库位.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

9
src/views/eam/locationArea/index.vue

@ -44,7 +44,8 @@
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'LocationArea' })
const message = useMessage() //
@ -188,18 +189,18 @@
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await LocationAreaApi.exportLocationArea(tableObject.params)
download.excel(data, '库区.xls')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/maintainExperience/index.vue

@ -77,7 +77,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'MaintainExperience' })
const message = useMessage() //
@ -208,18 +209,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await MaintainExperienceApi.exportMaintainExperience(tableObject.params)
download.excel(data, '保养经验记录.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/maintenance/index.vue

@ -73,7 +73,8 @@ import {EquipmentAccounts} from "@/views/eam/equipmentAccounts/equipmentAccounts
import * as EquipmentItemApi from "@/api/eam/equipmentAccounts";
import { ToolAccounts } from "@/views/eam/toolAccounts/toolAccounts.data";
import * as ToolItemApi from "@/api/eam/toolAccounts";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Maintenance' })
@ -344,18 +345,17 @@ const onChange = (field, item) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await MaintenanceApi.exportMaintenance(tableObject.params)
download.excel(data, '保养计划.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/maintenanceItem/index.vue

@ -65,7 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'MaintenanceItem' })
const message = useMessage() //
@ -211,18 +212,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await MaintenanceItemApi.exportMaintenanceItem(tableObject.params)
download.excel(data, '保养项维护.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/maintenanceItemSelectSet/index.vue

@ -58,7 +58,8 @@ import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import ItemForm from "@/views/eam/maintenanceItemSelectSet/itemSelectSetForm.vue";
import * as InspectionItemSelectSetApi from "@/api/eam/inspectionItemSelectSet";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'BasicMaintenanceItemSelectSet' })
const message = useMessage() //
@ -241,18 +242,17 @@ const handleDisable = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await BasicMaintenanceItemSelectSetApi.exportBasicMaintenanceItemSelectSet(tableObject.params)
download.excel(data, '保养项选择集.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/planInspection/index.vue

@ -73,7 +73,8 @@ import * as EquipmentItemApi from "@/api/eam/equipmentAccounts";
import {ToolAccounts} from "@/views/eam/toolAccounts/toolAccounts.data";
import * as ToolItemApi from "@/api/eam/toolAccounts";
import AudiForm from '@/views/eam/planInspection/audiForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'PlanInspection' })
const message = useMessage() //
@ -343,18 +344,17 @@ const onChange = (field, item) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await PlanInspectionApi.exportPlanInspection(tableObject.params)
download.excel(data, '巡检计划.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

9
src/views/eam/planSpotCheck/index.vue

@ -74,7 +74,8 @@ import {ToolAccounts} from "@/views/eam/toolAccounts/toolAccounts.data";
import * as ToolItemApi from "@/api/eam/toolAccounts";
import AudiForm from '@/views/eam/planSpotCheck/audiForm.vue'
import {updateSpotCheckPlan} from "@/api/eam/planSpotCheck";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'PlanSpotCheck' })
const message = useMessage() //
@ -375,18 +376,18 @@ const getData=(val)=> {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await PlanSpotCheckApi.exportPlanSpotCheck(tableObject.params)
download.excel(data, '点检计划.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

9
src/views/eam/recordDeviceChanged/index.vue

@ -65,7 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'RecordDeviceChanged' })
const message = useMessage() //
@ -196,18 +197,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await RecordDeviceChangedApi.exportRecordDeviceChanged(tableObject.params)
download.excel(data, '设备变更记录.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

9
src/views/eam/relationMainPart/index.vue

@ -65,7 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'RelationMainPart' })
const message = useMessage() //
@ -196,18 +197,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await RelationMainPartApi.exportRelationMainPart(tableObject.params)
download.excel(data, '主要部件关联.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

9
src/views/eam/repairExperience/index.vue

@ -80,7 +80,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'RepairExperience' })
const message = useMessage() //
@ -211,18 +212,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await RepairExperienceApi.exportRepairExperience(tableObject.params)
download.excel(data, '维修经验记录.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/repairSparePartsRecord/index.vue

@ -65,7 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'RepairSparePartsRecord' })
const message = useMessage() //
@ -196,18 +197,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await RepairSparePartsRecordApi.exportRepairSparePartsRecord(tableObject.params)
download.excel(data, '备件维修申请.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/eam/repairSparePartsRequest/index.vue

@ -65,6 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'RepairSparePartsRequest' })
@ -196,18 +198,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await RepairSparePartsRequestApi.exportRepairSparePartsRequest(tableObject.params)
download.excel(data, '备件维修申请.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/sparePart/index.vue

@ -65,7 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SparePart' })
const message = useMessage() //
@ -196,18 +197,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await SparePartApi.exportSparePart(tableObject.params)
download.excel(data, '备件基础.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/eam/sparePartsApplyMain/index.vue

@ -113,7 +113,8 @@ import * as SparePartsApplyDetailApi from '@/api/eam/sparePartsApplyDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'SparePartsApply' })
@ -349,12 +350,12 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await SparePartsApplyMainApi.exportSparePartsApplyMain(tableObject.params)
download.excel(data, '备件申领记录主.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/sparepartsinlocation/index.vue

@ -112,7 +112,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
// import AudiForm from '@/views/eam/sparepartsinlocation/audiForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'SparePartsApply' })
@ -322,21 +323,20 @@ const handleDelete = async (id: number) => {
} catch {}
}
const exportLoading = ref(false) //
/** 导出按钮操作 */
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await SparePartsInLocationMainApi.exportSparePartsInLocationMain(
tableObject.params
)
download.excel(data, '备件申领记录主.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/eam/sparepartsoutlocation/index.vue

@ -101,7 +101,8 @@ import * as SparePartsOutLocationDetailApi from '@/api/eam/sparePartsOutLocation
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'SparePartsOutLocation' })
@ -317,14 +318,14 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await SparePartsOutLocationMainApi.exportSparePartsOutLocationMain(
tableObject.params
)
download.excel(data, '备件申领记录主.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/spotCheckItem/index.vue

@ -65,7 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SpotCheckItem' })
const message = useMessage() //
@ -211,18 +212,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await SpotCheckItemApi.exportSpotCheckItem(tableObject.params)
download.excel(data, '点检项.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/spotCheckSelectSet/index.vue

@ -57,7 +57,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import ItemForm from "@/views/eam/spotCheckSelectSet/itemSelectSetForm.vue";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'BasicSpotCheckSelectSet' })
const message = useMessage() //
@ -240,18 +241,17 @@ const handleDisable = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await BasicSpotCheckSelectSetApi.exportBasicSpotCheckSelectSet(tableObject.params)
download.excel(data, '点检选择集维护.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/tableDataExtendedAttribute/index.vue

@ -65,7 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'TableDataExtendedAttribute' })
const message = useMessage() //
@ -196,18 +197,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await TableDataExtendedAttributeApi.exportTableDataExtendedAttribute(tableObject.params)
download.excel(data, '表数据扩展属性字段.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/toolAccounts/index.vue

@ -151,7 +151,8 @@ import * as ProductionlineApi from '@/api/wms/productionline'
import * as EquipmentSupplierApi from '@/api/eam/equipmentSupplier'
import * as EquipmentManufacturerApi from '@/api/eam/equipmentManufacturer'
import * as UserApi from '@/api/system/user'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ToolAccounts' })
const message = useMessage() //
@ -353,18 +354,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ToolAccountsApi.exportToolAccounts(tableObject.params)
download.excel(data, '工装台账.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/toolChangedRecord/index.vue

@ -65,7 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ToolChangedRecord' })
const message = useMessage() //
@ -196,18 +197,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ToolChangedRecordApi.exportToolChangedRecord(tableObject.params)
download.excel(data, '设备变更记录.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

9
src/views/eam/toolEquipmentIn/index.vue

@ -83,7 +83,8 @@ import * as ProductionlineApi from '@/api/wms/productionline'
import * as EquipmentSupplierApi from '@/api/eam/equipmentSupplier'
import * as EquipmentManufacturerApi from '@/api/eam/equipmentManufacturer'
import * as ToolAccountsApi from '@/api/eam/toolAccounts'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ToolEquipmentIn' })
const message = useMessage() //
@ -242,18 +243,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ToolEquipmentInApi.exportToolEquipmentIn(tableObject.params)
download.excel(data, '工装入库记录.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/eam/toolEquipmentOut/index.vue

@ -66,6 +66,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import * as ToolAccountsApi from '@/api/eam/toolAccounts'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ToolEquipmentOut' })
@ -205,18 +207,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ToolEquipmentOutApi.exportToolEquipmentOut(tableObject.params)
download.excel(data, '工装出库记录.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/eam/toolMod/index.vue

@ -69,6 +69,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import TeamForm from "./operateForm.vue";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ToolMod' })
const message = useMessage() //
@ -203,18 +205,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ToolModApi.exportToolMod(tableObject.params)
download.excel(data, '工装物料关联.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/eam/toolSigning/index.vue

@ -68,7 +68,8 @@ import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import * as EquipmentSupplierApi from '@/api/eam/equipmentSupplier'
import * as UserApi from '@/api/system/user'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ToolSigning' })
const message = useMessage() //
@ -209,18 +210,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ToolSigningApi.exportToolSigning(tableObject.params)
download.excel(data, '工装到货签收记录.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/eam/transaction/index.vue

@ -66,6 +66,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Transaction' })
@ -205,18 +207,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await TransactionApi.exportTransaction(tableObject.params)
download.excel(data, '库存事务.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/infra/apiAccessLog/index.vue

@ -93,7 +93,8 @@ import download from '@/utils/download'
import { formatDate } from '@/utils/formatTime'
import * as ApiAccessLogApi from '@/api/infra/apiAccessLog'
import ApiAccessLogDetail from './ApiAccessLogDetail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'InfraApiAccessLog' })
const message = useMessage() //
@ -151,12 +152,12 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ApiAccessLogApi.exportApiAccessLog(queryParams)
download.excel(data, 'API 访问日志.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/infra/apiErrorLog/index.vue

@ -162,7 +162,8 @@ import download from '@/utils/download'
import * as ApiErrorLogApi from '@/api/infra/apiErrorLog'
import ApiErrorLogDetail from './ApiErrorLogDetail.vue'
import { InfraApiErrorLogProcessStatusEnum } from '@/utils/constants'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'InfraApiErrorLog' })
const message = useMessage() //
@ -233,12 +234,12 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ApiErrorLogApi.exportApiErrorLog(queryParams)
download.excel(data, '异常日志.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/infra/config/index.vue

@ -100,7 +100,8 @@ import { dateFormatter } from '@/utils/formatTime'
import download from '@/utils/download'
import * as ConfigApi from '@/api/infra/config'
import ConfigForm from './ConfigForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'InfraConfig' })
const message = useMessage() //
@ -169,12 +170,12 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ConfigApi.exportConfig(queryParams)
download.excel(data, '参数配置.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/infra/job/index.vue

@ -103,7 +103,8 @@ import JobDetail from './JobDetail.vue'
import download from '@/utils/download'
import * as JobApi from '@/api/infra/job'
import { InfraJobStatusEnum } from '@/utils/constants'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'InfraJob' })
const { t } = useI18n() //
@ -153,12 +154,12 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await JobApi.exportJob(queryParams)
download.excel(data, '定时任务.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/infra/job/logger/index.vue

@ -123,7 +123,8 @@ import { formatDate } from '@/utils/formatTime'
import download from '@/utils/download'
import JobLogDetail from './JobLogDetail.vue'
import * as JobLogApi from '@/api/infra/jobLog'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'InfraJobLog' })
const message = useMessage() //
@ -180,12 +181,12 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await JobLogApi.exportJobLog(queryParams)
download.excel(data, '定时任务执行日志.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/mes/dismantlingMain/index.vue

@ -82,7 +82,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '../components/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'MesDismantlingMain' })
const message = useMessage() //
@ -242,18 +243,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await DismantlingMainApi.exportDismantlingMain(tableObject.params)
download.excel(data, '报废拆解登记主.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/mes/holiday/index.vue

@ -65,7 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
// import TableHead from '@/components/TableHead/src/TableHead.vue'
// import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '../../mes/components/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Holiday' })
const message = useMessage() //
@ -178,18 +179,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await HolidayApi.exportHoliday(tableObject.params)
download.excel(data, '节假日设置.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

Loading…
Cancel
Save