Commit dc1d3400 by 前端

员工群发

1 parent ad424f63
...@@ -1174,7 +1174,7 @@ export const teaching_storeTypeOpt = [ ...@@ -1174,7 +1174,7 @@ export const teaching_storeTypeOpt = [
// 话术业务场景 // 话术业务场景
export const channelTypeList = [ export const channelTypeList = [
{ confId: 1, confValue: "企业微信" }, { confId: 1, confValue: "企业微信" },
{ confId: 2, confValue: "展业app" } { confId: 2, confValue: "展业助手" }
] ]
// 预警管理 所属业务 // 预警管理 所属业务
......
...@@ -141,11 +141,14 @@ ...@@ -141,11 +141,14 @@
empTableData.length empTableData.length
" "
> >
<el-table :data="empTableData" style="width: 100%"> <el-table border :data="empTableData" style="width: 100%">
<el-table-column type="index" width="50"> </el-table-column> <el-table-column type="index" width="50"
>序号
</el-table-column>
<el-table-column <el-table-column
prop="merchantName" prop="merchantName"
label="门店名称" label="门店名称"
align="center"
v-if="formData.selectStaffType == 2" v-if="formData.selectStaffType == 2"
> >
</el-table-column> </el-table-column>
...@@ -153,15 +156,22 @@ ...@@ -153,15 +156,22 @@
prop="merchantId" prop="merchantId"
v-if="formData.selectStaffType == 2" v-if="formData.selectStaffType == 2"
label="门店号" label="门店号"
align="center"
width="100" width="100"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="label" prop="label"
v-if="formData.selectStaffType == 3" v-if="formData.selectStaffType == 3"
label="品牌名称" label="品牌名称"
align="center"
> >
</el-table-column> </el-table-column>
<el-table-column fixed="right" label="操作" width="120"> <el-table-column
align="center"
fixed="right"
label="操作"
width="120"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@click.native.prevent=" @click.native.prevent="
...@@ -596,6 +606,7 @@ export default { ...@@ -596,6 +606,7 @@ export default {
this.empTableData = [] this.empTableData = []
this.estimatedNumberOfPeople = 0 this.estimatedNumberOfPeople = 0
this.formData.customerDataList = [] this.formData.customerDataList = []
this.storeSearchForm.staffNameOrPhone = ""
}, },
"formData.sendTime"(selectTime) { "formData.sendTime"(selectTime) {
const selectedDate = new Date(selectTime) const selectedDate = new Date(selectTime)
...@@ -969,6 +980,9 @@ export default { ...@@ -969,6 +980,9 @@ export default {
if (this.uploading) { if (this.uploading) {
return this.$message.error(`文件上传中,请耐心等待文件上传完成`) return this.$message.error(`文件上传中,请耐心等待文件上传完成`)
} }
if (!this.estimatedNumberOfPeople && this.formData.selectStaffType != 4) {
return this.$message.error(`请添加发送员工`)
}
this.$refs.ruleForm.validate((valid) => { this.$refs.ruleForm.validate((valid) => {
this.$refs.channelForm.validate((valid1) => { this.$refs.channelForm.validate((valid1) => {
this.$refs.sendTypeForm.validate((valid2) => { this.$refs.sendTypeForm.validate((valid2) => {
......
...@@ -80,14 +80,11 @@ export default { ...@@ -80,14 +80,11 @@ export default {
mounted() {}, mounted() {},
methods: { methods: {
recoverySelection(list) { recoverySelection(list) {
var exitIds = this.selectedRecord.map((item) => item.merchantId) var exitIds = this.selectedRecord.map((item) => +item.merchantId)
console.log( console.log(exitIds)
"this.$refs.merchantTable.toggleRowSelection",
this.$refs.merchantTable.$refs.merchantIndexMutiTable.toggleRowSelection
)
list.forEach((item) => { list.forEach((item) => {
console.log(exitIds.includes(item.merchantId + "")) console.log(item.merchantId, "item.merchantId")
exitIds.includes(item.merchantId + "") && exitIds.includes(item.merchantId) &&
this.$refs.merchantTable.$refs.merchantIndexMutiTable.toggleRowSelection( this.$refs.merchantTable.$refs.merchantIndexMutiTable.toggleRowSelection(
item, item,
true true
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
<template> <template>
<d2-dialog <d2-dialog
:title="title" :title="title"
:isShowFooter="false"
:noCancel="true"
:is-visible.sync="relateStoreVisible" :is-visible.sync="relateStoreVisible"
width="50%" width="50%"
btn-ok-label="确定" btn-ok-label="确定"
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<div class="cell"> <div class="cell">
<div class="label">员工对象:</div> <div class="label">员工对象:</div>
<div> <div>
<div class="label m-b-10"> <div class="value m-b-10">
{{ getStaffVal(formData.selectStaffType) }} {{ getStaffVal(formData.selectStaffType) }}
</div> </div>
<template> <template>
...@@ -85,15 +85,19 @@ ...@@ -85,15 +85,19 @@
empTableData.length empTableData.length
" "
> >
<el-table :data="empTableData" style="width: 100%"> <el-table border :data="empTableData" style="width: 100%">
<el-table-column type="index" width="50"> </el-table-column> <el-table-column type="index" width="50">
序号</el-table-column
>
<el-table-column <el-table-column
align="center"
prop="merchantName" prop="merchantName"
label="门店名称" label="门店名称"
v-if="formData.selectStaffType == 2" v-if="formData.selectStaffType == 2"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
align="center"
prop="merchantId" prop="merchantId"
v-if="formData.selectStaffType == 2" v-if="formData.selectStaffType == 2"
label="门店号" label="门店号"
...@@ -101,6 +105,7 @@ ...@@ -101,6 +105,7 @@
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="label" prop="label"
align="center"
v-if="formData.selectStaffType == 3" v-if="formData.selectStaffType == 3"
label="品牌名称" label="品牌名称"
> >
...@@ -143,7 +148,7 @@ ...@@ -143,7 +148,7 @@
</div> </div>
</div> </div>
<div class="customer-title"> <div class="customer-title" v-if="estimatedNumberOfPeople">
发送员工:预估{{ estimatedNumberOfPeople || 0 }} 发送员工:预估{{ estimatedNumberOfPeople || 0 }}
人 人
<el-button <el-button
...@@ -151,9 +156,7 @@ ...@@ -151,9 +156,7 @@
:loading="customerLoading" :loading="customerLoading"
@click="handlePopStaff" @click="handlePopStaff"
> >
<span v-if="!customerLoading && estimatedNumberOfPeople" <span>查看明细</span>
>查看明细</span
>
</el-button> </el-button>
</div> </div>
</template> </template>
...@@ -740,6 +743,15 @@ export default { ...@@ -740,6 +743,15 @@ export default {
.emp-table-box { .emp-table-box {
width: 567px; width: 567px;
} }
.customer-title {
box-sizing: border-box;
height: 39px;
line-height: 39px;
padding: 0 10px;
color: #666666;
font-size: 14px;
// border-bottom: 1px solid #dcdfe6;
}
.customer-box { .customer-box {
width: 567px; width: 567px;
background-color: #fff; background-color: #fff;
...@@ -747,14 +759,6 @@ export default { ...@@ -747,14 +759,6 @@ export default {
border-radius: 4px; border-radius: 4px;
border: 1px solid #dcdfe6; border: 1px solid #dcdfe6;
.customer-title {
box-sizing: border-box;
height: 39px;
line-height: 39px;
padding: 0 10px;
// border-bottom: 1px solid #dcdfe6;
}
.input-tag-wrapper { .input-tag-wrapper {
max-height: 227px; max-height: 227px;
overflow: auto; overflow: auto;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!