From 8c22dbfbdcaa39d6be8d10f86546d37910ef9828 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 21 Feb 2024 18:44:54 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20CRM=EF=BC=9A=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E5=95=86=E6=9C=BA=E7=9A=84=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit a2443e48f7608c8ab00e8839247e19c7512bedc6) --- src/api/crm/product/index.ts | 5 + src/views/crm/business/BusinessForm.vue | 362 +++++++++--------- .../components/BusinessProductForm.vue | 183 +++++++++ src/views/crm/business/index.vue | 78 +++- src/views/crm/contact/ContactForm.vue | 2 - src/views/crm/product/ProductForm.vue | 39 +- src/views/crm/product/index.vue | 3 +- 7 files changed, 452 insertions(+), 220 deletions(-) create mode 100644 src/views/crm/business/components/BusinessProductForm.vue diff --git a/src/api/crm/product/index.ts b/src/api/crm/product/index.ts index e6508fb4..b27612d6 100644 --- a/src/api/crm/product/index.ts +++ b/src/api/crm/product/index.ts @@ -23,6 +23,11 @@ export const getProductPage = async (params) => { return await request.get({ url: `/crm/product/page`, params }) } +// 获得产品精简列表 +export const getProductSimpleList = async () => { + return await request.get({ url: `/crm/product/simple-list` }) +} + // 查询产品详情 export const getProduct = async (id: number) => { return await request.get({ url: `/crm/product/get?id=` + id }) diff --git a/src/views/crm/business/BusinessForm.vue b/src/views/crm/business/BusinessForm.vue index 0e63eb75..7b03755a 100644 --- a/src/views/crm/business/BusinessForm.vue +++ b/src/views/crm/business/BusinessForm.vue @@ -1,113 +1,127 @@