|
|
@@ -120,6 +120,15 @@
|
|
|
@click="handleBindCompanyUserCode"
|
|
|
>生成注册/绑定销售二维码</el-button>
|
|
|
</el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ size="mini"
|
|
|
+ :disabled="multiple"
|
|
|
+ @click="handleBindReplyTxtView"
|
|
|
+ >账号绑定默认回复文本</el-button>
|
|
|
+ </el-col>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
|
@@ -215,6 +224,8 @@
|
|
|
:type="scope.row.isAllowedAllRegister === 1 ? 'success' : 'info'">{{scope.row.isAllowedAllRegister === 1 ? '是' : '否' }}</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="客服回复文本" align="center" prop="replyText">
|
|
|
+ </el-table-column>
|
|
|
<!-- <el-table-column label="允许客户能看其他销售课" align="center" prop="isAllowedEveryoneView" width="80px">-->
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
<!-- <el-tag-->
|
|
|
@@ -647,6 +658,25 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
+ <!-- 设置默认回复文本弹框 -->
|
|
|
+ <el-dialog title="设置默认回复" :visible.sync="bindReplyTxtViewOpen" width="500px" append-to-body>
|
|
|
+ <el-form ref="bindReplyTxtForm" :model="bindReplyTxtForm" label-width="80px">
|
|
|
+ <el-form-item label="回复内容">
|
|
|
+ <el-input
|
|
|
+ v-model="bindReplyTxtForm.replyText"
|
|
|
+ type="textarea"
|
|
|
+ :rows="4"
|
|
|
+ placeholder="请输入默认回复内容"
|
|
|
+ maxlength="500"
|
|
|
+ show-word-limit
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="bindReplyTxtViewOpen = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="submitBindReplyTxt">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
<el-dialog :title="doctor.title" :visible.sync="doctor.open" width="800px" append-to-body>
|
|
|
<selectDoctor ref="selectDoctor" @bindCompanyUserDoctorId="bindCompanyUserDoctorId"></selectDoctor>
|
|
|
</el-dialog>
|
|
|
@@ -669,7 +699,7 @@ import {
|
|
|
generateSubDomain,
|
|
|
setIsRegisterMember,
|
|
|
updateCompanyUserAreaList,
|
|
|
- isAllowedAllRegister,isAllowedEveryoneView, unBindDoctorId, bindDoctorId,updateBatchUserRoles,changeCreateStatus
|
|
|
+ isAllowedAllRegister,isAllowedEveryoneView, unBindDoctorId, bindDoctorId,updateBatchUserRoles,changeCreateStatus,bindCompanyUserReplyTxt
|
|
|
} from "@/api/company/companyUser";
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
import { treeselect } from "@/api/company/companyDept";
|
|
|
@@ -866,12 +896,17 @@ export default {
|
|
|
// 是否允许注册会员开关
|
|
|
allowedAllRegisterOpen: false,
|
|
|
allowedEveryoneViewOpen: false,
|
|
|
+ //是否展示默认回复文本弹框
|
|
|
+ bindReplyTxtViewOpen: false,
|
|
|
allowedAllRegisterForm: {
|
|
|
status: true
|
|
|
},
|
|
|
allowedEveryoneViewForm: {
|
|
|
status: true
|
|
|
},
|
|
|
+ bindReplyTxtForm: {
|
|
|
+ replyText: null
|
|
|
+ },
|
|
|
// 在 data() 中添加
|
|
|
batchRoleDialogVisible: false,
|
|
|
selectedRoleIds: [],
|
|
|
@@ -1490,6 +1525,11 @@ export default {
|
|
|
this.allowedAllRegisterOpen = true;
|
|
|
// this.allowedAllRegisterForm.status = true;
|
|
|
},
|
|
|
+ handleBindReplyTxtView() {
|
|
|
+ this.bindReplyTxtViewOpen = true;
|
|
|
+ // 重置表单内容
|
|
|
+ this.bindReplyTxtForm.replyText = null;
|
|
|
+ },
|
|
|
|
|
|
handleAllowedEveryoneView() {
|
|
|
this.allowedEveryoneViewOpen = true;
|
|
|
@@ -1505,6 +1545,23 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ submitBindReplyTxt() {
|
|
|
+ // 验证回复内容不能为空
|
|
|
+ if (!this.bindReplyTxtForm.replyText || !this.bindReplyTxtForm.replyText.trim()) {
|
|
|
+ this.$message.error('回复内容不能为空');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ bindCompanyUserReplyTxt({ replyText: this.bindReplyTxtForm.replyText.trim() }, this.ids).then(response => {
|
|
|
+ if (response.code === 200) {
|
|
|
+ this.$message.success('默认回复文本设置成功');
|
|
|
+ this.bindReplyTxtViewOpen = false;
|
|
|
+ this.bindReplyTxtForm.replyText = null;
|
|
|
+ this.getList();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
submitAllowedEveryoneViewForm() {
|
|
|
isAllowedEveryoneView({ status: this.allowedEveryoneViewForm.status }, this.ids).then(response => {
|
|
|
if (response.code === 200) {
|