|
|
|
@ -116,7 +116,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group normal_space">
|
|
|
|
|
<label class="form-title select-title" style="position: relative;">起止时间:</label>
|
|
|
|
|
<label class="form-title select-title" style="position: relative;">下单时间:</label>
|
|
|
|
|
<div class="select-time">
|
|
|
|
|
<input type="text" readonly id="sdate" class="txt" name="begtime" placeholder="开始时间" value="{$initBegTime}">
|
|
|
|
|
</div>
|
|
|
|
@ -126,6 +126,17 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group normal_space">
|
|
|
|
|
<label class="form-title select-title" style="position: relative;">到账时间:</label>
|
|
|
|
|
<div class="select-time">
|
|
|
|
|
<input type="text" readonly id="payed_sdate" class="txt" name="payed_begtime" placeholder="开始时间" value="{$payedBegTime}">
|
|
|
|
|
</div>
|
|
|
|
|
<label class="form-title select-title zhi_color"> — </label>
|
|
|
|
|
<div class="select-time">
|
|
|
|
|
<input type="text" readonly id="payed_edate" class="txt" name="payed_endtime" placeholder="结束时间" value="{$payedEndTime}">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group normal_space">
|
|
|
|
|
<input type="text" name="pay_order_number" class="txt normal_txt" placeholder="请输入订单号"
|
|
|
|
|
value="{:I('pay_order_number')}">
|
|
|
|
@ -191,7 +202,8 @@
|
|
|
|
|
<th>部门长</th>
|
|
|
|
|
<th>组长</th>
|
|
|
|
|
<th>推广员</th>
|
|
|
|
|
<th>付款时间</th>
|
|
|
|
|
<th>下单时间</th>
|
|
|
|
|
<th>到账时间</th>
|
|
|
|
|
<!-- <th>操作</th>-->
|
|
|
|
|
</tr>
|
|
|
|
|
<empty name="listData">
|
|
|
|
@ -216,6 +228,7 @@
|
|
|
|
|
<td>{$vo.p_p_pro_account}({$vo.p_p_pro_real_name}/{$vo.p_p_pro_group_remark})</td>
|
|
|
|
|
<td>{$vo.p_pro_account}({$vo.p_pro_real_name}/{$vo.p_pro_group_remark})</td>
|
|
|
|
|
<td>{$vo.pro_account}({$vo.pro_real_name})</td>
|
|
|
|
|
<td>{$vo.spend_time}</td>
|
|
|
|
|
<td>{$vo.pay_time}</td>
|
|
|
|
|
<!-- <td>-->
|
|
|
|
|
<!-- <a href="{:U('Query/viewSpendDetailed',array('id'=>$vo['id']))}" style="cursor: pointer"-->
|
|
|
|
@ -293,6 +306,30 @@
|
|
|
|
|
endDate: date
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('#payed_sdate').datetimepicker({
|
|
|
|
|
format: 'yyyy-mm-dd',
|
|
|
|
|
language: "zh-CN",
|
|
|
|
|
minView: 2,
|
|
|
|
|
autoclose: true,
|
|
|
|
|
scrollMonth: false,
|
|
|
|
|
scrollTime: false,
|
|
|
|
|
scrollInput: false,
|
|
|
|
|
endDate: date
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('#payed_edate').datetimepicker({
|
|
|
|
|
format: 'yyyy-mm-dd',
|
|
|
|
|
language: "zh-CN",
|
|
|
|
|
minView: 2,
|
|
|
|
|
autoclose: true,
|
|
|
|
|
pickerPosition: 'bottom-left',
|
|
|
|
|
scrollMonth: false,
|
|
|
|
|
scrollTime: false,
|
|
|
|
|
scrollInput: false,
|
|
|
|
|
endDate: date
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function showPromoteSelect(html)
|
|
|
|
|
{
|
|
|
|
|
$("#promote_id").empty();
|
|
|
|
@ -373,13 +410,30 @@
|
|
|
|
|
var sdate = Date.parse($('#sdate').val()) / 1000;
|
|
|
|
|
var edate = Date.parse($('#edate').val()) / 1000;
|
|
|
|
|
if (sdate > edate) {
|
|
|
|
|
layer.msg('开始时间必须小于等于结束时间');
|
|
|
|
|
layer.msg('下单开始时间必须小于等于结束时间');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if ((edate - sdate) > 2592000) {
|
|
|
|
|
layer.msg('时间间隔不能超过31天,请重新选择日期');
|
|
|
|
|
layer.msg('下单时间间隔不能超过31天,请重新选择日期');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var payed_sdate = Date.parse($('#payed_sdate').val()) / 1000;
|
|
|
|
|
var payed_edate = Date.parse($('#payed_edate').val()) / 1000;
|
|
|
|
|
if (payed_sdate > payed_edate) {
|
|
|
|
|
layer.msg('到账开始时间必须小于等于结束时间');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if ((payed_edate - payed_sdate) > 2592000) {
|
|
|
|
|
layer.msg('到账时间间隔不能超过31天,请重新选择日期');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (payed_sdate && !payed_edate) {
|
|
|
|
|
layer.msg('到账结束时间不能为空');
|
|
|
|
|
}
|
|
|
|
|
if (!payed_sdate && payed_edate) {
|
|
|
|
|
layer.msg('到账开始时间不能为空');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var url = $(this).attr('url');
|
|
|
|
|
console.log(url);
|
|
|
|
|