From b7ffa7395cddfeb10f88d70a81567371f62021c3 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期日, 25 十月 2026 16:30:17 +0800
Subject: [PATCH] feat(router): 排除AI模块页面并添加访问权限控制
---
src/views/crm/saleQuotation/index.vue | 33 ---------------------------------
1 files changed, 0 insertions(+), 33 deletions(-)
diff --git a/src/views/crm/saleQuotation/index.vue b/src/views/crm/saleQuotation/index.vue
index bebca59..7d65b7c 100644
--- a/src/views/crm/saleQuotation/index.vue
+++ b/src/views/crm/saleQuotation/index.vue
@@ -16,15 +16,9 @@
getSaleQuotationPage,
} from '#/api/crm/saleQuotation';
import { $t } from '#/locales';
-import { isAiFeatureEnabled } from '#/utils/features';
-
-import type { CrmSaleQuotationAiApi } from '#/api/crm/saleQuotation/ai';
-
-import { nextTick, ref } from 'vue';
import { QUOTATION_STATUS, useGridColumns, useGridFormSchema } from './data';
import Form from './modules/form.vue';
-import OcrUpload from './modules/ocr-upload.vue';
const { push } = useRouter();
@@ -32,8 +26,6 @@
connectedComponent: Form,
destroyOnClose: true,
});
-
-const ocrUploadRef = ref<InstanceType<typeof OcrUpload>>();
/** 鍒锋柊琛ㄦ牸 */
function handleRefresh() {
@@ -45,18 +37,6 @@
formModalApi.setData(null).open();
}
-/** AI 璇嗗埆褰曞叆 */
-function handleOcrCreate() {
- ocrUploadRef.value?.open();
-}
-
-/** OCR 璇嗗埆缁撴灉纭 */
-function handleOcrSuccess(data: CrmSaleQuotationAiApi.OcrResultVO) {
- nextTick(() => {
- formModalApi.setData({ ocrData: data } as any).open();
- });
-}
-
const toolbarActions: ActionItem[] = [
{
label: $t('ui.actionTitle.create', ['鎶ヤ环鍗�']),
@@ -66,14 +46,6 @@
onClick: handleCreate,
},
];
-if (isAiFeatureEnabled) {
- toolbarActions.push({
- label: 'AI 璇嗗埆褰曞叆',
- type: 'default',
- auth: ['crm:sale-quotation:create'],
- onClick: handleOcrCreate,
- });
-}
/** 缂栬緫鎶ヤ环鍗� */
function handleEdit(row: CrmSaleQuotationApi.SaleQuotation) {
@@ -166,11 +138,6 @@
<template>
<Page auto-content-height>
<FormModal @success="handleRefresh" />
- <OcrUpload
- v-if="isAiFeatureEnabled"
- ref="ocrUploadRef"
- @success="handleOcrSuccess"
- />
<Grid>
<template #toolbar-tools>
<TableAction :actions="toolbarActions" />
--
Gitblit v1.9.3