zouyuxuan 5 年之前
父节点
当前提交
229fb3d6bd

+ 1 - 1
core/src/qfw/manage/loan.go

@@ -269,7 +269,7 @@ func (this *LoanAction)Clue_manage(){
 	}else{
 	}else{
 		currentPage, _ := this.GetInteger("currentPage")
 		currentPage, _ := this.GetInteger("currentPage")
 		perPage, _ := this.GetInteger("perPage")
 		perPage, _ := this.GetInteger("perPage")
-		data :=mgo.Find("jy_loan",nil,`{"application_time":1}`,`{"companyName":1,"registration":1,"visit_person":1,"visit_time":1,"account_manager":1,"opinion_time":1,"classify_type":1,"uid":1}`,false,(currentPage-1)*perPage, perPage)
+		data :=mgo.Find("jy_loan",nil,`{"application_time":1}`,`{"companyName":1,"registration":1,"visit_person":1,"visit_time":1,"account_manager":1,"opinion_time":1,"classify_type":1,"uid":1,"application_time":1}`,false,(currentPage-1)*perPage, perPage)
 		count := mgo.Count("jy_loan",nil)
 		count := mgo.Count("jy_loan",nil)
 		if (*data!=nil){
 		if (*data!=nil){
 			this.ServeJson(map[string]interface{}{
 			this.ServeJson(map[string]interface{}{

+ 17 - 7
core/src/web/templates/manage/loan/clue.html

@@ -8,6 +8,7 @@
     <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/js/kindeditor/themes/default/default.css"/>
     <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/js/kindeditor/themes/default/default.css"/>
     <script charset="utf-8" src="{{Msg "seo" "cdn"}}/js/kindeditor/kindeditor-all.js"></script>
     <script charset="utf-8" src="{{Msg "seo" "cdn"}}/js/kindeditor/kindeditor-all.js"></script>
     <script charset="utf-8" src="{{Msg "seo" "cdn"}}/js/kindeditor/kinditem.js"></script>
     <script charset="utf-8" src="{{Msg "seo" "cdn"}}/js/kindeditor/kinditem.js"></script>
+    <script src="/loan/js/common.js"></script>
     <style type="text/css">
     <style type="text/css">
         #jyloan{
         #jyloan{
             background-color: #f5f5f5;
             background-color: #f5f5f5;
@@ -39,7 +40,7 @@
         }
         }
 
 
         .table > thead > tr > th:nth-child(2) {
         .table > thead > tr > th:nth-child(2) {
-            width: 10%;
+            width: 5%;
         }
         }
 
 
         .table > thead > tr > th:nth-child(3) {
         .table > thead > tr > th:nth-child(3) {
@@ -47,22 +48,26 @@
         }
         }
 
 
         .table > thead > tr > th:nth-child(4) {
         .table > thead > tr > th:nth-child(4) {
-            width: 10%;
+            width: 5%;
         }
         }
 
 
         .table > thead > tr > th:nth-child(5) {
         .table > thead > tr > th:nth-child(5) {
-            width: 10%;
+            width: 5%;
         }
         }
 
 
         .table > thead > tr > th:nth-child(6) {
         .table > thead > tr > th:nth-child(6) {
-            width: 10%;
+            width: 5%;
             /*text-align: center;*/
             /*text-align: center;*/
         }
         }
         .table > thead > tr > th:nth-child(7) {
         .table > thead > tr > th:nth-child(7) {
-            width: 10%;
+            width: 8%;
             /*text-align: center;*/
             /*text-align: center;*/
         }
         }
         .table > thead > tr > th:nth-child(8) {
         .table > thead > tr > th:nth-child(8) {
+            width: 5%;
+            /*text-align: center;*/
+        }
+        .table > thead > tr > th:nth-child(9) {
             width: 5%;
             width: 5%;
             display: none;
             display: none;
             /*text-align: center;*/
             /*text-align: center;*/
@@ -81,7 +86,7 @@
             border: 0px;
             border: 0px;
             border-bottom: 1px dashed #999999;
             border-bottom: 1px dashed #999999;
         }
         }
-        .table > tbody > tr > td:nth-child(8) {
+        .table > tbody > tr > td:nth-child(9) {
             display: none;
             display: none;
         }
         }
 
 
@@ -228,6 +233,12 @@ overflow-y: auto;">
                         return d.registration
                         return d.registration
                     }
                     }
                 },
                 },
+                {
+                    title: "贷款时间", field: "price", callback: function (d) {
+                        return timestampToTime(d.application_time)
+
+                    }
+                },
                 {
                 {
                     title: "回访人", field: "person",callback:function (d) {
                     title: "回访人", field: "person",callback:function (d) {
                         if (typeof(d.visit_person) != "undefined"){
                         if (typeof(d.visit_person) != "undefined"){
@@ -356,7 +367,6 @@ overflow-y: auto;">
     }
     }
     function format(d) {
     function format(d) {
         if (typeof(d)!== "undefined"){
         if (typeof(d)!== "undefined"){
-            console.log(d)
             var tt =d.replace(/&#60;/g,"<");
             var tt =d.replace(/&#60;/g,"<");
             var t = tt.replace(/&#62;/g,">");
             var t = tt.replace(/&#62;/g,">");
             return t
             return t

+ 17 - 6
core/src/web/templates/manage/loan/cluelist.html

@@ -5,6 +5,7 @@
     {{include "/common/inc.html"}}
     {{include "/common/inc.html"}}
     <title>分类线索</title>
     <title>分类线索</title>
     <script src="/js/qfwtable.js"></script>
     <script src="/js/qfwtable.js"></script>
+    <script src="/loan/js/common.js"></script>
     <style type="text/css">
     <style type="text/css">
         #jyloan{
         #jyloan{
             background-color: #f5f5f5;
             background-color: #f5f5f5;
@@ -36,7 +37,7 @@
         }
         }
 
 
         .table > thead > tr > th:nth-child(2) {
         .table > thead > tr > th:nth-child(2) {
-            width: 10%;
+            width: 5%;
         }
         }
 
 
         .table > thead > tr > th:nth-child(3) {
         .table > thead > tr > th:nth-child(3) {
@@ -44,22 +45,26 @@
         }
         }
 
 
         .table > thead > tr > th:nth-child(4) {
         .table > thead > tr > th:nth-child(4) {
-            width: 10%;
+            width: 5%;
         }
         }
 
 
         .table > thead > tr > th:nth-child(5) {
         .table > thead > tr > th:nth-child(5) {
-            width: 10%;
+            width: 5%;
         }
         }
 
 
         .table > thead > tr > th:nth-child(6) {
         .table > thead > tr > th:nth-child(6) {
-            width: 10%;
+            width: 5%;
             /*text-align: center;*/
             /*text-align: center;*/
         }
         }
         .table > thead > tr > th:nth-child(7) {
         .table > thead > tr > th:nth-child(7) {
-            width: 10%;
+            width: 8%;
             /*text-align: center;*/
             /*text-align: center;*/
         }
         }
         .table > thead > tr > th:nth-child(8) {
         .table > thead > tr > th:nth-child(8) {
+            width: 5%;
+            /*text-align: center;*/
+        }
+        .table > thead > tr > th:nth-child(9) {
             width: 5%;
             width: 5%;
             display: none;
             display: none;
             /*text-align: center;*/
             /*text-align: center;*/
@@ -78,7 +83,7 @@
             border: 0px;
             border: 0px;
             border-bottom: 1px dashed #999999;
             border-bottom: 1px dashed #999999;
         }
         }
-        .table > tbody > tr > td:nth-child(8) {
+        .table > tbody > tr > td:nth-child(9) {
             display: none;
             display: none;
         }
         }
 
 
@@ -183,6 +188,12 @@
                         return d.registration
                         return d.registration
                     }
                     }
                 },
                 },
+                {
+                    title: "贷款时间", field: "price", callback: function (d) {
+                        return timestampToTime(d.application_time)
+
+                    }
+                },
                 {
                 {
                     title: "回访人", field: "person",callback:function (d) {
                     title: "回访人", field: "person",callback:function (d) {
                         if (typeof(d.visit_person) != "undefined"){
                         if (typeof(d.visit_person) != "undefined"){

+ 16 - 5
core/src/web/templates/manage/loan/evaluationdetail.html

@@ -8,6 +8,7 @@
     <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/js/kindeditor/themes/default/default.css"/>
     <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/js/kindeditor/themes/default/default.css"/>
     <script charset="utf-8" src="{{Msg "seo" "cdn"}}/js/kindeditor/kindeditor-all.js"></script>
     <script charset="utf-8" src="{{Msg "seo" "cdn"}}/js/kindeditor/kindeditor-all.js"></script>
     <script charset="utf-8" src="{{Msg "seo" "cdn"}}/js/kindeditor/kinditem.js"></script>
     <script charset="utf-8" src="{{Msg "seo" "cdn"}}/js/kindeditor/kinditem.js"></script>
+    <script src="/loan/js/common.js"></script>
     <style type="text/css">
     <style type="text/css">
         #jyloan{
         #jyloan{
             background-color: #f5f5f5;
             background-color: #f5f5f5;
@@ -39,19 +40,19 @@
         }
         }
 
 
         .table > thead > tr > th:nth-child(2) {
         .table > thead > tr > th:nth-child(2) {
-            width: 10%;
+            width: 5%;
         }
         }
 
 
         .table > thead > tr > th:nth-child(3) {
         .table > thead > tr > th:nth-child(3) {
-            width: 10%;
+            width: 5%;
         }
         }
 
 
         .table > thead > tr > th:nth-child(4) {
         .table > thead > tr > th:nth-child(4) {
-            width: 10%;
+            width: 8%;
         }
         }
 
 
         .table > thead > tr > th:nth-child(5) {
         .table > thead > tr > th:nth-child(5) {
-            width: 10%;
+            width: 5%;
         }
         }
 
 
         .table > thead > tr > th:nth-child(6) {
         .table > thead > tr > th:nth-child(6) {
@@ -63,6 +64,10 @@
             /*text-align: center;*/
             /*text-align: center;*/
         }
         }
         .table > thead > tr > th:nth-child(8) {
         .table > thead > tr > th:nth-child(8) {
+            width: 15%;
+            /*text-align: center;*/
+        }
+        .table > thead > tr > th:nth-child(9) {
             width: 5%;
             width: 5%;
             display: none;
             display: none;
             /*text-align: center;*/
             /*text-align: center;*/
@@ -81,7 +86,7 @@
             border: 0px;
             border: 0px;
             border-bottom: 1px dashed #999999;
             border-bottom: 1px dashed #999999;
         }
         }
-        .table > tbody > tr > td:nth-child(8) {
+        .table > tbody > tr > td:nth-child(9) {
             display: none;
             display: none;
         }
         }
 
 
@@ -228,6 +233,12 @@
                             return d.price
                             return d.price
                         }
                         }
                     },
                     },
+                    {
+                        title: "贷款时间", field: "price", callback: function (d) {
+                            return timestampToTime(d.application_time)
+
+                        }
+                    },
                     {
                     {
                         title:"贷款期限",field:"term",callback:function (d) {
                         title:"贷款期限",field:"term",callback:function (d) {
                             return d.term
                             return d.term

+ 19 - 8
core/src/web/templates/manage/loan/evaluationlist.html

@@ -7,6 +7,7 @@
     <title>企业评估</title>
     <title>企业评估</title>
 
 
     <script src="/js/qfwtable.js"></script>
     <script src="/js/qfwtable.js"></script>
+    <script src="/loan/js/common.js"></script>
     <style type="text/css">
     <style type="text/css">
 
 
 
 
@@ -25,19 +26,19 @@
         }
         }
 
 
         .table > thead > tr > th:nth-child(2) {
         .table > thead > tr > th:nth-child(2) {
-            width: 10%;
+            width: 5%;
         }
         }
 
 
         .table > thead > tr > th:nth-child(3) {
         .table > thead > tr > th:nth-child(3) {
-            width: 10%;
+            width: 5%;
         }
         }
 
 
         .table > thead > tr > th:nth-child(4) {
         .table > thead > tr > th:nth-child(4) {
-            width: 10%;
+            width: 8%;
         }
         }
 
 
         .table > thead > tr > th:nth-child(5) {
         .table > thead > tr > th:nth-child(5) {
-            width: 10%;
+            width: 5%;
         }
         }
 
 
         .table > thead > tr > th:nth-child(6) {
         .table > thead > tr > th:nth-child(6) {
@@ -49,6 +50,10 @@
             /*text-align: center;*/
             /*text-align: center;*/
         }
         }
         .table > thead > tr > th:nth-child(8) {
         .table > thead > tr > th:nth-child(8) {
+            width: 15%;
+            /*text-align: center;*/
+        }
+        .table > thead > tr > th:nth-child(9) {
             width: 5%;
             width: 5%;
             display: none;
             display: none;
             /*text-align: center;*/
             /*text-align: center;*/
@@ -67,7 +72,7 @@
             border: 0px;
             border: 0px;
             border-bottom: 1px dashed #999999;
             border-bottom: 1px dashed #999999;
         }
         }
-        .table > tbody > tr > td:nth-child(8) {
+        .table > tbody > tr > td:nth-child(9) {
             display: none;
             display: none;
         }
         }
 
 
@@ -179,6 +184,12 @@
                         return d.price
                         return d.price
                     }
                     }
                 },
                 },
+                {
+                    title: "贷款时间", field: "price", callback: function (d) {
+                        return timestampToTime(d.application_time)
+
+                    }
+                },
                 {
                 {
                     title:"贷款期限",field:"term",callback:function (d) {
                     title:"贷款期限",field:"term",callback:function (d) {
                         return d.term
                         return d.term
@@ -191,7 +202,7 @@
                     }
                     }
                 },
                 },
                 {
                 {
-                    title:"uid",field:"remark",callback:function (d) {
+                    title:"uid",field:"uid",callback:function (d) {
                         return d.uid
                         return d.uid
 
 
                     }
                     }
@@ -215,7 +226,7 @@
 
 
     //双击事件
     //双击事件
     $("#content").on("dblclick","#audit>.dt-table-wrapper>.table>tbody>tr",function(){
     $("#content").on("dblclick","#audit>.dt-table-wrapper>.table>tbody>tr",function(){
-        uid = $(this).find("td").eq(7).text();
+        uid = $(this).find("td").eq(8).text();
         $(this).css("background","rgb(202, 198, 133)");
         $(this).css("background","rgb(202, 198, 133)");
         $(this).siblings().css("background","rgb(255,255,255)");
         $(this).siblings().css("background","rgb(255,255,255)");
         $.ajax({
         $.ajax({
@@ -237,7 +248,7 @@
     });
     });
     //单击事件
     //单击事件
     $("#content").on("click","#audit>.dt-table-wrapper>.table>tbody>tr",function(){
     $("#content").on("click","#audit>.dt-table-wrapper>.table>tbody>tr",function(){
-        var t = $(this).find("td").eq(7).text();
+        var t = $(this).find("td").eq(8).text();
         if ($(this).hasClass("selected")){
         if ($(this).hasClass("selected")){
             window.location.href = "/manage/jy_loan/evaluationdetail?uid="+t
             window.location.href = "/manage/jy_loan/evaluationdetail?uid="+t
         }else{
         }else{

+ 18 - 7
core/src/web/templates/manage/loan/show_clue.html

@@ -3,8 +3,10 @@
 <head>
 <head>
     <meta charset="UTF-8">
     <meta charset="UTF-8">
     {{include "/common/inc.html"}}
     {{include "/common/inc.html"}}
+    <script src="/js/qfwtable.js"></script>
     <title>分类线索</title>
     <title>分类线索</title>
     <link href="/css/bootstrap.min.css" rel="stylesheet" />
     <link href="/css/bootstrap.min.css" rel="stylesheet" />
+    <script src="/loan/js/common.js"></script>
     <style type="text/css">
     <style type="text/css">
         #jyloan{
         #jyloan{
             background-color: #f5f5f5;
             background-color: #f5f5f5;
@@ -36,7 +38,7 @@
         }
         }
 
 
         .table > thead > tr > th:nth-child(2) {
         .table > thead > tr > th:nth-child(2) {
-            width: 10%;
+            width: 5%;
         }
         }
 
 
         .table > thead > tr > th:nth-child(3) {
         .table > thead > tr > th:nth-child(3) {
@@ -44,22 +46,26 @@
         }
         }
 
 
         .table > thead > tr > th:nth-child(4) {
         .table > thead > tr > th:nth-child(4) {
-            width: 10%;
+            width: 5%;
         }
         }
 
 
         .table > thead > tr > th:nth-child(5) {
         .table > thead > tr > th:nth-child(5) {
-            width: 10%;
+            width: 5%;
         }
         }
 
 
         .table > thead > tr > th:nth-child(6) {
         .table > thead > tr > th:nth-child(6) {
-            width: 10%;
+            width: 5%;
             /*text-align: center;*/
             /*text-align: center;*/
         }
         }
         .table > thead > tr > th:nth-child(7) {
         .table > thead > tr > th:nth-child(7) {
-            width: 10%;
+            width: 8%;
             /*text-align: center;*/
             /*text-align: center;*/
         }
         }
         .table > thead > tr > th:nth-child(8) {
         .table > thead > tr > th:nth-child(8) {
+            width: 5%;
+            /*text-align: center;*/
+        }
+        .table > thead > tr > th:nth-child(9) {
             width: 5%;
             width: 5%;
             display: none;
             display: none;
             /*text-align: center;*/
             /*text-align: center;*/
@@ -78,7 +84,7 @@
             border: 0px;
             border: 0px;
             border-bottom: 1px dashed #999999;
             border-bottom: 1px dashed #999999;
         }
         }
-        .table > tbody > tr > td:nth-child(8) {
+        .table > tbody > tr > td:nth-child(9) {
             display: none;
             display: none;
         }
         }
 
 
@@ -193,6 +199,12 @@
                             return d.registration
                             return d.registration
                         }
                         }
                     },
                     },
+                    {
+                        title: "贷款时间", field: "price", callback: function (d) {
+                            return timestampToTime(d.application_time)
+
+                        }
+                    },
                     {
                     {
                         title: "回访人", field: "person",callback:function (d) {
                         title: "回访人", field: "person",callback:function (d) {
                             if (typeof(d.visit_person) != "undefined"){
                             if (typeof(d.visit_person) != "undefined"){
@@ -266,7 +278,6 @@
     }
     }
     function format(d) {
     function format(d) {
         if (typeof(d)!== "undefined"){
         if (typeof(d)!== "undefined"){
-            console.log(d)
             var tt =d.replace(/&#60;/g,"<");
             var tt =d.replace(/&#60;/g,"<");
             var t = tt.replace(/&#62;/g,">");
             var t = tt.replace(/&#62;/g,">");
             return t
             return t

+ 17 - 8
core/src/web/templates/manage/loan/visit.html

@@ -10,6 +10,7 @@
     <script charset="utf-8" src="{{Msg "seo" "cdn"}}/js/kindeditor/kindeditor-all.js"></script>
     <script charset="utf-8" src="{{Msg "seo" "cdn"}}/js/kindeditor/kindeditor-all.js"></script>
     <script charset="utf-8" src="{{Msg "seo" "cdn"}}/js/kindeditor/kinditem.js"></script>
     <script charset="utf-8" src="{{Msg "seo" "cdn"}}/js/kindeditor/kinditem.js"></script>
     <script src="/js/qfwtable.js"></script>
     <script src="/js/qfwtable.js"></script>
+    <script src="/loan/js/common.js"></script>
     <style type="text/css">
     <style type="text/css">
         #jyloan{
         #jyloan{
             background-color: #f5f5f5;
             background-color: #f5f5f5;
@@ -34,19 +35,19 @@
         }
         }
 
 
         .table > thead > tr > th:nth-child(2) {
         .table > thead > tr > th:nth-child(2) {
-            width: 10%;
+            width: 5%;
         }
         }
 
 
         .table > thead > tr > th:nth-child(3) {
         .table > thead > tr > th:nth-child(3) {
-            width: 10%;
+            width: 5%;
         }
         }
 
 
         .table > thead > tr > th:nth-child(4) {
         .table > thead > tr > th:nth-child(4) {
-            width: 10%;
+            width: 8%;
         }
         }
 
 
         .table > thead > tr > th:nth-child(5) {
         .table > thead > tr > th:nth-child(5) {
-            width: 10%;
+            width: 5%;
         }
         }
 
 
         .table > thead > tr > th:nth-child(6) {
         .table > thead > tr > th:nth-child(6) {
@@ -58,7 +59,10 @@
             /*text-align: center;*/
             /*text-align: center;*/
         }
         }
         .table > thead > tr > th:nth-child(8) {
         .table > thead > tr > th:nth-child(8) {
-            width: 5%;
+            width: 15%;
+            /*text-align: center;*/
+        }
+        .table > thead > tr > th:nth-child(9) {
             display: none;
             display: none;
             /*text-align: center;*/
             /*text-align: center;*/
         }
         }
@@ -76,7 +80,7 @@
             border: 0px;
             border: 0px;
             border-bottom: 1px dashed #999999;
             border-bottom: 1px dashed #999999;
         }
         }
-        .table > tbody > tr > td:nth-child(8) {
+        .table > tbody > tr > td:nth-child(9) {
             display: none;
             display: none;
         }
         }
 
 
@@ -208,6 +212,12 @@
                         return d.price
                         return d.price
                     }
                     }
                 },
                 },
+                {
+                    title: "贷款时间", field: "price", callback: function (d) {
+                        return timestampToTime(d.application_time)
+
+                    }
+                },
                 {
                 {
                     title: "贷款期限", field: "term", callback: function (d) {
                     title: "贷款期限", field: "term", callback: function (d) {
                         return d.term
                         return d.term
@@ -220,7 +230,7 @@
                     }
                     }
                 },
                 },
                 {
                 {
-                    title: "uid", field: "remark", callback: function (d) {
+                    title: "uid", field: "uid", callback: function (d) {
                         return d.uid
                         return d.uid
 
 
                     }
                     }
@@ -350,6 +360,5 @@
         }
         }
 
 
     }
     }
-
 </script>
 </script>
 </html>
 </html>