修复重置功能

This commit is contained in:
zwgczx committed 2026-03-19 10:56:48 +08:00
1 parent 303d6d6185
commit 1a0e97011f
7 files changed
+493 -9

No files matched your search

+16 -1
View File
@@ -317,6 +317,21 @@ const reserveFeeView = markRaw(
})
);
const summaryView = markRaw(
defineComponent({
name: 'HtContractSummaryWithProps',
setup() {
const AsyncSummary = defineAsyncComponent({
loader: () => import('@/components/ht/HtContractSummary.vue'),
onError: (err) => {
console.error('加载 HtContractSummary 组件失败:', err)
}
})
return () => h(AsyncSummary, { contractId: props.contractId })
}
})
)
// 4. 给分类数组添加严格类型标注
const xmCategories: XmCategoryItem[] = [
{ key: 'base-info', label: '基础信息', component: htBaseInfoView },
@@ -326,7 +341,7 @@ const xmCategories: XmCategoryItem[] = [
{ key: 'contract', label: '咨询服务', component: zxfwView },
{ key: 'additional-work-fee', label: '附加工作费', component: additionalWorkFeeView },
{ key: 'reserve-fee', label: '预备费', component: reserveFeeView },
{ key: 'all', label: '汇总', component: reserveFeeView },
{ key: 'all', label: '汇总', component: summaryView },
];