From 98e410e1699939f808c3f8ee8240bb7a9a0338c0 Mon Sep 17 00:00:00 2001 From: quu Date: Sun, 4 May 2025 14:39:29 +0900 Subject: [PATCH] =?UTF-8?q?crm=20=E6=8A=A5=E4=BB=B7=20=E5=95=86=E6=9C=BA?= =?UTF-8?q?=20=E5=90=88=E5=90=8C=20=E4=B8=89=E5=9D=97=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/quotation/index.ts | 7 ++++++- src/views/crm/contract/detail/ContractDetail.vue | 10 ++++++++++ src/views/crm/quotation/index.vue | 4 ++-- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/api/crm/quotation/index.ts b/src/api/crm/quotation/index.ts index 1c7f77da4..1192cfac1 100644 --- a/src/api/crm/quotation/index.ts +++ b/src/api/crm/quotation/index.ts @@ -45,6 +45,11 @@ export const QuotationApi = { return await request.get({ url: `/crm/quotation/simple-all-list` }) }, + // 获得 CRM 方案列表(精简) + getSelfSimpleQuotationList : async () => { + return await request.get({ url: `/crm/quotation/self-simple-list` }) + }, + // 新增CRM 方案报价 createQuotation: async (data: QuotationVO) => { return await request.post({ url: `/crm/quotation/create`, data }) @@ -76,4 +81,4 @@ export const QuotationApi = { getQuotationProductListByQuotationId: async (quotationId) => { return await request.get({ url: `/crm/quotation/quotation-product/list-by-quotation-id?quotationId=` + quotationId }) } -} \ No newline at end of file +} diff --git a/src/views/crm/contract/detail/ContractDetail.vue b/src/views/crm/contract/detail/ContractDetail.vue index 100deb43a..c367b48c9 100644 --- a/src/views/crm/contract/detail/ContractDetail.vue +++ b/src/views/crm/contract/detail/ContractDetail.vue @@ -799,6 +799,16 @@ const onPartnerChange = async (id: string) => { } } +const onPrintContract = async (id: string) => { + if (!id) return + try { + formLoading.value = true; + const res = await ContractApi.printContract(id); + } catch (err) { + } finally { + formLoading.value = false; + } +} /** 动态获取客户联系人 */ const getContactOptions = computed(() => diff --git a/src/views/crm/quotation/index.vue b/src/views/crm/quotation/index.vue index c28ae8c70..c2fbe6a28 100644 --- a/src/views/crm/quotation/index.vue +++ b/src/views/crm/quotation/index.vue @@ -321,7 +321,7 @@ const handleCommand = (command: string, row: UserApi.UserVO) => { /** 提交审核 **/ const handleSubmit = async (row: QuotationVO) => { - await message.confirm(`您确定提交【${row.name}】审核吗?`) + await message.confirm(`您确定提交审核吗?`) await QuotationApi.submitContract(row.id) message.success('提交审核成功!') await getList() @@ -390,4 +390,4 @@ onMounted(async () => { onActivated(()=>{ getList() }) - \ No newline at end of file +