wushaodong пре 4 година
родитељ
комит
3cf1721b1e
3 измењених фајлова са 5 додато и 5 уклоњено
  1. 1 1
      apps/customer/urls.py
  2. 1 1
      apps/customer/views.py
  3. 3 3
      uis/views/index.html

+ 1 - 1
apps/customer/urls.py

@@ -6,7 +6,7 @@ from .views import *
 
 urlpatterns = [
     url(r'^dict/$', ReportCustomerDictView.as_view()),
-    url(r'^get_user/$', UserDictView.as_view()),
+    url(r'^get_user/$', UserDictView.as_view()), # 客户报备审核、重新分配客户加载用户
     url(r'^stage_count/$', StageCountView.as_view()), # 客户阶段提醒
 
 ]

+ 1 - 1
apps/customer/views.py

@@ -280,7 +280,7 @@ class NewCustomerViewSet(CustomModelViewSet):
                     for project in projects:
                         order.project.add(project.id)
                 # 创建订单流程,保存图片
-                user = self.request.user
+                user = request.user
                 operation = u'更新进度为:{}'.format(order.stage_progress.name)
                 progress_details = ProgressDetails.objects.create(order=order, user=user, operation=operation,
                                                                   notes=notes)

+ 3 - 3
uis/views/index.html

@@ -100,16 +100,16 @@
                                 <a lay-href="report_check/index.html">报备审核</a>
                             </dd>
                             <dd data-name="nav" data-permission="customer.view_new_customer">
-                                <a lay-href="customer/index.html">客跟踪</a>
+                                <a lay-href="customer/index.html">客跟踪</a>
                             </dd>
                             <dd data-name="nav" data-permission="customer.check_review">
                                 <a lay-href="customer/check_index.html">跟踪审核</a>
                             </dd>
                             <dd data-name="nav" data-permission="order.view_order">
-                                <a lay-href="order/index.html">订单管理</a>
+                                <a lay-href="order/index.html">进度跟踪</a>
                             </dd>
                             <dd data-name="nav" data-permission="order.order_process_dispatch">
-                                <a lay-href="order/dispatch_process_index.html">进度分配</a>
+                                <a lay-href="order/dispatch_process_index.html">进度审核</a>
                             </dd>
                         </dl>
                     </li>