|
|
@@ -435,7 +435,7 @@
|
|
|
<div class="sop-step-content">
|
|
|
<div class="sop-step-title">{{ step.name }}</div>
|
|
|
<div class="sop-step-meta">
|
|
|
- <span><i class="fas fa-clock"></i> 第{{ step.days }}天</span>
|
|
|
+ <span><i class="fas fa-clock"></i> 间隔{{ step.days }}天</span>
|
|
|
<span><i :class="step.channelIcon"></i>
|
|
|
{{ getChannelName(step.type) }}</span>
|
|
|
</div>
|
|
|
@@ -708,7 +708,7 @@
|
|
|
class="preview-step">
|
|
|
<div class="preview-content">
|
|
|
<div class="preview-title">{{ step.name }}</div>
|
|
|
- <div class="preview-meta">第{{ step.days }}天 · {{ getChannelName(step.type) }}</div>
|
|
|
+ <div class="preview-meta">间隔{{ step.days }}天 · {{ getChannelName(step.type) }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="customSopData.details.filter(s => s.name).length === 0" class="preview-empty">
|
|
|
@@ -904,6 +904,11 @@
|
|
|
ElMessage.error('请选择目标客户')
|
|
|
return
|
|
|
}
|
|
|
+ if (customerList.value.length > 500) {
|
|
|
+ currentStep.value = 2
|
|
|
+ ElMessage.error('目标客户数量限500个以内')
|
|
|
+ return
|
|
|
+ }
|
|
|
try {
|
|
|
loading.value = true
|
|
|
const typeMap = { prospect: 1, nurture: 2, reactivate: 3, promote: 4, seasonal: 5, exhibition: 6, other: 7 }
|
|
|
@@ -1164,7 +1169,18 @@
|
|
|
ElMessage.success('删除成功')
|
|
|
}
|
|
|
|
|
|
- const addCustomer = (data) => {
|
|
|
+ const addCustomer = (data, type) => {
|
|
|
+ if(type == 'all') {
|
|
|
+ customerList.value = customerList.value.concat(data)
|
|
|
+ // 去重
|
|
|
+ customerList.value = customerList.value.filter((item, index, self) => {
|
|
|
+ return index === self.findIndex((t) => (
|
|
|
+ t.id === item.id
|
|
|
+ ))
|
|
|
+ })
|
|
|
+ ElMessage.success('添加成功')
|
|
|
+ return
|
|
|
+ }
|
|
|
if(customerList.value.find(item => item.id === data.id)) {
|
|
|
ElMessage.warning('客户已存在')
|
|
|
return
|