|
@@ -102,6 +102,8 @@
|
|
|
<input type="hidden" name="act" value="refill_order"/>
|
|
|
<input type="hidden" name="op" value="index"/>
|
|
|
<input type="hidden" name="export" value=""/>
|
|
|
+ <input type="hidden" name="mch_notify" value=""/>
|
|
|
+ <input type="hidden" name="order_query" value=""/>
|
|
|
<input type="hidden" name="export_stats" value=""/>
|
|
|
<input type="hidden" name="fShowStat" value=""/>
|
|
|
<input type="hidden" name="no_mchid" value=""/>
|
|
@@ -284,10 +286,10 @@
|
|
|
</td>
|
|
|
<td></td>
|
|
|
<td>
|
|
|
- <a href="index.php?act=merchant&op=OrderQuery" class="btns" >
|
|
|
+ <a href="javascript:void(0);" id="order_query" class="btns" >
|
|
|
<span><i class="icon-edit"></i>更新待收货订单状态</span>
|
|
|
</a>
|
|
|
- <a href="index.php?act=merchant&op=mch_notify" class="btns" >
|
|
|
+ <a href="javascript:void(0);" id="mch_notify" class="btns" >
|
|
|
<span><i class="icon-edit"></i>向客户回调</span>
|
|
|
</a>
|
|
|
</td>
|
|
@@ -457,14 +459,20 @@
|
|
|
<td class="align-center"><?php echo $order['org_quality_text']; ?></td>
|
|
|
<!-- <td class="align-center">--><?php //echo $order['mch_amount']; ?><!--</td>-->
|
|
|
<td class="align-center">
|
|
|
+
|
|
|
+ <?php if( ($order['order_state'] == ORDER_STATE_CANCEL || $order['order_state'] == ORDER_STATE_SUCCESS) && $order['is_retrying'] == 0){?>
|
|
|
<a href="index.php?act=merchant&op=notify_merchant&order_id=<?php echo $order['order_id']; ?>">
|
|
|
回调</a>
|
|
|
- |
|
|
|
- <a href="index.php?act=merchant&op=notify_manual_merchant&type=cancel&order_id=<?php echo $order['order_id']; ?>">
|
|
|
- 手动失败</a>
|
|
|
- |
|
|
|
- <a href="index.php?act=merchant&op=notify_manual_merchant&type=success&order_id=<?php echo $order['order_id']; ?>">
|
|
|
- 手动成功</a>
|
|
|
+ <?php }?>
|
|
|
+
|
|
|
+ <?php if($order['order_state'] == ORDER_STATE_SEND){?>
|
|
|
+ <a href="index.php?act=merchant&op=notify_manual_merchant&type=cancel&order_id=<?php echo $order['order_id']; ?>">
|
|
|
+ 手动失败</a>
|
|
|
+ |
|
|
|
+ <a href="index.php?act=merchant&op=notify_manual_merchant&type=success&order_id=<?php echo $order['order_id']; ?>">
|
|
|
+ 手动成功</a>
|
|
|
+ <?php }?>
|
|
|
+
|
|
|
<?php if($order['card_type'] == mtopcard\ThirdRefillCard){?>
|
|
|
|
|
|
|
<a href="#" class="examine" data-order="<?php echo $order['order_id']; ?>">
|
|
@@ -701,6 +709,46 @@
|
|
|
$('#formSearch').submit();
|
|
|
$('input[name="fShowStat"]').val('');
|
|
|
})
|
|
|
+ // 向客户回调
|
|
|
+ $('#mch_notify').click(function () {
|
|
|
+
|
|
|
+ $('input[name="mch_notify"]').val('1');
|
|
|
+ $('input[name="op"]').val('index');
|
|
|
+ // 不包含客户
|
|
|
+ let selectArr = selest_nc.getValue();
|
|
|
+ let selectStr = ''
|
|
|
+ for (let i = 0; i < selectArr.length; i++) {
|
|
|
+ selectStr += selectArr[i].value+','
|
|
|
+ }
|
|
|
+ selectStr = selectStr.substr(0, selectStr.length-1)
|
|
|
+ $('input[name="no_mchid"]').val(selectStr);
|
|
|
+ $('#formSearch').submit();
|
|
|
+ $('input[name="mch_notify"]').val('');
|
|
|
+ var ii = layer.load();
|
|
|
+ setTimeout(function(){
|
|
|
+ layer.close(ii);
|
|
|
+ }, 800);
|
|
|
+ })
|
|
|
+ // 更新待收货状态
|
|
|
+ $('#order_query').click(function () {
|
|
|
+
|
|
|
+ $('input[name="order_query"]').val('1');
|
|
|
+ $('input[name="op"]').val('index');
|
|
|
+ // 不包含客户
|
|
|
+ let selectArr = selest_nc.getValue();
|
|
|
+ let selectStr = ''
|
|
|
+ for (let i = 0; i < selectArr.length; i++) {
|
|
|
+ selectStr += selectArr[i].value+','
|
|
|
+ }
|
|
|
+ selectStr = selectStr.substr(0, selectStr.length-1)
|
|
|
+ $('input[name="no_mchid"]').val(selectStr);
|
|
|
+ $('#formSearch').submit();
|
|
|
+ $('input[name="order_query"]').val('');
|
|
|
+ var ii = layer.load();
|
|
|
+ setTimeout(function(){
|
|
|
+ layer.close(ii);
|
|
|
+ }, 800);
|
|
|
+ })
|
|
|
// 日期选择器
|
|
|
laydate.render({
|
|
|
elem: '#startTime',
|