wangxy 6 روز پیش
والد
کامیت
105556ba99
3فایلهای تغییر یافته به همراه98 افزوده شده و 241 حذف شده
  1. 9 0
      src/api/his/user.js
  2. 58 240
      src/views/his/statistics/courseAppReport.vue
  3. 31 1
      src/views/index.vue

+ 9 - 0
src/api/his/user.js

@@ -191,3 +191,12 @@ export function clearUserWatchRecord(data) {
     data: data
     data: data
   })
   })
 }
 }
+
+
+// 获取 app 总会员数量
+export function getAppUserCount() {
+  return request({
+    url: '/his/user/appUserCount',
+    method: 'get'
+  })
+}

+ 58 - 240
src/views/his/statistics/courseAppReport.vue

@@ -1,10 +1,6 @@
 <template>
 <template>
   <div class="app-container">
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="85px">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="85px">
-      <el-radio-group v-model="queryParams.dimension" @change="handleDimensionChange">
-        <el-radio-button label="company">销售公司</el-radio-button>
-        <el-radio-button label="camp">训练营</el-radio-button>
-      </el-radio-group>
       <el-form-item label="公司名" prop="companyId">
       <el-form-item label="公司名" prop="companyId">
         <el-select filterable v-model="queryParams.companyId" placeholder="请选择公司名"
         <el-select filterable v-model="queryParams.companyId" placeholder="请选择公司名"
                    clearable size="small">
                    clearable size="small">
@@ -16,28 +12,12 @@
           />
           />
         </el-select>
         </el-select>
       </el-form-item>
       </el-form-item>
-      <el-form-item label="训练营" prop="trainingCampId" v-if="queryParams.dimension === 'camp'">
-        <el-select filterable v-model="queryParams.trainingCampId" placeholder="请选择训练营"
-                   clearable size="small" @change="handleCampChange">
-          <el-option
-            v-for="item in camps"
-            :key="item.dictValue"
-            :label="item.dictLabel"
-            :value="item.dictValue"
-          />
-        </el-select>
+      <el-form-item label="看课时间" prop="createTime">
+        <el-date-picker v-model="createTime" size="small" style="width: 220px" value-format="yyyy-MM-dd"
+                        type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"
+                        @change="xdChange"></el-date-picker>
       </el-form-item>
       </el-form-item>
       <el-form-item>
       <el-form-item>
-        <treeselect style="width: 220px" v-model="queryParams.periodId" :options="deptOptions"
-                    clearable :show-count="true" placeholder="请选择归属营期" value-consists-of="LEAF_PRIORITY"
-                    :normalizer="normalizer" v-if="queryParams.dimension === 'camp'" />
-      </el-form-item>
-      <el-form-item>
-        <el-form-item label="看课时间" prop="createTime">
-          <el-date-picker v-model="createTime" size="small" style="width: 220px" value-format="yyyy-MM-dd"
-                          type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"
-                          @change="xdChange"></el-date-picker>
-        </el-form-item>
         <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
         <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
         <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
         <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
       </el-form-item>
       </el-form-item>
@@ -57,31 +37,27 @@
     </el-row>
     </el-row>
     <el-table height="500" v-loading="loading" border :data="packageOrderList">
     <el-table height="500" v-loading="loading" border :data="packageOrderList">
       <el-table-column label="销售公司" align="center" prop="companyName" width="120px"/>
       <el-table-column label="销售公司" align="center" prop="companyName" width="120px"/>
-      <el-table-column label="训练营" align="center" prop="trainingCampName" v-if="showTrainingCampColumn"/>
-      <el-table-column label="营期" align="center" prop="periodName" v-if="showPeriodColumn"/>
-      <el-table-column label="进线人数" align="center" prop="accessCount"/>
-      <el-table-column label="待看课人数" align="center" prop="pendingCount"/>
-      <el-table-column label="看课中人数" align="center" prop="watchingCount"/>
-      <el-table-column label="看课率" align="center" prop="watchRate"/>
-      <el-table-column label="完课人数" align="center" prop="finishedCount"/>
-      <el-table-column label="看课中断" align="center" prop="interruptedCount"/>
-      <el-table-column label="完课率" align="center" prop="finishRate"/>
-      <el-table-column label="答题人数" align="center" prop="answerUserCount"/>
-      <el-table-column label="红包领取人数" align="center" prop="packetUserCount"/>
+      <el-table-column label="新增注册人数" align="center" prop="appUserCount"/>
+      <el-table-column label="APP活跃人数" align="center" prop="activeAppUserCount"/>
+      <el-table-column label="私域课待看课人次" align="center" prop="pendingCount"/>
+      <el-table-column label="私域课看课中人次" align="center" prop="watchingCount"/>
+      <el-table-column label="私域课看课率" align="center" prop="watchRate"/>
+      <el-table-column label="私域课完课人次" align="center" prop="finishedCount"/>
+      <el-table-column label="答题人次" align="center" prop="answerUserCount"/>
+      <el-table-column label="红包领取人次" align="center" prop="packetUserCount"/>
       <el-table-column label="红包金额" align="center" prop="packetAmount"/>
       <el-table-column label="红包金额" align="center" prop="packetAmount"/>
     </el-table>
     </el-table>
     <div class="total-summary">
     <div class="total-summary">
       <span class="total-title">总计:</span>
       <span class="total-title">总计:</span>
-      <span class="total-item">进线人数: {{ calculatedTotalData.accessCount }}</span>
-      <span class="total-item">待看课人数: {{ calculatedTotalData.pendingCount }}</span>
-      <span class="total-item">看课中人数: {{ calculatedTotalData.watchingCount }}</span>
-      <span class="total-item">看课率: {{ calculatedTotalData.watchRate}}</span>
-      <span class="total-item">完课人数: {{ calculatedTotalData.finishedCount }}</span>
-      <span class="total-item">看课中断: {{ calculatedTotalData.interruptedCount }}</span>
-      <span class="total-item">完课率: {{ calculatedTotalData.finishRate}}</span>
-      <span class="total-item">答题人数: {{ calculatedTotalData.answerUserCount }}</span>
-      <span class="total-item">红包领取人数: {{ calculatedTotalData.packetUserCount}}</span>
-      <span class="total-item">红包金额: {{ calculatedTotalData.packetAmount }}</span>
+      <span class="total-item">新增注册人数:{{ calculatedTotalData.appUserCount }}</span>
+      <span class="total-item">APP 活跃人数:{{ calculatedTotalData.activeAppUserCount }}</span>
+      <span class="total-item">私域课待看课人次:{{ calculatedTotalData.pendingCount }}</span>
+      <span class="total-item">私域课看课中人次:{{ calculatedTotalData.watchingCount }}</span>
+      <span class="total-item">私域课看课率:{{ calculatedTotalData.watchRate}}</span>
+      <span class="total-item">私域课完课人次:{{ calculatedTotalData.finishedCount }}</span>
+      <span class="total-item">答题人次:{{ calculatedTotalData.answerUserCount }}</span>
+      <span class="total-item">红包领取人次:{{ calculatedTotalData.packetUserCount}}</span>
+      <span class="total-item">红包金额:{{ calculatedTotalData.packetAmount }}</span>
     </div>
     </div>
     <pagination
     <pagination
       v-show="total>0"
       v-show="total>0"
@@ -94,21 +70,15 @@
 </template>
 </template>
 
 
 <script>
 <script>
-import {
-  listPackageOrder, getPackageOrder, delPackageOrder, addPackageOrder, updatePackageOrder, exportPackageOrder,
-  PackageOrderReport, orderReport, courseReport, exportOrderReport, exportCourseReport
-} from "@/api/his/packageOrder";
-import {getCompanyList} from "@/api/company/company";
-import packageOrderDetails from '../../components/his/packageOrderDetails.vue';
-import {treeselect} from "@/api/company/companyDept";
+import { getCompanyList } from "@/api/company/company";
 import Treeselect from "@riophae/vue-treeselect";
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
-import {getTask} from "@/api/common";
-import {getCampList, getPeriodList} from "@/api/course/userWatchCourseStatistics";
+import { getTask } from "@/api/common";
+import request from '@/utils/request'
 
 
 export default {
 export default {
-  name: "PackageOrder",
-  components: {packageOrderDetails, Treeselect},
+  name: "AppCourseReport",
+  components: { Treeselect },
   data() {
   data() {
     return {
     return {
       normalizer: function(node) {
       normalizer: function(node) {
@@ -118,108 +88,57 @@ export default {
           children: node.children
           children: node.children
         }
         }
       },
       },
-      // 添加用于存储计算总和的数据
       calculatedTotalData: {
       calculatedTotalData: {
-        accessCount: 0,
+        appUserCount: 0,
+        activeAppUserCount: 0,
         pendingCount: 0,
         pendingCount: 0,
         watchingCount: 0,
         watchingCount: 0,
         watchRate: '0%',
         watchRate: '0%',
         finishedCount: 0,
         finishedCount: 0,
-        interruptedCount: 0,
-        finishRate: '0%',
         answerUserCount: 0,
         answerUserCount: 0,
         packetUserCount: 0,
         packetUserCount: 0,
         packetAmount: 0
         packetAmount: 0
       },
       },
-      showTrainingCampColumn: false,
-      showPeriodColumn: false,
-      totalData: {},
       companys: [],
       companys: [],
-      camps: [],
       deptOptions: [],
       deptOptions: [],
       companyId: undefined,
       companyId: undefined,
-      campId: undefined,
-      deptId: undefined,
       show: {
       show: {
         open: false,
         open: false,
       },
       },
-      sourceOptions: [],
       actName: "2",
       actName: "2",
-      // 遮罩层
       loading: true,
       loading: true,
       startTime: null,
       startTime: null,
-      // 导出遮罩层
       exportLoading: false,
       exportLoading: false,
-      // 选中数组
       ids: [],
       ids: [],
       createTime: null,
       createTime: null,
-      // 非单个禁用
       single: true,
       single: true,
-      // 非多个禁用
       multiple: true,
       multiple: true,
-      // 显示搜索条件
       showSearch: true,
       showSearch: true,
       endTime: null,
       endTime: null,
-      // 总条数
       total: 0,
       total: 0,
-      // 套餐订单表格数据
       packageOrderList: [],
       packageOrderList: [],
-      // 弹出层标题
       title: "",
       title: "",
-      // 是否显示弹出层
       open: false,
       open: false,
-      // 是否支付字典
       isPayOptions: [],
       isPayOptions: [],
-      // 状态字典
       statusOptions: [],
       statusOptions: [],
       refundStatusOptions: [],
       refundStatusOptions: [],
       packageSubTypeOptions: [],
       packageSubTypeOptions: [],
       payTypeOptions: [],
       payTypeOptions: [],
       deliveryPayStatusOptions: [],
       deliveryPayStatusOptions: [],
       deliveryStatusOptions: [],
       deliveryStatusOptions: [],
-      // 查询参数
       queryParams: {
       queryParams: {
         pageNum: 1,
         pageNum: 1,
         pageSize: 10,
         pageSize: 10,
-        orderSn: null,
-        userId: null,
-        doctorId: null,
-        doctorName: null,
-        phone: null,
-        phoneMk: null,
-        packageId: null,
-        packageName: null,
-        payMoney: null,
-        isPay: null,
-        days: null,
-        status: null,
-        startTime: null,
-        startDate: null,
-        endDate:null,
-        finishTime: null,
+        companyId: null,
         sTime: null,
         sTime: null,
         eTime: null,
         eTime: null,
-        stTime: null,
-        endTime: null,
-        endStartTime: null,
-        endEndTime: null,
-        companyUserName: null,
-        companyName: null,
-        deptId: null,
-        source: null,
-        trainingCampId: null,
-        periodId: null,
-        dimension: 'camp',
-        watchType: 1
+        watchType: 2
       },
       },
-      // 表单参数
       form: {},
       form: {},
-      // 表单校验
       rules: {}
       rules: {}
     };
     };
   },
   },
   created() {
   created() {
-    // 设置默认时间为前一天
     const yesterday = new Date();
     const yesterday = new Date();
     yesterday.setDate(yesterday.getDate() - 1);
     yesterday.setDate(yesterday.getDate() - 1);
     const formatDate = (date) => {
     const formatDate = (date) => {
@@ -231,13 +150,7 @@ export default {
     this.createTime = [formatDate(yesterday), formatDate(yesterday)];
     this.createTime = [formatDate(yesterday), formatDate(yesterday)];
     this.queryParams.sTime = this.createTime[0];
     this.queryParams.sTime = this.createTime[0];
     this.queryParams.eTime = this.createTime[1];
     this.queryParams.eTime = this.createTime[1];
-    getCampList().then(response => {
-      this.camps = response.data.list
-      if (this.camps != null && this.camps.length > 0) {
-        this.companyId = this.camps[0].dictValue;
-      }
-      this.camps.push({companyId: "-1", companyName: "无"})
-    });
+
     getCompanyList().then(response => {
     getCompanyList().then(response => {
       this.companys = response.data;
       this.companys = response.data;
       if (this.companys != null && this.companys.length > 0) {
       if (this.companys != null && this.companys.length > 0) {
@@ -245,137 +158,64 @@ export default {
       }
       }
       this.companys.push({companyId: "-1", companyName: "无"})
       this.companys.push({companyId: "-1", companyName: "无"})
     });
     });
+
     this.getList();
     this.getList();
-    this.getDicts("sys_company_or").then(response => {
-      this.isPayOptions = response.data;
-    });
-    this.getDicts("sys_package_order_status").then(response => {
-      this.statusOptions = response.data;
-    });
-    this.getDicts("sys_refund_status").then(response => {
-      this.refundStatusOptions = response.data;
-    });
-    this.getDicts("sys_order_source").then(response => {
-      this.sourceOptions = response.data;
-    });
-    this.getDicts("sys_package_pay_type").then(response => {
-      this.payTypeOptions = response.data;
-    });
-    this.getDicts("sys_store_delivery_pay_status").then(response => {
-      this.deliveryPayStatusOptions = response.data;
-    });
-    this.getDicts("sys_store_order_delivery_status").then(response => {
-      this.deliveryStatusOptions = response.data;
-    });
-    this.getDicts("sys_package_sub_type").then(response => {
-      this.packageSubTypeOptions = response.data;
-    });
   },
   },
   methods: {
   methods: {
-    handleDimensionChange: function(val) {
-      console.log('维度切换到:', val);
-      // 重置分页
-      this.queryParams.pageNum = 1;
-      // 重新获取数据
-      this.getList();
-    },
-    /** 查询套餐订单列表 */
     getList() {
     getList() {
       this.loading = true;
       this.loading = true;
-      courseReport(this.queryParams).then(response => {
-        this.packageOrderList = response.rows;
-        this.total = response.total;
-        // 判断是否需要显示训练营和营期列
-        this.showTrainingCampColumn = this.packageOrderList &&
-          this.packageOrderList.some(item => item.trainingCampName);
-        this.showPeriodColumn = this.packageOrderList &&
-          this.packageOrderList.some(item => item.periodName);
+      return request({
+        url: '/company/statistics/appCourseReport',
+        method: 'get',
+        params: this.queryParams
+      }).then(response => {
+        this.packageOrderList = response.rows || response.data;
+        this.total = response.total || 0;
         this.calculateTotals();
         this.calculateTotals();
         this.loading = false;
         this.loading = false;
-        // 延迟强制更新以确保DOM完全渲染
         setTimeout(() => {
         setTimeout(() => {
           this.$forceUpdate();
           this.$forceUpdate();
         }, 100);
         }, 100);
+      }).catch(() => {
+        this.loading = false;
       });
       });
     },
     },
     calculateTotals() {
     calculateTotals() {
-      // 重置总计数据
       this.calculatedTotalData = {
       this.calculatedTotalData = {
-        accessCount: 0,
+        appUserCount: 0,
+        activeAppUserCount: 0,
         pendingCount: 0,
         pendingCount: 0,
         watchingCount: 0,
         watchingCount: 0,
         watchRate: 0,
         watchRate: 0,
         finishedCount: 0,
         finishedCount: 0,
-        interruptedCount: 0,
-        finishRate: 0,
         answerUserCount: 0,
         answerUserCount: 0,
         packetUserCount: 0,
         packetUserCount: 0,
         packetAmount: 0
         packetAmount: 0
       };
       };
 
 
-      // 遍历当前页数据计算总和
       this.packageOrderList.forEach(item => {
       this.packageOrderList.forEach(item => {
-        this.calculatedTotalData.accessCount += Number(item.accessCount) || 0;
+        this.calculatedTotalData.appUserCount += Number(item.appUserCount) || 0;
+        this.calculatedTotalData.activeAppUserCount += Number(item.activeAppUserCount) || 0;
         this.calculatedTotalData.pendingCount += Number(item.pendingCount) || 0;
         this.calculatedTotalData.pendingCount += Number(item.pendingCount) || 0;
         this.calculatedTotalData.watchingCount += Number(item.watchingCount) || 0;
         this.calculatedTotalData.watchingCount += Number(item.watchingCount) || 0;
         this.calculatedTotalData.finishedCount += Number(item.finishedCount) || 0;
         this.calculatedTotalData.finishedCount += Number(item.finishedCount) || 0;
-        this.calculatedTotalData.interruptedCount += Number(item.interruptedCount) || 0;
         this.calculatedTotalData.answerUserCount += Number(item.answerUserCount) || 0;
         this.calculatedTotalData.answerUserCount += Number(item.answerUserCount) || 0;
         this.calculatedTotalData.packetUserCount += Number(item.packetUserCount) || 0;
         this.calculatedTotalData.packetUserCount += Number(item.packetUserCount) || 0;
         this.calculatedTotalData.packetAmount += Number(item.packetAmount) || 0;
         this.calculatedTotalData.packetAmount += Number(item.packetAmount) || 0;
       });
       });
 
 
-      if (this.calculatedTotalData.accessCount > 0) {
-        // 看课率 = 看课中人数 / 进线人数
-        this.calculatedTotalData.watchRate = ((this.calculatedTotalData.watchingCount / this.calculatedTotalData.accessCount) * 100).toFixed(2) + '%';
-        // 完课率 = 完课人数 / 进线人数
-        this.calculatedTotalData.finishRate = ((this.calculatedTotalData.finishedCount / this.calculatedTotalData.accessCount) * 100).toFixed(2) + '%';
+      if (this.calculatedTotalData.pendingCount > 0) {
+        this.calculatedTotalData.watchRate = ((this.calculatedTotalData.watchingCount / this.calculatedTotalData.pendingCount) * 100).toFixed(2) + '%';
       } else {
       } else {
         this.calculatedTotalData.watchRate = '0.00%';
         this.calculatedTotalData.watchRate = '0.00%';
-        this.calculatedTotalData.finishRate = '0.00%';
       }
       }
 
 
-      // 金额格式化
       this.calculatedTotalData.packetAmount = this.calculatedTotalData.packetAmount.toFixed(2);
       this.calculatedTotalData.packetAmount = this.calculatedTotalData.packetAmount.toFixed(2);
     },
     },
-    /** 训练营变更处理 */
-    handleCampChange(val) {
-      this.queryParams.trainingCampId = val;
-      this.queryParams.periodId = null; // 清空已选择的营期
-
-      if (val) {
-        // 获取对应的营期数据
-        this.getPeriodByCamp(val);
-      } else {
-        // 如果清空训练营,也清空营期选项
-        this.deptOptions = [];
-      }
-      // 移除了自动搜索的逻辑,只在点击搜索按钮时触发
-    },
-
-    /** 根据训练营获取营期数据 */
-    getPeriodByCamp(campId) {
-      const param = {campId: campId};
-      getPeriodList(param).then((response) => {
-        console.log('接口返回数据:', response);
-        console.log('营期列表数据:', response.data);
-        this.deptOptions = response.data || [];
-        console.log('deptOptions 已赋值:', this.deptOptions);
-      }).catch(error => {
-        console.error('获取营期数据失败:', error);
-        this.deptOptions = [];
-      });
-    },
-    hasDeptNameField() {
-      return this.packageOrderList &&
-        this.packageOrderList.some(item => item.deptName !== undefined && item.deptName !== null && item.deptName !== '');
-    },
-    // 取消按钮
     cancel() {
     cancel() {
       this.open = false;
       this.open = false;
       this.reset();
       this.reset();
     },
     },
-    // 表单重置
     reset() {
     reset() {
       this.form = {
       this.form = {
         orderId: null,
         orderId: null,
@@ -394,50 +234,24 @@ export default {
       };
       };
       this.resetForm("form");
       this.resetForm("form");
     },
     },
-    /** 搜索按钮操作 */
     handleQuery() {
     handleQuery() {
       this.getList();
       this.getList();
     },
     },
-    /** 重置按钮操作 */
     resetQuery() {
     resetQuery() {
       this.resetForm("queryForm");
       this.resetForm("queryForm");
-      // 清空所有时间相关变量
       this.createTime = null;
       this.createTime = null;
       this.startTime = null;
       this.startTime = null;
       this.endTime = null;
       this.endTime = null;
 
 
-      // 重置所有查询参数
       this.queryParams = {
       this.queryParams = {
-        pageNum: null,
-        pageSize: null,
-        orderSn: null,
-        userId: null,
-        doctorId: null,
-        doctorName: null,
-        phone: null,
-        phoneMk: null,
-        packageId: null,
-        packageName: null,
-        payMoney: null,
-        isPay: null,
-        days: null,
-        status: null,
-        startTime: null,
-        finishTime: null,
+        pageNum: 1,
+        pageSize: 10,
+        companyId: null,
         sTime: null,
         sTime: null,
         eTime: null,
         eTime: null,
-        stTime: null,
-        endTime: null,
-        endStartTime: null,
-        endEndTime: null,
-        companyUserName: null,
-        companyName: null,
-        companyId: null,
-        deptId: null,
-        source: null,
+        watchType: 2
       };
       };
 
 
-      // 立即执行查询
       this.handleQuery();
       this.handleQuery();
     },
     },
     xdChange() {
     xdChange() {
@@ -451,17 +265,22 @@ export default {
     },
     },
     handleExport() {
     handleExport() {
       const queryParams = this.queryParams;
       const queryParams = this.queryParams;
-      this.$confirm('是否确认导出会员看课报表', "警告", {
+      this.$confirm('是否确认导出 APP 看课报表', "警告", {
         confirmButtonText: "确定",
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         cancelButtonText: "取消",
         type: "warning"
         type: "warning"
       }).then(() => {
       }).then(() => {
         this.exportLoading = true;
         this.exportLoading = true;
-        return exportCourseReport(queryParams);
+        return request({
+          url: '/company/statistics/exportAppCourseReport',
+          method: 'get',
+          params: queryParams
+        });
       }).then(response => {
       }).then(response => {
         this.download(response.msg);
         this.download(response.msg);
         this.exportLoading = false;
         this.exportLoading = false;
       }).catch(() => {
       }).catch(() => {
+        this.exportLoading = false;
       });
       });
     },
     },
     endChange() {
     endChange() {
@@ -521,7 +340,6 @@ export default {
   vertical-align: middle;
   vertical-align: middle;
 }
 }
 
 
-/* 响应式处理 */
 @media (max-width: 768px) {
 @media (max-width: 768px) {
   .total-summary {
   .total-summary {
     flex-direction: column;
     flex-direction: column;

+ 31 - 1
src/views/index.vue

@@ -66,6 +66,24 @@
                   <span class="card-panel-num companynumber">{{ padTotalNum }}</span>
                   <span class="card-panel-num companynumber">{{ padTotalNum }}</span>
                 </template>
                 </template>
               </div>
               </div>
+              <div class="companycard cardafter">
+                <div class="card-title1" style="white-space: nowrap;">
+                  <img src="../assets/images/member.png" alt="" class="icon-img">
+                  APP总会员
+                </div>
+                <div class="card-value highlight1">
+                  <count-to :start-val="0" :end-val="appTotalUser" :duration="3600" class="card-panel-num companynumber" />
+                </div>
+              </div>
+              <div class="companycard cardafter">
+                <div class="card-title1" style="white-space: nowrap;">
+                  <img src="../assets/images/member.png" alt="" class="icon-img">
+                  APP新增用户
+                </div>
+                <div class="card-value highlight1">
+                  <count-to :start-val="0" :end-val="appNewUser" :duration="3600" class="card-panel-num companynumber" />
+                </div>
+              </div>
             </div>
             </div>
           </div>
           </div>
         </el-col>
         </el-col>
@@ -578,6 +596,7 @@ import {
 import dayjs from 'dayjs';
 import dayjs from 'dayjs';
 import { listDept } from '@/api/system/dept'
 import { listDept } from '@/api/system/dept'
 import { listCompany } from '@/api/his/company'
 import { listCompany } from '@/api/his/company'
+import { getAppUserCount } from '@/api/his/user'
 
 
 
 
 const viewCharOption = {
 const viewCharOption = {
@@ -1051,7 +1070,11 @@ export default {
       // 商品总数
       // 商品总数
       goodsTotalNum: 0,
       goodsTotalNum: 0,
       // 今日商品总数
       // 今日商品总数
-      todayGoodsNum: 0
+      todayGoodsNum: 0,
+      // APP 总会员数
+      appTotalUser: 0,
+      // APP 新增用户数
+      appNewUser: 0
     }
     }
   },
   },
   mounted() {
   mounted() {
@@ -1363,6 +1386,13 @@ export default {
       this.handleThisMonthRecvCount();
       this.handleThisMonthRecvCount();
       this.handleThisMonthOrderCount();
       this.handleThisMonthOrderCount();
 
 
+      // 获取 APP 总会员数
+      getAppUserCount().then(res => {
+        if (res.code === 200) {
+          this.appTotalUser = res.data.appTotalUser ?? 0;
+          this.appNewUser = res.data.appNewUser ?? 0;
+        }
+      });
     },
     },
     /**
     /**
      * 将数字添加千位分隔符
      * 将数字添加千位分隔符