|
@@ -133,6 +133,12 @@
|
|
|
<a href="#" class="btns" onclick="hCopyOrder(event)">
|
|
|
<span><i class="icon-edit"></i>拷贝客户单号</span>
|
|
|
</a>
|
|
|
+ <a href="#" class="btns" id="hFail">
|
|
|
+ <span><i class="icon-edit"></i>批量失败</span>
|
|
|
+ </a>
|
|
|
+ <a href="#" class="btns" onclick="hSupplement(event)">
|
|
|
+ <span><i class="icon-edit"></i>批量补充</span>
|
|
|
+ </a>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
@@ -148,6 +154,7 @@
|
|
|
<th class="align-center">充值额度</th>
|
|
|
<th class="align-right">下单日期</th>
|
|
|
<th class="align-center">订单状态</th>
|
|
|
+ <th class="align-center"><?php echo $lang['nc_handle']; ?></th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody id="tbody">
|
|
@@ -165,6 +172,17 @@
|
|
|
<td class="align-center"><?php echo $order['params']['amount']; ?></td>
|
|
|
<td class="align-right"><?php echo date('Y-m-d H:i:s', $order['order_time']) ?? '/'; ?></td>
|
|
|
<td class="align-center"><?php echo $order['order_state_text']; ?></td>
|
|
|
+ <td class="align-center">
|
|
|
+ <!-- <a href="#">
|
|
|
+ 回调</a>
|
|
|
+ | -->
|
|
|
+ <a href="#">
|
|
|
+ 回调失败</a>
|
|
|
+ |
|
|
|
+ <a href="#">
|
|
|
+ 回调补充</a>
|
|
|
+
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
<?php } ?>
|
|
|
<?php } else { ?>
|
|
@@ -210,6 +228,21 @@
|
|
|
elem: '#endTime',
|
|
|
type: 'datetime'
|
|
|
});
|
|
|
+ //批量失败
|
|
|
+ // function hFail(e) {
|
|
|
+ // layer.confirm('您确定要批量失败', {
|
|
|
+ // btn: ['确定','取消'],
|
|
|
+ // title:'批量失败'
|
|
|
+ // }, function(){
|
|
|
+ // $('#selectAll' ).click ( function () {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ // })
|
|
|
+ // }, function(){
|
|
|
+ // });
|
|
|
+ // }
|
|
|
//全选
|
|
|
$('#selectAll' ).click ( function () {
|
|
|
$(":checkbox[name='checkbox']").each(function(){
|
|
@@ -225,6 +258,29 @@
|
|
|
|
|
|
|
|
|
})
|
|
|
+ //批量
|
|
|
+ $('#hFail').click(function () {
|
|
|
+ layer.confirm('您确定要批量失败', {
|
|
|
+ btn: ['确定','取消'],
|
|
|
+ title:'批量失败'
|
|
|
+ }, function(){
|
|
|
+ if ($('#checkBoxList').attr('checked') == true) {
|
|
|
+ let arr = [];
|
|
|
+ $("input:checkbox:checked").each(function (i) {
|
|
|
+ arr[i] = $(this).val();
|
|
|
+ })
|
|
|
+ let str = arr.join(",");
|
|
|
+ window.location.href =`index.php?act=refill_detail&op=order_dispose&id= ${str ? str : ''}`
|
|
|
+ console.log(str);
|
|
|
+ layer.msg('批量成功', {icon: 1});
|
|
|
+ } else {
|
|
|
+ layer.msg('您还没有进行任何操作,请先选择');
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }, function(){
|
|
|
+ });
|
|
|
+ })
|
|
|
|
|
|
// 表格hover时背景
|
|
|
$('.trFlex').each(function () {
|
|
@@ -268,4 +324,15 @@
|
|
|
document.execCommand("Copy"); // 执行浏览器复制命令
|
|
|
oInput.parentNode.removeChild(oInput)
|
|
|
}
|
|
|
+
|
|
|
+ //批量补充
|
|
|
+ function hSupplement(e) {
|
|
|
+ layer.confirm('您确定要批量补充', {
|
|
|
+ btn: ['确定','取消'],
|
|
|
+ title:'批量补充'
|
|
|
+ }, function(){
|
|
|
+ layer.msg('1', {icon: 1});
|
|
|
+ }, function(){
|
|
|
+ });
|
|
|
+ }
|
|
|
</script>
|