diff --git a/src/views/mes/capacityReport/index.vue b/src/views/mes/capacityReport/index.vue
index ce7cd84e..26e8de5f 100644
--- a/src/views/mes/capacityReport/index.vue
+++ b/src/views/mes/capacityReport/index.vue
@@ -35,17 +35,6 @@
class="!w-240px"
/>
-
-
-
-
-
-
-
-
- handleDeviceStatusChange(scope.row, val)"
- />
-
-
@@ -135,7 +114,6 @@ const queryParams = reactive({
deviceCode: undefined,
deviceName: undefined,
deviceType: undefined,
- deviceStatus: undefined,
workshop: undefined
})
const queryFormRef = ref()
@@ -148,31 +126,6 @@ const selectedIds = ref([])
const toggleFilters = () => {
showAllFilters.value = !showAllFilters.value
}
-const deviceStatusUpdatingMap = ref>({})
-
-const isDeviceLedgerEnabled = (row: CapacityReportVO) => {
- return Number(row.deviceStatus) === 0
-}
-
-const handleDeviceStatusChange = async (row: CapacityReportVO, value: boolean) => {
- if (!row?.id) return
- const oldValue = Number(row.deviceStatus)
- const nextValue = value ? 0 : 1
- row.deviceStatus = nextValue
- deviceStatusUpdatingMap.value[row.id] = true
- try {
- await DeviceLedgerApi.updateDeviceLedger({
- id: row.id,
- deviceStatus: nextValue
- })
- message.success(t('common.updateSuccess'))
- } catch {
- row.deviceStatus = oldValue
- message.error(t('common.updateFail'))
- } finally {
- deviceStatusUpdatingMap.value[row.id] = false
- }
-}
const getList = async () => {
loading.value = true