This commit is contained in:
zwgczx committed 2026-03-17 16:24:25 +08:00
1 parent 2b18fe9991
commit 69e5f166e1
20 files changed
+70 -65

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ const props = defineProps<{
const STORAGE_KEY = computed(() => `htExtraFee-${props.contractId}-additional-work`)
const additionalWorkNames = computed(() =>
additionalWorkList.map(item => String(item?.name || '').trim()).filter(Boolean)
additionalWorkList.map(item => ({id:item?.id,name:item?.name}))
)
</script>
+1 -1
View File
@@ -10,7 +10,7 @@ const props = defineProps<{
const STORAGE_KEY = computed(() => `htExtraFee-${props.contractId}-reserve`)
const reserveFeeNames = computed(() =>
reserveList.map(item => String(item?.name || '').trim()).filter(Boolean)
reserveList.map(item => ({name:item.name,id:item.id}))
)
</script>
+3 -3
View File
@@ -3,7 +3,7 @@ import { computed, defineComponent, h, nextTick, onActivated, onBeforeUnmount, o
import type { ComponentPublicInstance, PropType } from 'vue'
import { AgGridVue } from 'ag-grid-vue3'
import type { ColDef, GridOptions, ICellRendererParams } from 'ag-grid-community'
import { myTheme, gridOptions } from '@/lib/diyAgGridOptions'
import { myTheme, gridOptions, agGridWrapClass, agGridStyle } from '@/lib/diyAgGridOptions'
import { AG_GRID_LOCALE_CN } from '@ag-grid-community/locale'
import { addNumbers } from '@/lib/decimal'
import { parseNumberOrNull } from '@/lib/number'
@@ -1150,8 +1150,8 @@ onBeforeUnmount(() => {
<div class="text-[11px] text-muted-foreground leading-none">按服务词典生成</div>
</div>
<div class="ag-theme-quartz w-full flex-1 min-h-0">
<AgGridVue :style="{ height: '100%' }" :rowData="detailRows" :columnDefs="columnDefs"
<div :class="agGridWrapClass">
<AgGridVue :style="agGridStyle" :rowData="detailRows" :columnDefs="columnDefs"
:gridOptions="detailGridOptions" :theme="myTheme" @cell-value-changed="handleCellValueChanged"
:enableClipboard="true" :localeText="AG_GRID_LOCALE_CN" :tooltipShowDelay="500" :headerHeight="30"
:undoRedoCellEditing="true" :undoRedoCellEditingLimit="20" />