1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <div class="layui-fluid">
- <div class="layui-card">
- <div class="layui-card-header layui-elem-quote">当前位置:
- <span class="line-text">队列批量处理待发货订单</span>
- </div>
-
- <div class="layui-card-body" style="padding:15px;">
-
- <div class="layui-form-item">
- <label class="layui-form-label">批量处理待发货订单</label>
- <div class="col-sm-10">
- <div id='count' class="alert alert-info" style="line-height:20px;">
- <div id="update_content" style="height:400px;overflow-y:auto;">
- <p>批量处理马上开始....批量处理结束前请勿关闭该页面</p>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- var a;
-
- $(function(){
- setTimeout( function() {
- load_next_updata();
- },300);
- })
- function load_next_updata()
- {
- $.post('<?php echo U("delivery/do_sendallorder_quene", array('cache_key' => $cache_key) ); ?>', function (ret) {
- if( ret.code == 0)
- {
- //msg update_content
- $('#update_content').prepend("<p>"+ret.msg+"</p>");
- $('#update_content').scrollTop(0);
- setTimeout( function() {
- load_next_updata();
- },300);
- }else if(ret.code ==2){
-
- layer.msg('批量处理完成!',{time: 1000,
- end:function(){
- location.href = "<?php echo U("order/ordersendall" ); ?>";
- }
- });
-
-
- }else{
- alert(ret.msg);
-
- }
- }, 'json');
- }
-
- </script>
|