|
@@ -0,0 +1,147 @@
|
|
|
|
+<!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>
|
|
|
|
+ *{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);height: 34px;margin: 0 10px; -webkit-appearance:none;appearance:none;background: url(${path}/common/images/pts/select-1.png) right center no-repeat;background-size:auto 100%;}
|
|
|
|
+ .my-btn-search{border: 1px solid #32a3d8;padding: 1px 25px;height: 32px;background-color: #32a3d8;color: #fff;}
|
|
|
|
+ .table-bg thead th{background-color: #e2f6ff;}
|
|
|
|
+ .update-parts>span{margin-right: 10px;padding: 3px 4px;background-color: #effaff;border: 1px solid #32a3d8;}
|
|
|
|
+ /*input[type=radio]{-webkit-appearance:none;appearance:none;background: url(/rst/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(/rst/common/images/pts/radio-2.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}*/
|
|
|
|
+
|
|
|
|
+ .my-order{left: 0px;cursor:pointer; position: absolute;border-bottom: 1px solid rgb(255, 255, 255);float: left;width: 110px;height: 36px;}
|
|
|
|
+ </style>
|
|
|
|
+</head>
|
|
|
|
+<body>
|
|
|
|
+<!-- 录入订单 -->
|
|
|
|
+<div class="page-container">
|
|
|
|
+ <div class="" id="form-download">
|
|
|
|
+ <form action="${path}/admin/salesOrder/list_order_page" method="post" style="margin-left: 24px;">
|
|
|
|
+ <select class="my-select" name="salesIsDownload" id="salesIsDownload" style="height: 36px;width: 120px;margin: 0px;margin-bottom: 10px;">
|
|
|
|
+ <option value ="">导出状态</option>
|
|
|
|
+ <option value ="2" >已导出</option>
|
|
|
|
+ <option value ="1" >未导出</option>
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <select class="my-select" name="salesShippingStatus" id="salesShippingStatus" style="height: 36px;width: 120px;margin: 0px;margin-bottom: 10px;">
|
|
|
|
+ <option value ="">发货状态</option>
|
|
|
|
+ <option value ="0" >未发货</option>
|
|
|
|
+ <option value ="11" >已通知配货</option>
|
|
|
|
+ <option value ="1" >已发货</option>
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <select class="my-select" name="salesDeliver" id="salesDeliver" style="height: 36px;width: 120px;margin: 0px;margin-bottom: 10px;">
|
|
|
|
+ <option value ="">出库状态</option>
|
|
|
|
+ <option value ="1" >未出库</option>
|
|
|
|
+ <option value ="2" >已出库</option>
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <select class="my-select" name="salesStatus" id="salesStatus" style="height: 36px;width: 120px;margin: 0px;margin-bottom: 10px;">
|
|
|
|
+ <option value ="">确认状态</option>
|
|
|
|
+ <option value ="0" >未确认</option>
|
|
|
|
+ <option value ="1" >确认</option>
|
|
|
|
+ <option value ="2" >挂起</option>
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <select name="salesStoreId" id="salesStoreId" class="my-select" style="height: 36px;width: 120px;margin: 0px;margin-bottom: 10px;"">
|
|
|
|
+ <option value="">店铺</option>
|
|
|
|
+ <#if listStoreInfo?? && (listStoreInfo?size > 0) >
|
|
|
|
+ <#list listStoreInfo as info>
|
|
|
|
+ <option value="${info.storeId!''}" <#if salesOrder.salesStoreId??><#if salesOrder.salesStoreId == info.storeId >selected="selected"</#if></#if>>${info.storeName!''}</option>
|
|
|
|
+ </#list>
|
|
|
|
+ </#if>
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <input type="text" style="width:120px;height:36px;margin-right: 0px;" name="startDate" id="startDate" class="input-text" placeholder="开始时间" onClick="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss',skin:'whyGreen' })" value="${(salesOrder.startDate?string("yyyy-MM-dd HH:mm:ss"))!''}" readonly="readonly"/>
|
|
|
|
+ <input type="text" style="width:120px;height:36px;margin-right: 0px;" name="endDate" id="endDate" class="input-text" placeholder="结束时间" onClick="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss',skin:'whyGreen' })" value="${(salesOrder.endDate?string("yyyy-MM-dd HH:mm:ss"))!''}" readonly="readonly"/>
|
|
|
|
+
|
|
|
|
+ <#--<input type="text" class="my-input trim_input" style="width:120px;margin-right: 0px;" value="${salesOrder.salesOrderId!}" placeholder="百胜订单号" name="salesOrderId" id="salesOrderId">-->
|
|
|
|
+ <#--<input type="text" class="my-input trim_input" style="width:120px;margin-right: 0px;" value="${salesOrder.salesDealCode!}" placeholder="交易号" name="salesDealCode" id="salesDealCode">-->
|
|
|
|
+ <input type="text" class="my-input trim_input" style="width:120px;margin-right: 0px;padding: 0px;" value="${salesOrder.salesBatchId!}" placeholder="订单批次号" name="salesBatchId" id="salesBatchId">
|
|
|
|
+ <#--<input type="text" class="my-input trim_input" style="width:80px;margin-right: 0px;" value="${salesOrder.salesAddressName!}" placeholder="收货人姓名" name="salesAddressName" id="salesAddressName">-->
|
|
|
|
+ <#--<input type="text" class="my-input trim_input" style="width:80px;margin-right: 0px;" value="${salesOrder.salesAddressTel!}" placeholder="收货人电话" name="salesAddressTel" id="salesAddressTel">-->
|
|
|
|
+
|
|
|
|
+ <#--<input type="text" class="my-input trim_input" style="width:80px;margin-right: 0px;" value="${salesOrder.itemProductName!}" placeholder="产品" name="itemProductName" id="itemProductName">-->
|
|
|
|
+ <#--<input type="text" class="my-input trim_input" style="width:80px;margin-right: 0px;" value="${salesOrder.salesAddressInfo!}" placeholder="收货人地址" name="salesAddressInfo" id="salesAddressInfo">-->
|
|
|
|
+
|
|
|
|
+ <button onClick="download();" class="btn radius" style="background: #32a3d8;color: #fff;" type="button" title="下载订单">下载订单</button>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+</div>
|
|
|
|
+
|
|
|
|
+<tfoot>
|
|
|
|
+<#--<#include "/base/page_util.ftl">-->
|
|
|
|
+</tfoot>
|
|
|
|
+<script type="text/javascript">
|
|
|
|
+ function download(){
|
|
|
|
+ var salesIsDownload = $("#salesIsDownload").val(); //是否导出
|
|
|
|
+ var salesStatus = $("#salesStatus").val();; //订单状态
|
|
|
|
+ var salesShippingStatus = $("#salesShippingStatus").val(); //是否已发货
|
|
|
|
+ var salesDeliver = $("#salesDeliver").val(); //是否已发货
|
|
|
|
+ var salesStoreId = $("#salesStoreId").val(); //店铺
|
|
|
|
+ var startDate = $("#startDate").val();
|
|
|
|
+ var endDate = $("#endDate").val();
|
|
|
|
+// var salesOrderId = $("#salesOrderId").val();
|
|
|
|
+// var salesDealCode = $("#salesDealCode").val();
|
|
|
|
+// var salesAddressName = $("#salesAddressName").val();
|
|
|
|
+// var salesAddressTel = $("#salesAddressTel").val();
|
|
|
|
+ var salesBatchId = $("#salesBatchId").val();
|
|
|
|
+
|
|
|
|
+ $.ajax({
|
|
|
|
+ type:'POST',
|
|
|
|
+ url: '${path}/admin/order/val_download_order_excel',
|
|
|
|
+ data:{
|
|
|
|
+ "salesIsDownload" : salesIsDownload,
|
|
|
|
+ "salesStatus" : salesStatus,
|
|
|
|
+ "salesShippingStatus" : salesShippingStatus,
|
|
|
|
+ "salesDeliver" : salesDeliver,
|
|
|
|
+ "salesStoreId" : salesStoreId,
|
|
|
|
+ "startDate" : startDate,
|
|
|
|
+ "endDate" : endDate,
|
|
|
|
+// "salesOrderId" : salesOrderId,
|
|
|
|
+// "salesDealCode" : salesDealCode,
|
|
|
|
+// "salesAddressName" : salesAddressName,
|
|
|
|
+// "salesAddressTel" : salesAddressTel,
|
|
|
|
+ "salesBatchId" : salesBatchId
|
|
|
|
+ },
|
|
|
|
+ dataType: 'json',
|
|
|
|
+ async: false,
|
|
|
|
+ success:function(res) {
|
|
|
|
+ if(res.returnCode != 200){
|
|
|
|
+ layer.msg(res.resultMsg,{icon: 2,time:3000});
|
|
|
|
+ return false;
|
|
|
|
+ }else{
|
|
|
|
+ window.location="${path}/admin/order/download_order_excel?"
|
|
|
|
+ +"salesIsDownload="+salesIsDownload
|
|
|
|
+ +"&salesStatus="+salesStatus
|
|
|
|
+ +"&salesShippingStatus="+salesShippingStatus
|
|
|
|
+ +"&salesDeliver="+salesDeliver
|
|
|
|
+ +"&salesStoreId="+salesStoreId
|
|
|
|
+ +"&startDate="+startDate
|
|
|
|
+ +"&endDate="+endDate
|
|
|
|
+// +"&salesOrderId="+salesOrderId
|
|
|
|
+// +"&salesDealCode="+salesDealCode
|
|
|
|
+// +"&salesAddressName="+salesAddressName
|
|
|
|
+// +"&salesAddressTel="+salesAddressTel
|
|
|
|
+ +"&salesBatchId="+salesBatchId;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ </script>
|
|
|
|
+</body>
|
|
|
|
+</html>
|