This commit is contained in:
2026-03-25 17:18:35 +08:00
parent 9a6462f22a
commit 1d016f8c51
48 changed files with 2822 additions and 986 deletions
+3 -1
View File
@@ -1,5 +1,6 @@
<script setup lang="ts">
import { computed, onActivated, onMounted, ref } from 'vue'
import { useI18n } from 'vue-i18n'
import { getMajorDictEntries, isMajorIdInIndustryScope } from '@/sql'
import XmFactorGrid from '@/features/shared/components/XmFactorGrid.vue'
import { useKvStore } from '@/pinia/kv'
@@ -25,6 +26,7 @@ const props = defineProps<{
const PROJECT_INFO_KEY = computed(() => props.projectInfoKey || 'xm-base-info-v1')
const projectIndustry = ref('')
const kvStore = useKvStore()
const { t } = useI18n()
const loadProjectIndustry = async () => {
try {
@@ -57,7 +59,7 @@ onActivated(() => {
<template>
<XmFactorGrid
title="工程专业系数明细"
:title="t('htFactors.majorTitle')"
:storage-key="`ht-major-factor-v1-${props.contractId}`"
:parent-storage-key="props.parentStorageKey || 'xm-major-factor-v1'"
:dict="filteredMajorDict"