|
@@ -18,6 +18,7 @@
|
|
|
.my-btn-search{border: 1px solid #32a3d8;padding: 1px 25px;height: 32px;background-color: #32a3d8;color: #fff;}
|
|
|
.barcodeImg{margin:10px 0px}
|
|
|
.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;}*/
|
|
|
</style>
|
|
@@ -205,7 +206,193 @@
|
|
|
<a class="layui-layer-ico layui-layer-close layui-layer-close1" onclick="hide_this(this)" href="javascript:;"></a>
|
|
|
</span>
|
|
|
</div>
|
|
|
- <!-- 查看已完成回访内容end -->
|
|
|
+ <!-- 查看问题描述内容end -->
|
|
|
+ <!-- 换新处理start -->
|
|
|
+ <div class="layui-layer layui-anim layui-layer-iframe" id="update-renewed-info" times="4" showtime="0" contype="string" style="display:none;z-index: 19891018; width: 700px; height: 700px; position: absolute; top: 100px; left: 250px;text-align: left;">
|
|
|
+ <form action="" name="form-visit-finish" method="post" class="form form-horizontal" id="form-visit-finish">
|
|
|
+ <div class="layui-layer-title" id="synOrder" style="cursor: move;" move="ok">换新处理</div>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls" style="margin-top: 10px;">
|
|
|
+ <label><span class="c-red">*</span> 当前进度:</label>
|
|
|
+ <label id="renewedSchedule"></label>
|
|
|
+ </div>
|
|
|
+ <div class="col-4"> </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls renewed_back_status">
|
|
|
+ <label><span class="c-red">*</span> 客户已寄回:</label>
|
|
|
+ <input type="radio" name="renewedBackStatus" value="1"/><label>未寄回 </label>
|
|
|
+ <input type="radio" name="renewedBackStatus" value="2"/><label>已寄回 </label>
|
|
|
+ <input type="radio" name="renewedBackStatus" value="3"/><label>已收货 </label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls" style="margin-top: 10px;">
|
|
|
+ <label><span class="c-red">*</span> 寄回物流:</label>
|
|
|
+ <select name="renewedBackLogisticsCompany" id="renewedBackLogisticsCompany" style="height: 30px;width: 100px;">
|
|
|
+ <option value="sto">申通快递</option>
|
|
|
+ <option value="yto">圆通快递</option>
|
|
|
+ <option value="sf">顺丰快递</option>
|
|
|
+ <option value="ems">邮政EMS</option>
|
|
|
+ <option value="zto">中通快递</option>
|
|
|
+ <option value="zjs">宅急送</option>
|
|
|
+ <option value="yunda">韵达快递</option>
|
|
|
+ <option value="cces">cces快递</option>
|
|
|
+ <option value="pick">上门提货</option>
|
|
|
+ <option value="htky">汇通快递</option>
|
|
|
+ <option value="ttkdex">天天快递</option>
|
|
|
+ <option value="stars">星晨急便</option>
|
|
|
+ <option value="jd">京东快递</option>
|
|
|
+ <option value="01">其他</option>
|
|
|
+ <option value="02">上门送货</option>
|
|
|
+ </select>
|
|
|
+ <input type="text" id="renewedBackLogisticsNo" class="input-text" value="" style="width: 150px;" name="renewedBackLogisticsNo">
|
|
|
+ <input type="text" id="renewedBackPostage" class="input-text" value="" style="width: 150px;" name="renewedBackPostage">
|
|
|
+ </div>
|
|
|
+ <div class="col-4"> </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls" style="margin-top: 10px;">
|
|
|
+ <label><span class="c-red">*</span> 寄回信息:</label>
|
|
|
+ <input type="text" id="renewedBackName" class="input-text" value="" style="width: 150px;" name="renewedBackName">
|
|
|
+ <input type="text" id="renewedBackTel" class="input-text" value="" style="width: 150px;" name="renewedBackTel">
|
|
|
+ <input type="text" id="renewedBackMachineNo" class="input-text" value="" style="width: 150px;" name="renewedBackMachineNo">
|
|
|
+ </div>
|
|
|
+ <div class="col-4"> </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls" style="margin-top: 10px;">
|
|
|
+ <label><span class="c-red">*</span> 寄送产品:</label>
|
|
|
+ <div id="renewedProduct" class="update-parts"></div>
|
|
|
+ </div>
|
|
|
+ <div class="col-4"> </div>
|
|
|
+ </div>
|
|
|
+ <hr/>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls renewed_send_status" style="margin-top: 10px;">
|
|
|
+ <label>是否已寄送:</label>
|
|
|
+ <input type="radio" name="renewedSendStatus" value="1"/><label>未寄出 </label>
|
|
|
+ <input type="radio" name="renewedSendStatus" value="2"/><label>已寄出 </label>
|
|
|
+ <input type="radio" name="renewedSendStatus" value="3"/><label>已收货 </label>
|
|
|
+ <label>Efast订单号:</label>
|
|
|
+ <label id="renewedBackEfastOrderId"></label>
|
|
|
+ </div>
|
|
|
+ <div class="col-4"> </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls" style="margin-top: 10px;">
|
|
|
+ <label><span class="c-red">*</span> 用户地址:</label>
|
|
|
+ <input type="text" id="renewedSendName" class="input-text" value="" style="width: 150px;" name="renewedSendName">
|
|
|
+ <input type="text" id="renewedSendTel" class="input-text" value="" style="width: 150px;" name="renewedSendTel">
|
|
|
+ </div>
|
|
|
+ <div class="formControls">
|
|
|
+ <select id="provinceNumber" name="provinceNumber" style="height: 30px;width: 100px;" onchange=""></select>
|
|
|
+ <select id="cityNumber" name="cityNumber" style="height: 30px;width: 100px;" onchange=""></select>
|
|
|
+ <select id="areaNumber" name="areaNumber" style="height: 30px;width: 100px;" onchange=""></select>
|
|
|
+ </div>
|
|
|
+ <div class="formControls">
|
|
|
+ <textarea id="renewedSendAddress" name="renewedSendAddress" cols="" rows="" style="width: 500px;height: 70px;" class="textarea" ></textarea>
|
|
|
+ </div>
|
|
|
+ <div class="col-4"> </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls" style="margin-top: 10px;">
|
|
|
+ <label><span class="c-red">*</span> 寄出物流:</label>
|
|
|
+ <select name="renewedSendLogisticsCompany" id="renewedSendLogisticsCompany" style="height: 30px;width: 100px;">
|
|
|
+ <option value="sto">申通快递</option>
|
|
|
+ <option value="yto">圆通快递</option>
|
|
|
+ <option value="sf">顺丰快递</option>
|
|
|
+ <option value="ems">邮政EMS</option>
|
|
|
+ <option value="zto">中通快递</option>
|
|
|
+ <option value="zjs">宅急送</option>
|
|
|
+ <option value="yunda">韵达快递</option>
|
|
|
+ <option value="cces">cces快递</option>
|
|
|
+ <option value="pick">上门提货</option>
|
|
|
+ <option value="htky">汇通快递</option>
|
|
|
+ <option value="ttkdex">天天快递</option>
|
|
|
+ <option value="stars">星晨急便</option>
|
|
|
+ <option value="jd">京东快递</option>
|
|
|
+ <option value="01">其他</option>
|
|
|
+ <option value="02">上门送货</option>
|
|
|
+ </select>
|
|
|
+ <input type="text" id="renewedSendLogisticsNo" class="input-text" value="" style="width: 150px;" name="renewedSendLogisticsNo">
|
|
|
+ </div>
|
|
|
+ <div class="col-4"> </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls" style="margin-top: 10px;">
|
|
|
+ <label><span class="c-red">*</span> 备注:</label>
|
|
|
+ <input type="text" id="renewedDesc" class="input-text" value="" style="width: 150px;" name="renewedDesc">
|
|
|
+ </div>
|
|
|
+ <div class="col-4"> </div>
|
|
|
+ </div>
|
|
|
+ <hr/>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls" style="margin-top: 10px;">
|
|
|
+ <label><span class="c-red">*</span> QC进度:</label>
|
|
|
+ <div>
|
|
|
+ <table class="table table-border table-bordered table-bg table-hover table-sort">
|
|
|
+ <tr>
|
|
|
+ <th>工厂检测现象</th>
|
|
|
+ <th>故障分类</th>
|
|
|
+ <th>故障原因</th>
|
|
|
+ <th>判定结果</th>
|
|
|
+ <th>故障指向</th>
|
|
|
+ <th>原因分析</th>
|
|
|
+ <th>生产维修</th>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td id="detectPhenomenon"></td>
|
|
|
+ <td id="detectFailureClassification"></td>
|
|
|
+ <td id="detectFailureCause"></td>
|
|
|
+ <td id="detectResults"></td>
|
|
|
+ <td id="detectPoint"></td>
|
|
|
+ <td id="detectAnalysis"></td>
|
|
|
+ <td id="detectRevolutionProduced"></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-4"> </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls" style="margin-top: 10px;">
|
|
|
+ <label><span class="c-red">*</span> 返修进度:</label>
|
|
|
+ <div>
|
|
|
+ <table class="table table-border table-bordered table-bg table-hover table-sort">
|
|
|
+ <tr>
|
|
|
+ <th>是否可返修</th>
|
|
|
+ <th>返修内容</th>
|
|
|
+ <th>返修日期</th>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td id="maintenanceIdRepair"></td>
|
|
|
+ <td id="maintenanceContent"></td>
|
|
|
+ <td id="maintenanceContentDate"></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-4"> </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls" style="margin-top: 10px;">
|
|
|
+ <label>
|
|
|
+ 寄送产品将自动推送Efast,系统自动获取物流信息,并更新。<br/>
|
|
|
+ 如果在Efast作废订单等操作后,无法获取物流信息,请手动填写物流信息。
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ <div class="col-4"> </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-9 col-offset-3">
|
|
|
+ <input class="btn btn-primary radius" onclick="updateVisitInfo();" type="button" value=" 确认 ">
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ <span class="layui-layer-setwin">
|
|
|
+ <a class="layui-layer-ico layui-layer-close layui-layer-close1" onclick="hide_this(this)" href="javascript:;"></a>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <!-- 换新处理start -->
|
|
|
<form action="${path}/admin/customer/select_customer_list" method="post">
|
|
|
<button type="button" style="cursor:pointer; float: left;" class="my-btn-search" onclick="toAddCustomer();">新建客诉</button>
|
|
|
<input type="text" class="my-input" style="width:100px;margin-right: 0px;" value="${customerId!}" placeholder="客户姓名" id="customerName" name="customerName">
|
|
@@ -309,29 +496,31 @@
|
|
|
未解决
|
|
|
<#elseif customer.customerIsSolve == 3>
|
|
|
换新(
|
|
|
- <#if customer.backStatus == 1>
|
|
|
- 未寄回
|
|
|
- <#elseif customer.backStatus == 2>
|
|
|
- 已寄回
|
|
|
- <#elseif customer.backStatus == 3>
|
|
|
- 已收货
|
|
|
- </#if>,
|
|
|
- <#if customer.sendStatus == 1>
|
|
|
- 未寄送
|
|
|
- <#elseif customer.sendStatus == 2>
|
|
|
- 已寄送
|
|
|
- <#elseif customer.sendStatus == 3>
|
|
|
- 已收货
|
|
|
- </#if>,
|
|
|
- <#if customer.detectState == 1>
|
|
|
- 待仓库转入
|
|
|
- <#elseif customer.detectState == 2>
|
|
|
- 正在检查
|
|
|
- <#elseif customer.detectState == 3>
|
|
|
- 检查通过
|
|
|
- <#elseif customer.detectState == 4>
|
|
|
- 检查未通过
|
|
|
- </#if>
|
|
|
+ <a style="text-decoration:none" href="javascript:void(0);" onclick="get_renewed_info(${customer.customerId!''})">
|
|
|
+ <#if customer.backStatus == 1>
|
|
|
+ 未寄回
|
|
|
+ <#elseif customer.backStatus == 2>
|
|
|
+ 已寄回
|
|
|
+ <#elseif customer.backStatus == 3>
|
|
|
+ 已收货
|
|
|
+ </#if>,
|
|
|
+ <#if customer.sendStatus == 1>
|
|
|
+ 未寄送
|
|
|
+ <#elseif customer.sendStatus == 2>
|
|
|
+ 已寄送
|
|
|
+ <#elseif customer.sendStatus == 3>
|
|
|
+ 已收货
|
|
|
+ </#if>,
|
|
|
+ <#if customer.detectState == 1>
|
|
|
+ 待仓库转入
|
|
|
+ <#elseif customer.detectState == 2>
|
|
|
+ 正在检查
|
|
|
+ <#elseif customer.detectState == 3>
|
|
|
+ 检查通过
|
|
|
+ <#elseif customer.detectState == 4>
|
|
|
+ 检查未通过
|
|
|
+ </#if>
|
|
|
+ </a>
|
|
|
)
|
|
|
<#elseif customer.customerIsSolve == 4>
|
|
|
维修(
|
|
@@ -430,9 +619,9 @@
|
|
|
</a>
|
|
|
</#if>
|
|
|
</#if>
|
|
|
- <a style="text-decoration:none" href="javascript:void(0);" title="修改客诉信息" onclick="admin_update_customer(${customer.customerId!''})">
|
|
|
+ <#--<a style="text-decoration:none" href="javascript:void(0);" title="修改客诉信息" onclick="admin_update_customer(${customer.customerId!''})">
|
|
|
<i class="Hui-iconfont">修改客诉信息</i>
|
|
|
- </a>
|
|
|
+ </a> -->
|
|
|
<#if customer.customerIsVisit == "1">
|
|
|
<a style="text-decoration:none" href="javascript:void(0)" title="需要回访" onclick="showVisit(${customer.customerId!''})">
|
|
|
<i class="Hui-iconfont">需要回访</i>
|
|
@@ -668,6 +857,147 @@
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ function get_renewed_info(customerId) {
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ data: {"customerId":customerId},
|
|
|
+ url: "${path}/admin/customer/get_renewed_info",
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+
|
|
|
+ var renewed = data.returnMsg.renewed;
|
|
|
+
|
|
|
+ getProvince();
|
|
|
+ getCity(renewed.provinceNumber);
|
|
|
+ getDistrict(renewed.cityNumber);
|
|
|
+ console.log(renewed);
|
|
|
+ var renewedSchedule = '';
|
|
|
+ switch (renewed.renewedBackStatus) {
|
|
|
+ case 1:renewedSchedule += '待寄回,';break;
|
|
|
+ case 2:renewedSchedule += '已寄回,';break;
|
|
|
+ case 3:renewedSchedule += '已收货,';break;
|
|
|
+ }
|
|
|
+ switch (renewed.renewedSendStatus) {
|
|
|
+ case 1:renewedSchedule += '待寄送,';break;
|
|
|
+ case 2:renewedSchedule += '已寄送,';break;
|
|
|
+ case 3:renewedSchedule += '已收货,';break;
|
|
|
+ }
|
|
|
+ switch (renewed.detectState) {
|
|
|
+ case 1:renewedSchedule += '待仓库转入';break;
|
|
|
+ case 2:renewedSchedule += '正在检查';break;
|
|
|
+ case 3:renewedSchedule += '检查通过';break;
|
|
|
+ case 3:renewedSchedule += '检查未通过';break;
|
|
|
+ }
|
|
|
+ var renewedProduct = '';
|
|
|
+ if (renewed.productName != null && renewed.productName != '') {
|
|
|
+ renewedProduct += '<span>'+ renewed.productName + '*' + renewed.closedProdcueNumber + '</span>';
|
|
|
+ }
|
|
|
+ if (renewed.closedFittings != null && renewed.length > 0) {
|
|
|
+ $.each(renewed.closedFittings,function(index,element){
|
|
|
+ renewedProduct += '<span>'+ this.fittingName + '*' + this.closedFittingNumber + '</span>';
|
|
|
+ })
|
|
|
+ }
|
|
|
+ $(".renewed_back_status input[value='"+ renewed.renewedBackStatus +"']").attr("checked",true);
|
|
|
+ $(".renewed_send_status input[value='"+ renewed.renewedSendStatus +"']").attr("checked",true);
|
|
|
+ $('#renewedSchedule').html(renewedSchedule);
|
|
|
+ $('#renewedProduct').val(renewedProduct);
|
|
|
+ $("#renewedBackLogisticsCompany option[value='" + renewed.renewedBackLogisticsCompany + "']").attr("selected","true");
|
|
|
+ $("#renewedSendLogisticsCompany option[value='" + renewed.renewedSendLogisticsCompany + "']").attr("selected","true");
|
|
|
+
|
|
|
+ $("#provinceNumber option[value='" + renewed.provinceNumber + "']").attr("selected","true");
|
|
|
+ $("#cityNumber option[value='" + renewed.cityNumber + "']").attr("selected","true");
|
|
|
+ $("#areaNumber option[value='" + renewed.areaNumber + "']").attr("selected","true");
|
|
|
+ $('#renewedBackLogisticsNo').val(renewed.renewedBackLogisticsNo);
|
|
|
+ $('#renewedBackPostage').val(renewed.renewedBackPostage);
|
|
|
+ $('#renewedBackName').val(renewed.renewedBackName);
|
|
|
+ $('#renewedBackTel').val(renewed.renewedBackTel);
|
|
|
+ $('#renewedBackMachineNo').val(renewed.renewedBackMachineNo);
|
|
|
+ $('#renewedBackEfastOrderId').html(renewed.renewedBackEfastOrderId);
|
|
|
+ $('#renewedSendName').val(renewed.renewedSendName);
|
|
|
+ $('#renewedSendTel').val(renewed.renewedSendTel);
|
|
|
+ $('#renewedSendAddress').val(renewed.renewedSendAddress);
|
|
|
+ $('#renewedSendLogisticsNo').val(renewed.renewedSendLogisticsNo);
|
|
|
+ $('#renewedDesc').val(renewed.renewedDesc);
|
|
|
+ $('#detectPhenomenon').val(renewed.detectPhenomenon);
|
|
|
+ $('#detectFailureClassification').val(renewed.detectFailureClassification);
|
|
|
+ $('#detectFailureCause').val(renewed.detectFailureCause);
|
|
|
+ $('#detectResults').val(renewed.detectResults);
|
|
|
+ $('#detectPoint').val(renewed.detectPoint);
|
|
|
+ $('#detectAnalysis').val(renewed.detectAnalysis);
|
|
|
+ $('#detectRevolutionProduced').val(renewed.detectRevolutionProduced);
|
|
|
+ $('#maintenanceIdRepair').val(renewed.maintenanceIdRepair);
|
|
|
+ $('#maintenanceContent').val(renewed.maintenanceContent);
|
|
|
+ $('#maintenanceContentDate').val(renewed.maintenanceContentDate);
|
|
|
+ $('#update-renewed-info').show();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取省
|
|
|
+ */
|
|
|
+ function getProvince() {
|
|
|
+ var province = listProvince();
|
|
|
+ if(province!=null){
|
|
|
+ var provinceHtml = '';
|
|
|
+ for(var i=0;i<province.length;i++){
|
|
|
+ provinceHtml += '<option value="'+ province[i].provinceId +'">'+ province[i].province +'</option>';
|
|
|
+ }
|
|
|
+ $('#provinceNumber').append(provinceHtml);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取市
|
|
|
+ */
|
|
|
+ function getCity(provineceId) {
|
|
|
+ var city = listCity(provineceId,'');
|
|
|
+ if(city!=null){
|
|
|
+ var cityHtml = '';
|
|
|
+ for(var i=0;i<city.length;i++){
|
|
|
+ cityHtml += '<option value="'+ city[i].cityId +'">'+ city[i].city +'</option>';
|
|
|
+ }
|
|
|
+ $('#cityNumber').append(cityHtml);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取区
|
|
|
+ */
|
|
|
+ function getDistrict(cityId) {
|
|
|
+ var district = listDistrict(cityId,'');
|
|
|
+ if(district!=null){
|
|
|
+ var districtHtml = '';
|
|
|
+ for(var i=0;i<district.length;i++){
|
|
|
+ districtHtml += '<option value="'+ district[i].districtId +'">'+ district[i].district +'</option>';
|
|
|
+ }
|
|
|
+ $('#areaNumber').append(districtHtml);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /*监听省选择事件*/
|
|
|
+ $(document).on('change', '#provinceNumber', function() {
|
|
|
+ var proId = $("#provinceNumber").val();
|
|
|
+ $('#cityNumber option').remove();
|
|
|
+ getCity(proId);
|
|
|
+ var cityId = $("#cityNumber").val();
|
|
|
+ $('#areaNumber option').remove();
|
|
|
+ getDistrict(cityId);
|
|
|
+ });
|
|
|
+
|
|
|
+ /*监听市选择事件*/
|
|
|
+ $(document).on('change', '#cityNumber', function() {
|
|
|
+ var city = $("#cityNumber").val();
|
|
|
+ $('#areaNumber option').remove();
|
|
|
+ getDistrict(city);
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|