Commit 34f3f489 authored by duxinyuan's avatar duxinyuan

1

parent 48c187e7
......@@ -256,13 +256,13 @@
</div>
<div class="panel-body" style="overflow:hidden;">
<div class="table-responsive">
<div class="btn-group btn_choose">
<!--<div class="btn-group btn_choose">
<button type="button" class="btn btn-info">全部</button>
<button type="button" class="btn btn-default">审核中</button>
<button type="button" class="btn btn-default">已审核</button>
<button type="button" class="btn btn-default">已退款</button>
<button type="button" class="btn btn-default">已驳回</button>
</div>
</div>-->
<table class="table table-striped table-bordered table-hover table-condensed" style="margin-top:15px">
<thead>
<tr>
......@@ -399,37 +399,37 @@
<div class="col-xs-12">
<div class="form-group">
<strong><span class="col-xs-4 ld-Marheight">入账ID:</span></strong>
<span id="befor_into_id" class="col-xs-6 ld-Marheight">中介费</span>
<span id="befor_into_id" class="col-xs-6 ld-Marheight"></span>
</div>
</div>
<div class="col-xs-12">
<div class="form-group">
<strong><span class="col-xs-4 ld-Marheight">订单ID:</span></strong>
<span id="befor_order_id" class="col-xs-6 ld-Marheight">中介费</span>
<span id="befor_order_id" class="col-xs-6 ld-Marheight"></span>
</div>
</div>
<div class="col-xs-12">
<div class="form-group">
<strong><span class="col-xs-4 ld-Marheight">房源ID:</span></strong>
<span id="befor_house_id" class="col-xs-6 ld-Marheight">中介费</span>
<span id="befor_house_id" class="col-xs-6 ld-Marheight"></span>
</div>
</div>
<div class="col-xs-12">
<div class="form-group">
<strong><span class="col-xs-4 ld-Marheight">房源地址:</span></strong>
<span id="befor_house_addr" class="col-xs-6 ld-Marheight">中介费</span>
<span id="befor_house_addr" class="col-xs-6 ld-Marheight"></span>
</div>
</div>
<div class="col-xs-12">
<div class="form-group">
<strong><span class="col-xs-4 ld-Marheight">入账日期 :</span></strong>
<span id="befor_into_date" class="col-xs-6 ld-Marheight">中介费</span>
<span id="befor_into_date" class="col-xs-6 ld-Marheight"></span>
</div>
</div>
<div class="col-xs-12">
<div class="form-group">
<strong><span class="col-xs-4 ld-Marheight">入账类型:</span></strong>
<span id="befor_into_type" class="col-xs-6 ld-Marheight">中介费</span>
<span id="befor_into_type" class="col-xs-6 ld-Marheight"></span>
</div>
</div>
</div>
......@@ -444,60 +444,60 @@
<div class="col-xs-12">
<div class="form-group">
<strong><span class="col-xs-4 ld-Marheight">入账ID:</span></strong>
<span id="after_into_id" class="col-xs-6 ld-Marheight">中介费</span>
<span id="after_into_id" class="col-xs-6 ld-Marheight"></span>
</div>
</div>
<div class="col-xs-12">
<div class="form-group">
<strong><span class="col-xs-4 ld-Marheight">订单ID:</span></strong>
<span id="after_order_id" class="col-xs-6 ld-Marheight">中介费</span>
<span id="after_order_id" class="col-xs-6 ld-Marheight"></span>
</div>
</div>
<div class="col-xs-12">
<div class="form-group">
<strong><span class="col-xs-4 ld-Marheight">成交报告ID:</span></strong>
<span id="after_report_id" class="col-xs-6 ld-Marheight">中介费</span>
<span id="after_report_id" class="col-xs-6 ld-Marheight"></span>
</div>
</div>
<div class="col-xs-12">
<div class="form-group">
<strong><span class="col-xs-4 ld-Marheight">房源ID:</span></strong>
<span id="after_house_id" class="col-xs-6 ld-Marheight">中介费</span>
<span id="after_house_id" class="col-xs-6 ld-Marheight"></span>
</div>
</div>
<div class="col-xs-12">
<div class="form-group">
<strong><span class="col-xs-4 ld-Marheight">房源地址:</span></strong>
<span id="after_house_addr" class="col-xs-6 ld-Marheight">中介费</span>
<span id="after_house_addr" class="col-xs-6 ld-Marheight"></span>
</div>
</div>
<div class="col-xs-12">
<div class="form-group">
<strong><span class="col-xs-4 ld-Marheight">入账日期 :</span></strong>
<span id="after_into_date" class="col-xs-6 ld-Marheight">中介费</span>
<span id="after_into_date" class="col-xs-6 ld-Marheight"></span>
</div>
</div>
<div class="col-xs-12">
<div class="form-group">
<strong><span class="col-xs-4 ld-Marheight">入账类型:</span></strong>
<span id="after_into_type" class="col-xs-6 ld-Marheight">中介费</span>
<span id="after_into_type" class="col-xs-6 ld-Marheight"></span>
</div>
</div>
<div class="col-xs-12">
<div class="form-group">
<strong><span class="col-xs-4 ld-Marheight">入账金额:</span></strong>
<span id="after_into_price" class="col-xs-6 ld-Marheight">中介费</span>
<span id="after_into_price" class="col-xs-6 ld-Marheight"></span>
</div>
</div>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<!--<div class="modal-footer">
<button type="button btn2" class="btn btn-primary" id="savePayBtn" data-dismiss="modal">
保存
</button>
</div>
</div>-->
</div>
<!-- /.modal-content -->
</div>
......
{layout name="global/frame_tpl" /}
<input type="hidden" class="page-load" id="receivables" />
<style>
.reportArea{
float: left;
position: relative;
overflow-y:scroll ;
height:100px;
left: 0px;
width:100%;
line-height: 30px;
}
.reportArea li{
list-style: none;
line-height: 20px;
}
ul {
-webkit-padding-start: 0px !important;
}
.modal-body-height {
overflow-y: auto;
height: 432px;
......@@ -421,11 +437,11 @@
<!--<strong><span class="col-xs-2 ld-Marheight">元</span></strong>-->
</div>
</div>
<div class="col-xs-6">
<div class="col-xs-12">
<div class="form-group">
<strong><span class="col-xs-4 ld-Marheight">成交报告ID:</span></strong>
<div class="col-xs-6"><input class="form-control" type="text" value="2018" id="report_id_change" /></div>
<ul class="reportArea"></ul>
<strong><span class="col-xs-2 ld-Marheight">成交报告ID:</span></strong>
<div class="col-xs-9" style="padding:0px 10px 0px 5px;"><input class="form-control" type="text" value="2018" id="report_id_change" />
<ul class="reportArea" style="display:none"></ul></div>
</div>
</div>
<div class="col-xs-6">
......@@ -473,7 +489,7 @@
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary submit_edit" id="saveChangeBtn" data-dismiss="modal"> 提交 </button>
<button type="button" class="btn btn-primary submit_edit" id="saveChangeBtn"> 提交 </button>
</div>
</div>
<!-- /.modal-content -->
......
......@@ -8,6 +8,7 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
house_id: '',
house_fatherid: '',
collection_del_id:'',
listData :"",
init: function() {
//初始化dot
$(document.body).append(template);
......@@ -18,22 +19,27 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
var that = adjustment;
var _doc = $(document);
$(document).on('click','.btn_choose',function(e){
console.log(e);
console.log(e.target.innerHTML);
var value = e.target.innerHTML ;
$('.btn-group').find('button.btn-info').addClass("btn-default");
$('.btn-group').find('button.btn-info').removeClass("btn-info");
$('.btn-group').find('button').each(function(){
console.log($(this).context.innerHTML)
if ($(this).context.innerHTML == value){
$(this).addClass("btn-info");
$(this).removeClass("btn-default");
}
})
adjustment.getList(1);
// $(document).on('click','.btn_choose',function(e){
// console.log(e);
// console.log(e.target.innerHTML);
// var value = e.target.innerHTML ;
// $('.btn-group').find('button.btn-info').addClass("btn-default");
// $('.btn-group').find('button.btn-info').removeClass("btn-info");
// $('.btn-group').find('button').each(function(){
// console.log($(this).context.innerHTML)
// if ($(this).context.innerHTML == value){
// $(this).addClass("btn-info");
// $(this).removeClass("btn-default");
// }
// })
// adjustment.getList(1);
// });
//操作----删除
$(document).on('click','.list_delete',function(e){
var id = e.target.dataset.id;
that.deleteTableRow(id);
console.log(id);
});
//搜索
$(document).on('click','#search',function(e){
that.getList(that.pageNo);
......@@ -54,26 +60,57 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
e.stopPropagation();
$('.iframe-time-line').attr('src', '/app_broker/timeline_pc?order_id=' + house_id);
});
//操作----收款详情
$(document).on('click','.add-pic',function(e){
var id = e.target.dataset.id;
that.getAdjustmentDetail(id);
console.log(id)
});
//统计
$(document).on('click','#count',function(e){
that.countValue();
});
},
countValue : function(){
var that = adjustment ;
var data = that.listData ;
console.log(data);
var value = 0 ;
for (var i = 0 ; i < data.length ; i++ ){
value = value + (data[i].money - 0);
}
console.log(value);
$('#money_total').text(value+"元");
},
getAdjustmentDetail : function(id){
var that = adjustment ;
$.get('/index/getAdjustmentDetail',{'id' : id},function(data){
console.log(data.data);
that.setValue(data.data);
},'json');
},
setValue : function(){
setValue : function(data){
var that = adjustment ;
$('#change_id').text("123123");
$('#change_price').text("123123");
$('#befor_into_id').text("123123");
$('#befor_order_id').text("123123");
$('#befor_house_id').text("123123");
$('#befor_house_addr').text("123123");
$('#befor_into_date').text("123123");
$('#befor_into_type').text("123123");
$('#after_into_id').text("123123");
$('#after_order_id').text("123123");
$('#after_report_id').text("123123");
$('#after_house_id').text("123123");
$('#after_house_addr').text("123123");
$('#after_into_date').text("123123");
$('#after_into_type').text("123123");
$('#after_into_price').text("123123");
$('#change_id').text(data.id);
$('#change_price').text("");
console.log(data.adjustment_old)
$('#befor_into_id').text(data.adjustment_old[0].id);
$('#befor_order_id').text(data.adjustment_old[0].order_id);
$('#befor_house_id').text(data.adjustment_old[0].house_id);
$('#befor_house_addr').text(data.adjustment_old[0].internal_address);
$('#befor_into_date').text(data.adjustment_old[0].income_time);
$('#befor_into_type').text(data.adjustment_old[0].type);
$('#after_into_id').text(data.adjustment[0].id);
$('#after_order_id').text(data.adjustment[0].order_id);
$('#after_report_id').text(data.adjustment[0].bargain_id);
$('#after_house_id').text(data.adjustment[0].house_id);
$('#after_house_addr').text(data.adjustment[0].internal_address);
$('#after_into_date').text(data.adjustment[0].income_time);
$('#after_into_type').text(data.adjustment[0].type);
$('#after_into_price').text(data.adjustment[0].money);
},
/**
......@@ -84,16 +121,24 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
var that = adjustment;
var params = that.buildSearchParams();
console.log(params) ;
$.get('/index/adjustment',params,function(data){
that.listData = data.data.list;
console.log(data.data.list)
var temp = document.getElementById('adjustment_template_tpl').innerHTML;
var doTtmpl = doT.template(temp);
$("#order_list").html(doTtmpl(data.data.list));
},'json');
//功能模拟
var aaa = [{'create_time' : '12','income_time' : '13','report_agent_name' : '14','report_agent_phone' : '15','store_name' : '16','money' : '17',
'real_money' : '18','type' : '19','pay_type' : '10','internal_address' : '21','house_number' : '31','aaa' : '41','bbb' : '51','id' : '61'},{
'create_time' : '12','income_time' : '13','report_agent_name' : '14','report_agent_phone' : '15','store_name' : '16','money' : '17',
'real_money' : '18','type' : '19','pay_type' : '10','internal_address' : '21','house_number' : '31','aaa' : '41','bbb' : '51','id' : '80'}]
var temp = document.getElementById('adjustment_template_tpl').innerHTML;
var doTtmpl = doT.template(temp);
$("#order_list").html(doTtmpl(aaa));
that.setValue();
// var aaa = [{'create_time' : '12','income_time' : '13','report_agent_name' : '14','report_agent_phone' : '15','store_name' : '16','money' : '17',
// 'real_money' : '18','type' : '19','pay_type' : '10','internal_address' : '21','house_number' : '31','aaa' : '41','bbb' : '51','id' : '61'},{
// 'create_time' : '12','income_time' : '13','report_agent_name' : '14','report_agent_phone' : '15','store_name' : '16','money' : '17',
// 'real_money' : '18','type' : '19','pay_type' : '10','internal_address' : '21','house_number' : '31','aaa' : '41','bbb' : '51','id' : '80'}]
// var temp = document.getElementById('adjustment_template_tpl').innerHTML;
// var doTtmpl = doT.template(temp);
// $("#order_list").html(doTtmpl(aaa));
// that.setValue();
//******************************************************************************
......@@ -152,46 +197,62 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
params.choose_type = choose_type;
}
if ( commite_time_start ) {
params.commite_time_start = commite_time_start;
params.start_time = commite_time_start;
}
if ( commite_time_end ) {
params.commite_time_end = commite_time_end;
params.end_time = commite_time_end;
}
if ( into_time_start ) {
params.into_time_start = into_time_start;
params.income_start_time = into_time_start;
}
if ( into_time_end ) {
params.into_time_end = into_time_end;
params.income_end_time = into_time_end;
}
if ( changed_type ) {
params.changed_type = changed_type;
params.type = changed_type;
}
if ( changed_id ) {
params.changed_id = changed_id;
params.id = changed_id;
}
if ( looked_id ) {
params.looked_id = looked_id;
params.march_id = looked_id;
}
if ( shoped_id ) {
params.shoped_id = shoped_id;
params.house_id = shoped_id;
}
if ( shoped_addr) {
params.shoped_addr = shoped_addr;
params.address = shoped_addr;
}
if ( commit_home ) {
params.commit_home = commit_home;
params.district_id = commit_home;
}
if ( commit_shop ) {
params.commit_shop = commit_shop;
params.store_id = commit_shop;
}
if ( comit_name ) {
params.comit_name = comit_name;
params.name = comit_name;
}
if ( comit_phone ) {
params.comit_phone = comit_phone;
params.phone = comit_phone;
}
return params ;
},
/**
* 删除收款记录
* @param {Object} id
*/
deleteTableRow : function(id){
var that = adjustment;
console.log("delete the row from the table while id = " + id );
var params = {
'id' : id
};
$.post('/index/delAdjustment',params , function(data){
console.log(data);
that.getList(1);
},'json')
}
};
return adjustment;
});
\ No newline at end of file
......@@ -10,6 +10,10 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
collection_del_id:'',
change_max : '' ,
listData : '' ,
agent_id :"",
order_id : '' ,
order_no : '',
report_id : '' ,
init: function() {
//初始化dot
$(document.body).append(template);
......@@ -37,6 +41,13 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
$(document).on('click','.money_change',function(e){
var id = e.target.dataset.id;
var type = e.target.dataset.type ;
// var item = e.target.dataset.item ;
var order_id = e.target.dataset.order_id ;
that.order_id = order_id ;
that.order_no = e.target.dataset.order_no ;
that.report_id = e.target.dataset.report_id;
that.agent_id = e.target.dataset.agent_id;
that.getAllPrice(id);
if ( type == "意向金" ){
$('.baoguanjin').hide();
$('.yixiangjin').show();
......@@ -44,8 +55,8 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
$('.yixiangjin').hide();
$('.baoguanjin').show();
}
that.changeType(id);
console.log(id)
that.yetai = "" ;
that.changeType(order_id);
});
//操作----删除
$(document).on('click','.list_delete',function(e){
......@@ -80,17 +91,10 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
//initMoadalData
that.change_show_hide($('#change_type option:selected').text());
$('#saveChangeBtn').one('click',function(){
$('#saveChangeBtn').one('click',function(e){
that.saveChange();
});
$('#change_price').change(function(){
var price = $('#change_price').val();
if (price > that.change_max ){
$('#change_price').val(that.change_max);
}
});
//附件上传处理事件
$("#file_input").change(function() {
var _this = $(this);
......@@ -120,16 +124,19 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var val = $('#report_id_change').val()
var data = that.getReportDataByDetail(val);
if($("#report_id_change").val() == '') {
bargain.agent_id_phone='';
$(".user-ul").html('');
var tag = "";
tag += '<li class="hideLI" data-id="' + item.id + '">' + item.id + '-' + item.name + '-' + item.phone + status + '</li>';
// tag += '<li class="hideLI" data-id="' + item.id + '">' + item.id + '-' + item.name + '-' + item.phone + status + '</li>';
$('#reportArea').append(tag);
} else {
bargain.search_phone();
that.search_phone();
}
});
//点击li 列表消失
$(document).delegate(".reportIdBuild", "click", function() { //list消失新增客户 点击li事件 获取id ul消失
that.reportIdBuild(this);
});
});
//图片,附件上传删除键事件
......@@ -159,6 +166,50 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
});
},
//将li里的值 赋给input(分佣方姓名)
reportIdBuild: function(obj) {//新增客户 input赋值
var that = receiv ;
that.report_id_a = $(obj).attr("data-id");
var user_ht = $(obj).html()+'';
var user_ht_str=user_ht.substring(0,user_ht.length-3);
$("#report_id_change").val(user_ht_str);
$(".reportArea").html('');
$('.reportArea').hide();
$('#shop_addr_change').text($(obj).attr("data-addr"));
},
search_phone : function(){
var that = receiv ;
$.ajax({
url: '/broker/bargainMain',
type: 'GET',
async: true,
data: {
"keyword": $("#report_id_change").val(),
'status' : 0,
'is_my_correlation' : 0,
'page_no' : 1,
'page_size' : 20 ,
'AuthToken' : JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))).AuthToken,
'submit_agent_id' : JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))).id
},
dataType: 'json',
success: function(data) {
if(data.code == 200) {
var user_ul = "";
$.each(data.data.result, function(i, item) {
user_ul += '<li class="reportIdBuild" data-addr="'+item.internal_address+'" data-id="' + item.id + '">' + item.internal_address + ',商铺ID:' + item.house_id + ',成交报告ID' + item.id + ',成交价:' + item.price + ',佣金'+ item.commission +'</li>';
});
$('.reportArea').show();
$(".reportArea").html(user_ul);
} else {
alert(data.msg);
}
}
});
},
getDistrict: function(fn) {
$.ajax({
url: '/index/getDistrict',
......@@ -225,7 +276,6 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
$('.choose_topic_1').hide();
$('.choose_topic_2').show();
} else {
console.log("else")
$('.choose_topic_2').hide();
$('.choose_topic_1').show();
}
......@@ -270,35 +320,44 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
});
},
saveChange : function(){
saveChange : function(no){
var that = receiv;
var params = {};
console.log(that);
var params = {
'order_id' : that.order_id ,
'order_no' : that.order_no,
'agent_id' : that.agent_id,
'report_id' : that.report_id_a ? that.report_id_a : that.report_id,
'industry_type' : that.yetai
};
var jsonArray = [] ;
if ($('#shop_id_change').text()){//商铺ID
params.shop_id_change = $('#shop_id_change').text()
};
if ($('#shop_addr_change').text()){//商铺地址
params.shop_addr_change = $('#shop_addr_change').text()
params.house_number = $('#shop_id_change').text()
};
var obj = {
'pay_type' :10
};
if ($('#change_type').val()){//调整类型
params.change_type = $('#change_type').val()
obj.type = $('#change_type').val()
};
if ($('#change_price').val()){//调整金额
params.change_price = $('#change_price').val()
};
if ($('#report_id_change').val()){//成交报告ID
params.report_id_change = $('#report_id_change').val()
};
if ($('#into_id_change').val()){//订单ID
params.into_id_change = $('#into_id_change').val()
if ( $('#change_price').val() > 0 ){
if ($('#change_price').val() -$('#could_price').text() > 0 ){
alert("超出最大限额");
} else {
obj.money = $('#change_price').val()
}
} else {
alert('请选择调整金额')
}
};
jsonArray.push(obj);
params.collecting_bill = jsonArray ;
var pictures = $('.img_area').find('.pictures');
var picName = "";
pictures.each(function(i,event){
// if ( i == pictures.length-1 ){
// pictures.lastPicture = true ;
// }
//
// var fujianName = $(this).attr("id");
picName += $(this).attr("id") + ","
})
if ( !(pictures.length - 0 > 0) ){
......@@ -310,6 +369,17 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
console.log(picName.substr(0,picName.length-1));
console.log(params);
$.post('/index/collectingBill',params,function( data ){
console.log(data);
$('modal-linetime').modal('hide');
},'json');
},
getAllPrice : function(id){
$.get('/index/getAdjustment',{'pay_id':id},function(data){
$('#could_price').text(data.data.residue_money);
})
},
saveRecervables : function(){
......@@ -488,7 +558,6 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var params = that.buildSearchParams(false);
params.pageNo = that.pageNo;
params.pageSize = that.pageSize ;
console.log(params) ;
$.ajax({
type: 'GET',
url: '/index/getCollection',
......@@ -523,6 +592,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
}
});
},
/**
* 收款详情
* @param {Object} id
......@@ -540,7 +610,6 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
},'json')
},
getValueFunction : function(data){
var doc = $('#modal-addPic');
doc.find("#ruzhangId").text(data.id);
......@@ -573,20 +642,17 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
* 调整
* @param {Object} id
*/
changeType : function(id){
changeType : function(order_id){
var that = receiv;
console.log("get the timmerLine with id = " + id );
var params = {
'id' : id
};
$.post('',params , function(data){
console.log(data);
that.getValueFunction();
// that.change_max = 10000;
// alert(that.change_max)
that.getShopId(order_id);
},
getShopId : function(id){
var that = receiv;
$.get('/index/getBeForNum',{'order_id':id},function(data){
$('#shop_id_change').text(data.data.house_number);
that.yetai = data.data.industry_type;
},'json')
that.change_max = 10000;
},
/**
* 删除收款记录
......@@ -598,9 +664,9 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var params = {
'id' : id
};
$.post('',params , function(data){
$.post('/index/delAdjustment',params , function(data){
console.log(data);
that.getValueFunction();
that.getList(1);
},'json')
}
};
......
......@@ -3,16 +3,28 @@
[% for(var item in it){ %]
<tr class="text-center">
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['income_time'] %]</td>
<td>[%= it[item]['report_agent_name'] %]-[%= it[item]['report_agent_phone'] %]</td>
<td>[%= it[item]['store_name'] %]</td>
<td>[%= it[item]['id'] %]</td>
<td>[%= it[item]['march_id'] %]</td>
<td>[%= it[item]['paylog_id'] %]</td>
<td>[%= it[item]['house_id'] %]</td>
<td>[%= it[item]['address'] %]</td>
<td>[%= it[item]['money'] %]</td>
<td>[%= it[item]['real_money'] %]</td>
<td>[%= it[item]['type'] %]</td>
<td>[%= it[item]['pay_type'] %]</td>
<td>[%= it[item]['internal_address'] %]</td>
<td>[%= it[item]['house_number'] %]</td>
<td>[%= it[item]['report_agent_phone'] %]</td>
<td>[%= it[item]['income_time'] %]</td>
[% if( it[item]['type'] == 1 ) { %]
<td>意向金转中介费</td>
[% } else if( it[item]['type'] == 2 ) { %]
<td>意向金转案场费</td>
[% } else if( it[item]['type'] == 3 ) { %]
<td>意向金转意向金</td>
[% } else if( it[item]['type'] == 4 ) { %]
<td>保管金转中介费 </td>
[% } else if( it[item]['type'] == 5 ) { %]
<td>保管金转案场费</td>
[% } else { %]
<td>保管金转保管金</td>
[% } %]
<td>[%= it[item]['new_paylog_id '] %]</td>
<td>[%= it[item]['name'] %]</td>
<td>
<a class="btn1 btn-success add-pic" href="#modal-addPic" data-toggle="modal" data-id='[%= it[item]["id"] %]'>详情</a>
<a class="btn1 btn-success timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["order_id"] %]'>时间轴</a>
......
......@@ -27,7 +27,10 @@
<a class="btn1 btn-success timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["order_id"] %]'>时间轴</a>
<a class="btn1 btn-success add-pic" href="#modal-addPic" data-toggle="modal" data-id='[%= it[item]["id"] %]'>收款详情</a>
[% if( it[item]['type'] == "意向金" || it[item]['type'] == "保管金" ) { %]
<a class="btn1 btn-success money_change" href="#modal-linetime" data-toggle="modal" data-type='[%= it[item]['type'] %]' data-id='[%= it[item]["id"]%]'>调整</a>
<a class="btn1 btn-success money_change" href="#modal-linetime" data-toggle="modal" data-order_id=[%= it[item]['order_id'] %]
data-agent_id = '[%= it[item]['agent_id'] %]' data-report_id='[%= it[item]['report_id'] %]'
data-industry_type='[%= it[item]['industry_type'] %]' data-report='[%= it[item]['report_id'] %]' data-order_no = '[%= it[item]['order_no'] %]'
data-type='[%= it[item]['type'] %]' data-id='[%= it[item]["id"]%]'>调整</a>
[% } %]
<!--<a class="btn1 btn-success money_back" href="#modal-back" data-toggle="modal" data-id='[%= it[item]["id"]%]'>退款</a>-->
<a class="btn1 btn-success list_delete" href="#modal-delete" data-toggle="modal" data-id='[%= it[item]["id"]%]'>删除</a>
......
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