|
@@ -208,11 +208,12 @@
|
|
|
</div>
|
|
|
<!-- 查看问题描述内容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 layui-anim layui-layer-iframe" id="update-renewed-info" times="4" showtime="0" contype="string" style="display:none;z-index: 19891018; width: 700px; height: 850px; position: absolute; top: 100px; left: 250px;text-align: left;">
|
|
|
+ <form action="" name="form-update-renewed" method="post" class="form form-horizontal" id="form-update-renewed">
|
|
|
<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;">
|
|
|
+ <input type="hidden" id="renewedId" name="renewedId" />
|
|
|
<label><span class="c-red">*</span> 当前进度:</label>
|
|
|
<label id="renewedSchedule"></label>
|
|
|
</div>
|
|
@@ -322,7 +323,7 @@
|
|
|
<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">
|
|
|
+ <textarea id="renewedDesc" name="renewedDesc" cols="" rows="" style="width: 500px;height: 70px;" class="textarea" ></textarea>
|
|
|
</div>
|
|
|
<div class="col-4"> </div>
|
|
|
</div>
|
|
@@ -385,7 +386,7 @@
|
|
|
<div class="col-4"> </div>
|
|
|
</div>
|
|
|
<div class="col-9 col-offset-3">
|
|
|
- <input class="btn btn-primary radius" onclick="updateVisitInfo();" type="button" value=" 确认 ">
|
|
|
+ <input class="btn btn-primary radius" onclick="update_renewed_info();" type="button" value=" 确认 ">
|
|
|
</div>
|
|
|
</form>
|
|
|
<span class="layui-layer-setwin">
|
|
@@ -393,6 +394,271 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
<!-- 换新处理start -->
|
|
|
+ <!-- 维修处理start -->
|
|
|
+ <div class="layui-layer layui-anim layui-layer-iframe" id="update-repair-info" times="4" showtime="0" contype="string" style="display:none;z-index: 19891018; width: 700px; height: 850px; position: absolute; top: 100px; left: 250px;text-align: left;">
|
|
|
+ <form action="" name="form-update-repair" method="post" class="form form-horizontal" id="form-update-repair">
|
|
|
+ <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;">
|
|
|
+ <input type="hidden" id="repairId" name="repairId" />
|
|
|
+ <label><span class="c-red">*</span> 当前进度:</label>
|
|
|
+ <label id="repairSchedule"></label>
|
|
|
+ </div>
|
|
|
+ <div class="col-4"> </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls repair_back_status">
|
|
|
+ <label><span class="c-red">*</span> 客户已寄回:</label>
|
|
|
+ <input type="radio" name="repairBackStatus" value="1"/><label>未寄回 </label>
|
|
|
+ <input type="radio" name="repairBackStatus" value="2"/><label>已寄回 </label>
|
|
|
+ <input type="radio" name="repairBackStatus" 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="repairBackLogisticsCompany" id="repairBackLogisticsCompany" 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="repairBackLogisticsNo" class="input-text" value="" style="width: 150px;" name="repairBackLogisticsNo">
|
|
|
+ <input type="text" id="repairBackPostage" class="input-text" value="" style="width: 150px;" name="repairBackPostage">
|
|
|
+ </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="repairBackName" class="input-text" value="" style="width: 150px;" name="repairBackName">
|
|
|
+ <input type="text" id="repairBackTel" class="input-text" value="" style="width: 150px;" name="repairBackTel">
|
|
|
+ <input type="text" id="repairBackMachineNo" class="input-text" value="" style="width: 150px;" name="repairBackMachineNo">
|
|
|
+ </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="repairProduct" class="update-parts"></div>
|
|
|
+ </div>
|
|
|
+ <div class="col-4"> </div>
|
|
|
+ </div>
|
|
|
+ <hr/>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls repair_send_status" style="margin-top: 10px;">
|
|
|
+ <label>是否已寄送:</label>
|
|
|
+ <input type="radio" name="repairSendStatus" value="1"/><label>未寄出 </label>
|
|
|
+ <input type="radio" name="repairSendStatus" value="2"/><label>已寄出 </label>
|
|
|
+ <input type="radio" name="repairSendStatus" value="3"/><label>已收货 </label>
|
|
|
+ <label>Efast订单号:</label>
|
|
|
+ <label id="repairBackEfastOrderId"></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="repairSendName" class="input-text" value="" style="width: 150px;" name="repairSendName">
|
|
|
+ <input type="text" id="repairSendTel" class="input-text" value="" style="width: 150px;" name="repairSendTel">
|
|
|
+ </div>
|
|
|
+ <div class="formControls">
|
|
|
+ <select id="repairProvinceNumber" name="repairProvinceNumber" style="height: 30px;width: 100px;" onchange=""></select>
|
|
|
+ <select id="repairCityNumber" name="repairCityNumber" style="height: 30px;width: 100px;" onchange=""></select>
|
|
|
+ <select id="repairAreaNumber" name="repairAreaNumber" style="height: 30px;width: 100px;" onchange=""></select>
|
|
|
+ </div>
|
|
|
+ <div class="formControls">
|
|
|
+ <textarea id="repairSendAddress" name="repairSendAddress" 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="repairSendLogisticsCompany" id="repairSendLogisticsCompany" 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="repairSendLogisticsNo" class="input-text" value="" style="width: 150px;" name="repairSendLogisticsNo">
|
|
|
+ </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>
|
|
|
+ <textarea id="repairDesc" name="repairDesc" cols="" rows="" style="width: 500px;height: 70px;" class="textarea" ></textarea>
|
|
|
+ </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="repairDetectPhenomenon"></td>
|
|
|
+ <td id="repairDetectFailureClassification"></td>
|
|
|
+ <td id="repairDetectFailureCause"></td>
|
|
|
+ <td id="repairDetectResults"></td>
|
|
|
+ <td id="repairDetectPoint"></td>
|
|
|
+ <td id="repairDetectAnalysis"></td>
|
|
|
+ <td id="repairDetectRevolutionProduced"></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="repairMaintenanceIdRepair"></td>
|
|
|
+ <td id="repairMaintenanceContent"></td>
|
|
|
+ <td id="repairMaintenanceContentDate"></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="update_repair_info();" 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>
|
|
|
+ <!-- 维修处理end -->
|
|
|
+ <!-- 退货处理start -->
|
|
|
+ <div class="layui-layer layui-anim layui-layer-iframe" id="update-back-goods" times="4" showtime="0" contype="string" style="display:none;z-index: 19891018; width: 700px; height: 400px; position: absolute; top: 100px; left: 250px;text-align: left;">
|
|
|
+ <form action="" name="form-update-backGoods" method="post" class="form form-horizontal" id="form-update-backGoods">
|
|
|
+ <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;">
|
|
|
+ <input type="hidden" id="backGoodsId" name="backGoodsId" />
|
|
|
+ <label><span class="c-red">*</span> 当前进度:</label>
|
|
|
+ <label id="backGoodsSchedule"></label>
|
|
|
+ </div>
|
|
|
+ <div class="col-4"> </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
+ <div class="formControls backGoods_back_status">
|
|
|
+ <label><span class="c-red">*</span> 客户已寄回:</label>
|
|
|
+ <input type="radio" name="backGoodsBackStatus" value="1"/><label>未寄回 </label>
|
|
|
+ <input type="radio" name="backGoodsBackStatus" value="2"/><label>已寄回 </label>
|
|
|
+ <input type="radio" name="backGoodsBackStatus" 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="backGoodsBackLogisticsCompany" id="backGoodsBackLogisticsCompany" 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="backGoodsBackLogisticsNo" class="input-text" value="" style="width: 150px;" name="backGoodsBackLogisticsNo">
|
|
|
+ <input type="text" id="backGoodsBackPostage" class="input-text" value="" style="width: 150px;" name="backGoodsBackPostage">
|
|
|
+ </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="backGoodsBackName" class="input-text" value="" style="width: 150px;" name="backGoodsBackName">
|
|
|
+ <input type="text" id="backGoodsBackTel" class="input-text" value="" style="width: 150px;" name="backGoodsBackTel">
|
|
|
+ <input type="text" id="backGoodsBackMachineNo" class="input-text" value="" style="width: 150px;" name="backGoodsBackMachineNo">
|
|
|
+ </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="backGoodsProduct" class="update-parts"></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>
|
|
|
+ <textarea id="backGoodsDesc" name="backGoodsDesc" cols="" rows="" style="width: 500px;height: 70px;" class="textarea" ></textarea>
|
|
|
+ </div>
|
|
|
+ <div class="col-4"> </div>
|
|
|
+ </div>
|
|
|
+ <br/>
|
|
|
+ <div class="col-9 col-offset-3">
|
|
|
+ <input class="btn btn-primary radius" onclick="update_back_goods();" 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>
|
|
|
+ <!-- 退货处理end -->
|
|
|
<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">
|
|
@@ -524,29 +790,31 @@
|
|
|
)
|
|
|
<#elseif customer.customerIsSolve == 4>
|
|
|
维修(
|
|
|
- <#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_repair_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 == 5>
|
|
|
补发(
|
|
@@ -575,7 +843,17 @@
|
|
|
</#if>
|
|
|
)
|
|
|
<#elseif customer.customerIsSolve == 6>
|
|
|
- 退货
|
|
|
+ 退货(
|
|
|
+ <a style="text-decoration:none" href="javascript:void(0);" onclick="get_book_goods_info(${customer.customerId!''})">
|
|
|
+ <#if customer.backStatus == 1>
|
|
|
+ 未寄回
|
|
|
+ <#elseif customer.backStatus == 2>
|
|
|
+ 已寄回
|
|
|
+ <#elseif customer.backStatus == 3>
|
|
|
+ 已收货
|
|
|
+ </#if>
|
|
|
+ </a>
|
|
|
+ )
|
|
|
<#elseif customer.customerIsSolve == 7>
|
|
|
无理由退货
|
|
|
</#if>
|
|
@@ -857,6 +1135,7 @@
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ /*获取换新信息*/
|
|
|
function get_renewed_info(customerId) {
|
|
|
$.ajax({
|
|
|
cache: true,
|
|
@@ -869,9 +1148,9 @@
|
|
|
|
|
|
var renewed = data.returnMsg.renewed;
|
|
|
|
|
|
- getProvince();
|
|
|
- getCity(renewed.provinceNumber);
|
|
|
- getDistrict(renewed.cityNumber);
|
|
|
+ getProvince('provinceNumber');
|
|
|
+ getCity('cityNumber',renewed.provinceNumber);
|
|
|
+ getDistrict('areaNumber',renewed.cityNumber);
|
|
|
console.log(renewed);
|
|
|
var renewedSchedule = '';
|
|
|
switch (renewed.renewedBackStatus) {
|
|
@@ -888,17 +1167,18 @@
|
|
|
case 1:renewedSchedule += '待仓库转入';break;
|
|
|
case 2:renewedSchedule += '正在检查';break;
|
|
|
case 3:renewedSchedule += '检查通过';break;
|
|
|
- case 3:renewedSchedule += '检查未通过';break;
|
|
|
+ case 4:renewedSchedule += '检查未通过';break;
|
|
|
}
|
|
|
var renewedProduct = '';
|
|
|
if (renewed.productName != null && renewed.productName != '') {
|
|
|
renewedProduct += '<span>'+ renewed.productName + '*' + renewed.closedProdcueNumber + '</span>';
|
|
|
}
|
|
|
- if (renewed.closedFittings != null && renewed.length > 0) {
|
|
|
+ if (renewed.closedFittings != null && renewed.closedFittings.length > 0) {
|
|
|
$.each(renewed.closedFittings,function(index,element){
|
|
|
renewedProduct += '<span>'+ this.fittingName + '*' + this.closedFittingNumber + '</span>';
|
|
|
})
|
|
|
}
|
|
|
+ $('#renewedId').val(renewed.renewedId);
|
|
|
$(".renewed_back_status input[value='"+ renewed.renewedBackStatus +"']").attr("checked",true);
|
|
|
$(".renewed_send_status input[value='"+ renewed.renewedSendStatus +"']").attr("checked",true);
|
|
|
$('#renewedSchedule').html(renewedSchedule);
|
|
@@ -910,7 +1190,7 @@
|
|
|
$("#cityNumber option[value='" + renewed.cityNumber + "']").attr("selected","true");
|
|
|
$("#areaNumber option[value='" + renewed.areaNumber + "']").attr("selected","true");
|
|
|
$('#renewedBackLogisticsNo').val(renewed.renewedBackLogisticsNo);
|
|
|
- $('#renewedBackPostage').val(renewed.renewedBackPostage);
|
|
|
+ $('#renewedBackPostage').val(renewed.renewedBackPostage/100);
|
|
|
$('#renewedBackName').val(renewed.renewedBackName);
|
|
|
$('#renewedBackTel').val(renewed.renewedBackTel);
|
|
|
$('#renewedBackMachineNo').val(renewed.renewedBackMachineNo);
|
|
@@ -938,45 +1218,126 @@
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+ /*获取维修信息*/
|
|
|
+ function get_repair_info(customerId) {
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ data: {"customerId":customerId},
|
|
|
+ url: "${path}/admin/customer/_update_repair",
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ var repair = data.returnMsg.repair;
|
|
|
+ getProvince('repairProvinceNumber');
|
|
|
+ getCity('repairCityNumber',repair.provinceNumber);
|
|
|
+ getDistrict('repairAreaNumber',repair.cityNumber);
|
|
|
+ console.log(repair);
|
|
|
+ var repairSchedule = '';
|
|
|
+ switch (repair.repairBackStatus) {
|
|
|
+ case 1:repairSchedule += '待寄回,';break;
|
|
|
+ case 2:repairSchedule += '已寄回,';break;
|
|
|
+ case 3:repairSchedule += '已收货,';break;
|
|
|
+ }
|
|
|
+ switch (repair.repairSendStatus) {
|
|
|
+ case 1:repairSchedule += '待寄送,';break;
|
|
|
+ case 2:repairSchedule += '已寄送,';break;
|
|
|
+ case 3:repairSchedule += '已收货,';break;
|
|
|
+ }
|
|
|
+ switch (repair.detectState) {
|
|
|
+ case 1:repairSchedule += '待仓库转入';break;
|
|
|
+ case 2:repairSchedule += '正在检查';break;
|
|
|
+ case 3:repairSchedule += '检查通过';break;
|
|
|
+ case 4:repairSchedule += '检查未通过';break;
|
|
|
+ }
|
|
|
+ var repairProduct = '';
|
|
|
+ if (repair.productName != null && repair.productName != '') {
|
|
|
+ repairProduct += '<span>'+ repair.productName + '*' + repair.closedProdcueNumber + '</span>';
|
|
|
+ }
|
|
|
+ if (repair.closedFittings != null && repair.closedFittings.length > 0) {
|
|
|
+ $.each(repair.closedFittings,function(index,element){
|
|
|
+ repairProduct += '<span>'+ this.fittingName + '*' + this.closedFittingNumber + '</span>';
|
|
|
+ })
|
|
|
+ }
|
|
|
+ $('#repairId').val(repair.repairId);
|
|
|
+ $(".repair_back_status input[value='"+ repair.repairBackStatus +"']").attr("checked",true);
|
|
|
+ $(".repair_send_status input[value='"+ repair.repairSendStatus +"']").attr("checked",true);
|
|
|
+ $('#repairSchedule').html(repairSchedule);
|
|
|
+ $('#repairProduct').html(repairProduct);
|
|
|
+ $("#repairBackLogisticsCompany option[value='" + repair.repairBackLogisticsCompany + "']").attr("selected","true");
|
|
|
+ $("#repairSendLogisticsCompany option[value='" + repair.repairSendLogisticsCompany + "']").attr("selected","true");
|
|
|
+
|
|
|
+ $("#repairProvinceNumber option[value='" + repair.provinceNumber + "']").attr("selected","true");
|
|
|
+ $("#repairCityNumber option[value='" + repair.cityNumber + "']").attr("selected","true");
|
|
|
+ $("#repairAreaNumber option[value='" + repair.areaNumber + "']").attr("selected","true");
|
|
|
+ $('#repairBackLogisticsNo').val(repair.repairBackLogisticsNo);
|
|
|
+ $('#repairBackPostage').val(repair.repairBackPostage/100);
|
|
|
+ $('#repairBackName').val(repair.repairBackName);
|
|
|
+ $('#repairBackTel').val(repair.repairBackTel);
|
|
|
+ $('#repairBackMachineNo').val(repair.repairBackMachineNo);
|
|
|
+ $('#repairBackEfastOrderId').html(repair.repairBackEfastOrderId);
|
|
|
+ $('#repairSendName').val(repair.repairSendName);
|
|
|
+ $('#repairSendTel').val(repair.repairSendTel);
|
|
|
+ $('#repairSendAddress').val(repair.repairSendAddress);
|
|
|
+ $('#repairSendLogisticsNo').val(repair.repairSendLogisticsNo);
|
|
|
+ $('#repairDesc').val(repair.repairDesc);
|
|
|
+ $('#detectPhenomenon').val(repair.detectPhenomenon);
|
|
|
+ $('#detectFailureClassification').val(repair.detectFailureClassification);
|
|
|
+ $('#detectFailureCause').val(repair.detectFailureCause);
|
|
|
+ $('#detectResults').val(repair.detectResults);
|
|
|
+ $('#detectPoint').val(repair.detectPoint);
|
|
|
+ $('#detectAnalysis').val(repair.detectAnalysis);
|
|
|
+ $('#detectRevolutionProduced').val(repair.detectRevolutionProduced);
|
|
|
+ $('#maintenanceIdRepair').val(repair.maintenanceIdRepair);
|
|
|
+ $('#maintenanceContent').val(repair.maintenanceContent);
|
|
|
+ $('#maintenanceContentDate').val(repair.maintenanceContentDate);
|
|
|
+ $('#update-repair-info').show();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 获取省
|
|
|
*/
|
|
|
- function getProvince() {
|
|
|
+ function getProvince(provinceNum) {
|
|
|
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);
|
|
|
+ $('#'+provinceNum).append(provinceHtml);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取市
|
|
|
*/
|
|
|
- function getCity(provineceId) {
|
|
|
+ function getCity(cityNum,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);
|
|
|
+ $('#'+cityNum).append(cityHtml);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取区
|
|
|
*/
|
|
|
- function getDistrict(cityId) {
|
|
|
+ function getDistrict(districtNum,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);
|
|
|
+ $('#'+districtNum).append(districtHtml);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -984,19 +1345,146 @@
|
|
|
$(document).on('change', '#provinceNumber', function() {
|
|
|
var proId = $("#provinceNumber").val();
|
|
|
$('#cityNumber option').remove();
|
|
|
- getCity(proId);
|
|
|
+ getCity('cityNumber',proId);
|
|
|
var cityId = $("#cityNumber").val();
|
|
|
$('#areaNumber option').remove();
|
|
|
- getDistrict(cityId);
|
|
|
+ getDistrict('areaNumber',cityId);
|
|
|
});
|
|
|
|
|
|
/*监听市选择事件*/
|
|
|
$(document).on('change', '#cityNumber', function() {
|
|
|
var city = $("#cityNumber").val();
|
|
|
$('#areaNumber option').remove();
|
|
|
- getDistrict(city);
|
|
|
+ getDistrict('areaNumber',city);
|
|
|
});
|
|
|
|
|
|
+ /*监听省选择事件*/
|
|
|
+ $(document).on('change', '#repairProvinceNumber', function() {
|
|
|
+ var proId = $("#repairProvinceNumber").val();
|
|
|
+ $('#repairCityNumber option').remove();
|
|
|
+ getCity('repairCityNumber',proId);
|
|
|
+ var cityId = $("#cityNumber").val();
|
|
|
+ $('#repairAreaNumber option').remove();
|
|
|
+ getDistrict('repairAreaNumber',cityId);
|
|
|
+ });
|
|
|
+
|
|
|
+ /*监听市选择事件*/
|
|
|
+ $(document).on('change', '#repairCityNumber', function() {
|
|
|
+ var city = $("#repairCityNumber").val();
|
|
|
+ $('#repairAreaNumber option').remove();
|
|
|
+ getDistrict('repairAreaNumber',city);
|
|
|
+ });
|
|
|
+
|
|
|
+ /*修改换新信息*/
|
|
|
+ function update_renewed_info() {
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ data: $('#form-update-renewed').serialize(),
|
|
|
+ url: "${path}/admin/customer/update_renewed_info",
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ layer.msg(data.resultMsg,{icon: 1,time:1000});
|
|
|
+ } else {
|
|
|
+ layer.msg(data.resultMsg,{icon: 5,time:1000});
|
|
|
+ }
|
|
|
+ $('#update-renewed-info').hide();
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ /*修改维修信息*/
|
|
|
+ function update_repair_info() {
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ data: $('#form-update-repair').serialize(),
|
|
|
+ url: "${path}/admin/customer/update_repair_info",
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ layer.msg(data.resultMsg,{icon: 1,time:1000});
|
|
|
+ } else {
|
|
|
+ layer.msg(data.resultMsg,{icon: 5,time:1000});
|
|
|
+ }
|
|
|
+ $('#update-repair-info').hide();
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ /*获取售后退货信息*/
|
|
|
+ function get_book_goods_info(customerId) {
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ data: {"customerId":customerId},
|
|
|
+ url: "${path}/admin/customer/_update_back_goods",
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ var backGoods = data.returnMsg.backGoods;
|
|
|
+ console.log(backGoods);
|
|
|
+ $('#backGoodsId').val(backGoods.backGoodsId);
|
|
|
+ $('#backGoodsBackName').val(backGoods.backGoodsBackName);
|
|
|
+ $('#backGoodsBackTel').val(backGoods.backGoodsBackTel);
|
|
|
+ $('#backGoodsBackLogisticsCompany').val(backGoods.backGoodsBackLogisticsCompany);
|
|
|
+ $('#backGoodsBackLogisticsNo').val(backGoods.backGoodsBackLogisticsNo);
|
|
|
+ $('#backGoodsBackPostage').val(backGoods.backGoodsBackPostage/100);
|
|
|
+ $('#backGoodsBackMachineNo').val(backGoods.backGoodsBackMachineNo);
|
|
|
+ $('#backGoodsDesc').val(backGoods.backGoodsDesc);
|
|
|
+ var backGoodsSchedule = '';
|
|
|
+ switch (backGoods.backGoodsBackStatus) {
|
|
|
+ case 1:backGoodsSchedule += '未寄回';break;
|
|
|
+ case 2:backGoodsSchedule += '已寄回';break;
|
|
|
+ case 3:backGoodsSchedule += '已收货';break;
|
|
|
+ }
|
|
|
+ $('#backGoodsSchedule').html(backGoodsSchedule);
|
|
|
+ $(".backGoods_back_status input[value='"+ backGoods.backGoodsBackStatus +"']").attr("checked",true);
|
|
|
+ var backProduct = '';
|
|
|
+ if (backGoods.closedProdcues != null && backGoods.closedProdcues.length > 0) {
|
|
|
+ $.each(backGoods.closedProdcues,function(index,element){
|
|
|
+ backProduct += '<span>'+ this.closedProductName + '*' + this.closedProdcueNumber + '</span>';
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (backGoods.closedFittings != null && backGoods.closedFittings.length > 0) {
|
|
|
+ $.each(backGoods.closedFittings,function(index,element){
|
|
|
+ backProduct += '<span>'+ this.fittingName + '*' + this.closedFittingNumber + '</span>';
|
|
|
+ })
|
|
|
+ }
|
|
|
+ $('#update-back-goods').show();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ /*修改售后退货信息*/
|
|
|
+ function update_back_goods() {
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ data: $('#form-update-backGoods').serialize(),
|
|
|
+ url: "${path}/admin/customer/update_back_goods",
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ layer.msg(data.resultMsg,{icon: 1,time:1000});
|
|
|
+ } else {
|
|
|
+ layer.msg(data.resultMsg,{icon: 5,time:1000});
|
|
|
+ }
|
|
|
+ $('#update-back-goods').hide();
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
</script>
|
|
|
</body>
|