瀏覽代碼

剑鱼贷款企明星后台

zouyuxuan 5 年之前
父節點
當前提交
f5530b9e5a

+ 613 - 0
core/src/qfw/manage/loan.go

@@ -0,0 +1,613 @@
+package manage
+
+import (
+	"github.com/go-xweb/xweb"
+	"gopkg.in/mgo.v2/bson"
+	mgo "qfw/util/mongodb"
+	"time"
+)
+
+
+type LoanAction struct {
+	*xweb.Action
+	validataPassword      xweb.Mapper `xweb:"/manage/jy_loan/validatapassword"`        //密码校验
+	telephone_interviews  xweb.Mapper `xweb:"/manage/jyloan/telephoneinterviews"`      //电话回访列表
+	return_visit_records  xweb.Mapper `xweb:"/manage/jy_loan/returnvisitrecords"`      //回访信息登记
+	evaluation            xweb.Mapper `xweb:"/manage/jy_loan/evaluation"`              //查询回访记录
+	evaluation_list       xweb.Mapper `xweb:"/manage/jy_loan/evaluationlist"`          //评估
+	evaluation_opinion    xweb.Mapper `xweb:"/manage/jy_loan/evaluationopinion"`       //评估意见
+	modify_password       xweb.Mapper `xweb:"/manage/jy_loan/modifypassword"`          //修改密码
+	clue_manage           xweb.Mapper `xweb:"/manage/jy_loan/cluelist"`                //线索管理列表
+	clue_save             xweb.Mapper `xweb:"/manage/jy_loan/cluesave"`                //线索保存
+	clue_show             xweb.Mapper `xweb:"/manage/jy_loan/clueshow"`                //线索展示
+	clue_detail           xweb.Mapper `xweb:"/manage/jy_loan/cluedetail"`              //分类详情
+	classification_list   xweb.Mapper `xweb:"/manage/jy_loan/classificationlist"`      //分类列表
+	show_classification   xweb.Mapper `xweb:"/manage/jy_loan/showclassification"`      //查看分类
+	save_classification   xweb.Mapper `xweb:"/manage/jy_loan/saveclassification"`      //保存分类
+	updata_classification xweb.Mapper `xweb:"/manage/jy_loan/updataclassification"`    //更新分类
+}
+
+type Front struct {
+	*xweb.Action
+	login                xweb.Mapper    `xweb:"/manage/jyloan/list"`
+	visitList            xweb.Mapper    `xweb:"/manage/loan/visitlist"`
+	evaluationlist       xweb.Mapper    `xweb:"/manage/loan/evaluationlist"`
+	clasifylist          xweb.Mapper    `xweb:"/manage/loan/clasifylist"`
+	setting              xweb.Mapper    `xweb:"/manage/loan/setting"`
+	classset             xweb.Mapper    `xweb:"/manage/loan/classSet.html"`
+	passwordchange       xweb.Mapper    `xweb:"/loan/passwordChange.html"`
+	clue                 xweb.Mapper    `xweb:"/manage/loan/cluelist"`
+	show_clue            xweb.Mapper    `xweb:"/manage/jy_loan/show_clue"`
+}
+
+
+func init(){
+	xweb.AddAction(&Front{})
+	xweb.AddAction(&LoanAction{})
+}
+
+func (this *Front)Login()error{
+	return this.Render("/manage/loan/manage.html")
+}
+
+func (this *Front)VisitList()error{
+	return this.Render("/manage/loan/visit.html")
+}
+
+func (this *Front)Evaluationlist()error{
+	return this.Render("/manage/loan/evaluation.html")
+}
+
+func (this *Front)Setting()error{
+	return this.Render("/manage/loan/classSet.html")
+}
+
+//func (this *Front)Classset()error{
+//	return this.Render("./classSet.html")
+//}
+
+func (this *Front)Passwordchange()error{
+	return this.Render("./passwordChange.html")
+}
+
+func (this *Front)Clue()error{
+	return this.Render("./manage/loan/cluelist.html")
+}
+
+func (this *Front)Clasifylist()error{
+	uid := this.GetString("uid")
+	this.T["uid"] = uid
+	return this.Render("./manage/loan/clue.html",&this.T)
+
+}
+func (this *Front)Show_clue()error{
+	uid := this.GetString("uid")
+	this.T["uid"] = uid
+	return this.Render("./manage/loan/show_clue.html")
+}
+
+
+//回访记录
+func (this *LoanAction)Evaluation(){
+	userId := this.GetSession("userId")
+	if userId==nil{
+		this.ServeJson(map[string]interface{}{
+			"error_code":"1004",
+		})
+	}else{
+		uid := this.GetString("uid")
+		query := make(map[string]interface{})
+		query["uid"] = uid
+		data :=*mgo.Find("jy_loan",query,nil,`{"visit_msg":1,"visit_person":1,"visit_time":1}`,false,0,0)
+		this.ServeJson(map[string]interface{}{
+			"data":data,
+		})
+	}
+}
+
+//密码校验(业务密码,管理密码)
+func (this *LoanAction)ValidataPassword(){
+	userId := this.GetSession("userId")
+	if userId==nil{
+		this.ServeJson(map[string]interface{}{
+			"error_code":"1004",
+		})
+	}else{
+		pwd:=this.GetString("password")
+		pwd_type := this.GetString("type")
+		res:=valida(userId.(string),pwd,pwd_type)
+		data := make(map[string]interface{})
+		if res{
+			data["status"] = 1
+			this.ServeJson(map[string]interface{}{
+				"error_code":"0",
+				"data":data,
+			})
+		}else{
+			data["status"] = 0
+			this.ServeJson(map[string]interface{}{
+				"error_code":"0",
+				"data":data,
+			})
+		}
+
+	}
+}
+
+//电话回访列表
+func (this *LoanAction)Telephone_interviews(){
+	userId := this.GetSession("userId")
+	if userId==nil{
+		this.ServeJson(map[string]interface{}{
+			"error_code":"1004",
+		})
+	}else{
+		currentPage, _ := this.GetInteger("currentPage")
+		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)
+		count := mgo.Count("jy_loan", query)
+		data := make(map[string]interface{})
+		if len(*ldata)!=0{
+			this.ServeJson(map[string]interface{}{
+				"currentPage": currentPage,
+				"data":        ldata,
+				"totalRows":   count,
+			})
+		}else{
+			data["status"] = 0
+			this.ServeJson(map[string]interface{}{
+				"error_code":"0",
+				"data":data,
+			})
+		}
+	}
+}
+
+//回访记录登记
+func (this *LoanAction)Return_visit_records(){
+	userId := this.GetSession("userId")
+	if userId==nil{
+		this.ServeJson(map[string]interface{}{
+			"error_code":"1004",
+		})
+	}else{
+		data := make(map[string]int)
+		visit_msg := this.GetString("msg")
+		visit_person := this.GetString("person")
+		uid := this.GetString("uid")
+		if visit_msg!=""{
+			query := make(map[string]interface{})
+			query["uid"] = uid
+			info:= make(map[string]interface{})
+			set:= make(map[string]interface{})
+
+			if visit_person!=""{
+				info["visit_person"] = visit_person
+			}
+
+			info["visit_msg"] = visit_msg
+			info["visit_back"] = 1
+			info["visit_time"] = time.Now().Format("2006-01-02")
+			set["$set"] = info
+
+			res := mgo.Update("jy_loan",query,set,true,false)
+			if res{
+				data["status"] = 1
+				this.ServeJson(map[string]interface{}{
+					"error_code":"0",
+					"data":data,
+				})
+			}else{
+				data["status"] = 0
+				this.ServeJson(map[string]interface{}{
+					"error_code":"0",
+					"data":data,
+				})
+			}
+		}else{
+			data["status"] = 0
+			this.ServeJson(map[string]interface{}{
+				"error_code":"1002",
+				"data":data,
+			})
+		}
+	}
+
+}
+
+//贷款评估列表
+func (this *LoanAction)Evaluation_list(){
+	userId := this.GetSession("userId")
+	if userId==nil{
+		this.ServeJson(map[string]interface{}{
+			"error_code":"1004",
+		})
+	}else{
+		currentPage, _ := this.GetInteger("currentPage")
+		perPage, _ := this.GetInteger("perPage")
+		query :=make(map[string]interface{})
+		query["opinion"] = 0
+		ldata:=*mgo.Find("jy_loan",query,nil,nil,false,(currentPage-1)*perPage, perPage)
+		count := mgo.Count("jy_loan", query)
+		data := make(map[string]interface{})
+		if len(ldata)!=0{
+			this.ServeJson(map[string]interface{}{
+				"currentPage": currentPage,
+				"data":        ldata,
+				"totalRows":   count,
+			})
+
+		}else{
+			data["status"] = 0
+			this.ServeJson(map[string]interface{}{
+				"error_code":"0",
+				"data":data,
+			})
+		}
+	}
+
+}
+
+//线索管理
+func (this *LoanAction)Clue_manage(){
+	userId := this.GetSession("userId")
+	if userId == nil{
+		this.ServeJson(map[string]interface{}{
+			"error_code":"1004",
+		})
+	}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)
+		count := mgo.Count("jy_loan",nil)
+		if (*data!=nil){
+			this.ServeJson(map[string]interface{}{
+				"currentPage": currentPage,
+				"data":        data,
+				"totalRows":   count,
+			})
+		}
+	}
+}
+//贷款评估意见
+func (this *LoanAction)Evaluation_opinion(){
+	userId := this.GetSession("userId")
+	if userId==nil{
+		this.ServeJson(map[string]interface{}{
+			"error_code":"1004",
+		})
+	}else{
+		data := make(map[string]int)
+		loan_msg := this.GetString("opinion_msg")
+		account_manager := this.GetString("account_manager")
+		uid := this.GetString("uid")
+		if loan_msg!=""{
+			query := make(map[string]interface{})
+			query["uid"] = uid
+			info:= make(map[string]interface{})
+			set:= make(map[string]interface{})
+
+			if account_manager!=""{
+				info["account_manager"] = account_manager
+			}
+
+			info["opinion_msg"] = loan_msg
+			info["opinion_time"] = time.Now().Format("2006-01-02")
+			info["opinion"] = 1
+			set["$set"] = info
+
+			res := mgo.Update("jy_loan",query,set,true,false)
+			if res{
+				data["status"] = 1
+				this.ServeJson(map[string]interface{}{
+					"error_code":"0",
+					"data":data,
+				})
+			}else{
+				data["status"] = 0
+				this.ServeJson(map[string]interface{}{
+					"error_code":"0",
+					"data":data,
+				})
+			}
+		}else{
+			data["status"] = 0
+			this.ServeJson(map[string]interface{}{
+				"error_code":"1002",
+				"data":data,
+			})
+		}
+	}
+
+}
+
+//修改密码
+func (this *LoanAction)Modify_password(){
+	userId := this.GetSession("userId")
+	if userId ==nil{
+		this.ServeJson(map[string]interface{}{
+			"error_code":"1004",
+		})
+	}else{
+		ptype := this.GetString("type")
+		pwd := this.GetString("password")
+		query:=make(map[string]interface{})
+		set := make(map[string]interface{})
+		t := make(map[string]string)
+		t["password"] = pwd
+		set["$set"] = t
+		query["uid"] = userId
+		query["mtype"] = ptype
+		res :=mgo.Update("loan_pwd",query,set,false,false)
+		if res{
+			this.ServeJson(map[string]interface{}{
+				"error_code":0,
+				"data":map[string]interface{}{
+					"status":1,
+				},
+			})
+		}else{
+			this.ServeJson(map[string]interface{}{
+				"error_code":0,
+				"data":map[string]interface{}{
+					"status":0,
+				},
+
+			})
+		}
+	}
+
+}
+
+//线索分类列表
+func (this *LoanAction)Classification_list(){
+	userId := this.GetSession("userId")
+	if userId==nil{
+		this.ServeJson(map[string]interface{}{
+			"error_code":"1004",
+		})
+	}else{
+		//per_page,_ := this.GetInteger("per_page")
+		//current_page,_ := this.GetInteger("page")
+		ldata:=*mgo.Find("jy_loan_classify",nil,nil,nil,false,0,5)
+		count := mgo.Count("jy_loan_classify", nil)
+		if len(ldata)!=0{
+			this.ServeJson(map[string]interface{}{
+				"error_code":"0",
+				"data":ldata,
+				"count":count,
+			})
+
+		}else{
+			this.ServeJson(map[string]interface{}{
+				"error_code":"0",
+				"data":"",
+			})
+		}
+	}
+}
+
+//线索分类详情
+func (this *LoanAction)Clue_detail(){
+	userId := this.GetSession("userId")
+	if userId == nil{
+		this.ServeJson(map[string]interface{}{
+			"error_code":"1004",
+		})
+	}else{
+		uid := this.GetString("uid")
+		query := make(map[string]interface{})
+		query["uid"] = uid
+		data :=mgo.FindOne("jy_loan",query)
+		if data!=nil{
+			this.ServeJson(map[string][]interface{}{
+				"data":[]interface{}{
+					data,
+				},
+
+			})
+		}
+	}
+}
+
+//线索保存
+func (this *LoanAction)Clue_save(){
+	userId := this.GetSession("userId")
+	if userId == nil{
+		this.ServeJson(map[string]interface{}{
+			"error_code":"1004",
+		})
+	}else{
+		uid := this.GetString("uid")
+		classify_msg := this.GetString("classify_msg")
+		query := make(map[string]interface{})
+		query["uid"] = uid
+		set :=make(map[string]interface{})
+		info := make(map[string]interface{})
+		info["classify_msg"] = classify_msg
+		set["$set"] = info
+		res := mgo.Update("jy_loan",query,set,true,false)
+		if res{
+			this.ServeJson(map[string]interface{}{
+				"status":1,
+			})
+		}else{
+			this.ServeJson(map[string]interface{}{
+				"status":0,
+			})
+		}
+	}
+}
+
+//线索展示
+func (this *LoanAction)Clue_show(){
+	userId := this.GetSession("userId")
+	if userId == nil{
+		this.ServeJson(map[string]interface{}{
+			"error_code":"1004",
+		})
+	}else{
+		uid := this.GetString("uid")
+		query := make(map[string]interface{})
+		query["uid"] = uid
+		res:=mgo.FindOne("jy_loan",query)
+		if res!=nil{
+			this.ServeJson(map[string][]interface{}{
+				"data":[]interface{}{
+					res,
+				},
+
+			})
+		}
+	}
+}
+
+//查看线索分类
+func(this *LoanAction)Show_classification(){
+	userId := this.GetSession("userId")
+	if userId==nil{
+		this.ServeJson(map[string]interface{}{
+			"error_code":"1004",
+		})
+	}else{
+		res := mgo.Find("jy_loan_classify",nil,false,nil,false,0,10)
+		if len(*res) != 0{
+			this.ServeJson(map[string]interface{}{
+				"error_code":"0",
+				"data":map[string]interface{}{
+					"status":"1",
+					"data":res,
+				},
+			})
+
+		}else{
+			this.ServeJson(map[string]interface{}{
+				"error_code":"0",
+				"data":map[string]interface{}{
+					"status":"0",
+				},
+			})
+		}
+
+
+	}
+}
+
+//保存分类
+func (this *LoanAction)Save_classification(){
+	userId := this.GetSession("userId")
+	if userId== nil{
+		this.ServeJson(map[string]interface{}{
+			"error_code":"1004",
+		})
+	}else{
+		classify_type := this.GetString("type")
+		msg := this.GetString("msg")
+		uid := this.GetString("uid")
+		if msg == ""{
+			this.ServeJson(map[string]interface{}{
+				"error_code":"1002",
+			})
+		}else{
+			query := make(map[string]interface{})
+			query["uid"] = uid
+			t :=make(map[string]interface{})
+			t["msg"] = msg
+			t["mtype"] = classify_type
+			set := make(map[string]interface{})
+			set["$set"] = t
+			res :=mgo.Update("jy_loan_classify",query,set,false,false)
+			if res{
+				this.ServeJson(map[string]interface{}{
+					"error_code":"0",
+					"data":map[string]interface{}{
+						"status":"1",
+					},
+				})
+			}else{
+				this.ServeJson(map[string]interface{}{
+					"error_code":"0",
+					"data":map[string]interface{}{
+						"status":"0",
+					},
+				})
+			}
+		}
+	}
+
+}
+
+//增加分类设置
+func (this *LoanAction)Updata_classification(){
+	userId := this.GetSession("userId")
+	if userId==nil{
+		this.ServeJson(map[string]interface{}{
+			"error_code":"1004",
+		})
+	}else {
+		classify_type := this.GetString("type")
+		uid := this.GetString("uid")
+		if classify_type == "add"{
+			category:=this.GetString("category")
+			description:=this.GetString("description")
+			t := make(map[string]interface{})
+			t["classify_type"] = category
+			t["discribe"] = description
+			res:=mgo.Save("jy_loan_classify",t)
+			if res!=""{
+				this.ServeJson(map[string]interface{}{
+					"error_code":"0",
+					"data":map[string]interface{}{
+						"status":"1",
+					},
+				})
+			}else{
+				this.ServeJson(map[string]interface{}{
+					"error_code":"0",
+					"data":map[string]interface{}{
+						"status":"0",
+					},
+				})
+			}
+
+		}else{
+			m := make(map[string]interface{})
+			m["_id"] = bson.ObjectIdHex(uid)
+			err :=mgo.Del("jy_loan_classify",m)
+			if err{
+				this.ServeJson(map[string]interface{}{
+					"error_code":"0",
+					"data":map[string]interface{}{
+						"status":"1",
+					},
+				})
+			}else{
+				this.ServeJson(map[string]interface{}{
+					"error_code":"0",
+					"data":map[string]interface{}{
+						"status":"0",
+					},
+				})
+			}
+		}
+	}
+}
+
+
+func valida(uid,pwd,mtype string)bool{
+	query := make(map[string]interface{})
+	query["uid"] = uid
+	query["mtype"] = mtype
+	pdata:=*mgo.FindOneByField("loan_pwd",query,`{"password":1}`)
+	if pdata!=nil&&pdata["password"] == pwd{
+		return true
+	}else{
+		return false
+	}
+}
+
+
+
+

+ 88 - 0
core/src/web/staticres/loan/css/style.css

@@ -0,0 +1,88 @@
+
+#classify{
+    width: 200px;
+    height: 50px;
+    text-align: center;
+    line-height: 50px;
+    position: absolute;
+    background-color:rgb(86, 119, 252);
+    border-color: rgba(255, 0, 0, 0);
+    border-width: 0px;
+    border-style: solid;
+    box-shadow: rgba(0, 0, 0, 0.24) 0px 8px 8px 0px;
+    border-radius: 2px;
+    margin-top: 64px;
+    margin-left: 878px;
+
+
+}
+
+
+#visit{
+    width: 200px;
+    height: 50px;
+    background-color:rgb(86, 119, 252);
+    border-color: rgba(255, 0, 0, 0);
+    border-width: 0px;
+    border-style: solid;
+    box-shadow: rgba(0, 0, 0, 0.24) 0px 8px 8px 0px;
+    border-radius: 2px;
+    text-align: center;
+    line-height: 50px;
+    position: relative;
+    float: left;
+    font-weight: normal;
+    font-style: normal;
+    margin-top: 64px;
+    margin-left: 291px;
+    opacity: 1;
+    z-index: 9;
+}
+
+
+#evaluation{
+    width: 200px;
+    height: 50px;
+    background-color:rgb(86, 119, 252);
+    border-color: rgba(255, 0, 0, 0);
+    border-width: 0px;
+    border-style: solid;
+    box-shadow: rgba(0, 0, 0, 0.24) 0px 8px 8px 0px;
+    border-radius: 2px;
+    text-align: center;
+    line-height: 50px;
+    position: absolute;
+    margin-top: 64px;
+    margin-left: 584px;
+
+}
+
+#setting {
+    width: 200px;
+    height: 50px;
+    text-align: center;
+    line-height: 50px;
+    position: absolute;
+    background-color:rgb(86, 119, 252);
+    border-color: rgba(255, 0, 0, 0);
+    border-width: 0px;
+    border-style: solid;
+    box-shadow: rgba(0, 0, 0, 0.24) 0px 8px 8px 0px;
+    border-radius: 2px;
+    margin-left: 584px;
+    margin-top: 157px;
+}
+#list div span{
+    font-family:Helvetica;
+    font-weight:400;
+    font-size:20px;
+    color:rgb(255, 255, 255);
+    font-style:normal;
+    letter-spacing:0.5px;
+    line-height:33px;
+    text-decoration:none;
+}
+
+#sidebar{
+    margin-top: 0px;
+}

+ 163 - 0
core/src/web/templates/manage/loan/classSet.html

@@ -0,0 +1,163 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="UTF-8">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  <script src="/js/jquery.js"></script>
+  <title>线索分类设置</title>
+  <style>
+    *{
+      margin: 0;
+      padding: 0;
+    }
+    html,body{
+      height: 100%;
+      width: 100%;
+    }
+    .set-content{
+      margin: 0 auto;
+      width: 1000px;
+      padding-top: 100px;
+    }
+    .title{
+      color: #1a1a1a;
+      font-size: 18px;
+    }
+    .table-content{
+      display: flex;
+      justify-content: center;
+      margin: 50px auto 0;
+      font-size: 14px;
+      color: #1a1a1a;
+    }
+    table tr{
+      height: 35px;
+      line-height: 35px;
+    }
+    .del{
+      color: #38f;
+      cursor: pointer;
+    }
+    table {
+      border-right:1px solid #999;
+      border-bottom:1px solid #999
+    } 
+    table td{
+      text-align: center;
+      border-left:1px solid #999;
+      border-top:1px solid #999
+    } 
+    tbody{
+      color: #666;
+    }
+    td input{
+      height: 25px;
+      width: 80%;
+    }
+    #return{
+      float: right;
+      margin-right: 27px;
+      margin-top: 10px;
+      font-weight: 400;
+      font-size: 16px;
+      color: rgba(94, 126, 240, 1);
+      font-style: normal;
+      letter-spacing: 0px;
+      text-decoration: none;
+    }
+  </style>
+</head>
+<body>
+  <div class="set-content">
+    <div style="width: 100px;height: 40px;position: relative;float: right;">
+      <a id="return" href="/manage/jyloan/list"> 退出系统</a>
+    </div>
+    <div class="title">线索分类设置:</div>
+    <div class="table-content">
+      <table cellspacing="0" id="table">
+        <thead>
+          <tr>
+            <td style="width: 100px;">操作</td>
+            <td style="width: 200px">显示类型</td>
+            <td style="width: 350px">说明</td>
+          </tr>
+        </thead>
+      </table>
+    </div>
+  </div>
+  <script> 
+      function add() {
+
+        var tbody = document.getElementsByTagName('tbody')[0];
+        totle_rows = tbody.rows.length;
+        if (totle_rows<=10){
+          var tr = document.createElement('tr')
+          var classify_type = $("#type").val();
+          var classify_discribe = $("#discribe").val()
+          if (classify_type!=""&&classify_discribe){
+            $.ajax({
+              url:"/manage/jy_loan/updataclassification",
+              dataType: "json",
+              method: "post",
+              data:{"type":"add","category":classify_type,"description":classify_discribe},
+              success:function (d) {
+                if (d.data.status == "1"){
+                  // window.location.href = "/manage/loan/setting"
+                }
+              }
+            })
+            // tr.innerHTML = '<td class="del add" onclick="add()">增加</td><td><input id="type" type="text" placeholder="新的线索类型" maxlength="10"></td><td><input id="discribe" type="text" placeholder="说明" maxlength="30"></td>'
+            // tbody.appendChild(tr)
+            window.location.reload();
+          }
+        }
+
+
+      }
+      function del(Object) {
+        var id = Object.parentElement.children[3].textContent;
+        $.ajax({
+          url:"/manage/jy_loan/updataclassification",
+          method:"post",
+          dataType:"json",
+          data:{"type":"del","uid":id},
+          success:function (d) {
+            if (d.data.status == "1"){
+              window.location.href = "/manage/loan/setting"
+            }
+
+          }
+        })
+        // var obj = document.getElementsByTagName('tr','data-index')[index]
+        // console.log("obj",obj)
+
+      }
+      var str = ''
+      var addStr = '<tr><td class="del add" onclick="add()">增加</td><td><input id="type" type="text" placeholder="新的线索类型" maxlength="10"></td><td><input id="discribe" type="text" placeholder="说明" maxlength="30"></td></tr>'
+      // 处理数据
+      function dealData() {
+        $.ajax({
+          url:"/manage/jy_loan/showclassification",
+          method:"get",
+          dataType:"json",
+          async:false,
+          success:function (d) {
+            if (d.data.status==1){
+              for (var i =1;i<d.data.data.length;i++){
+                str = str +  '<tr><td class="del" onclick="del(this)" data-index="'+i+'">删除</td><td>'+d.data.data[i].classify_type+'</td><td>'+d.data.data[i].discribe+'</td><td class="id" hidden>'+d.data.data[i]._id+'</td></tr>'
+              }
+              str = str + addStr;
+              var table = document.getElementById('table');
+              var tbody = document.createElement('tbody');
+              tbody.innerHTML = str;
+              table.appendChild(tbody)
+            }
+          }
+        })
+
+
+      }
+      dealData()
+  </script> 
+</body>
+</html> 

+ 364 - 0
core/src/web/templates/manage/loan/clue.html

@@ -0,0 +1,364 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    {{include "/common/inc.html"}}
+    <title>分类线索</title>
+    <link href="/css/bootstrap.min.css" rel="stylesheet" />
+    <script src="/js/jquery.js"></script>
+    <script src="/js/bootstrap.min.js"></script>
+    <script src="/js/qfwtable.js"></script>
+    <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/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;
+            border: 0px;
+            font-size: 14px;
+        }
+
+        #sidebar {
+            margin-left: 0px;
+        }
+
+        .table > thead > tr > th:nth-child(1) {
+            width: 7%;
+        }
+
+        .table > thead > tr > th:nth-child(2) {
+            width: 10%;
+        }
+
+        .table > thead > tr > th:nth-child(3) {
+            width: 10%;
+        }
+
+        .table > thead > tr > th:nth-child(4) {
+            width: 10%;
+        }
+
+        .table > thead > tr > th:nth-child(5) {
+            width: 10%;
+        }
+
+        .table > thead > tr > th:nth-child(6) {
+            width: 10%;
+            /*text-align: center;*/
+        }
+        .table > thead > tr > th:nth-child(7) {
+            width: 10%;
+            /*text-align: center;*/
+        }
+        .table > thead > tr > th:nth-child(8) {
+            width: 5%;
+            display: none;
+            /*text-align: center;*/
+        }
+
+
+        .table > thead > tr > th {
+            border: 0px;
+            font-size: 14px;
+        }
+
+        .table > tbody > tr > td {
+            white-space: nowrap;
+            text-overflow: ellipsis;
+            overflow: hidden;
+            border: 0px;
+            border-bottom: 1px dashed #999999;
+        }
+        .table > tbody > tr > td:nth-child(8) {
+            display: none;
+        }
+
+        .table > tbody > tr {
+            cursor: pointer;
+        }
+
+
+        .pagination > .active > a:hover, .pagination > .active > a:focus {
+            background-color: #18CC7D;
+        }
+
+        .editBtn {
+            display: flex;
+        }
+
+        .editBtn span {
+            padding: 3px 7px;
+            border: 1px solid;
+            border-radius: 4px;
+            margin: 0 3px;
+        }
+        .yellowStyle {
+            background-color: rgb(202, 198, 133);
+            border-color: #EAB62F;
+        }
+        .ke-container{
+            width: 582px;
+            margin-left: 0px;
+        }
+        #return{
+            float: right;
+            margin-right: 27px;
+            margin-top: 10px;
+            font-weight: 400;
+            font-size: 16px;
+            color: rgba(94, 126, 240, 1);
+            font-style: normal;
+            letter-spacing: 0px;
+            text-decoration: none;
+        }
+
+    </style>
+</head>
+{{include "/common/baiducc.html"}}
+<body>
+
+<div>
+    {{include "/manage/audithead.html"}}
+    <div style="width: 100px;height: 40px;position: relative;float: right;">
+        <a id="return" href="/manage/jyloan/list"> 退出系统</a>
+    </div>
+    <div class="row" style="width:96%; margin:0 auto;">
+        {{include "/manage/slider.html"}}
+
+        <div id="content">
+            <div id="audit" style="margin-top: 20px"></div>
+        </div>
+        <div class="record" style="display: none">
+            <div style="float: left;
+    position: relative;
+    margin-left: 202px;
+    margin-top: -600px;
+    width: 200px;
+    height: 200px;">
+               <span style="font-size: 24px;">1 回访记录:</span>
+                <div id="visit_record"></div>
+            </div>
+            <div style="
+    position: relative;
+    float: left;
+    margin-left: 419px;
+    margin-top: -600px;
+    width: 200px;
+    height: 200px;
+
+">
+                <span style=" font-size: 24px;">2 评估意见:</span>
+                <div id="evaluation"></div>
+            </div>
+            <div style="
+    position: relative;
+    float: left;
+    margin-left: 638px;
+    margin-top: -600px;
+    width: 200px;
+    height: 200px;
+    font-size: 24px;
+">
+                <span >3 分类意见:</span>
+                <textarea id="classify_msg" name="classify_msg" style="margin-left: 100px;"></textarea>
+                <div style="padding-left: 118px;
+    margin-top: 37px;">
+                    <input  type="button" style="width: 90px; height: 33px; left: 1166px; top: 852px; z-index: 22; background-color: rgb(202, 198, 133); border-color: rgb(187, 187, 187); border-width: 1px; border-style: solid; border-radius: 4px; font-size: 14px; text-align: center; font-weight: normal; font-style: normal; opacity: 1;" value="提交" onclick="submit()">
+                </div>
+                <div style="padding-left: 415px;
+    margin-top: -33px;">
+                    <input  type="button" style="width: 90px; height: 33px; left: 1166px; top: 852px; z-index: 22; background-color: rgb(202, 198, 133); border-color: rgb(187, 187, 187); border-width: 1px; border-style: solid; border-radius: 4px; font-size: 14px; text-align: center; font-weight: normal; font-style: normal; opacity: 1;" value="取消" onclick="cancle()">
+                </div>
+            </div>
+        </div>
+
+    </div>
+    {{include "/common/bottom.html"}}
+
+
+</div>
+
+
+
+</body>
+<script>
+    var uid = {{.T.uid}}
+    $(function () {
+        $("#audit").datatable({
+            perPage: 1
+            ,
+            showPagination: false
+            ,
+            checkbox: "" //check radio
+            ,
+            checkboxHeader: false
+            ,
+            idField: "_id"
+            ,
+            classname: "table-hover"
+            ,
+            css: {"height": "200px"}
+            //,post:{"name":"ee"}
+            ,
+            url: '/manage/jy_loan/cluedetail?uid='+uid
+            ,
+            columns: [
+
+                {
+                    title: "企业名称", field: "companyName",callback:function (d) {
+                        return d.companyName
+                    }
+                },
+                {
+                    title: "注册地", field: "registration", callback: function (d) {
+                        return d.registration
+                    }
+                },
+                {
+                    title: "回访人", field: "person",callback:function (d) {
+                        if (typeof(d.visit_person) != "undefined"){
+                            return d.visit_person
+                        }else{
+                            return ""
+                        }
+                    }
+                },
+                {
+                    title: "回访日期", field: "phonenum", callback: function (d) {
+                        if (typeof (d.visit_time) !="undefined"){
+                            return d.visit_time
+                        }else{
+                            return ""
+                        }
+                    }
+                },
+                {
+                    title: "客户经理", field: "price", callback: function (d) {
+                        return d.account_manager
+                    }
+                },
+                {
+                    title:"评估日期",field:"term",callback:function (d) {
+                        if(typeof (d.opinion_time)!="undefined"){
+                            return d.opinion_time
+                        }else{
+                            return ""
+                        }
+                    }
+                },
+                {
+                    title:"线索分类",field:"remark",callback:function (d) {
+                        $("#visit_record").html(d.visit_msg);
+                        $("#evaluation").html(d.opinion_msg);
+                        $(".record").show();
+                        var select = '<select id="classify" name="" style="width: 70px;height: 25px" >'+'<option></option>'
+                        $.ajax({
+                            url:"/manage/jy_loan/classificationlist",
+                            method:"get",
+                            dataType:"json",
+                            async:false,
+                            success:function (r) {
+                                if (r.data.length>0){
+                                    var html = "";
+                                    for (var i =1;i<r.data.length;i++){
+                                        html += '<option>'+r.data[i].classify_type+'</option>';
+                                    }
+                                    select += html
+
+                                }
+                            }
+                        });
+                            return select + '</select>'
+
+                    }
+                },
+                {
+                    title:"uid",field:"remark",callback:function (d) {
+                        return d.uid
+
+                    }
+                }
+            ]
+        });
+
+        $("select").change(function () {
+            var find = $("#audit").data("datatable");
+            if (!find.options.opost) find.options.opost = find.options.post || {};
+            find.options.post = $.extend(find.options.opost, {
+                strSel1: $("#select1").val(),
+                strSel2: $("#select2").val(),
+                strSel3: $("#select3").val()
+            });
+            find.options.currentPage = 1;
+            find.render();
+        });
+
+    });
+    $(function(){
+        var kindEditInit=function(){
+            editor = KindEditor.create('textarea[name="classify_msg"]', {
+                id:"ke_editor",
+                allowFileManager : false,
+                filterMode:true,
+                width : '10px',
+                height:'20px',
+                items:items_simp,
+                allowImageRemoteImageRemote:false,
+                uploadJson : '/filemanage/upload',
+                afterCreate:function() {
+                    this.sync()
+                },
+                beforesubmit:function(){
+                    this.sync()
+                },
+                afterBlur: function(){
+                    this.sync()
+                }
+            });
+        };
+        kindEditInit()
+    });
+
+    function submit() {
+        var content = $("#classify_msg").val();
+        if(content!=""){
+            $.ajax({
+                url: "/manage/jy_loan/cluesave",
+                method: "post",
+                data: {
+                    "msg":content,
+                    "uid":uid
+                },
+                datatype: "json",
+                async:false,
+                success:function (r) {
+                    if (r.status==1){
+                        window.location.href = "/manage/loan/cluelist"
+                    }
+                }
+            })
+        }else{
+            alert("提交意见不能为空")
+        }
+
+
+    }
+    //取消
+    function cancle(){
+        window.location.href = "/manage/loan/cluelist"
+    }
+</script>
+</html>

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

@@ -0,0 +1,254 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    {{include "/common/inc.html"}}
+    <title>分类线索</title>
+    <link href="/css/bootstrap.min.css" rel="stylesheet" />
+    <script src="/js/jquery.js"></script>
+    <script src="/js/bootstrap.min.js"></script>
+    <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;
+        }
+
+        #content table {
+            table-layout: fixed;
+            border: 0px;
+            font-size: 14px;
+        }
+
+        #sidebar {
+            margin-left: 0px;
+        }
+
+        .table > thead > tr > th:nth-child(1) {
+            width: 7%;
+        }
+
+        .table > thead > tr > th:nth-child(2) {
+            width: 10%;
+        }
+
+        .table > thead > tr > th:nth-child(3) {
+            width: 10%;
+        }
+
+        .table > thead > tr > th:nth-child(4) {
+            width: 10%;
+        }
+
+        .table > thead > tr > th:nth-child(5) {
+            width: 10%;
+        }
+
+        .table > thead > tr > th:nth-child(6) {
+            width: 10%;
+            /*text-align: center;*/
+        }
+        .table > thead > tr > th:nth-child(7) {
+            width: 10%;
+            /*text-align: center;*/
+        }
+        .table > thead > tr > th:nth-child(8) {
+            width: 5%;
+            display: none;
+            /*text-align: center;*/
+        }
+
+
+        .table > thead > tr > th {
+            border: 0px;
+            font-size: 14px;
+        }
+
+        .table > tbody > tr > td {
+            white-space: nowrap;
+            text-overflow: ellipsis;
+            overflow: hidden;
+            border: 0px;
+            border-bottom: 1px dashed #999999;
+        }
+        .table > tbody > tr > td:nth-child(8) {
+            display: none;
+        }
+
+        .table > tbody > tr {
+            cursor: pointer;
+        }
+
+
+        .pagination > .active > a:hover, .pagination > .active > a:focus {
+            background-color: #18CC7D;
+        }
+
+        .editBtn {
+            display: flex;
+        }
+
+        .editBtn span {
+            padding: 3px 7px;
+            border: 1px solid;
+            border-radius: 4px;
+            margin: 0 3px;
+        }
+        .yellowStyle {
+            background-color: rgb(202, 198, 133);
+            border-color: #EAB62F;
+        }
+        .ke-container ke-container-default{
+            width: 582px;
+            margin-left: 0px;
+        }
+        #return{
+            float: right;
+            margin-right: 27px;
+            margin-top: 10px;
+            font-weight: 400;
+            font-size: 16px;
+            color: rgba(94, 126, 240, 1);
+            font-style: normal;
+            letter-spacing: 0px;
+            text-decoration: none;
+        }
+
+    </style>
+</head>
+{{include "/common/baiducc.html"}}
+<body>
+
+<div>
+    {{include "/manage/audithead.html"}}
+    <div style="width: 100px;height: 40px;position: relative;float: right;">
+        <a id="return" href="/manage/jyloan/list"> 退出系统</a>
+    </div>
+    <div class="row" style="width:96%; margin:0 auto;">
+        {{include "/manage/slider.html"}}
+
+        <div id="content">
+            <div id="audit" style="margin-top: 20px"></div>
+        </div>
+        <div class="record" style="display: none">
+
+        </div>
+
+    </div>
+    {{include "/common/bottom.html"}}
+
+
+</div>
+
+
+
+</body>
+<script>
+    var uid = ""
+    $(function () {
+        $("#audit").datatable({
+            perPage: 5
+            ,
+            showPagination: true
+            ,
+            checkbox: "" //check radio
+            ,
+            checkboxHeader: false
+            ,
+            idField: "_id"
+            ,
+            classname: "table-hover"
+            ,
+            css: {"height": "400px"}
+            //,post:{"name":"ee"}
+            ,
+            url: '/manage/jy_loan/cluelist'
+            ,
+            columns: [
+
+                {
+                    title: "企业名称", field: "companyName",callback:function (d) {
+                        return d.companyName
+                    }
+                },
+                {
+                    title: "注册地", field: "registration", callback: function (d) {
+                        return d.registration
+                    }
+                },
+                {
+                    title: "回访人", field: "person",callback:function (d) {
+                        if (typeof(d.visit_person) != "undefined"){
+                            return d.visit_person
+                        }else{
+                            return ""
+                        }
+                    }
+                },
+                {
+                    title: "回访日期", field: "phonenum", callback: function (d) {
+                        if (typeof (d.visit_time) !="undefined"){
+                            return d.visit_time
+                        }else{
+                            return ""
+                        }
+                    }
+                },
+                {
+                    title: "客户经理", field: "price", callback: function (d) {
+                        return d.account_manager
+                    }
+                },
+                {
+                    title:"评估日期",field:"term",callback:function (d) {
+                        if(typeof (d.opinion_time)!="undefined"){
+                            return d.opinion_time
+                        }else{
+                            return ""
+                        }
+                    }
+                },
+                {
+                    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>"
+                            // return d.classify
+                        }else{
+                            var Html = "<div class='editBtn'><span class='yellowStyle' onclick='window.location.href=\"" + "/manage/loan/clasifylist?uid="+  d.uid + "\"'>去分类</span>"+"</div>"
+                            return Html
+                        }
+
+                    }
+                },
+                {
+                    title:"uid",field:"remark",callback:function (d) {
+                        return d.uid
+
+                    }
+                }
+            ]
+        });
+
+        $("select").change(function () {
+            var find = $("#audit").data("datatable");
+            if (!find.options.opost) find.options.opost = find.options.post || {};
+            find.options.post = $.extend(find.options.opost, {
+                strSel1: $("#select1").val(),
+                strSel2: $("#select2").val(),
+                strSel3: $("#select3").val()
+            });
+            find.options.currentPage = 1;
+            find.render();
+        });
+
+    });
+</script>
+</html>

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

@@ -0,0 +1,341 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
+    <meta charset="UTF-8">
+    {{include "/common/inc.html"}}
+    <title>企业评估</title>
+
+    <link href="/css/bootstrap.min.css" rel="stylesheet" />
+    <script src="/js/jquery.js"></script>
+    <script src="/js/bootstrap.min.js"></script>
+    <script src="/js/qfwtable.js"></script>
+    <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/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;
+            border: 0px;
+            font-size: 14px;
+        }
+
+        #sidebar {
+            margin-left: 0px;
+        }
+
+        .table > thead > tr > th:nth-child(1) {
+            width: 7%;
+        }
+
+        .table > thead > tr > th:nth-child(2) {
+            width: 10%;
+        }
+
+        .table > thead > tr > th:nth-child(3) {
+            width: 10%;
+        }
+
+        .table > thead > tr > th:nth-child(4) {
+            width: 10%;
+        }
+
+        .table > thead > tr > th:nth-child(5) {
+            width: 10%;
+        }
+
+        .table > thead > tr > th:nth-child(6) {
+            width: 10%;
+            /*text-align: center;*/
+        }
+        .table > thead > tr > th:nth-child(7) {
+            width: 10%;
+            /*text-align: center;*/
+        }
+        .table > thead > tr > th:nth-child(8) {
+            width: 5%;
+            display: none;
+            /*text-align: center;*/
+        }
+
+
+        .table > thead > tr > th {
+            border: 0px;
+            font-size: 14px;
+        }
+
+        .table > tbody > tr > td {
+            white-space: nowrap;
+            text-overflow: ellipsis;
+            overflow: hidden;
+            border: 0px;
+            border-bottom: 1px dashed #999999;
+        }
+        .table > tbody > tr > td:nth-child(8) {
+            display: none;
+        }
+
+        .table > tbody > tr {
+            cursor: pointer;
+        }
+
+
+        .pagination > .active > a:hover, .pagination > .active > a:focus {
+            background-color: #18CC7D;
+        }
+
+        .editBtn {
+            display: flex;
+        }
+
+        .editBtn span {
+            padding: 3px 7px;
+            border: 1px solid;
+            border-radius: 4px;
+            margin: 0 3px;
+        }
+        .ke-container ke-container-default{
+            width: 582px;
+            margin-left: 0px;
+        }
+        #return{
+            float: right;
+            margin-right: 27px;
+            margin-top: 10px;
+            font-weight: 400;
+            font-size: 16px;
+            color: rgba(94, 126, 240, 1);
+            font-style: normal;
+            letter-spacing: 0px;
+            text-decoration: none;
+        }
+
+    </style>
+</head>
+{{include "/common/baiducc.html"}}
+<body>
+
+<div>
+    {{include "/manage/audithead.html"}}
+    <div style="width: 100px;height: 40px;position: relative;float: right;">
+        <a id="return" href="/manage/jyloan/list"> 退出系统</a>
+    </div>
+    <div class="row" style="width:96%; margin:0 auto;">
+        {{include "/manage/slider.html"}}
+
+        <div id="content">
+            <div id="audit" style="margin-top: 20px"></div>
+        </div>
+        <div class="record" style="display: none">
+            <div style="position: relative;float: left;margin-left: 206px;margin-top: -246px;width: 280px;height: 200px">
+                <span style="font-size: 24px;">回访记录:</span>
+                <span id="visit-person"></span>
+                <span id="visit-time"></span>
+                <div id="visit-record">
+
+                </div>
+            </div>
+            <div style="position: relative;float: left;margin-left: 580px;margin-top: -260px;">
+                <span style="font-size: 24px" >贷款评估意见:</span>
+                <textarea id="evaluation" name="evaluation" style="width: 400px;height: 200px;" placeholder="多行输入"></textarea>
+                <div>
+                    <div style="width: 210px;height: 0px;position: relative;margin-top: 15px">
+                        <span style="font-size: 24px;">客户经理:</span>
+                        <input id="manage" type="text" style="width: 80px" placeholder="单行输入">
+                    </div>
+                    <div style="padding-bottom: 20px;width: 100px;padding-left: 359px;">
+                        <input  type="button" style="width: 90px; height: 33px; left: 1166px; top: 852px; z-index: 22; background-color: rgb(202, 198, 133); border-color: rgb(187, 187, 187); border-width: 1px; border-style: solid; border-radius: 4px; font-size: 14px; text-align: center; font-weight: normal; font-style: normal; opacity: 1;" value="提交" onclick="submit()">
+                    </div>
+                    <div style="width: 100px;padding-left: 359px">
+                        <input  type="button" style="width: 90px; height: 33px; left: 1166px; top: 852px; z-index: 22; background-color: rgb(202, 198, 133); border-color: rgb(187, 187, 187); border-width: 1px; border-style: solid; border-radius: 4px; font-size: 14px; text-align: center; font-weight: normal; font-style: normal; opacity: 1;" value="取消" onclick="cancle()">
+                    </div>
+                </div>
+
+            </div>
+
+        </div>
+
+    </div>
+    {{include "/common/bottom.html"}}
+
+
+</div>
+
+
+
+</body>
+<script>
+    var uid = ""
+    $(function () {
+        $("#audit").datatable({
+            perPage: 5
+            ,
+            showPagination: true
+            ,
+            checkbox: "" //check radio
+            ,
+            checkboxHeader: false
+            ,
+            idField: "_id"
+            ,
+            classname: "table-hover"
+            ,
+            css: {"height": "400px"}
+            //,post:{"name":"ee"}
+            ,
+            url: '/manage/jy_loan/evaluationlist'
+            ,
+            columns: [
+
+                {
+                    title: "企业名称", field: "companyName",callback:function (d) {
+                        return d.companyName
+                    }
+                },
+                {
+                    title: "注册地", field: "registration", callback: function (d) {
+                        return d.registration
+                    }
+                },
+                {
+                    title: "联系人", field: "person",callback:function (d) {
+                        return d.username
+                    }
+                },
+                {
+                    title: "手机号", field: "phonenum", callback: function (d) {
+                        return d.phoneNum
+                    }
+                },
+                {
+                    title: "贷款金额", field: "price", callback: function (d) {
+                        return d.price
+                    }
+                },
+                {
+                    title:"贷款期限",field:"term",callback:function (d) {
+                        return d.term
+                    }
+                },
+                {
+                    title:"贷款评论",field:"remark",callback:function (d) {
+                        return d.remark
+
+                    }
+                },
+                {
+                    title:"uid",field:"remark",callback:function (d) {
+                        return d.uid
+
+                    }
+                }
+            ]
+        });
+
+        $("select").change(function () {
+            var find = $("#audit").data("datatable");
+            if (!find.options.opost) find.options.opost = find.options.post || {};
+            find.options.post = $.extend(find.options.opost, {
+                strSel1: $("#select1").val(),
+                strSel2: $("#select2").val(),
+                strSel3: $("#select3").val()
+            });
+            find.options.currentPage = 1;
+            find.render();
+        });
+
+    });
+    $(function(){
+        var kindEditInit=function(){
+            editor = KindEditor.create('textarea[name="evaluation"]', {
+                id:"ke_editor",
+                allowFileManager : false,
+                filterMode:true,
+                width : '10px',
+                height:'20px',
+                items:items_simp,
+                allowImageRemoteImageRemote:false,
+                uploadJson : '/filemanage/upload',
+                afterCreate:function() {
+                    this.sync()
+                },
+                beforesubmit:function(){
+                    this.sync()
+                },
+                afterBlur: function(){
+                    this.sync()
+                }
+            });
+        }
+        kindEditInit()
+    });
+
+    //双击事件
+    $("#content").on("dblclick","#audit>.dt-table-wrapper>.table>tbody>tr",function(){
+        uid = $(this).find("td").eq(7).text();
+        $.ajax({
+            url:"/manage/jy_loan/evaluation",
+            datatype: "json",
+            data: {"uid":uid},
+            async: false,
+            method: "POST",
+            success:function (d) {
+                $("#visit-person").text(d.data[0].visit_person);
+                $("#visit-record").text(d.data[0].visit_msg);
+                $("#visit-time").text(d.data[0].visit_time);
+                $(".record").show();
+                $("#manage").focus();
+            }
+        })
+    });
+    //单击事件
+    $("#content").on("click","#audit>.dt-table-wrapper>.table>tbody>tr",function(){
+        $("#visit-person").text("");
+        $("#visit-record").text("");
+        $("#visit-time").text("");
+        $(".record").hide()
+    });
+    function submit() {
+        var content = $("#evaluation").val();
+        var person = $("#manage").val();
+        if (content!=""&&person!=""){
+            $.ajax({
+                url: "/manage/jy_loan/evaluationopinion",
+                type: "POST",
+                data: {
+                    "opinion_msg":content,
+                    "account_manager":person,
+                    "uid":uid
+                },
+                async:false,
+                datatype: "json",
+                success:function (r) {
+                    if (r.data.status==1&&r.error_code=="0"){
+                        window.location.href = "/loan/evaluationlist"
+                    }
+                }
+            })
+
+        }else{
+            alert("评估意见和客户经理不能为空")
+        }
+
+    }
+    function cancle() {
+        window.location.href = "/manage/loan/evaluationlist"
+    }
+</script>
+</html>

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

@@ -0,0 +1,116 @@
+<!DOCTYPE html>
+<html lang="en" >
+<head>
+    <meta charset="UTF-8">
+    <title>系统管理</title>
+    {{include "/common/inc.html"}}
+    <link type="text/css" rel="stylesheet" href="/loan/css/style.css">
+    <link href="/css/bootstrap.min.css" rel="stylesheet" />
+    <script src="/js/jquery.js"></script>
+    <script src="/js/bootstrap.min.js"></script>
+    <style>
+
+    </style>
+</head>
+{{include "/common/baiducc.html"}}
+
+{{include "/manage/audithead.html"}}
+<body style="height: 1263px;">
+    {{include "/manage/slider.html"}}
+    <div id="list" style="height: 96%">
+        <div id="visit" onclick="show_modal(1)"><span >1 电话回访</span></div>
+        <div id="evaluation" onclick="show_modal(2)"><span >2 贷款评估</span></div>
+        <div id="classify" onclick="show_modal(3)"><span >3 线索分类</span></div>
+        <div id="setting" onclick="show_modal(4)"><span>4 分类设置</span></div>
+    </div>
+    <!-- modal -->
+
+    <div class="modal fade" id="password" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
+        <div class="modal-dialog">
+            <div class="modal-content" style="width: 250px">
+                <div class="modal-header blue" id="model_title" style="text-align: center">
+
+                </div>
+                <div class="modal-body">
+                    <span id="hidden" style="display: none"> </span>
+                    <input id="input-pwd" type="password" width="100px" class="form-control" placeholder="Password"  />
+                        <span id="cancel" onclick="cancel()">取消</span>
+                        <span id="login" onclick="login()">登录</span>
+                </div>
+
+            </div>
+        </div>
+    </div>
+
+
+
+
+
+    {{include "/common/bottom.html"}}
+</body>
+<script>
+    //校验密码
+    function show_modal(index) {
+        if (index == 1){
+            window.location.href = "/manage/loan/visitlist"
+        }else if (index == 2){
+            window.location.href = "/manage/loan/evaluationlist"
+        }else if (index == 3){
+            window.location.href = "/manage/loan/cluelist"
+        }else{
+            window.location.href = "/manage/loan/setting"
+        }
+        // if (index == 4){
+        //     $("#model_title").text("请输入管理密码")
+        // }else{
+        //     $("#model_title").text("请输入业务密码")
+        // }
+        // $("#input-pwd").val("");
+        // $("#hidden").text(index);
+        //
+        // $("#password").modal({backdrop:'static'})
+
+    }
+    function cancel() {
+        $("#password").modal("hide")
+
+    }
+    function login() {
+        var pwd_type = ""
+        var t = $("#hidden").text();
+        var pwd = $("#input-pwd").val();
+        if (t == 1){
+            jump_address = "/manage/loan/visitlist";
+            pwd_type = "1"
+        }else if (t == 2){
+            jump_address = "/manage/jy_loan/evaluation_list";
+            pwd_type = "1"
+        }else if (t == 3){
+            jump_address = "/manage/jy_loan/classification_list";
+            pwd_type = "1"
+        }else{
+            jump_address = "/manage/loan/classSet.html";
+            pwd_type = "2"
+        }
+
+        if (pwd.length != 0){
+            $.ajax({
+                url:"/manage/jy_loan/validatapassword",
+                dataType:"json",
+                type:"POST",
+                async: "false",
+                data:{"password":pwd,"type":pwd_type},
+                success:function (r) {
+                    if ( r.error_code =="0"&&r.data.status==1){
+                        window.location.href=jump_address
+                    }
+
+                }
+
+            })
+        }
+
+    }
+    
+</script>
+</html>

+ 91 - 0
core/src/web/templates/manage/loan/passwordChange.html

@@ -0,0 +1,91 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="UTF-8">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  <title>修改密码</title>
+  <style>
+    *{
+      margin: 0;
+      padding: 0;
+    }
+    html,body{
+      height: 100%;
+      width: 100%;
+    }
+    .password-content{
+      margin: 100px auto 0;
+      width: 600px;
+      padding-top: 100px;
+      display: flex;
+      flex-direction: column;
+      justify-content: center;
+      color: #1a1a1a;
+      font-size: 16px;
+    }
+    .li{
+      display: flex;
+      align-items: center;
+      margin-bottom: 20px;
+    }
+    .li .label {
+      width: 150px;
+      text-align: right;
+    }
+    .li input,.li select{
+      height: 30px;
+      width: 200px;
+    }
+    .li>span:last-child{
+      margin-left: 20px;
+    }
+    .btn{
+      padding-left: 160px;
+    }
+    .btn span{
+      display: flex;
+      align-items: center;
+      justify-content: center;
+      width: 100px;
+      height: 40px;
+      background: #cac68d;
+      color: #1a1a1a;
+      font-size: 16px;
+      border-radius: 3px;
+      cursor: pointer;
+    }
+  </style>
+</head>
+<body>
+  <div class="password-content">
+    <div class="li">
+      <span class="label">选择要修改的密码:</span>
+      <select>
+        <option value ="volvo">Volvo</option>
+        <option value ="saab">Saab</option>
+        <option value="opel">Opel</option>
+        <option value="audi">Audi</option>
+      </select>
+    </div>
+    <div class="li">
+      <span class="label">输入新密码:</span>
+      <input type="text">
+      <span>(8-12位字母和数字)</span>
+    </div>
+    <div class="li">
+      <span class="label">再次输入新密码:</span>
+      <input type="text">
+    </div>
+    <div class="btn">
+      <span onclick="password">修改密码</span>
+    </div>
+    
+  </div>
+  <script>
+    function password() {
+      console.log('点击')
+      var flag = confirm("确认要修改密码吗");
+    }
+  </script>
+</body>
+</html>

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

@@ -0,0 +1,287 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    {{include "/common/inc.html"}}
+    <title>分类线索</title>
+    <link href="/css/bootstrap.min.css" rel="stylesheet" />
+    <script src="/js/jquery.js"></script>
+    <script src="/js/bootstrap.min.js"></script>
+    <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;
+        }
+
+        #content table {
+            table-layout: fixed;
+            border: 0px;
+            font-size: 14px;
+        }
+
+        #sidebar {
+            margin-left: 0px;
+        }
+
+        .table > thead > tr > th:nth-child(1) {
+            width: 7%;
+        }
+
+        .table > thead > tr > th:nth-child(2) {
+            width: 10%;
+        }
+
+        .table > thead > tr > th:nth-child(3) {
+            width: 10%;
+        }
+
+        .table > thead > tr > th:nth-child(4) {
+            width: 10%;
+        }
+
+        .table > thead > tr > th:nth-child(5) {
+            width: 10%;
+        }
+
+        .table > thead > tr > th:nth-child(6) {
+            width: 10%;
+            /*text-align: center;*/
+        }
+        .table > thead > tr > th:nth-child(7) {
+            width: 10%;
+            /*text-align: center;*/
+        }
+        .table > thead > tr > th:nth-child(8) {
+            width: 5%;
+            display: none;
+            /*text-align: center;*/
+        }
+
+
+        .table > thead > tr > th {
+            border: 0px;
+            font-size: 14px;
+        }
+
+        .table > tbody > tr > td {
+            white-space: nowrap;
+            text-overflow: ellipsis;
+            overflow: hidden;
+            border: 0px;
+            border-bottom: 1px dashed #999999;
+        }
+        .table > tbody > tr > td:nth-child(8) {
+            display: none;
+        }
+
+        .table > tbody > tr {
+            cursor: pointer;
+        }
+
+
+        .pagination > .active > a:hover, .pagination > .active > a:focus {
+            background-color: #18CC7D;
+        }
+
+        .editBtn {
+            display: flex;
+        }
+
+        .editBtn span {
+            padding: 3px 7px;
+            border: 1px solid;
+            border-radius: 4px;
+            margin: 0 3px;
+        }
+        .ke-container{
+            width: 582px;
+            margin-left: 0px;
+        }
+        #return{
+            float: right;
+            margin-right: 27px;
+            margin-top: 10px;
+            font-weight: 400;
+            font-size: 16px;
+            color: rgba(94, 126, 240, 1);
+            font-style: normal;
+            letter-spacing: 0px;
+            text-decoration: none;
+        }
+
+    </style>
+</head>
+{{include "/common/baiducc.html"}}
+<body>
+
+<div>
+    {{include "/manage/audithead.html"}}
+    <div style="width: 100px;height: 40px;position: relative;float: right;">
+        <a id="return" href="/manage/jyloan/list"> 退出系统</a>
+    </div>
+    <div class="row" style="width:96%; margin:0 auto;">
+        {{include "/manage/slider.html"}}
+
+        <div id="content">
+            <div id="audit" style="margin-top: 20px"></div>
+        </div>
+        <div class="record" style="display: none">
+            <div>
+               <span style="
+    float: left;
+    position: relative;
+    margin-left: 202px;
+    margin-top: -600px;
+    width:200px;
+    height:200px;
+    font-size: 24px;
+">1 回访记录:</span>
+                <div id="visit_record"></div>
+            </div>
+            <div style="
+    position: relative;
+    float: left;
+    margin-left: 464px;
+    margin-top: -600px;
+    width:200px;
+    height:200px;
+    font-size: 24px;
+">
+                <span >2 评估意见:</span>
+                <div id="evaluation"></div>
+            </div>
+            <div style="position: relative; width:200px;height:200px;float: left;margin-left: 760px;margin-top: -600px;font-size: 24px;">
+                <span >3 分类意见:</span>
+                <div id="classify"></div>
+
+            </div>
+        </div>
+
+    </div>
+    {{include "/common/bottom.html"}}
+
+
+</div>
+
+
+
+</body>
+<script>
+    var uid = {{.T.uid}}
+        $(function () {
+            $("#audit").datatable({
+                perPage: 1
+                ,
+                showPagination: false
+                ,
+                checkbox: "" //check radio
+                ,
+                checkboxHeader: false
+                ,
+                idField: "_id"
+                ,
+                classname: "table-hover"
+                ,
+                css: {"height": "200px"}
+                //,post:{"name":"ee"}
+                ,
+                url: '/manage/jy_loan/clueshow?uid='+uid
+                ,
+                columns: [
+
+                    {
+                        title: "企业名称", field: "companyName",callback:function (d) {
+                            return d.companyName
+                        }
+                    },
+                    {
+                        title: "注册地", field: "registration", callback: function (d) {
+                            return d.registration
+                        }
+                    },
+                    {
+                        title: "回访人", field: "person",callback:function (d) {
+                            if (typeof(d.visit_person) != "undefined"){
+                                return d.visit_person
+                            }else{
+                                return ""
+                            }
+                        }
+                    },
+                    {
+                        title: "回访日期", field: "phonenum", callback: function (d) {
+                            if (typeof (d.visit_time) !="undefined"){
+                                return d.visit_time
+                            }else{
+                                return ""
+                            }
+                        }
+                    },
+                    {
+                        title: "客户经理", field: "price", callback: function (d) {
+                            return d.account_manager
+                        }
+                    },
+                    {
+                        title:"评估日期",field:"term",callback:function (d) {
+                            if(typeof (d.opinion_time)!="undefined"){
+                                return d.opinion_time
+                            }else{
+                                return ""
+                            }
+                        }
+                    },
+                    {
+                        title:"线索分类",field:"remark",callback:function (d) {
+                            return d.classify
+
+                        }
+                    },
+                    {
+                        title:"uid",field:"remark",callback:function (d) {
+                            return d.uid
+
+                        }
+                    }
+                ]
+            });
+
+            $("select").change(function () {
+                var find = $("#audit").data("datatable");
+                if (!find.options.opost) find.options.opost = find.options.post || {};
+                find.options.post = $.extend(find.options.opost, {
+                    strSel1: $("#select1").val(),
+                    strSel2: $("#select2").val(),
+                    strSel3: $("#select3").val()
+                });
+                find.options.currentPage = 1;
+                find.render();
+            });
+
+        });
+    $(function () {
+        $.ajax({
+            url: "/manage/jy_loan/clueshow",
+            method:"get",
+            dataType:"json",
+            data:{"uid":uid},
+            async:false,
+            success:function (d) {
+                $("#visit-record").html(d.visit_msg);
+                $("#evaluation").html(d.opinion_msg);
+                $("#classify").html(d.classify_msg);
+                $(".record").show();
+            }
+        })
+    })
+</script>
+</html>

+ 51 - 0
core/src/web/templates/manage/loan/systemSet.html

@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="UTF-8">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  <title>系统设置</title>
+  <style>
+    *{
+      margin: 0;
+      padding: 0;
+    }
+    html,body{
+      height: 100%;
+      width: 100%;
+    }
+    .system-content{
+      display: flex;
+      flex-direction: column;
+      justify-content: center;
+      align-items: center;
+      width: 100%;
+      height: 100%;
+    }
+    .btn{
+      display: flex;
+      align-items: center;
+      justify-content: center;
+      margin-bottom: 20px;
+      width: 190px;
+      height: 65px;
+      background: #cac68d;
+      color: #1a1a1a;
+      font-size: 18px;
+      border-radius: 3px;
+      cursor: pointer;
+    }
+  </style>
+</head>
+<body>
+  <div class="system-content">
+    <span class="btn" onclick="jump(1)">线索分类设置</span>
+    <span class="btn" onclick="jump(2)">修改密码</span>
+  </div>
+</body>
+<script>
+  function jump(tag) {
+    var uri = tag === 1 ? './classSet.html' : './passwordChange.html';
+    window.location.href = uri
+  }
+</script>
+</html>

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

@@ -0,0 +1,314 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    {{include "/common/inc.html"}}
+
+    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
+    <meta charset="UTF-8">
+    <title>电话回访</title>
+    <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/kinditem.js"></script>
+    <link href="/css/bootstrap.min.css" rel="stylesheet" />
+    <script src="/js/jquery.js"></script>
+    <script src="/js/bootstrap.min.js"></script>
+    <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;
+        }
+
+        #content table {
+            table-layout: fixed;
+            border: 0px;
+            font-size: 14px;
+        }
+
+        #sidebar {
+            margin-left: 0px;
+        }
+
+        .table > thead > tr > th:nth-child(1) {
+            width: 7%;
+        }
+
+        .table > thead > tr > th:nth-child(2) {
+            width: 10%;
+        }
+
+        .table > thead > tr > th:nth-child(3) {
+            width: 10%;
+        }
+
+        .table > thead > tr > th:nth-child(4) {
+            width: 10%;
+        }
+
+        .table > thead > tr > th:nth-child(5) {
+            width: 10%;
+        }
+
+        .table > thead > tr > th:nth-child(6) {
+            width: 10%;
+            /*text-align: center;*/
+        }
+        .table > thead > tr > th:nth-child(7) {
+            width: 10%;
+            /*text-align: center;*/
+        }
+        .table > thead > tr > th:nth-child(8) {
+            width: 5%;
+            display: none;
+            /*text-align: center;*/
+        }
+
+
+        .table > thead > tr > th {
+            border: 0px;
+            font-size: 14px;
+        }
+
+        .table > tbody > tr > td {
+            white-space: nowrap;
+            text-overflow: ellipsis;
+            overflow: hidden;
+            border: 0px;
+            border-bottom: 1px dashed #999999;
+        }
+        .table > tbody > tr > td:nth-child(8) {
+            display: none;
+        }
+
+        .table > tbody > tr {
+            cursor: pointer;
+        }
+
+
+        .pagination > .active > a:hover, .pagination > .active > a:focus {
+            background-color: #18CC7D;
+        }
+
+        .editBtn {
+            display: flex;
+        }
+
+        .editBtn span {
+            padding: 3px 7px;
+            border: 1px solid;
+            border-radius: 4px;
+            margin: 0 3px;
+        }
+        .ke-container ke-container-default{
+            width: 582px;
+            margin-left: 0px;
+        }
+        #return{
+            float: right;
+            margin-right: 27px;
+            margin-top: 10px;
+            font-weight: 400;
+            font-size: 16px;
+            color: rgba(94, 126, 240, 1);
+            font-style: normal;
+            letter-spacing: 0px;
+            text-decoration: none;
+        }
+
+
+    </style>
+</head>
+<body>
+
+<div>
+    {{include "/manage/audithead.html"}}
+    <div style="width: 100px;height: 40px;position: relative;float: right;">
+        <a id="return" href="/manage/jyloan/list"> 退出系统</a>
+    </div>
+    <div class="row" style="width:96%; margin:0 auto;">
+        {{include "/manage/slider.html"}}
+        <div id="content">
+            <div id="audit" style="margin-top: 20px"></div>
+        </div>
+        <div class="record" style="display: none;position: relative;margin-left: 206px;top: -467px;">
+            <div style="position: relative;float: left;margin-top: 160px;margin-left: -90px;;">
+                <span  style="font-size:24px;padding-left: 100px;">回访记录:</span>
+                <textarea id="visit-record" name="visit-record" style="width: 400px;height: 200px;margin-left: 100px;"></textarea>
+            </div>
+            <div style="position: relative;float: left;padding-top: 200px;padding-left: 50px;width: 200px">
+                <span style="font-size: 24px" >回访人:</span>
+                <input  id="person" type="text" style="width: 130px" placeholder="单行输入">
+                <div>
+                    <div style="padding-top: 20px;padding-bottom: 20px;padding-left: 36px;">
+                        <input  type="button" style="width: 90px; height: 33px; left: 1166px; top: 852px; z-index: 22; background-color: rgb(202, 198, 133); border-color: rgb(187, 187, 187); border-width: 1px; border-style: solid; border-radius: 4px; font-size: 14px; text-align: center; font-weight: normal; font-style: normal; opacity: 1;" value="提交" onclick="submit()">
+                    </div>
+                    <div style="padding-left: 36px">
+                        <input  type="button" style="width: 90px; height: 33px; left: 1166px; top: 852px; z-index: 22; background-color: rgb(202, 198, 133); border-color: rgb(187, 187, 187); border-width: 1px; border-style: solid; border-radius: 4px; font-size: 14px; text-align: center; font-weight: normal; font-style: normal; opacity: 1;" value="取消" onclick="cancle()">
+                    </div>
+                </div>
+
+            </div>
+
+        </div>
+    </div>
+
+    {{include "/common/bottom.html"}}
+
+</div>
+
+
+
+</body>
+<script type="text/javascript" src="/js/bootbox.js"></script>
+<script>
+    var uid = "";
+    $(function () {
+        $("#audit").datatable({
+            perPage: 5
+            ,
+            showPagination: true
+            ,
+            checkbox: "" //check radio
+            ,
+            checkboxHeader: false
+            ,
+            idField: "_id"
+            ,
+            classname: "table-hover"
+            ,
+            css: {"height": "400px"}
+            //,post:{"name":"ee"}
+            ,
+            url: '/manage/jyloan/telephoneinterviews'
+            ,
+            columns: [
+
+                {
+                    title: "企业名称", field: "companyName", callback: function (d) {
+                        return d.companyName
+                    }
+                },
+                {
+                    title: "注册地", field: "registration", callback: function (d) {
+                        return d.registration
+                    }
+                },
+                {
+                    title: "联系人", field: "person", callback: function (d) {
+                        return d.username
+                    }
+                },
+                {
+                    title: "手机号", field: "phonenum", callback: function (d) {
+                        return d.phoneNum
+                    }
+                },
+                {
+                    title: "贷款金额", field: "price", callback: function (d) {
+                        return d.price
+                    }
+                },
+                {
+                    title: "贷款期限", field: "term", callback: function (d) {
+                        return d.term
+                    }
+                },
+                {
+                    title: "贷款评论", field: "remark", callback: function (d) {
+                        return d.remark
+
+                    }
+                },
+                {
+                    title: "uid", field: "remark", callback: function (d) {
+                        return d.uid
+
+                    }
+                }
+            ]
+        });
+    });
+
+    $(function(){
+    var kindEditInit=function(){
+        editor = KindEditor.create('textarea[name="visit-record"]', {
+            id:"ke_editor",
+            allowFileManager : false,
+            filterMode:true,
+            width : '10px',
+            height:'20px',
+            items:items_simp,
+            allowImageRemoteImageRemote:false,
+            uploadJson : '/filemanage/upload',
+            afterCreate:function() {
+                this.sync()
+            },
+            beforesubmit:function(){
+                this.sync()
+            },
+            afterBlur: function(){
+                this.sync()
+            }
+        });
+    };
+    kindEditInit()
+});
+    var uid = "";
+    //双击事件
+    $("#content").on("dblclick","#audit>.dt-table-wrapper>.table>tbody>tr",function(){
+        uid = $(this).find("td").eq(7).text();
+        $("#visit-record").val("");
+        $("#person").val("");
+        $(".record").show();
+        $("#person").focus();
+
+    });
+    //单击事件
+    $("#content").on("click","#audit>.dt-table-wrapper>.table>tbody>tr",function(){
+        $("#visit-record").val("");
+        $("#person").val("");
+        $(".record").hide()
+    });
+    function submit() {
+        var content = $("#visit-record").val();
+        var person = $("#person").val();
+        if (content!=""&&person!=""){
+            $.ajax({
+                url: "/manage/jy_loan/returnvisitrecords",
+                type: "POST",
+                data: {
+                    "msg":content,
+                    "person":person,
+                    "uid":uid
+                },
+                async:false,
+                datatype: "json",
+                success:function (r) {
+                    if (r.data.status==1&&r.error_code=="0"){
+                        window.location.href = "/manage/loan/visitlist"
+                    }
+                }
+            })
+        }else{
+            alert("回访记录和回访人不能为空")
+        }
+
+
+    }
+    //取消
+    function cancle(){
+        $("#visit-record").val("");
+        $("#person").val("");
+        $(".record").hide()
+
+    }
+</script>
+</html>

+ 1 - 0
core/src/web/templates/manage/slider.html

@@ -15,6 +15,7 @@
 		<li id="dataExportOrder"  class="list-group-item"><a style=" font-weight:normal;"  href="/manage/dataExportOrder/list"><i class="glyphicon glyphicon-download-alt"></i> <span>数据导出订单</span></a></li>
 		<li id="viporder"  class="list-group-item"><a style=" font-weight:normal;"  href="/manage/vipOrder/list"><i class="glyphicon glyphicon-download-alt"></i> <span>VIP订阅订单</span></a></li>
 		<li id="entnicheorder"  class="list-group-item"><a style=" font-weight:normal;"  href="/manage/entnicheOrder/list"><i class="glyphicon glyphicon-download-alt"></i> <span>企业商机管理</span></a></li>
+		<li id="jyloan"  class="list-group-item"><a style=" font-weight:normal;"  href="/manage/jyloan/list"><i class="glyphicon glyphicon-download-alt"></i> <span>企业贷款</span></a></li>
     	<li id="pcUndate"  class="list-group-item"><a style=" font-weight:normal;" onclick="pushVersion()"><i class="glyphicon glyphicon-level-up"></i> <span>PC助手版本更新</span></a></li>
 		<!-- <li id="jydata"  class="list-group-item"><a style=" font-weight:normal;" href="/manage/data/index"><i class="glyphicon glyphicon-euro"></i> <span>剑鱼数据管理</span></a></li>
 		<li id="databack"  class="list-group-item"><a style=" font-weight:normal;" href="/manage/data/back"><i class="glyphicon glyphicon-euro"></i> <span>剑鱼备份数据</span></a></li> -->