|
@@ -147,7 +147,7 @@
|
|
|
<span><i class="icon-edit"></i>批量补充</span>
|
|
|
</a>
|
|
|
<a href="#" class="btns" id="hdelqueue">
|
|
|
- <span><i class="icon-edit"></i>清楚queue</span>
|
|
|
+ <span><i class="icon-edit"></i>清除queue</span>
|
|
|
</a>
|
|
|
</td>
|
|
|
</tr>
|
|
@@ -286,11 +286,8 @@
|
|
|
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 {
|
|
|
+ } else if(!isNaN(number) && str !== '') {
|
|
|
window.location.href = `index.php?act=refill_detail&op=order_dispose&id= ${str ? str : ''}&type=cancel`
|
|
|
- }
|
|
|
- if (str !== '') {
|
|
|
-
|
|
|
} else {
|
|
|
layer.msg('请还没有任何操作,请先选择');
|
|
|
}
|
|
@@ -314,10 +311,8 @@
|
|
|
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 {
|
|
|
+ } else if(!isNaN(number) && str !== '') {
|
|
|
window.location.href = `index.php?act=refill_detail&op=order_dispose&id= ${str ? str : ''}&type=anew`
|
|
|
- }
|
|
|
- if (str !== '') {
|
|
|
} else {
|
|
|
layer.msg('请还没有任何操作,请先选择');
|
|
|
}
|
|
@@ -338,14 +333,16 @@
|
|
|
let str = arr.join(",");
|
|
|
let strr = str.substring(0, 1);
|
|
|
let number = Number(strr);
|
|
|
- if (isNaN(number)) {
|
|
|
+ if (isNaN(number) && str !== '') {
|
|
|
let strrr = str.substring(1, str.length);
|
|
|
- window.location.href = `index.php?act=refill_detail&op=DelQueueOrder&id= ${strrr ? strrr : ''}`
|
|
|
- } else {
|
|
|
- window.location.href = `index.php?act=refill_detail&op=DelQueueOrder&id= ${str ? str : ''}`
|
|
|
+ console.log(strrr);
|
|
|
+ window.location.href = `index.php?act=refill_detail&op=DelQueueOrder&id= ${strrr}`
|
|
|
+ }
|
|
|
+ else if(!isNaN(number) && str !== '') {
|
|
|
+ console.log(str);
|
|
|
+ window.location.href = `index.php?act=refill_detail&op=DelQueueOrder&id= ${str}`
|
|
|
}
|
|
|
- if (str !== '') {
|
|
|
- } else {
|
|
|
+ else {
|
|
|
layer.msg('请还没有任何操作,请先选择');
|
|
|
}
|
|
|
}, function () {
|
|
@@ -395,14 +392,4 @@
|
|
|
oInput.parentNode.removeChild(oInput)
|
|
|
}
|
|
|
|
|
|
- //批量补充
|
|
|
- // function hSupplement(e) {
|
|
|
- // layer.confirm('您确定要批量补充', {
|
|
|
- // btn: ['确定','取消'],
|
|
|
- // title:'批量补充'
|
|
|
- // }, function(){
|
|
|
- // layer.msg('1', {icon: 1});
|
|
|
- // }, function(){
|
|
|
- // });
|
|
|
- // }
|
|
|
</script>
|