From 7c0c65159270b86a2a791f63bd71a538b24ff602 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Sat, 20 Jan 2024 23:08:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20backlog=20=E5=88=86=E9=85=8D=E7=BB=99?= =?UTF-8?q?=E6=88=91=E7=9A=84=E7=BA=BF=E7=B4=A2=E3=80=81=E5=AE=A2=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crm/backlog/tables/FollowCustomer.vue | 161 +++++++++++++++++- src/views/crm/backlog/tables/FollowLeads.vue | 128 +++++++++++++- 2 files changed, 274 insertions(+), 15 deletions(-) diff --git a/src/views/crm/backlog/tables/FollowCustomer.vue b/src/views/crm/backlog/tables/FollowCustomer.vue index 5d98c04d..72cfaced 100644 --- a/src/views/crm/backlog/tables/FollowCustomer.vue +++ b/src/views/crm/backlog/tables/FollowCustomer.vue @@ -1,15 +1,162 @@ - +const { push } = useRouter() + +const FOLLOWUP_STATUS = [ + { label: '已跟进', value: true }, + { label: '待跟进', value: false } +] + +const loading = ref(true) // 列表的加载中 +const total = ref(0) // 列表的总页数 +const list = ref([]) // 列表的数据 +const queryParams = ref({ + pageNo: 1, + pageSize: 10, + followUpStatus: false, + sceneType: 1 +}) +const queryFormRef = ref() // 搜索的表单 + +/** 查询列表 */ +const getList = async () => { + loading.value = true + try { + const data = await CustomerApi.getCustomerPage(queryParams.value) + list.value = data.list + total.value = data.total + } finally { + loading.value = false + } +} - + diff --git a/src/views/crm/backlog/tables/FollowLeads.vue b/src/views/crm/backlog/tables/FollowLeads.vue index afb09bcc..9fa9aa5e 100644 --- a/src/views/crm/backlog/tables/FollowLeads.vue +++ b/src/views/crm/backlog/tables/FollowLeads.vue @@ -1,15 +1,127 @@ - - + +const FOLLOWUP_STATUS = [ + { label: '已跟进', value: true }, + { label: '待跟进', value: false } +] + +const loading = ref(true) // 列表的加载中 +const total = ref(0) // 列表的总页数 +const list = ref([]) // 列表的数据 +const queryParams = reactive({ + pageNo: 1, + pageSize: 10, + followUpStatus: false +}) +const queryFormRef = ref() // 搜索的表单 + +/** 查询列表 */ +const getList = async () => { + loading.value = true + try { + const data = await ClueApi.getCluePage(queryParams) + list.value = data.list + total.value = data.total + } finally { + loading.value = false + } +} - +