Explorar o código

装集客项目更新

lijiangwei %!s(int64=4) %!d(string=hai) anos
pai
achega
cab046a2d3

+ 3 - 3
uis/views/customer/check_customer.html

@@ -43,13 +43,13 @@
                         <div>
                             <label class="layui-form-label"><font color='red' size="4">*</font>审核批示:</label>
                             <div class="layui-input-block">
-                                <textarea lay-verify="required" type="text" name="check_written" class="layui-textarea" placeholder="请输入审核批示"/></textarea>
+                                <textarea lay-verify="required" type="text" name="check_comment" class="layui-textarea" placeholder="请输入审核批示"/></textarea>
                             </div>
                         </div>
                         <div>
                             <label class="layui-form-label"><font color='red' size="4">*</font>下次回访:</label>
                             <div class="layui-input-block">
-                                 <input lay-verify="required" type="text" name="next_time" class="layui-input" id="test1" placeholder="修改下次回访日期">
+                                 <input lay-verify="required" type="text" name="next_time_f" class="layui-input" id="test1" placeholder="修改下次回访日期">
                             </div>
                         </div>
                         <button id="id_save" class="layui-btn" lay-submit lay-filter="component-form-element"
@@ -81,7 +81,7 @@
             ,type: 'datetime'
         });
         var editdata = JSON.parse(JSON.stringify(parent.layui.table.editdata)); // 框架有Bug所以这么转换
-        form.val("component-form-element", {next_time: editdata['next_time']});
+        form.val("component-form-element", {next_time: editdata['next_time_f']});
 
         form.on('submit(component-form-element)', function (data) {
             var url = '/agent/agent/' + id + '/';

+ 10 - 9
uis/views/customer/check_index.html

@@ -101,21 +101,22 @@
 
         table.render({
             elem: '#customer_datagrid'
-            , url: '/api/check_list.json'
+            , url: '/customer/review/'
             , cols: [[
                 {field: 'name', title: '姓名', width: 110}
                 , {field: 'tel', title: '电话', width: 120}
                 , {field: 'address', title: '地址', width: 200}
-                , {field: 'project', title: '项目', width: 150}
+                , {field: 'project_text', title: '项目', width: 150}
                 , {field: 'village', title: '小区', width: 150}
-                , {field: 'follow_user', title: '跟踪人', width: 110}
-                , {field: 'report_content', title: '报告内容', width: 200}
-                , {field: 'isSupport', title: '支援或放弃', width: 110}
-                , {field: 'isAbandon', title: '是否放弃', width: 100}
+                , {field: 'description', title: '回访情况', width: 200}
+                , {field: 'instruction', title: '申请支援或放弃', width: 110}
+                , {field: 'is_giveup_text', title: '是否放弃', width: 100}
                 , {field: 'check_status', title: '审核状态', width: 110}
-                , {field: 'check_user', title: '审核人员', width: 110}
-                , {field: 'check_written', title: '审核批示', width: 100}
-                , {field: 'check_time', title: '审核时间', width: 180}
+                , {field: 'create_user_text', title: '审核人', width: 110}
+                , {field: 'check_comment', title: '审核批示', width: 100}
+                , {field: 'check_time_f', title: '审核时间', width: 180}
+                , {field: 'track_user_text', title: '跟踪人', width: 110}
+                , {field: 'next_time_f', title: '下次回访时间', width: 180}
                 , {width: 80, align: 'center', fixed: 'right', toolbar: '#customer-operate-bar'}
             ]]
             , page: true

+ 0 - 14
uis/views/customer/index.html

@@ -199,20 +199,6 @@
                 content: 'add_report.html'
             });
         };
-
-        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>");
-                }
-                form.render('select');
-            }
-        });
         //导出列表
         var _params1 = {};
         $('#btn_list').on('click', function () {

+ 1 - 2
uis/views/customer/order.html

@@ -120,11 +120,10 @@
                 //     var name = data_source[i].name;
                 //     source_node.append("<option value='" + pid + "'>" + name + "</option>");
                 // }
-                form.val("component-form-element", {});
+                // form.val("component-form-element", {});
             }
         });
 
-        //form.render(null, 'component-form-element');
 
         form.on('submit(component-form-element)', function (data) {
             var url = '/customer/report_customer/';