特殊补点功能修正

master
zhengyongxing 4 years ago
parent 565d3c9576
commit f4aeae340d

@ -1293,7 +1293,7 @@ class CompanyStatementController extends ThinkController
foreach ($statement_info as $k => $v) {
$statement_begin_time = strtotime($v['statement_begin_time']);
$statement_end_time = strtotime($v['statement_end_time']);
$statement_end_time = strtotime($v['statement_end_time'])+86399;
$amount_time['_string'] = "payed_time between {$statement_begin_time} and {$statement_end_time} and relation_game_id={$v['relation_game_id']}";
$dataAmount = M("spend","tab_")

@ -178,9 +178,9 @@
<tr>
<td colspan="4">合计</td>
<td></td>
<td></td>
<td>{$data.statement_count.pay_amount}</td>
<td></td>
<td></td>
<td>{$data.statement_count.statement_money}</td>
</tr>
<tr>

@ -377,6 +377,18 @@
return false;
}
var s_start = time_start.split('-');
var s_month = s_start[1]; //获取当前日期的月份
var s_end = time_end.split('-');
var e_month = s_end[1]; //获取当前日期的月份
if (s_month != e_month) {
layer.closeAll("loading");
layer.msg('只能选择同一个月的补点结算');
return false;
}
if (!company_type) {
layer.closeAll("loading");
layer.msg('请选择公司类型');

Loading…
Cancel
Save