فهرست منبع

一键群发选时间/语音模板快捷选择

三七 8 ساعت پیش
والد
کامیت
6f4201e08a

+ 11 - 0
src/api/qw/QwSopTempVoice.js

@@ -0,0 +1,11 @@
+import request from '@/utils/request'
+
+// 查询销售语音文件列表
+export function getQwSopTempVoiceCompanyUser(data) {
+    return request({
+        url: '/qw/SopTempVoice/getQwUserVoice',
+        method: 'post',
+        data: data
+    })
+}
+

+ 1 - 1
src/views/components/course/userCourseVideoDetails.vue

@@ -23,7 +23,7 @@
             <img :src="item.thumbnail" style="max-width: 150px;">
           </el-popover>
         </el-descriptions-item>
-        <el-descriptions-item label="视频描述" >
+        <el-descriptions-item label="课节标签" >
           <span v-if="item!=null">{{item.description}}</span>
         </el-descriptions-item>
         <el-descriptions-item label="时长" >

+ 32 - 1
src/views/qw/externalContact/index.vue

@@ -307,6 +307,18 @@
           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="exportLoading"
+                @click="handleExportCorpId"
+                v-hasPermi="['qw:externalContact:export']"
+            >导出(不区分主体)</el-button>
+        </el-col>
       <el-col :span="1.5">
         <el-button
           type="primary"
@@ -1371,7 +1383,8 @@ export default {
         companyUser:null,
         userRepeat: null,
         delTime: null,
-        isDownloadApp: null
+        isDownloadApp: null,
+        exportType:1, //1:导出当前主体 2:导出所有绑定的主体
       },
       //选择的标签
       selectTags:[],
@@ -2607,6 +2620,24 @@ export default {
           this.exportLoading = false;
         }).catch(() => {});
     },
+
+      handleExportCorpId(){
+          const { qwUserName, ...queryParams } = this.queryParams;
+          queryParams.exportType = 2;
+
+          this.$confirm('是否确认导出所有主体的 企业微信客户数据项?', "警告", {
+              confirmButtonText: "确定",
+              cancelButtonText: "取消",
+              type: "warning"
+          }).then(() => {
+              this.exportLoading = true;
+              return exportExternalContact(queryParams);
+          }).then(response => {
+              this.download(response.msg);
+              this.exportLoading = false;
+          }).catch(() => {});
+      },
+
     handleBatchUpdateNotesFilter() {
       this.notesOpen.open = true;
       this.notesOpen.filter = true;

+ 31 - 1
src/views/qw/externalContact/myExternalContact.vue

@@ -291,6 +291,18 @@
           v-hasPermi="['qw:externalContact:myExport']"
         >导出</el-button>
       </el-col>
+
+        <el-col :span="1.5">
+            <el-button
+                type="warning"
+                plain
+                icon="el-icon-download"
+                size="mini"
+                :loading="exportLoading"
+                @click="handleExportCorpId"
+                v-hasPermi="['qw:externalContact:myExport']"
+            >导出(不区分主体)</el-button>
+        </el-col>
       <el-col :span="1.5">
         <el-button
           type="primary"
@@ -1449,7 +1461,8 @@ export default {
         levelType:null,
         companyUser:null,
         userRepeat: null,
-        isDownloadApp: null
+        isDownloadApp: null,
+        exportType:1, //1:导出当前主体 2:导出所有绑定的主体
       },
 
       queryTagParams:{
@@ -2712,6 +2725,23 @@ export default {
           this.exportLoading = false;
         }).catch(() => {});
     },
+
+      handleExportCorpId(){
+          const { qwUserName, ...queryParams } = this.queryParams;
+          queryParams.exportType = 2;
+
+          this.$confirm('是否确认导出所有主体的 企业微信客户数据项?', "警告", {
+              confirmButtonText: "确定",
+              cancelButtonText: "取消",
+              type: "warning"
+          }).then(() => {
+              this.exportLoading = true;
+              return exportExternalContact(queryParams);
+          }).then(response => {
+              this.download(response.msg);
+              this.exportLoading = false;
+          }).catch(() => {});
+      },
     handleBatchUpdateNotesFilter() {
       this.notesOpen.open = true;
       this.notesOpen.filter = true;

+ 66 - 0
src/views/qw/sopTemp/updateSopTempSXJZ.vue

@@ -601,6 +601,7 @@
                                               placeholder="输入要转为语音的内容"
                                               style="width: 90%;margin-top: 10px;"
                                               @input="handleInputVideoText(setList.value,setList)"/>
+                                            <el-button type="primary" size="mini" plain style="margin-top: 10px;" :disabled="formType == 3 || !roles.includes('edit_sop_temp_content')" @click="openVoiceDialog(setList)">快捷语音</el-button>
 
 
                                           </div>
@@ -800,6 +801,30 @@
                append-to-body>
       <userVideo ref="QwUserVideo" @videoResult="qwUserVideoResult"></userVideo>
     </el-dialog>
+    <el-dialog :title="voiceOptions.title" :visible.sync="voiceOptions.open" width="800px" append-to-body>
+      <div style="margin-bottom: 10px;">
+        <el-input v-model="voiceOptions.keyword" placeholder="请输入关键词搜索" style="width: 300px;" clearable @clear="searchVoice" @keyup.enter.native="searchVoice">
+          <el-button slot="append" icon="el-icon-search" @click="searchVoice">搜索</el-button>
+        </el-input>
+      </div>
+      <el-table :data="voiceOptions.list" v-loading="voiceOptions.loading" highlight-current-row @current-change="handleVoiceSelect">
+        <el-table-column prop="voiceTxt" label="语音内容" min-width="200" show-overflow-tooltip></el-table-column>
+        <el-table-column label="操作" width="80" align="center">
+          <template slot-scope="scope">
+            <el-button type="text" size="mini" @click="selectVoice(scope.row)">选择</el-button>
+          </template>
+        </el-table-column>
+      </el-table>
+      <el-pagination
+        style="margin-top: 10px; text-align: right;"
+        background
+        layout="total, prev, pager, next"
+        :total="voiceOptions.total"
+        :page-size="voiceOptions.pageSize"
+        :current-page.sync="voiceOptions.pageNum"
+        @current-change="searchVoice">
+      </el-pagination>
+    </el-dialog>
     <el-dialog title="修改天数排序" :visible.sync="openSort" width="600px" append-to-body class="sort-dialog">
       <div class="sort-dialog-content">
         <div class="sort-tip">
@@ -1772,6 +1797,7 @@ import ImageUpload from "@/views/qw/sop/ImageUpload";
 import userVideo from "@/views/qw/userVideo/userVideo.vue";
 import {listReward} from "@/api/qw/luckyBag";
 import { getSmsTempList } from "@/api/company/companySmsTemp";
+import { getQwSopTempVoiceCompanyUser } from "@/api/qw/QwSopTempVoice";
 import {
   getRoles,
 } from "@/api/qw/sop";
@@ -1856,6 +1882,17 @@ export default {
         contentIndex: null,
         setIndex: null,
       },
+      voiceOptions: {
+        title: '快捷语音',
+        open: false,
+        keyword: '',
+        list: [],
+        loading: false,
+        total: 0,
+        pageNum: 1,
+        pageSize: 10,
+        currentSetList: null,
+      },
       //1 修改 2 复制 3 查看
       formType: null,
       // 查询参数
@@ -3269,6 +3306,35 @@ export default {
           this.$set(list.content[index].setting[0], fieldName, newVal);
         }
       }
+    },
+    openVoiceDialog(setList) {
+      this.voiceOptions.open = true;
+      this.voiceOptions.currentSetList = setList;
+      this.voiceOptions.keyword = '';
+      this.voiceOptions.pageNum = 1;
+      this.searchVoice();
+    },
+    searchVoice() {
+      this.voiceOptions.loading = true;
+      getQwSopTempVoiceCompanyUser({
+        pageNum: this.voiceOptions.pageNum,
+        pageSize: this.voiceOptions.pageSize,
+        keyword: this.voiceOptions.keyword || undefined,
+      }).then(response => {
+        this.voiceOptions.list = response.rows || response.list || [];
+        this.voiceOptions.total = response.total || 0;
+      }).finally(() => {
+        this.voiceOptions.loading = false;
+      });
+    },
+    selectVoice(row) {
+      if (this.voiceOptions.currentSetList) {
+        this.$set(this.voiceOptions.currentSetList, 'value', row.voiceTxt || '');
+      }
+      this.voiceOptions.open = false;
+    },
+    handleVoiceSelect(row) {
+      // 预留行选中事件
     }
   }
 };

+ 121 - 11
src/views/qw/sopUserLogsInfo/sendMsgOpenTool.vue

@@ -237,6 +237,7 @@
                         type="textarea" :rows="3" maxlength="66" show-word-limit
                         placeholder="输入要转为语音的内容" style="width: 90%;margin-top: 10px;"
                         @input="handleInputVideoText(item.value,item)"/>
+                      <el-button type="primary" size="mini" plain style="margin-top: 10px;" @click="openVoiceDialog(item)">快捷语音</el-button>
                     </div>
                     <!-- <div v-if="item.contentType == 12">
                       <el-card class="box-card">
@@ -424,17 +425,19 @@
           <el-link type="primary" class="el-icon-plus" :underline="false" @click='addSetList()'  >添加内容</el-link>
 
         </el-form-item>
-        <el-form-item label="发送时间" prop="sendTime" v-if="msgForm.draftStrategy==1" >
-          <el-time-picker
-            class="custom-input"
-            v-model="msgForm.sendTime"
-            value-format="HH:mm"
-            format="HH:mm"
-            placeholder="时间"
-            style="width: 100px;height: 20px;">
-          </el-time-picker>
-          <span class="tip" style="margin-left: 2%"> 不填时,默认为系统当前时间(立即发送)</span>
-        </el-form-item>
+          <el-form-item label="发送时间" prop="sendTime" v-if="msgForm.draftStrategy==1" >
+              <el-date-picker
+                  class="custom-input"
+                  v-model="msgForm.sendTime"
+                  type="datetime"
+                  value-format="yyyy-MM-dd HH:mm:ss"
+                  format="yyyy-MM-dd HH:mm:ss"
+                  placeholder="选择日期时间"
+                  :picker-options="pickerOptions"
+                  style="width: 220px;">
+              </el-date-picker>
+              <span class="tip" style="margin-left: 2%"> 不填时,默认为系统当前时间(立即发送)</span>
+          </el-form-item>
 
       </el-form>
       <div slot="footer" class="dialog-footer">
@@ -445,6 +448,30 @@
     <el-dialog :title="videoNumOptions.title" :visible.sync="videoNumOptions.open" width="1500px" append-to-body>
       <userVideo ref="QwUserVideo" @videoResult="qwUserVideoResult"></userVideo>
     </el-dialog>
+    <el-dialog :title="voiceOptions.title" :visible.sync="voiceOptions.open" width="800px" append-to-body>
+      <div style="margin-bottom: 10px;">
+        <el-input v-model="voiceOptions.keyword" placeholder="请输入关键词搜索" style="width: 300px;" clearable @clear="searchVoice" @keyup.enter.native="searchVoice">
+          <el-button slot="append" icon="el-icon-search" @click="searchVoice">搜索</el-button>
+        </el-input>
+      </div>
+      <el-table :data="voiceOptions.list" v-loading="voiceOptions.loading" highlight-current-row @current-change="handleVoiceSelect">
+        <el-table-column prop="voiceTxt" label="语音内容" min-width="200" show-overflow-tooltip></el-table-column>
+        <el-table-column label="操作" width="80" align="center">
+          <template slot-scope="scope">
+            <el-button type="text" size="mini" @click="selectVoice(scope.row)">选择</el-button>
+          </template>
+        </el-table-column>
+      </el-table>
+      <el-pagination
+        style="margin-top: 10px; text-align: right;"
+        background
+        layout="total, prev, pager, next"
+        :total="voiceOptions.total"
+        :page-size="voiceOptions.pageSize"
+        :current-page.sync="voiceOptions.pageNum"
+        @current-change="searchVoice">
+      </el-pagination>
+    </el-dialog>
   </div>
 </template>
 
@@ -456,6 +483,7 @@ import userVideo from "@/views/qw/userVideo/userVideo";
 import {listToLiveNoEnd} from "@/api/live/live";
 import {listReward} from "@/api/qw/luckyBag";
 import { getSmsTempList } from "@/api/company/companySmsTemp";
+import { getQwSopTempVoiceCompanyUser } from "@/api/qw/QwSopTempVoice";
 
 
 export default {
@@ -478,6 +506,17 @@ export default {
         content: null,
         contentIndex: null,
       },
+      voiceOptions: {
+        title: '快捷语音',
+        open: false,
+        keyword: '',
+        list: [],
+        loading: false,
+        total: 0,
+        pageNum: 1,
+        pageSize: 10,
+        currentItem: null,
+      },
       //上传语音的遮罩层
       voiceLoading :false,
       uploadUrl:process.env.VUE_APP_BASE_API+"/common/uploadOSS",
@@ -565,6 +604,48 @@ export default {
       },
       msgRules:{},
       liveList: [],
+      pickerOptions: {
+            shortcuts: [
+                {
+                    text: '现在',
+                    onClick(picker) {
+                        picker.$emit('pick', new Date());
+                    }
+                },
+                {
+                    text: '1小时后',
+                    onClick(picker) {
+                        const date = new Date();
+                        date.setTime(date.getTime() + 3600 * 1000);
+                        picker.$emit('pick', date);
+                    }
+                },
+                {
+                    text: '明天此时',
+                    onClick(picker) {
+                        const date = new Date();
+                        date.setTime(date.getTime() + 3600 * 1000 * 24);
+                        picker.$emit('pick', date);
+                    }
+                },
+                {
+                    text: '后天此时',
+                    onClick(picker) {
+                        const date = new Date();
+                        date.setTime(date.getTime() + 3600 * 1000 * 24 * 2);
+                        picker.$emit('pick', date);
+                    }
+                },
+                {
+                    text: '一周后',
+                    onClick(picker) {
+                        const date = new Date();
+                        date.setTime(date.getTime() + 3600 * 1000 * 24 * 7);
+                        picker.$emit('pick', date);
+                    }
+                }
+            ]
+        },
     };
   },
 
@@ -1181,6 +1262,35 @@ export default {
     },
     liveDisabled(){
       return !!this.msgForm && !!this.msgForm.liveId ;
+    },
+    openVoiceDialog(item) {
+      this.voiceOptions.open = true;
+      this.voiceOptions.currentItem = item;
+      this.voiceOptions.keyword = '';
+      this.voiceOptions.pageNum = 1;
+      this.searchVoice();
+    },
+    searchVoice() {
+      this.voiceOptions.loading = true;
+      getQwSopTempVoiceCompanyUser({
+        pageNum: this.voiceOptions.pageNum,
+        pageSize: this.voiceOptions.pageSize,
+        keyword: this.voiceOptions.keyword || undefined,
+      }).then(response => {
+        this.voiceOptions.list = response.rows || response.list || [];
+        this.voiceOptions.total = response.total || 0;
+      }).finally(() => {
+        this.voiceOptions.loading = false;
+      });
+    },
+    selectVoice(row) {
+      if (this.voiceOptions.currentItem) {
+        this.$set(this.voiceOptions.currentItem, 'value', row.voiceTxt || '');
+      }
+      this.voiceOptions.open = false;
+    },
+    handleVoiceSelect(row) {
+      // 预留行选中事件
     }
   }
 };

+ 120 - 10
src/views/qw/sopUserLogsInfo/sendMsgSopOpenTool.vue

@@ -162,6 +162,7 @@
                         type="textarea" :rows="3" maxlength="66" show-word-limit
                         placeholder="输入要转为语音的内容" style="width: 90%;margin-top: 10px;"
                         @input="handleInputVideoText(item.value,item)"/>
+                      <el-button type="primary" size="mini" plain style="margin-top: 10px;" @click="openVoiceDialog(item)">快捷语音</el-button>
                     </div>
                     <div v-if="item.contentType == 8">
                       <el-button type="primary"
@@ -300,14 +301,16 @@
 
         </el-form-item>
         <el-form-item label="发送时间" prop="sendTime" v-if="msgForm.draftStrategy==1" >
-          <el-time-picker
+          <el-date-picker
             class="custom-input"
             v-model="msgForm.sendTime"
-            value-format="HH:mm"
-            format="HH:mm"
-            placeholder="时间"
-            style="width: 100px;height: 20px;">
-          </el-time-picker>
+            type="datetime"
+            value-format="yyyy-MM-dd HH:mm:ss"
+            format="yyyy-MM-dd HH:mm:ss"
+            placeholder="选择日期时间"
+            :picker-options="pickerOptions"
+            style="width: 220px;">
+          </el-date-picker>
           <span class="tip" style="margin-left: 2%"> 不填时,默认为系统当前时间(立即发送)</span>
         </el-form-item>
 
@@ -320,6 +323,30 @@
     <el-dialog :title="videoNumOptions.title" :visible.sync="videoNumOptions.open" width="1500px" append-to-body>
       <userVideo ref="QwUserVideo" @videoResult="qwUserVideoResult"></userVideo>
     </el-dialog>
+    <el-dialog :title="voiceOptions.title" :visible.sync="voiceOptions.open" width="800px" append-to-body>
+      <div style="margin-bottom: 10px;">
+        <el-input v-model="voiceOptions.keyword" placeholder="请输入关键词搜索" style="width: 300px;" clearable @clear="searchVoice" @keyup.enter.native="searchVoice">
+          <el-button slot="append" icon="el-icon-search" @click="searchVoice">搜索</el-button>
+        </el-input>
+      </div>
+      <el-table :data="voiceOptions.list" v-loading="voiceOptions.loading" highlight-current-row @current-change="handleVoiceSelect">
+        <el-table-column prop="voiceTxt" label="语音内容" min-width="200" show-overflow-tooltip></el-table-column>
+        <el-table-column label="操作" width="80" align="center">
+          <template slot-scope="scope">
+            <el-button type="text" size="mini" @click="selectVoice(scope.row)">选择</el-button>
+          </template>
+        </el-table-column>
+      </el-table>
+      <el-pagination
+        style="margin-top: 10px; text-align: right;"
+        background
+        layout="total, prev, pager, next"
+        :total="voiceOptions.total"
+        :page-size="voiceOptions.pageSize"
+        :current-page.sync="voiceOptions.pageNum"
+        @current-change="searchVoice">
+      </el-pagination>
+    </el-dialog>
   </div>
 </template>
 
@@ -330,6 +357,7 @@ import {courseList, videoList} from "@/api/qw/sop";
 import userVideo from "@/views/qw/userVideo/userVideo";
 import {listReward} from "@/api/qw/luckyBag";
 import {listToLiveNoEnd} from "@/api/live/live";
+import { getQwSopTempVoiceCompanyUser } from "@/api/qw/QwSopTempVoice";
 
 
 export default {
@@ -352,6 +380,17 @@ export default {
         content: null,
         contentIndex: null,
       },
+      voiceOptions: {
+        title: '快捷语音',
+        open: false,
+        keyword: '',
+        list: [],
+        loading: false,
+        total: 0,
+        pageNum: 1,
+        pageSize: 10,
+        currentItem: null,
+      },
       //上传语音的遮罩层
       voiceLoading :false,
       uploadUrl:process.env.VUE_APP_BASE_API+"/common/uploadOSS",
@@ -438,6 +477,48 @@ export default {
         ],
       },
       msgRules:{},
+      pickerOptions: {
+        shortcuts: [
+          {
+            text: '现在',
+            onClick(picker) {
+              picker.$emit('pick', new Date());
+            }
+          },
+          {
+            text: '1小时后',
+            onClick(picker) {
+              const date = new Date();
+              date.setTime(date.getTime() + 3600 * 1000);
+              picker.$emit('pick', date);
+            }
+          },
+          {
+            text: '明天此时',
+            onClick(picker) {
+              const date = new Date();
+              date.setTime(date.getTime() + 3600 * 1000 * 24);
+              picker.$emit('pick', date);
+            }
+          },
+          {
+            text: '后天此时',
+            onClick(picker) {
+              const date = new Date();
+              date.setTime(date.getTime() + 3600 * 1000 * 24 * 2);
+              picker.$emit('pick', date);
+            }
+          },
+          {
+            text: '一周后',
+            onClick(picker) {
+              const date = new Date();
+              date.setTime(date.getTime() + 3600 * 1000 * 24 * 7);
+              picker.$emit('pick', date);
+            }
+          }
+        ]
+      },
     };
   },
 
@@ -521,7 +602,7 @@ export default {
               this.$set(this.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
             }
 
-            if ( this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17 
+            if ( this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17
               || this.setting[i].contentType == 23){//新增APP 看课 跳转短链回填封面
               this.$set(this.setting[i], 'miniprogramPicUrl', selectedCourse.dictImgUrl);
             }
@@ -552,7 +633,7 @@ export default {
               }
             }
 
-            if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17 
+            if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17
               || this.setting[i].contentType == 23){//新增APP 看课 跳转短链回填标题
               this.$set(this.setting[i], 'miniprogramTitle', selectedVideo.dictLabel);
 
@@ -781,7 +862,7 @@ export default {
               this.$set(this.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
 
             }
-            if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17 
+            if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17
               || this.setting[i].contentType == 23){
               this.$set(this.setting[i], 'miniprogramPicUrl', selectedCourse.dictImgUrl);
 
@@ -809,7 +890,7 @@ export default {
               }
 
             }
-            if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17 
+            if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17
               || this.setting[i].contentType == 23){
               this.$set(this.setting[i], 'miniprogramTitle', selectedVideo.dictLabel);
 
@@ -964,6 +1045,35 @@ export default {
       this.sendMsgOpen.open = false;
       this.resetSendMsgSop();
     },
+    openVoiceDialog(item) {
+      this.voiceOptions.open = true;
+      this.voiceOptions.currentItem = item;
+      this.voiceOptions.keyword = '';
+      this.voiceOptions.pageNum = 1;
+      this.searchVoice();
+    },
+    searchVoice() {
+      this.voiceOptions.loading = true;
+      getQwSopTempVoiceCompanyUser({
+        pageNum: this.voiceOptions.pageNum,
+        pageSize: this.voiceOptions.pageSize,
+        keyword: this.voiceOptions.keyword || undefined,
+      }).then(response => {
+        this.voiceOptions.list = response.rows || response.list || [];
+        this.voiceOptions.total = response.total || 0;
+      }).finally(() => {
+        this.voiceOptions.loading = false;
+      });
+    },
+    selectVoice(row) {
+      if (this.voiceOptions.currentItem) {
+        this.$set(this.voiceOptions.currentItem, 'value', row.voiceTxt || '');
+      }
+      this.voiceOptions.open = false;
+    },
+    handleVoiceSelect(row) {
+      // 预留行选中事件
+    },
 
   }
 };

+ 66 - 0
src/views/qw/sopUserLogsInfo/sopUserLogsInfoDetails.vue

@@ -406,6 +406,7 @@
                         type="textarea" :rows="3" maxlength="66" show-word-limit
                         placeholder="输入要转为语音的内容" style="width: 90%;margin-top: 10px;"
                         @input="handleInputVideoText(item.value,item)"/>
+                      <el-button type="primary" size="mini" plain style="margin-top: 10px;" @click="openVoiceDialog(item)">快捷语音</el-button>
                     </div>
                     <div v-if="item.contentType == 12 || item.contentType == 24">
                       <!--                                           <div >-->
@@ -660,6 +661,30 @@
     <el-dialog :title="videoNumOptions.title" :visible.sync="videoNumOptions.open" width="1500px" append-to-body>
       <userVideo ref="QwUserVideo" @videoResult="qwUserVideoResult"></userVideo>
     </el-dialog>
+    <el-dialog :title="voiceOptions.title" :visible.sync="voiceOptions.open" width="800px" append-to-body>
+      <div style="margin-bottom: 10px;">
+        <el-input v-model="voiceOptions.keyword" placeholder="请输入关键词搜索" style="width: 300px;" clearable @clear="searchVoice" @keyup.enter.native="searchVoice">
+          <el-button slot="append" icon="el-icon-search" @click="searchVoice">搜索</el-button>
+        </el-input>
+      </div>
+      <el-table :data="voiceOptions.list" v-loading="voiceOptions.loading" highlight-current-row @current-change="handleVoiceSelect">
+        <el-table-column prop="voiceTxt" label="语音内容" min-width="200" show-overflow-tooltip></el-table-column>
+        <el-table-column label="操作" width="80" align="center">
+          <template slot-scope="scope">
+            <el-button type="text" size="mini" @click="selectVoice(scope.row)">选择</el-button>
+          </template>
+        </el-table-column>
+      </el-table>
+      <el-pagination
+        style="margin-top: 10px; text-align: right;"
+        background
+        layout="total, prev, pager, next"
+        :total="voiceOptions.total"
+        :page-size="voiceOptions.pageSize"
+        :current-page.sync="voiceOptions.pageNum"
+        @current-change="searchVoice">
+      </el-pagination>
+    </el-dialog>
   </div>
 </template>
 
@@ -683,6 +708,7 @@ import PaginationMore from "../../../components/PaginationMore/index.vue";
 import {listToLiveNoEnd} from "@/api/live/live";
 import {listReward} from "@/api/qw/luckyBag";
 import { getSmsTempList } from "@/api/company/companySmsTemp";
+import { getQwSopTempVoiceCompanyUser } from "@/api/qw/QwSopTempVoice";
 
 export default {
   name: "sopUserLogsInfoDetails",
@@ -724,6 +750,17 @@ export default {
         content: null,
         contentIndex: null,
       },
+      voiceOptions: {
+        title: '快捷语音',
+        open: false,
+        keyword: '',
+        list: [],
+        loading: false,
+        total: 0,
+        pageNum: 1,
+        pageSize: 10,
+        currentItem: null,
+      },
       // sopUserLogsInfo表格数据
       sopUserLogsInfoList: [],
       sysFsSopWatchStatus: [],
@@ -1730,6 +1767,35 @@ export default {
     },
     liveDisabled(){
       return !!this.msgForm && !!this.msgForm.liveId ;
+    },
+    openVoiceDialog(item) {
+      this.voiceOptions.open = true;
+      this.voiceOptions.currentItem = item;
+      this.voiceOptions.keyword = '';
+      this.voiceOptions.pageNum = 1;
+      this.searchVoice();
+    },
+    searchVoice() {
+      this.voiceOptions.loading = true;
+      getQwSopTempVoiceCompanyUser({
+        pageNum: this.voiceOptions.pageNum,
+        pageSize: this.voiceOptions.pageSize,
+        keyword: this.voiceOptions.keyword || undefined,
+      }).then(response => {
+        this.voiceOptions.list = response.rows || response.list || [];
+        this.voiceOptions.total = response.total || 0;
+      }).finally(() => {
+        this.voiceOptions.loading = false;
+      });
+    },
+    selectVoice(row) {
+      if (this.voiceOptions.currentItem) {
+        this.$set(this.voiceOptions.currentItem, 'value', row.voiceTxt || '');
+      }
+      this.voiceOptions.open = false;
+    },
+    handleVoiceSelect(row) {
+      // 预留行选中事件
     }
   }
 };

+ 1 - 1
src/views/qw/user/qwUserList.vue

@@ -16,7 +16,7 @@
           placeholder="请输入后台员工昵称"
           clearable
           size="small"
-          @keydown.enter.native="handleQueryEnter"
+          @input="handleQuery"
         />
       </el-form-item>
       <el-form-item label="企微员工部门" prop="deptName">