Commit f7a72a2c authored by agping's avatar agping

成交报告 审核修改

parent 991b569a
......@@ -138,7 +138,7 @@
</div>
<span class="btn btn-info btn3 search" id="maintable_search">搜索</span>
<span class="btn btn-info btn3" id="maintable_reset">重置</span>
<!--<span class="btn btn-info btn3" id="maintable_export">导出excel</span>-->
<span class="btn btn-info btn3" id="export">导出报表</span>
</form>
</td>
</tr>
......
......@@ -76,7 +76,10 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
document.getElementById("maintable_form_search").reset();
bargain.agent_id_phone='';
});
//导出列表事件
$("#export").click(function() { //导出列表
bargain.exportList();
});
//时间轴按钮
_doc.on("click", ".timeline", function() {
bargain.Timeline();
......@@ -1637,6 +1640,24 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
}
});
},
//导出列表 收款记录
exportList: function() {
var excel = 1;
var shop_type = $('#maintable_shop_type').val();
var create_time = $('#maintable_create_time').val();
var end_time = $('#maintable_end_time').val();
var internal_address = $('#maintable_internal_address').val();
var user_phone = $('#maintable_user_phone').val();
var house_number = $('#maintable_shop_num').val();
var store_id = $("select[name='store_id'] option:selected").val();
var district_id = $("select[name='district_id'] option:selected").val();
var agent_phone = $('#agent_phone').val();
var bargain_id = $('#bargain_id').val();
var agent_name = $('#agent_name').val();
var partial_id = bargain.agent_id_phone;
var _url = bargain.switchUrl() + '?';
window.open(_url + 'excel=' + excel + '&shop_type=' + shop_type + '&create_time=' + create_time + '&end_time=' + end_time + '&internal_address=' + internal_address + '&user_phone=' + user_phone + '&house_number=' + house_number + '&store_id=' + store_id + '&district_id=' + district_id + '&agent_phone=' + agent_phone+ '&bargain_id=' + bargain_id+ '&agent_name=' + agent_name+ '&partial_id=' + partial_id);
},
// 获取客户详情
Caozuo: function() { //获取跟进详情的数据
$.ajax({
......
......@@ -6,7 +6,12 @@
[% if(it&&it.length!=0) { %]
[% for(var item in it){ %]
<tr class="text-center">
<td>[%= it[item]['id'] %]</td>
<td>
[%= it[item]['id'] %]
[% if(it[item]["is_lock"] == 1) { %]
<span class="btn1 btn-warning btn-xs">锁盘</span>
[% } %]
</td>
<td>
[% if(it[item]["shop_type"] == 0) { %]
商场
......
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