zouyuxuan 5 år sedan
förälder
incheckning
a360320ce3

+ 4 - 2
core/src/qfw/manage/loan.go

@@ -146,7 +146,7 @@ func (this *LoanAction)Telephone_interviews(){
 		perPage, _ := this.GetInteger("perPage")
 		query := make(map[string]interface{})
 		query["visit_back"] = 0
-		ldata:=mgo.Find("jy_loan",query,nil,nil,false,(currentPage-1)*perPage, perPage)
+		ldata:=mgo.Find("jy_loan",query,`{"application_time":-1}`,nil,false,(currentPage-1)*perPage, perPage)
 		count := mgo.Count("jy_loan", query)
 		data := make(map[string]interface{})
 		if len(*ldata)!=0{
@@ -260,7 +260,7 @@ func (this *LoanAction)Clue_manage(){
 	}else{
 		currentPage, _ := this.GetInteger("currentPage")
 		perPage, _ := this.GetInteger("perPage")
-		data :=mgo.Find("jy_loan",nil,`{"application":1}`,`{"companyName":1,"registration":1,"visit_person":1,"visit_time":1,"account_manager":1,"opinion_time":1,"classify":1,"uid":1}`,false,(currentPage-1)*perPage, perPage)
+		data :=mgo.Find("jy_loan",nil,`{"application":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)
 		count := mgo.Count("jy_loan",nil)
 		if (*data!=nil){
 			this.ServeJson(map[string]interface{}{
@@ -422,11 +422,13 @@ func (this *LoanAction)Clue_save(){
 	}else{
 		uid := this.GetString("uid")
 		classify_msg := this.GetString("classify_msg")
+		classify_type := this.GetString("classify_type")
 		query := make(map[string]interface{})
 		query["uid"] = uid
 		set :=make(map[string]interface{})
 		info := make(map[string]interface{})
 		info["classify_msg"] = classify_msg
+		info["classify_type"] = classify_type
 		set["$set"] = info
 		res := mgo.Update("jy_loan",query,set,true,false)
 		if res{

+ 5 - 3
core/src/web/templates/manage/loan/clue.html

@@ -334,13 +334,15 @@
 
     function submit() {
         var content = $("#classify_msg").val();
-        if(content!=""){
+        var classify = $("#classify option:selected").val();
+        if(content!=""&&classify!=""){
             $.ajax({
                 url: "/manage/jy_loan/cluesave",
                 method: "post",
                 data: {
-                    "msg":content,
-                    "uid":uid
+                    "classify_msg":content,
+                    "uid":uid,
+                    "classify_type":classify
                 },
                 datatype: "json",
                 async:false,

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

@@ -218,8 +218,8 @@
                 },
                 {
                     title:"线索分类",field:"remark",callback:function (d) {
-                        if (typeof (d.classify)!= "undefined"){
-                            return "<a href=/manage/jy_loan/show_clue?uid="+d.uid+">"+   d.classify+"</a>"
+                        if (typeof (d.classify_type)!= "undefined"){
+                            return "<a href=/manage/jy_loan/show_clue?uid="+d.uid+">"+   d.classify_type+"</a>"
                             // return d.classify
                         }else{
                             var Html = "<div class='editBtn'><span class='yellowStyle' onclick='window.location.href=\"" + "/manage/loan/clasifylist?uid="+  d.uid + "\"'>去分类</span>"+"</div>"

+ 0 - 13
core/src/web/templates/manage/loan/evaluation.html

@@ -15,17 +15,6 @@
     <script charset="utf-8" src="{{Msg "seo" "cdn"}}/js/kindeditor/kinditem.js"></script>
     <style type="text/css">
 
-        .table-bordered{
-            border: 1px solid #ddd;
-            width: auto;
-            position: absolute;
-            left: 220px;
-            top: 120px;
-        }
-        .ke-container{
-            width: 425px;
-            margin-left: 100px;
-        }
 
         #content table {
             table-layout: fixed;
@@ -108,7 +97,6 @@
             margin: 0 3px;
         }
         .ke-container ke-container-default{
-            width: 582px;
             margin-left: 0px;
         }
         #return{
@@ -122,7 +110,6 @@
             letter-spacing: 0px;
             text-decoration: none;
         }
-
     </style>
 </head>
 {{include "/common/baiducc.html"}}

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

@@ -242,7 +242,7 @@
                     },
                     {
                         title:"线索分类",field:"remark",callback:function (d) {
-                            return d.classify
+                            return d.classify_type
 
                         }
                     },
@@ -276,9 +276,9 @@
             data:{"uid":uid},
             async:false,
             success:function (d) {
-                $("#visit-record").html(d.visit_msg);
-                $("#evaluation").html(d.opinion_msg);
-                $("#classify").html(d.classify_msg);
+                $("#visit-record").html(d.data[0].visit_msg);
+                $("#evaluation").html(d.data[0].opinion_msg);
+                $("#classify").html(d.data[0].classify_msg);
                 $(".record").show();
             }
         })

+ 0 - 7
core/src/web/templates/manage/loan/visit.html

@@ -15,13 +15,6 @@
     <script src="/js/qfwtable.js"></script>
     <style type="text/css">
 
-        .table-bordered{
-            border: 1px solid #ddd;
-            width: auto;
-            position: absolute;
-            left: 220px;
-            top: 120px;
-        }
         .ke-container{
             width: 425px;
             margin-left: 100px;