From 800234bf18a90ea3b92527767f57e59609dae97b Mon Sep 17 00:00:00 2001 From: bb_pan Date: Thu, 11 Dec 2025 11:25:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=BD=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/EquipmentRetireApply/index.js | 8 ++++++++ src/views/EquipmentRetire/index.vue | 23 +++++++++++++---------- src/views/EquipmentRetireApply/detail.vue | 23 +++++++++++++++++++++-- 3 files changed, 42 insertions(+), 12 deletions(-) diff --git a/src/api/EquipmentRetireApply/index.js b/src/api/EquipmentRetireApply/index.js index cd4a60dd..240d3fac 100644 --- a/src/api/EquipmentRetireApply/index.js +++ b/src/api/EquipmentRetireApply/index.js @@ -17,6 +17,14 @@ export const getRetireApplyDetailAPI = (id) => { }) } +// 根据maIds获取设备信息 +export const getDeviceByMaIdsAPI = (maIds) => { + return request({ + url: `/material-mall/deviceRetireApply/getDetail/${maIds}`, + method: 'GET', + }) +} + // 获取在修装备和工具列表(统一接口) export const getScrapItemListAPI = (data) => { return request({ diff --git a/src/views/EquipmentRetire/index.vue b/src/views/EquipmentRetire/index.vue index 8e899e5d..07fee993 100644 --- a/src/views/EquipmentRetire/index.vue +++ b/src/views/EquipmentRetire/index.vue @@ -136,14 +136,11 @@ - + + +
@@ -219,9 +216,15 @@ export default { }, // 退役按钮 - onHandleRetire() { + onHandleRetire(row) { console.log('退役按钮') - this.$router.push('/equipment/equ-retire') + // this.$router.push('/equipment/equ-retire') + this.$router.push({ + path: '/equipment/retire-apply/detail/new', + query: { + maId: row.maId, + } + }) }, // 重置 onHandleReset() { diff --git a/src/views/EquipmentRetireApply/detail.vue b/src/views/EquipmentRetireApply/detail.vue index c373f728..d4fd7def 100644 --- a/src/views/EquipmentRetireApply/detail.vue +++ b/src/views/EquipmentRetireApply/detail.vue @@ -120,7 +120,7 @@