|
@@ -57,6 +57,7 @@ class ReportCustomerViewSet(CustomModelViewSet):
|
|
|
check_permission(request, 'customer.check_report_customer')
|
|
|
# 审核
|
|
|
user = request.POST.get('user')
|
|
|
+ user = User.objects.filter(id=user).first()
|
|
|
try:
|
|
|
instance = ReportCustomer.objects.filter(id=pk).first()
|
|
|
if not instance:
|
|
@@ -67,7 +68,6 @@ class ReportCustomerViewSet(CustomModelViewSet):
|
|
|
instance.save()
|
|
|
BizLog.objects.addnew(request.user, BizLog.INSERT,
|
|
|
u'分配客户报备[%s],id=%d' % (instance.name, instance.id))
|
|
|
-
|
|
|
# 创建潜客跟踪表
|
|
|
potential_level = Option.objects.filter(type=Option.POTENTIAL_LEVEL).order_by('sort').first()
|
|
|
stage_progress = Option.objects.filter(type=Option.STAGE_PROGRESS).order_by('sort').first()
|