|
@@ -79,7 +79,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="fixed-empty"></div>
|
|
|
- <form method="post" action="index.php" name="formSearch" id="formSearch">
|
|
|
+ <form method="get" action="index.php" name="formSearch" id="formSearch">
|
|
|
<input type="hidden" name="act" value="refill_detail"/>
|
|
|
<input type="hidden" name="op" value="index"/>
|
|
|
<table class="tb-type1 noborder search">
|
|
@@ -90,7 +90,7 @@
|
|
|
<option value=""><?php echo $lang['nc_please_choose']; ?></option>
|
|
|
<?php foreach ($output['merchant_list'] as $merchant) { ?>
|
|
|
<option value="<?php echo $merchant['mchid'] ?>"
|
|
|
- <?php if ($_POST['mchid'] == $merchant['mchid']){ ?>selected<?php } ?>><?php echo $merchant['company_name'] == '' ? $merchant['name'] : $merchant['company_name']; ?>
|
|
|
+ <?php if ($_GET['mchid'] == $merchant['mchid']){ ?>selected<?php } ?>><?php echo $merchant['company_name'] == '' ? $merchant['name'] : $merchant['company_name']; ?>
|
|
|
</option>
|
|
|
<?php } ?>
|
|
|
</select>
|
|
@@ -98,15 +98,15 @@
|
|
|
|
|
|
<th><label for="query_start_time">下单时间</label></th>
|
|
|
<td>
|
|
|
- <input class="txt date" type="text" value="<?php echo $_POST['query_start_time']; ?>"
|
|
|
+ <input class="txt date" type="text" value="<?php echo $_GET['query_start_time']; ?>"
|
|
|
id="startTime" name="query_start_time" autocomplete="off" style="width:120px" />
|
|
|
<label for="query_start_time">~</label>
|
|
|
- <input class="txt date" type="text" value="<?php echo $_POST['query_end_time']; ?>"
|
|
|
+ <input class="txt date" type="text" value="<?php echo $_GET['query_end_time']; ?>"
|
|
|
id="endTime" name="query_end_time" autocomplete="off" style="width:120px" />
|
|
|
</td>
|
|
|
|
|
|
<th><label class="query_ors">商家单号(多行查询)</label></th>
|
|
|
- <td><textarea name="mch_orders" id="mch_orders" cols="30" rows="10"><?php echo $_POST['mch_orders'];?></textarea></td>
|
|
|
+ <td><textarea name="mch_orders" id="mch_orders" cols="30" rows="10"><?php echo $_GET['mch_orders'];?></textarea></td>
|
|
|
|
|
|
<th><label>订单状态</label></th>
|
|
|
<td>
|
|
@@ -114,13 +114,13 @@
|
|
|
<select name="order_state" class="querySelect">
|
|
|
<option value=""><?php echo $lang['nc_please_choose']; ?></option>
|
|
|
<option value="<?php echo ORDER_STATE_SEND;?>"
|
|
|
- <?php if ($_POST['order_state'] == ORDER_STATE_SEND){ ?>selected<?php } ?>>待收货
|
|
|
+ <?php if ($_GET['order_state'] == ORDER_STATE_SEND){ ?>selected<?php } ?>>待收货
|
|
|
</option>
|
|
|
<option value="<?php echo ORDER_STATE_QUEUE;?>"
|
|
|
- <?php if ($_POST['order_state'] == ORDER_STATE_QUEUE){ ?>selected<?php } ?>>队列中
|
|
|
+ <?php if ($_GET['order_state'] == ORDER_STATE_QUEUE){ ?>selected<?php } ?>>队列中
|
|
|
</option>
|
|
|
<option value="<?php echo ORDER_STATE_HANDLED;?>"
|
|
|
- <?php if ($_POST['order_state'] == ORDER_STATE_HANDLED){ ?>selected<?php } ?>>已处理
|
|
|
+ <?php if ($_GET['order_state'] == ORDER_STATE_HANDLED){ ?>selected<?php } ?>>已处理
|
|
|
</option>
|
|
|
</select>
|
|
|
</td>
|
|
@@ -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>
|