123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- <!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">
- <link href="${path}/common/lib/lightbox2/2.8.1/css/lightbox.css" rel="stylesheet" type="text/css" >
- <title>售后机器管理</title>
- </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 btn-success radius" id="btn-refresh" style="float: right;line-height:1.6em;margin-top:3px" 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/afterSales/listAfterSales" method="POST" id="search-form">
- <select class="select" name="detectState" id="detectState" style="height: 31px;width:8%">
- <option value="">检测进度状态</option>
- <option <#if (req.detectState)??><#if req.detectState == 0>selected="selected"</#if></#if> value= "0">${(util.detectState(0))}</option>
- <option <#if (req.detectState)??><#if req.detectState == 1>selected="selected"</#if></#if> value= "1">${(util.detectState(1))}</option>
- <option <#if (req.detectState)??><#if req.detectState == 30>selected="selected"</#if></#if> value="30">${(util.detectState(30))}</option>
- <option <#if (req.detectState)??><#if req.detectState == 31>selected="selected"</#if></#if> value="31">${(util.detectState(31))}</option>
- <option <#if (req.detectState)??><#if req.detectState == 32>selected="selected"</#if></#if> value="32">${(util.detectState(32))}</option>
- <option <#if (req.detectState)??><#if req.detectState == 33>selected="selected"</#if></#if> value="33">${(util.detectState(33))}</option>
- <option <#if (req.detectState)??><#if req.detectState == 20>selected="selected"</#if></#if> value="20">售后期内,免费换新</option>
- <option <#if (req.detectState)??><#if req.detectState == 21>selected="selected"</#if></#if> value="21">${(util.detectState(21))}</option>
- <option <#if (req.detectState)??><#if req.detectState == 22>selected="selected"</#if></#if> value="22">售后期内,免费换新</option>
- <option <#if (req.detectState)??><#if req.detectState == 23>selected="selected"</#if></#if> value="23">${(util.detectState(23))}</option>
- <option <#if (req.detectState)??><#if req.detectState == 40>selected="selected"</#if></#if> value="40">${(util.detectState(40))}</option>
- <option <#if (req.detectState)??><#if req.detectState == 24>selected="selected"</#if></#if> value="40">${(util.detectState(24))}</option>
- <option <#if (req.detectState)??><#if req.detectState == 25>selected="selected"</#if></#if> value="40">${(util.detectState(25))}</option>
- <option <#if (req.detectState)??><#if req.detectState == 26>selected="selected"</#if></#if> value="40">${(util.detectState(26))}</option>
- <option <#if (req.detectState)??><#if req.detectState == 27>selected="selected"</#if></#if> value="40">${(util.detectState(27))}</option>
- </select>
- <select class="select" name="storeId" id="storeId" style="height: 31px;width:8%">
- <option value="">店铺信息</option>
- <#list stores as s>
- <option value="${(s.storeId)!}" <#if (req.storeId)??><#if (req.storeId == s.storeId)>selected</#if></#if>>${(s.storeName)!}</option>
- </#list>
- </select>
- <input type="text" class="input-text" style="width:8%;margin-top: -3px;" value="${(req.machineNo)!}" placeholder="机器条码" id="machineNo" name="machineNo">
- <input type="text" class="input-text" style="width:8%;margin-top: -3px;" value="${(req.productName)!}" placeholder="产品名称" id="productName" name="productName">
- <input type="text" class="input-text" style="width:8%;margin-top: -3px;" value="${(req.detectName)!}" placeholder="客户姓名/昵称" id="detectName" name="detectName">
- <input type="text" class="input-text" style="width:8%;margin-top: -3px;" value="${(req.detectTel)!}" placeholder="客户电话/手机" id="detectTel" name="detectTel">
- <input type="text" class="input-text" style="width:8%;margin-top: -3px;" value="${(req.methodName)!}" placeholder="处理方式" id="methodName" name="methodName">
- <input type="text" class="input-text" style="width:8%;margin-top: -3px;" name="startTime" id="startTime" placeholder="录入开始时间" onClick="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss',skin:'whyGreen' })" value="${(req.startTime)!''}" readonly="readonly"/>
- <input type="text" class="input-text" style="width:8%;margin-top: -3px;" name="endTime" id="endTime" placeholder="录入结束时间" onClick="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss',skin:'whyGreen' })" value="${(req.endTime)!''}" readonly="readonly"/>
- <button type="submit" class="btn" style="background: #32a3d8;color: #fff;-webkit-transform:translateY(-5%);"><i class="Hui-iconfont"></i> 搜索 </button>
- <button type="button" onclick="downLoadExcel()" class="btn" style="width:8%;margin-top: -3px;"><i class="Hui-iconfont"></i> 下载 </button>
- </form>
- </div>
- <table class="table table-border table-bordered table-hover" style="margin-top: 20px">
- <thead>
- <tr class="text-c">
- <th width="20">维修状态<i class="Hui-iconfont" style="cursor: pointer;color: blue;" title="点击查看状态说明" onclick="state_details()"></i></th>
- <th width="20">维修编号<i class="Hui-iconfont" style="cursor: pointer;color: blue;" title="此为维修部的唯一编号,后期可通过此编号沟通具体事项"></i></th>
- <th width="40">产品信息</th>
- <th width="50">客户姓名/客户电话</th>
- <th width="50">寄回物流</th>
- <th width="50">客户反馈问题</th>
- <th width="40">处理方式</th>
- <th width="45">机器条码</th>
- <th width="45">报价</th>
- <th width="45">寄送物流</th>
- <th width="20">录入时间</th>
- <th width="40">操作</th>
- </tr>
- </thead>
- <tbody>
- <#if (page.dataList?size <= 0)>
- <tr class="text-c"><td colspan="12">暂无数据</td></tr>
- <#else>
- <#list page.dataList as o>
- <tr class="text-c">
- <td>
- <#if o.detectState == 20 || o.detectState == 24>
- 售后期内,免费换新
- <#else>
- ${(util.detectState(o.detectState))}
- <#if o.detectState == 1>
- <br><span class="c-red"><#if o.maintenanceCutTime??>(${o.maintenanceCutTime?string("yyyy/MM/dd")}前完成)</#if></span>
- </#if>
- <#if o.detectState == 31 || o.detectState == 35>
- <br><span class="c-red"><#if o.completeCutTime??>(${o.completeCutTime?string("yyyy/MM/dd")}前完成)</#if></span>
- </#if>
- </#if>
- </td>
- <td>${(o.detectNumber)!}</td>
- <td>${(o.productName)!}(${(o.colorName)!})</td>
- <td>${(o.detectName)!}/${(o.detectTel)!}</td>
- <td>
- ${(o.transport.transportSendFirm)!}/${(o.transport.transportSendPost)!}
- </td>
- <td>${(o.detectCustmoerQuestion)!}</td>
- <td>${((o.detectIsMaintain==1)?string("待工厂检测维修","待工厂检测翻新"))!}</td>
- <td>${(o.machineNo)!}</td>
- <td>${((o.detectOffer/100)?string.currency)!}</td>
- <td>${(o.transport.transportSignFirm)!}/${(o.transport.transportSignPost)!}</td>
- <td>${(o.detectCreateTime?string("yyyy-MM-dd HH:mm:ss"))!}</td>
- <td class="td-manage">
- <#if o.detectState == 30 || o.detectState == 34 || o.detectState == 38 || o.detectState == 24>
- <a style="text-decoration:none" href="javascript:;" title="确认处理" onclick="layer_show('确认处理','${path}/detect/to_detect_msg?detectId=${o.detectId!''}','600','680');">
- <i class="Hui-iconfont"></i>
- </a>
- </#if>
- <#if !((o.transport.transportSignFirm)??)>
- <a title="编辑运输信息" href="javascript:layer_show('编辑运输信息','${path}/admin/afterSales/editTransportUI?id=${o.detectId}','800','600');" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont"></i></a>
- </#if>
- <a title="查看详情" href="javascript:layer_show('维修详情','${path}/admin/detect/to_detail?detectId=${o.detectId}','800','600');" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont"></i></a>
- <#if (o.detectState == 0)>
- <a title="删除" href="javascript:del_detect(${(o.detectId)!})" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont"></i></a>
- </#if>
- </td>
- </tr>
- </#list>
- </#if>
- </tbody>
- </table>
- </div>
- <#include "/base/page_util.ftl">
- </body>
- <script type="text/javascript" src="${path}/common/lib/lightbox2/2.8.1/js/lightbox.min.js"></script>
- <script type="text/javascript">
- /** 下载Excel */
- function downLoadExcel() {
- layer.confirm('是否确认开始下载?',function(index){
- let $form = $("#search-form");
- let uri = $form.attr("action");
- $form.attr("action", root_path + "/admin/afterSales/downloadAfterSales");
- $form.submit();
- $form.attr("action", uri);
- layer.close(index);
- });
- }
- function state_details() {
- layer.open({
- type: 1,
- area: ['600px', '300px'],
- fix: false,
- maxmin: true,
- shade: 0.4,
- title: '维修状态说明',
- content: '<p style="margin-top: 10px"> <b style="color: red;float: left;width: 100px;display: block;margin-left: 10px;">待收货确认:</b>表示机器还未到维修部,维修部还未收货,收货后将开始检测</p>' +
- '<p> <b style="color: red;float: left;width: 100px;display: block;margin-left: 10px;">待检测机器:</b>维修部门已经收到机器,正在进行对机器的检测,预计三个工作日完成</p>' +
- '<p> <b style="color: red;float: left;width: 100px;display: block;margin-left: 10px;">用户同意维修:</b>您已确认维修机器,维修部正在维修机器中</p>' +
- '<p> <b style="color: red;float: left;width: 100px;display: block;margin-left: 10px;">维修完成:</b>维修部已经完成机器的维修,需要返回给客户</p>' +
- '<p> <b style="color: red;float: left;width: 100px;display: block;margin-left: 10px;">用户不维修:</b>维修部完成对机器的检测后,但是用户不同意维修</p>' +
- '<p> <b style="color: red;float: left;width: 100px;display: block;margin-left: 10px;">其他状态:</b>其他状态是针对换货、补发、只针对机器检测的描述,可忽略</p>'
- });
- }
- function del_detect(id) {
- layer.confirm('是否确认删除此售后信息?',function(index){
- // 确定按钮
- $.ajax({
- cache: true,
- type: "POST",
- data: {"id":id},
- url: "${path}/admin/afterSales/del",
- async: false,
- success: function(data){
- if (data.returnCode === 200) {
- layer.msg('删除成功',{icon: 1,time:1000}, function () {
- window.location.reload();
- });
- } else {
- layer.msg('删除失败,请稍后重试!',{icon: 1,time:1000});
- }
- },
- error: function(XmlHttpRequest, textStatus, errorThrown){
- }
- });
- });
- }
- </script>
- </html>
|