|
@@ -150,7 +150,10 @@
|
|
|
<table class="table tb-type2 nobdb">
|
|
|
<thead>
|
|
|
<tr class="thead">
|
|
|
- <th class="align-center" id="selectAll">全选</th>
|
|
|
+ <th class="align-center" id="selectAll">
|
|
|
+ <input type="checkbox" name="chbox" value="">
|
|
|
+ </th>
|
|
|
+ <th class="align-center">编号</th>
|
|
|
<th class="align-center">机构编号</th>
|
|
|
<th class="align-center">机构名称</th>
|
|
|
<th class="align-center">商家单号</th>
|
|
@@ -169,6 +172,7 @@
|
|
|
<td class="align-center">
|
|
|
<input type="checkbox" id="checkBoxList" name="checkbox" value="<?php echo $order['detail_id'];?>">
|
|
|
</td>
|
|
|
+ <td class="align-center"><?php echo $key+1;?></td>
|
|
|
<td class="align-center"><?php echo $order['mchid']; ?></td>
|
|
|
<td class="align-center"><?php echo $order['company_name'];?></td>
|
|
|
<td class="align-center"><?php echo $order['mch_order']; ?></td>
|
|
@@ -190,13 +194,13 @@
|
|
|
<?php } ?>
|
|
|
<?php } else { ?>
|
|
|
<tr class="no_data">
|
|
|
- <td colspan="8"><?php echo $lang['nc_no_record']; ?></td>
|
|
|
+ <td colspan="10"><?php echo $lang['nc_no_record']; ?></td>
|
|
|
</tr>
|
|
|
<?php } ?>
|
|
|
</tbody>
|
|
|
<tfoot>
|
|
|
<tr class="tfoot">
|
|
|
- <td colspan="8" id="dataFuncs">
|
|
|
+ <td colspan="10" id="dataFuncs">
|
|
|
<div class="pagination"> <?php echo $output['show_page']; ?> </div>
|
|
|
</td>
|
|
|
</tr>
|
|
@@ -236,16 +240,17 @@
|
|
|
//全选
|
|
|
//全选
|
|
|
$('#selectAll' ).click ( function () {
|
|
|
- if ($(this).text() == '全选') {
|
|
|
+ if ($("input[name='chbox']").is(':checked')) {
|
|
|
$("input[name='checkbox']").each(function() {
|
|
|
this.checked = true;
|
|
|
})
|
|
|
- $(this).text("取消全选")
|
|
|
+
|
|
|
} else {
|
|
|
+
|
|
|
$("input[name='checkbox']").each(function() {
|
|
|
this.checked = false;
|
|
|
})
|
|
|
- $(this).text("全选")
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|
|
@@ -272,11 +277,18 @@
|
|
|
arr[i] = $(this).val();
|
|
|
})
|
|
|
let str = arr.join(",");
|
|
|
- if (str != '') {
|
|
|
+ let strr = str.substring(0, 1);
|
|
|
+ let number = Number(strr);
|
|
|
+ if (isNaN(number)) {
|
|
|
+ let strrr = str.substring(1, str.length);
|
|
|
+ window.location.href =`index.php?act=refill_detail&op=order_dispose&id= ${strrr ? strrr : ''}&type=cancel`
|
|
|
+
|
|
|
+
|
|
|
+ } else {
|
|
|
window.location.href =`index.php?act=refill_detail&op=order_dispose&id= ${str ? str : ''}&type=cancel`
|
|
|
- console.log(str);
|
|
|
- layer.msg('批量成功', {icon: 1});
|
|
|
|
|
|
+ }
|
|
|
+ if (str != '') {
|
|
|
} else {
|
|
|
layer.msg('请还没有任何操作,请先选择');
|
|
|
}
|
|
@@ -300,11 +312,18 @@
|
|
|
arr[i] = $(this).val();
|
|
|
})
|
|
|
let str = arr.join(",");
|
|
|
- if (str != '') {
|
|
|
+ let strr = str.substring(0, 1);
|
|
|
+ let number = Number(strr);
|
|
|
+ if (isNaN(number)) {
|
|
|
+ let strrr = str.substring(1, str.length);
|
|
|
+ window.location.href =`index.php?act=refill_detail&op=order_dispose&id= ${strrr ? strrr : ''}&type=anew`
|
|
|
+
|
|
|
+
|
|
|
+ } else {
|
|
|
window.location.href =`index.php?act=refill_detail&op=order_dispose&id= ${str ? str : ''}&type=anew`
|
|
|
- console.log(str);
|
|
|
- layer.msg('批量成功', {icon: 1});
|
|
|
|
|
|
+ }
|
|
|
+ if (str != '') {
|
|
|
} else {
|
|
|
layer.msg('请还没有任何操作,请先选择');
|
|
|
}
|