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 ] } },