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 +