Commit 2ba642ae by 前端

Merge branch 'xuyl_dev_v2.9.0' into 'v2.9.0'

更新v2.9.0代码

See merge request !145
2 parents 09dd9b75 7128de28
...@@ -33,11 +33,16 @@ ...@@ -33,11 +33,16 @@
<el-tooltip effect="dark" placement="top"> <el-tooltip effect="dark" placement="top">
<div class="qiweiItem" slot="content"> <div class="qiweiItem" slot="content">
<span class="qiweiItemNick">{{ item.nickName }}</span> <span class="qiweiItemNick">{{ item.nickName }}</span>
<span class="qiweiItemCrop" :class="[item.type == 1 ? 'pure-green-text' : '', item.type == 2 ? 'pure-yello-text' : '']">@{{ item.corpName }}</span> <span class="qiweiItemCrop"
:class="[item.type == 1 ? 'pure-green-text' : '', item.type == 2 ? 'pure-yello-text' : '']">@{{ item.corpName
}}</span>
</div> </div>
<div class="qiweiItem" :class="[item.type == 1 ? 'pure-green-text' : '', item.type == 2 ? 'pure-yello-text' : '']"> <div class="qiweiItem"
:class="[item.type == 1 ? 'pure-green-text' : '', item.type == 2 ? 'pure-yello-text' : '']">
<span class="qiweiItemNick">{{ item.nickName }}</span> <span class="qiweiItemNick">{{ item.nickName }}</span>
<span class="qiweiItemCrop" :class="[item.type == 1 ? 'pure-green-text' : '', item.type == 2 ? 'pure-yello-text' : '']">@{{ item.corpName }}</span> <span class="qiweiItemCrop"
:class="[item.type == 1 ? 'pure-green-text' : '', item.type == 2 ? 'pure-yello-text' : '']">@{{ item.corpName
}}</span>
</div> </div>
</el-tooltip> </el-tooltip>
</div> </div>
...@@ -45,7 +50,9 @@ ...@@ -45,7 +50,9 @@
</div> </div>
<p> <p>
<span>联系电话:</span> <span>联系电话:</span>
<span class="ellipsis-1" v-if="leftPanelInfo.customerPhone || leftPanelInfo.status == -1">{{ leftPanelInfo.customerPhone }}</span> <span class="ellipsis-1"
v-if="leftPanelInfo.customerPhone || leftPanelInfo.status == -1">{{ leftPanelInfo.customerPhone
}}</span>
<span <span
class="phone-fill" class="phone-fill"
v-else v-else
...@@ -63,24 +70,28 @@ ...@@ -63,24 +70,28 @@
</p> </p>
<p> <p>
<span>性别:</span> <span>性别:</span>
<span class="ellipsis-1">{{ leftPanelInfo.customerSex == 0 ? '未知' : leftPanelInfo.customerSex == 1 ? '男' : leftPanelInfo.customerSex == 2 ? '女' : '' }}</span> <span
class="ellipsis-1">{{ leftPanelInfo.customerSex == 0 ? "未知" : leftPanelInfo.customerSex == 1 ? "男" : leftPanelInfo.customerSex == 2 ? "女" : ""
}}</span>
</p> </p>
<p> <p>
<span>企业简称:</span> <span>企业简称:</span>
<span class="ellipsis-1">{{ leftPanelInfo.corpName || '待完善' }}</span> <span class="ellipsis-1">{{ leftPanelInfo.corpName || "待完善" }}</span>
</p> </p>
<p> <p>
<span>职务:</span> <span>职务:</span>
<span class="ellipsis-1">{{ leftPanelInfo.position || '待完善' }}</span> <span class="ellipsis-1">{{ leftPanelInfo.position || "待完善" }}</span>
</p> </p>
<p v-if="leftPanelInfo.type == 2"> <p v-if="leftPanelInfo.type == 2">
<span>类型:</span> <span>类型:</span>
<span class="ellipsis-1">{{ leftPanelInfo.type == 1 ? '微信用户' : leftPanelInfo.type == 2 ? '企微用户' : '' }}</span> <span
class="ellipsis-1">{{ leftPanelInfo.type == 1 ? "微信用户" : leftPanelInfo.type == 2 ? "企微用户" : ""
}}</span>
</p> </p>
<p> <p>
<span>是否加入企微:</span> <span>是否加入企微:</span>
<!-- 1-是,2-否 --> <!-- 1-是,2-否 -->
<span>{{ leftPanelInfo.isJoin == 1 ? '是' : leftPanelInfo.isJoin == 0 ? '否' : '' }}</span> <span>{{ leftPanelInfo.isJoin == 1 ? "是" : leftPanelInfo.isJoin == 0 ? "否" : "" }}</span>
</p> </p>
<template v-if="isCgacar"> <template v-if="isCgacar">
<p> <p>
...@@ -97,7 +108,7 @@ ...@@ -97,7 +108,7 @@
<p> <p>
<span>当前状态:</span> <span>当前状态:</span>
<span>{{ leftPanelInfo.status == -1 ? '删除好友' : leftPanelInfo.status == 0 ? '正常' : '' }}</span> <span>{{ leftPanelInfo.status == -1 ? "删除好友" : leftPanelInfo.status == 0 ? "正常" : "" }}</span>
</p> </p>
<p> <p>
...@@ -135,13 +146,15 @@ ...@@ -135,13 +146,15 @@
<span class="font-14 color-58">收起</span> <span class="font-14 color-58">收起</span>
<i class="el-icon-arrow-up color-58"></i> <i class="el-icon-arrow-up color-58"></i>
</div> </div>
<div class="expande-button" @click="expandeClick(true, 'expande')" v-if="vehicleTableData.length > 1 && !expande"> <div class="expande-button" @click="expandeClick(true, 'expande')"
v-if="vehicleTableData.length > 1 && !expande">
<span class="font-14 color-58">更多车辆</span> <span class="font-14 color-58">更多车辆</span>
<i class="el-icon-arrow-down color-58"></i> <i class="el-icon-arrow-down color-58"></i>
</div> </div>
</div> </div>
<layout-row class="layout-detail" :layoutData="vehicleTableData" :layoutParams="vehicleTableParams" :isHidden="expande"></layout-row> <layout-row class="layout-detail" :layoutData="vehicleTableData" :layoutParams="vehicleTableParams"
:isHidden="expande"></layout-row>
<template v-if="deviceTableData.length > 0"> <template v-if="deviceTableData.length > 0">
<div class="public-text"> <div class="public-text">
<div class="public-text-info font-16 flex"> <div class="public-text-info font-16 flex">
...@@ -152,31 +165,36 @@ ...@@ -152,31 +165,36 @@
<span class="font-14 color-58">收起</span> <span class="font-14 color-58">收起</span>
<i class="el-icon-arrow-up color-58"></i> <i class="el-icon-arrow-up color-58"></i>
</div> </div>
<div class="expande-button" @click="expandeClick(true, 'deviceExpande')" v-if="deviceTableData.length > 1 && !deviceExpande"> <div class="expande-button" @click="expandeClick(true, 'deviceExpande')"
v-if="deviceTableData.length > 1 && !deviceExpande">
<span class="font-14 color-58">更多设备</span> <span class="font-14 color-58">更多设备</span>
<i class="el-icon-arrow-down color-58"></i> <i class="el-icon-arrow-down color-58"></i>
</div> </div>
</div> </div>
<layout-row class="layout-detail" :layoutData="deviceTableData" :layoutParams="deviceTableParams" :isHidden="deviceExpande"></layout-row> <layout-row class="layout-detail" :layoutData="deviceTableData" :layoutParams="deviceTableParams"
:isHidden="deviceExpande"></layout-row>
</template> </template>
<template v-if="guaranteeTableData.length > 0"> <template v-if="guaranteeTableData.length > 0">
<div class="public-text"> <div class="public-text">
<div class="public-text-info font-16 flex"> <div class="public-text-info font-16 flex">
保单信息 <!-- 保单信息-->
{{isCgacar?'数字化权益':'售前权益'}}
<span class="font-14 color-58">{{ guaranteeTableData.length || 0 }}个</span> <span class="font-14 color-58">{{ guaranteeTableData.length || 0 }}个</span>
</div> </div>
<div class="expande-button" v-if="guaranteeExpande" @click="expandeClick(false, 'guaranteeExpande')"> <div class="expande-button" v-if="guaranteeExpande" @click="expandeClick(false, 'guaranteeExpande')">
<span class="font-14 color-58">收起</span> <span class="font-14 color-58">收起</span>
<i class="el-icon-arrow-up color-58"></i> <i class="el-icon-arrow-up color-58"></i>
</div> </div>
<div class="expande-button" @click="expandeClick(true, 'guaranteeExpande')" v-if="guaranteeTableData.length > 1 && !guaranteeExpande"> <div class="expande-button" @click="expandeClick(true, 'guaranteeExpande')"
v-if="guaranteeTableData.length > 1 && !guaranteeExpande">
<span class="font-14 color-58">更多保单</span> <span class="font-14 color-58">更多保单</span>
<i class="el-icon-arrow-down color-58"></i> <i class="el-icon-arrow-down color-58"></i>
</div> </div>
</div> </div>
<layout-row class="layout-detail" :layoutData="guaranteeTableData" :layoutParams="guaranteeTableParams" :isHidden="guaranteeExpande"></layout-row> <layout-row class="layout-detail" :layoutData="guaranteeTableData" :layoutParams="guaranteeTableParams"
:isHidden="guaranteeExpande"></layout-row>
</template> </template>
<div class="public-text"> <div class="public-text">
<div class="public-text-info font-16 flex"> <div class="public-text-info font-16 flex">
...@@ -185,16 +203,18 @@ ...@@ -185,16 +203,18 @@
</div> </div>
</div> </div>
<!--2. 员工跟进表 --> <!--2. 员工跟进表 -->
<GLTable :hasNum="false" class="table" :tableData="employTableList" :hasPage="false" :tableParams="employTableParams" :headerStyle="{ height: '54px' }"></GLTable> <GLTable :hasNum="false" class="table" :tableData="employTableList" :hasPage="false"
:tableParams="employTableParams" :headerStyle="{ height: '54px' }"></GLTable>
<div class="public-text"> <div class="public-text">
<div class="public-text-info font-16 flex"> <div class="public-text-info font-16 flex">
所属群聊 所属群聊
<span class="font-14 color-58">{{ clientGroupTableList.length || 0 }}个</span> <span class="font-14 color-58">{{ clientGroupTableList.length || 0 }}个</span>
</div> </div>
</div> </div>
<GLTable class="table" :hasNum="false" :tableData="clientGroupTableList" :hasPage="false" :tableParams="clientGroupTableParams" :headerStyle="{ height: '54px' }"> <GLTable class="table" :hasNum="false" :tableData="clientGroupTableList" :hasPage="false"
:tableParams="clientGroupTableParams" :headerStyle="{ height: '54px' }">
<span slot="groupName" slot-scope="scope" class="groupName"> <span slot="groupName" slot-scope="scope" class="groupName">
<span>{{ scope.scope.groupName || '群聊(默认)' }}</span> <span>{{ scope.scope.groupName || "群聊(默认)" }}</span>
</span> </span>
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="goDetail(scope.scope.id, scope.scope.groupName)">详情</el-button> <el-button type="text" @click="goDetail(scope.scope.id, scope.scope.groupName)">详情</el-button>
...@@ -209,22 +229,30 @@ ...@@ -209,22 +229,30 @@
<tip-panel class="mg2" panelMinHeight="45px" :panelContent="panelContent"></tip-panel> <tip-panel class="mg2" panelMinHeight="45px" :panelContent="panelContent"></tip-panel>
<!-- v-if="userType == 2" --> <!-- v-if="userType == 2" -->
<el-button type="primary" class="addTagBtn" size="small" @click="btnClick('create')" v-if="userType == 2">设置标签</el-button> <el-button type="primary" class="addTagBtn" size="small" @click="btnClick('create')" v-if="userType == 2">
<GLTable class="table" ref="clientTagsListRef" :hasNum="false" :noDataImg="url" noDataText="客户暂无已添加的标签" :tableData="clientTagsList" :hasPage="false" :tableParams="tagsParams" :headerStyle="{ height: '54px' }"> 设置标签
</el-button>
<GLTable class="table" ref="clientTagsListRef" :hasNum="false" :noDataImg="url"
noDataText="客户暂无已添加的标签" :tableData="clientTagsList" :hasPage="false"
:tableParams="tagsParams" :headerStyle="{ height: '54px' }">
<span slot="labelGroupInfo" slot-scope="scope"> <span slot="labelGroupInfo" slot-scope="scope">
<span>{{ scope.scope.labelGroupInfo.labelGroupName }}</span> <span>{{ scope.scope.labelGroupInfo.labelGroupName }}</span>
</span> </span>
<span slot="labelInfoList" slot-scope="scope"> <span slot="labelInfoList" slot-scope="scope">
<div id="allTagsWrap" class="allTagsWrap"> <div id="allTagsWrap" class="allTagsWrap">
<span v-for="(item, index) in showTagArray(scope.scope.labelInfoList)" :key="index" class="ellipsis-1 tag-box-wrap"> <span v-for="(item, index) in showTagArray(scope.scope.labelInfoList)" :key="index"
class="ellipsis-1 tag-box-wrap">
<el-tooltip class="item" :content="item.labelName" placement="top"> <el-tooltip class="item" :content="item.labelName" placement="top">
<span>{{ item.labelName }}</span> <span>{{ item.labelName }}</span>
</el-tooltip> </el-tooltip>
</span> </span>
<el-popover v-if="scope.scope.labelInfoList.length > 9" class="ellipsis-1 tag-box-wrap" placement="top" width="600" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。"> <el-popover v-if="scope.scope.labelInfoList.length > 9" class="ellipsis-1 tag-box-wrap" placement="top"
width="600" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<span slot="reference">...({{ scope.scope.labelInfoList.length }})</span> <span slot="reference">...({{ scope.scope.labelInfoList.length }})</span>
<div class="entmicro-hover" style="height: 214px; overflow-y: auto"> <div class="entmicro-hover" style="height: 214px; overflow-y: auto">
<el-tag type="info" class="ellipsis-1" style="margin-right: 10px; margin-bottom: 10px; max-width: 200px" v-for="(i, sindex) in scope.scope.labelInfoList" :key="sindex" :disable-transitions="false"> <el-tag type="info" class="ellipsis-1"
style="margin-right: 10px; margin-bottom: 10px; max-width: 200px"
v-for="(i, sindex) in scope.scope.labelInfoList" :key="sindex" :disable-transitions="false">
<el-tooltip class="item" :content="i.labelName" placement="top"> <el-tooltip class="item" :content="i.labelName" placement="top">
<span>{{ i.labelName }}</span> <span>{{ i.labelName }}</span>
</el-tooltip> </el-tooltip>
...@@ -252,11 +280,12 @@ ...@@ -252,11 +280,12 @@
<el-button type="primary" size="small" @click="phoneConfirmDialog">确 定</el-button> <el-button type="primary" size="small" @click="phoneConfirmDialog">确 定</el-button>
</span> </span>
</GLDialog> </GLDialog>
<GLDialog :title="tagsDialogTitle" :isDestroyClose="true" :btnLoading="sloading" :isShowThirdBtn="true" :isShowCloseBtn="true" @btnEvent="goNewTag" :visible.sync="tagsVisible" > <GLDialog :title="tagsDialogTitle" :isDestroyClose="true" :btnLoading="sloading" :isShowThirdBtn="true"
:isShowCloseBtn="true" @btnEvent="goNewTag" :visible.sync="tagsVisible">
<div> <div>
<p class="hint-text color-6"> <p class="hint-text color-6">
<span class="color-3">说明:</span> <span class="color-3">说明:</span>
仅支持{{ '企业' | tagType }}标签 仅支持{{ "企业" | tagType }}标签
<span v-if="merchantModel == 1">和自店标签</span> <span v-if="merchantModel == 1">和自店标签</span>
进行人工维护和设置 进行人工维护和设置
</p> </p>
...@@ -269,7 +298,9 @@ ...@@ -269,7 +298,9 @@
<div class="label-name white-hide color-71 mt10">{{ labels.labelGroup.name }}:</div> <div class="label-name white-hide color-71 mt10">{{ labels.labelGroup.name }}:</div>
<div class="label-value flex"> <div class="label-value flex">
<template v-for="(label, i) in labels.labelList"> <template v-for="(label, i) in labels.labelList">
<div :class="['label', 'color-3', 'white-hide', 'mt10', label.checked ? 'isChecked' : '']" :style="{ width: label.name.length > 10 ? '145px' : auto }" :key="label.id" @click="choose(index, ids, i)"> <div :class="['label', 'color-3', 'white-hide', 'mt10', label.checked ? 'isChecked' : '']"
:style="{ width: label.name.length > 10 ? '145px' : auto }" :key="label.id"
@click="choose(index, ids, i)">
<template v-if="label.name.length < 10">{{ label.name }}</template> <template v-if="label.name.length < 10">{{ label.name }}</template>
<el-tooltip class="item" :content="label.name" placement="top" v-else> <el-tooltip class="item" :content="label.name" placement="top" v-else>
<span>{{ label.name }}</span> <span>{{ label.name }}</span>
...@@ -294,26 +325,33 @@ ...@@ -294,26 +325,33 @@
</template> </template>
<script> <script>
import { getAllTagTree, getSingleClientTag, addSingleClientTag, getTableDetail, perfectCustomerPhone } from '@/api/modules/clientManage' import {
import tipPanel from '@/components/tipPanel/index.vue' getAllTagTree,
import url from '@/assets/clientDetail/noDataBox.png' getSingleClientTag,
addSingleClientTag,
getTableDetail,
perfectCustomerPhone
} from "@/api/modules/clientManage";
import tipPanel from "@/components/tipPanel/index.vue";
import url from "@/assets/clientDetail/noDataBox.png";
export default { export default {
name: 'clientDetail', name: "clientDetail",
components: { components: {
tipPanel tipPanel
}, },
data() { data() {
return { return {
contactPhone: '', contactPhone: "",
isShowBaseInfo: true, isShowBaseInfo: true,
isShowTooltip: false, isShowTooltip: false,
remark: '', remark: "",
sloading: false, sloading: false,
loading: false, loading: false,
expande: false, //车辆 expande: false, //车辆
deviceExpande: false, //设备 deviceExpande: false, //设备
guaranteeExpande: false, //保单 guaranteeExpande: false, //保单
panelContent: this.$globalState.session.merchantModel == 1 ? '说明:标签信息包含跟进员工标记的集团标签和自店标签,以及通过大数据算法生成的系统标签' : '说明:标签信息包含跟进员工标记的企业标签和自店标签,以及通过大数据算法生成的系统标签', panelContent: this.$globalState.session.merchantModel == 1 ? "说明:标签信息包含跟进员工标记的集团标签和自店标签,以及通过大数据算法生成的系统标签" : "说明:标签信息包含跟进员工标记的企业标签和自店标签,以及通过大数据算法生成的系统标签",
url: url, url: url,
leftPanelInfo: {}, leftPanelInfo: {},
labelIdList: [], //存放用户被标记标签的id labelIdList: [], //存放用户被标记标签的id
...@@ -321,180 +359,180 @@ export default { ...@@ -321,180 +359,180 @@ export default {
vehicleTableData: [], vehicleTableData: [],
vehicleTableParams: [ vehicleTableParams: [
{ {
label: '车架号:', label: "车架号:",
prop: 'standNo', prop: "standNo",
addHtml: 'standNo' addHtml: "standNo"
}, },
{ {
label: '车牌号:', label: "车牌号:",
prop: 'vehicleNo' prop: "vehicleNo"
}, },
{ {
label: '发动机号:', label: "发动机号:",
prop: 'engineNumber' prop: "engineNumber"
}, },
{ {
label: '车辆品牌:', label: "车辆品牌:",
prop: 'vehicleBrand' prop: "vehicleBrand"
}, },
{ {
label: '车系:', label: "车系:",
prop: 'vehicleTrain' prop: "vehicleTrain"
}, },
{ {
label: '车型:', label: "车型:",
prop: 'vehicleType' prop: "vehicleType"
}, },
{ {
label: '车身颜色:', label: "车身颜色:",
prop: 'vehicleColor' prop: "vehicleColor"
}, },
{ {
label: '购车价格:', label: "购车价格:",
prop: 'vehiclePrice' prop: "vehiclePrice"
}, },
{ {
label: '购车时间:', label: "购车时间:",
prop: 'buyTime' prop: "buyTime"
}, },
{ {
label: '最近保养时间:', label: "最近保养时间:",
prop: 'maintRecTime' prop: "maintRecTime"
}, },
{ {
label: '保险开始时间:', label: "车险起保时间:",
prop: 'insBgnTime' prop: "insBgnTime"
}, },
{ {
label: '保险到期时间:', label: "车险终保时间:",
prop: 'insEndTime' prop: "insEndTime"
} }
], ],
deviceTableData: [], deviceTableData: [],
deviceTableParams: [ deviceTableParams: [
{ {
label: '设备号(SN/IMEI):', label: "设备号(SN/IMEI):",
prop: 'sn', prop: "sn",
addHtml: 'standNo' addHtml: "standNo"
},
{
label: '设备流量卡(ICCID):',
prop: 'iccId'
},
{
label: '设备类型:',
prop: 'deviceType'
}, },
{ {
label: '设备型号:', label: "设备流量卡(ICCID):",
prop: 'deviceModel' prop: "iccId"
}, },
{ {
label: '验证码:', label: "设备类型:",
prop: 'verificationCode' prop: "deviceType"
},
{
label: '批次号:',
prop: 'batchNo'
},
{
label: '绑定车辆(车架号):',
prop: 'standNo'
}, },
// {
// label: '设备型号:',
// prop: 'deviceModel'
// },
// {
// label: '验证码:',
// prop: 'verificationCode'
// },
// {
// label: '批次号:',
// prop: 'batchNo'
// },
{ {
label: '设备激活时间:', label: "绑定车辆(车架号):",
prop: 'deviceActiveTime' prop: "standNo"
} }
// {
// label: '设备激活时间:',
// prop: 'deviceActiveTime'
// }
], ],
guaranteeTableData: [], //保单 guaranteeTableData: [], //保单
guaranteeTableParams: [ guaranteeTableParams: [
{ {
label: '保单号:', label: "保单号:",
prop: 'attInsureOrder', prop: "attInsureOrder",
addHtml: 'standNo' addHtml: "standNo"
}, },
{ {
label: '产品名称:', label: "产品名称:",
prop: 'attProductName' prop: "attProductName"
}, },
{ {
label: '服务期限:', label: "服务期限:",
prop: 'attServicePeriod' prop: "attServicePeriod"
}, },
{ {
label: '服务公司:', label: "服务公司:",
prop: 'attServiceCompany' prop: "attServiceCompany"
}, },
{ {
label: '保险生效时间:', label: "保险生效时间:",
prop: 'attInsureStartTime' prop: "attInsureStartTime"
}, },
{ {
label: '保险到期时间:', label: "保险到期时间:",
prop: 'attInsureEndTime' prop: "attInsureEndTime"
}, },
{ {
label: '保险提单时间:', label: "保险提单时间:",
prop: 'attInsureSubmitTime' prop: "attInsureSubmitTime"
}, },
{ {
label: '绑定车辆:', label: "绑定车辆:",
prop: 'standNo' prop: "standNo"
} }
], ],
//员工跟进 //员工跟进
employTableParams: { employTableParams: {
listName: 'staffFollows', listName: "staffFollows",
tableOption: false, tableOption: false,
tableColumns: [ tableColumns: [
{ {
label: '跟进员工', label: "跟进员工",
prop: 'staffName', prop: "staffName",
align: 'left', align: "left",
minWidth: 120 minWidth: 120
}, },
{ {
label: '所属部门', label: "所属部门",
prop: 'departmentName', prop: "departmentName",
align: 'left', align: "left",
line: 1, line: 1,
width: 120 width: 120
}, },
{ {
label: '添加时间', label: "添加时间",
prop: 'addTime', prop: "addTime",
minWidth: 180, minWidth: 180,
align: 'left' align: "left"
}, },
{ {
label: '来源', label: "来源",
prop: 'addWayName', prop: "addWayName",
width: 90 width: 90
}, },
{ {
label: '添加类型', label: "添加类型",
prop: 'addType', prop: "addType",
addHtml: 'addType', addHtml: "addType",
width: 170, width: 170,
align: 'left' align: "left"
}, },
{ {
label: '备注手机号', label: "备注手机号",
prop: 'remarkMobiles', prop: "remarkMobiles",
minWidth: 140, minWidth: 140,
align: 'left' align: "left"
}, },
{ {
label: '备注', label: "备注",
prop: 'remark', prop: "remark",
align: 'left', align: "left",
line: 1, line: 1,
width: 230 width: 230
}, },
{ {
label: '描述', label: "描述",
prop: 'description', prop: "description",
align: 'left', align: "left",
line: 1, line: 1,
width: 150 width: 150
} }
...@@ -503,46 +541,46 @@ export default { ...@@ -503,46 +541,46 @@ export default {
employTableList: [], employTableList: [],
clientGroupTableList: [], clientGroupTableList: [],
clientGroupTableParams: { clientGroupTableParams: {
listName: 'customerBases', listName: "customerBases",
tableColumns: [ tableColumns: [
{ {
label: '群聊名称', label: "群聊名称",
prop: 'groupName', prop: "groupName",
addHtml: 'groupName', addHtml: "groupName",
align: 'left', align: "left",
width: 260 width: 260
}, },
{ {
label: '群主', label: "群主",
prop: 'groupHostName', prop: "groupHostName",
align: 'left', align: "left",
line: 1, line: 1,
width: 200 width: 200
}, },
{ {
label: '客户数', label: "客户数",
prop: 'membersNumber', prop: "membersNumber",
align: 'left', align: "left",
width: 180 width: 180
}, },
{ {
label: '本群昵称', label: "本群昵称",
prop: 'groupNickName', prop: "groupNickName",
align: 'left', align: "left",
line: 1, line: 1,
width: 200 width: 200
}, },
{ {
label: '入群时间', label: "入群时间",
prop: 'joinTime', prop: "joinTime",
align: 'left', align: "left",
width: 200 width: 200
}, },
{ {
label: '操作', label: "操作",
prop: 'optionBtns', prop: "optionBtns",
addHtml: 'optionBtns', addHtml: "optionBtns",
fixed: 'right' fixed: "right"
} }
] ]
// tableOption:{ // tableOption:{
...@@ -554,33 +592,33 @@ export default { ...@@ -554,33 +592,33 @@ export default {
clientTagsList: [], clientTagsList: [],
nickNameList: [], nickNameList: [],
tagsParams: { tagsParams: {
listName: 'labelInfos', listName: "labelInfos",
tableOption: false, tableOption: false,
tableColumns: [ tableColumns: [
{ {
label: '标签组', label: "标签组",
prop: 'labelGroupInfo', prop: "labelGroupInfo",
addHtml: 'labelGroupInfo', addHtml: "labelGroupInfo",
width: '230' width: "230"
}, },
{ {
label: '标签组类型', label: "标签组类型",
prop: 'labelGroupInfo', prop: "labelGroupInfo",
formatter: cellValue => { formatter: cellValue => {
return cellValue.labelGroupInfo.labelGroupType == '企业标签' && this.$globalState.session.merchantModel == 1 ? '集团标签' : cellValue.labelGroupInfo.labelGroupType return cellValue.labelGroupInfo.labelGroupType == "企业标签" && this.$globalState.session.merchantModel == 1 ? "集团标签" : cellValue.labelGroupInfo.labelGroupType;
}, },
width: '160' width: "160"
}, },
{ {
label: '已打标签', label: "已打标签",
prop: 'labelInfoList', prop: "labelInfoList",
addHtml: 'labelInfoList', addHtml: "labelInfoList",
align: 'left' align: "left"
} }
] ]
}, },
//弹窗数据 //弹窗数据
tagsDialogTitle: '设置标签', tagsDialogTitle: "设置标签",
tagsVisible: false, tagsVisible: false,
phoneVisible: false, phoneVisible: false,
companyTagsList: [], companyTagsList: [],
...@@ -596,22 +634,22 @@ export default { ...@@ -596,22 +634,22 @@ export default {
userid: 0, //小龙需要用户id userid: 0, //小龙需要用户id
staffId: 0, staffId: 0,
isCgacar: false isCgacar: false
} };
}, },
created() { created() {
if (window.__POWERED_BY_QIANKUN__) { if (window.__POWERED_BY_QIANKUN__) {
//运行在qiankun容器中 //运行在qiankun容器中
this.merchantId = this.$globalState.session.merchantId this.merchantId = this.$globalState.session.merchantId;
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;
} }
if (location.host.includes('cgacar')) { if (location.host.includes("cgacar")) {
this.isCgacar = true this.isCgacar = true;
} }
this.id = this.$route.query.id ? this.$route.query.id : '' this.id = this.$route.query.id ? this.$route.query.id : "";
this.getPageDetail() this.getPageDetail();
//舍弃调用小龙的获取单用户标签的接口 //舍弃调用小龙的获取单用户标签的接口
// this.getSingleClientTag(this.$route.query.id, this.merchantId) // this.getSingleClientTag(this.$route.query.id, this.merchantId)
}, },
...@@ -622,40 +660,40 @@ export default { ...@@ -622,40 +660,40 @@ export default {
// } else { // } else {
// return val.length // return val.length
// } // }
if (val && JSON.stringify(val[0]) === '{}') { if (val && JSON.stringify(val[0]) === "{}") {
return 0 return 0;
} else { } else {
return val.length return val.length;
} }
} }
}, },
methods: { methods: {
// 切换基本信息的显示 // 切换基本信息的显示
switchBaseInfo() { switchBaseInfo() {
this.isShowBaseInfo = !this.isShowBaseInfo this.isShowBaseInfo = !this.isShowBaseInfo;
}, },
expandeClick(value, data) { expandeClick(value, data) {
this[data] = value this[data] = value;
}, },
closePanel() { closePanel() {
this.isFirstShow = false this.isFirstShow = false;
}, },
tabClick(index) { tabClick(index) {
this.currentIndex = index this.currentIndex = index;
this.$nextTick(() => { this.$nextTick(() => {
if (this.currentIndex == 2 && this.clientTagsList.length <= 0) { if (this.currentIndex == 2 && this.clientTagsList.length <= 0) {
this.$refs.clientTagsListRef.setTableHeightFun() this.$refs.clientTagsListRef.setTableHeightFun();
// this.$refs.clientTagsListRef.tableHeightValues = // this.$refs.clientTagsListRef.tableHeightValues =
} }
}) });
}, },
showTagArray(list) { showTagArray(list) {
if (list.length == 0) { if (list.length == 0) {
return [] return [];
} }
return list.slice(0, 9) return list.slice(0, 9);
}, },
/* * /* *
用途:js中字符串超长作固定长度加省略号(...)处理 用途:js中字符串超长作固定长度加省略号(...)处理
...@@ -665,92 +703,92 @@ export default { ...@@ -665,92 +703,92 @@ export default {
*/ */
myStandNo(standNo) { myStandNo(standNo) {
if (!standNo) { if (!standNo) {
return '' return "";
} }
return standNo.substring(standNo.length - 6) return standNo.substring(standNo.length - 6);
}, },
beautySub(value) { beautySub(value) {
if (value && value.length >= 6) { if (value && value.length >= 6) {
return value.substring(0, 5) + '...' return value.substring(0, 5) + "...";
} else { } else {
return value return value;
} }
}, },
addTypeToLable(num) { addTypeToLable(num) {
return num === 0 ? '成员主动添加' : num === 1 ? '客户主动添加' : num === 2 ? '成员共享/管理员分配' : '' return num === 0 ? "成员主动添加" : num === 1 ? "客户主动添加" : num === 2 ? "成员共享/管理员分配" : "";
}, },
goDetail(id, name) { goDetail(id, name) {
var newname = name || '群聊(默认)' var newname = name || "群聊(默认)";
this.$router.push({ this.$router.push({
path: '/clientGroupManage/clientGroupDetail', path: "/clientGroupManage/clientGroupDetail",
query: { query: {
id: id, id: id,
groupName: newname groupName: newname
} }
}) });
}, },
//oneId,merchantId,仅为测试用 //oneId,merchantId,仅为测试用
getSingleClientTag(oneId = 14120314541863, merchantId = 10001001) { getSingleClientTag(oneId = 14120314541863, merchantId = 10001001) {
let param = { let param = {
'req.oneId': oneId, "req.oneId": oneId,
'req.merchantIdsStr': merchantId, "req.merchantIdsStr": merchantId,
'req.edition': this.merchantModel "req.edition": this.merchantModel
} };
getSingleClientTag(param) getSingleClientTag(param)
.then(res => { .then(res => {
if (res.code == 0) { if (res.code == 0) {
if (!res.userLabelUnitList) { if (!res.userLabelUnitList) {
return return;
} }
let filterArr = [] let filterArr = [];
res.userLabelUnitList.forEach(item => { res.userLabelUnitList.forEach(item => {
filterArr.push(...item.labelInfoList) filterArr.push(...item.labelInfoList);
}) });
this.tagsList = filterArr this.tagsList = filterArr;
this.labelIdList = filterArr.map(item => item.labelId) this.labelIdList = filterArr.map(item => item.labelId);
// //
} else { } else {
this.$message.error(res.message) this.$message.error(res.message);
} }
}) })
.catch(err => { .catch(err => {
console.error(err, '捕获错误') console.error(err, "捕获错误");
}) });
}, },
async getPageDetail(id = this.$route.query.id) { async getPageDetail(id = this.$route.query.id) {
this.loading = true this.loading = true;
const res = await getTableDetail({ oneId: id }) const res = await getTableDetail({ oneId: id });
this.loading = false this.loading = false;
if (!res) { if (!res) {
return false return false;
} }
this.userid = res.userid this.userid = res.userid;
this.staffId = res.staffId this.staffId = res.staffId;
this.leftPanelInfo = res.info this.leftPanelInfo = res.info;
this.vehicleTableData = res.vehicleInfoList || [{}] this.vehicleTableData = res.vehicleInfoList || [{}];
this.deviceTableData = res.deviceInfoList || [] this.deviceTableData = res.deviceInfoList || [];
this.guaranteeTableData = res.insureInfoList || [] //保单 this.guaranteeTableData = res.insureInfoList || []; //保单
this.employTableList = res.staffFollows || [] this.employTableList = res.staffFollows || [];
this.clientGroupTableList = res.customerBases || [] this.clientGroupTableList = res.customerBases || [];
this.tagsList = res.labels || [] this.tagsList = res.labels || [];
this.labelIdList = this.handleLabelId(res.labelInfos) this.labelIdList = this.handleLabelId(res.labelInfos);
this.clientTagsList = res.labelInfos || [] this.clientTagsList = res.labelInfos || [];
this.nickNameList = res.nickNameList || [] this.nickNameList = res.nickNameList || [];
}, },
handleLabelId(data) { handleLabelId(data) {
let array = [] let array = [];
data && data &&
data.forEach(label => { data.forEach(label => {
label.labelInfoList.forEach(info => { label.labelInfoList.forEach(info => {
array.push(info.labelId) array.push(info.labelId);
}) });
}) });
return array return array;
}, },
goNewTag() { goNewTag() {
this.$router.push({ path: '/tagsManage/index' }) this.$router.push({ path: "/tagsManage/index" });
}, },
// goBack() { // goBack() {
// this.$router.go(-1) // this.$router.go(-1)
...@@ -760,133 +798,138 @@ export default { ...@@ -760,133 +798,138 @@ export default {
btnClick(pType, scope) { btnClick(pType, scope) {
switch (pType) { switch (pType) {
case 'create': case "create":
this.tagsDialogTitle = '设置标签' this.tagsDialogTitle = "设置标签";
this.getAllTags() this.getAllTags();
// this.handleClose(); // this.handleClose();
break break;
case 'edit': case "edit":
this.tagsDialogTitle = '编辑标签' this.tagsDialogTitle = "编辑标签";
//调编辑的接口 //调编辑的接口
} }
}, },
getAllTags() { getAllTags() {
getAllTagTree({ 'labelTreeReq.shopId': this.merchantId, 'labelTreeReq.edition': this.merchantModel, 'labelTreeReq.pageNum': 1, 'labelTreeReq.pageSize': 3000 }) getAllTagTree({
"labelTreeReq.shopId": this.merchantId,
"labelTreeReq.edition": this.merchantModel,
"labelTreeReq.pageNum": 1,
"labelTreeReq.pageSize": 3000
})
.then(res => { .then(res => {
if (res.code == 0) { if (res.code == 0) {
let allTagsList = [ let allTagsList = [
{ {
labelType: '', labelType: "",
children: [] children: []
}, },
{ {
labelType: '', labelType: "",
children: [] children: []
} }
] ];
res.data.labelTreeRets.forEach(labels => { res.data.labelTreeRets.forEach(labels => {
labels.labelList.forEach(ele => { labels.labelList.forEach(ele => {
ele.checked = false ele.checked = false;
ele.original = false ele.original = false;
this.labelIdList.forEach(id => { this.labelIdList.forEach(id => {
if (id == ele.id) { if (id == ele.id) {
ele.checked = true ele.checked = true;
ele.old = 1 ele.old = 1;
} }
}) });
}) });
if (labels.labelType == '企业标签') { if (labels.labelType == "企业标签") {
allTagsList[0].labelType = this.$globalState.session.merchantModel == 1 ? '集团标签' : '企业标签' allTagsList[0].labelType = this.$globalState.session.merchantModel == 1 ? "集团标签" : "企业标签";
allTagsList[0].children.push(labels) allTagsList[0].children.push(labels);
} else if (labels.labelType == '自店标签') { } else if (labels.labelType == "自店标签") {
allTagsList[1].labelType = '自店标签' allTagsList[1].labelType = "自店标签";
allTagsList[1].children.push(labels) allTagsList[1].children.push(labels);
} }
}) });
this.allTagsList = allTagsList this.allTagsList = allTagsList;
// //
} else { } else {
this.$message.error(res.message) this.$message.error(res.message);
} }
}) })
.catch(err => { .catch(err => {
console.error(err, '捕获错误') console.error(err, "捕获错误");
}) });
this.handleClose() this.handleClose();
}, },
phoneConfirmDialog() { phoneConfirmDialog() {
if (!this.contactPhone) { if (!this.contactPhone) {
this.$message.error('请输入联系号码') this.$message.error("请输入联系号码");
return return;
} }
if (!/^1[3456789]\d{9}$/.test(this.contactPhone)) { if (!/^1[3456789]\d{9}$/.test(this.contactPhone)) {
this.$message.error('联系电话不符合要求,请重新输入!') this.$message.error("联系电话不符合要求,请重新输入!");
return return;
} }
const userIdList = this.nickNameList.map(item => item.userId) const userIdList = this.nickNameList.map(item => item.userId);
let param = { let param = {
pageSize: 1, pageSize: 1,
pageNum: 1, pageNum: 1,
customerPhone: this.contactPhone, customerPhone: this.contactPhone,
userIdList userIdList
} };
this.loading = true this.loading = true;
perfectCustomerPhone(param).then(res => { perfectCustomerPhone(param).then(res => {
this.loading = false this.loading = false;
if (res) { if (res) {
this.getPageDetail(res) this.getPageDetail(res);
this.$message.success('设置成功') this.$message.success("设置成功");
} }
}) });
this.phoneVisible = false this.phoneVisible = false;
}, },
handleConfirm() { handleConfirm() {
this.sloading = true this.sloading = true;
let labelIdAddList = [] // 新增的标签 let labelIdAddList = []; // 新增的标签
let labelIdDelList = [] //取消的标签 let labelIdDelList = []; //取消的标签
this.allTagsList.forEach(labels => { this.allTagsList.forEach(labels => {
labels.children.forEach(ele => { labels.children.forEach(ele => {
ele.labelList.forEach(tag => { ele.labelList.forEach(tag => {
if (tag.old == '1' && !tag.checked) { if (tag.old == "1" && !tag.checked) {
labelIdDelList.push(tag.id) labelIdDelList.push(tag.id);
} }
if (!tag.old && tag.checked) { if (!tag.old && tag.checked) {
labelIdAddList.push(tag.id) labelIdAddList.push(tag.id);
} }
}) });
}) });
}) });
const userIdList = this.nickNameList.map(item => item.userId) const userIdList = this.nickNameList.map(item => item.userId);
let param = { let param = {
'req.OneId': this.id, "req.OneId": this.id,
'req.merchantId': this.merchantId, "req.merchantId": this.merchantId,
'req.uuId': this.userid, "req.uuId": this.userid,
'req.staffId': this.staffId, "req.staffId": this.staffId,
'req.labelIdAddList': labelIdAddList, "req.labelIdAddList": labelIdAddList,
'req.labelIdDelList': labelIdDelList, "req.labelIdDelList": labelIdDelList,
'req.userIdList': userIdList "req.userIdList": userIdList
} };
addSingleClientTag(param) addSingleClientTag(param)
.then(res => { .then(res => {
if (res.data.code == 0) { if (res.data.code == 0) {
this.sloading = false this.sloading = false;
this.$message.success('设置成功') this.$message.success("设置成功");
this.handleClose() this.handleClose();
// this.getSingleClientTag(this.id, this.merchantId) // this.getSingleClientTag(this.id, this.merchantId)
this.getPageDetail() //刷新当前页面 this.getPageDetail(); //刷新当前页面
} else { } else {
this.sloading = false this.sloading = false;
this.$message.error(res.data.message) this.$message.error(res.data.message);
} }
}) })
.catch(err => { .catch(err => {
this.sloading = false this.sloading = false;
console.error(err, '错误捕获') console.error(err, "错误捕获");
}) })
.finally(() => { .finally(() => {
this.sloading = false this.sloading = false;
}) });
}, },
handleClose() { handleClose() {
// if (this.tagsVisible) { // if (this.tagsVisible) {
...@@ -894,55 +937,58 @@ export default { ...@@ -894,55 +937,58 @@ export default {
// this.ownShopTagsList = [] // this.ownShopTagsList = []
// } // }
// //
this.tagsVisible = !this.tagsVisible this.tagsVisible = !this.tagsVisible;
this.allTagsList = [] this.allTagsList = [];
}, },
checkNewTag(checked, j, arr, original = false) { checkNewTag(checked, j, arr, original = false) {
//打开弹窗就是选中的,不许去选中,不是一开始就选中的,可以去选中 //打开弹窗就是选中的,不许去选中,不是一开始就选中的,可以去选中
if (checked && original) { if (checked && original) {
return false return false;
} }
arr.forEach((item, index) => { arr.forEach((item, index) => {
if (index == j) { if (index == j) {
item.checked = !item.checked item.checked = !item.checked;
} }
}) });
let _arr = [] //筛选出只有checked:true的数组(包含了标签组对象和labelList数组) let _arr = []; //筛选出只有checked:true的数组(包含了标签组对象和labelList数组)
_arr = this.allTagsList _arr = this.allTagsList
.map(item => { .map(item => {
return { return {
...item, ...item,
labelList: item.labelList.filter(e => { labelList: item.labelList.filter(e => {
if (e.checked && !e.original) { if (e.checked && !e.original) {
return e return e;
} }
}) })
} };
}) })
.filter(ele => { .filter(ele => {
if (ele.labelList.length) { if (ele.labelList.length) {
return ele return ele;
} }
}) });
this.submitTagsList = _arr this.submitTagsList = _arr;
}, },
choose(index1, index2, index3) { choose(index1, index2, index3) {
this.allTagsList[index1].children[index2].labelList[index3].checked = !this.allTagsList[index1].children[index2].labelList[index3].checked this.allTagsList[index1].children[index2].labelList[index3].checked = !this.allTagsList[index1].children[index2].labelList[index3].checked;
} }
} }
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/styles/variables.scss'; @import '@/styles/variables.scss';
@import '@/styles/resetelement.scss'; @import '@/styles/resetelement.scss';
.pure-green-text { .pure-green-text {
color: #61cc43; color: #61cc43;
} }
.pure-yello-text { .pure-yello-text {
color: #fb8f28; color: #fb8f28;
} }
.phone-fill { .phone-fill {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
...@@ -951,26 +997,32 @@ export default { ...@@ -951,26 +997,32 @@ export default {
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
.dialog-form { .dialog-form {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 30px; padding: 30px;
label { label {
width: 100px; width: 100px;
} }
} }
.newStyle { .newStyle {
display: flex; display: flex;
font-size: 14px; font-size: 14px;
margin: 20px 0; margin: 20px 0;
.nameListItem { .nameListItem {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.qiweiItem { .qiweiItem {
max-width: 140px; max-width: 140px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
.qiweiItemNick { .qiweiItemNick {
height: 20px; height: 20px;
font-size: 14px; font-size: 14px;
...@@ -979,6 +1031,7 @@ export default { ...@@ -979,6 +1031,7 @@ export default {
line-height: 20px; line-height: 20px;
font-weight: 400; font-weight: 400;
} }
.qiweiItemCrop { .qiweiItemCrop {
margin-left: 2px; margin-left: 2px;
height: 20px; height: 20px;
...@@ -1007,11 +1060,13 @@ export default { ...@@ -1007,11 +1060,13 @@ export default {
// min-width: 98px; // min-width: 98px;
} }
} }
.overHidden { .overHidden {
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.scrm-sub-client-container { .scrm-sub-client-container {
.container { .container {
display: flex; display: flex;
...@@ -1021,6 +1076,7 @@ export default { ...@@ -1021,6 +1076,7 @@ export default {
min-height: calc(100vh - 194px); min-height: calc(100vh - 194px);
overflow-y: auto; overflow-y: auto;
margin-bottom: 78px; margin-bottom: 78px;
.leftWrap { .leftWrap {
width: 275px; width: 275px;
min-height: calc(100vh - 170px); min-height: calc(100vh - 170px);
...@@ -1029,22 +1085,28 @@ export default { ...@@ -1029,22 +1085,28 @@ export default {
// padding: 0 20px; // padding: 0 20px;
box-sizing: border-box; box-sizing: border-box;
text-align: center; text-align: center;
.customerID { .customerID {
font-size: 14px; font-size: 14px;
} }
.leftWrapTop { .leftWrapTop {
.leftWrapBottom { .leftWrapBottom {
text-align: left; text-align: left;
} }
padding: 0 20px; padding: 0 20px;
.baseInfo { .baseInfo {
padding-top: 5px; padding-top: 5px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
span { span {
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
} }
.iconStyle { .iconStyle {
width: 16px; width: 16px;
height: 16px; height: 16px;
...@@ -1052,9 +1114,11 @@ export default { ...@@ -1052,9 +1114,11 @@ export default {
} }
} }
} }
.avatorStyle { .avatorStyle {
padding-bottom: 5px; padding-bottom: 5px;
} }
.avator { .avator {
margin: 0 auto; margin: 0 auto;
margin-top: 40px; margin-top: 40px;
...@@ -1070,6 +1134,7 @@ export default { ...@@ -1070,6 +1134,7 @@ export default {
height: 100%; height: 100%;
} }
} }
p { p {
position: relative; position: relative;
margin-top: 20px; margin-top: 20px;
...@@ -1085,6 +1150,7 @@ export default { ...@@ -1085,6 +1150,7 @@ export default {
min-width: 98px; min-width: 98px;
text-align: right; text-align: right;
} }
span:nth-child(2) { span:nth-child(2) {
display: inline-block; display: inline-block;
height: 20px; height: 20px;
...@@ -1096,6 +1162,7 @@ export default { ...@@ -1096,6 +1162,7 @@ export default {
} }
} }
} }
.rightWrap { .rightWrap {
height: auto; height: auto;
margin-left: 10px; margin-left: 10px;
...@@ -1111,6 +1178,7 @@ export default { ...@@ -1111,6 +1178,7 @@ export default {
top: 0; top: 0;
display: flex; display: flex;
background-color: $bgColor; background-color: $bgColor;
.tabItemText { .tabItemText {
display: inline-block; display: inline-block;
height: 40px; height: 40px;
...@@ -1125,10 +1193,12 @@ export default { ...@@ -1125,10 +1193,12 @@ export default {
&:first-child { &:first-child {
border-left: 0; border-left: 0;
} }
font-weight: 400; font-weight: 400;
font-size: 14px; font-size: 14px;
color: #37383a; color: #37383a;
} }
.activeItemText { .activeItemText {
border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0;
color: $btnBlue; color: $btnBlue;
...@@ -1137,26 +1207,32 @@ export default { ...@@ -1137,26 +1207,32 @@ export default {
border-bottom: 0 !important; border-bottom: 0 !important;
} }
} }
.addTagBtn { .addTagBtn {
margin-bottom: 10px; margin-bottom: 10px;
margin-left: 20px; margin-left: 20px;
} }
// 处理客户标签的样式 // 处理客户标签的样式
.clientTagsWrap { .clientTagsWrap {
/deep/ .el-table:before { /deep/ .el-table:before {
background-color: #fff !important; background-color: #fff !important;
} }
/deep/ .el-table__empty-block { /deep/ .el-table__empty-block {
height: auto; height: auto;
position: absolute; position: absolute;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
} }
/deep/ .glsx-table .emptyBg .noDataImg { /deep/ .glsx-table .emptyBg .noDataImg {
margin-top: 0; margin-top: 0;
} }
.allTagsWrap { .allTagsWrap {
position: relative; position: relative;
.tag-box-wrap { .tag-box-wrap {
display: inline-block; display: inline-block;
...@@ -1180,6 +1256,7 @@ export default { ...@@ -1180,6 +1256,7 @@ export default {
} }
} }
} }
.showOverTooltip { .showOverTooltip {
display: -webkit-box; display: -webkit-box;
text-overflow: ellipsis; text-overflow: ellipsis;
...@@ -1193,17 +1270,21 @@ export default { ...@@ -1193,17 +1270,21 @@ export default {
height: 20px; height: 20px;
line-height: 20px; line-height: 20px;
margin-bottom: 10px; margin-bottom: 10px;
&:not(:first-child) { &:not(:first-child) {
margin-top: 40px; margin-top: 40px;
} }
span { span {
vertical-align: middle; vertical-align: middle;
} }
span:first-child { span:first-child {
font-size: 18px; font-size: 18px;
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
} }
span:nth-child(2) { span:nth-child(2) {
margin-left: 6px; margin-left: 6px;
font-size: 14px; font-size: 14px;
...@@ -1213,6 +1294,7 @@ export default { ...@@ -1213,6 +1294,7 @@ export default {
line-height: 20px; line-height: 20px;
} }
} }
.tagsWrap { .tagsWrap {
min-height: 74px; min-height: 74px;
border: 1px solid #e8e8ea; border: 1px solid #e8e8ea;
...@@ -1220,6 +1302,7 @@ export default { ...@@ -1220,6 +1302,7 @@ export default {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
align-content: flex-start; align-content: flex-start;
.tag { .tag {
display: inline-block; display: inline-block;
margin-top: 22px; margin-top: 22px;
...@@ -1240,12 +1323,14 @@ export default { ...@@ -1240,12 +1323,14 @@ export default {
// text-overflow: ellipsis; // text-overflow: ellipsis;
max-width: 178px; max-width: 178px;
} }
.addTag { .addTag {
width: 68px; width: 68px;
height: 26px; height: 26px;
color: #fff; color: #fff;
background: $btnBlue; background: $btnBlue;
border-radius: 4px; border-radius: 4px;
&:hover { &:hover {
cursor: pointer; cursor: pointer;
} }
...@@ -1253,6 +1338,7 @@ export default { ...@@ -1253,6 +1338,7 @@ export default {
} }
} }
} }
.footer-panel { .footer-panel {
position: fixed; position: fixed;
bottom: 0px; bottom: 0px;
...@@ -1262,6 +1348,7 @@ export default { ...@@ -1262,6 +1348,7 @@ export default {
background: #ffffff; background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1); box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
z-index: 999; z-index: 999;
div { div {
display: inline-block; display: inline-block;
position: relative; position: relative;
...@@ -1271,39 +1358,47 @@ export default { ...@@ -1271,39 +1358,47 @@ export default {
margin-left: -110px; margin-left: -110px;
} }
} }
.tags { .tags {
/deep/.app-dialog { /deep/ .app-dialog {
.container { .container {
padding: 32px 74px; padding: 32px 74px;
} }
} }
.hint-text { .hint-text {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
// color: #666; // color: #666;
line-height: 18px; line-height: 18px;
} }
.mg10 { .mg10 {
margin-left: 38px; margin-left: 38px;
} }
.mt10 { .mt10 {
margin-top: 10px; margin-top: 10px;
} }
.labels-wrap { .labels-wrap {
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
line-height: 20px; line-height: 20px;
margin-top: 20px; margin-top: 20px;
.label-group-name { .label-group-name {
margin-bottom: 2px; margin-bottom: 2px;
font-weight: 600; font-weight: 600;
} }
.labels { .labels {
.label-name { .label-name {
box-sizing: border-box; box-sizing: border-box;
font-weight: 400; font-weight: 400;
} }
.label { .label {
height: 26px; height: 26px;
background: #fafbfe; background: #fafbfe;
...@@ -1317,8 +1412,10 @@ export default { ...@@ -1317,8 +1412,10 @@ export default {
box-sizing: border-box; box-sizing: border-box;
cursor: pointer; cursor: pointer;
} }
.isChecked { .isChecked {
border: 1px solid #5850ff !important; border: 1px solid #5850ff !important;
.select-icon { .select-icon {
width: 16px; width: 16px;
height: 16px; height: 16px;
...@@ -1330,8 +1427,10 @@ export default { ...@@ -1330,8 +1427,10 @@ export default {
} }
} }
} }
.general-wrap { .general-wrap {
margin: 0 0 20px 0; margin: 0 0 20px 0;
.public-text { .public-text {
width: 100%; width: 100%;
height: 58px; height: 58px;
...@@ -1341,38 +1440,47 @@ export default { ...@@ -1341,38 +1440,47 @@ export default {
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
margin-bottom: 20px; margin-bottom: 20px;
&-info { &-info {
font-size: 16px; font-size: 16px;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
span { span {
margin-left: 8px; margin-left: 8px;
} }
} }
.expande-button { .expande-button {
position: absolute; position: absolute;
right: 20px; right: 20px;
top: 0; top: 0;
.el-icon-arrow-down { .el-icon-arrow-down {
font-size: 10px; font-size: 10px;
margin-left: 7px; margin-left: 7px;
} }
.el-icon-arrow-up { .el-icon-arrow-up {
font-size: 10px; font-size: 10px;
margin-left: 7px; margin-left: 7px;
} }
} }
} }
.layout-detail { .layout-detail {
margin: 0 20px; margin: 0 20px;
} }
.table { .table {
margin-bottom: 10px; margin-bottom: 10px;
padding: 0 20px; padding: 0 20px;
} }
} }
.table { .table {
padding: 0 20px; padding: 0 20px;
.groupName { .groupName {
white-space: nowrap; white-space: nowrap;
} }
......
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
<span slot="customerName" slot-scope="scope"> <span slot="customerName" slot-scope="scope">
<GLFull :labelWidth="70" :identification="`node_${scope.scope.id}`">{{ scope.scope.customerName ? scope.scope.customerName : '--' }}</GLFull> <GLFull :labelWidth="70" :identification="`node_${scope.scope.id}`">{{ scope.scope.customerName ? scope.scope.customerName : '--' }}</GLFull>
</span> </span>
<span slot="customerSex" slot-scope="scope"> <!-- <span slot="customerSex" slot-scope="scope" >-->
<span slot="customerSex" slot-scope="scope" >
<span>{{ scope.scope.customerSex == 0 ? '未知' : scope.scope.customerSex == 1 ? '男' : scope.scope.customerSex == 2 ? '女' : '' }}</span> <span>{{ scope.scope.customerSex == 0 ? '未知' : scope.scope.customerSex == 1 ? '男' : scope.scope.customerSex == 2 ? '女' : '' }}</span>
</span> </span>
<!-- 企微名称 --> <!-- 企微名称 -->
...@@ -236,12 +237,12 @@ export default { ...@@ -236,12 +237,12 @@ export default {
// mutiSelectUniqueKey: 'id', // mutiSelectUniqueKey: 'id',
tableColumns: [ tableColumns: [
{ // {
label: '客户ID', // label: '客户ID',
prop: 'oneId', // prop: 'oneId',
width: 290, // width: 290,
line: 1 // line: 1
}, // },
{ {
label: '客户名称', label: '客户名称',
prop: 'customerName', prop: 'customerName',
...@@ -443,7 +444,7 @@ export default { ...@@ -443,7 +444,7 @@ export default {
setTableHeightEvent() { setTableHeightEvent() {
this.$refs.clientManage.setTableHeightFun() this.$refs.clientManage.setTableHeightFun()
}, },
setTableFinishFun(content) { setTableFinishFun() {
//关闭默认时间30天再刷新,showDefaultTime也要设置false //关闭默认时间30天再刷新,showDefaultTime也要设置false
// if (!this.flushTime) { // if (!this.flushTime) {
// this.flushTime = true // this.flushTime = true
...@@ -457,7 +458,7 @@ export default { ...@@ -457,7 +458,7 @@ export default {
this.$refs.clientManage.data.length ? (this.$refs.clientManage.tableHeightValues = '') : this.$refs.clientManage.setTableHeightFun() this.$refs.clientManage.data.length ? (this.$refs.clientManage.tableHeightValues = '') : this.$refs.clientManage.setTableHeightFun()
}, },
getParams() { getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm)) let params = JSON.parse(JSON.stringify(this.searchForm))
if (params.daterange) { if (params.daterange) {
params.beginTime = this.searchForm.daterange[0] params.beginTime = this.searchForm.daterange[0]
params.endTime = this.searchForm.daterange[1] params.endTime = this.searchForm.daterange[1]
...@@ -487,14 +488,13 @@ export default { ...@@ -487,14 +488,13 @@ export default {
// resolve() // resolve()
// }) // })
return new Promise(async (resolve, reject) => { return new Promise(async (resolve) => {
if (Object.keys(this.$route.query).length && this.queryFlag == 0) { if (Object.keys(this.$route.query).length && this.queryFlag == 0) {
const res = JSON.parse(window.localStorage.getItem('sourceList')) const res = JSON.parse(window.localStorage.getItem('sourceList'))
let add_way = this.$route.query.addWay || '' let add_way = this.$route.query.addWay || ''
let isJoinVal = this.$route.query.isJoin || null let isJoinVal = this.$route.query.isJoin || null
let addWayObj = res.find(i => i.label === add_way) let addWayObj = res.find(i => i.label === add_way)
let addWayVal = addWayObj.value this.searchForm.addWay = addWayObj.value
this.searchForm.addWay = addWayVal
this.searchForm.isJoin = isJoinVal === null ? null : Number(isJoinVal) this.searchForm.isJoin = isJoinVal === null ? null : Number(isJoinVal)
setTimeout(() => { setTimeout(() => {
this.$refs.combiForm.expandFn() this.$refs.combiForm.expandFn()
...@@ -568,7 +568,7 @@ export default { ...@@ -568,7 +568,7 @@ export default {
}, },
//导出 //导出
handleExport() { handleExport() {
var params = this.getParams() let params = this.getParams()
clientManageExportApi(params).then(res => { clientManageExportApi(params).then(res => {
this.$Utils.exportFn(res) this.$Utils.exportFn(res)
}) })
...@@ -675,8 +675,6 @@ export default { ...@@ -675,8 +675,6 @@ export default {
} }
} }
padding: 20px 20px 30px; padding: 20px 20px 30px;
// min-width: 1300px;
background-color: #fff; background-color: #fff;
.el-button + .el-button { .el-button + .el-button {
margin-left: 10px; margin-left: 10px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!