|
@@ -10,9 +10,6 @@
|
|
<script src="/js/jquery.js"></script>
|
|
<script src="/js/jquery.js"></script>
|
|
<script src="/js/bootstrap.min.js"></script>
|
|
<script src="/js/bootstrap.min.js"></script>
|
|
<script src="/js/qfwtable.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">
|
|
<style type="text/css">
|
|
|
|
|
|
|
|
|
|
@@ -126,34 +123,7 @@
|
|
<div id="content">
|
|
<div id="content">
|
|
<div id="audit" style="margin-top: 20px"></div>
|
|
<div id="audit" style="margin-top: 20px"></div>
|
|
</div>
|
|
</div>
|
|
- <div class="record" style="display: none">
|
|
|
|
- <div style="position: relative;float: left;margin-left: 206px;margin-top: -366px;width: 280px;height: 300px;">
|
|
|
|
- <span style="font-size: 24px;">回访记录:</span>
|
|
|
|
- <span id="visit-person"></span>
|
|
|
|
- <span id="visit-time"></span>
|
|
|
|
- <div id="visit-record" style="overflow-y: auto;">
|
|
|
|
-
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div style="position: relative;float: right;margin-left: 580px;margin-top: -366px;">
|
|
|
|
- <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>
|
|
</div>
|
|
{{include "/common/bottom.html"}}
|
|
{{include "/common/bottom.html"}}
|
|
@@ -245,30 +215,6 @@
|
|
});
|
|
});
|
|
|
|
|
|
});
|
|
});
|
|
- $(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(){
|
|
$("#content").on("dblclick","#audit>.dt-table-wrapper>.table>tbody>tr",function(){
|
|
@@ -294,57 +240,57 @@
|
|
});
|
|
});
|
|
//单击事件
|
|
//单击事件
|
|
$("#content").on("click","#audit>.dt-table-wrapper>.table>tbody>tr",function(){
|
|
$("#content").on("click","#audit>.dt-table-wrapper>.table>tbody>tr",function(){
|
|
- $(this).addClass("selected");
|
|
|
|
- $(this).css("background","rgb(202, 198, 133)");
|
|
|
|
- $(this).siblings().css("background","rgb(255,255,255)");
|
|
|
|
- $(this).siblings().removeClass("selected");
|
|
|
|
- $("#visit-person").text("");
|
|
|
|
- $("#visit-record").text("");
|
|
|
|
- $("#visit-time").text("");
|
|
|
|
- $(".record").hide();
|
|
|
|
- // if ($(this).hasClass("select")){
|
|
|
|
- // window.location.href = ""
|
|
|
|
- // }
|
|
|
|
|
|
+ var t = $(this).find("td").eq(7).text();
|
|
|
|
+ if ($(this).hasClass("selected")){
|
|
|
|
+ window.location.href = "/manage/jy_loan/evaluationdetail?uid="+t
|
|
|
|
+ }else{
|
|
|
|
+ $(this).addClass("selected");
|
|
|
|
+ $(this).css("background","rgb(202, 198, 133)");
|
|
|
|
+ $(this).siblings().css("background","rgb(255,255,255)");
|
|
|
|
+ $(this).siblings().removeClass("selected");
|
|
|
|
+ $("#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 = "/manage/loan/evaluationlist"
|
|
|
|
|
|
+
|
|
|
|
+ document.onkeydown = function (event) {
|
|
|
|
+ var e = event || window.event || arguments.callee.caller.arguments[0];
|
|
|
|
+ var t = $("#audit>.dt-table-wrapper>.table>tbody>tr")
|
|
|
|
+ if (e && e.keyCode == 40) { //下
|
|
|
|
+ for(var i=0;i<t.length;i++){
|
|
|
|
+ if ($(t[i]).hasClass("selected")){
|
|
|
|
+ if (i + 1 >=t.length){
|
|
|
|
+ break
|
|
|
|
+ }else{
|
|
|
|
+ $(t[i]).removeClass("selected");
|
|
|
|
+ $(t[i]).css("background","#fff");
|
|
|
|
+ $(t[i+1]).addClass("selected");
|
|
|
|
+ $(t[i+1]).css("background","rgb(202, 198, 133)");
|
|
|
|
+ break
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ }
|
|
|
|
|
|
- }else{
|
|
|
|
- alert("评估意见和客户经理不能为空")
|
|
|
|
- }
|
|
|
|
|
|
+ if (e && e.keyCode == 38) { // 上
|
|
|
|
+ for(var i=0;i<t.length;i++){
|
|
|
|
+ if ($(t[i]).hasClass("selected")){
|
|
|
|
+ if (i <= 0){
|
|
|
|
+ break
|
|
|
|
+ }else{
|
|
|
|
+ $(t[i]).removeClass("selected");
|
|
|
|
+ $(t[i]).css("background","#fff");
|
|
|
|
+ $(t[i-1]).addClass("selected");
|
|
|
|
+ $(t[i-1]).css("background","rgb(202, 198, 133)");
|
|
|
|
+ break
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
- }
|
|
|
|
- function cancle() {
|
|
|
|
- window.location.href = "/manage/loan/evaluationlist"
|
|
|
|
- }
|
|
|
|
- function format(d) {
|
|
|
|
- if (typeof(d)!== "undefined"){
|
|
|
|
- console.log(d)
|
|
|
|
- var tt =d.replace(/</g,"<");
|
|
|
|
- var t = tt.replace(/>/g,">");
|
|
|
|
- return t
|
|
|
|
- }else{
|
|
|
|
- return ""
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- }
|
|
|
|
</script>
|
|
</script>
|
|
</html>
|
|
</html>
|