diff --git a/src/api/eam/basic/item/index.ts b/src/api/eam/basic/item/index.ts index f3fb728..b2d2c77 100644 --- a/src/api/eam/basic/item/index.ts +++ b/src/api/eam/basic/item/index.ts @@ -66,4 +66,9 @@ export const exportItem = async (params) => { // 修改备件 export const getItemList = async (params) => { return await request.get({ url: `/eam/item/getListByNumber`, params }) -} \ No newline at end of file +} + +// 删除备件 +export const getaaa = async () => { + return await request.get({ url: `/eam/producePlan/produce`}) +} diff --git a/src/views/eam/basic/item/index.vue b/src/views/eam/basic/item/index.vue index a0604b2..e4d02e7 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.deleteItem(id) + await ItemApi.getaaa() message.success(t('common.delSuccess')) // 刷新列表 await getList() diff --git a/src/views/eam/item/itemOrderMain/index.vue b/src/views/eam/item/itemOrderMain/index.vue index 574dbdc..3b914e6 100644 --- a/src/views/eam/item/itemOrderMain/index.vue +++ b/src/views/eam/item/itemOrderMain/index.vue @@ -38,7 +38,9 @@ :detailAllSchemas="ItemOrderDetail.allSchemas" :detailAllSchemasRules="ItemOrderDetailRules" :apiCreate="ItemOrderDetailApi.createItemOrderDetail" :apiUpdate="ItemOrderDetailApi.updateItemOrderDetail" :apiPage="ItemOrderDetailApi.getItemOrderDetailPage" :apiDelete="ItemOrderDetailApi.deleteItemOrderDetail" - @searchTableSuccessDetail="searchTableSuccessDetail" /> + @searchTableSuccessDetail="searchTableSuccessDetail" + :isShowAddBtn="false" + :detailButtonIsShow="true"/>