From 964cfa12263cf51b2a3d1ef281130d0e808e9078 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期六, 31 十月 2026 19:04:39 +0800
Subject: [PATCH] feat: 完善业务导入及工艺流程界面
---
src/views/crm/saleQuotation/index.vue | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/views/crm/saleQuotation/index.vue b/src/views/crm/saleQuotation/index.vue
index 7d65b7c..0606bbf 100644
--- a/src/views/crm/saleQuotation/index.vue
+++ b/src/views/crm/saleQuotation/index.vue
@@ -14,11 +14,14 @@
convertSaleQuotationToContract,
deleteSaleQuotation,
getSaleQuotationPage,
+ importSaleQuotation,
+ importSaleQuotationTemplate,
} from '#/api/crm/saleQuotation';
import { $t } from '#/locales';
import { QUOTATION_STATUS, useGridColumns, useGridFormSchema } from './data';
import Form from './modules/form.vue';
+import ImportModalComponent from '#/components/import-modal';
const { push } = useRouter();
@@ -26,6 +29,12 @@
connectedComponent: Form,
destroyOnClose: true,
});
+
+const [ImportModal, importModalApi] = useVbenModal({ connectedComponent: ImportModalComponent, destroyOnClose: true });
+
+function handleImport() {
+ importModalApi.setData({ title: '瀵煎叆鎶ヤ环鍗�', fileName: '閿�鍞姤浠峰鍏ユā鏉�.xls', importFn: importSaleQuotation, templateFn: importSaleQuotationTemplate, allowUpdate: false, uploadHint: '璇蜂笅杞芥ā鏉匡紱鍚屼竴瀹㈡埛鍜屾姤浠峰悕绉扮殑澶氳浼氬悎骞朵负涓�寮犳姤浠峰崟锛屼粎鏀寔鏂板銆�' }).open();
+}
/** 鍒锋柊琛ㄦ牸 */
function handleRefresh() {
@@ -38,6 +47,7 @@
}
const toolbarActions: ActionItem[] = [
+ { label: '瀵煎叆鎶ヤ环鍗�', icon: ACTION_ICON.UPLOAD, auth: ['crm:sale-quotation:create'], onClick: handleImport },
{
label: $t('ui.actionTitle.create', ['鎶ヤ环鍗�']),
type: 'primary',
@@ -138,6 +148,7 @@
<template>
<Page auto-content-height>
<FormModal @success="handleRefresh" />
+ <ImportModal @success="handleRefresh" />
<Grid>
<template #toolbar-tools>
<TableAction :actions="toolbarActions" />
--
Gitblit v1.9.3