浏览代码

客户跟踪

wushaodong 4 年之前
父节点
当前提交
4c83cc066b
共有 1 个文件被更改,包括 32 次插入4 次删除
  1. 32 4
      uis/views/customer/index.html

+ 32 - 4
uis/views/customer/index.html

@@ -75,9 +75,6 @@
                 <div class="layui-col-md12">
                     <div class="LAY-btns" style="margin-bottom: 10px;">
                         <div style="float: left">
-                            <button class="layui-btn" id="customer_order"><i
-                                    class="layui-icon layui-icon-add-circle"></i>预约量房
-                            </button>
                             <button class="layui-btn" id="btn_list"><i
                                     class="layui-icon layui-icon-download-circle"></i>导出
                             </button>
@@ -96,6 +93,16 @@
                                 <input type="text" name="name" autocomplete="off" class="layui-input"
                                        placeholder="姓名"/>
                             </div>
+                            <div class="seach_items">
+                                <select name="source" id="id_source" style="width: 40px;">
+                                    <option value="">请选择来源</option>
+                                </select>
+                            </div>
+                            <div class="seach_items">
+                                <select name="project" id="id_project" style="width: 40px;">
+                                    <option value="">请选择项目</option>
+                                </select>
+                            </div>
                         </form>
                         <div style="clear: both;"></div>
                     </div>
@@ -137,12 +144,33 @@
             , form = layui.form
             , admin = layui.admin;
 
+        admin.req({
+            url: '/customer/dict/',
+            done: function (res) {
+                var data = res.data.source;
+                var source_node = $('#id_source');
+                for (var i in data) {
+                    var pid = data[i].id;
+                    var name = data[i].name;
+                    source_node.append("<option value='" + pid + "'>" + name + "</option>");
+                }
+
+                var  project_data = res.data.project;
+                var project_node = $('#id_project');
+                for (var i in project_data) {
+                    var pid1 = project_data[i].id;
+                    var name1 = project_data[i].name;
+                    project_node.append("<option value='" + pid1 + "'>" + name1 + "</option>");
+                }
+                form.render('select');
+            }
+        });
         table.render({
             elem: '#customer_log'
             , url: '/customer/stage_count/'
             , cols: [[
                 {field: 'stage', title: '阶段', width: 100}
-                , {field: 'total_count', title: "总人数", width: 80, sort: true}
+                , {field: 'total_count', title: "总数", width: 80, sort: true}
                 , {field: 'today_count', title: '今日', width: 80, sort: true}
                 , {field: 'overdue_count', title: '逾期', width: 80, sort: true}
             ]]