Commit 346d1313 authored by zw's avatar zw

Merge remote-tracking branch 'origin/1210-v3.0.2' into 1210-v3.0.2

parents 38bb1151 0b5403b6
......@@ -81,6 +81,10 @@ class Broker extends Basic
return $this->response(101, '账号已冻结', $data['data']);
}
if ($agents_data['status'] == 4) {
return $this->response(101, '该账号已被列入黑名单!', $data['data']);
}
if ($agents_data['password'] != md5($this->params['pwd'])) {
return $this->response(101, '密码错误', $data['data']);
}
......
......@@ -2398,7 +2398,7 @@ class Finance extends Basic
}
//来源
if (!empty($this->params['source'])) {
if ($this->params['source'] > -1) {
$where['a.source'] = $this->params['source'];
$is_show = 1;
}
......@@ -2435,8 +2435,12 @@ class Finance extends Basic
$list[$k]['source_id'] = 0;
}
if ($v['type'] != 10 && $v['type'] != 30) {
$bargain_id = $this->m_bargain->selectBargainByOrderNo('id', ['order_id', $v['order_id']]);
$list[$k]['bargain_id'] = $bargain_id[0]['id'];
} else {
$list[$k]['bargain_id'] = '';
}
$list[$k]['current_agent_name'] = $list[$k]['store_name'] = "";
if ($v['type'] == 92) {
......@@ -2944,17 +2948,17 @@ class Finance extends Basic
/*提交时间 end*/
/*入账日期 start*/
if (!empty($this->params['income_start_time']) && empty($this->params['income_end_time'])) {
$where['a.income_time'] = ['> time', $this->params['income_start_time'] . ' 00:00:00'];
$where['b.income_time'] = ['> time', $this->params['income_start_time'] . ' 00:00:00'];
$is_show = 1;
}
if (!empty($this->params['income_end_time']) && empty($this->params['income_start_time'])) {
$where['a.income_time'] = ['< time', $this->params['end_time'] . ' 23:59:59'];
$where['b.income_time'] = ['< time', $this->params['end_time'] . ' 23:59:59'];
$is_show = 1;
}
if (!empty($this->params['income_end_time']) && !empty($this->params['income_start_time'])) {
$where['a.income_time'] = ['between time', [
$where['b.income_time'] = ['between time', [
$this->params['income_start_time'] . ' 00:00:00', $this->params['income_end_time'] . ' 23:59:59'
]];
$is_show = 1;
......
......@@ -315,7 +315,7 @@
<span class="btn btn-info btn3 ld-Marheight" id="reset" style="float:left">重置</span>
<!--<span class="btn btn-info btn3 ld-Marheight" id="export" style="float:left">导出excel</span>-->
<span class="btn btn-info btn3 ld-Marheight" id="count" style="float:left">统计</span>
<span class="money_total_two ld-Marheight " style="float:left">调整统计:</span><span style="float:left" id="money_total" class="money_total_two_shifu fore-span ld-Marheight">1268</span>
<span class="money_total_two ld-Marheight " style="float:left">调整统计:</span><span style="float:left" id="money_total" class="money_total_two_shifu fore-span ld-Marheight">0</span>
</form>
</td>
</tr>
......
......@@ -17,7 +17,7 @@
}
#container_body_img_area>div{
float: left;
width: 216px;
width: 172px;
}
.img-pre-ul {
padding-left: 0;
......
......@@ -345,10 +345,10 @@
<option value="60">其他</option>
</select>
<select class="form-control btn2 ld-Marheight" id="come_from">
<option value="">来源</option>
<option value="-1">来源</option>
<option value="0">app</option>
<option value="1">智能pos机</option>
<option value="1">调整</option>
<option value="2">调整</option>
</select>
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="order_id" placeholder="带看ID" type="text" value="">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="get_id" placeholder="收款ID" type="text" value="">
......
......@@ -324,7 +324,9 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
success: function(data) {
if(data.code == 200) {
} else {}
} else {
alert(data.msg)
}
}
});
},
......@@ -353,7 +355,9 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
}));
};
} else {}
} else {
alert(data.msg)
}
}
});
},
......@@ -484,6 +488,8 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
});
$('#commit_home').append(str);
fn && fn();
} else {
alert(data.msg);
}
}
});
......@@ -502,6 +508,8 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
success: function(data) {
if(data.code == 200 && data.data != null) {
fn && fn(data.data);
} else {
alert(data.msg);
}
}
});
......@@ -521,7 +529,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
getReportDataByDetail : function(val){
$.post('',{'val':val},function(data){
if(data.code == 200) {
return data ;
} else {
alert(data.msg);
}
})
},
......@@ -588,7 +600,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
'order_no' : that.order_no,
'agent_id' : that.agent_id,
'report_id' : that.report_id,
'industry_type' : that.yetai,
'industry_type' : that.yetai ? that.yetai : '' ,
'income_time' : that.income_time
};
......@@ -650,14 +662,21 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
//上传数据
$.post('/index/collectingBill',params,function( data ){
console.log(data);
if(data.code == 200) {
$('#modal-linetime').modal('hide');
} else {
alert(data.msg);
}
},'json');
},
getAllPrice : function(id){
$.get('/index/getAdjustment',{'pay_id':id},function(data){
if(data.code == 200) {
$('#could_price').text(data.data.residue_money);
} else {
alert(data.msg);
}
})
},
......@@ -666,7 +685,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var params = that.recervablesParams();
console.log(params);
$.post('/index/getCollectionEdit',params,function(data){
if(data.code == 200) {
that.getList(that.pageNo);
} else {
alert(data.msg);
}
},'json')
},
......@@ -738,7 +761,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var that = receiv;
var params = that.buildSearchParams(true);
$.post('',params, function(data){
console.log(data);
if(data.code == 200) {
} else {
alert(data.msg);
}
})
window.open('/index/getCollection' +params);
},
......@@ -789,8 +816,8 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
paramsStr += "pay_type=" + maintable_pay_type + "&"
}
if ( come_from ) {
params.soucre = come_from;
paramsStr += "soucre=" + come_from + "&"
params.source = come_from;
paramsStr += "source=" + come_from + "&"
}
if ( order_id ) {
params.order_id = order_id;
......@@ -888,9 +915,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
'pay_id' : id
};
$.post('/index/getCollectionDetail',params , function(data){
console.log("12321321321321313213213")
console.log(data);
if(data.code == 200) {
that.getValueFunction(data.data);
} else {
alert(data.msg);
}
},'json')
},
......@@ -949,7 +978,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
} else {
$("#comes").text('调整');
}
doc.find("#status").text(data.soucre_id);
doc.find("#status").text(data.source_id);
doc.find("#lastTime").val(data.last_transfer_time);
if ( data.type == 91 || data.type == 92) {
......@@ -978,7 +1007,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var that = receiv;
$.get('/index/getBeForNum',{'order_id':id},function(data){
// $('#shop_id_change').text(data.data.house_number);
if(data.code == 200) {
that.yetai = data.data.industry_type;
} else {
alert(data.msg);
}
},'json')
},
/**
......@@ -992,8 +1025,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
'pay_id' : id
};
$.post('/index/delPayLog',params , function(data){
console.log(data);
if(data.code == 200) {
that.getList(1);
} else {
alert(data.msg);
}
},'json')
}
};
......
......@@ -94,7 +94,23 @@ define(['doT', 'text!temp/pk_week_list_template_tpl.html.html', 'css!style/home.
});
//生成pk榜
_doc.on('click', '.produce-pk', function(e){
//比赛时间 大于 分档时间
var start_ = $('#create_time_start').val()+" 00:00:00";
date_start =new Date(Date.parse(start_.replace(/-/g, "/")));
var start_time =date_start.getTime();
var end_ = $('#sort_time_end').val()+" 00:00:00";
date_end =new Date(Date.parse(end_.replace(/-/g, "/")));
var end_time =date_end.getTime();
if(!(start_time*1 > end_time*1)){
alert('分档根据时间的结束时间要 小于 比赛时间的开始时间!');
return;
};
pkList.setPkTime();
pkList.getList();
});
$(".export-pk").click(function() { //导出列表
if(pkList.mainTabIndexTeam){
......
<!--中介费-->
<script id="a_financial_daily_list_tpl" type="text/template">
[% if(it.length) { %]
[% for(var item in it){ %]
......
......@@ -31,7 +31,7 @@
<a class="btn1 btn-success add-pic" href="#modal-addPic" data-toggle="modal" data-id='[%= it[item]["id"] %]'>收款详情</a>
[% if( it[item]['type_num'] == 10 || it[item]['type_num'] == 30 ) { %]
<a class="btn1 btn-success money_change" href="#modal-linetime" data-toggle="modal" data-type='[%= it[item]['type'] %]' data-id='[%= it[item]["id"]%]'
data-type_num = '[%= it[item]['type_num'] %]' data-income_time='[%= it[item]['income_time'] %]' data-pay_type='[%= it[item]['pay_type_num'] %]' >调整</a>
data-order_id = '[%= it[item]['order_id'] %]' data-type_num = '[%= it[item]['type_num'] %]' data-income_time='[%= it[item]['income_time'] %]' data-pay_type='[%= it[item]['pay_type_num'] %]' >调整</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