Browse Source

Merge branch 'master' into 康年堂

ct 20 hours ago
parent
commit
51959b35bf

+ 16 - 0
Dockerfile

@@ -0,0 +1,16 @@
+
+
+#基于官方 NGINX 镜像部署(精简镜像)
+FROM nginx:alpine
+
+# 复制本地打包好的 dist 目录到 NGINX 静态资源目录
+COPY ./dist /usr/share/nginx/html
+
+# 替换 NGINX 默认配置(用我们自定义的 nginx.conf)
+COPY ./nginx.conf /etc/nginx/nginx.conf
+
+# 暴露容器端口(与 nginx.conf 中 listen 一致)
+#EXPOSE 80
+
+# 启动 NGINX(前台运行,避免容器启动后退出)
+CMD ["nginx", "-g", "daemon off;"]

+ 38 - 0
nginx.conf

@@ -0,0 +1,38 @@
+# nginx.conf
+worker_processes  5;
+
+events {
+    worker_connections  1024;
+}
+
+http {
+    include       mime.types;
+    default_type  application/octet-stream;
+    client_max_body_size 200m;
+    sendfile        on;
+    keepalive_timeout  65;
+
+    server {
+        listen       80;  # 容器内端口
+        server_name  localhost;
+
+        # 前端静态资源目录(对应容器内的 /usr/share/nginx/html)
+        root   /usr/share/nginx/html;
+        index  index.html;
+
+        # 关键:处理 VUE Router history 模式(避免刷新 404)
+        location / {
+            try_files $uri $uri/ /index.html;  # 所有路由指向 index.html
+        }
+
+        # 关键:反向代理 API(解决跨域,替换为你的真实后端地址)
+        location /prod-api/ {
+            proxy_pass http://192.168.58.159:7772/;  # 后端 API 地址(末尾加 / 避免路径拼接问题)
+            proxy_set_header Host $host;
+            proxy_set_header X-Real-IP $remote_addr;
+            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+            proxy_set_header X-Forwarded-Proto $scheme;  # 传递 HTTPS 协议
+        }
+
+     }
+}

+ 9 - 0
src/api/course/courseWatchLog.js

@@ -60,6 +60,15 @@ export function exportCourseWatchLog(query) {
     data: query
   })
 }
+//会员看课统计导出
+export function exportCourseWatchLogStatisticsExport(query) {
+  return request({
+    url: '/course/courseWatchLog/statisticsExport',
+    method: 'POST',
+    data: query
+  })
+}
+
 
 
 export function statisticsList(query) {

+ 9 - 0
src/api/course/qw/courseWatchLog.js

@@ -112,6 +112,15 @@ export function exportCourseWatchLog(query) {
   })
 }
 
+export function exportCourseWatchLogStatisticsExportQw(query) {
+  return request({
+    url: '/qw/course/courseWatchLog/statisticsExport',
+    method: 'POST',
+    data: query
+  })
+}
+
+
 export function watchLogStatisticsExport(query) {
   return request({
     url: '/qw/course/courseWatchLog/watchLogStatisticsExport',

+ 7 - 0
src/api/course/userCoursePeriod.js

@@ -148,6 +148,13 @@ export function periodCountSelect(data) {
   })
 }
 
+export function exportInfo(query) {
+  return request({
+    url: '/course/period/exportInfo',
+    method: 'post',
+    data: query
+  })
+}
 // 获取营期选项列表
 export function getPeriodListLikeName(query) {
   return request({

+ 65 - 0
src/api/qw/externalContactInfo.js

@@ -0,0 +1,65 @@
+import request from '@/utils/request'
+
+// 查询外部联系人信息表列表
+export function listExternalContactInfo(query) {
+  return request({
+    url: '/qw/externalContactInfo/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询外部联系人信息表详细
+export function getExternalContactInfo(id) {
+  return request({
+    url: '/qw/externalContactInfo/' + id,
+    method: 'get'
+  })
+}
+
+// 新增外部联系人信息表
+export function addExternalContactInfo(data) {
+  return request({
+    url: '/qw/externalContactInfo',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改外部联系人信息表
+export function updateExternalContactInfo(data) {
+  return request({
+    url: '/qw/externalContactInfo',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除外部联系人信息表
+export function delExternalContactInfo(id) {
+  return request({
+    url: '/qw/externalContactInfo/' + id,
+    method: 'delete'
+  })
+}
+export function editTalk(id) {
+  return request({
+    url: '/qw/externalContactInfo/editTalk/' + id,
+    method: 'put'
+  })
+}
+
+export function editAllTalk(id) {
+  return request({
+    url: '/qw/externalContactInfo/editAllTalk/' + id,
+    method: 'put'
+  })
+}
+// 导出外部联系人信息表
+export function exportExternalContactInfo(query) {
+  return request({
+    url: '/qw/externalContactInfo/export',
+    method: 'get',
+    params: query
+  })
+}

+ 17 - 1
src/views/components/course/userCourseCatalogDetails.vue

@@ -83,6 +83,12 @@
       <el-table-column label="红包金额" align="center" prop="redPacketMoney"/>
       <el-table-column label="排序" align="center" prop="courseSort"/>
       <el-table-column label="上传时间" align="center" prop="createTime"/>
+      <el-table-column label="是否上架" align="center" prop="isOnPut">
+        <template slot-scope="{ row }">
+          <el-tag v-if="row.isOnPut == 0">是</el-tag>
+          <el-tag type="danger" v-if="row.isOnPut == 1">否</el-tag>
+        </template>
+      </el-table-column>
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
         <template slot-scope="scope">
           <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
@@ -257,6 +263,12 @@
             <el-radio :label="0">否</el-radio>
           </el-radio-group>
         </el-form-item>
+        <el-form-item label="是否上架" prop="isOnPut">
+          <el-radio-group v-model="form.isOnPut">
+            <el-radio :label="0">上架</el-radio>
+            <el-radio :label="1">下架</el-radio>
+          </el-radio-group>
+        </el-form-item>
         <el-form-item label="商品选择" v-if="form.isProduct === 1">
           <el-button size="small" type="primary" @click="chooseCourseProduct">选取商品</el-button>
           <el-table border width="100%" style="margin-top:5px;" :data="form.courseProducts">
@@ -554,6 +566,7 @@ export default {
       openVideoSort: false,
       // 表单参数
       form: {
+        isOnPut: 0,
         courseProducts: [],
         randomRedPacketRules:null,
         randomRedPacketRulesArr:[
@@ -833,6 +846,7 @@ export default {
         isProduct: 0,
         isFirst: 0,
         isSpeed: 0,
+        isOnPut: 0,
         listingStartTime: null,
         listingEndTime: null,
         randomRedPacketRules:null,
@@ -895,11 +909,13 @@ export default {
     /** 修改按钮操作 */
     handleUpdate(row) {
       this.reset();
+      this.form.isOnPut=row.isOnPut
       this.packageList = [];
       const videoId = row.videoId || this.ids
       getUserCourseVideo(videoId).then(response => {
         console.log(response);
         this.form = response.data;
+        this.$set(this.form, 'isOnPut', response.data.isOnPut !== undefined ? response.data.isOnPut : 0);
         if(!!this.form.randomRedPacketRules){
            this.$set(this.form, 'randomRedPacketRulesArr', JSON.parse(this.form.randomRedPacketRules)) ;
           // this.form.randomRedPacketRulesArr = JSON.parse(this.form.randomRedPacketRules);
@@ -1035,7 +1051,7 @@ export default {
         return syncTemplate(courseId);
       }).then(() => {
         this.getList();
-        this.msgSuccess("同步成功");
+        this.msgSuccess("正在同步模板中!!请稍后!");
       }).catch(() => {
       });
     },

+ 12 - 0
src/views/course/courseAnswerlogs/index.vue

@@ -11,6 +11,15 @@
 <!--          />-->
 <!--        </el-select>-->
 <!--      </el-form-item>-->
+      <el-form-item label="会员id" prop="userId">
+        <el-input
+          v-model="queryParams.userId"
+          placeholder="请输入会员id"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
       <el-form-item label="公司名" prop="companyId">
         <select-tree
           v-model="selectedCompanyList"
@@ -119,6 +128,7 @@
 
     <el-table border v-loading="loading" :data="logsList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="小程序会员id" align="center" prop="userId" />
       <el-table-column label="小程序用户名" align="center" prop="userName" />
       <el-table-column label="课程名称" align="center" prop="courseName" />
       <el-table-column label="小节名称" align="center" prop="videoName" />
@@ -192,9 +202,11 @@ export default {
       open: false,
       // 查询参数
       queryParams: {
+        logId:null,
         pageNum: 1,
         pageSize: 10,
         phone: null,
+        userId: null,
         phoneMk: null,
         courseId: null,
         videoId: null,

+ 1 - 1
src/views/course/courseRedPacketLog/index.vue

@@ -146,7 +146,7 @@
     </el-tabs>
     <el-table border v-loading="loading" :data="courseRedPacketLogList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="记录编号" align="center" prop="logId" />
+<!--      <el-table-column label="记录编号" align="center" prop="logId" />-->
       <el-table-column label="批次单号" align="center" prop="outBatchNo" />
       <el-table-column label="课程名称" align="center" prop="courseId" >
         <template slot-scope="scope">

+ 36 - 1
src/views/course/courseTrafficLog/index.vue

@@ -57,7 +57,8 @@
     </el-form>
 
     <!-- 表格 -->
-    <el-table border v-loading="loading" :data="courseTrafficLogList" @selection-change="handleSelectionChange">
+    <el-table border v-loading="loading" :data="courseTrafficLogList" @selection-change="handleSelectionChange"
+              show-summary :summary-method="getSummaries">
       <el-table-column type="selection" width="55" align="center" />
       <!-- 公司列 -->
       <el-table-column label="公司" align="center" prop="companyName" v-if="activeTab === 'all' || activeTab === 'company'" />
@@ -161,6 +162,40 @@ export default {
     this.getList();
   },
   methods: {
+
+    getSummaries(param) {
+      const { columns, data } = param
+      const sums = []
+
+      columns.forEach((column, index) => {
+        if (index === 0) {
+          // 第一列显示"总计"
+          sums[index] = '总计'
+          return
+        }
+
+        // 如果是流量列
+        if (column.property === 'totalInternetTraffic' ||
+          (column.label === '使用流量' && !column.property)) {
+          const values = data.map(item => Number(item.totalInternetTraffic) || 0)
+          if (!values.every(value => isNaN(value))) {
+            const total = values.reduce((prev, curr) => {
+              const value = Number(curr)
+              return prev + (isNaN(value) ? 0 : value)
+            }, 0)
+            sums[index] = this.formatTrafficData(total)
+          } else {
+            sums[index] = 'N/A'
+          }
+        } else {
+          // 其他列留空
+          sums[index] = ''
+        }
+      })
+
+      return sums
+    },
+
     handleTabClick(tab) {
       this.queryParams.tabType = tab.name;
       this.queryParams.pageNum = 1;

+ 65 - 5
src/views/course/courseTrafficLog/statistics.vue

@@ -27,8 +27,8 @@
           @change="handleDateData"
         ></el-date-picker>
       </el-form-item>
-     
-    
+
+
       <el-form-item>
         <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>
@@ -48,10 +48,11 @@
       </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
-    
+
 
     <!-- 表格 -->
-    <el-table border v-loading="loading" :data="courseTrafficLogList" @selection-change="handleSelectionChange">
+    <el-table border v-loading="loading" :data="courseTrafficLogList" @selection-change="handleSelectionChange"
+              show-summary :summary-method="getSummaries">
       <el-table-column type="selection" width="55" align="center" />
       <el-table-column label="公司" align="center" prop="companyName" />
       <el-table-column v-if="showDept" label="部门" align="center" prop="deptName" />
@@ -61,7 +62,6 @@
       <el-table-column label="金额" align="center" prop="totalAmount">
       </el-table-column>
     </el-table>
-
     <!-- 分页 -->
     <pagination
       v-show="total > 0"
@@ -155,6 +155,66 @@ export default {
     this.getList();
   },
   methods: {
+
+    getSummaries(param) {
+      // 原有的汇总方法
+      const { columns, data } = param;
+      const sums = [];
+
+      columns.forEach((column, index) => {
+        if (index === 0) {
+          sums[index] = '总计';
+          return;
+        }
+
+        if (column.property === 'formattedTotalTraffic') {
+          sums[index] = this.getTotalTraffic();
+        } else if (column.property === 'totalAmount') {
+          sums[index] = '¥' + this.getTotalAmount();
+        } else {
+          sums[index] = '';
+        }
+      });
+
+      return sums;
+    },
+
+
+    // 计算总流量(不四舍五入)
+    getTotalTraffic() {
+      if (!this.courseTrafficLogList || this.courseTrafficLogList.length === 0) {
+        return '0';
+      }
+      let total = 0;
+
+      // 方法B:从格式化字符串中提取数值(如果formattedTotalTraffic类似 "1.23GB")
+      total = this.courseTrafficLogList.reduce((sum, item) => {
+        // 移除非数字字符,只保留数字和小数点
+        if (item.formattedTotalTraffic) {
+          const numStr = item.formattedTotalTraffic.replace(/[^\d.]/g, '');
+          return sum + parseFloat(numStr || 0);
+        }
+        return sum;
+      }, 0);
+
+      // 保留所有小数,不四舍五入
+      return total.toFixed(10).replace(/\.?0+$/, '');
+    },
+
+    // 计算总金额(不四舍五入)
+    getTotalAmount() {
+      if (!this.courseTrafficLogList || this.courseTrafficLogList.length === 0) {
+        return '0';
+      }
+
+      const total = this.courseTrafficLogList.reduce((sum, item) => {
+        return sum + (parseFloat(item.totalAmount) || 0);
+      }, 0);
+
+      // 保留两位小数,不四舍五入
+      return Math.floor(total * 100) / 100;
+    },
+
     handleTabClick(tab) {
       this.queryParams.tabType = tab.name;
       this.queryParams.pageNum = 1;

+ 20 - 0
src/views/course/courseWatchLog/index.vue

@@ -11,6 +11,24 @@
 <!--          />-->
 <!--        </el-select>-->
 <!--      </el-form-item>-->
+      <el-form-item label="记录编号" prop="logId">
+        <el-input
+          v-model="queryParams.logId"
+          placeholder="请输入记录编号"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="会员ID" prop="userId">
+        <el-input
+          v-model="queryParams.userId"
+          placeholder="请输入会员ID"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
       <el-form-item label="员工部门" prop="companyId">
         <select-tree
           v-model="selectedCompanyList"
@@ -110,6 +128,7 @@
     <el-table border v-loading="loading" :data="courseWatchLogList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center" />
       <el-table-column label="记录编号" align="center" prop="logId" />
+      <el-table-column label="用户会员id" align="center" prop="userId" />
       <el-table-column label="用户账号" align="center" prop="qwUserName" />
       <el-table-column label="企微客户" align="center" prop="externalUserName">
         <template slot-scope="scope">
@@ -224,6 +243,7 @@ export default {
 
       // 查询参数
       queryParams: {
+        logId: null,
         pageNum: 1,
         pageSize: 10,
         userId: null,

+ 45 - 4
src/views/course/courseWatchLog/qw/statistics.vue

@@ -50,6 +50,21 @@
       </el-form-item>
     </el-form>
 
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          :loading="exportLoading"
+          @click="handleStatisExport"
+          v-hasPermi="['course:courseWatchLog:statisticsExport']"
+        >导出</el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
     <el-table v-if="'济南联志健康' == this.signProjectName" border v-loading="loading" :data="courseWatchLogList" @selection-change="handleSelectionChange"  show-summary :summary-method="getSummaries">
       <el-table-column type="selection" width="55" align="center" />
       <el-table-column label="企微员工名称" align="center" prop="qwUserName" />
@@ -96,7 +111,18 @@
 </template>
 
 <script>
-import { listCourseWatchLog, getCourseWatchLog, delCourseWatchLog, addCourseWatchLog, updateCourseWatchLog, exportCourseWatchLog,statisticsList,getSignProjectName } from "@/api/course/qw/courseWatchLog";
+import {
+  listCourseWatchLog,
+  getCourseWatchLog,
+  delCourseWatchLog,
+  addCourseWatchLog,
+  updateCourseWatchLog,
+  exportCourseWatchLog,
+  statisticsList,
+  getSignProjectName,
+  exportCourseWatchLogStatisticsExport,
+  exportCourseWatchLogStatisticsExportQw
+} from '@/api/course/qw/courseWatchLog'
 import { courseList,videoList } from '@/api/course/courseRedPacketLog'
 import {getCompanyList} from "@/api/company/company";
 export default {
@@ -179,20 +205,35 @@ export default {
     });
   },
   methods: {
-   getSummaries(param) {
+
+    handleStatisExport(){
+      const queryParams = this.queryParams;
+      this.$confirm('是否确认导出所有会员看课统计数据项?', "警告", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      }).then(() => {
+        this.exportLoading = true;
+        return exportCourseWatchLogStatisticsExportQw(queryParams);
+      }).then(response => {
+        this.download(response.msg);
+        this.exportLoading = false;
+      }).catch(() => {});
+    },
+    getSummaries(param) {
         const { columns, data } = param;
         const sums = [];
          // 关键改动:创建一个不包含最后一行的新数据数组
         // 如果数据长度大于1,则截取掉最后一行;否则,使用空数组避免错误
         const dataToSum = data.length > 1 ? data.slice(0, -1) : [];
         columns.forEach((column, index) => {
-          
+
           if (index === 0) {
             sums[index] = '页总计';
             return;
           }
           const values = dataToSum.map(item => Number(item[column.property]));
-          
+
           if (!values.every(value => isNaN(value))) {
             sums[index] = values.reduce((prev, curr) => {
               const value = Number(curr);

+ 40 - 1
src/views/course/courseWatchLog/statistics.vue

@@ -75,6 +75,21 @@
       </el-form-item>
     </el-form>
 
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          :loading="exportLoading"
+          @click="handleStatisExport"
+          v-hasPermi="['course:courseWatchLog:statisticsExport']"
+        >导出</el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
     <el-table
       border
       v-loading="loading"
@@ -106,7 +121,16 @@
 </template>
 
 <script>
-import { listCourseWatchLog, getCourseWatchLog, delCourseWatchLog, addCourseWatchLog, updateCourseWatchLog, exportCourseWatchLog,statisticsList } from "@/api/course/courseWatchLog";
+import {
+  listCourseWatchLog,
+  getCourseWatchLog,
+  delCourseWatchLog,
+  addCourseWatchLog,
+  updateCourseWatchLog,
+  exportCourseWatchLog,
+  statisticsList,
+  exportCourseWatchLogStatisticsExport
+} from '@/api/course/courseWatchLog'
 import { courseList,videoList } from '@/api/course/courseRedPacketLog'
 import {getUserList} from "@/api/company/companyUser";
 import {getFsUserList} from "@/api/users/user";
@@ -421,6 +445,21 @@ export default {
         this.exportLoading = false;
       }).catch(() => {});
     },
+
+    handleStatisExport(){
+      const queryParams = this.queryParams;
+      this.$confirm('是否确认导出所有会员看课统计数据项?', "警告", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      }).then(() => {
+        this.exportLoading = true;
+        return exportCourseWatchLogStatisticsExport(queryParams);
+      }).then(response => {
+        this.download(response.msg);
+        this.exportLoading = false;
+      }).catch(() => {});
+    },
     handleScheduleTimeChange(val) {
       if (val) {
         this.queryParams.scheduleStartTime = val[0];

+ 18 - 1
src/views/course/userCoursePeriod/statistics.vue

@@ -48,6 +48,7 @@
         </el-form-item>
         <el-form-item>
           <el-button type="primary" @click="handleQuery">查询</el-button>
+          <el-button type="info" :loading="exportLoading" @click="exportHandle">导出</el-button>
         </el-form-item>
       </el-form>
 
@@ -140,7 +141,7 @@
 </template>
 
 <script>
-import {getDays, periodCountSelect, getPeriodCompanyList} from "@/api/course/userCoursePeriod";
+import {getDays, periodCountSelect, getPeriodCompanyList,exportInfo} from "@/api/course/userCoursePeriod";
 
 export default {
   name: "CourseStatistics",
@@ -156,6 +157,7 @@ export default {
   },
   data() {
     return {
+      exportLoading: false,
       // 遮罩层
       loading: false,
       courseLoading: false,
@@ -300,6 +302,21 @@ export default {
       this.getCountList();
     },
 
+    /** 导出 */
+    exportHandle(){
+      this.$confirm('是否确认导出所有课程统计信息数据项?', "警告", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      }).then(() => {
+        this.exportLoading = true;
+        return exportInfo(this.queryParams);
+      }).then(response => {
+        this.download(response.msg);
+        this.exportLoading = false;
+      }).catch(() => {});
+    },
+
     /** 获取列表数据 */
     getCountList() {
       this.loading = true;

+ 7 - 0
src/views/hisStore/storeProduct/indexZm.vue

@@ -1609,6 +1609,13 @@ export default {
     /** 重置按钮操作 */
     resetQuery() {
       this.resetForm("queryForm");
+      const showFlag = this.queryParams.isShow
+      this.queryParams = {
+        pageNum:1,
+        pageSize:10,
+        isShow:showFlag
+      }
+      this.companyId = '';
       this.handleQuery();
     },
     // 多选框选中数据

+ 8 - 0
src/views/hisStore/storeProductAudit/index.vue

@@ -1282,6 +1282,14 @@ export default {
     /** 重置按钮操作 */
     resetQuery() {
       this.resetForm("queryForm");
+      this.queryParams = {
+        pageNum:1,
+        pageSize:10,
+        isShow:1,
+        isAudit:0
+      }
+      this.companyId = ''
+      this.storeId = ''
       this.handleQuery();
     },
     // 多选框选中数据

+ 75 - 36
src/views/qw/externalContact/index.vue

@@ -31,6 +31,27 @@
           />
         </el-select>
       </el-form-item>
+
+      <el-form-item label="客户会员id" prop="fsUserId">
+        <el-input
+          v-model="queryParams.fsUserId"
+          placeholder="请输入客户会员id"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+
+      <el-form-item label="企微客户id" prop="extId">
+        <el-input
+          v-model="queryParams.extId"
+          placeholder="请输入客户id"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+
       <el-form-item label="客户名称" prop="name">
         <el-input
             v-model="queryParams.name"
@@ -211,34 +232,35 @@
     </el-form>
 
     <el-row :gutter="10" class="mb8">
-      <el-col :span="1.5">
-        <el-button
-          type="warning"
-          plain
-          icon="el-icon-download"
-          size="mini"
-          :loading="exportLoading"
-          @click="handleExport"
-          v-hasPermi="['qw:externalContact:export']"
-        >导出</el-button>
-      </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="warning"
-          plain
-          icon="el-icon-download"
-          size="mini"
-          :loading="exportUnionidLoading"
-          @click="handleExportUnionId"
-          v-hasPermi="['qw:externalContact:export']"
-        >导出unionid</el-button>
-      </el-col>
+<!--      <el-col :span="1.5">-->
+<!--        <el-button-->
+<!--          type="warning"-->
+<!--          plain-->
+<!--          icon="el-icon-download"-->
+<!--          size="mini"-->
+<!--          :loading="exportLoading"-->
+<!--          @click="handleExport"-->
+<!--          v-hasPermi="['qw:externalContact:export']"-->
+<!--        >导出</el-button>-->
+<!--      </el-col>-->
+<!--      <el-col :span="1.5">-->
+<!--        <el-button-->
+<!--          type="warning"-->
+<!--          plain-->
+<!--          icon="el-icon-download"-->
+<!--          size="mini"-->
+<!--          :loading="exportUnionidLoading"-->
+<!--          @click="handleExportUnionId"-->
+<!--          v-hasPermi="['qw:externalContact:export']"-->
+<!--        >导出unionid</el-button>-->
+<!--      </el-col>-->
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
     <el-table v-loading="loading" :data="externalContactList" @selection-change="handleSelectionChange" border>
     <el-table-column type="selection" width="55" align="center" />
     <el-table-column label="企微客户ID"  align="center" prop="id" />
+    <el-table-column label="客户会员ID"  align="center" prop="fsUserId" />
     <el-table-column label="企微客户头像" align="center" prop="avatar" width="100px">
       <template slot-scope="scope">
         <el-popover
@@ -251,7 +273,6 @@
       </template>
     </el-table-column>
     <el-table-column label="企微客户名称"  prop="name" width="110px"/>
-    <el-table-column label="客户称呼"  prop="stageStatus" width="110px"/>
     <el-table-column label="销售企微昵称" align="center" prop="qwUserName" width="120px"/>
     <el-table-column label="企微部门" align="center" prop="departmentName" width="120px"/>
     <el-table-column label="用户类别" align="center" prop="type">
@@ -317,8 +338,8 @@
         <el-tag v-else type="info"> 未绑定</el-tag>
       </template>
     </el-table-column>
-<!--    <el-table-column label="修改" align="center" class-name="small-padding fixed-width" width="120px" fixed="right">-->
-<!--      <template slot-scope="scope">-->
+    <el-table-column label="修改" align="center" class-name="small-padding fixed-width" width="120px" fixed="right">
+      <template slot-scope="scope">
 <!--        <el-button-->
 <!--            v-if="scope.row.status==0||scope.row.status==2"-->
 <!--            size="mini"-->
@@ -335,7 +356,7 @@
 <!--        >修改客户称呼</el-button>-->
 <!--      </template>-->
 <!--    </el-table-column>-->
-    <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="120px" fixed="right">
+<!--    <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="120px" fixed="right">-->
 <!--      <template slot-scope="scope">-->
 <!--        <el-button-->
 <!--            size="mini"-->
@@ -357,13 +378,13 @@
 <!--        >-->
 <!--          <span>解除会员绑定</span>-->
 <!--        </el-button>-->
-<!--        <el-button-->
-<!--            size="mini"-->
-<!--            type="text"-->
-<!--            @click="handledetails(scope.row)"-->
-<!--        >AI获取用户信息-->
-<!--        </el-button>-->
-<!--      </template>-->
+        <el-button
+            size="mini"
+            type="text"
+            @click="handledetails(scope.row)"
+        >AI获取用户信息
+        </el-button>
+      </template>
     </el-table-column>
     </el-table>
 
@@ -409,6 +430,11 @@
         <el-button @click="tagCancel()">取消</el-button>
       </div>
     </el-dialog>
+
+    <el-dialog :title="info.title" :visible.sync="info.open"   width="1100px" append-to-body>
+      <externalContactInfo  ref="Details" />
+    </el-dialog>
+
   </div>
 </template>
 
@@ -420,11 +446,11 @@ import {getQwUserInfo} from "@/api/qw/qwUser";
 import { allListTagGroup} from "@/api/qw/tagGroup";
 import {searchTags,} from "@/api/qw/tag";
 import PaginationMore from '@/components/PaginationMore/index.vue'
-
+import externalContactInfo from "../externalContact/info";
 
 export default {
   name: "ExternalContact",
-  components: { PaginationMore },
+  components: { PaginationMore,externalContactInfo },
   data() {
     return {
       daterange: [],
@@ -467,10 +493,15 @@ export default {
       title: "",
       // 是否显示弹出层
       open: false,
+      info:{
+        title:"用户信息",
+        open:false,
+      },
       //标签
       tagGroupList: [],
       // 查询参数
       queryParams: {
+        extId:null,
         companyUser:null,
         pageNum: 1,
         pageSize: 10,
@@ -518,7 +549,7 @@ export default {
         commentStatus: null,
         isBindMini:null,
         sTime:null,
-        eTime:null
+        eTime:null,
       },
       //标签
       changeTagDialog:{
@@ -592,6 +623,13 @@ export default {
     });
   },
   methods: {
+    handledetails(row){
+      this.info.open=true;
+      setTimeout(() => {
+        this.$refs.Details.getDetails(row.id);
+      }, 1);
+    },
+
     /** 获取销售账号列表 **/
     getAllUserlist(companyId){
       if(companyId){
@@ -634,6 +672,7 @@ export default {
     reset() {
       this.form = {
         id: null,
+        extId:null,
         userId: null,
         externalUserId: null,
         name: null,

+ 271 - 0
src/views/qw/externalContact/info.vue

@@ -0,0 +1,271 @@
+<template>
+<div>
+	<el-form ref="form" :model="form" label-width="140px" >
+
+	      <el-form-item label="姓名" prop="name">
+	        <el-input v-model="form.name" placeholder="请输入姓名" />
+	      </el-form-item>
+	      <el-form-item label="性别" prop="sex">
+	        <el-input v-model="form.sex" placeholder="请输入性别" />
+	      </el-form-item>
+	      <el-form-item label="年龄" prop="age">
+	        <el-input v-model="form.age" placeholder="请输入年龄" />
+	      </el-form-item>
+	      <el-form-item label="地区" prop="address">
+	        <el-input v-model="form.address" placeholder="请输入地区" />
+	      </el-form-item>
+	      <el-form-item label="行为习惯" prop="habits">
+	        <el-input v-model="form.habits" placeholder="请输入行为习惯" />
+	      </el-form-item>
+	      <el-form-item label="患病时间" prop="illnessTime">
+	        <el-input v-model="form.illnessTime" placeholder="请输入患病时间" />
+	      </el-form-item>
+	      <el-form-item label="身体状态" prop="body">
+	        <el-input v-model="form.body" placeholder="请输入身体状态" />
+	      </el-form-item>
+	      <el-form-item label="学习到的章节" prop="study">
+	        <el-input v-model="form.study" placeholder="请输入学习到的章节" />
+	      </el-form-item>
+		  <el-form-item label="学习课程" prop="course">
+		    <el-input v-model="form.course" placeholder="请输入学习到的章节" />
+		  </el-form-item>
+	      <el-form-item label="今日课程完成情况" prop="courseStatus">
+	        <el-input v-model="form.courseStatus" placeholder="请输入今日课程完成情况" />
+	      </el-form-item>
+		  <el-form-item label="家人的疾病" prop="familyDisease">
+		    <el-input v-model="form.familyDisease" placeholder="请输入家人的疾病" />
+		  </el-form-item>
+		  <el-form-item label="疾病" prop="disease">
+		    <el-input v-model="form.disease" placeholder="请输入疾病" />
+		  </el-form-item>
+	      <el-form-item label="是否线下就诊" prop="isLine">
+	        <el-input v-model="form.isLine" placeholder="是否线下就诊" />
+	      </el-form-item>
+	      <el-form-item label="家人的疾病" prop="familyDisease">
+	        <el-input v-model="form.familyDisease" placeholder="请输入家人的疾病" />
+	      </el-form-item>
+	      <el-form-item label="交流状态" prop="talk">
+	        <el-input v-model="form.talk" placeholder="请输入交流状态" />
+	      </el-form-item>
+	      <el-form-item label="用户分类" prop="userType">
+	       <el-input v-model="form.userType" placeholder="用户分类" />
+	      </el-form-item>
+	      <el-form-item label="是否本人会诊" prop="isSelf">
+	        <el-input v-model="form.isSelf" placeholder="请输入是否本人会诊" />
+	      </el-form-item>
+	      <el-form-item label="什么情况加重或缓解" prop="intensify">
+	        <el-input v-model="form.intensify" placeholder="请输入什么情况加重或缓解" />
+	      </el-form-item>
+	      <el-form-item label="是否怕热或者怕冷" prop="isCold">
+	        <el-input v-model="form.isCold" placeholder="请输入是否怕热或者怕冷" />
+	      </el-form-item>
+	      <el-form-item label="怕冷或怕热的部位" prop="coldBody">
+	        <el-input v-model="form.coldBody" placeholder="请输入怕冷或怕热的部位" />
+	      </el-form-item>
+	      <el-form-item label="出汗情况" prop="sweat">
+	        <el-input v-model="form.sweat" placeholder="请输入出汗情况" />
+	      </el-form-item>
+	      <el-form-item label="其他情况" prop="other">
+	        <el-input v-model="form.other" placeholder="请输入其他情况" />
+	      </el-form-item>
+	      <el-form-item label="大小便情况" prop="toilet">
+	        <el-input v-model="form.toilet" placeholder="请输入大小便情况" />
+	      </el-form-item>
+	      <el-form-item label="饮食情况" prop="eat">
+	        <el-input v-model="form.eat" placeholder="请输入饮食情况" />
+	      </el-form-item>
+	      <el-form-item label="经期如何" prop="menses">
+	        <el-input v-model="form.menses" placeholder="请输入经期如何 女 55岁以下" />
+	      </el-form-item>
+	      <el-form-item label="现在使用的药品" prop="medicine">
+	        <el-input v-model="form.medicine" placeholder="请输入现在使用的药品" />
+	      </el-form-item>
+	      <el-form-item label="体质" prop="constitution">
+	        <el-input v-model="form.constitution" placeholder="请输入体质" />
+	      </el-form-item>
+	      <el-form-item label="推荐用药" prop="recommendMedicine">
+	        <el-input v-model="form.recommendMedicine" placeholder="请输入推荐用药" />
+	      </el-form-item>
+	      <el-form-item label="咨询产品" prop="consultProduct">
+	        <el-input v-model="form.consultProduct" placeholder="请输入咨询产品" />
+	      </el-form-item>
+	      <el-form-item label="是否已经购买产品" prop="isBuy">
+	        <el-input v-model="form.isBuy" placeholder="请输入是否已经购买产品" />
+	      </el-form-item>
+	      <el-form-item label="已经购买的产品" prop="buyProduct">
+	        <el-input v-model="form.buyProduct" placeholder="请输入已经购买的产品" />
+	      </el-form-item>
+	      </el-form>
+	      <div slot="footer" class="dialog-footer" style="float: right;margin-bottom: 20px;">
+	        <el-button type="primary" @click="submitForm">修 改</el-button>
+	      </div>
+</div>
+ <!-- <div style="background-color: #f0f2f5; padding-bottom: 20px; min-height: 100%; " >
+    <div style="padding: 20px; background-color: #fff;">
+      用户信息
+    </div>
+    <div class="contentx" v-if="item!=null">
+        <div class="desct">
+          用户信息
+        </div>
+        <el-descriptions title="" :column="2" border>
+        <el-descriptions-item label="姓名" ><span v-if="item!=null">{{item.name}}</span></el-descriptions-item>
+        <el-descriptions-item label="年龄" ><span v-if="item!=null">{{item.age}}</span></el-descriptions-item>
+        <el-descriptions-item label="性别" ><dict-tag :options="sexOptions" :value="item.sex"/></el-descriptions-item>
+        <el-descriptions-item label="地区" ><span v-if="item!=null">{{item.address}}</span></el-descriptions-item>
+        <el-descriptions-item label="行为习惯" ><span v-if="item!=null">{{item.habits}}</span></el-descriptions-item>
+        <el-descriptions-item label="患病时间" ><span v-if="item!=null">{{item.illnessTime}}</span></el-descriptions-item>
+		<el-descriptions-item label="身体状态" ><span v-if="item!=null">{{item.body}}</span></el-descriptions-item>
+		<el-descriptions-item label="学习到的章节" ><span v-if="item!=null">{{item.study}}</span></el-descriptions-item>
+		<el-descriptions-item label="今日课程完成情况" ><span v-if="item!=null">{{item.courseStatus}}</span></el-descriptions-item>
+		<el-descriptions-item label="提及的家人" ><span v-if="item!=null">{{item.family}}</span></el-descriptions-item>
+		<el-descriptions-item label="家人的疾病" ><span v-if="item!=null">{{item.familyDisease}}</span></el-descriptions-item>
+		<el-descriptions-item label="交流状态" ><span v-if="item!=null">{{item.talk}}</span></el-descriptions-item>
+        <el-descriptions-item label="创建时间" ><span v-if="item!=null">{{item.createTime}}</span></el-descriptions-item>
+        <el-descriptions-item label="修改时间" ><span v-if="item!=null">{{item.updateTime}}</span></el-descriptions-item>
+        </el-descriptions>
+    </div>
+</div> -->
+</template>
+
+<script>
+import {getUserInfo} from '@/api/qw/externalContact'
+import { addExternalContactInfo, updateExternalContactInfo } from "@/api/qw/externalContactInfo";
+  export default {
+    name: "externalContactinfo",
+
+    data() {
+      return {
+        sexOptions: [],
+        form:{
+				id: null,
+				externalContactId: null,
+				name: null,
+				sex: null,
+				age: null,
+				address: null,
+				habits: null,
+				illnessTime: null,
+				body: null,
+				study: null,
+				courseStatus: null,
+				family: null,
+				familyDisease: null,
+				talk: null,
+				userType: null,
+				isSelf: null,
+				intensify: null,
+				isCold: null,
+				coldBody: null,
+				sweat: null,
+				other: null,
+				toilet: null,
+				eat: null,
+				menses: null,
+				medicine: null,
+				constitution: null,
+				recommendMedicine: null,
+				consultProduct: null,
+				isBuy: null,
+				buyProduct: null
+			}
+      }
+    },
+    created() {
+      this.getDicts("sys_user_sex").then(response => {
+        this.sexOptions = response.data;
+      });
+    },
+    methods: {
+      getDetails(id) {
+		  this.form={
+					id: null,
+					externalContactId: null,
+					name: null,
+					sex: null,
+					age: null,
+					address: null,
+					habits: null,
+					illnessTime: null,
+					body: null,
+					study: null,
+					courseStatus: null,
+					family: null,
+					familyDisease: null,
+					talk: null,
+					userType: null,
+					isSelf: null,
+					intensify: null,
+					isCold: null,
+					coldBody: null,
+					sweat: null,
+					other: null,
+					toilet: null,
+					eat: null,
+					menses: null,
+					medicine: null,
+					constitution: null,
+					recommendMedicine: null,
+					consultProduct: null,
+					isBuy: null,
+					buyProduct: null
+		  	}
+			this.form.externalContactId=id
+          getUserInfo(id).then(response => {
+
+			if(response.data!=null&&response.data!=''){
+				this.form = response.data;
+			}
+          });
+      },
+	  cancel(){
+		  this.open = false;
+	  },
+	    /** 提交按钮 */
+	    submitForm() {
+	      this.$refs["form"].validate(valid => {
+	        if (valid) {
+	          if (this.form.id != null) {
+	            updateExternalContactInfo(this.form).then(response => {
+	              this.msgSuccess("修改成功");
+	              this.open = false;
+	               this.$parent.$parent.closeInfo();
+	            });
+	          } else {
+	            addExternalContactInfo(this.form).then(response => {
+	              this.msgSuccess("新增成功");
+	              this.open = false;
+	               this.$parent.$parent.closeInfo();
+	            });
+	          }
+	        }
+	      });
+	    },
+    }
+  }
+</script>
+<style>
+  .contentx{
+      height: 100%;
+      background-color: #fff;
+      padding: 0px 20px 20px;
+
+
+      margin: 20px;
+  }
+  .el-descriptions-item__label.is-bordered-label{
+    font-weight: normal;
+  }
+  .el-descriptions-item__content {
+    max-width: 150px;
+    min-width: 100px;
+  }
+  .desct{
+      padding-top: 20px;
+      padding-bottom: 20px;
+      color: #524b4a;
+      font-weight: bold;
+    }
+</style>
+
+

+ 1 - 0
src/views/qw/sop/sop.vue

@@ -33,6 +33,7 @@
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
+
       <el-form-item label="类型 " prop="type">
         <el-select v-model="queryParams.type" placeholder="请选择类型" clearable size="small"  >
           <el-option

+ 11 - 0
src/views/qw/sopTemp/index.vue

@@ -23,6 +23,15 @@
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
+      <el-form-item label="模板编号" prop="id">
+        <el-input
+          v-model="queryParams.id"
+          placeholder="请输入模板编号"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
       <el-form-item label="状态" prop="status">
         <el-select v-model="queryParams.status" placeholder="请选择状态" clearable size="small">
           <el-option
@@ -389,6 +398,7 @@ export default {
       },
       // 查询参数
       queryParams: {
+        id:null,
         pageNum: 1,
         pageSize: 10,
         name: null,
@@ -494,6 +504,7 @@ export default {
     // 表单重置
     reset() {
       this.form = {
+        id: null,
         gap: 1,
         sendType: this.sendType,
         sort: 0,