From 5fe921e278c0c5edacfdc8eb7b4a144512648f35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B7=BB=E7=A0=96-JAVA=5CAdministrator?= <591141169@qq.com> Date: Fri, 15 Mar 2024 17:34:06 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/eam/basic/item/index.ts | 7 ++++++- src/views/eam/basic/item/index.vue | 2 +- src/views/eam/item/itemOrderMain/index.vue | 4 +++- 3 files changed, 10 insertions(+), 3 deletions(-) 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"/>