Browse Source

Merge remote-tracking branch 'origin/master'

hujingpei 4 năm trước cách đây
mục cha
commit
8d2d93ee66
2 tập tin đã thay đổi với 18 bổ sung10 xóa
  1. 13 7
      uis/views/customer/detail.html
  2. 5 3
      uis/views/customer/index.html

+ 13 - 7
uis/views/customer/detail.html

@@ -56,6 +56,12 @@
               <td style="background: #f8f8f8; width: 70px">来源:</td>
               <td>{{ d.source_text }}</td>
             </tr>
+            <tr>
+              <td style="background: #f8f8f8; width: 70px">项目:</td>
+              <td>{{ d.project_text }}</td>
+              <td style="background: #f8f8f8; width: 70px">阶段进度:</td>
+              <td>{{ d.stage_progress_text }}</td>
+            </tr>
             <tr>
               <td style="background: #f8f8f8; width: 70px">备注:</td>
               <td colspan="3">{{ d.notes || ""}}</td>
@@ -87,16 +93,16 @@
         laytpl(getTpl).render(data, function(html){
           tableDom.innerHTML = html;
         });
+        var id = layui.view.getParameterByName('customer');
         table.render({
             elem: '#customer_datagrid'
-            , url: '/api/dataTable.json'
+            , url: '/customer/review/?customer=' + id
             , cols: [[
-                {field: 'follow_user', title: '跟踪人', width: 100}
-                , {field: 'follow_time', title: "跟踪时间", width: 110}
-                , {field: 'connect_status', title: '沟通情况', width: 100}
-                , {field: 'rank', title: '客户级别', width: 100}
-                , {field: 'application', title: '申请事项', width: 200}
-                , {field: 'check_status', title: '审核状态', width: 100}
+                {field: 'create_user_text', title: '跟踪人', width: 100}
+                , {field: 'create_time_f', title: "跟踪时间", width: 150}
+                , {field: 'description', title: '回访情况', width: 200}
+                , {field: 'project_text', title: '申请項目', width: 150}
+                , {field: 'check_status_text', title: '审核状态', width: 100}
             ]]
             , page: true
         });

+ 5 - 3
uis/views/customer/index.html

@@ -113,6 +113,8 @@
                         <div class="layui-btn-group">
                             <a class="layui-btn layui-btn-xs" lay-event="customer_search"
                             >查看</a>
+                        </div>
+                        <div class="layui-btn-group">
                             <a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="add_review"
                                data-permission="customer.view_new_customer"
                             >跟踪报告</a>
@@ -161,7 +163,7 @@
                 , {field: 'stage_progress_text', title: '阶段进度', width: 100}
                 , {field: 'potential_level_text', title: '客户级别', width: 100}
                 , {field: 'status_text', title: '状态', width: 60}
-                , {field: 'track_user_text', title: '跟踪人', width: 100}
+                , {field: 'track_user_text', title: '跟踪人', width: 120}
                 , {field: 'end_time_f', title: '最后跟踪时间', width: 150}
                 , {field: 'last_review', title: '最后跟踪情况', width: 200}
                 , {field: 'next_time_f', title: '下次跟踪时间', width: 120}
@@ -171,7 +173,7 @@
                 , {field: 'create_time_f', title: '建档时间', width: 150}
                 , {field: 'create_user_text', title: '建档人', width: 100}
                 , {field: 'notes', title: '备注', width: 200}
-                , {width: 130, align: 'center', fixed: 'right', toolbar: '#customer-operate-bar'}
+                , {width: 170, align: 'center', fixed: 'right', toolbar: '#customer-operate-bar'}
             ]]
             , page: true
             , height: 'full-108'
@@ -222,7 +224,7 @@
                         //取消
                         layer.close(index);//关闭当前按钮
                     },
-                    content: 'detail.html'
+                    content: 'detail.html?customer=' + data.id
                 });
             } else if (obj.event === 'add_review') {
                 //添加跟踪报告