|
@@ -146,6 +146,9 @@
|
|
|
<a href="#" class="btns" id="hSupplement">
|
|
|
<span><i class="icon-edit"></i>批量补充</span>
|
|
|
</a>
|
|
|
+ <a href="#" class="btns" id="hdelqueue">
|
|
|
+ <span><i class="icon-edit"></i>清除queue</span>
|
|
|
+ </a>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
@@ -266,77 +269,85 @@
|
|
|
var result = test_mch.replace(/[\ \r\n\,]+/g, ",");
|
|
|
$(this).val(result)
|
|
|
})
|
|
|
-
|
|
|
- //批量
|
|
|
- $('#hFail').click(function () {
|
|
|
- layer.confirm('您确定要批量失败', {
|
|
|
- btn: ['确定','取消'],
|
|
|
- title:'批量失败'
|
|
|
- }, function(){
|
|
|
-
|
|
|
-
|
|
|
- let arr = [];
|
|
|
- $("input:checkbox:checked").each(function (i) {
|
|
|
- arr[i] = $(this).val();
|
|
|
- })
|
|
|
- let str = arr.join(",");
|
|
|
- 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`
|
|
|
-
|
|
|
- }
|
|
|
- if (str != '') {
|
|
|
- } else {
|
|
|
- layer.msg('请还没有任何操作,请先选择');
|
|
|
- }
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- }, function(){
|
|
|
+ //批量
|
|
|
+ $('#hFail').click(function () {
|
|
|
+ layer.confirm('您确定要批量失败', {
|
|
|
+ btn: ['确定', '取消'],
|
|
|
+ title: '批量失败'
|
|
|
+ }, function () {
|
|
|
+ let arr = [];
|
|
|
+ $("input:checkbox:checked").each(function (i) {
|
|
|
+ arr[i] = $(this).val();
|
|
|
+ })
|
|
|
+ let str = arr.join(",");
|
|
|
+ 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 if(!isNaN(number) && str !== '') {
|
|
|
+ window.location.href = `index.php?act=refill_detail&op=order_dispose&id= ${str ? str : ''}&type=cancel`
|
|
|
+ } else {
|
|
|
+ layer.msg('请还没有任何操作,请先选择');
|
|
|
+ }
|
|
|
+ }, function () {
|
|
|
});
|
|
|
- })
|
|
|
-
|
|
|
- //批量
|
|
|
- $('#hSupplement').click(function () {
|
|
|
- layer.confirm('您确定要批量补充', {
|
|
|
- btn: ['确定','取消'],
|
|
|
- title:'批量失败'
|
|
|
- }, function(){
|
|
|
-
|
|
|
-
|
|
|
- let arr = [];
|
|
|
- $("input:checkbox:checked").each(function (i) {
|
|
|
- arr[i] = $(this).val();
|
|
|
- })
|
|
|
- let str = arr.join(",");
|
|
|
- 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`
|
|
|
-
|
|
|
- }
|
|
|
- if (str != '') {
|
|
|
- } else {
|
|
|
- layer.msg('请还没有任何操作,请先选择');
|
|
|
- }
|
|
|
+ })
|
|
|
|
|
|
-
|
|
|
+ //批量
|
|
|
+ $('#hSupplement').click(function () {
|
|
|
+ layer.confirm('您确定要批量补充', {
|
|
|
+ btn: ['确定', '取消'],
|
|
|
+ title: '批量失败'
|
|
|
+ }, function () {
|
|
|
+ let arr = [];
|
|
|
+ $("input:checkbox:checked").each(function (i) {
|
|
|
+ arr[i] = $(this).val();
|
|
|
+ })
|
|
|
+ let str = arr.join(",");
|
|
|
+ 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 if(!isNaN(number) && str !== '') {
|
|
|
+ window.location.href = `index.php?act=refill_detail&op=order_dispose&id= ${str ? str : ''}&type=anew`
|
|
|
+ } else {
|
|
|
+ layer.msg('请还没有任何操作,请先选择');
|
|
|
+ }
|
|
|
+ }, function () {
|
|
|
+ });
|
|
|
+ })
|
|
|
|
|
|
- }, function(){
|
|
|
+ //批量
|
|
|
+ $('#hdelqueue').click(function () {
|
|
|
+ layer.confirm('您确定要清除queue', {
|
|
|
+ btn: ['确定', '取消'],
|
|
|
+ title: '批量失败'
|
|
|
+ }, function () {
|
|
|
+ let arr = [];
|
|
|
+ $("input:checkbox:checked").each(function (i) {
|
|
|
+ arr[i] = $(this).val();
|
|
|
+ })
|
|
|
+ let str = arr.join(",");
|
|
|
+ let strr = str.substring(0, 1);
|
|
|
+ let number = Number(strr);
|
|
|
+ if (isNaN(number) && str !== '') {
|
|
|
+ let strrr = str.substring(1, str.length);
|
|
|
+ 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}`
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ layer.msg('请还没有任何操作,请先选择');
|
|
|
+ }
|
|
|
+ }, function () {
|
|
|
});
|
|
|
- })
|
|
|
-
|
|
|
+ })
|
|
|
|
|
|
// 表格hover时背景
|
|
|
$('.trFlex').each(function () {
|
|
@@ -381,14 +392,4 @@
|
|
|
oInput.parentNode.removeChild(oInput)
|
|
|
}
|
|
|
|
|
|
- //批量补充
|
|
|
- // function hSupplement(e) {
|
|
|
- // layer.confirm('您确定要批量补充', {
|
|
|
- // btn: ['确定','取消'],
|
|
|
- // title:'批量补充'
|
|
|
- // }, function(){
|
|
|
- // layer.msg('1', {icon: 1});
|
|
|
- // }, function(){
|
|
|
- // });
|
|
|
- // }
|
|
|
</script>
|