Procházet zdrojové kódy

客户添加项目

wushaodong před 4 roky
rodič
revize
aca2cb9edf

+ 0 - 2
apps/customer/views.py

@@ -434,8 +434,6 @@ class NewCustomerViewSet(CustomModelViewSet):
 
                 if exist_projects and add_projects == []:
                     raise CustomError(u'该客户{}项目已存在!'.format(exist_projects))
-                if add_projects:
-                    return response_ok(u'该客户{}项目已添加成功!'.format(add_projects))
         except CustomError as e:
             return response_error(e.get_error_msg())
         except Exception as e:

+ 16 - 16
uis/views/customer/check_index.html

@@ -106,26 +106,26 @@
         var table = layui.table
             , form = layui.form
             , admin = layui.admin;
-
+        var style = 'font-size:12px;'
         table.render({
             elem: '#customer_datagrid'
             , url: '/customer/review/?check_status=0'
             , cols: [[
-                {field: 'name', title: '姓名', width: 100}
-                , {field: 'tel', title: '电话', width: 130}
-                , {field: 'address', title: '地址', width: 200}
-                , {field: 'project_text', title: '项目', width: 150}
-                , {field: 'village', title: '小区', width: 150}
-                , {field: 'description', title: '回访情况', width: 200}
-                , {field: 'instruction', title: '申请支援或放弃', width: 200}
-                , {field: 'is_giveup_text', title: '是否放弃', width: 90}
-                , {field: 'create_user_text', title: '跟踪人', width: 110}
-                , {field: 'create_time_f', title: '跟踪时间', width: 150}
-                , {field: 'check_status_text', title: '审核状态', width: 110}
-                , {field: 'check_user_text', title: '审核人', width: 110}
-                , {field: 'check_comment', title: '审核批示', width: 100}
-                , {field: 'check_time_f', title: '审核时间', width: 180}
-                , {field: 'next_time_f', title: '下次回访时间', width: 130}
+                {field: 'name', title: '姓名', width: 90, style: style}
+                , {field: 'tel', title: '电话', width: 120, style: style}
+                , {field: 'address', title: '地址', width: 150, style: style}
+                , {field: 'village', title: '小区', width: 150, style: style}
+                , {field: 'project_text', title: '项目', width: 100, style: style}
+                , {field: 'description', title: '回访情况', width: 150, style: style}
+                , {field: 'instruction', title: '申请支援或放弃', width: 150, style: style}
+                , {field: 'is_giveup_text', title: '是否放弃', width: 90, style: style}
+                , {field: 'create_user_text', title: '跟踪人', width: 100, style: style}
+                , {field: 'create_time_f', title: '跟踪时间', width: 130, style: style}
+                , {field: 'check_status_text', title: '审核状态', width: 100, style: style}
+                , {field: 'check_user_text', title: '审核人', width: 100, style: style}
+                , {field: 'check_comment', title: '审核批示', width: 100, style: style}
+                , {field: 'check_time_f', title: '审核时间', width: 130, style: style}
+                , {field: 'next_time_f', title: '下次回访时间', width: 120, style: style}
                 , {width: 70, align: 'center', fixed: 'right', toolbar: '#customer-operate-bar'}
             ]]
             , page: true

+ 21 - 21
uis/views/customer/index.html

@@ -210,32 +210,32 @@
                 , {field: 'overdue_count', title: '逾期', event: 'overdue', width: 80, sort: true}
             ]]
         });
-
+        var style = 'font-size:12px;'
         table.render({
             elem: '#customer_datagrid'
             , url: '/customer/new_customer/?status=1'
             , title: '潜客跟踪'
             , cols: [[
-                {field: 'name', title: '姓名', width: 110}
-                , {field: 'gender_text', title: "性别", width: 70}
-                , {field: 'tel', title: '电话', width: 130}
-                , {field: 'village', title: '小区', width: 150}
-                , {field: 'address', title: '地址', width: 200}
-                , {field: 'source_text', title: '来源', width: 100}
-                , {field: 'project_text', title: '项目', width: 150}
-                , {field: 'stage_progress_text', title: '阶段进度', width: 100}
-                , {field: 'status_text', title: '状态', width: 60}
-                , {field: 'track_user_text', title: '跟踪人', width: 120}
-                , {field: 'store_text', title: '门店', width: 150}
-                , {field: 'end_time_f', title: '最后跟踪时间', width: 150}
-                , {field: 'last_review', title: '最后跟踪情况', width: 200}
-                , {field: 'next_time_f', title: '下次跟踪时间', width: 120}
-                , {field: 'enter_count', title: '进店次数', width: 100}
-                , {field: 'last_enter_time', title: '最后进店时间', width: 150}
-                , {field: 'create_time_f', title: '建档时间', width: 150}
-                , {field: 'create_user_text', title: '建档人', width: 100}
-                , {field: 'notes', title: '备注', width: 200}
-                , {width: '28%', align: 'center', fixed: 'right', toolbar: "#customer_datagrid-operate-bar"}
+                {field: 'name', title: '姓名', width: 90}
+                , {field: 'gender_text', title: "性别", width: 60}
+                , {field: 'tel', title: '电话', width: 120}
+                , {field: 'village', title: '小区', width: 150, style:style}
+                , {field: 'address', title: '地址', width: 150, style:style}
+                , {field: 'source_text', title: '来源', width: 100, style:style}
+                , {field: 'project_text', title: '项目', width: 80, style:style}
+                , {field: 'stage_progress_text', title: '阶段进度', width: 100, style:style}
+                , {field: 'status_text', title: '状态', width: 60, style:style}
+                , {field: 'track_user_text', title: '跟踪人', width: 120, style:style}
+                , {field: 'store_text', title: '门店', width: 120, style:style}
+                , {field: 'end_time_f', title: '最后跟踪时间', width: 130, style:style}
+                , {field: 'last_review', title: '最后跟踪情况', width: 150, style:style}
+                , {field: 'next_time_f', title: '下次跟踪', width: 100, style:style}
+                , {field: 'enter_count', title: '进店次数', width: 90, style:style}
+                , {field: 'last_enter_time', title: '最后进店时间', width: 130, style:style}
+                , {field: 'create_time_f', title: '建档时间', width: 130, style:style}
+                , {field: 'create_user_text', title: '建档人', width: 100, style:style}
+                , {field: 'notes', title: '备注', width: 150, style:style}
+                , {width: 350, align: 'center', fixed: 'right', toolbar: "#customer_datagrid-operate-bar"}
             ]]
             , page: true
             , height: 'full-108'