From 3805684053d3d1fe4804c2831cd47622616a37b3 Mon Sep 17 00:00:00 2001 From: ZLI263 Date: Wed, 3 Dec 2025 08:29:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E7=AD=BE=E5=84=BF=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/customer/components/ServiceList.vue | 5 +- pages/customer/customer.vue | 25 +- pages/insight/insight.vue | 74 -- pages/reception/reception.vue | 790 ++++++++++++++++++++-- 4 files changed, 743 insertions(+), 151 deletions(-) delete mode 100644 pages/insight/insight.vue diff --git a/pages/customer/components/ServiceList.vue b/pages/customer/components/ServiceList.vue index 01df97d..2e31cf3 100644 --- a/pages/customer/components/ServiceList.vue +++ b/pages/customer/components/ServiceList.vue @@ -19,7 +19,7 @@ 刷新 - + + @filterClick="refreshServiceList" + @reachBottom="onServiceListReachBottom" /> = this.serviceListTotal) { + return; + } + // 下一页 + this.serviceListPage.current += 1; + this.loadServiceList(); + }, async viewDetail(item) { // 查看详情 this.currentServiceDetail = { ...item }; @@ -1645,12 +1656,8 @@ }); if (res.statusCode === 200 && res.data && res.data.success) { - uni.showToast({ - title: '获取服务记录 成功!', - icon: 'none' - }); // 转换后端数据为页面需要的格式 - this.serviceList = res.data.data.map(item => { + const mappedList = res.data.data.map(item => { // 格式化时间:将 ISO 格式转换为 YYYY-MM-DD HH:mm:ss let formattedTime = ''; if (item.createTime) { @@ -1674,6 +1681,12 @@ rawData: item }; }); + // 分页:第一页或刷新时重置,其他情况追加 + if (this.serviceListPage.current === 1) { + this.serviceList = mappedList; + } else { + this.serviceList = this.serviceList.concat(mappedList); + } this.serviceListTotal = res.data.total || 0; } else { uni.showToast({ diff --git a/pages/insight/insight.vue b/pages/insight/insight.vue deleted file mode 100644 index 175ab6d..0000000 --- a/pages/insight/insight.vue +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - diff --git a/pages/reception/reception.vue b/pages/reception/reception.vue index 7e308da..bf43474 100644 --- a/pages/reception/reception.vue +++ b/pages/reception/reception.vue @@ -29,22 +29,51 @@ @click="switchTab('status')"> 服务状态 - - 服务表现 - 开始接待 + + 标签管理 + - + + + 共{{ serviceStatusTotal }}条 + + + + + + 刷新 + + + + + 客户:{{ item.customerName || '未知客户' }} + 电话:{{ item.customerPhone }} + + - 已服务 {{ item.duration }} 分钟 + {{ item.durationText }} + + 暂无服务中记录 + + + 正在加载更多... + - - - 服务表现内容 - - @@ -139,6 +174,15 @@ placeholder="请输入客户来源" placeholder-style="color: #9ca3af" /> + + + 门店名称 + 性别 @@ -208,6 +252,134 @@ + + + + + + + 共{{ tagList.length }}条 + + + 添加标签 + + + + + {{ item.name }} + + + + 详情: + {{ item.detail }} + + + 备注: + {{ item.remark }} + + + + + 暂无标签 + + + + + + + + 所属行业 + + + + 标签分类 + + + {{ tagForm.tagType || "请选择标签分类" }} + + + + + + + {{ option }} + + + + + + 标签名 + + + + 详情 +