kdn_print_log_list.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>快递鸟打印面单日志</title>
  6. </head>
  7. <body>
  8. <style>
  9. .layui-layer-content{line-height: 25px;}
  10. .s_red{color:red;}
  11. </style>
  12. <form action="{:U('order/kdn_print_log_list')}" method="post" id="export_form" class="form-horizontal form-search " role="form">
  13. <div class="layui-fluid">
  14. <div class="layui-row layui-col-space15">
  15. <div class="layui-col-md12">
  16. <div class="layui-card">
  17. <?php foreach( $log_list as $k=>$v ){ ?>
  18. <div class="layui-layer-content" style="color:red;">
  19. <?php if($v['status'] == 0){echo '面单打印中......';}else{echo '面单打印成功!';}?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(<?php echo date('Y-m-d H:i:s',$v['addtime']);?>)
  20. </div>
  21. <div class="layui-layer-content" style="margin-bottom: 10px;">
  22. <?php
  23. if($v['status'] == 0){
  24. echo "共计<span class='s_red'>".$v['print_count']."</span>个快递订单,此次打印面单数量为<span class='s_red'>".$v['print_count']."</span>个打印成功即为发货成功,订单状态自动修改为已发货";
  25. }else{
  26. if($v['fail_count'] == 0){
  27. echo "共计<span class='s_red'>".$v['print_count']."</span>个快递订单,<span class='s_red'>".$v['print_count']."</span>个快递订单面单打印成功自动发货成功,<span class='s_red'>".$v['fail_count']."</span>个面单打印失败";
  28. }else{
  29. echo "共计<span class='s_red'>".$v['print_count']."</span>个快递订单,<span class='s_red'>".$v['succ_count']."</span>个快递订单面单打印成功自动发货成功,<span class='s_red'>"
  30. .$v['fail_count']."</span>个面单打印失败,自动发货失败,请检查物流接口或订单详情是否出错,稍后重新打印即可";
  31. }
  32. }?>
  33. </div>
  34. <?php }?>
  35. <div class='layui-row'>
  36. <div class="layui-col-sm-12">
  37. <div class="modal-footer" style="text-align: right">
  38. <button type="button" class="btn btn-primary" id="confirm_kdn_btn" name="cancelsend" value="yes">确定</button>
  39. <button type="button" class="btn btn-default" id="cancel_btn">取消</button>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. </form>
  48. <script type="text/javascript" src="/static/js/jquery-migrate-1.1.1.js"></script>
  49. <script src="/static/js/jquery-ui.min.js"></script>
  50. <script>
  51. $(function(){
  52. $('#confirm_kdn_btn').click(function(){
  53. layer.closeAll();
  54. location.reload();
  55. })
  56. $('#cancel_btn').click(function(){
  57. layer.closeAll();
  58. })
  59. })
  60. </script>
  61. </body>
  62. </html>