|
@@ -30,435 +30,6 @@
|
|
|
</nav>
|
|
|
<div class="page-container">
|
|
|
<div class="text-c">
|
|
|
- <!-- 维修处理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>当前进度:</label>
|
|
|
- <label id="repairSchedule"></label>
|
|
|
- </div>
|
|
|
- <div class="col-4"> </div>
|
|
|
- </div>
|
|
|
- <div style="margin-left: 10px;">
|
|
|
- <div class="formControls repair_back_status">
|
|
|
- <label>客户已寄回:</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>寄回物流:</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>寄回信息:</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>寄送产品:</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>用户地址:</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" style="padding-left: 74px;">
|
|
|
- <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" style="padding-left: 74px;">
|
|
|
- <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>寄出物流:</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>备注:</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>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>返修进度:</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>当前进度:</label>
|
|
|
- <label id="backGoodsSchedule"></label>
|
|
|
- </div>
|
|
|
- <div class="col-4"> </div>
|
|
|
- </div>
|
|
|
- <div style="margin-left: 10px;">
|
|
|
- <div class="formControls backGoods_back_status">
|
|
|
- <label>客户已寄回:</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>寄回物流:</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>寄回信息:</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>寄回产品:</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>备注:</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 -->
|
|
|
- <!-- 无理由退货处理start -->
|
|
|
- <div class="layui-layer layui-anim layui-layer-iframe" id="update-noreason-back" 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-noreasonBack" method="post" class="form form-horizontal" id="form-update-noreasonBack">
|
|
|
- <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="noreasonBackId" name="noreasonBackId" />
|
|
|
- <label>当前进度:</label>
|
|
|
- <label id="noreasonBackSchedule"></label>
|
|
|
- </div>
|
|
|
- <div class="col-4"> </div>
|
|
|
- </div>
|
|
|
- <div style="margin-left: 10px;">
|
|
|
- <div class="formControls noreasonBack_back_status">
|
|
|
- <label>客户已寄回:</label>
|
|
|
- <input type="radio" name="noreasonBackBackStatus" value="1"/><label>未寄回 </label>
|
|
|
- <input type="radio" name="noreasonBackBackStatus" value="2"/><label>已寄回 </label>
|
|
|
- <input type="radio" name="noreasonBackBackStatus" value="3"/><label>已收货 </label>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div style="margin-left: 10px;">
|
|
|
- <div class="formControls" style="margin-top: 10px;">
|
|
|
- <label>寄回物流:</label>
|
|
|
- <select name="noreasonBackBackLogisticsCompany" id="noreasonBackBackLogisticsCompany" 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="noreasonBackBackLogisticsNo" class="input-text" value="" style="width: 150px;" name="noreasonBackBackLogisticsNo">
|
|
|
- <input type="text" id="noreasonBackBackPostage" class="input-text" value="" style="width: 150px;" name="noreasonBackBackPostage">
|
|
|
- </div>
|
|
|
- <div class="col-4"> </div>
|
|
|
- </div>
|
|
|
- <div style="margin-left: 10px;">
|
|
|
- <div class="formControls" style="margin-top: 10px;">
|
|
|
- <label>寄回信息:</label>
|
|
|
- <input type="text" id="noreasonBackBackName" class="input-text" value="" style="width: 150px;" name="noreasonBackBackName">
|
|
|
- <input type="text" id="noreasonBackBackTel" class="input-text" value="" style="width: 150px;" name="noreasonBackBackTel">
|
|
|
- <input type="text" id="noreasonBackBackMachineNo" class="input-text" value="" style="width: 150px;" name="noreasonBackBackMachineNo">
|
|
|
- </div>
|
|
|
- <div class="col-4"> </div>
|
|
|
- </div>
|
|
|
- <div style="margin-left: 10px;">
|
|
|
- <div class="formControls" style="margin-top: 10px;">
|
|
|
- <label>寄回产品:</label>
|
|
|
- <div id="noreasonBackProduct" class="update-parts"></div>
|
|
|
- </div>
|
|
|
- <div class="col-4"> </div>
|
|
|
- </div>
|
|
|
- <div style="margin-left: 10px;">
|
|
|
- <div class="formControls" style="margin-top: 10px;">
|
|
|
- <label>备注:</label>
|
|
|
- <textarea id="noreasonBackDesc" name="noreasonBackDesc" 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_noreason_back();" 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-reissue-info" times="4" showtime="0" contype="string" style="display:none;z-index: 19891018; width: 700px; height: 480px; position: absolute; top: 100px; left: 250px;text-align: left;">
|
|
|
- <form action="" name="form-update-reissue" method="post" class="form form-horizontal" id="form-update-reissue">
|
|
|
- <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="reissueId" name="reissueId" />
|
|
|
- <label>当前进度:</label>
|
|
|
- <label id="reissueSchedule"></label>
|
|
|
- </div>
|
|
|
- <div class="col-4"> </div>
|
|
|
- </div>
|
|
|
- <div style="margin-left: 10px;">
|
|
|
- <div class="formControls reissue_send_status" style="margin-top: 10px;">
|
|
|
- <label>是否已寄送:</label>
|
|
|
- <input type="radio" name="reissueSendStatus" value="1"/><label>未寄出 </label>
|
|
|
- <input type="radio" name="reissueSendStatus" value="2"/><label>已寄出 </label>
|
|
|
- <input type="radio" name="reissueSendStatus" value="3"/><label>已收货 </label>
|
|
|
- <label>Efast订单号:</label>
|
|
|
- <label id="reissueBackEfastOrderId"></label>
|
|
|
- </div>
|
|
|
- <div class="col-4"> </div>
|
|
|
- </div>
|
|
|
- <div style="margin-left: 10px;">
|
|
|
- <div class="formControls" style="margin-top: 10px;">
|
|
|
- <label>寄出物流:</label>
|
|
|
- <select name="reissueSendLogisticsCompany" id="reissueSendLogisticsCompany" 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="reissueSendLogisticsNo" class="input-text" value="" style="width: 150px;" name="reissueSendLogisticsNo">
|
|
|
- </div>
|
|
|
- <div class="col-4"> </div>
|
|
|
- </div>
|
|
|
- <div style="margin-left: 10px;">
|
|
|
- <div class="formControls" style="margin-top: 10px;">
|
|
|
- <label>补寄产品:</label>
|
|
|
- <div id="reissueProduct" class="update-parts"></div>
|
|
|
- </div>
|
|
|
- <div class="col-4"> </div>
|
|
|
- </div>
|
|
|
- <div style="margin-left: 10px;">
|
|
|
- <div class="formControls" style="margin-top: 10px;">
|
|
|
- <label>用户地址:</label>
|
|
|
- <input type="text" id="reissueSendName" class="input-text" value="" style="width: 150px;" name="reissueSendName">
|
|
|
- <input type="text" id="reissueSendTel" class="input-text" value="" style="width: 150px;" name="reissueSendTel">
|
|
|
- </div>
|
|
|
- <div class="formControls" style="padding-left: 74px;">
|
|
|
- <select id="reissueProvinceNumber" name="reissueProvinceNumber" style="height: 30px;width: 100px;"></select>
|
|
|
- <select id="reissueCityNumber" name="reissueCityNumber" style="height: 30px;width: 100px;" onchange=""></select>
|
|
|
- <select id="reissueAreaNumber" name="reissueAreaNumber" style="height: 30px;width: 100px;" onchange=""></select>
|
|
|
- </div>
|
|
|
- <div class="formControls" style="padding-left: 74px;">
|
|
|
- <textarea id="reissueSendAddress" name="reissueSendAddress" 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>备注:</label>
|
|
|
- <textarea id="reissueDesc" name="reissueDesc" cols="" rows="" style="width: 500px;height: 70px;" class="textarea" ></textarea>
|
|
|
- </div>
|
|
|
- <div class="col-4"></div>
|
|
|
- </div>
|
|
|
- <div class="col-9 col-offset-3">
|
|
|
- <input class="btn btn-primary radius" onclick="update_reissue_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 -->
|
|
|
<form action="${path}/admin/customer/select_customer_list" method="post">
|
|
|
<button type="button" style="cursor:pointer; float: left;height: 35px;" class="my-btn-search" onclick="toAddCustomer();">新建客诉</button>
|
|
|
<input type="text" class="my-input" style="width:90px;margin-right: 0px;" value="${customerInfo.customerName!}" placeholder="请输入姓名" id="customerName" name="customerName">
|
|
@@ -624,7 +195,7 @@
|
|
|
)
|
|
|
<#elseif customer.customerIsSolve == 5>
|
|
|
补发(
|
|
|
- <a style="text-decoration:none" href="javascript:void(0);" onclick="get_reissue_info(${customer.customerId!''})">
|
|
|
+ <a style="text-decoration:none" href="javascript:void(0);" onclick="toUpdateReissue(${customer.customerId!''})">
|
|
|
<#if customer.sendStatus == 1>
|
|
|
未寄送
|
|
|
<#elseif customer.sendStatus == 2>
|
|
@@ -636,7 +207,7 @@
|
|
|
)
|
|
|
<#elseif customer.customerIsSolve == 6>
|
|
|
退货(
|
|
|
- <a style="text-decoration:none" href="javascript:void(0);" onclick="get_book_goods_info(${customer.customerId!''})">
|
|
|
+ <a style="text-decoration:none" href="javascript:void(0);" onclick="toUpdateBookGoods(${customer.customerId!''})">
|
|
|
<#if customer.backStatus == 1>
|
|
|
未寄回
|
|
|
<#elseif customer.backStatus == 2>
|
|
@@ -648,7 +219,7 @@
|
|
|
)
|
|
|
<#elseif customer.customerIsSolve == 7>
|
|
|
无理由退货(
|
|
|
- <a style="text-decoration:none" href="javascript:void(0);" onclick="get_noreason_info(${customer.customerId!''})">
|
|
|
+ <a style="text-decoration:none" href="javascript:void(0);" onclick="toUpdateNoreasonBack(${customer.customerId!''})">
|
|
|
<#if customer.backStatus == 1>
|
|
|
未寄回
|
|
|
<#elseif customer.backStatus == 2>
|
|
@@ -711,11 +282,6 @@
|
|
|
</tfoot>
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
- var mobile= /^1(3|4|5|7|8)\d{9}$/; //手机号码
|
|
|
- var uname = /^[\u4e00-\u9fa5a-zA-Z]{1,12}$/; //中文英文
|
|
|
- var money = /^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/;//金额
|
|
|
- var loginAdminId = ${loginAdminId!''};
|
|
|
-
|
|
|
/**
|
|
|
* 跳转到添加customer页面
|
|
|
*/
|
|
@@ -786,6 +352,27 @@
|
|
|
layer_show("维修处理","${path}/admin/customer/_to_update_repair?customerId="+customerId,"800","500");
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 进入修改退货页面
|
|
|
+ */
|
|
|
+ function toUpdateBookGoods(customerId) {
|
|
|
+ layer_show("退货处理","${path}/admin/customer/_to_update_book_goods?customerId="+customerId,"800","500");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 进入修改无理由退货页面
|
|
|
+ */
|
|
|
+ function toUpdateNoreasonBack(customerId) {
|
|
|
+ layer_show("无理由退货处理","${path}/admin/customer/_update_noreason_back?customerId="+customerId,"800","500");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 进入修改售后补发页面
|
|
|
+ */
|
|
|
+ function toUpdateReissue(customerId) {
|
|
|
+ layer_show("补发处理","${path}/admin/customer/_to_update_reissue?customerId="+customerId,"800","500");
|
|
|
+ }
|
|
|
+
|
|
|
/*子页面添加完信息后回显添加结果是否成功*/
|
|
|
function custome_result(str,num) {
|
|
|
layer.msg(str,{icon:num,time:1000});
|
|
@@ -818,488 +405,6 @@
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 获取省
|
|
|
- */
|
|
|
- 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>';
|
|
|
- }
|
|
|
- $('#'+provinceNum).append(provinceHtml);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 获取市
|
|
|
- */
|
|
|
- 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>';
|
|
|
- }
|
|
|
- $('#'+cityNum).append(cityHtml);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 获取区
|
|
|
- */
|
|
|
- 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>';
|
|
|
- }
|
|
|
- $('#'+districtNum).append(districtHtml);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /*获取售后退货信息*/
|
|
|
- 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() {
|
|
|
- var backGoods_flag = checkBackGoods();
|
|
|
- if (backGoods_flag) {
|
|
|
- $.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){
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /*校验退货填写信息*/
|
|
|
- function checkBackGoods() {
|
|
|
- var backGoods_flag = true;
|
|
|
- var backGoodsBackStatus = $('input[name="backGoodsBackStatus"]:checked').val();//寄回状态
|
|
|
- var backGoodsBackLogisticsNo = $('#backGoodsBackLogisticsNo').val().trim();//物流单号
|
|
|
- var backGoodsBackPostage = $('#backGoodsBackPostage').val().trim();//寄回邮费
|
|
|
- var backGoodsBackLogisticsCompany = $("#backGoodsBackLogisticsCompany option:selected").val();//寄回物流公司
|
|
|
- var backGoodsBackName = $('#backGoodsBackName').val();
|
|
|
- var backGoodsBackTel = $('#backGoodsBackTel').val();
|
|
|
- var backGoodsBackMachineNo = $('#backGoodsBackMachineNo').val();
|
|
|
- if (backGoodsBackStatus == 1) {
|
|
|
- if (backGoodsBackLogisticsNo != null && backGoodsBackLogisticsNo != '') {
|
|
|
- alert("产品未寄回,不能有物流信息!");
|
|
|
- backGoods_flag = false;
|
|
|
- return backGoods_flag;
|
|
|
- }
|
|
|
- if (backGoodsBackPostage != null && backGoodsBackPostage != '') {
|
|
|
- alert("产品未寄回,不能有邮费!");
|
|
|
- backGoods_flag = false;
|
|
|
- return backGoods_flag;
|
|
|
- }
|
|
|
- if (backGoodsBackLogisticsCompany != null && backGoodsBackLogisticsCompany != '') {
|
|
|
- alert("产品未寄回,不能选择物流公司!");
|
|
|
- backGoods_flag = false;
|
|
|
- return backGoods_flag;
|
|
|
- }
|
|
|
- if (backGoodsBackName != null && backGoodsBackName != '') {
|
|
|
- alert("产品未寄回,不能填写寄回人信息!");
|
|
|
- backGoods_flag = false;
|
|
|
- return backGoods_flag;
|
|
|
- }
|
|
|
- if (backGoodsBackTel != null && backGoodsBackTel != '') {
|
|
|
- alert("产品未寄回,不能填写寄回人电话号码!");
|
|
|
- backGoods_flag = false;
|
|
|
- return backGoods_flag;
|
|
|
- }
|
|
|
- if (backGoodsBackMachineNo != null && backGoodsBackMachineNo != '') {
|
|
|
- alert("产品未寄回,不能填写机器编号!");
|
|
|
- backGoods_flag = false;
|
|
|
- return backGoods_flag;
|
|
|
- }
|
|
|
- } else if (backGoodsBackStatus == 2 || backGoodsBackStatus == 3) {
|
|
|
- if (backGoodsBackLogisticsNo == null || backGoodsBackLogisticsNo == '') {
|
|
|
- alert("物流信息不能为空!");
|
|
|
- backGoods_flag = false;
|
|
|
- return backGoods_flag;
|
|
|
- }
|
|
|
- if (!money.test(backGoodsBackPostage)) {
|
|
|
- alert("邮费格式不正确,请重新输入!");
|
|
|
- backGoods_flag = false;
|
|
|
- return backGoods_flag;
|
|
|
- }
|
|
|
- if (backGoodsBackLogisticsCompany == null || backGoodsBackLogisticsCompany == '') {
|
|
|
- alert("请选择物流公司!");
|
|
|
- backGoods_flag = false;
|
|
|
- return backGoods_flag;
|
|
|
- }
|
|
|
- if (!uname.test(backGoodsBackName)) {
|
|
|
- alert("寄回人信息格式不正确,请重新输入!");
|
|
|
- backGoods_flag = false;
|
|
|
- return backGoods_flag;
|
|
|
- }
|
|
|
- if (!mobile.test(backGoodsBackTel)) {
|
|
|
- alert("寄回人电话号码格式不正确,请重新输入!");
|
|
|
- backGoods_flag = false;
|
|
|
- return backGoods_flag;
|
|
|
- }
|
|
|
- if (backGoodsBackMachineNo == null || backGoodsBackMachineNo == '') {
|
|
|
- alert("机器编号不能为空!");
|
|
|
- backGoods_flag = false;
|
|
|
- return backGoods_flag;
|
|
|
- }
|
|
|
- }
|
|
|
- return backGoods_flag;
|
|
|
- }
|
|
|
-
|
|
|
- /*获取售后补发信息*/
|
|
|
- function get_reissue_info(customerId) {
|
|
|
- $.ajax({
|
|
|
- cache: true,
|
|
|
- type: "POST",
|
|
|
- data: {"customerId":customerId},
|
|
|
- url: "${path}/admin/customer/_update_reissue",
|
|
|
- async: false,
|
|
|
- success: function(data){
|
|
|
- if (data.returnCode == 200) {
|
|
|
- var reissue = data.returnMsg.reissue;
|
|
|
- console.log(reissue);
|
|
|
- $('#reissueId').val(reissue.reissueId);
|
|
|
- $('#reissueBackEfastOrderId').html(reissue.reissueBackEfastOrderId);
|
|
|
- $('#reissueSendName').val(reissue.reissueSendName);
|
|
|
- $('#reissueSendTel').val(reissue.reissueSendTel);
|
|
|
- $('#reissueSendLogisticsCompany').val(reissue.reissueSendLogisticsCompany);
|
|
|
- $('#reissueSendLogisticsNo').val(reissue.reissueSendLogisticsNo);
|
|
|
- $('#reissueDesc').val(reissue.reissueDesc);
|
|
|
- var reissueSchedule = '';
|
|
|
- switch (reissue.reissueSendStatus) {
|
|
|
- case 1:reissueSchedule += '未寄送';break;
|
|
|
- case 2:reissueSchedule += '已寄送';break;
|
|
|
- case 3:reissueSchedule += '已收货';break;
|
|
|
- }
|
|
|
- $('#reissueSchedule').html(reissueSchedule);
|
|
|
- $(".reissue_send_status input[value='"+ reissue.reissueSendStatus +"']").attr("checked",true);
|
|
|
- var reissueProduct = '';
|
|
|
- if (reissue.closedProdcues != null && reissue.closedProdcues.length > 0) {
|
|
|
- $.each(reissue.closedProdcues,function(index,element){
|
|
|
- reissueProduct += '<span>'+ this.closedProductName + '*' + this.closedProdcueNumber + '</span>';
|
|
|
- })
|
|
|
- }
|
|
|
- if (reissue.closedFittings != null && reissue.closedFittings.length > 0) {
|
|
|
- $.each(reissue.closedFittings,function(index,element){
|
|
|
- reissueProduct += '<span>'+ this.fittingName + '*' + this.closedFittingNumber + '</span>';
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- getProvince('reissueProvinceNumber');
|
|
|
- getCity('reissueCityNumber',reissue.provinceNumber);
|
|
|
- getDistrict('reissueAreaNumber',reissue.cityNumber);
|
|
|
- $("#reissueProvinceNumber option[value='" + reissue.provinceNumber + "']").attr("selected","true");
|
|
|
- $("#reissueCityNumber option[value='" + reissue.cityNumber + "']").attr("selected","true");
|
|
|
- $("#reissueAreaNumber option[value='" + reissue.areaNumber + "']").attr("selected","true");
|
|
|
- $('#reissueSendAddress').html(reissue.reissueSendAddress);
|
|
|
-
|
|
|
- $('#update-reissue-info').show();
|
|
|
- }
|
|
|
- },
|
|
|
- error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- /*获取售后无理由退货信息*/
|
|
|
- function get_noreason_info(customerId) {
|
|
|
- $.ajax({
|
|
|
- cache: true,
|
|
|
- type: "POST",
|
|
|
- data: {"customerId":customerId},
|
|
|
- url: "${path}/admin/customer/_update_noreason",
|
|
|
- async: false,
|
|
|
- success: function(data){
|
|
|
- if (data.returnCode == 200) {
|
|
|
- var noreasonBack = data.returnMsg.noreasonBack;
|
|
|
- console.log(noreasonBack);
|
|
|
- $('#noreasonBackId').val(noreasonBack.noreasonBackId);
|
|
|
- $('#noreasonBackBackName').val(noreasonBack.noreasonBackBackName);
|
|
|
- $('#noreasonBackBackTel').val(noreasonBack.noreasonBackBackTel);
|
|
|
- $('#noreasonBackBackLogisticsCompany').val(noreasonBack.noreasonBackBackLogisticsCompany);
|
|
|
- $('#noreasonBackBackLogisticsNo').val(noreasonBack.noreasonBackBackLogisticsNo);
|
|
|
- $('#noreasonBackBackPostage').val(noreasonBack.noreasonBackBackPostage/100);
|
|
|
- $('#noreasonBackBackMachineNo').val(noreasonBack.noreasonBackBackMachineNo);
|
|
|
- $('#noreasonBackDesc').val(noreasonBack.noreasonBackDesc);
|
|
|
- var noreasonBackSchedule = '';
|
|
|
- switch (noreasonBack.noreasonBackBackStatus) {
|
|
|
- case 1:noreasonBackSchedule += '未寄回';break;
|
|
|
- case 2:noreasonBackSchedule += '已寄回';break;
|
|
|
- case 3:noreasonBackSchedule += '已收货';break;
|
|
|
- }
|
|
|
- $('#noreasonBackSchedule').html(noreasonBackSchedule);
|
|
|
- $(".noreasonBack_back_status input[value='"+ noreasonBack.noreasonBackBackStatus +"']").attr("checked",true);
|
|
|
- var backProduct = '';
|
|
|
- if (noreasonBack.closedProdcues != null && noreasonBack.closedProdcues.length > 0) {
|
|
|
- $.each(noreasonBack.closedProdcues,function(index,element){
|
|
|
- backProduct += '<span>'+ this.closedProductName + '*' + this.closedProdcueNumber + '</span>';
|
|
|
- })
|
|
|
- }
|
|
|
- if (noreasonBack.closedFittings != null && noreasonBack.closedFittings.length > 0) {
|
|
|
- $.each(noreasonBack.closedFittings,function(index,element){
|
|
|
- backProduct += '<span>'+ this.fittingName + '*' + this.closedFittingNumber + '</span>';
|
|
|
- })
|
|
|
- }
|
|
|
- $('#update-noreason-back').show();
|
|
|
- }
|
|
|
- },
|
|
|
- error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- /*修改售后无理由退货信息*/
|
|
|
- function update_noreason_back() {
|
|
|
- var noreasonBack_flag = checkNoreason();
|
|
|
- if (noreasonBack_flag) {
|
|
|
- $.ajax({
|
|
|
- cache: true,
|
|
|
- type: "POST",
|
|
|
- data: $('#form-update-noreasonBack').serialize(),
|
|
|
- url: "${path}/admin/customer/update_noreason",
|
|
|
- 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-noreason-back').hide();
|
|
|
- },
|
|
|
- error: function (XmlHttpRequest, textStatus, errorThrown) {
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /*校验退货填写信息*/
|
|
|
- function checkNoreason() {
|
|
|
- var noreasonBack_flag = true;
|
|
|
- var noreasonBackBackStatus = $('input[name="noreasonBackBackStatus"]:checked').val();//寄回状态
|
|
|
- var noreasonBackBackLogisticsNo = $('#noreasonBackBackLogisticsNo').val().trim();//物流单号
|
|
|
- var noreasonBackBackPostage = $('#noreasonBackBackPostage').val().trim();//寄回邮费
|
|
|
- var noreasonBackBackLogisticsCompany = $("#noreasonBackBackLogisticsCompany option:selected").val();//寄回物流公司
|
|
|
- var noreasonBackBackName = $('#noreasonBackBackName').val();
|
|
|
- var noreasonBackBackTel = $('#noreasonBackBackTel').val();
|
|
|
- var noreasonBackBackMachineNo = $('#noreasonBackBackMachineNo').val();
|
|
|
- if (noreasonBackBackStatus == 1) {
|
|
|
- if (noreasonBackBackLogisticsNo != null && noreasonBackBackLogisticsNo != '') {
|
|
|
- alert("产品未寄回,不能有物流信息!");
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
- if (noreasonBackBackPostage != null && noreasonBackBackPostage != '') {
|
|
|
- alert("产品未寄回,不能有邮费!");
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
- if (noreasonBackBackLogisticsCompany != null && noreasonBackBackLogisticsCompany != '') {
|
|
|
- alert("产品未寄回,不能选择物流公司!");
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
- if (noreasonBackBackName != null && noreasonBackBackName != '') {
|
|
|
- alert("产品未寄回,不能填写寄回人信息!");
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
- if (noreasonBackBackTel != null && noreasonBackBackTel != '') {
|
|
|
- alert("产品未寄回,不能填写寄回人电话号码!");
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
- if (noreasonBackBackMachineNo != null && noreasonBackBackMachineNo != '') {
|
|
|
- alert("产品未寄回,不能填写机器编号!");
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
- } else if (noreasonBackBackStatus == 2 || noreasonBackBackStatus == 3) {
|
|
|
- if (noreasonBackBackLogisticsNo == null || noreasonBackBackLogisticsNo == '') {
|
|
|
- alert("物流信息不能为空!");
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
- if (!money.test(noreasonBackBackPostage)) {
|
|
|
- alert("邮费格式不正确,请重新输入!");
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
- if (noreasonBackBackLogisticsCompany == null || noreasonBackBackLogisticsCompany == '') {
|
|
|
- alert("请选择物流公司!");
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
- if (!uname.test(noreasonBackBackName)) {
|
|
|
- alert("寄回人信息格式不正确,请重新输入!");
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
- if (!mobile.test(noreasonBackBackTel)) {
|
|
|
- alert("寄回人电话号码格式不正确,请重新输入!");
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
- if (noreasonBackBackMachineNo == null || noreasonBackBackMachineNo == '') {
|
|
|
- alert("机器编号不能为空!");
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
- }
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
-
|
|
|
- /*监听省选择事件*/
|
|
|
- $(document).on('change', '#reissueProvinceNumber', function() {
|
|
|
- var proId = $("#reissueProvinceNumber").val();
|
|
|
- $('#reissueCityNumber option').remove();
|
|
|
- getCity('reissueCityNumber',proId);
|
|
|
- var cityId = $("#reissueCityNumber").val();
|
|
|
- $('#reissueAreaNumber option').remove();
|
|
|
- getDistrict('reissueAreaNumber',cityId);
|
|
|
- });
|
|
|
-
|
|
|
- /*监听市选择事件*/
|
|
|
- $(document).on('change', '#reissueCityNumber', function() {
|
|
|
- var city = $("#reissueCityNumber").val();
|
|
|
- $('#reissueAreaNumber option').remove();
|
|
|
- getDistrict('reissueAreaNumber',city);
|
|
|
- });
|
|
|
-
|
|
|
- /*修改售后补寄信息*/
|
|
|
- function update_reissue_info() {
|
|
|
- var reissue_flag = checkReissue();
|
|
|
- if (reissue_flag) {
|
|
|
- $.ajax({
|
|
|
- cache: true,
|
|
|
- type: "POST",
|
|
|
- data: $('#form-update-reissue').serialize(),
|
|
|
- url: "${path}/admin/customer/update_reissue_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-reissue-info').hide();
|
|
|
- },
|
|
|
- error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /*校验售后补寄填写信息*/
|
|
|
- function checkReissue() {
|
|
|
- var reissue_flag = true;
|
|
|
- var reissueSendName = $('#reissueSendName').val();
|
|
|
- if (!uname.test(reissueSendName)) {
|
|
|
- alert("寄回人信息格式不正确,请重新输入!");
|
|
|
- reissue_flag = false;
|
|
|
- return reissue_flag;
|
|
|
- }
|
|
|
- var reissueSendTel = $('#reissueSendTel').val();
|
|
|
- if (!mobile.test(reissueSendTel)) {
|
|
|
- alert("寄回人电话号码格式不正确,请重新输入!");
|
|
|
- reissue_flag = false;
|
|
|
- return reissue_flag;
|
|
|
- }
|
|
|
- var reissueSendAddress = $('#reissueSendAddress').val();
|
|
|
- if (reissueSendAddress == null || reissueSendAddress == '') {
|
|
|
- alert("寄出地址不能为空!");
|
|
|
- reissue_flag = false;
|
|
|
- return reissue_flag;
|
|
|
- }
|
|
|
- var reissueSendStatus = $('input[name="reissueSendStatus"]:checked').val();//寄回状态
|
|
|
- var reissueSendLogisticsCompany = $('#reissueSendLogisticsCompany').val();//寄出物流公司
|
|
|
- var reissueSendLogisticsNo = $('#reissueSendLogisticsNo').val();//寄出物流单号
|
|
|
- if (reissueSendLogisticsCompany == 1) {
|
|
|
- if (reissueSendLogisticsCompany != null && reissueSendLogisticsCompany != '') {
|
|
|
- alert("产品未寄送,不能选择物流公司!");
|
|
|
- reissue_flag = false;
|
|
|
- return reissue_flag;
|
|
|
- }
|
|
|
- if (reissueSendLogisticsNo != null && reissueSendLogisticsNo != '') {
|
|
|
- alert("产品未寄送,不能填写物流单号!");
|
|
|
- reissue_flag = false;
|
|
|
- return reissue_flag;
|
|
|
- }
|
|
|
- } else if (reissueSendLogisticsCompany == 2 || reissueSendLogisticsCompany == 3) {
|
|
|
- if (reissueSendLogisticsCompany == null || reissueSendLogisticsCompany == '') {
|
|
|
- alert("请选择寄回物流公司!");
|
|
|
- reissue_flag = false;
|
|
|
- return reissue_flag;
|
|
|
- }
|
|
|
- if (reissueSendLogisticsNo == null || reissueSendLogisticsNo == '') {
|
|
|
- alert("请填写物流单号!");
|
|
|
- reissue_flag = false;
|
|
|
- return reissue_flag;
|
|
|
- }
|
|
|
- }
|
|
|
- return reissue_flag;
|
|
|
- }
|
|
|
-
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|