|
@@ -0,0 +1,163 @@
|
|
|
+<!DOCTYPE HTML>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <meta name="renderer" content="webkit|ie-comp|ie-stand">
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
+ <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
|
|
|
+ <meta http-equiv="Cache-Control" content="no-siteapp" />
|
|
|
+ <link rel="Bookmark" href="/favicon.ico" >
|
|
|
+ <link rel="Shortcut Icon" href="/favicon.ico" />
|
|
|
+<#include "/base/list_base.ftl">
|
|
|
+ <title>订单同步</title>
|
|
|
+ <style>
|
|
|
+ html{-webkit-text-size-adjust:none;}
|
|
|
+ *{padding: 0;margin: 0;}
|
|
|
+ .my-input{border: 1px solid rgba(0,0,0,.1);padding: 1px 5px;height: 32px;margin-right: 10px;}
|
|
|
+ /*.my-input::-webkit-input-placeholder,.my-select{color: #dcdcdc;}*/
|
|
|
+ .my-select{border: 1px solid rgba(0,0,0,.1);padding:6px 50px 6px 15px;height: 34px; -webkit-appearance:none;appearance:none;background: url(${path}/common/images/pts/select-11.png) right center no-repeat;background-size:auto 100%;}
|
|
|
+ .my-btn-search{border: 1px solid #50a2ea;padding: 1px 25px;height: 32px;background-color: #fff;color: #50a2ea;}
|
|
|
+ .barcodeImg{margin:10px 0px}
|
|
|
+ .table-bg thead th{background-color: #e2f6ff;}
|
|
|
+ input[type=radio]{-webkit-appearance:none;appearance:none;background: url(${path}/common/images/pts/radio-1.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
|
|
|
+ input[type=radio]:checked{-webkit-appearance:none;appearance:none;background: url(${path}/common/images/pts/radio-2.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
|
|
|
+ </style>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+<nav class="breadcrumb"><i class="Hui-iconfont"></i> 首页
|
|
|
+ <span class="c-gray en">/</span> 订单同步管理
|
|
|
+ <span class="c-gray en">/</span> 日志列表
|
|
|
+ <a class="btn radius r" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont"></i></a>
|
|
|
+</nav>
|
|
|
+<div class="page-container">
|
|
|
+ <div class="text-c">
|
|
|
+ <form action="${path}/admin/order_batch/batch_list" method="post">
|
|
|
+ <button type="button" class="my-btn-search" onclick="sync_order_fun()" >拉取全部订单</button>
|
|
|
+
|
|
|
+
|
|
|
+ <input type="text" class="my-input trim_input" id="salesExOrderId" style="margin-top: -3px;width:118px;margin-left: 50px;height: 32px;padding: 0px 0px 0px 2px;" value="" placeholder="商城订单编号" />
|
|
|
+
|
|
|
+ <button type="button" class="my-btn-search" onclick="sync_order_send()" >发货</button>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="mt-20">
|
|
|
+ <table class="table table-border table-bordered table-bg table-hover table-sort">
|
|
|
+ <thead>
|
|
|
+ <tr class="text-c">
|
|
|
+ <th width="40">同步类型</th>
|
|
|
+ <th width="30">总数量</th>
|
|
|
+ <th width="30">失败数量</th>
|
|
|
+ <th width="100">备注</th>
|
|
|
+ <th width="200">错误信息</th>
|
|
|
+ <th width="50">同步时间</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <#if page.dataList?? && (page.dataList?size > 0) >
|
|
|
+ <#list page.dataList as orderSyncLog>
|
|
|
+ <tr class="text-c">
|
|
|
+ <#--<td>${orderSyncLog.syncPlatName!''}</td>-->
|
|
|
+ <td>
|
|
|
+ <#if orderSyncLog.syncLogMode == 1>
|
|
|
+ 定时同步
|
|
|
+ <#elseif orderSyncLog.syncLogMode == 2>
|
|
|
+ 手动同步
|
|
|
+ <#elseif orderSyncLog.syncLogMode == 3>
|
|
|
+ 发货
|
|
|
+ </#if>
|
|
|
+ </td>
|
|
|
+ <td>${orderSyncLog.syncLogRecentNum!''}</td>
|
|
|
+ <td>${orderSyncLog.syncLogErrorNum!''}</td>
|
|
|
+ <td>${orderSyncLog.syncLogMsg!''}</td>
|
|
|
+ <td>${orderSyncLog.syncLogErrorMsg!''}</td>
|
|
|
+ <td>${(orderSyncLog.syncLogCreateDate?string("yyyy-MM-dd HH:mm:ss"))!''}</td>
|
|
|
+ </tr>
|
|
|
+ </#list>
|
|
|
+ <#else>
|
|
|
+ <tr><td colspan="9" class="td-manage text-c" >暂时没有日志,请添加!</td></tr>
|
|
|
+ </#if>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+
|
|
|
+<tfoot>
|
|
|
+<#include "/base/page_util.ftl">
|
|
|
+</tfoot>
|
|
|
+<script>
|
|
|
+ $(function () {
|
|
|
+ });
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 拉取订单
|
|
|
+ */
|
|
|
+ function sync_order_fun(){
|
|
|
+ var loadIndex = layer.load(1, {
|
|
|
+ shade: [0.5,'#fff'] //0.1透明度的白色背景
|
|
|
+ });
|
|
|
+ $.ajax('${path}/admin/sync_order/pull?dates=' + new Date().getTime(), {
|
|
|
+ data: {},
|
|
|
+ dataType: 'json',
|
|
|
+ type: 'post',
|
|
|
+ timeout: 15000,
|
|
|
+ success: function(dt) {
|
|
|
+ layer.msg("拉取成功", {icon: 1, time: 3000});
|
|
|
+ if(loadIndex != 0 ){
|
|
|
+ layer.close(loadIndex);
|
|
|
+ }
|
|
|
+ location.reload();
|
|
|
+ },
|
|
|
+ error: function(xhr, type, errorThrown) {
|
|
|
+ layer.msg("拉取失败,请重试!", {icon: 5, time: 3000});
|
|
|
+ if(loadIndex != 0 ){
|
|
|
+ layer.close(loadIndex);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 订单发货
|
|
|
+ */
|
|
|
+ function sync_order_send(){
|
|
|
+ var salesExOrderId = $("#salesExOrderId").val();
|
|
|
+ if(!isEmpty(salesExOrderId)){
|
|
|
+ layer.msg("请输入商城订单编号", {icon: 2, time: 3000});
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ var loadIndex = layer.load(1, {
|
|
|
+ shade: [0.5,'#fff'] //0.1透明度的白色背景
|
|
|
+ });
|
|
|
+ $.ajax('${path}/admin/sync_order/send?dates=' + new Date().getTime(), {
|
|
|
+ data: {
|
|
|
+ salesExOrderId:salesExOrderId
|
|
|
+ },
|
|
|
+ dataType: 'json',
|
|
|
+ type: 'post',
|
|
|
+ timeout: 15000,
|
|
|
+ success: function(dt) {
|
|
|
+ if(loadIndex != 0 ){
|
|
|
+ layer.close(loadIndex);
|
|
|
+ }
|
|
|
+ var index = layer.alert(dt.resultMsg, function (index) {
|
|
|
+ if (dt.returnCode == 200) {
|
|
|
+ layer.close(index);
|
|
|
+ location.reload();
|
|
|
+ }else {
|
|
|
+ layer.close(index);
|
|
|
+ location.reload();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ error: function(xhr, type, errorThrown) {
|
|
|
+ layer.msg("发货失败,请重试!", {icon: 5, time: 3000});
|
|
|
+ if(loadIndex != 0 ){
|
|
|
+ layer.close(loadIndex);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+</script>
|
|
|
+</body>
|
|
|
+</html>
|