calculator2026/src/components/ht/HtAdditionalWorkFee.vue
2026-03-17 16:24:25 +08:00

26 lines
676 B
Vue

<script setup lang="ts">
import { computed } from 'vue'
import HtFeeMethodGrid from '@/components/shared/HtFeeMethodGrid.vue'
import { additionalWorkList } from '@/sql'
const props = defineProps<{
contractId: string
contractName?: string
}>()
const STORAGE_KEY = computed(() => `htExtraFee-${props.contractId}-additional-work`)
const additionalWorkNames = computed(() =>
additionalWorkList.map(item => ({id:item?.id,name:item?.name}))
)
</script>
<template>
<HtFeeMethodGrid
title="附加工作费"
:storageKey="STORAGE_KEY"
:contract-id="props.contractId"
:contract-name="props.contractName"
:fixed-names="additionalWorkNames"
/>
</template>