Browse Source

所有页面导出功能

hella_online_20240823
wangyufei 3 months ago
parent
commit
7509f988c0
  1. 8
      src/views/mes/abilityInfo/index.vue
  2. 8
      src/views/mes/hrPersonAbility/index.vue
  3. 8
      src/views/mes/item/index.vue
  4. 8
      src/views/mes/itemRequestMain/index.vue
  5. 8
      src/views/mes/opersteps/index.vue
  6. 8
      src/views/mes/operstepsType/index.vue
  7. 8
      src/views/mes/orderDay/index.vue
  8. 8
      src/views/mes/ordermonthplan/index.vue
  9. 8
      src/views/mes/pattern/index.vue
  10. 8
      src/views/mes/patternType/index.vue
  11. 8
      src/views/mes/process/index.vue
  12. 8
      src/views/mes/processroute/index.vue
  13. 8
      src/views/mes/productBackline/index.vue
  14. 8
      src/views/mes/productOffline/index.vue
  15. 8
      src/views/mes/productionPlan/index.vue
  16. 8
      src/views/mes/qualityclass/index.vue
  17. 8
      src/views/mes/qualityform/index.vue
  18. 8
      src/views/mes/qualityformlog/index.vue
  19. 8
      src/views/mes/qualitygroup/index.vue
  20. 8
      src/views/mes/reportpStore/index.vue
  21. 8
      src/views/mes/reworkBatch/index.vue
  22. 8
      src/views/mes/reworkSingle/index.vue
  23. 8
      src/views/mes/teamSetting/index.vue
  24. 8
      src/views/mes/workScheduling/index.vue
  25. 8
      src/views/mes/workSchedulingQaform/index.vue
  26. 8
      src/views/qms/aql/index.vue
  27. 8
      src/views/qms/counter/index.vue
  28. 8
      src/views/qms/dynamicRule/index.vue
  29. 8
      src/views/qms/inspectionJob/index.vue
  30. 8
      src/views/qms/inspectionMethod/index.vue
  31. 7
      src/views/qms/inspectionQ1/index.vue
  32. 7
      src/views/qms/inspectionQ2/index.vue
  33. 7
      src/views/qms/inspectionQ3/index.vue
  34. 8
      src/views/qms/inspectionRecord/index.vue
  35. 14
      src/views/qms/inspectionRecordFirst/index.vue
  36. 8
      src/views/qms/inspectionRequest/index.vue
  37. 8
      src/views/qms/inspectionScheme/index.vue
  38. 8
      src/views/qms/inspectionStage/index.vue
  39. 8
      src/views/qms/inspectionTemplate/index.vue
  40. 8
      src/views/qms/sampleCode/index.vue
  41. 8
      src/views/qms/samplingProcess/index.vue
  42. 8
      src/views/qms/samplingScheme/index.vue
  43. 8
      src/views/qms/selectedProject/index.vue
  44. 8
      src/views/qms/selectedSet/index.vue
  45. 8
      src/views/report/printBusinesstypeTemplate/index.vue
  46. 8
      src/views/report/printClientPrinter/index.vue
  47. 7
      src/views/system/dict/data/index.vue
  48. 7
      src/views/system/dict/index.vue
  49. 7
      src/views/system/errorCode/index.vue
  50. 7
      src/views/system/loginlog/index.vue
  51. 7
      src/views/system/messageSet/index.vue
  52. 7
      src/views/system/operatelog/index.vue
  53. 7
      src/views/system/post/index.vue
  54. 7
      src/views/system/role/index.vue
  55. 7
      src/views/system/sensitiveWord/index.vue
  56. 7
      src/views/system/serialNumber/index.vue
  57. 7
      src/views/system/sms/log/index.vue
  58. 7
      src/views/system/sms/template/index.vue
  59. 7
      src/views/system/tableActionRel/index.vue
  60. 6
      src/views/system/tenant/index.vue
  61. 7
      src/views/system/user/index.vue
  62. 8
      src/views/wms/agvManage/agvLocationrelation/index.vue
  63. 8
      src/views/wms/agvManage/interfaceInfo/index.vue
  64. 8
      src/views/wms/basicDataManage/customerManage/customer/index.vue
  65. 8
      src/views/wms/basicDataManage/customerManage/customerDeliveryForecast/index.vue
  66. 8
      src/views/wms/basicDataManage/customerManage/customerdock/index.vue
  67. 8
      src/views/wms/basicDataManage/customerManage/customeritem/index.vue
  68. 8
      src/views/wms/basicDataManage/customerManage/project/index.vue
  69. 8
      src/views/wms/basicDataManage/customerManage/saleprice/index.vue
  70. 8
      src/views/wms/basicDataManage/documentSetting/businesstype/index.vue
  71. 8
      src/views/wms/basicDataManage/documentSetting/documentsetting/index.vue
  72. 8
      src/views/wms/basicDataManage/documentSetting/jobsetting/index.vue
  73. 8
      src/views/wms/basicDataManage/documentSetting/plansetting/index.vue
  74. 8
      src/views/wms/basicDataManage/documentSetting/recordsetting/index.vue
  75. 8
      src/views/wms/basicDataManage/documentSetting/requestsetting/index.vue
  76. 8
      src/views/wms/basicDataManage/documentSetting/switch/index.vue
  77. 8
      src/views/wms/basicDataManage/documentSetting/transactiontype/index.vue
  78. 8
      src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue
  79. 8
      src/views/wms/basicDataManage/factoryModeling/dock/index.vue
  80. 8
      src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue
  81. 8
      src/views/wms/basicDataManage/factoryModeling/location/index.vue
  82. 8
      src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue
  83. 8
      src/views/wms/basicDataManage/factoryModeling/process/index.vue
  84. 8
      src/views/wms/basicDataManage/factoryModeling/productionline/index.vue
  85. 8
      src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue
  86. 8
      src/views/wms/basicDataManage/factoryModeling/workshop/index.vue
  87. 8
      src/views/wms/basicDataManage/factoryModeling/workstation/index.vue
  88. 8
      src/views/wms/basicDataManage/itemManage/bom/index.vue
  89. 8
      src/views/wms/basicDataManage/itemManage/itemarea/index.vue
  90. 7
      src/views/wms/basicDataManage/itemManage/itembasic/index.vue
  91. 8
      src/views/wms/basicDataManage/itemManage/itempackage/index.vue
  92. 8
      src/views/wms/basicDataManage/itemManage/itemwarehouse/index.vue
  93. 8
      src/views/wms/basicDataManage/itemManage/packageunit/index.vue
  94. 8
      src/views/wms/basicDataManage/itemManage/productionitemcodeSpareitemcode/index.vue
  95. 7
      src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue
  96. 8
      src/views/wms/basicDataManage/itemManage/relegate/relegateRecord/index.vue
  97. 8
      src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue
  98. 8
      src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue
  99. 8
      src/views/wms/basicDataManage/labelManage/barbasic/index.vue
  100. 8
      src/views/wms/basicDataManage/labelManage/barcode/index.vue

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

@ -66,7 +66,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '../components/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'AbilityInfo' })
const message = useMessage() //
@ -206,18 +207,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await AbilityInfoApi.exportAbilityInfo(tableObject.params)
download.excel(data, '能力矩阵信息.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

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

@ -66,7 +66,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '../components/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'HrPersonAbility' })
const message = useMessage() //
@ -218,18 +219,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await HrPersonAbilityApi.exportHrPersonAbility(tableObject.params)
download.excel(data, '人员能力矩阵配置.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

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

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

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

@ -82,7 +82,8 @@ import * as ItemRequestDetailApi from '@/api/mes/itemRequestDetail'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '../components/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'MesItemRequestMain' })
const message = useMessage() //
@ -213,18 +214,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ItemRequestMainApi.exportItemRequestMain(tableObject.params)
download.excel(data, '叫料申请单主.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

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

@ -65,7 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '../components/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Opersteps' })
const message = useMessage() //
@ -205,18 +206,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await OperstepsApi.exportOpersteps(tableObject.params)
download.excel(data, 'MES操作步骤信息.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

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

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

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

@ -84,7 +84,8 @@ import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import orderDetail from './components/orderDetail.vue'
import scheduleDetail from './components/schedule.vue'
import scheduleDetailR from './components/scheduleDetail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'MesOrderDay' })
@ -323,18 +324,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await OrderDayApi.exportOrderDay(tableObject.params)
download.excel(data, '生产日计划.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}
const stopPlan = async (id) => {

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

@ -110,7 +110,8 @@ import {
MesOrderMonthMainVO,
MesOrderMonthSubVO
} from "@/api/mes/ordermonthplan";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'MesOrderMonthMain' })
const message = useMessage() //
@ -243,18 +244,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await MesOrderMonthApi.exportMesOrderMonthMain(tableObject.params)
download.excel(data, '订单计划月主.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

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

@ -65,7 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '../components/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Pattern' })
const message = useMessage() //
@ -205,18 +206,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await PatternApi.exportPattern(tableObject.params)
download.excel(data, '模具基本信息.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

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

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

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

@ -95,7 +95,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from './components/Detail.vue'
import {goalParams} from "@/api/mes/process";
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Process' })
const message = useMessage() //
@ -315,18 +316,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ProcessApi.exportProcess(tableObject.params)
download.excel(data, '工序.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

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

@ -66,7 +66,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
// import Detail from '@/components/Detail/src/Detail.vue'
import ProcessRouteConfig from './components/configDialog.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Processroute' })
@ -233,18 +234,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ProcessrouteApi.exportProcessroute(tableObject.params)
download.excel(data, '工艺路线定义.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}
/** 路线配置操作 */

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

@ -66,7 +66,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '../components/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'MesProductBackline' })
const message = useMessage() //
@ -212,18 +213,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ProductBacklineApi.exportProductBackline(tableObject.params)
download.excel(data, '产品返线登记.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

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

@ -66,7 +66,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '../components/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'MesProductOffline' })
const message = useMessage() //
@ -212,18 +213,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ProductOfflineApi.exportProductOffline(tableObject.params)
download.excel(data, '产品离线登记记录.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

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

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

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

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

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

@ -79,7 +79,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as QualityformDetailApi from '@/api/mes/qualityformdetail'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import Detail from '../components/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'QmsQualityform' })
const message = useMessage() //
@ -242,18 +243,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await QualityformApi.exportQualityform(tableObject.params)
download.excel(data, '质检表单.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

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

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

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

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

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

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

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

@ -66,7 +66,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '../components/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'MesReworkBatch' })
const message = useMessage() //
@ -271,18 +272,17 @@ const handleFinish = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ReworkBatchApi.exportReworkBatch(tableObject.params)
download.excel(data, '返工返修登记(批量).xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

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

@ -66,7 +66,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '../components/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'MesReworkSingle' })
const message = useMessage() //
@ -271,18 +272,17 @@ const handleFinish = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ReworkSingleApi.exportReworkSingle(tableObject.params)
download.excel(data, '返工返修登记(单件)数据.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

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

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

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

@ -87,7 +87,8 @@ import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from './components/Detail.vue'
import ReportAll from './components/reportAll.vue'
import Finish from './components/finish.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'MesWorkScheduling' })
@ -290,18 +291,17 @@ const changeBillStatus=async(row,status)=>{
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await WorkSchedulingApi.exportWorkScheduling(tableObject.params)
download.excel(data, '生产任务排产.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

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

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

8
src/views/qms/aql/index.vue

@ -80,7 +80,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Aql' })
const message = useMessage() //
@ -261,19 +262,18 @@ const handleDisable = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await AqlApi.exportAql(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/qms/counter/index.vue

@ -76,7 +76,8 @@ import { formatDate } from '@/utils/formatTime'
// import TableHead from '@/components/TableHead/src/TableHead.vue'
// import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
// import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Counter' })
const message = useMessage() //
@ -229,19 +230,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await CounterApi.exportCounter(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/qms/dynamicRule/index.vue

@ -113,7 +113,8 @@ import { formatDate } from '@/utils/formatTime'
// import TableHead from '@/components/TableHead/src/TableHead.vue'
// import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
// import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'DynamicRule' })
const message = useMessage() //
@ -307,19 +308,18 @@ const handleDisable = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await DynamicRuleApi.exportDynamicRule(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/qms/inspectionJob/index.vue

@ -124,7 +124,8 @@ import Detail from './detail.vue'
import { getReportUrl } from '@/utils/systemParam'
import { useUserStore } from '@/store/modules/user'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
const message = useMessage() //
const { t } = useI18n() //
@ -414,19 +415,18 @@ const handleAbandon = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await InspectionJobMainApi.exportInspectionJobMain(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/qms/inspectionMethod/index.vue

@ -90,7 +90,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'InspectionMethod' })
const message = useMessage() //
@ -294,19 +295,18 @@ const handleDisable = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await InspectionMethodApi.exportInspectionMethod(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/qms/inspectionQ1/index.vue

@ -85,6 +85,8 @@ import * as CustomeritemApi from '@/api/wms/customeritem'
import * as CustomerApi from '@/api/wms/customer'
import { useUserStore } from '@/store/modules/user'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
const userStore = useUserStore()
defineOptions({ name: 'InspectionQ1' })
@ -364,19 +366,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await Q1Api.exportQ1(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/qms/inspectionQ2/index.vue

@ -85,6 +85,8 @@ import * as SupplierApi from '@/api/wms/supplier'
import * as ItembasicApi from '@/api/wms/itembasic'
import { useUserStore } from '@/store/modules/user'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
const userStore = useUserStore()
defineOptions({ name: 'InspectionQ2' })
@ -466,19 +468,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await Q2Api.exportQ2(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/qms/inspectionQ3/index.vue

@ -110,6 +110,8 @@ import * as StdcostpriceApi from '@/api/wms/stdcostprice'
import { formatDate } from '@/utils/formatTime'
import { async } from '@antv/x6/lib/registry/marker/async'
import { useUserStore } from '@/store/modules/user'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
const userStore = useUserStore()
//
@ -358,19 +360,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await InspectionQ3MainApi.exportInspectionQ3Main(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/qms/inspectionRecord/index.vue

@ -138,7 +138,8 @@ import {
} from '../inspectionJob/inspectionJobMain.data'
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'inspectionRecordMain' })
@ -393,19 +394,18 @@ const execute = async (type: string, row?: number) => {
basicFormRef.value.open(type, row)
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await InspectionRecordMainApi.exportInspectionRecordMain(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

14
src/views/qms/inspectionRecordFirst/index.vue

@ -80,7 +80,8 @@ import { InspectionTemplateMain,InspectionTemplateProcess,InspectionTemplateFeat
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'InspectionRecordMain' })
@ -224,19 +225,18 @@ const checkQualityReport = async (row) => {
/** 列表导出按钮操作 */
const exportLoading = ref(false) //
const handleMainExport = async (row: any) => {
try {
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
tableObject.params.number = row.number
const excelTitle = ref(route.meta.title)
const data = await InspectionRecordMainApi.exportInspectionRecordMain(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}
@ -247,13 +247,13 @@ const handleMainExport = async (row: any) => {
//
await message.exportConfirm()
//
exportLoading.value = true
const excelTitle = ref(route.meta.title)
loadStart()
const excelTitle = ref(route.meta.title)
const data = await InspectionRecordMainApi.exportFirstInspectionRecordMain(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/qms/inspectionRequest/index.vue

@ -116,7 +116,8 @@ import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import { formatDate } from '@/utils/formatTime'
import { getReportUrl } from '@/utils/systemParam'
// import { InspectionJobPackage} from '../inspectionJob/inspectionJobMain.data'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'inspectionMain' })
const message = useMessage() //
@ -435,19 +436,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await InspectionMainApi.exportInspectionMain(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/qms/inspectionScheme/index.vue

@ -84,7 +84,8 @@ import * as InspectionSchemeApi from '@/api/qms/inspectionScheme'
import ImportForm from '../../../components/ImportForm/src/ImportForm.vue'
import * as SampleCodeApi from '@/api/qms/sampleCode'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'InspectionScheme' })
const message = useMessage() //
@ -280,19 +281,18 @@ const handleDisable = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await InspectionSchemeApi.exportInspectionScheme(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/qms/inspectionStage/index.vue

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

8
src/views/qms/inspectionTemplate/index.vue

@ -86,7 +86,8 @@ import Detail from '@/components/Detail/src/Detail.vue'
import AddForm from './addForm.vue'
import * as InspectionProcessPageApi from '@/api/qms/inspectionTemplate'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'AgvLocationrelation' })
const message = useMessage() //
@ -150,19 +151,18 @@ const buttonBaseClick = (val, item) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await InspectionProcessPageApi.exportInspectionTemplate(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/qms/sampleCode/index.vue

@ -80,7 +80,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SampleCode' })
const message = useMessage() //
@ -273,19 +274,18 @@ const handleDisable = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await SampleCodeApi.exportSampleCode(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/qms/samplingProcess/index.vue

@ -84,7 +84,8 @@ import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { validatePercent, validateInteger, validateTwoNum } from '@/utils/validator'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SamplingProcess' })
const message = useMessage() //
@ -264,19 +265,18 @@ const handleDisable = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await SamplingProcessApi.exportSamplingProcess(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/qms/samplingScheme/index.vue

@ -79,7 +79,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SamplingScheme' })
const message = useMessage() //
@ -262,19 +263,18 @@ const handleDisable = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await SamplingSchemeApi.exportSamplingScheme(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/qms/selectedProject/index.vue

@ -74,7 +74,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
// import TableHead from '@/components/TableHead/src/TableHead.vue'
// import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
// import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SelectedProject' })
const message = useMessage() //
@ -219,18 +220,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await SelectedProjectApi.exportSelectedProject(tableObject.params)
download.excel(data, '选定集项目.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/qms/selectedSet/index.vue

@ -116,7 +116,8 @@ import { formatDate } from '@/utils/formatTime'
// import TableHead from '@/components/TableHead/src/TableHead.vue'
// import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
// import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SelectedSet' })
const message = useMessage() //
@ -310,19 +311,18 @@ const handleDisable = async (id: number) => {
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await SelectedSetApi.exportSelectedSet(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/report/printBusinesstypeTemplate/index.vue

@ -65,7 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'PrintBusinesstypeTemplate' })
const message = useMessage() //
@ -196,18 +197,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await PrintBusinesstypeTemplateApi.exportPrintBusinesstypeTemplate(tableObject.params)
download.excel(data, '打印服务业务类型和打印模板关系.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/report/printClientPrinter/index.vue

@ -65,7 +65,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'PrintClientPrinter' })
const message = useMessage() //
@ -198,18 +199,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await PrintClientPrinterApi.exportPrintClientPrinter(tableObject.params)
download.excel(data, '打印服务客户端与打印机名称关系.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/system/dict/data/index.vue

@ -122,7 +122,8 @@ import download from '@/utils/download'
import * as DictDataApi from '@/api/system/dict/dict.data'
import * as DictTypeApi from '@/api/system/dict/dict.type'
import DictDataForm from './DictDataForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SystemDictData' })
const message = useMessage() //
@ -192,12 +193,12 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await DictDataApi.exportDictData(queryParams)
download.excel(data, '字典数据.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/system/dict/index.vue

@ -101,7 +101,8 @@ import { dateFormatter } from '@/utils/formatTime'
import * as DictTypeApi from '@/api/system/dict/dict.type'
import DictTypeForm from './DictTypeForm.vue'
import download from '@/utils/download'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SystemDictType' })
const message = useMessage() //
@ -170,12 +171,12 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await DictTypeApi.exportDictType(queryParams)
download.excel(data, '字典类型.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/system/errorCode/index.vue

@ -86,7 +86,8 @@ import { dateFormatter } from '@/utils/formatTime'
import download from '@/utils/download'
import * as ErrorCodeApi from '@/api/system/errorCode'
import ErrorCodeForm from './ErrorCodeForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SystemErrorCode' })
const message = useMessage() //
@ -155,12 +156,12 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await ErrorCodeApi.excelErrorCode(queryParams)
download.excel(data, '错误码.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/system/loginlog/index.vue

@ -70,7 +70,8 @@ import { dateFormatter } from '@/utils/formatTime'
import download from '@/utils/download'
import * as LoginLogApi from '@/api/system/loginLog'
import LoginLogDetail from './LoginLogDetail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SystemLoginLog' })
const message = useMessage() //
@ -124,12 +125,12 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await LoginLogApi.exportLoginLog(queryParams)
download.excel(data, '登录日志.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/system/messageSet/index.vue

@ -68,7 +68,8 @@ import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import * as TableActionRelApi from '@/api/system/tableActionRel'
import { validateCode } from '@/utils/validator'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'MessageSet' })
const message = useMessage() //
@ -212,12 +213,12 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await MessageSetApi.exportMessageSet(tableObject.params)
download.excel(data, '消息设置.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/system/operatelog/index.vue

@ -87,7 +87,8 @@ import { dateFormatter } from '@/utils/formatTime'
import download from '@/utils/download'
import * as OperateLogApi from '@/api/system/operatelog'
import OperateLogDetail from './OperateLogDetail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SystemOperateLog' })
const message = useMessage() //
@ -143,12 +144,12 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await OperateLogApi.exportOperateLog(queryParams)
download.excel(data, '操作日志.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/system/post/index.vue

@ -73,7 +73,8 @@ import { dateFormatter } from '@/utils/formatTime'
import download from '@/utils/download'
import * as PostApi from '@/api/system/post'
import PostForm from './PostForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SystemPost' })
const message = useMessage() //
@ -141,12 +142,12 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await PostApi.exportPost(queryParams)
download.excel(data, '岗位列表.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/system/role/index.vue

@ -167,7 +167,8 @@ import * as RoleApi from '@/api/system/role'
import RoleForm from './RoleForm.vue'
import RoleAssignMenuForm from './RoleAssignMenuForm.vue'
import RoleDataPermissionForm from './RoleDataPermissionForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SystemRole' })
const message = useMessage() //
@ -248,12 +249,12 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await RoleApi.exportRole(queryParams)
download.excel(data, '角色列表.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/system/sensitiveWord/index.vue

@ -97,7 +97,8 @@ import download from '@/utils/download'
import * as SensitiveWordApi from '@/api/system/sensitiveWord'
import SensitiveWordForm from './SensitiveWordForm.vue'
import SensitiveWordTestForm from './SensitiveWordTestForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SystemSensitiveWord' })
const message = useMessage() //
@ -173,12 +174,12 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await SensitiveWordApi.exportSensitiveWord(queryParams)
download.excel(data, '敏感词.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/system/serialNumber/index.vue

@ -100,7 +100,8 @@ import download from '@/utils/download'
import * as SerialNumberApi from '@/api/system/serialNumber'
import SerialNumberForm from './SerialNumberForm.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
const route = useRoute() //
defineOptions({ name: 'SerialNumber' })
@ -169,13 +170,13 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await SerialNumberApi.exportSerialNumber(queryParams)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/system/sms/log/index.vue

@ -116,7 +116,8 @@ import download from '@/utils/download'
import * as SmsChannelApi from '@/api/system/sms/smsChannel'
import * as SmsLogApi from '@/api/system/sms/smsLog'
import SmsLogDetail from './SmsLogDetail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SystemSmsLog' })
const message = useMessage() //
@ -169,12 +170,12 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await SmsLogApi.exportSmsLog(queryParams)
download.excel(data, '短信日志.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/system/sms/template/index.vue

@ -116,7 +116,8 @@ import * as SmsChannelApi from '@/api/system/sms/smsChannel'
import download from '@/utils/download'
import SmsTemplateForm from './SmsTemplateForm.vue'
import SmsTemplateSendForm from './SmsTemplateSendForm.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SystemSmsTemplate' })
const message = useMessage() //
@ -195,12 +196,12 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await SmsTemplateApi.exportSmsTemplate(queryParams)
download.excel(data, '短信模板.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/system/tableActionRel/index.vue

@ -67,6 +67,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { getStrDictOptions } from '@/utils/dict'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'TableActionRel' })
const message = useMessage() //
@ -202,18 +204,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await TableActionRelApi.exportTableActionRel(tableObject.params)
download.excel(data, '表名动作关系.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

6
src/views/system/tenant/index.vue

@ -105,6 +105,8 @@ import * as TenantApi from '@/api/system/tenant'
import * as TenantPackageApi from '@/api/system/tenantPackage'
import TenantForm from './TenantForm.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
const route = useRoute() //
defineOptions({ name: 'SystemTenant' })
@ -177,13 +179,13 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await TenantApi.exportTenant(queryParams)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/system/user/index.vue

@ -113,7 +113,8 @@ import UserImportForm from './UserImportForm.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import UserAssignRoleForm from './UserAssignRoleForm.vue'
import DeptTree from './DeptTree.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SystemUser' })
const message = useMessage() //
@ -204,12 +205,12 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await UserApi.exportUser(queryParams)
download.excel(data, '用户数据.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/agvManage/agvLocationrelation/index.vue

@ -70,7 +70,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'AgvLocationrelation' })
const message = useMessage() //
@ -236,19 +237,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await AgvLocationrelationApi.exportAgvLocationrelation(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/agvManage/interfaceInfo/index.vue

@ -76,7 +76,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'InterfaceInfo' })
@ -208,18 +209,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await InterfaceInfoApi.exportInterfaceInfo(tableObject.params)
download.excel(data, '接口调用信息.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/customerManage/customer/index.vue

@ -68,7 +68,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Customer' })
const message = useMessage() //
@ -225,20 +226,19 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await CustomerApi.exportCustomer(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/customerManage/customerDeliveryForecast/index.vue

@ -66,7 +66,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'CustomerDeliveryForecast' })
const message = useMessage() //
@ -214,19 +215,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await CustomerDeliveryForecastApi.exportCustomerDeliveryForecast(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/customerManage/customerdock/index.vue

@ -67,7 +67,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Customerdock' })
const message = useMessage() //
@ -240,19 +241,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await CustomerdockApi.exportCustomerdock(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/customerManage/customeritem/index.vue

@ -72,7 +72,8 @@ import Detail from '@/components/Detail/src/Detail.vue'
import * as ItembasicApi from '@/api/wms/itembasic'
import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Customeritem' })
const message = useMessage() //
@ -264,19 +265,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await CustomeritemApi.exportCustomeritem(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/customerManage/project/index.vue

@ -67,7 +67,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Project' })
const message = useMessage() //
@ -234,19 +235,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await ProjectApi.exportProject(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/customerManage/saleprice/index.vue

@ -67,7 +67,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Saleprice' })
const message = useMessage() //
@ -238,19 +239,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await SalepriceApi.exportSaleprice(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/documentSetting/businesstype/index.vue

@ -79,7 +79,8 @@ import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'Businesstype' })
@ -358,19 +359,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await BusinesstypeApi.exportBusinesstype(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/documentSetting/documentsetting/index.vue

@ -66,7 +66,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Documentsetting' })
const message = useMessage() //
@ -206,19 +207,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await DocumentsettingApi.exportDocumentsetting(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/documentSetting/jobsetting/index.vue

@ -66,7 +66,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Jobsetting' })
const message = useMessage() //
@ -206,19 +207,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await JobsettingApi.exportJobsetting(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/documentSetting/plansetting/index.vue

@ -66,7 +66,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Plansetting' })
const message = useMessage() //
@ -207,19 +208,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await PlansettingApi.exportPlansetting(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/documentSetting/recordsetting/index.vue

@ -66,7 +66,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Recordsetting' })
const message = useMessage() //
@ -207,19 +208,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await RecordsettingApi.exportRecordsetting(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/documentSetting/requestsetting/index.vue

@ -66,7 +66,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Requestsetting' })
const message = useMessage() //
@ -207,19 +208,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await RequestsettingApi.exportRequestsetting(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/documentSetting/switch/index.vue

@ -66,7 +66,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Switch' })
const message = useMessage() //
@ -182,19 +183,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await SwitchApi.exportSwitch(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/documentSetting/transactiontype/index.vue

@ -66,7 +66,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Transactiontype' })
const message = useMessage() //
@ -208,19 +209,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await TransactiontypeApi.exportTransactiontype(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue

@ -69,7 +69,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Area' })
const message = useMessage() //
@ -240,19 +241,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await AreaApi.exportArea(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/factoryModeling/dock/index.vue

@ -71,7 +71,8 @@ import Detail from '@/components/Detail/src/Detail.vue'
import * as LocationApi from '@/api/wms/location'
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Dock' })
const message = useMessage() //
@ -254,19 +255,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await DockApi.exportDock(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue

@ -60,7 +60,8 @@ import { Enterprise,EnterpriseRules } from './enterprise.data'
import * as EnterpriseApi from '@/api/wms/enterprise'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Enterprise' })
const message = useMessage() //
@ -222,19 +223,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await EnterpriseApi.exportEnterprise(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/factoryModeling/location/index.vue

@ -67,7 +67,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'Location' })
@ -258,19 +259,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await LocationApi.exportLocation(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue

@ -67,7 +67,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'Locationgroup' })
@ -239,19 +240,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await LocationgroupApi.exportLocationgroup(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/factoryModeling/process/index.vue

@ -67,7 +67,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Process' })
const message = useMessage() //
@ -246,19 +247,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await ProcessApi.exportProcess(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/factoryModeling/productionline/index.vue

@ -67,7 +67,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
// 线
defineOptions({ name: 'Productionline' })
@ -239,19 +240,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await ProductionlineApi.exportProductionline(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue

@ -66,7 +66,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Warehouse' })
const message = useMessage() //
@ -219,19 +220,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await WarehouseApi.exportWarehouse(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/factoryModeling/workshop/index.vue

@ -66,7 +66,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Workshop' })
const message = useMessage() //
@ -221,19 +222,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await WorkshopApi.exportWorkshop(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/factoryModeling/workstation/index.vue

@ -67,7 +67,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'Workstation' })
@ -248,19 +249,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await WorkstationApi.exportWorkstation(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/itemManage/bom/index.vue

@ -69,7 +69,8 @@ import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import * as ProcessApi from "@/api/wms/process";
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
// bom
defineOptions({ name: 'Bom' })
@ -251,19 +252,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await BomApi.exportBom(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/itemManage/itemarea/index.vue

@ -98,7 +98,8 @@ import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
  import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
  import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
//
//
defineOptions({ name: 'Itemarea' })
@ -328,19 +329,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await ItemareaApi.exportItemarea(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/wms/basicDataManage/itemManage/itembasic/index.vue

@ -89,7 +89,8 @@ import * as ExpectinApi from '@/api/wms/expectin'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'Itembasic' })
@ -285,13 +286,13 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await ItembasicApi.exportItembasic(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/itemManage/itempackage/index.vue

@ -82,7 +82,8 @@ import { Itembasic } from '../itembasic/itembasic.data'
import * as PackageunitApi from '@/api/wms/packageunit'
import { Packageunit } from '../packageunit/packageunit.data'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Itempackaging' })
const message = useMessage() //
@ -318,19 +319,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await ItempackagingApi.exportItempackaging(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/itemManage/itemwarehouse/index.vue

@ -68,7 +68,8 @@ import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import * as WarehouseApi from "@/api/wms/warehouse";
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Itemwarehouse' })
const message = useMessage() //
@ -222,19 +223,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await ItemwarehouseApi.exportItemwarehouse(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/itemManage/packageunit/index.vue

@ -67,7 +67,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Packageunit' })
const message = useMessage() //
@ -263,19 +264,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await PackageunitApi.exportPackageunit(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/itemManage/productionitemcodeSpareitemcode/index.vue

@ -66,7 +66,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ProductionitemcodeSpareitemcode' })
const message = useMessage() //
@ -232,19 +233,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await ProductionitemcodeSpareitemcodeApi.exportProductionitemcodeSpareitemcode(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

7
src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue

@ -67,7 +67,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
//线
defineOptions({ name: 'Productionlineitem' })
@ -244,13 +245,13 @@ const handleExport = async () => {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await ProductionlineitemApi.exportProductionlineitem(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/itemManage/relegate/relegateRecord/index.vue

@ -82,7 +82,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'RelegateRecordMain' })
const message = useMessage() //
@ -227,19 +228,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await RelegateRecordMainApi.exportRelegateRecordMain(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue

@ -100,7 +100,8 @@ import { getAccessToken } from '@/utils/auth'
import { getJmreportBaseUrl } from '@/utils/systemParam'
import * as ProductionlineitemApi from '@/api/wms/productionlineitem'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'RelegateRequestMain' })
const message = useMessage() //
@ -708,19 +709,18 @@ const handleDeleteTable = (item, index) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await RelegateRequestMainApi.exportRelegateRequestMain(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue

@ -68,7 +68,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'Stdcostprice' })
@ -231,19 +232,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await StdcostpriceApi.exportStdcostprice(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/labelManage/barbasic/index.vue

@ -66,7 +66,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Barbasic' })
const message = useMessage() //
@ -191,18 +192,17 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const data = await BarbasicApi.exportBarbasic(tableObject.params)
download.excel(data, '条码实体基类.xlsx')
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

8
src/views/wms/basicDataManage/labelManage/barcode/index.vue

@ -66,7 +66,8 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'Barcode' })
const message = useMessage() //
@ -211,19 +212,18 @@ const handleDelete = async (id: number) => {
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
loadStart()
const excelTitle = ref(route.meta.title)
const data = await BarcodeApi.exportBarcode(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
loadDone()
}
}

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

Loading…
Cancel
Save