|
@@ -23,62 +23,73 @@
|
|
|
</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" style="line-height:1.6em;margin-top:3px;background: #32a3d8;color: #fff;border:1px solid #32a3d8;" 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/customer/_customer_list" method="post">
|
|
|
<div class="row cl">
|
|
|
<div class="formControls col-4 col-sm-4" style="width: 150px;"> <span class="select-box">
|
|
|
- <select name="" class="select">
|
|
|
- <option value="0">薇薇</option>
|
|
|
- <option value="1">薇薇</option>
|
|
|
- <option value="11">薇薇</option>
|
|
|
- <option value="12">薇薇</option>
|
|
|
- <option value="13">薇薇</option>
|
|
|
+ <select name="" class="select" id="companyId">
|
|
|
+ <#if companyInfoList?? && (companyInfoList?size > 0) >
|
|
|
+ <#list companyInfoList as companyInfo>
|
|
|
+ <option value ="${companyInfo.companyId!""}">${companyInfo.companyName!""}</option>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
</select>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="formControls col-4 col-sm-4" style="width: 150px;"> <span class="select-box">
|
|
|
- <select name="" class="select">
|
|
|
- <option value="0">薇薇</option>
|
|
|
- <option value="1">薇薇</option>
|
|
|
- <option value="11">薇薇</option>
|
|
|
- <option value="12">薇薇</option>
|
|
|
- <option value="13">薇薇</option>
|
|
|
+ <select name="" class="select" id="storeId">
|
|
|
</select>
|
|
|
</span>
|
|
|
</div>
|
|
|
+ <div class="formControls col-4 col-sm-4" style="width: 150px;"> <span class="select-box">
|
|
|
+ <select name="" class="select" id="storeId">
|
|
|
+ <option value="1">取消订单</option>
|
|
|
+ <option value="2">待支付</option>
|
|
|
+ <#--<option value="3"></option>
|
|
|
+ <option value="4"></option>
|
|
|
+ <option value="5"></option>
|
|
|
+ <option value="6"></option>
|
|
|
+ <option value="7"></option>
|
|
|
+ <option value="8"></option>
|
|
|
+ <option value="9"></option>
|
|
|
+ <option value="10"></option>
|
|
|
+ <option value="11"></option>
|
|
|
+ <option value="12"></option>-->
|
|
|
+ </select>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div class="formControls col-2 col-sm-2">
|
|
|
+ <input type="text" class="input-text" value="" placeholder="订单编号" id="salesId" name="">
|
|
|
+ </div>
|
|
|
+ <div class="formControls col-2 col-sm-2">
|
|
|
+ <input type="text" class="input-text" value="" placeholder="收货人姓名" id="salesAddressName" name="">
|
|
|
+ </div>
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
- <input type="text" class="input-text" value="" placeholder="请输入手机号" id="" name="">
|
|
|
+ <input type="text" class="input-text" value="" placeholder="收货人电话" id="salesAddressTel" name="">
|
|
|
</div>
|
|
|
- <button type="submit" class="btn" style="background: #32a3d8;color: #fff;-webkit-transform:translateY(-5%);" id="" name=""><i class="Hui-iconfont"></i> 搜索</button>
|
|
|
+ <button type="submit" class="btn" style="background: #32a3d8;color: #fff;-webkit-transform:translateY(-5%);" id="searchOrder" name=""><i class="Hui-iconfont"></i> 搜索</button>
|
|
|
</div>
|
|
|
</form>
|
|
|
</div>
|
|
|
|
|
|
- <#--<div class="mt-20">
|
|
|
+ <div class="mt-20">
|
|
|
<table class="table table-border table-bordered table-bg table-hover table-sort">
|
|
|
<thead>
|
|
|
<tr class="text-c">
|
|
|
- <#–<th width="50">Customer编号</th>–>
|
|
|
- <th width="60">所属产品</th>
|
|
|
- <th width="100">customer名称</th>
|
|
|
- <th width="80">硬件版本</th>
|
|
|
- <th width="80">零件总数量</th>
|
|
|
- <th width="80">零件总成本(元)</th>
|
|
|
- <th width="80">零件总重(g)</th>
|
|
|
- <th width="100">备注</th>
|
|
|
- <th width="80">最近修改时间</th>
|
|
|
- <th width="80">添加时间</th>
|
|
|
+ <th width="50">渠道商</th>
|
|
|
+ <th width="60">订单编号</th>
|
|
|
+ <th width="100">收货人姓名</th>
|
|
|
+ <th width="80">收货人电话</th>
|
|
|
+ <th width="80">订单金额</th>
|
|
|
+ <th width="80">购买产品</th>
|
|
|
+ <th width="80">购买日期</th>
|
|
|
+ <th width="100">收货地址</th>
|
|
|
<th width="80">操作</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
- <tbody>
|
|
|
- <#if page.dataList?? && (page.dataList?size > 0) >
|
|
|
+ <tbody id="orderAll">
|
|
|
+ <#--<#if page.dataList?? && (page.dataList?size > 0) >
|
|
|
<#list page.dataList as customer>
|
|
|
<tr class="text-c">
|
|
|
<#–<td>${customer.customerId!''}</td>–>
|
|
@@ -91,32 +102,105 @@
|
|
|
<td>${customer.customerRemarks!''}</td>
|
|
|
<td>${(customer.customerUpdateTime?string("yyyy-MM-dd HH:mm:ss"))!''}</td>
|
|
|
<td>${(customer.customerCreateTime?string("yyyy-MM-dd HH:mm:ss"))!''}</td>
|
|
|
- <td>
|
|
|
- <a style="text-decoration:none" href="javascript:void(0);" title="编辑" onclick="admin_update_customer(${customer.customerId!''})">
|
|
|
- <i class="Hui-iconfont"></i>
|
|
|
- </a>
|
|
|
- <a style="text-decoration:none" href="javascript:void(0);" title="查看customer单详情" onclick="admin_details_customer(${customer.customerId!''})">
|
|
|
- <i class="Hui-iconfont"></i>
|
|
|
- </a>
|
|
|
- </td>
|
|
|
</tr>
|
|
|
</#list>
|
|
|
<#else>
|
|
|
<tr><td colspan="10" class="td-manage text-c" >暂时没有Customer,请添加!</td></tr>
|
|
|
- </#if>
|
|
|
+ </#if>-->
|
|
|
</tbody>
|
|
|
</table>
|
|
|
- </div>-->
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<tfoot>
|
|
|
<#--<#include "/base/page_util.ftl">-->
|
|
|
</tfoot>
|
|
|
<script>
|
|
|
+
|
|
|
+ $(function () {
|
|
|
+ /*选择店铺*/
|
|
|
+ selectStoreInfo();
|
|
|
+
|
|
|
+ /*搜索*/
|
|
|
+ $(document).on('click', '#searchOrder', function() {
|
|
|
+ searchOrder();
|
|
|
+ });
|
|
|
+ })
|
|
|
+
|
|
|
+ /*获取销售公司下的所有店铺*/
|
|
|
+ function selectStoreInfo() {
|
|
|
+ var companyId = $("#companyId").val();
|
|
|
+ var html = "";
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ data: {
|
|
|
+ companyId : companyId
|
|
|
+ },
|
|
|
+ url: "${path}/admin/customer/select_storeInfo",
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ var id;
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ for(var i=0;i<data.returnMsg.storeInfoList.length;i++){
|
|
|
+ var storeInfo = data.returnMsg.storeInfoList[i];
|
|
|
+ html += '<option value="'+ storeInfo.storeId +'">'+ storeInfo.storeName +'</option>';
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ html = '';
|
|
|
+ }
|
|
|
+ $("#storeId").html(html);
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
- * 跳转到添加customer页面
|
|
|
+ * 搜索订单
|
|
|
*/
|
|
|
- function toAddCustomer(){
|
|
|
- window.location.href= "${path}/admin/customer/to_add_customer";
|
|
|
+ function searchOrder(){
|
|
|
+ var salesCompanyId = $("#companyId").val();
|
|
|
+ var salesStoreId = $("#storeId").val();
|
|
|
+ var salesStatus = $("#salesStatus").val();
|
|
|
+ var salesId = $("#salesId").val();
|
|
|
+ var salesAddressName = $("#salesAddressName").val();
|
|
|
+ var salesAddressTel = $("#salesAddressTel").val();
|
|
|
+ var html = "";
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ data: {
|
|
|
+ salesCompanyId : salesCompanyId,
|
|
|
+ salesStoreId : salesStoreId,
|
|
|
+ salesStatus : salesStatus,
|
|
|
+ salesId : salesId,
|
|
|
+ salesAddressName : salesAddressName,
|
|
|
+ salesAddressTel : salesAddressTel
|
|
|
+ },
|
|
|
+ url: "${path}/admin/customer/select_salesOrder",
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ for(var i=0;i<data.returnMsg.salesOrderList.length;i++){
|
|
|
+ var salesOrder = data.returnMsg.salesOrderList[i];
|
|
|
+ html += '<tr class="text-c">' +
|
|
|
+ ' <td></td>' +
|
|
|
+ ' <td></td>' +
|
|
|
+ ' <td></td>' +
|
|
|
+ ' <td></td>' +
|
|
|
+ ' <td></td>' +
|
|
|
+ ' <td></td>' +
|
|
|
+ ' <td></td>' +
|
|
|
+ ' <td></td>' +
|
|
|
+ ' <td></td>' +
|
|
|
+ ' </tr>';
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ html = '';
|
|
|
+ }
|
|
|
+ $("#orderAll").html(html);
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
/**
|