Commit 747a242d by 李长胜

修改

1 parent 3572b590
...@@ -283,7 +283,6 @@ export default { ...@@ -283,7 +283,6 @@ export default {
goDetail(id) { goDetail(id) {
// 接口通过了跳转 // 接口通过了跳转
getClientTableDetail({ id }).then(res => { getClientTableDetail({ id }).then(res => {
console.log(res,'666')
if (res.code == '0') { if (res.code == '0') {
this.$router.push({ this.$router.push({
path: '/clientManage/clientDetail', path: '/clientManage/clientDetail',
......
...@@ -80,18 +80,25 @@ ...@@ -80,18 +80,25 @@
<span @click="goDetail(scope.scope.id)" class="blue-text">详情</span> <span @click="goDetail(scope.scope.id)" class="blue-text">详情</span>
</template> </template>
</GLTable> </GLTable>
<basic-dialog title="" width="547px" :isVisible="dialogVisible" btnOkLabel="我知道了" :isHasCancelBtn="false" @confirmDialog="handleConfirm" @closeDialog="handleClose">
<div class="content-body">
<p>该客户暂无员工跟进,无法查看该客户详情,</p>
<p class="bottomText">赶紧去加好友吧!</p>
</div>
</basic-dialog>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { getTableDetail, getDetailTableList } from '@/api/modules/clientGroupManage' import { getTableDetail, getDetailTableList,getClientTableDetail } from '@/api/modules/clientGroupManage'
import url from '@/assets/clientDataOverview/nodata.png' import url from '@/assets/clientDataOverview/nodata.png'
export default { export default {
name: 'clientGroupDetail', name: 'clientGroupDetail',
data() { data() {
return { return {
dialogVisible:false,
titles:['全部客户','潜在客户','退群客户','跟进员工'], titles:['全部客户','潜在客户','退群客户','跟进员工'],
currentIndex:0, currentIndex:0,
groupName: this.$route.query.groupName, groupName: this.$route.query.groupName,
...@@ -179,7 +186,7 @@ export default { ...@@ -179,7 +186,7 @@ export default {
}, },
{ {
label: '邀请人', label: '邀请人',
prop: 'invitePerson', prop: 'invitor',
}, },
{ {
...@@ -279,10 +286,23 @@ export default { ...@@ -279,10 +286,23 @@ export default {
this.$refs.clientGroupDetail.refreshTable() this.$refs.clientGroupDetail.refreshTable()
}, },
goDetail(id) { goDetail(id) {
this.$router.push({ // 接口通过了跳转
path: '/clientManage/clientDetail', getClientTableDetail({ id }).then(res => {
query: { if (res.code == '0') {
id: id this.$router.push({
path: '/clientManage/clientDetail',
query: {
id: id
}
})
} else if (res.code == '-1' && res.message=='该客户暂无员工跟进,无法查看该客户详情') {
this.dialogVisible = true
this.$message.error(`${res.message}`)
}else{
this.$message({
type:'error',
message:res.message
})
} }
}) })
} }
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
<span class="toptips"> <span class="toptips">
<!-- v-if="!((merchantModel==2 && accountLevel==4) || (merchantModel==1 && accountLevel==1))" --> <!-- v-if="!((merchantModel==2 && accountLevel==4) || (merchantModel==1 && accountLevel==1))" -->
<span> <span>
共有{{ numberObj.groupCount || 0 }}个标签组,{{ numberObj.bizLabelCount || 0 }}个企业标签 共有{{ numberObj.groupCount || 0 }}个标签组<template v-if="!(merchantModel == 1 && accountLevel == 4)">,{{ numberObj.bizLabelCount || 0 }}个企业标签</template>
<template v-if="!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))">,{{ numberObj.rcLabelCount || 0 }}个自店标签</template> <template v-if="!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))">,{{ numberObj.rcLabelCount || 0 }}个自店标签</template>
</span> </span>
<span class="iconPanelWrap" v-if="!isFirstShow"> <span class="iconPanelWrap" v-if="!isFirstShow">
<el-popover placement="top" width="666" trigger="hover"> <el-popover placement="top" width="666" trigger="hover">
<div>企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;</div> <div v-if="!(merchantModel == 1 && accountLevel == 4)">企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;</div>
<div v-if="!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))">自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;</div> <div v-if="!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))">自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;</div>
<div>行业标签为通过大数据算法规则生成的标签</div> <div>行业标签为通过大数据算法规则生成的标签</div>
<img src="@/assets/tagsManage/question.png" slot="reference" alt="" /> <img src="@/assets/tagsManage/question.png" slot="reference" alt="" />
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</span> </span>
</span> </span>
<div class="initPanel" v-if="isFirstShow"> <div class="initPanel" v-if="isFirstShow">
企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个; <template v-if="!(merchantModel == 1 && accountLevel == 4)">企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;</template>
<template v-if="!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))">自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个; <template v-if="!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))">自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;
</template> </template>
行业标签为通过大数据算法规则生成的标签 行业标签为通过大数据算法规则生成的标签
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
</div> </div>
</span> </span>
<template slot="xxx" slot-scope="scope"> <template slot="xxx" slot-scope="scope">
<!-- //这版关掉自店标签 --> <!-- //这版关掉自店标签 1.0.1允许集团的门店打字店标签,也可以编辑-->
<span @click="btnClick('edit', scope.scope)" class="blue-text" v-if="scope.scope.labelType != '行业标签' && isShowEditBtn(scope.scope)">编辑标签组</span> <span @click="btnClick('edit', scope.scope)" class="blue-text" v-if="scope.scope.labelType != '行业标签' && isShowEditBtn(scope.scope)">编辑标签组</span>
</template> </template>
...@@ -79,8 +79,8 @@ ...@@ -79,8 +79,8 @@
</el-select> </el-select>
<!-- id="tagTipMsgRef" --> <!-- id="tagTipMsgRef" -->
<span class="tagTipMsg" v-if="tagDialogTitle == '添加标签组' && !tagForm.initTagsGroup"> <span class="tagTipMsg" v-if="tagDialogTitle == '添加标签组' && !tagForm.initTagsGroup">
企业标签 <template v-if="!(merchantModel == 1 && accountLevel == 4)">企业标签</template>
<template v-if="!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))">和自店标签分别</template> <template v-if="!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"><template v-if="!(merchantModel == 1 && accountLevel == 4)">和</template>自店标签分别</template>
最多3000个 最多3000个
</span> </span>
<span class="tagTipMsg" v-if="tagDialogTitle == '添加标签组' && tagForm.initTagsGroup == 1"> <span class="tagTipMsg" v-if="tagDialogTitle == '添加标签组' && tagForm.initTagsGroup == 1">
...@@ -301,12 +301,22 @@ export default { ...@@ -301,12 +301,22 @@ export default {
this.merchantModel = this.$globalState.session.merchantModel this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel this.accountLevel = this.$globalState.session.accountLevel
this.userType = this.$globalState.session.userType this.userType = this.$globalState.session.userType
console.log(this.$globalState.session,'555')
// if (this.merchantModel == 1) { // if (this.merchantModel == 1) {
// if (!(this.accountLevel == 1 && this.userType == 1)) this.tagsGroupList.splice(0, 1) //只能创建自店标签 // if (!(this.accountLevel == 1 && this.userType == 1)) this.tagsGroupList.splice(0, 1) //只能创建自店标签
// } // }
//1.0.1集团下的门店只能创建自店标签
if (this.merchantModel == 1) {
if ((this.accountLevel == 4 )) {
this.tagsGroupList.splice(0, 1) //只能创建自店标签
this.tagsPartFormList[0].options.splice(0, 1)
}
}
if (this.merchantModel == 1) { if (this.merchantModel == 1) {
if (this.accountLevel == 1) { if (this.accountLevel == 1) {
//集团下的工厂只能创建企微标签,自店标签不要了 //集团下的工厂只能创建企微标签,自店标签不要了
this.tagsGroupList.splice(1, 1) this.tagsGroupList.splice(1, 1)
this.tagsPartFormList[0].options.splice(1, 1) this.tagsPartFormList[0].options.splice(1, 1)
} }
...@@ -352,7 +362,7 @@ export default { ...@@ -352,7 +362,7 @@ export default {
isShowEditBtn(row) { isShowEditBtn(row) {
//集团模式下,只有集团能可以编辑企业,自店,其他只能编辑自店 //集团模式下,只有集团能可以编辑企业,自店,其他只能编辑自店
//单店模式下,仅门店和员工可以编辑 //单店模式下,仅门店和员工可以编辑
if (row.labelType == '自店标签') { if (row.labelType == '自店标签' && (!(this.merchantModel == 1 && this.accountLevel == 4))) {
return false return false
} }
if (this.merchantModel == 1) { if (this.merchantModel == 1) {
...@@ -427,8 +437,12 @@ export default { ...@@ -427,8 +437,12 @@ export default {
switch (pType) { switch (pType) {
case 'create': case 'create':
this.tagDialogTitle = '添加标签组' this.tagDialogTitle = '添加标签组'
this.tagForm.tagsForm = '' this.tagForm.tagsForm = ''
this.tagForm.initTagsGroup = 1 //默认改成,企业标签 this.tagForm.initTagsGroup = 1 //默认改成,企业标签
if(this.merchantModel == 1 && this.accountLevel==4 ){
this.tagForm.initTagsGroup = 2
}
this.$set(this.tagDialogData[0], 'disabled', false) this.$set(this.tagDialogData[0], 'disabled', false)
this.handleClose() this.handleClose()
...@@ -515,6 +529,9 @@ export default { ...@@ -515,6 +529,9 @@ export default {
if (!this.tagVisible && this.$refs.tagForm) { if (!this.tagVisible && this.$refs.tagForm) {
this.$refs.tagForm.$children[0].resetFields() this.$refs.tagForm.$children[0].resetFields()
this.tagForm.initTagsGroup = 1 this.tagForm.initTagsGroup = 1
if(this.merchantModel == 1 && this.accountLevel==4 ){
this.tagForm.initTagsGroup = 2
}
this.tagForm.tagsName = '' this.tagForm.tagsName = ''
// console.log(this.tagForm.initTagsGroup, '7777') // console.log(this.tagForm.initTagsGroup, '7777')
// console.log(this.tagForm, '内') // console.log(this.tagForm, '内')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!