Commit 85c16925 authored by duxinyuan's avatar duxinyuan

修改状态详情

parent 076935f4
......@@ -1074,7 +1074,7 @@
<tr>
<th class="text-center">提交时间</th>
<th class="text-center">收款ID</th>
<th class="text-center">订单ID</th>
<th class="text-center">带看ID</th>
<th class="text-center">成交报告ID</th>
<th class="text-center">入账日期</th>
<th class="text-center">提交人</th>
......@@ -1118,7 +1118,7 @@
<th class="text-center">入账日期</th>
<th class="text-center">退款类型</th>
<th class="text-center">提交人</th>
<th class="text-center">提交时间</th>
<!-- <th class="text-center">提交时间</th>-->
<th class="text-center">商铺地址</th>
</tr>
</thead>
......
......@@ -353,7 +353,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
$(document).on('click','.add-status',function(e){
var id = e.target.dataset.id;
// that.deleteId = id ;
that.getStatusList(1);
that.getStatusList(id);
});
//操作----删除
......@@ -1622,80 +1622,83 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
* 获取表格数据
* @param {Object} no
*/
getStatusList : function(no){
getStatusList : function(id){
var that = receiv;
that.pageNo = no;
var params = that.buildSearchParams(false);
params.pageNo = that.pageNo;
params.pageSize = that.pageSize ;
var testDatas = [
{
'aaa' : 000 ,
'bbb' : 111,
'ccc' : 222,
'ddd' : 333,
'eee' :444,
'fff' : 555,
'ggg' : 666,
'hhh' : 777 ,
'iii' : 888 ,
'jjj' : 999 ,
'kkk' :'---',
'lll' : 'kkk'
},
]
var doTtmpl1 = doT.template(document.getElementById('status_body_1').innerHTML);
$("#statusBody1").html(doTtmpl1(testDatas));
var doTtmpl2 = doT.template(document.getElementById('status_body_2').innerHTML);
$("#statusBody2").html(doTtmpl2(testDatas));
var doTtmpl3 = doT.template(document.getElementById('status_body_3').innerHTML);
$("#statusBody3").html(doTtmpl3(testDatas));
// that.pageNo = no;
var params = {
'pay_id' : id
}
// params.pageNo = that.pageNo;
// params.pageSize = that.pageSize ;
// params.pay_id = id ;
// var testDatas = [
// {
// 'aaa' : 000 ,
// 'bbb' : 111,
// 'ccc' : 222,
// 'ddd' : 333,
// 'eee' :444,
// 'fff' : 555,
// 'ggg' : 666,
// 'hhh' : 777 ,
// 'iii' : 888 ,
// 'jjj' : 999 ,
// 'kkk' :'---',
// 'lll' : 'kkk'
// },
// ]
//
//
// var doTtmpl1 = doT.template(document.getElementById('status_body_1').innerHTML);
// $("#statusBody1").html(doTtmpl1(testDatas));
//
// var doTtmpl2 = doT.template(document.getElementById('status_body_2').innerHTML);
// $("#statusBody2").html(doTtmpl2(testDatas));
//
// var doTtmpl3 = doT.template(document.getElementById('status_body_3').innerHTML);
// $("#statusBody3").html(doTtmpl3(testDatas));
//
//
$.ajax({
type: 'GET',
url: '/index/getPayLogData',
data: params,
timeout: 30000,
dataType: 'json',
beforeSend: function() {},
success: function(data) {
if(typeof data === 'object') {
if(data.code == 200) {
// that.listData = data.data;
console.log("123123123-----------------------------------------");
console.log(data.data.list);
var doTtmpl1 = doT.template(document.getElementById('status_body_1').innerHTML);
$("#statusBody1").html(doTtmpl1(data.data.pay_log));
var doTtmpl2 = doT.template(document.getElementById('status_body_2').innerHTML);
$("#statusBody2").html(doTtmpl2(data.data.pay_log_adjustment));
// $.ajax({
// type: 'GET',
// url: '/index/getCollection',
// data: params,
// timeout: 30000,
// dataType: 'json',
// beforeSend: function() {},
// success: function(data) {
// if(typeof data === 'object') {
// if(data.code == 200) {
// that.listData = data.data.list;
// console.log("123123123-----------------------------------------");
// console.log(data.data.list);
// var doTtmpl1 = doT.template(document.getElementById('status_body_1').innerHTML);
// $("#statusBody1").html(doTtmpl1(data.data.list));
//
// var doTtmpl2 = doT.template(document.getElementById('status_body_2').innerHTML);
// $("#statusBody2").html(doTtmpl2(data.data.list));
//
// var doTtmpl3 = doT.template(document.getElementById('status_body_3').innerHTML);
// $("#statusBody3").html(doTtmpl3(data.data.list));
// /*分页代码*/
//// add_page(data.data.total, no, that.pageSize, that.getList);
// } else {
// alert(data['msg']);
// };
// } else {
// alert('数据错误');
// };
// },
// error: function() {
// alert('error');
// },
// complete: function(xhr, textStatus) {
// if(textStatus === 'timeout') {
// alert('请求超时');
// };
// }
// });
var doTtmpl3 = doT.template(document.getElementById('status_body_3').innerHTML);
$("#statusBody3").html(doTtmpl3(data.data.pay_log_refund));
/*分页代码*/
// add_page(data.data.total, no, that.pageSize, that.getList);
} else {
alert(data['msg']);
};
} else {
alert('数据错误');
};
},
error: function() {
alert('error');
},
complete: function(xhr, textStatus) {
if(textStatus === 'timeout') {
alert('请求超时');
};
}
});
},
......
......@@ -74,15 +74,6 @@
</script>
<script id="status_body_1" type="text/template">
[% if(it&&it.length!=0) { %]
[% for(var item in it){ %]
......@@ -98,7 +89,27 @@
<td>[%= it[item]['type'] %]</td>
<td>[%= it[item]['money'] %]</td>
<td>[%= it[item]['real_money'] %]</td>
<td>[%= it[item]['real_money'] %]</td>
[% if(it[item]['is_refund'] == 1){ %]
[% if(it[item]['source'] == 0) { %]
<td>正常收款,被退款</td>
[% } else if ( it[item]['source'] == 1 ) { %]
<td>正常收款,被退款</td>
[% } else if ( it[item]['source'] == 2) { %]
<td>被调整收款(调整ID:[%= it[item]['source_id'] %],被退款)</td>
[% } else{%]
<td>被退款 </td>
[% } %]
[% }else{ %]
[% if(it[item]['source'] == 0) { %]
<td>正常收款</td>
[% } else if ( it[item]['source'] == 1 ) { %]
<td>正常收款</td>
[% } else if ( it[item]['source'] == 2) { %]
<td>被调整收款(调整ID:[%= it[item]['source_id'] %])</td>
[% } else{%]
<td>--</td>
[% } %]
[% } %]
</tr>
[% } %]
[% }else{ %]
......@@ -115,14 +126,28 @@
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['id'] %]</td>
<td>[%= it[item]['order_id'] %]</td>
<td>[%= it[item]['bargain_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]['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 if(it[item]['type'] == 7){%]
<td>意向金转保管金</td>
[% }else{ %]
<td>保管金转保管金</td>
[% } %]
<td>[%= it[item]['new_paylog_id '] %]</td>
<td>[%= it[item]['name'] %]</td>
<td>[%= it[item]['current_agent_name'] %]</td>
<td>[%= it[item]['store_name'] %]</td>
<td>[%= it[item]['type'] %]</td>
<td>[%= it[item]['money'] %]</td>
<td>[%= it[item]['real_money'] %]</td>
</tr>
[% } %]
[% }else{ %]
......@@ -138,15 +163,43 @@
<tr class="text-center">
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['id'] %]</td>
[% if(it[item]['status'] == 0) { %]
<td>审核中</td>
[% }else if (it[item]['status'] == 1) { %]
<td>审核中</td>
[% }else if (it[item]['status'] == 2) { %]
<td>退款成功</td>
[% }else if (it[item]['status'] == 3) { %]
<td>已审核</td>
[% }else if (it[item]['status'] == 4) { %]
<td>驳回</td>
[% } else { %]
<td>--</td>
[% } %]
<td>[%= it[item]['order_id'] %]</td>
<td>[%= it[item]['bargain_id'] %]</td>
<td>[%= it[item]['pay_log_id'] %]</td>
<td>[%= it[item]['refund_money'] %]</td>
<td>[%= it[item]['income_time'] %]</td>
<td>[%= it[item]['name'] %]</td>
<td>[%= it[item]['current_agent_name'] %]</td>
<td>[%= it[item]['store_name'] %]</td>
<td>[%= it[item]['type'] %]</td>
<td>[%= it[item]['money'] %]</td>
<td>[%= it[item]['real_money'] %]</td>
<!--<td>[%= it[item]['type'] %]</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 if (it[item]['type'] == 0) { %]
<td>退意向金</td>
[% } else { %]
<td>--</td>
[% } %]
<td>[%= it[item]['agent_name'] %]</td>
<!--<td>[%= it[item]['store_name'] %]</td>-->
<!--<td>[%= it[item]['house_id'] %]</td>-->
<td>[%= it[item]['address'] %]</td>
</tr>
[% } %]
[% }else{ %]
......
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