From b35039bcd6b21e26bc01d2ad8de328456b272d16 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 26 十月 2026 10:56:41 +0800
Subject: [PATCH] Merge branch 'dev_海西州_北京同仁堂' into dev_海西州_惠牧
---
src/views/crm/saleQuotation/index.vue | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/src/views/crm/saleQuotation/index.vue b/src/views/crm/saleQuotation/index.vue
index 9a221d3..cf01246 100644
--- a/src/views/crm/saleQuotation/index.vue
+++ b/src/views/crm/saleQuotation/index.vue
@@ -15,6 +15,7 @@
getSaleQuotationPage,
} from '#/api/crm/saleQuotation';
import { $t } from '#/locales';
+import { downloadContractWord } from '#/utils/contract-document';
import type { CrmSaleQuotationAiApi } from '#/api/crm/saleQuotation/ai';
@@ -107,6 +108,12 @@
async onOk() {
const contractId = await convertSaleQuotationToContract(row.id!);
message.success('杞悎鍚屾垚鍔�');
+ gridApi.query();
+ try {
+ await downloadContractWord(contractId);
+ } catch {
+ message.warning('鍚堝悓宸插垱寤猴紝鏂囦欢涓嬭浇澶辫触锛屽彲鍦ㄥ悎鍚岃鎯呬腑閲嶆柊涓嬭浇');
+ }
push({ name: 'CrmContractDetail', params: { id: contractId } });
},
});
@@ -218,6 +225,13 @@
ifShow: !!row.contractId,
},
{
+ label: '涓嬭浇鍚堝悓',
+ type: 'link',
+ auth: ['crm:contract:query'],
+ onClick: () => downloadContractWord(row.contractId!, row.contractNo),
+ ifShow: !!row.contractId,
+ },
+ {
label: $t('common.delete'),
type: 'link',
danger: true,
@@ -233,4 +247,4 @@
</template>
</Grid>
</Page>
-</template>
\ No newline at end of file
+</template>
--
Gitblit v1.9.3