|
|
@@ -78,19 +78,11 @@
|
|
|
import { getOpenCustomer, setProtectCustomer, setSuspendCustomer } from '@/api/marketing'
|
|
|
import { ElMessageBox } from 'element-plus'
|
|
|
|
|
|
+ const emits = defineEmits(['refresh']);
|
|
|
const showOpenedCustomersModal = ref(false)
|
|
|
const selectedOpenedCampaign = ref()
|
|
|
// 打开邮件的客户列表 - 需要人工跟进
|
|
|
- const openedCustomers = ref([
|
|
|
- // { id: 1, name: '阿里巴巴国际', email: 'contact@alibaba-intl.com', openTime: '2026-03-23 10:30', clickCount: 2, status: 'opened', engagement: '高', value: '高价值', annualPurchase: '¥500K+', lastOrder: '2026-02-15', protected: true, protectionReason: '高价值客户', interventionStatus: 'assigned-to-sales' },
|
|
|
- // { id: 2, name: '沙特阿美贸易', email: 'trade@aramco-sa.com', openTime: '2026-03-23 09:15', clickCount: 1, status: 'opened', engagement: '中', value: '中价值', annualPurchase: '¥200K', lastOrder: '2026-03-01', protected: true, protectionReason: '活跃客户', interventionStatus: 'pending-review' },
|
|
|
- // { id: 3, name: '迪拜电子商务', email: 'info@dubai-ecom.ae', openTime: '2026-03-23 08:45', clickCount: 3, status: 'opened', engagement: '高', value: '高价值', annualPurchase: '¥800K+', lastOrder: '2026-02-28', protected: true, protectionReason: '高价值客户', interventionStatus: 'assigned-to-sales' },
|
|
|
- // { id: 4, name: '新加坡科技', email: 'sales@sg-tech.com.sg', openTime: '2026-03-22 16:20', clickCount: 0, status: 'opened', engagement: '低', value: '低价值', annualPurchase: '¥50K', lastOrder: '2025-12-10', protected: false, protectionReason: '', interventionStatus: 'auto-follow' },
|
|
|
- // { id: 5, name: '印度IT服务', email: 'contact@india-it.in', openTime: '2026-03-22 14:50', clickCount: 2, status: 'opened', engagement: '中', value: '中价值', annualPurchase: '¥150K', lastOrder: '2026-01-20', protected: true, protectionReason: '活跃客户', interventionStatus: 'pending-review' },
|
|
|
- // { id: 6, name: '巴西进出口', email: 'export@brasil-trade.br', openTime: '2026-03-22 11:30', clickCount: 1, status: 'opened', engagement: '低', value: '低价值', annualPurchase: '¥30K', lastOrder: '2025-11-05', protected: false, protectionReason: '', interventionStatus: 'auto-follow' },
|
|
|
- // { id: 7, name: '德国工业集团', email: 'procurement@de-industry.de', openTime: '2026-03-21 15:45', clickCount: 4, status: 'opened', engagement: '高', value: '高价值', annualPurchase: '¥1.2M+', lastOrder: '2026-03-10', protected: true, protectionReason: '高价值客户', interventionStatus: 'assigned-to-sales' },
|
|
|
- // { id: 8, name: '英国分销商', email: 'sales@uk-dist.co.uk', openTime: '2026-03-21 13:20', clickCount: 2, status: 'opened', engagement: '中', value: '中价值', annualPurchase: '¥300K', lastOrder: '2026-02-20', protected: true, protectionReason: '活跃客户', interventionStatus: 'pending-review' }
|
|
|
- ])
|
|
|
+ const openedCustomers = ref([])
|
|
|
|
|
|
const loading = ref(false)
|
|
|
const open = (data) => {
|
|
|
@@ -121,6 +113,7 @@
|
|
|
setProtectCustomer(params).then(res => {
|
|
|
customer.hasProtect = !customer.hasProtect
|
|
|
ElMessage.success('操作成功')
|
|
|
+ emits('refresh')
|
|
|
}).catch(err => {
|
|
|
ElMessage.error('操作失败')
|
|
|
})
|
|
|
@@ -144,6 +137,7 @@
|
|
|
setSuspendCustomer(params).then(res => {
|
|
|
customer.hasSuspend = !customer.hasSuspend
|
|
|
ElMessage.success('操作成功')
|
|
|
+ emits('refresh')
|
|
|
}).catch(err => {
|
|
|
ElMessage.error('操作失败')
|
|
|
})
|