From 89189acc25c4867b903a7af003a839eed8028dac Mon Sep 17 00:00:00 2001 From: bb_pan Date: Thu, 11 Dec 2025 10:13:44 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=A3=85=E5=A4=87=E5=BD=95=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../equipmentInput/index.vue | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/src/views/EquipmentEntryApply/equipmentInput/index.vue b/src/views/EquipmentEntryApply/equipmentInput/index.vue index 0ef8a3cc..ed6e120a 100644 --- a/src/views/EquipmentEntryApply/equipmentInput/index.vue +++ b/src/views/EquipmentEntryApply/equipmentInput/index.vue @@ -147,6 +147,7 @@ border stripe height="546" + @row-dblclick="handleDblClick" > 编辑 @@ -1355,6 +1356,33 @@ export default { .replace(/\.{2,}/g, '.') // 多个点 -> 单点 .replace(/^(\d+)\.(.*)\./, '$1.$2') // 只允许一个点 }, + async handleDblClick(row, column, event) { + this.$set(row, 'majorList', []) + this.$set(row, 'processList', []) + this.$set(row, 'categoryList', []) + this.$set(row, 'process', [String(row.mainProcessId), String(row.subProcessId)]) + row.branchId + ? this.$set(row, 'category', [String(row.mainCategoryId), String(row.subCategoryId), String(row.branchId)]) + : this.$set(row, 'category', [String(row.mainCategoryId), String(row.subCategoryId)]) + await this.getFirstLevel(row) + await this.majorChange(row.majorId, row) + await this.processChange(row.process, row) + + if (!row.propertyVoList) row.propertyVoList = [] + row.propertyVoList.forEach((item) => { + if (item.inputType == 2) { + item.valueList = this.handleData(item.value) + } + if (item.inputType == 3) { + item.valueList2 = this.handleData(item.value) + this.$set(item, 'propertyValues', item.propertyValue ? item.propertyValue.split(',') : []) + } + }) + + // 双击行进入编辑 + console.log('双击的行数据:', row) + this.$set(row, 'isNew', !row.isNew) + }, submitRow(row) { console.log('🚀 ~ row:', row) try { From 800234bf18a90ea3b92527767f57e59609dae97b Mon Sep 17 00:00:00 2001 From: bb_pan Date: Thu, 11 Dec 2025 11:25:00 +0800 Subject: [PATCH 2/3] =?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 @@ From 26b02b1eadd6042c24aa9b267ef6c9cb38f9460f Mon Sep 17 00:00:00 2001 From: bb_pan Date: Thu, 11 Dec 2025 14:08:42 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/material/ma/type/index.vue | 16 +++++++++++++++- src/views/system/approval/index.vue | 18 ++++++++++++++++-- src/views/system/project/index.vue | 2 +- 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/src/views/material/ma/type/index.vue b/src/views/material/ma/type/index.vue index 2559f5bb..82ae5fba 100644 --- a/src/views/material/ma/type/index.vue +++ b/src/views/material/ma/type/index.vue @@ -97,7 +97,7 @@ - + .el-tree-node__content { background-color: #8decf1; } +.content-box { + border-radius: 8px; + height: calc(100vh - 220px); + display: flex; + flex-direction: column; + overflow: hidden; + + ::v-deep .el-card__body { + display: flex !important; + flex-direction: column !important; + height: 100% !important; + padding: 20px; + } +} diff --git a/src/views/system/approval/index.vue b/src/views/system/approval/index.vue index 0f9362ac..d3004eea 100644 --- a/src/views/system/approval/index.vue +++ b/src/views/system/approval/index.vue @@ -31,7 +31,7 @@ - + 新增流程 @@ -221,9 +221,23 @@ export default { } - diff --git a/src/views/system/project/index.vue b/src/views/system/project/index.vue index 183fb925..7afba592 100644 --- a/src/views/system/project/index.vue +++ b/src/views/system/project/index.vue @@ -96,7 +96,7 @@