diff --git a/src/api/eam/item/replaceItemDes/index.ts b/src/api/eam/item/replaceItemDes/index.ts index ee980d9..aa04153 100644 --- a/src/api/eam/item/replaceItemDes/index.ts +++ b/src/api/eam/item/replaceItemDes/index.ts @@ -41,8 +41,8 @@ export const updateReplaceItemDes = async (data: AttachmentFileVO) => { } // 删除备件台账 -export const deleteReplaceItemDes = async (id: number) => { - return await request.delete({ url: `/eam/attachment-file/delete?id=` + id }) +export const deleteReplaceItemDes = async (number: number) => { + return await request.delete({ url: `/eam/attachment-file/delete?number=` + number }) } // 导出备件台账 Excel diff --git a/src/views/eam/item/countadjustPlan/countadjustPlan.data.ts b/src/views/eam/item/countadjustPlan/countadjustPlan.data.ts index 0ce8ff5..5b47d4a 100644 --- a/src/views/eam/item/countadjustPlan/countadjustPlan.data.ts +++ b/src/views/eam/item/countadjustPlan/countadjustPlan.data.ts @@ -2,6 +2,7 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { LocationArea, LocationAreaRules } from '../../basic/locationArea/locationArea.data' import * as LocationAreaApi from '@/api/eam/basic/locationArea' import { dateFormatter } from '@/utils/formatTime' +import { fa } from 'element-plus/es/locale' // 表单校验 export const CountadjustPlanRules = reactive({ @@ -98,7 +99,8 @@ export const CountadjustPlan = useCrudSchemas(reactive([ label: '创建者', field: 'creator', sort: 'custom', - isSearch: false + isSearch: false, + isForm: false, }, { label: '创建时间', diff --git a/src/views/eam/item/replaceItemDes/index.vue b/src/views/eam/item/replaceItemDes/index.vue index 8563d4b..a89847e 100644 --- a/src/views/eam/item/replaceItemDes/index.vue +++ b/src/views/eam/item/replaceItemDes/index.vue @@ -118,7 +118,7 @@ if (val == 'edit') { // 编辑 openForm('update', row) } else if (val == 'delete') { // 删除 - handleDelete(row.id) + handleDelete(row.number) } }