Commit 220fbb00 authored by agping's avatar agping

收款记录修改

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