|
@@ -136,7 +136,7 @@
|
|
|
<a href="#" class="btns" id="hFail">
|
|
|
<span><i class="icon-edit"></i>批量失败</span>
|
|
|
</a>
|
|
|
- <a href="#" class="btns" onclick="hSupplement(event)">
|
|
|
+ <a href="#" class="btns" id="hSupplement">
|
|
|
<span><i class="icon-edit"></i>批量补充</span>
|
|
|
</a>
|
|
|
</td>
|
|
@@ -176,12 +176,11 @@
|
|
|
<!-- <a href="#">
|
|
|
回调</a>
|
|
|
| -->
|
|
|
- <a href="#">
|
|
|
+ <a href="index.php?act=refill_detail&op=order_dispose&type=cancel&id=<?php echo $order['detail_id']; ?>" id="hdFail">
|
|
|
回调失败</a>
|
|
|
|
|
|
|
- <a href="#">
|
|
|
- 回调补充</a>
|
|
|
-
|
|
|
+ <a href="index.php?act=refill_detail&op=order_dispose&type=anew&id=<?php echo $order['detail_id']; ?>">
|
|
|
+ 重新补充</a>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<?php } ?>
|
|
@@ -228,59 +227,79 @@
|
|
|
elem: '#endTime',
|
|
|
type: 'datetime'
|
|
|
});
|
|
|
- //批量失败
|
|
|
- // function hFail(e) {
|
|
|
- // layer.confirm('您确定要批量失败', {
|
|
|
- // btn: ['确定','取消'],
|
|
|
- // title:'批量失败'
|
|
|
- // }, function(){
|
|
|
- // $('#selectAll' ).click ( function () {
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- // })
|
|
|
- // }, function(){
|
|
|
- // });
|
|
|
- // }
|
|
|
//全选
|
|
|
$('#selectAll' ).click ( function () {
|
|
|
$(":checkbox[name='checkbox']").each(function(){
|
|
|
$(this).attr("checked", !$(this).attr("checked"));
|
|
|
});
|
|
|
- let arr = [];
|
|
|
+ // let arr = [];
|
|
|
+ // $("input:checkbox:checked").each(function (i) {
|
|
|
+ // arr[i] = $(this).val();
|
|
|
+ // })
|
|
|
+ // let str = arr.join(",");
|
|
|
+ // console.log(str);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ })
|
|
|
+ //批量
|
|
|
+ $('#hFail').click(function () {
|
|
|
+ layer.confirm('您确定要批量失败', {
|
|
|
+ btn: ['确定','取消'],
|
|
|
+ title:'批量失败'
|
|
|
+ }, function(){
|
|
|
+
|
|
|
+
|
|
|
+ let arr = [];
|
|
|
$("input:checkbox:checked").each(function (i) {
|
|
|
arr[i] = $(this).val();
|
|
|
})
|
|
|
let str = arr.join(",");
|
|
|
+ if (str != '') {
|
|
|
+ window.location.href =`index.php?act=refill_detail&op=order_dispose&id= ${str ? str : ''}&type=cancel `
|
|
|
console.log(str);
|
|
|
+ layer.msg('批量成功', {icon: 1});
|
|
|
|
|
|
-
|
|
|
+ } else {
|
|
|
+ layer.msg('请还没有任何操作,请先选择');
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
+ }, function(){
|
|
|
+ });
|
|
|
})
|
|
|
- //批量
|
|
|
- $('#hFail').click(function () {
|
|
|
- layer.confirm('您确定要批量失败', {
|
|
|
+
|
|
|
+ //批量
|
|
|
+ $('#hSupplement').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 : ''}`
|
|
|
+ if (str != '') {
|
|
|
+ window.location.href =`index.php?act=refill_detail&op=order_dispose&id= ${str ? str : ''}&type=anew `
|
|
|
console.log(str);
|
|
|
layer.msg('批量成功', {icon: 1});
|
|
|
- } else {
|
|
|
- layer.msg('您还没有进行任何操作,请先选择');
|
|
|
- }
|
|
|
+
|
|
|
+ } else {
|
|
|
+ layer.msg('请还没有任何操作,请先选择');
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
|
|
|
}, function(){
|
|
|
});
|
|
|
})
|
|
|
+
|
|
|
|
|
|
// 表格hover时背景
|
|
|
$('.trFlex').each(function () {
|
|
@@ -326,13 +345,13 @@
|
|
|
}
|
|
|
|
|
|
//批量补充
|
|
|
- function hSupplement(e) {
|
|
|
- layer.confirm('您确定要批量补充', {
|
|
|
- btn: ['确定','取消'],
|
|
|
- title:'批量补充'
|
|
|
- }, function(){
|
|
|
- layer.msg('1', {icon: 1});
|
|
|
- }, function(){
|
|
|
- });
|
|
|
- }
|
|
|
+ // function hSupplement(e) {
|
|
|
+ // layer.confirm('您确定要批量补充', {
|
|
|
+ // btn: ['确定','取消'],
|
|
|
+ // title:'批量补充'
|
|
|
+ // }, function(){
|
|
|
+ // layer.msg('1', {icon: 1});
|
|
|
+ // }, function(){
|
|
|
+ // });
|
|
|
+ // }
|
|
|
</script>
|