diff --git a/src/api/eam/basic/item/index.ts b/src/api/eam/basic/item/index.ts index 0ab9652..35d3e10 100644 --- a/src/api/eam/basic/item/index.ts +++ b/src/api/eam/basic/item/index.ts @@ -68,13 +68,13 @@ export const getItemList = async (params) => { return await request.get({ url: `/eam/item/getListByNumber`, params }) } -// 删除备件 -export const getaaa = async () => { - return await request.get({ url: `/eam/producePlan/produce`}) -} +// // 删除备件 +// export const getaaa = async () => { +// return await request.get({ url: `/eam/producePlan/produce`}) +// } // 备件不分页 export const getItemNoPage = async (params) => { return await request.get({ url: `/eam/item/noPage`, params }) -} \ No newline at end of file +} diff --git a/src/views/eam/basic/item/index.vue b/src/views/eam/basic/item/index.vue index e4d02e7..a0604b2 100644 --- a/src/views/eam/basic/item/index.vue +++ b/src/views/eam/basic/item/index.vue @@ -239,7 +239,7 @@ // 删除的二次确认 await message.delConfirm() // 发起删除 - await ItemApi.getaaa() + await ItemApi.deleteItem(id) message.success(t('common.delSuccess')) // 刷新列表 await getList()