Commit 8a6d7be1 by 无尘

fix: 修改人群

parent 3a99e6e1
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-28 16:51:22
* @LastEditors: 无尘
* @LastEditTime: 2020-09-08 16:38:47
* @LastEditTime: 2020-09-08 18:09:06
-->
<template>
......@@ -413,6 +413,17 @@ export default {
.font-22 {
font-size: 22px;
}
.move-row-cell {
.icontuozhuaiopen {
display: none;
}
&:hover {
.icontuozhuaiopen {
display: inline-block;
vertical-align: middle;
}
}
}
.clerk-tag-body {
.clerk-tag-left {
position: relative;
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-27 10:16:37
* @LastEditors: 无尘
* @LastEditTime: 2020-09-08 16:36:18
* @LastEditTime: 2020-09-08 18:08:51
-->
<template>
......@@ -346,6 +346,17 @@ export default {
.w-162 {
width: 162px;
}
.move-row-cell {
.icontuozhuaiopen {
display: none;
}
&:hover {
.icontuozhuaiopen {
display: inline-block;
vertical-align: middle;
}
}
}
.crowd-scene-table {
.line-18 {
line-height: 18px;
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-09-08 15:17:24
* @LastEditTime: 2020-09-08 18:07:43
-->
<template>
<div class="customer-assign-wrap">
......@@ -15,7 +15,7 @@
</el-tabs>
<div v-if="activeName == 'first'" class="customer-assign-set">
<div class="m-b-10">
<el-checkbox v-model="customerSetData.bindCode">解绑导购code,顾客自动分配给店长</el-checkbox>
<el-checkbox v-model="customerSetData.unbindClerkDisMemberFlag">解绑导购code,顾客自动分配给店长</el-checkbox>
<div class="font-12 color-909399 set-tip-item">注:保存勾选项后,解绑当前导购code,该导购cede名下的顾客会分配到店长,在移动端可重新分配顾客</div>
</div>
<div class="m-t-46 p-l-20">
......@@ -143,7 +143,7 @@ export default {
activeName: 'first',
loadingSet: false,
customerSetData: {
bindCode: false
unbindClerkDisMemberFlag: false
},
// 顾客列表
departObj: {}, // 选中的部门、门店
......@@ -217,6 +217,7 @@ export default {
const para = {
wxEnterpriseId: that.wxEnterpriseId,
enterpriseId: that.brandId,
unbindClerkDisMemberFlag: that.customerSetData.unbindClerkDisMemberFlag ? 1 : '0',
switchType: 2
};
saveCustomerSet(para)
......@@ -245,6 +246,7 @@ export default {
};
getCustomerSet(para)
.then(res => {
res.result.unbindClerkDisMemberFlag = res.result.unbindClerkDisMemberFlag == 1 ? true : false;
that.customerSetData = res.result || [];
})
.catch(function(error) {
......
......@@ -4,24 +4,24 @@
* @Author: 无尘
* @Date: 2020-08-27 10:16:37
* @LastEditors: 无尘
* @LastEditTime: 2020-09-08 15:16:16
* @LastEditTime: 2020-09-08 18:05:09
-->
<template>
<div class="common-app-right">
<div class="customer-data-body">
<div class="m-b-10">
<el-checkbox class="w-195" v-model="customerShowData.allStoreOrder">展示所有门店的订单</el-checkbox>
<el-checkbox class="w-195" v-model="customerShowData.showAllOrderFlag">展示所有门店的订单</el-checkbox>
<div class="font-12 color-909399 set-tip-item">注:保存勾选项后,门店导购和店长可查看顾客在本店以外的消费订单</div>
</div>
<div class="m-b-20">
<el-checkbox class="w-195" v-model="customerShowData.shopOrder">展示微商城的订单</el-checkbox>
<el-checkbox class="w-195" v-model="customerShowData.showMallOrderFlag">展示微商城的订单</el-checkbox>
<div class="font-12 color-909399 set-tip-item">注:保存勾选项后,门店导购和店长可查看顾客在微商城的消费订单</div>
</div>
<div class="m-b-20">
<el-tooltip class="item" effect="dark" content="勾选后将会在“顾客详情页”进行显示" placement="top-start"> <span class="font-14 color-606266 m-r-20 common-bottom-border">导购联系顾客方式:</span></el-tooltip>
<el-checkbox v-model="customerShowData.allowGuideOnlineChat">添加会员/发消息</el-checkbox>
<el-checkbox v-model="customerShowData.allowGuideMobile">电话</el-checkbox>
<el-checkbox v-model="customerShowData.allowGuideMessage">短信</el-checkbox>
<el-checkbox v-model="customerShowData.clerkAddMemberFlag">添加会员/发消息</el-checkbox>
<el-checkbox v-model="customerShowData.clerkContactPhoneFlag">电话</el-checkbox>
<el-checkbox v-model="customerShowData.clerkContactSmsFlag">短信</el-checkbox>
</div>
<div class="m-t-46 p-l-20">
<el-button type="primary" :loading="loading" @click="submit">保存</el-button>
......@@ -48,11 +48,12 @@ export default {
return {
wxEnterpriseId: localStorage.getItem('haoBanUser') ? JSON.parse(localStorage.getItem('haoBanUser')).wxEnterpriseId : '',
customerShowData: {
allStoreOrder: false,
shopOrder: false,
allowGuideMobile: false,
allowGuideMessage: false,
allowGuideOnlineChat: false
showAllOrderFlag: false,
showMallOrderFlag: false,
showWmOrderFlag: false,
clerkContactPhoneFlag: false,
clerkContactSmsFlag: false,
clerkAddMemberFlag: false
},
loading: false
};
......@@ -84,11 +85,12 @@ export default {
const that = this;
const para = {
enterpriseId: that.brandId,
allStoreOrder: that.customerShowData.allStoreOrder ? 1 : '0',
shopOrder: that.customerShowData.shopOrder ? 1 : '0',
allowGuideMobile: that.customerShowData.allowGuideMobile ? 1 : '0',
allowGuideMessage: that.customerShowData.allowGuideMessage ? 1 : '0',
allowGuideOnlineChat: that.customerShowData.allowGuideOnlineChat ? 1 : '0',
showAllOrderFlag: that.customerShowData.showAllOrderFlag ? 1 : '0',
showMallOrderFlag: that.customerShowData.showMallOrderFlag ? 1 : '0',
showWmOrderFlag: that.customerShowData.showWmOrderFlag ? 1 : '0',
clerkContactPhoneFlag: that.customerShowData.clerkContactPhoneFlag ? 1 : '0',
clerkContactSmsFlag: that.customerShowData.clerkContactSmsFlag ? 1 : '0',
clerkAddMemberFlag: that.customerShowData.clerkAddMemberFlag ? 1 : '0',
switchType: 1
};
saveCustomerSet(para)
......@@ -116,6 +118,12 @@ export default {
};
getCustomerSet(para)
.then(res => {
res.result.showAllOrderFlag = res.result.showAllOrderFlag == 1 ? true : false;
res.result.showMallOrderFlag = res.result.showMallOrderFlag == 1 ? true : false;
res.result.showWmOrderFlag = res.result.showWmOrderFlag == 1 ? true : false;
res.result.clerkContactPhoneFlag = res.result.clerkContactPhoneFlag == 1 ? true : false;
res.result.clerkContactSmsFlag = res.result.clerkContactSmsFlag == 1 ? true : false;
res.result.clerkAddMemberFlag = res.result.clerkAddMemberFlag == 1 ? true : false;
that.customerShowData = res.result || [];
})
.catch(function(error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment