Commit 220fbb00 authored by agping's avatar agping

收款记录修改

parent 1766eb3a
......@@ -175,7 +175,6 @@
#container_body{
position: relative;
}
#file_input {
opacity: 0;
position: absolute;
......@@ -193,6 +192,7 @@
}
.span-del2,.span-del{
color: red;
}
/*css样式*/
</style>
......
......@@ -31,34 +31,23 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
_doc.on('click', '.span-del2', function(e) {
e.preventDefault();
e.stopPropagation();
$(this).parent().remove();
$(this).prev().attr('class');
console.log($(this).prev().attr('class'));
$(this).parent().remove();
follow.spandelList($(this).prev().attr('class'));
});
_doc.on('click', 'a[href="#modal-time"]', function(e) {
follow.house_id = $(this).attr("data-id");
e.preventDefault();
e.stopPropagation();
// console.log('follow.house_id');
$('.iframe-time-line').attr('src', '/app_broker/timeline_pc?order_id=' + follow.house_id);
});
$("#search").click(function() {
follow.getList(1);
});
//点击收款图片 2.2版本
// $(".add-pic").click(function() {
// //监听图片上传
// follow.getaddPicList();
// });
_doc.on('click', '.add-pic', function() {
_doc.on('click', '.add-pic', function() {//区分收款记录的id 和 father-id 获取图片 和保存图片 都区分
follow.house_id = $(this).attr("data-id");
follow.house_fatherid = $(this).attr("father-id");
follow.getaddPicList();
});
$("#reset").click(function() { //重置
......@@ -71,7 +60,6 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
follow.house_id2 = $(this).attr("data-id");
console.log(follow.house_id2);
$("#real_money").val($(this).attr("data-money"));
});
$(document).delegate(".submit_edit", "click", function() { //提交
follow.Submit_follow();
......@@ -86,14 +74,9 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
$(document).delegate(".addphone2", "click", function() { //list2消失
follow.addphone2(this);
});
//图片预览点击放大事件
//保存上传的图片
_doc.on('click', '#saveBtn', function(e) {
console.log(555);
var _this = $(this);
e.preventDefault();
e.stopPropagation();
var imgname = [];
......@@ -106,7 +89,6 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
id_pic = follow.house_fatherid;
} else {
id_pic = follow.house_id;
}
var _data = {
img_id: id_pic,
......@@ -114,10 +96,9 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
//无新的图片上传 不调用接口
if(imgname.join(',')) {
_data['img_name'] = imgname.join(',');
}else{
} else {
return
}
$.ajax({
type: 'GET',
url: '/index/addReceiptImg',
......@@ -142,9 +123,6 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
}
});
});
//图片上传 2.2版本
},
addphone2: function(obj) {
var user_ht = $(obj).html();
......@@ -194,7 +172,7 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
}
});
},
spandelList: function(n) { //提交
spandelList: function(n) { //删除已经保cun的时图片都调用
$.ajax({
'type': 'POST',
'url': '/index/deleteReceiptImg',
......@@ -211,16 +189,13 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
},
getaddPicList: function() { //获取收款图片
// container_body
var id_pic;
if(follow.house_fatherid > 0) {
id_pic = follow.house_fatherid;
} else {
id_pic = follow.house_id;
}
$('.result2,.result').remove();
$('.result2,.result').remove(); //删除之前存在的图片 显示从接口获取的数据 用来区分新添加的 和 已经保存的
$.ajax({
'type': 'GET',
'url': '/index/receiptImgList',
......@@ -242,7 +217,8 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
}
});
},
//点击收款图片 调用的接口 上传图片
//点击收款图片 上传新的图片 掉用全局上传图片
//点击input的时候 调用全局上传图片 然后渲染到页面
getaddPicList2: function() {
var input = document.getElementById("file_input");
var result, div;
......@@ -303,7 +279,6 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
};
},
//删除图片
// 导出列表
exportList: function(pageNo) {
......@@ -311,7 +286,6 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
follow.pageNo = pageNo;
var params = {};
var excel_two = 1;
var user_name = $.trim($('#customer_name').val());
var start_time = $('#start_date').val();
var end_time = $('#end_date').val();
......
......@@ -12,11 +12,8 @@
<td>[%= it[item]["name"] %]</td>
<td>[%= it[item]["phone"] %]</td>
<td>[%= it[item]["groupname"] %]</td>
<!--增加评价次数 分数2.2-->
<td class="number-evaluation text-center" data-id='[%= it[item]["id"] %]'>--</td>
<td class="score-evaluation text-center" data-id='[%= it[item]["id"] %]'>--</td>
<!--<td><span class="fa fa-check text-success"></span></td>-->
<td>
<a class="btn1 btn-success edit" href="#modal-edit" data-toggle="modal" data-id='[%= it[item]["id"] %]'>编辑</a>
......@@ -31,9 +28,12 @@
[% if(check_auth('index/updateRole')) {%]
<a href="#modal-user" class="btn1 btn-danger" id='role' href="#modal-edit" data-toggle="modal" data-id='[%= it[item]["id"] %]'>角色设置</a>
[% } %]
<!--增加绑定手机号按钮 2.2版本-->
<!--权限-->
<!--绑定手机权限-->
[% if(check_auth('index/updateDevice')) {%]
<a class="btn1 btn-success phone-bundling" href="#modal-phonebundling" data-toggle="modal" data-id='[%= it[item]["id"] %]'>绑定手机</a>
[% } %]
</td>
</tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment