From 3a4473a3871a2a65808ac1d9297cee700bd59dfe Mon Sep 17 00:00:00 2001 From: bb_pan Date: Fri, 5 Dec 2025 16:39:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../EquipmentEntryApply/equipmentInput/add.vue | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/views/EquipmentEntryApply/equipmentInput/add.vue b/src/views/EquipmentEntryApply/equipmentInput/add.vue index d414f63c..a68bd89b 100644 --- a/src/views/EquipmentEntryApply/equipmentInput/add.vue +++ b/src/views/EquipmentEntryApply/equipmentInput/add.vue @@ -431,11 +431,18 @@ export default { : [] this.form.process = [String(res.data.mainProcessId), String(res.data.subProcessId)].filter(Boolean) console.log('🚀 ~ getInfo ~ this.form.process:', this.form.process) - this.form.category = [ - String(res.data.mainCategoryId), - String(res.data.subCategoryId), - String(res.data.branchId), - ].filter(Boolean) + if (res.data.branchId) { + this.form.category = [ + String(res.data.mainCategoryId), + String(res.data.subCategoryId), + String(res.data.branchId), + ].filter(Boolean) + } else { + this.form.category = [ + String(res.data.mainCategoryId), + String(res.data.subCategoryId), + ].filter(Boolean) + } this.propertyVoList = res.data.propertyVoList || [] console.log('🚀 ~ getInfo ~ this.propertyVoList:', this.propertyVoList)