From 9fd1fa382585d097a1ae5ef3e4e3914c4c409e19 Mon Sep 17 00:00:00 2001 From: FCD <2453864257@qq.com> Date: Thu, 5 Feb 2026 15:37:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E4=BB=B6=E7=B1=BB=E5=9E=8B=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=85=B6=E4=BB=96=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/device/sparePartsLedger/index.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/views/device/sparePartsLedger/index.vue b/src/views/device/sparePartsLedger/index.vue index bad40cf..d8f97eb 100644 --- a/src/views/device/sparePartsLedger/index.vue +++ b/src/views/device/sparePartsLedger/index.vue @@ -743,7 +743,7 @@ import dict from "@/utils/dict"; export default { name: "SparePartsLedger", - dicts: ['safety_stock', 'spare_part_type', 'fastening_sealing_parts','general_pipeline_parts','process_consumables','electric_control','pneumatic_components','hydraulic_components','power_transmission_parts'], + dicts: ['safety_stock', 'spare_part_type', 'fastening_sealing_parts','general_pipeline_parts','process_consumables','electric_control','pneumatic_components','hydraulic_components','power_transmission_parts', 'spare_part_type_other'], data() { return { // 导入数据 @@ -1169,11 +1169,12 @@ export default { this.dict.type.electric_control, this.dict.type.process_consumables, this.dict.type.general_pipeline_parts, - this.dict.type.fastening_sealing_parts + this.dict.type.fastening_sealing_parts, + this.dict.type.spare_part_type_other ], - ([val1, val2, val3, val4, val5, val6, val7,]) => { + ([val1, val2, val3, val4, val5, val6, val7, val8]) => { // 确保两个字典都已加载完成(非undefined) - if (val1 && val2 && val3 && val4 && val5 && val6 && val7) { + if (val1 && val2 && val3 && val4 && val5 && val6 && val7 && val8) { this.categoryList = [ ...val1, ...val2, @@ -1181,7 +1182,8 @@ export default { ...val4, ...val5, ...val6, - ...val7 + ...val7, + ...val8 ] } },