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/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 {
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 @@
-
+
+
+ 退役
+
+