Browse Source

Merge branch 'hella_online_20240803' into master_hella

hella_online_20240829
陈薪名 3 months ago
parent
commit
b13c7c7d42
  1. 5
      src/api/qms/inspectionQ2/index.ts
  2. 5
      src/api/qms/sampleCode/index.ts
  3. 5
      src/api/qms/samplingScheme/index.ts
  4. 4
      src/api/wms/areabasic/index.ts
  5. 5
      src/api/wms/location/index.ts
  6. 4
      src/api/wms/locationgroup/index.ts
  7. 6
      src/api/wms/package/index.ts
  8. 1
      src/api/wms/productreceiptRecordMain/index.ts
  9. 7
      src/api/wms/productredressJobMain/index.ts
  10. 86
      src/api/wms/purchaseMainWms/index.ts
  11. 51
      src/api/wms/purchasereceiptRecordDetail/index.ts
  12. 6
      src/api/wms/transactiontype/index.ts
  13. 7
      src/api/wms/warehouse/index.ts
  14. 7
      src/components/Form/src/Form.vue
  15. 7
      src/components/Search/src/Search.vue
  16. 50
      src/components/SearchHigh/src/SearchHigh.vue
  17. 6
      src/components/SearchTable/src/SearchTable.vue
  18. 5
      src/locales/en-US.ts
  19. 4
      src/locales/zh-CN.ts
  20. 2
      src/utils/dict.ts
  21. 11
      src/utils/disposition/defaultButtons.ts
  22. 12
      src/views/eam/SparePartsOutLocationRecord/index.vue
  23. 11
      src/views/eam/adjustRecord/index.vue
  24. 7
      src/views/eam/applicationRecord/index.vue
  25. 8
      src/views/eam/basicEamProductionline/index.vue
  26. 8
      src/views/eam/basicEamWorkshop/index.vue
  27. 8
      src/views/eam/basicFaultCause/index.vue
  28. 9
      src/views/eam/basicFaultType/index.vue
  29. 9
      src/views/eam/basicInspectionOption/index.vue
  30. 8
      src/views/eam/basicMaintenanceOption/index.vue
  31. 8
      src/views/eam/basicSpotCheckOption/index.vue
  32. 9
      src/views/eam/classTypeRole/index.vue
  33. 12
      src/views/eam/countRecord/index.vue
  34. 8
      src/views/eam/countadjustPlan/index.vue
  35. 13
      src/views/eam/countadjustWork/index.vue
  36. 8
      src/views/eam/documentType/index.vue
  37. 8
      src/views/eam/documentTypeSelectSet/index.vue
  38. 8
      src/views/eam/equipmentAccounts/index.vue
  39. 8
      src/views/eam/equipmentInspectionDetail/index.vue
  40. 8
      src/views/eam/equipmentInspectionMain/index.vue
  41. 9
      src/views/eam/equipmentInspectionRecordDetail/index.vue
  42. 8
      src/views/eam/equipmentInspectionRecordMain/index.vue
  43. 8
      src/views/eam/equipmentMainPart/index.vue
  44. 9
      src/views/eam/equipmentMaintenanceMain/index.vue
  45. 9
      src/views/eam/equipmentMaintenanceRecordDetail/index.vue
  46. 8
      src/views/eam/equipmentMaintenanceRecordMain/index.vue
  47. 8
      src/views/eam/equipmentManufacturer/index.vue
  48. 8
      src/views/eam/equipmentRepairJobDetail/index.vue
  49. 9
      src/views/eam/equipmentRepairJobMain/index.vue
  50. 8
      src/views/eam/equipmentRepairRecordDetail/index.vue
  51. 8
      src/views/eam/equipmentRepairRecordMain/index.vue
  52. 8
      src/views/eam/equipmentReportRepairRequest/index.vue
  53. 8
      src/views/eam/equipmentShutdown/index.vue
  54. 9
      src/views/eam/equipmentSigning/index.vue
  55. 9
      src/views/eam/equipmentSpotCheckDetail/index.vue
  56. 8
      src/views/eam/equipmentSpotCheckMain/index.vue
  57. 8
      src/views/eam/equipmentSpotCheckRecordDetail/index.vue
  58. 9
      src/views/eam/equipmentSpotCheckRecordMain/index.vue
  59. 9
      src/views/eam/equipmentSupplier/index.vue
  60. 8
      src/views/eam/equipmentToolSparePart/index.vue
  61. 8
      src/views/eam/equipmentTransferRecord/index.vue
  62. 8
      src/views/eam/inspectionItem/index.vue
  63. 8
      src/views/eam/inspectionItemSelectSet/index.vue
  64. 8
      src/views/eam/item/index.vue
  65. 8
      src/views/eam/itemAccounts/index.vue
  66. 7
      src/views/eam/itemApplyMain/index.vue
  67. 8
      src/views/eam/itemDelete/index.vue
  68. 7
      src/views/eam/itemInLocation/index.vue
  69. 8
      src/views/eam/itemLocationReplace/index.vue
  70. 8
      src/views/eam/itemMaintenance/index.vue
  71. 8
      src/views/eam/itemOrderMain/index.vue
  72. 8
      src/views/eam/itemOutLocation/index.vue
  73. 9
      src/views/eam/location/index.vue
  74. 9
      src/views/eam/locationArea/index.vue
  75. 8
      src/views/eam/maintainExperience/index.vue
  76. 8
      src/views/eam/maintenance/index.vue
  77. 8
      src/views/eam/maintenanceItem/index.vue
  78. 8
      src/views/eam/maintenanceItemSelectSet/index.vue
  79. 8
      src/views/eam/planInspection/index.vue
  80. 9
      src/views/eam/planSpotCheck/index.vue
  81. 9
      src/views/eam/recordDeviceChanged/index.vue
  82. 9
      src/views/eam/relationMainPart/index.vue
  83. 9
      src/views/eam/repairExperience/index.vue
  84. 8
      src/views/eam/repairSparePartsRecord/index.vue
  85. 7
      src/views/eam/repairSparePartsRequest/index.vue
  86. 8
      src/views/eam/sparePart/index.vue
  87. 12
      src/views/eam/sparePartsApplyMain/index.vue
  88. 8
      src/views/eam/sparepartsinlocation/index.vue
  89. 12
      src/views/eam/sparepartsoutlocation/index.vue
  90. 8
      src/views/eam/spotCheckItem/index.vue
  91. 8
      src/views/eam/spotCheckSelectSet/index.vue
  92. 8
      src/views/eam/tableDataExtendedAttribute/index.vue
  93. 8
      src/views/eam/toolAccounts/index.vue
  94. 8
      src/views/eam/toolChangedRecord/index.vue
  95. 9
      src/views/eam/toolEquipmentIn/index.vue
  96. 7
      src/views/eam/toolEquipmentOut/index.vue
  97. 7
      src/views/eam/toolMod/index.vue
  98. 8
      src/views/eam/toolSigning/index.vue
  99. 7
      src/views/eam/transaction/index.vue
  100. 7
      src/views/infra/apiAccessLog/index.vue

5
src/api/qms/inspectionQ2/index.ts

@ -76,3 +76,8 @@ export const importTemplate = () => {
export const finishQ2 = async (id: number) => { export const finishQ2 = async (id: number) => {
return await request.get({ url: `/qms/inspectionQ2/finish?id=` + id }) return await request.get({ url: `/qms/inspectionQ2/finish?id=` + id })
} }
// 获取系统中的email地址
export const getEmail = () => {
return request.get({ url: `/qms/inspectionQ2/getEmail`})
}

5
src/api/qms/sampleCode/index.ts

@ -49,9 +49,10 @@ export const deleteSampleCode = async (id: number) => {
// 导出样本字码 Excel // 导出样本字码 Excel
export const exportSampleCode = async (params) => { export const exportSampleCode = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch
const data = {...params} const data = {...params}
return await request.downloadPost({ url: `/qms/sample-code/export-excel-senior`, data }) return request.downloadPost({ url: '/qms/sample-code/export-excel-senior', data })
}else{ } else {
return await request.download({ url: `/qms/sample-code/export-excel`, params }) return await request.download({ url: `/qms/sample-code/export-excel`, params })
} }
} }

5
src/api/qms/samplingScheme/index.ts

@ -41,9 +41,10 @@ export const deleteSamplingScheme = async (id: number) => {
// 导出采样方案 Excel // 导出采样方案 Excel
export const exportSamplingScheme = async (params) => { export const exportSamplingScheme = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch
const data = {...params} const data = {...params}
return await request.downloadPost({ url: `/qms/sampling-scheme/export-excel-senior`, data }) return request.downloadPost({ url: '/qms/sampling-scheme/export-excel-senior', data })
}else{ } else {
return await request.download({ url: `/qms/sampling-scheme/export-excel`, params }) return await request.download({ url: `/qms/sampling-scheme/export-excel`, params })
} }
} }

4
src/api/wms/areabasic/index.ts

@ -32,6 +32,10 @@ export const selectAreabasicDOByCode = async (locationCode: String) => {
export const getAreaList = async (params) => { export const getAreaList = async (params) => {
return await request.get({ url: `/wms/areabasic/list`, params }) return await request.get({ url: `/wms/areabasic/list`, params })
} }
// 校验库区
export const verifyAreaList = async (params) => {
return await request.get({ url: `/wms/areabasic/listAreabasicByCode`, params })
}
// 查询库区详情 // 查询库区详情
export const getArea = async (id: number) => { export const getArea = async (id: number) => {
return await request.get({ url: `/wms/areabasic/get?id=` + id }) return await request.get({ url: `/wms/areabasic/get?id=` + id })

5
src/api/wms/location/index.ts

@ -34,7 +34,10 @@ export const getLocationPage = async (params) => {
return await request.get({ url: `/wms/location/page`, params }) return await request.get({ url: `/wms/location/page`, params })
} }
} }
// 校验库位
export const verifyLocation = async (params) => {
return await request.get({ url: `/wms/location/listLocationByCode`, params })
}
export const getLocationMPage = async (params) => { export const getLocationMPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch

4
src/api/wms/locationgroup/index.ts

@ -22,6 +22,10 @@ export const getLocationgroupPage = async (params) => {
return await request.get({ url: `/wms/locationgroup/page`, params }) return await request.get({ url: `/wms/locationgroup/page`, params })
} }
} }
// 校验库位组
export const verifyLocationgroup = async (params) => {
return await request.get({ url: `/wms/locationgroup/ListByCode`, params })
}
// 查询库位组列表 // 查询库位组列表
export const getLocationgroupList = async (params) => { export const getLocationgroupList = async (params) => {
return await request.get({ url: `/wms/locationgroup/list`, params }) return await request.get({ url: `/wms/locationgroup/list`, params })

6
src/api/wms/package/index.ts

@ -101,6 +101,12 @@ export const batchPrintingLable = async (data: any) => {
return await request.post({ url: `/wms/package/batchPrintingLable`, data }) return await request.post({ url: `/wms/package/batchPrintingLable`, data })
} }
// 批量打印标签多选
export const batchPrintingLables = async (data: any) => {
return await request.post({ url: `/wms/package/batchPrintingLables`, data })
}
// 打印标签获取包装列表 // 打印标签获取包装列表
export const getLabel = async (id: number) => { export const getLabel = async (id: number) => {
return await request.get({ url: `/wms/package/getLabel?id=` + id }) return await request.get({ url: `/wms/package/getLabel?id=` + id })

1
src/api/wms/productreceiptRecordMain/index.ts

@ -25,6 +25,7 @@ export interface ProductreceiptRecordMainVO {
toAreaTypes: string toAreaTypes: string
toAreaCodes: string toAreaCodes: string
available: string available: string
inventoryStatus:string
} }
// 查询制品收货记录主列表 // 查询制品收货记录主列表

7
src/api/wms/productredressJobMain/index.ts

@ -90,7 +90,12 @@ export const abandonProductredressJobMain = async (id: number) => {
// 导出制品回收任务主 Excel // 导出制品回收任务主 Excel
export const exportProductredressJobMain = async (params) => { export const exportProductredressJobMain = async (params) => {
return await request.download({ url: `/wms/productredress-job-main/export-excel`, params }) if (params.isSearch){
const data = {...params}
return await request.downloadPost({ url: `/wms/productredress-job-main/export-excel-senior`, data })
}else {
return await request.download({ url: `/wms/productredress-job-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

86
src/api/wms/purchaseMainWms/index.ts

@ -0,0 +1,86 @@
import request from '@/config/axios'
export interface PurchaseMainVO {
supplierCode: string
number: string
type: string
status: string
orderDate: Date
dueDate: Date
version: string
taxRate: number
contactName: string
contactPhone: string
contactEmail: string
isConsignment: string
businessType: string
remark: string
createTime: Date
creator: string
updateTime: Date
updater: string
currentStage: number
available: string
}
// 查询采购订单主列表
export const getPurchaseMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/purchase-main/seniorWMS', data })
} else {
return await request.get({ url: `/wms/purchase-main/pageWMS`, params })
}
}
// 查询采购订单主详情
export const getPurchaseMain = async (id: number) => {
return await request.get({ url: `/wms/purchase-main/get?id=` + id })
}
// 新增采购订单主
export const createPurchaseMain = async (data: PurchaseMainVO) => {
return await request.post({ url: `/wms/purchase-main/create`, data })
}
// 修改采购订单主
export const updatePurchaseMain = async (data: PurchaseMainVO) => {
return await request.put({ url: `/wms/purchase-main/update`, data })
}
// 删除采购订单主
export const deletePurchaseMain = async (id: number) => {
return await request.delete({ url: `/wms/purchase-main/delete?id=` + id })
}
// 关闭采购订单主
export const closePurchaseMain = async (id: number) => {
return await request.post({ url: `/wms/purchase-main/close?id=` + id })
}
// 打开采购订单主
export const openPurchaseMain = async (id: number) => {
return await request.post({ url: `/wms/purchase-main/open?id=` + id })
}
// 发布采购订单主
export const publishPurchaseMain = async (id: number) => {
return await request.post({ url: `/wms/purchase-main/publish?id=` + id })
}
// 下架采购订单主
export const witPurchaseMain = async (id: number) => {
return await request.post({ url: `/wms/purchase-main/wit?id=` + id })
}
// 导出采购订单主 Excel
export const exportPurchaseMain = async (params) => {
if (params.isSearch) {
const data = { ...params }
return await request.downloadPost({ url: `/wms/purchase-main/export-excel-seniorWMS`, data })
} else {
return await request.download({ url: `/wms/purchase-main/export-excelWMS`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/purchase-main/get-import-template' })
}

51
src/api/wms/purchasereceiptRecordDetail/index.ts

@ -45,52 +45,49 @@ export interface PurchasereceiptRecordDetailVO {
interfaceType: string interfaceType: string
fromOwnerCode: string fromOwnerCode: string
toOwnerCode: string toOwnerCode: string
toBatch: string, toBatch: string
parentPackingNumber:string parentPackingNumber: string
packingNumber:string packingNumber: string
} }
// 查询采购收货记录子列表 // 查询采购收货记录子列表
export const getPurchasereceiptRecordDetailPage = async (params) => { export const getPurchasereceiptRecordDetailPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = { ...params }
return await request.post({ url: '/wms/purchasereceipt-record-detail/senior', data }) return await request.post({ url: '/wms/purchasereceipt-record-detail/senior', data })
} else { } else {
return await request.get({ url: `/wms/purchasereceipt-record-detail/page`, params }) return await request.get({ url: `/wms/purchasereceipt-record-detail/page`, params })
} }
} }
// 查询采购拒收记录 // 查询采购拒收记录
export const getPurchasereceiptRecordDetailRefusePage = async (params) => { export const getPurchasereceiptRecordDetailRefusePage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = { ...params }
return await request.post({ url: '/wms/purchasereceipt-record-detail/seniorRefuse', data }) return await request.post({ url: '/wms/purchasereceipt-record-detail/seniorRefuse', data })
} else { } else {
return await request.get({ url: `/wms/purchasereceipt-record-detail/pageRefuse`, params }) return await request.get({ url: `/wms/purchasereceipt-record-detail/pageRefuse`, params })
} }
} }
// 查询备件收货记录子列表 // 查询备件收货记录子列表
export const getPurchasereceiptRecordDetailPageSpare = async (params) => { export const getPurchasereceiptRecordDetailPageSpare = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = { ...params }
return await request.post({ url: '/wms/purchasereceipt-record-detail/seniorSpare', data }) return await request.post({ url: '/wms/purchasereceipt-record-detail/seniorSpare', data })
} else { } else {
return await request.get({ url: `/wms/purchasereceipt-record-detail/pageSpare`, params }) return await request.get({ url: `/wms/purchasereceipt-record-detail/pageSpare`, params })
} }
} }
// 查询采购收货记录--退货筛选列表 // 查询采购收货记录--退货筛选列表
export const getPurchasereceiptRecordDetailPageReturn = async (params) => { export const getPurchasereceiptRecordDetailPageReturn = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = { ...params }
return await request.post({ url: '/wms/purchasereceipt-record-detail/seniorReturn', data }) return await request.post({ url: '/wms/purchasereceipt-record-detail/seniorReturn', data })
} else { } else {
return await request.get({ url: `/wms/purchasereceipt-record-detail/pageReturn`, params }) return await request.get({ url: `/wms/purchasereceipt-record-detail/pageReturn`, params })
@ -100,7 +97,7 @@ export const getPurchasereceiptRecordDetailPageReturn = async (params) => {
export const getPurchasereceiptRecordDetailPageSCP = async (params) => { export const getPurchasereceiptRecordDetailPageSCP = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = { ...params }
return await request.post({ url: '/wms/purchasereceipt-record-detail/seniorSCP', data }) return await request.post({ url: '/wms/purchasereceipt-record-detail/seniorSCP', data })
} else { } else {
return await request.get({ url: `/wms/purchasereceipt-record-detail/pageSCP`, params }) return await request.get({ url: `/wms/purchasereceipt-record-detail/pageSCP`, params })
@ -111,21 +108,30 @@ export const getPurchasereceiptRecordDetailPageSCP = async (params) => {
export const getPurchasereceiptRecordDetailPageBySupplierCode = async (params) => { export const getPurchasereceiptRecordDetailPageBySupplierCode = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = { ...params }
return await request.post({ url: '/wms/purchasereceipt-record-detail/seniorBySupplierCode', data }) return await request.post({
url: '/wms/purchasereceipt-record-detail/seniorBySupplierCode',
data
})
} else { } else {
return await request.get({ url: `/wms/purchasereceipt-record-detail/pageBySupplierCode`, params }) return await request.get({
url: `/wms/purchasereceipt-record-detail/pageBySupplierCode`,
params
})
} }
} }
// 查询采购收货记录子列表 // 查询采购收货记录子列表
export const getPurchasereceiptRecordDetailList = async (params) => { export const getPurchasereceiptRecordDetailList = async (params) => {
return await request.get({ url: `/wms/purchasereceipt-record-detail/list`, params }) return await request.get({ url: `/wms/purchasereceipt-record-detail/list`, params })
} }
// 查询采购收货记录子列表 // 查询采购收货记录子列表
export const getPurchasereceiptRecordDetailListToRepeat = async (params) => { export const getPurchasereceiptRecordDetailListToRepeat = async (params) => {
return await request.get({ url: `/wms/purchasereceipt-record-detail/listToRepeatPurchaseReceipt`, params }) return await request.get({
url: `/wms/purchasereceipt-record-detail/listToRepeatPurchaseReceipt`,
params
})
} }
// 查询采购收货记录子详情 // 查询采购收货记录子详情
@ -161,7 +167,7 @@ export const importTemplate = () => {
export const getScarceGoodsDetailPage = async (params) => { export const getScarceGoodsDetailPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = { ...params }
return await request.post({ url: '/wms/purchaseshortage-detail/senior', data }) return await request.post({ url: '/wms/purchaseshortage-detail/senior', data })
} else { } else {
return await request.get({ url: `/wms/purchaseshortage-detail/page`, params }) return await request.get({ url: `/wms/purchaseshortage-detail/page`, params })
@ -170,10 +176,19 @@ export const getScarceGoodsDetailPage = async (params) => {
// 查询采购收货记录子包装数据 // 查询采购收货记录子包装数据
export const queryPurchaseceiptChildPackingNumber = async (params) => { export const queryPurchaseceiptChildPackingNumber = async (params) => {
return await request.get({ url: `/wms/purchasereceipt-record-detail/pageChildPackingNumber`, params }) return await request.get({
url: `/wms/purchasereceipt-record-detail/pageChildPackingNumber`,
params
})
} }
// 查询采购收货缺货记录子包装数据 // 查询采购收货缺货记录子包装数据
export const queryPurchaseshortageChildPackingNumber = async (params) => { export const queryPurchaseshortageChildPackingNumber = async (params) => {
return await request.get({ url: `/wms/purchaseshortage-detail/pageChildPackingNumber`, params }) return await request.get({ url: `/wms/purchaseshortage-detail/pageChildPackingNumber`, params })
} }
// 查询采购收货缺货记录子包装数据
export const pageForQ2 = async (params) => {
return await request.get({ url: `/wms/purchasereceipt-record-detail/pageForQ2`, params })
}

6
src/api/wms/transactiontype/index.ts

@ -24,6 +24,12 @@ export const getTransactiontypePage = async (params) => {
} }
} }
// 校验事务类型列表
export const verifyTransactiontype = async (params) => {
return await request.get({ url: `/wms/transactiontype/ListByCode`, params })
}
// 查询事务类型详情 // 查询事务类型详情
export const getTransactiontype = async (id: number) => { export const getTransactiontype = async (id: number) => {
return await request.get({ url: `/wms/transactiontype/get?id=` + id }) return await request.get({ url: `/wms/transactiontype/get?id=` + id })

7
src/api/wms/warehouse/index.ts

@ -21,6 +21,13 @@ export const getWarehousePage = async (params) => {
return await request.get({ url: `/wms/warehouse/page`, params }) return await request.get({ url: `/wms/warehouse/page`, params })
} }
} }
// 校验仓库
export const verifyWarehouse = async (params) => {
return await request.get({ url: `/wms/warehouse/ListByCode`, params })
}
// 查询仓库所有列表 // 查询仓库所有列表
export const getWarehouseList = async (params) => { export const getWarehouseList = async (params) => {
return await request.get({ url: `/wms/warehouse/list`, params }) return await request.get({ url: `/wms/warehouse/list`, params })

7
src/components/Form/src/Form.vue

@ -55,7 +55,7 @@ export default defineComponent({
vLoading: propTypes.bool.def(false), vLoading: propTypes.bool.def(false),
labelPosition: propTypes.string.def('left'), labelPosition: propTypes.string.def('left'),
}, },
emits: ['register','opensearchTable','clearSearchInput', 'onChange', 'onBlur','onFocus','onEnter','hiddenFilterButton','changeDialogWidth','onInput'], emits: ['register','opensearchTable','clearSearchInput', 'onChange', 'onSubmit', 'onBlur','onFocus','onEnter','hiddenFilterButton','changeDialogWidth','onInput'],
setup(props, { slots, expose, emit }) { setup(props, { slots, expose, emit }) {
// element form // element form
const elFormRef = ref<ComponentRef<typeof ElForm>>() const elFormRef = ref<ComponentRef<typeof ElForm>>()
@ -196,6 +196,10 @@ export default defineComponent({
const onChange = (field, cur) => { const onChange = (field, cur) => {
emit('onChange', field, cur) emit('onChange', field, cur)
} }
const onSubmit = (event) => {
emit('onSubmit', event)
}
/** /**
* 监听失去焦点 * 监听失去焦点
* @param field 当前操作字段 * @param field 当前操作字段
@ -461,6 +465,7 @@ export default defineComponent({
class={prefixCls} class={prefixCls}
v-loading={props.vLoading} v-loading={props.vLoading}
label-position={props.labelPosition} label-position={props.labelPosition}
onSubmit={(e)=>{onSubmit(e)}}
> >
{{ {{
// //

7
src/components/Search/src/Search.vue

@ -122,7 +122,12 @@ const onInput = (field,value) => {
const onChange = (field, value)=>{ const onChange = (field, value)=>{
emit('onChange', field,value) emit('onChange', field,value)
} }
const onSubmit = (e) => {
e.preventDefault();
}
const onEnter = async (field, value, e) => { const onEnter = async (field, value, e) => {
if(props.enterSearch){ if(props.enterSearch){
search() search()
}else{ }else{
@ -183,6 +188,7 @@ const opensearchTable = (
return return
} }
} }
}else if(searchCondition[i].isTableRowValue){ }else if(searchCondition[i].isTableRowValue){
if(searchCondition[i].required){ if(searchCondition[i].required){
if (row[searchCondition[i].value] == '' ||row[searchCondition[i].value] == undefined) { if (row[searchCondition[i].value] == '' ||row[searchCondition[i].value] == undefined) {
@ -305,6 +311,7 @@ defineExpose({setFormValues,search}) // 提供 open 方法,用于打开弹窗
@opensearchTable="opensearchTable" @opensearchTable="opensearchTable"
@onChange="onChange" @onChange="onChange"
@onEnter="onEnter" @onEnter="onEnter"
@onSubmit="onSubmit"
> >
<template #action> <template #action>
<div v-if="layout === 'inline'"> <div v-if="layout === 'inline'">

50
src/components/SearchHigh/src/SearchHigh.vue

@ -23,11 +23,30 @@
<!-- 数字输入框 --> <!-- 数字输入框 -->
<el-input-number v-else-if="getInputType(item.column) == 'inputNumber'" v-model="item.value" :precision="getInputPrecision(item.column)" :disabled="item.disabled"/> <el-input-number v-else-if="getInputType(item.column) == 'inputNumber'" v-model="item.value" :precision="getInputPrecision(item.column)" :disabled="item.disabled"/>
<!-- 下拉框 --> <!-- 下拉框 -->
<el-select v-else-if="getInputType(item.column) == 'select'" v-model="item.value1" :placeholder="t('ts.请选择内容')" :filterable="getFilterable(item.column)" clearable :disabled="item.disabled" :multiple="item.action=='in' || item.action=='notIn' ? true : false" collapse-tags collapse-tags-tooltip :key="item.action"> <el-select v-else-if="getInputType(item.column) == 'select' && !getFilterable(item.column)" v-model="item.value1" :placeholder="t('ts.请选择内容')" :filterable="!getFilterable(item.column)" clearable :disabled="item.disabled" :multiple="item.action=='in' || item.action=='notIn' ? true : false" collapse-tags collapse-tags-tooltip :key="item.action">
<el-option v-for="dict in allDictOptions[item.column]" :key="dict.value" :label="t(`ts.${dict.label}`).replace('ts.','')" <el-option v-for="dict in allDictOptions[item.column]" :key="dict.value" :label="t(`ts.${dict.label}`).replace('ts.','')"
:value="dict.value" /> :value="dict.value" />
<!-- <el-option v-for="(op, index) in initSelectOptions(item.column)" :label="op[item.optionsLabel] || op.label" </el-select>
:value="op[item.optionsValue] || op.value" :key="index" /> --> <el-select
v-else-if="getInputType(item.column) == 'select' && getFilterable(item.column)"
v-model="item.value1"
:multiple="item.action == 'in' || item.action == 'notIn' ? true : false"
collapse-tags
collapse-tags-tooltip
filterable
remote
reserve-keyword
:placeholder="t('ts.请选择内容')"
remote-show-suffix
:remote-method="remoteMethod"
:loading="loading"
>
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select> </el-select>
<!-- 时间 --> <!-- 时间 -->
<el-time-picker v-else-if="getInputType(item.column) == 'time'" range-separator="-" :start-placeholder="t('ts.开始时间')" :end-placeholder="t('ts.结束时间')" v-model="item.value1" style="width: calc(100% - 20px);margin-right: 10px;" :disabled="item.disabled"/> <el-time-picker v-else-if="getInputType(item.column) == 'time'" range-separator="-" :start-placeholder="t('ts.开始时间')" :end-placeholder="t('ts.结束时间')" v-model="item.value1" style="width: calc(100% - 20px);margin-right: 10px;" :disabled="item.disabled"/>
@ -68,6 +87,12 @@ UserApi.getUserListAll().then((res) => {
value: item.id value: item.id
} }
}) })
options.value = res.map((item) => {
return {
label: item.nickname,
value: item.id
}
})
}) })
const props = defineProps({ const props = defineProps({
@ -171,9 +196,9 @@ const getFilterable = (val) => {
const type = searchOption_high.value.find(item => (item.field == val)) const type = searchOption_high.value.find(item => (item.field == val))
// //
if (type?.field == 'creator' || type?.field == 'updater' || type?.field == 'worker') { if (type?.field == 'creator' || type?.field == 'updater' || type?.field == 'worker') {
return false
}else{
return true return true
}else{
return false
} }
} }
// //
@ -330,6 +355,21 @@ const changeDateTimePicker = (e, val,from) =>{
val.value = e.join(',') val.value = e.join(',')
} }
} }
const loading = ref(false)
const options = ref([])
const remoteMethod = (query, array) => {
if (query) {
loading.value = true
setTimeout(() => {
loading.value = false
options.value = userListAll.value.filter((item) => {
return item.label.toLowerCase().includes(query.toLowerCase())
})
}, 200)
} else {
options.value = userListAll.value
}
}
defineExpose({ defineExpose({
popoverVisible popoverVisible

6
src/components/SearchTable/src/SearchTable.vue

@ -200,11 +200,11 @@ const searchFormClick = (searchData) => {
// 20240104 searchData.filters // 20240104 searchData.filters
// 20240321 searchData // 20240321 searchData
if (searchData.filters) { if (searchData.filters) {
if (searchConditionRef.value.filters) { if (searchConditionRef.value&&searchConditionRef.value.filters) {
Object.keys(searchConditionRef.value.filters).forEach((key) => { Object.keys(searchConditionRef.value.filters).forEach((key) => {
searchData.filters.push(searchConditionRef.value.filters[key]) searchData.filters.push(searchConditionRef.value.filters[key])
}) })
} else { } else if(searchConditionRef.value){
Object.keys(searchConditionRef.value).forEach((key) => { Object.keys(searchConditionRef.value).forEach((key) => {
searchData.filters.push({ searchData.filters.push({
action: '==', action: '==',
@ -216,7 +216,7 @@ const searchFormClick = (searchData) => {
} else { } else {
if (searchConditionRef.value.filters) { if (searchConditionRef.value.filters) {
searchData.filters = searchConditionRef.value.filters searchData.filters = searchConditionRef.value.filters
} else { } else if(searchConditionRef.value){
searchData.filters = [] searchData.filters = []
Object.keys(searchConditionRef.value).forEach((key) => { Object.keys(searchConditionRef.value).forEach((key) => {
searchData.filters.push({ searchData.filters.push({

5
src/locales/en-US.ts

@ -1280,8 +1280,9 @@ export default {
:'Rule configuration', :'Rule configuration',
:'Please enter a contact number', :'Please enter a contact number',
:'Please enter a name', :'Please enter a name',
'确认撤销报工吗?':'Are you sure to cancel the job application?', '确认撤销报工吗?': 'Are you sure to cancel the job application?',
'收货数量不可以大于订单数量!': 'The received quantity cannot exceed the order quantity',
:'Revocation of work report successful',
}, },

4
src/locales/zh-CN.ts

@ -1277,7 +1277,9 @@ export default {
:'规则配置', :'规则配置',
:'请输入联系电话', :'请输入联系电话',
:'请选择范围', :'请选择范围',
'确认撤销报工吗?':"确认撤销报工吗?", '确认撤销报工吗?': "确认撤销报工吗?",
'收货数量不可以大于订单数量!':'收货数量不可以大于订单数量',
:'撤销报工成功',
}, },
} }

2
src/utils/dict.ts

@ -329,6 +329,7 @@ export enum DICT_TYPE {
DEFECT_LOCATION = 'defect_location', // 质量通知缺陷位置 DEFECT_LOCATION = 'defect_location', // 质量通知缺陷位置
DEFECT_TYPE = 'defect_type', // 质量通知缺陷类型 DEFECT_TYPE = 'defect_type', // 质量通知缺陷类型
PROBLEM_REASON = 'problem_reason', // 质量通知问题原因 PROBLEM_REASON = 'problem_reason', // 质量通知问题原因
QMS_CLAIM_MULTIPLE = 'qms_claim_multiple', //质量通知索赔倍数
// ========== 业务 - mes -gaojs ========== // ========== 业务 - mes -gaojs ==========
QUALIFY_STATUS = 'qualify_status', //质检状态 QUALIFY_STATUS = 'qualify_status', //质检状态
@ -401,4 +402,5 @@ export enum DICT_TYPE {
PUBLISHE_STATUS = 'publishe_status', // 采购收货任务状态 PUBLISHE_STATUS = 'publishe_status', // 采购收货任务状态
PUBLISHE_STATUS_FIRST_INSPECTION = 'publishe_status_first_inspection', // 首件检验记录发布状态 PUBLISHE_STATUS_FIRST_INSPECTION = 'publishe_status_first_inspection', // 首件检验记录发布状态
RETURN_REASON_TYPE = 'return_reason_type', // 采购退货原因类型 RETURN_REASON_TYPE = 'return_reason_type', // 采购退货原因类型
SCRAPPING_REASON = 'scrapping_reason', //制品子件报废原因
} }

11
src/utils/disposition/defaultButtons.ts

@ -1054,6 +1054,17 @@ export function mainListPointBtn(option: any) {
hasPermi: '' hasPermi: ''
}) })
} }
export function mainListPrintInspectionBtn(option: any) {
return __defaultBtnOption(option, {
label: t(`ts.打印检验指引单`).replace('ts.', ''),
name: 'printInspection',
hide: false,
type: 'primary',
color: '',
link: true, // 文本展现按钮
hasPermi: ''
})
}
// 主列表-回收 // 主列表-回收
export function mainListRecoveryBtn(option: any) { export function mainListRecoveryBtn(option: any) {
return __defaultBtnOption(option, { return __defaultBtnOption(option, {

12
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 * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
// //
defineOptions({ name: 'SparePartsOutLocationRecord' }) defineOptions({ name: 'SparePartsOutLocationRecord' })
@ -258,18 +259,17 @@ const handleDelete = async (id: number) => {
} }
/** 列表导出按钮操作 */ /** 列表导出按钮操作 */
const exportLoading = ref(false) //
const handleMainExport = async (id: number) => { const handleMainExport = async (id: number) => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await SparePartsOutLocationRecordMainApi.exportSparePartsOutLocationRecordMain(id) const data = await SparePartsOutLocationRecordMainApi.exportSparePartsOutLocationRecordMain(id)
download.excel(data, '盘点工单.xlsx') download.excel(data, '盘点工单.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }
@ -292,14 +292,14 @@ const handleExport = async () => {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await SparePartsOutLocationRecordMainApi.exportSparePartsOutLocationRecordMain( const data = await SparePartsOutLocationRecordMainApi.exportSparePartsOutLocationRecordMain(
tableObject.params tableObject.params
) )
download.excel(data, '备件申领记录主.xlsx') download.excel(data, '备件申领记录主.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

11
src/views/eam/adjustRecord/index.vue

@ -59,6 +59,8 @@
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
// //
defineOptions({ name: 'AdjustRecord' }) defineOptions({ name: 'AdjustRecord' })
@ -207,18 +209,17 @@
} }
/** 列表导出按钮操作 */ /** 列表导出按钮操作 */
const exportLoading = ref(false) //
const handleMainExport = async (id : number) => { const handleMainExport = async (id : number) => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await AdjustRecordMainApi.exportAdjustRecordMain(id) const data = await AdjustRecordMainApi.exportAdjustRecordMain(id)
download.excel(data, '盘点工单.xlsx') download.excel(data, '盘点工单.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }
@ -242,12 +243,12 @@
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await AdjustRecordMainApi.exportAdjustRecordMain(tableObject.params) const data = await AdjustRecordMainApi.exportAdjustRecordMain(tableObject.params)
download.excel(data, '备件申领记录主.xlsx') download.excel(data, '备件申领记录主.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

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

@ -113,6 +113,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
//import approveDetail from '@/components/Detail/src/approveDetail.vue' //import approveDetail from '@/components/Detail/src/approveDetail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
// //
defineOptions({ name: 'ApplicationRecord' }) defineOptions({ name: 'ApplicationRecord' })
@ -280,18 +282,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await ApplicationRecordMainApi.exportApplicationRecordMain(tableObject.params) const data = await ApplicationRecordMainApi.exportApplicationRecordMain(tableObject.params)
download.excel(data, '备件申领记录主.xlsx') download.excel(data, '备件申领记录主.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

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

@ -66,7 +66,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import * as BasicEamWorkshopApi from "@/api/eam/basicEamWorkshop"; import * as BasicEamWorkshopApi from "@/api/eam/basicEamWorkshop";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'BasicEamProductionline' }) defineOptions({ name: 'BasicEamProductionline' })
const message = useMessage() // const message = useMessage() //
@ -261,18 +262,17 @@ const handleDisable = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await BasicEamProductionlineApi.exportBasicEamProductionline(tableObject.params) const data = await BasicEamProductionlineApi.exportBasicEamProductionline(tableObject.params)
download.excel(data, '生产线.xlsx') download.excel(data, '生产线.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

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

@ -66,7 +66,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import * as BasicFaultCauseApi from "@/api/eam/basicFaultCause"; import * as BasicFaultCauseApi from "@/api/eam/basicFaultCause";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'BasicEamWorkshop' }) defineOptions({ name: 'BasicEamWorkshop' })
const message = useMessage() // const message = useMessage() //
@ -260,18 +261,17 @@ const handleDisable = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await BasicEamWorkshopApi.exportBasicEamWorkshop(tableObject.params) const data = await BasicEamWorkshopApi.exportBasicEamWorkshop(tableObject.params)
download.excel(data, 'EAM车间.xlsx') download.excel(data, 'EAM车间.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

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

@ -65,7 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'BasicFaultCause' }) defineOptions({ name: 'BasicFaultCause' })
const message = useMessage() // const message = useMessage() //
@ -243,18 +244,17 @@ const handleDisable = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await BasicFaultCauseApi.exportBasicFaultCause(tableObject.params) const data = await BasicFaultCauseApi.exportBasicFaultCause(tableObject.params)
download.excel(data, '故障原因.xlsx') download.excel(data, '故障原因.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

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

@ -66,7 +66,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import * as BasicInspectionOptionApi from "@/api/eam/basicInspectionOption"; import * as BasicInspectionOptionApi from "@/api/eam/basicInspectionOption";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'BasicFaultType' }) defineOptions({ name: 'BasicFaultType' })
const message = useMessage() // const message = useMessage() //
@ -244,18 +245,18 @@ const handleDisable = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await BasicFaultTypeApi.exportBasicFaultType(tableObject.params) const data = await BasicFaultTypeApi.exportBasicFaultType(tableObject.params)
download.excel(data, '故障类型.xlsx') download.excel(data, '故障类型.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

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

@ -67,7 +67,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import ItemForm from "@/views/eam/basicInspectionOption/itemSelectSetForm.vue"; import ItemForm from "@/views/eam/basicInspectionOption/itemSelectSetForm.vue";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'BasicInspectionOption' }) defineOptions({ name: 'BasicInspectionOption' })
const message = useMessage() // const message = useMessage() //
@ -262,18 +263,18 @@ const handleDisable = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await BasicInspectionOptionApi.exportBasicInspectionOption(tableObject.params) const data = await BasicInspectionOptionApi.exportBasicInspectionOption(tableObject.params)
download.excel(data, '巡检方案.xlsx') download.excel(data, '巡检方案.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

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

@ -67,7 +67,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import ItemForm from "@/views/eam/basicMaintenanceOption/itemSelectSetForm.vue"; import ItemForm from "@/views/eam/basicMaintenanceOption/itemSelectSetForm.vue";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'BasicMaintenanceOption' }) defineOptions({ name: 'BasicMaintenanceOption' })
const message = useMessage() // const message = useMessage() //
@ -263,18 +264,17 @@ const handleDisable = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await BasicMaintenanceOptionApi.exportBasicMaintenanceOption(tableObject.params) const data = await BasicMaintenanceOptionApi.exportBasicMaintenanceOption(tableObject.params)
download.excel(data, '保养方案.xlsx') download.excel(data, '保养方案.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

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

@ -67,7 +67,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import ItemForm from "@/views/eam/basicSpotCheckOption/itemSelectSetForm.vue"; import ItemForm from "@/views/eam/basicSpotCheckOption/itemSelectSetForm.vue";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'BasicSpotCheckOption' }) defineOptions({ name: 'BasicSpotCheckOption' })
const message = useMessage() // const message = useMessage() //
@ -253,18 +254,17 @@ const getData = async() => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await BasicSpotCheckOptionApi.exportBasicSpotCheckOption(tableObject.params) const data = await BasicSpotCheckOptionApi.exportBasicSpotCheckOption(tableObject.params)
download.excel(data, '点检方案.xlsx') download.excel(data, '点检方案.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

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

@ -70,7 +70,8 @@ import { Role } from '@/views/system/role/role.data'
import * as WorkshopApi from '@/api/wms/workshop' import * as WorkshopApi from '@/api/wms/workshop'
import { Workshop } from '@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data' import { Workshop } from '@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data'
import * as InspectionItemSelectSetApi from "@/api/eam/inspectionItemSelectSet"; import * as InspectionItemSelectSetApi from "@/api/eam/inspectionItemSelectSet";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ClassTypeRole' }) defineOptions({ name: 'ClassTypeRole' })
@ -264,18 +265,18 @@ const handleDisable = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await ClassTypeRoleApi.exportClassTypeRole(tableObject.params) const data = await ClassTypeRoleApi.exportClassTypeRole(tableObject.params)
download.excel(data, '厂区班组角色维护.xlsx') download.excel(data, '厂区班组角色维护.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

12
src/views/eam/countRecord/index.vue

@ -59,7 +59,8 @@
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
// //
defineOptions({ name: 'CountRecord' }) defineOptions({ name: 'CountRecord' })
@ -224,18 +225,17 @@
/** 列表导出按钮操作 */ /** 列表导出按钮操作 */
const exportLoading = ref(false) //
const handleMainExport = async (id : number) => { const handleMainExport = async (id : number) => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await CountRecordMainApi.handleMainExport(id) const data = await CountRecordMainApi.handleMainExport(id)
download.excel(data, '盘点工单.xlsx') download.excel(data, '盘点工单.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }
@ -259,12 +259,12 @@
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await CountRecordMainApi.exportCountRecordMain(tableObject.params) const data = await CountRecordMainApi.exportCountRecordMain(tableObject.params)
download.excel(data, '备件申领记录主.xlsx') download.excel(data, '备件申领记录主.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

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

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

13
src/views/eam/countadjustWork/index.vue

@ -101,7 +101,8 @@ import * as CountJobDetailApi from '@/api/eam/countJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
// //
defineOptions({ name: 'CountadjustWork' }) defineOptions({ name: 'CountadjustWork' })
@ -259,18 +260,17 @@ const handleDelete = async (id: number) => {
} }
/** 列表导出按钮操作 */ /** 列表导出按钮操作 */
const exportLoading = ref(false) //
const handleMainExport = async (id: number) => { const handleMainExport = async (id: number) => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await CountJobMainApi.handleMainExport(id) const data = await CountJobMainApi.handleMainExport(id)
download.excel(data, '盘点工单.xlsx') download.excel(data, '盘点工单.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }
@ -280,12 +280,13 @@ const handleExport = async () => {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await CountJobMainApi.exportCountJobMain(tableObject.params) const data = await CountJobMainApi.exportCountJobMain(tableObject.params)
download.excel(data, '备件申领记录主.xlsx') download.excel(data, '备件申领记录主.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

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

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

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

@ -69,7 +69,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import ItemForm from "@/views/eam/documentTypeSelectSet/itemSelectSetForm.vue"; import ItemForm from "@/views/eam/documentTypeSelectSet/itemSelectSetForm.vue";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'DocumentTypeSelectSet' }) defineOptions({ name: 'DocumentTypeSelectSet' })
const message = useMessage() // const message = useMessage() //
@ -252,18 +253,17 @@ const handleDisable = async (id: number) => {
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await DocumentTypeSelectSetApi.exportDocumentTypeSelectSet(tableObject.params) const data = await DocumentTypeSelectSetApi.exportDocumentTypeSelectSet(tableObject.params)
download.excel(data, '文档类型选择集.xlsx') download.excel(data, '文档类型选择集.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -105,7 +105,8 @@ import * as EquipmentItemApi from "@/api/eam/equipmentAccounts";
import {ToolAccounts} from "@/views/eam/toolAccounts/toolAccounts.data"; import {ToolAccounts} from "@/views/eam/toolAccounts/toolAccounts.data";
import * as ToolItemApi from "@/api/eam/toolAccounts"; import * as ToolItemApi from "@/api/eam/toolAccounts";
import * as EquipmentInspectionMainApi from "@/api/eam/equipmentInspectionMain"; import * as EquipmentInspectionMainApi from "@/api/eam/equipmentInspectionMain";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentMaintenanceMain' }) defineOptions({ name: 'EquipmentMaintenanceMain' })
const message = useMessage() // const message = useMessage() //
@ -497,18 +498,18 @@ const onChange = (field, item) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await EquipmentMaintenanceMainApi.exportEquipmentMaintenanceMain(tableObject.params) const data = await EquipmentMaintenanceMainApi.exportEquipmentMaintenanceMain(tableObject.params)
download.excel(data, '设备保养工单主.xlsx') download.excel(data, '设备保养工单主.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

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

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

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

@ -89,7 +89,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import {maintainExperienceBtn} from "@/utils/disposition/defaultButtons"; import {maintainExperienceBtn} from "@/utils/disposition/defaultButtons";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentMaintenanceRecordMain' }) defineOptions({ name: 'EquipmentMaintenanceRecordMain' })
const message = useMessage() // const message = useMessage() //
@ -252,18 +253,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await EquipmentMaintenanceRecordMainApi.exportEquipmentMaintenanceRecordMain(tableObject.params) const data = await EquipmentMaintenanceRecordMainApi.exportEquipmentMaintenanceRecordMain(tableObject.params)
download.excel(data, '设备保养记录主.xlsx') download.excel(data, '设备保养记录主.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

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

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

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

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

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

@ -96,7 +96,8 @@ import * as EquipmentItemApi from "@/api/eam/equipmentAccounts";
import {ToolAccounts} from "@/views/eam/toolAccounts/toolAccounts.data"; import {ToolAccounts} from "@/views/eam/toolAccounts/toolAccounts.data";
import * as ToolItemApi from "@/api/eam/toolAccounts"; import * as ToolItemApi from "@/api/eam/toolAccounts";
import {mainListCancelBtn} from "@/utils/disposition/defaultButtons"; import {mainListCancelBtn} from "@/utils/disposition/defaultButtons";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentRepairJobMain' }) defineOptions({ name: 'EquipmentRepairJobMain' })
const message = useMessage() // const message = useMessage() //
@ -578,18 +579,18 @@ const onChange = (field, item) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await EquipmentRepairJobMainApi.exportEquipmentRepairJobMain(tableObject.params) const data = await EquipmentRepairJobMainApi.exportEquipmentRepairJobMain(tableObject.params)
download.excel(data, '维修工单主.xlsx') download.excel(data, '维修工单主.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

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

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

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

@ -104,7 +104,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import {repairExperienceBtn} from "@/utils/disposition/defaultButtons"; import {repairExperienceBtn} from "@/utils/disposition/defaultButtons";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentRepairRecordMain' }) defineOptions({ name: 'EquipmentRepairRecordMain' })
const message = useMessage() // const message = useMessage() //
@ -278,20 +279,19 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await EquipmentRepairRecordMainApi.exportEquipmentRepairRecordMain( const data = await EquipmentRepairRecordMainApi.exportEquipmentRepairRecordMain(
tableObject.params tableObject.params
) )
download.excel(data, '设备维修记录主.xlsx') download.excel(data, '设备维修记录主.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

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

@ -68,7 +68,8 @@ import * as EquipmentItemApi from "@/api/eam/equipmentAccounts";
import { ToolAccounts } from "@/views/eam/toolAccounts/toolAccounts.data"; import { ToolAccounts } from "@/views/eam/toolAccounts/toolAccounts.data";
import * as ToolItemApi from "@/api/eam/toolAccounts"; import * as ToolItemApi from "@/api/eam/toolAccounts";
import * as EquipmentReportRepairApi from "@/api/eam/equipmentReportRepairRequest"; import * as EquipmentReportRepairApi from "@/api/eam/equipmentReportRepairRequest";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentReportRepairRequest' }) defineOptions({ name: 'EquipmentReportRepairRequest' })
const message = useMessage() // const message = useMessage() //
@ -340,18 +341,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await EquipmentReportRepairRequestApi.exportEquipmentReportRepairRequest(tableObject.params) const data = await EquipmentReportRepairRequestApi.exportEquipmentReportRepairRequest(tableObject.params)
download.excel(data, '设报修申请.xlsx') download.excel(data, '设报修申请.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentShutdown' }) defineOptions({ name: 'EquipmentShutdown' })
@ -196,18 +198,18 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await EquipmentShutdownApi.exportEquipmentShutdown(tableObject.params) const data = await EquipmentShutdownApi.exportEquipmentShutdown(tableObject.params)
download.excel(data, '设备停机记录.xlsx') download.excel(data, '设备停机记录.xlsx')
} catch { } catch {
} finally { } 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 Detail from '@/components/Detail/src/Detail.vue'
import * as UserApi from '@/api/system/user' import * as UserApi from '@/api/system/user'
import * as EquipmentSupplierApi from '@/api/eam/equipmentSupplier' import * as EquipmentSupplierApi from '@/api/eam/equipmentSupplier'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentSigning' }) defineOptions({ name: 'EquipmentSigning' })
const message = useMessage() // const message = useMessage() //
@ -218,18 +219,18 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await EquipmentSigningApi.exportEquipmentSigning(tableObject.params) const data = await EquipmentSigningApi.exportEquipmentSigning(tableObject.params)
download.excel(data, '设备到货签收记录.xlsx') download.excel(data, '设备到货签收记录.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentSpotCheckDetail' }) defineOptions({ name: 'EquipmentSpotCheckDetail' })
const message = useMessage() // const message = useMessage() //
@ -196,18 +197,18 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await EquipmentSpotCheckDetailApi.exportEquipmentSpotCheckDetail(tableObject.params) const data = await EquipmentSpotCheckDetailApi.exportEquipmentSpotCheckDetail(tableObject.params)
download.excel(data, '点检工单子.xlsx') download.excel(data, '点检工单子.xlsx')
} catch { } catch {
} finally { } 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 {ToolAccounts} from "@/views/eam/toolAccounts/toolAccounts.data";
import * as ToolItemApi from "@/api/eam/toolAccounts"; import * as ToolItemApi from "@/api/eam/toolAccounts";
import * as EquipmentRepairJobMainApi from "@/api/eam/equipmentRepairJobMain"; import * as EquipmentRepairJobMainApi from "@/api/eam/equipmentRepairJobMain";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentSpotCheckMain' }) defineOptions({ name: 'EquipmentSpotCheckMain' })
const message = useMessage() // const message = useMessage() //
@ -514,18 +515,17 @@ const getData2=(val)=> {
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await EquipmentSpotCheckMainApi.exportEquipmentSpotCheckMain(tableObject.params) const data = await EquipmentSpotCheckMainApi.exportEquipmentSpotCheckMain(tableObject.params)
download.excel(data, '点检工单主.xlsx') download.excel(data, '点检工单主.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentSpotCheckRecordDetail' }) defineOptions({ name: 'EquipmentSpotCheckRecordDetail' })
@ -196,18 +198,18 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await EquipmentSpotCheckRecordDetailApi.exportEquipmentSpotCheckRecordDetail(tableObject.params) const data = await EquipmentSpotCheckRecordDetailApi.exportEquipmentSpotCheckRecordDetail(tableObject.params)
download.excel(data, '点检记录子.xlsx') download.excel(data, '点检记录子.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentSpotCheckRecordMain' }) defineOptions({ name: 'EquipmentSpotCheckRecordMain' })
const message = useMessage() // const message = useMessage() //
@ -209,18 +210,18 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await EquipmentSpotCheckRecordMainApi.exportEquipmentSpotCheckRecordMain(tableObject.params) const data = await EquipmentSpotCheckRecordMainApi.exportEquipmentSpotCheckRecordMain(tableObject.params)
download.excel(data, '点检记录主.xlsx') download.excel(data, '点检记录主.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentSupplier' }) defineOptions({ name: 'EquipmentSupplier' })
const message = useMessage() // const message = useMessage() //
@ -212,18 +213,18 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await EquipmentSupplierApi.exportEquipmentSupplier(tableObject.params) const data = await EquipmentSupplierApi.exportEquipmentSupplier(tableObject.params)
download.excel(data, '供应商.xlsx') download.excel(data, '供应商.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentToolSparePart' }) defineOptions({ name: 'EquipmentToolSparePart' })
const message = useMessage() // const message = useMessage() //
@ -196,18 +197,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await EquipmentToolSparePartApi.exportEquipmentToolSparePart(tableObject.params) const data = await EquipmentToolSparePartApi.exportEquipmentToolSparePart(tableObject.params)
download.excel(data, '设备或工装与备件关联.xlsx') download.excel(data, '设备或工装与备件关联.xlsx')
} catch { } catch {
} finally { } 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 ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import * as UserApi from '@/api/system/user' import * as UserApi from '@/api/system/user'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'EquipmentTransferRecord' }) defineOptions({ name: 'EquipmentTransferRecord' })
const message = useMessage() // const message = useMessage() //
@ -215,18 +216,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await EquipmentTransferRecordApi.exportEquipmentTransferRecord(tableObject.params) const data = await EquipmentTransferRecordApi.exportEquipmentTransferRecord(tableObject.params)
download.excel(data, '设备移动记录.xlsx') download.excel(data, '设备移动记录.xlsx')
} catch { } catch {
} finally { } 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 ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import * as InspectionItemSelectSetApi from "@/api/eam/inspectionItemSelectSet"; import * as InspectionItemSelectSetApi from "@/api/eam/inspectionItemSelectSet";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'InspectionItem' }) defineOptions({ name: 'InspectionItem' })
const message = useMessage() // const message = useMessage() //
@ -214,18 +215,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await InspectionItemApi.exportInspectionItem(tableObject.params) const data = await InspectionItemApi.exportInspectionItem(tableObject.params)
download.excel(data, '巡检项.xlsx') download.excel(data, '巡检项.xlsx')
} catch { } catch {
} finally { } 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 ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import ItemForm from "@/views/eam/inspectionItemSelectSet/itemSelectSetForm.vue"; import ItemForm from "@/views/eam/inspectionItemSelectSet/itemSelectSetForm.vue";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'InspectionItemSelectSet' }) defineOptions({ name: 'InspectionItemSelectSet' })
const message = useMessage() // const message = useMessage() //
@ -240,18 +241,17 @@ const handleDisable = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await InspectionItemSelectSetApi.exportInspectionItemSelectSet(tableObject.params) const data = await InspectionItemSelectSetApi.exportInspectionItemSelectSet(tableObject.params)
download.excel(data, '巡检项选择集.xlsx') download.excel(data, '巡检项选择集.xlsx')
} catch { } catch {
} finally { } 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 { SearchTable } from '@/components/SearchTable'
import { getAccessToken } from '@/utils/auth' import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam' import { getJmreportBaseUrl } from '@/utils/systemParam'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Item' }) defineOptions({ name: 'Item' })
const message = useMessage() // const message = useMessage() //
@ -314,18 +315,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await ItemApi.exportItem(tableObject.params) const data = await ItemApi.exportItem(tableObject.params)
download.excel(data, '备件.xlsx') download.excel(data, '备件.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ItemAccounts' }) defineOptions({ name: 'ItemAccounts' })
const message = useMessage() // const message = useMessage() //
@ -364,18 +365,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await ItemAccountsApi.exportItemAccounts(tableObject.params) const data = await ItemAccountsApi.exportItemAccounts(tableObject.params)
download.excel(data, '备件台账.xlsx') download.excel(data, '备件台账.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

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

@ -54,6 +54,8 @@
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
// //
defineOptions({ name: 'ItemApplyMain' }) defineOptions({ name: 'ItemApplyMain' })
@ -251,18 +253,17 @@
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await ItemApplyMainApi.exportItemApplyMain(tableObject.params) const data = await ItemApplyMainApi.exportItemApplyMain(tableObject.params)
download.excel(data, '备件申领记录主.xlsx') download.excel(data, '备件申领记录主.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ItemDelete' }) defineOptions({ name: 'ItemDelete' })
@ -352,18 +354,18 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await ItemAccountsApi.exportItemAccounts(tableObject.params) const data = await ItemAccountsApi.exportItemAccounts(tableObject.params)
download.excel(data, '备件台账.xlsx') download.excel(data, '备件台账.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

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

@ -47,6 +47,8 @@
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ItemInLocation' }) defineOptions({ name: 'ItemInLocation' })
@ -177,18 +179,17 @@
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await ItemInLocationApi.exportItemInLocation(tableObject.params) const data = await ItemInLocationApi.exportItemInLocation(tableObject.params)
download.excel(data, '备件入库记录.xlsx') download.excel(data, '备件入库记录.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ItemLocationReplace' }) defineOptions({ name: 'ItemLocationReplace' })
const message = useMessage() // const message = useMessage() //
@ -196,18 +197,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await ItemLocationReplaceApi.exportItemLocationReplace(tableObject.params) const data = await ItemLocationReplaceApi.exportItemLocationReplace(tableObject.params)
download.excel(data, '备件库位变更记录.xlsx') download.excel(data, '备件库位变更记录.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ItemMaintenance' }) defineOptions({ name: 'ItemMaintenance' })
const message = useMessage() // const message = useMessage() //
@ -195,18 +196,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await ItemMaintenanceApi.exportItemMaintenance(tableObject.params) const data = await ItemMaintenanceApi.exportItemMaintenance(tableObject.params)
download.excel(data, '备件维修记录.xlsx') download.excel(data, '备件维修记录.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

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

@ -55,7 +55,8 @@
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
// //
defineOptions({ name: 'ItemOrderMain' }) defineOptions({ name: 'ItemOrderMain' })
@ -218,18 +219,17 @@
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await ItemOrderMainApi.exportItemOrderMain(tableObject.params) const data = await ItemOrderMainApi.exportItemOrderMain(tableObject.params)
download.excel(data, '备件申领记录主.xlsx') download.excel(data, '备件申领记录主.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ItemOutLocation' }) defineOptions({ name: 'ItemOutLocation' })
const message = useMessage() // const message = useMessage() //
@ -195,18 +196,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await ItemOutLocationApi.exportItemOutLocation(tableObject.params) const data = await ItemOutLocationApi.exportItemOutLocation(tableObject.params)
download.excel(data, '备件出库记录.xlsx') download.excel(data, '备件出库记录.xlsx')
} catch { } catch {
} finally { } 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 Detail from '@/components/Detail/src/Detail.vue'
import { getAccessToken } from '@/utils/auth' import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam' import { getJmreportBaseUrl } from '@/utils/systemParam'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Location' }) defineOptions({ name: 'Location' })
const message = useMessage() // const message = useMessage() //
@ -237,18 +238,18 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await LocationApi.exportLocation(tableObject.params) const data = await LocationApi.exportLocation(tableObject.params)
download.excel(data, '库位.xlsx') download.excel(data, '库位.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'LocationArea' }) defineOptions({ name: 'LocationArea' })
const message = useMessage() // const message = useMessage() //
@ -188,18 +189,18 @@
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await LocationAreaApi.exportLocationArea(tableObject.params) const data = await LocationAreaApi.exportLocationArea(tableObject.params)
download.excel(data, '库区.xls') download.excel(data, '库区.xls')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'MaintainExperience' }) defineOptions({ name: 'MaintainExperience' })
const message = useMessage() // const message = useMessage() //
@ -208,18 +209,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await MaintainExperienceApi.exportMaintainExperience(tableObject.params) const data = await MaintainExperienceApi.exportMaintainExperience(tableObject.params)
download.excel(data, '保养经验记录.xlsx') download.excel(data, '保养经验记录.xlsx')
} catch { } catch {
} finally { } 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 * as EquipmentItemApi from "@/api/eam/equipmentAccounts";
import { ToolAccounts } from "@/views/eam/toolAccounts/toolAccounts.data"; import { ToolAccounts } from "@/views/eam/toolAccounts/toolAccounts.data";
import * as ToolItemApi from "@/api/eam/toolAccounts"; import * as ToolItemApi from "@/api/eam/toolAccounts";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Maintenance' }) defineOptions({ name: 'Maintenance' })
@ -344,18 +345,17 @@ const onChange = (field, item) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await MaintenanceApi.exportMaintenance(tableObject.params) const data = await MaintenanceApi.exportMaintenance(tableObject.params)
download.excel(data, '保养计划.xlsx') download.excel(data, '保养计划.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'MaintenanceItem' }) defineOptions({ name: 'MaintenanceItem' })
const message = useMessage() // const message = useMessage() //
@ -211,18 +212,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await MaintenanceItemApi.exportMaintenanceItem(tableObject.params) const data = await MaintenanceItemApi.exportMaintenanceItem(tableObject.params)
download.excel(data, '保养项维护.xlsx') download.excel(data, '保养项维护.xlsx')
} catch { } catch {
} finally { } 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 Detail from '@/components/Detail/src/Detail.vue'
import ItemForm from "@/views/eam/maintenanceItemSelectSet/itemSelectSetForm.vue"; import ItemForm from "@/views/eam/maintenanceItemSelectSet/itemSelectSetForm.vue";
import * as InspectionItemSelectSetApi from "@/api/eam/inspectionItemSelectSet"; import * as InspectionItemSelectSetApi from "@/api/eam/inspectionItemSelectSet";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'BasicMaintenanceItemSelectSet' }) defineOptions({ name: 'BasicMaintenanceItemSelectSet' })
const message = useMessage() // const message = useMessage() //
@ -241,18 +242,17 @@ const handleDisable = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await BasicMaintenanceItemSelectSetApi.exportBasicMaintenanceItemSelectSet(tableObject.params) const data = await BasicMaintenanceItemSelectSetApi.exportBasicMaintenanceItemSelectSet(tableObject.params)
download.excel(data, '保养项选择集.xlsx') download.excel(data, '保养项选择集.xlsx')
} catch { } catch {
} finally { } 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 {ToolAccounts} from "@/views/eam/toolAccounts/toolAccounts.data";
import * as ToolItemApi from "@/api/eam/toolAccounts"; import * as ToolItemApi from "@/api/eam/toolAccounts";
import AudiForm from '@/views/eam/planInspection/audiForm.vue' import AudiForm from '@/views/eam/planInspection/audiForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'PlanInspection' }) defineOptions({ name: 'PlanInspection' })
const message = useMessage() // const message = useMessage() //
@ -343,18 +344,17 @@ const onChange = (field, item) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await PlanInspectionApi.exportPlanInspection(tableObject.params) const data = await PlanInspectionApi.exportPlanInspection(tableObject.params)
download.excel(data, '巡检计划.xlsx') download.excel(data, '巡检计划.xlsx')
} catch { } catch {
} finally { } 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 * as ToolItemApi from "@/api/eam/toolAccounts";
import AudiForm from '@/views/eam/planSpotCheck/audiForm.vue' import AudiForm from '@/views/eam/planSpotCheck/audiForm.vue'
import {updateSpotCheckPlan} from "@/api/eam/planSpotCheck"; import {updateSpotCheckPlan} from "@/api/eam/planSpotCheck";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'PlanSpotCheck' }) defineOptions({ name: 'PlanSpotCheck' })
const message = useMessage() // const message = useMessage() //
@ -375,18 +376,18 @@ const getData=(val)=> {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await PlanSpotCheckApi.exportPlanSpotCheck(tableObject.params) const data = await PlanSpotCheckApi.exportPlanSpotCheck(tableObject.params)
download.excel(data, '点检计划.xlsx') download.excel(data, '点检计划.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'RecordDeviceChanged' }) defineOptions({ name: 'RecordDeviceChanged' })
const message = useMessage() // const message = useMessage() //
@ -196,18 +197,18 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await RecordDeviceChangedApi.exportRecordDeviceChanged(tableObject.params) const data = await RecordDeviceChangedApi.exportRecordDeviceChanged(tableObject.params)
download.excel(data, '设备变更记录.xlsx') download.excel(data, '设备变更记录.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'RelationMainPart' }) defineOptions({ name: 'RelationMainPart' })
const message = useMessage() // const message = useMessage() //
@ -196,18 +197,18 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await RelationMainPartApi.exportRelationMainPart(tableObject.params) const data = await RelationMainPartApi.exportRelationMainPart(tableObject.params)
download.excel(data, '主要部件关联.xlsx') download.excel(data, '主要部件关联.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'RepairExperience' }) defineOptions({ name: 'RepairExperience' })
const message = useMessage() // const message = useMessage() //
@ -211,18 +212,18 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await RepairExperienceApi.exportRepairExperience(tableObject.params) const data = await RepairExperienceApi.exportRepairExperience(tableObject.params)
download.excel(data, '维修经验记录.xlsx') download.excel(data, '维修经验记录.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'RepairSparePartsRecord' }) defineOptions({ name: 'RepairSparePartsRecord' })
const message = useMessage() // const message = useMessage() //
@ -196,18 +197,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await RepairSparePartsRecordApi.exportRepairSparePartsRecord(tableObject.params) const data = await RepairSparePartsRecordApi.exportRepairSparePartsRecord(tableObject.params)
download.excel(data, '备件维修申请.xlsx') download.excel(data, '备件维修申请.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'RepairSparePartsRequest' }) defineOptions({ name: 'RepairSparePartsRequest' })
@ -196,18 +198,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await RepairSparePartsRequestApi.exportRepairSparePartsRequest(tableObject.params) const data = await RepairSparePartsRequestApi.exportRepairSparePartsRequest(tableObject.params)
download.excel(data, '备件维修申请.xlsx') download.excel(data, '备件维修申请.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SparePart' }) defineOptions({ name: 'SparePart' })
const message = useMessage() // const message = useMessage() //
@ -196,18 +197,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await SparePartApi.exportSparePart(tableObject.params) const data = await SparePartApi.exportSparePart(tableObject.params)
download.excel(data, '备件基础.xlsx') download.excel(data, '备件基础.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

12
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 * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
// //
defineOptions({ name: 'SparePartsApply' }) defineOptions({ name: 'SparePartsApply' })
@ -315,18 +316,17 @@ const handleDelete = async (id: number) => {
} }
/** 列表导出按钮操作 */ /** 列表导出按钮操作 */
const exportLoading = ref(false) //
const handleMainExport = async (id: number) => { const handleMainExport = async (id: number) => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await SparePartsApplyMainApi.exportSparePartsApplyMain(id) const data = await SparePartsApplyMainApi.exportSparePartsApplyMain(id)
download.excel(data, '盘点工单.xlsx') download.excel(data, '盘点工单.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }
@ -349,12 +349,12 @@ const handleExport = async () => {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await SparePartsApplyMainApi.exportSparePartsApplyMain(tableObject.params) const data = await SparePartsApplyMainApi.exportSparePartsApplyMain(tableObject.params)
download.excel(data, '备件申领记录主.xlsx') download.excel(data, '备件申领记录主.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
// import AudiForm from '@/views/eam/sparepartsinlocation/audiForm.vue' // import AudiForm from '@/views/eam/sparepartsinlocation/audiForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
// //
defineOptions({ name: 'SparePartsApply' }) defineOptions({ name: 'SparePartsApply' })
@ -322,21 +323,20 @@ const handleDelete = async (id: number) => {
} catch {} } catch {}
} }
const exportLoading = ref(false) //
/** 导出按钮操作 */ /** 导出按钮操作 */
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await SparePartsInLocationMainApi.exportSparePartsInLocationMain( const data = await SparePartsInLocationMainApi.exportSparePartsInLocationMain(
tableObject.params tableObject.params
) )
download.excel(data, '备件申领记录主.xlsx') download.excel(data, '备件申领记录主.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

12
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 * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
// //
defineOptions({ name: 'SparePartsOutLocation' }) defineOptions({ name: 'SparePartsOutLocation' })
@ -283,18 +284,17 @@ const handleDelete = async (id: number) => {
} }
/** 列表导出按钮操作 */ /** 列表导出按钮操作 */
const exportLoading = ref(false) //
const handleMainExport = async (id: number) => { const handleMainExport = async (id: number) => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await SparePartsOutLocationMainApi.exportSparePartsOutLocationMain(id) const data = await SparePartsOutLocationMainApi.exportSparePartsOutLocationMain(id)
download.excel(data, '盘点工单.xlsx') download.excel(data, '盘点工单.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }
@ -317,14 +317,14 @@ const handleExport = async () => {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await SparePartsOutLocationMainApi.exportSparePartsOutLocationMain( const data = await SparePartsOutLocationMainApi.exportSparePartsOutLocationMain(
tableObject.params tableObject.params
) )
download.excel(data, '备件申领记录主.xlsx') download.excel(data, '备件申领记录主.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SpotCheckItem' }) defineOptions({ name: 'SpotCheckItem' })
const message = useMessage() // const message = useMessage() //
@ -211,18 +212,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await SpotCheckItemApi.exportSpotCheckItem(tableObject.params) const data = await SpotCheckItemApi.exportSpotCheckItem(tableObject.params)
download.excel(data, '点检项.xlsx') download.excel(data, '点检项.xlsx')
} catch { } catch {
} finally { } 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 ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import ItemForm from "@/views/eam/spotCheckSelectSet/itemSelectSetForm.vue"; import ItemForm from "@/views/eam/spotCheckSelectSet/itemSelectSetForm.vue";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'BasicSpotCheckSelectSet' }) defineOptions({ name: 'BasicSpotCheckSelectSet' })
const message = useMessage() // const message = useMessage() //
@ -240,18 +241,17 @@ const handleDisable = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await BasicSpotCheckSelectSetApi.exportBasicSpotCheckSelectSet(tableObject.params) const data = await BasicSpotCheckSelectSetApi.exportBasicSpotCheckSelectSet(tableObject.params)
download.excel(data, '点检选择集维护.xlsx') download.excel(data, '点检选择集维护.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'TableDataExtendedAttribute' }) defineOptions({ name: 'TableDataExtendedAttribute' })
const message = useMessage() // const message = useMessage() //
@ -196,18 +197,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await TableDataExtendedAttributeApi.exportTableDataExtendedAttribute(tableObject.params) const data = await TableDataExtendedAttributeApi.exportTableDataExtendedAttribute(tableObject.params)
download.excel(data, '表数据扩展属性字段.xlsx') download.excel(data, '表数据扩展属性字段.xlsx')
} catch { } catch {
} finally { } 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 EquipmentSupplierApi from '@/api/eam/equipmentSupplier'
import * as EquipmentManufacturerApi from '@/api/eam/equipmentManufacturer' import * as EquipmentManufacturerApi from '@/api/eam/equipmentManufacturer'
import * as UserApi from '@/api/system/user' import * as UserApi from '@/api/system/user'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ToolAccounts' }) defineOptions({ name: 'ToolAccounts' })
const message = useMessage() // const message = useMessage() //
@ -353,18 +354,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await ToolAccountsApi.exportToolAccounts(tableObject.params) const data = await ToolAccountsApi.exportToolAccounts(tableObject.params)
download.excel(data, '工装台账.xlsx') download.excel(data, '工装台账.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ToolChangedRecord' }) defineOptions({ name: 'ToolChangedRecord' })
const message = useMessage() // const message = useMessage() //
@ -196,18 +197,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await ToolChangedRecordApi.exportToolChangedRecord(tableObject.params) const data = await ToolChangedRecordApi.exportToolChangedRecord(tableObject.params)
download.excel(data, '设备变更记录.xlsx') download.excel(data, '设备变更记录.xlsx')
} catch { } catch {
} finally { } 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 EquipmentSupplierApi from '@/api/eam/equipmentSupplier'
import * as EquipmentManufacturerApi from '@/api/eam/equipmentManufacturer' import * as EquipmentManufacturerApi from '@/api/eam/equipmentManufacturer'
import * as ToolAccountsApi from '@/api/eam/toolAccounts' import * as ToolAccountsApi from '@/api/eam/toolAccounts'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ToolEquipmentIn' }) defineOptions({ name: 'ToolEquipmentIn' })
const message = useMessage() // const message = useMessage() //
@ -242,18 +243,18 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await ToolEquipmentInApi.exportToolEquipmentIn(tableObject.params) const data = await ToolEquipmentInApi.exportToolEquipmentIn(tableObject.params)
download.excel(data, '工装入库记录.xlsx') download.excel(data, '工装入库记录.xlsx')
} catch { } catch {
} finally { } 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 ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import * as ToolAccountsApi from '@/api/eam/toolAccounts' import * as ToolAccountsApi from '@/api/eam/toolAccounts'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ToolEquipmentOut' }) defineOptions({ name: 'ToolEquipmentOut' })
@ -205,18 +207,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await ToolEquipmentOutApi.exportToolEquipmentOut(tableObject.params) const data = await ToolEquipmentOutApi.exportToolEquipmentOut(tableObject.params)
download.excel(data, '工装出库记录.xlsx') download.excel(data, '工装出库记录.xlsx')
} catch { } catch {
} finally { } 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 ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import TeamForm from "./operateForm.vue"; import TeamForm from "./operateForm.vue";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ToolMod' }) defineOptions({ name: 'ToolMod' })
const message = useMessage() // const message = useMessage() //
@ -203,18 +205,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await ToolModApi.exportToolMod(tableObject.params) const data = await ToolModApi.exportToolMod(tableObject.params)
download.excel(data, '工装物料关联.xlsx') download.excel(data, '工装物料关联.xlsx')
} catch { } catch {
} finally { } 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 Detail from '@/components/Detail/src/Detail.vue'
import * as EquipmentSupplierApi from '@/api/eam/equipmentSupplier' import * as EquipmentSupplierApi from '@/api/eam/equipmentSupplier'
import * as UserApi from '@/api/system/user' import * as UserApi from '@/api/system/user'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ToolSigning' }) defineOptions({ name: 'ToolSigning' })
const message = useMessage() // const message = useMessage() //
@ -209,18 +210,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await ToolSigningApi.exportToolSigning(tableObject.params) const data = await ToolSigningApi.exportToolSigning(tableObject.params)
download.excel(data, '工装到货签收记录.xlsx') download.excel(data, '工装到货签收记录.xlsx')
} catch { } catch {
} finally { } 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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Transaction' }) defineOptions({ name: 'Transaction' })
@ -205,18 +207,17 @@ const handleDelete = async (id: number) => {
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await TransactionApi.exportTransaction(tableObject.params) const data = await TransactionApi.exportTransaction(tableObject.params)
download.excel(data, '库存事务.xlsx') download.excel(data, '库存事务.xlsx')
} catch { } catch {
} finally { } 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 { formatDate } from '@/utils/formatTime'
import * as ApiAccessLogApi from '@/api/infra/apiAccessLog' import * as ApiAccessLogApi from '@/api/infra/apiAccessLog'
import ApiAccessLogDetail from './ApiAccessLogDetail.vue' import ApiAccessLogDetail from './ApiAccessLogDetail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'InfraApiAccessLog' }) defineOptions({ name: 'InfraApiAccessLog' })
const message = useMessage() // const message = useMessage() //
@ -151,12 +152,12 @@ const handleExport = async () => {
// //
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true loadStart()
const data = await ApiAccessLogApi.exportApiAccessLog(queryParams) const data = await ApiAccessLogApi.exportApiAccessLog(queryParams)
download.excel(data, 'API 访问日志.xlsx') download.excel(data, 'API 访问日志.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false loadDone()
} }
} }

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save