|
@@ -1,624 +0,0 @@
|
|
|
-<!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" />
|
|
|
-<#include "/base/add_base.ftl">
|
|
|
- <link href="${path}/common/static/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
|
|
|
- <link href="${path}/common/static/h-ui.admin/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
|
|
|
- <link href="${path}/common/lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
|
|
|
- <link href="${path}/common/lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" type="text/css" />
|
|
|
- <style>
|
|
|
- .btn-primary{background-color: #32a3d8;}
|
|
|
- #province select{margin-right:10px; width:100px;height: 31px;-webkit-appearance:none !important;appearance:none;background: url(images/select-1.png) right center no-repeat;background-size: auto 100%;padding-left:3px;padding-right: 25px;}
|
|
|
- .select-box{background: url(${path}/common/images/pts/select-1.png) right center no-repeat;background-size: auto 100%;}
|
|
|
- .select-box select{-webkit-appearance:none !important;background-color: transparent; appearance:none;padding-right: 25px;}
|
|
|
- .table-bg th{background-color: #e2f6ff;}
|
|
|
- .update-parts>span{margin-right: 10px;padding: 3px 4px;background-color: #effaff;border: 1px solid #32a3d8;}
|
|
|
- .my-btn-search{border: 1px solid #32a3d8;padding: 1px 25px;height: 20px;background-color: #32a3d8;color: #fff;}
|
|
|
- </style>
|
|
|
- <title></title>
|
|
|
-</head>
|
|
|
-<body>
|
|
|
-<article class="cl pd-20">
|
|
|
- <form action="" method="post" class="form form-horizontal" id="form-update-noreasonBack" name="form-update-noreasonBack">
|
|
|
-
|
|
|
- <div class="row cl" style="margin-left: -60px;margin-bottom: 20px;">
|
|
|
- <div class="formControls col-2 col-sm-2 text-r">
|
|
|
- <strong>当前进度</strong>
|
|
|
- </div>
|
|
|
- <div class="formControls col-10 col-sm-10">
|
|
|
- <input type="hidden" id="noreasonBackId" name="noreasonBackId" seleType="primary"/>
|
|
|
- <span id="noreasonBackSchedule" class="c-red"></span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <input type="hidden" id="customerId" name="customerId" value="${customerId!''}" seleType="primary">
|
|
|
-
|
|
|
- <div id="tab_demo" class="HuiTab">
|
|
|
-
|
|
|
- <div class="tabBar clearfix"><span>寄回信息</span><span>邮费信息</span><span>工厂检查信息</span><span>工厂返修进度</span></div>
|
|
|
- <div class="tabCon">
|
|
|
- <div class="row cl">
|
|
|
- <div class="formControls col-2 col-sm-2 text-r">
|
|
|
- <strong>产品寄回</strong>
|
|
|
- </div>
|
|
|
- <div class="formControls col-8 col-sm-8 skin-minimal">
|
|
|
- <div class="radio-box">
|
|
|
- <input type="radio" id="tel-3" name="noreasonBackBackStatus" value="1" seleType="send">
|
|
|
- <label for="tel-3">未寄回</label>
|
|
|
- </div>
|
|
|
- <div class="radio-box">
|
|
|
- <input type="radio" id="tel-4" name="noreasonBackBackStatus" value="2" seleType="send">
|
|
|
- <label for="tel-4">已寄回</label>
|
|
|
- </div>
|
|
|
- <div class="radio-box">
|
|
|
- <input type="radio" id="tel-5" name="noreasonBackBackStatus" value="4" seleType="send">
|
|
|
- <label for="tel-5">签收待确认</label>
|
|
|
- </div>
|
|
|
- <div class="radio-box">
|
|
|
- <input type="radio" id="tel-6" name="noreasonBackBackStatus" value="3" seleType="send">
|
|
|
- <label for="tel-6">已收货</label>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="row cl" id="backLogisticsInfo">
|
|
|
- <div class="formControls col-2 col-sm-2 text-r">
|
|
|
- <strong>寄回信息</strong>
|
|
|
- </div>
|
|
|
- <div class="formControls col-4 col-sm-4">
|
|
|
- <div style="width: 100%;display: inline-block;margin-right: 10px;">
|
|
|
- <span class="select-box">
|
|
|
- <select name="noreasonBackBackLogisticsCompany" id="noreasonBackBackLogisticsCompany" class="select" seleType="send">
|
|
|
- <option value="">物流公司</option>
|
|
|
- <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="dbkd">德邦快递</option>
|
|
|
- <option value="01">其他</option>
|
|
|
- <option value="02">上门送货</option>
|
|
|
- <option value="lianhaowuliu">联昊通</option>
|
|
|
- </select>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="formControls col-4 col-sm-4">
|
|
|
- <input style="" type="text" class="input-text" value="" placeholder="请输入快递单号" id="noreasonBackBackLogisticsNo" name="noreasonBackBackLogisticsNo" seleType="send">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="row cl" id="backUserInfo">
|
|
|
- <div class="formControls col-2 col-sm-2 text-r">
|
|
|
- <strong>寄件信息</strong>
|
|
|
- </div>
|
|
|
- <div class="formControls col-4 col-sm-4">
|
|
|
- <input type="text" class="input-text" value="" placeholder="寄件人姓名" id="noreasonBackBackName" name="noreasonBackBackName" seleType="send">
|
|
|
- </div>
|
|
|
- <div class="formControls col-4 col-sm-4">
|
|
|
- <input type="text" class="input-text" value="" placeholder="寄件人电话" id="noreasonBackBackTel" name="noreasonBackBackTel" seleType="send">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="row cl" style="position: relative;/*display: none;*/">
|
|
|
- <div class="formControls col-2 col-sm-2 text-r">
|
|
|
- <strong>仓库签收时间</strong>
|
|
|
- </div>
|
|
|
- <div class="formControls col-4 col-sm-4">
|
|
|
- <input type="text" placeholder="请选择仓库签收时间" id="noreasonBackReceiptDate" name="noreasonBackReceiptDate" datatype="*" class="input-text Wdate" onclick="WdatePicker({skin:'whyGreen',maxDate:'%y-%M-%d'})" readonly="readonly" seleType="send">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="row cl">
|
|
|
- <div class="formControls col-2 col-sm-2">
|
|
|
- </div>
|
|
|
- <div class="formControls col-8 col-sm-8 text-c">
|
|
|
- <button onClick="update_noreason_back(1);" class="btn btn-primary" type="button">确认提交</button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="tabCon">
|
|
|
- <div class="row cl" id="backTransferInfo" >
|
|
|
- <div class="formControls col-2 col-sm-2 text-r">
|
|
|
- <strong>邮费处理</strong>
|
|
|
- </div>
|
|
|
- <div class="formControls col-8 col-sm-8 skin-minimal">
|
|
|
- <div class="radio-box">
|
|
|
- <input type="radio" id="tel-6" name="noreasonBackIsTransfer" value="0" seleType="postage">
|
|
|
- <label for="tel-6">不需要转账</label>
|
|
|
- </div>
|
|
|
- <#--<div class="radio-box">-->
|
|
|
- <#--<input type="radio" id="tel-10" name="noreasonBackIsTransfer" value="10" seleType="postage">-->
|
|
|
- <#--<label for="tel-10">需要转账</label>-->
|
|
|
- <#--</div>-->
|
|
|
- <div class="radio-box">
|
|
|
- <input type="radio" id="tel-7" name="noreasonBackIsTransfer" value="1" seleType="postage">
|
|
|
- <label for="tel-7">已转账</label>
|
|
|
- </div>
|
|
|
- <div class="radio-box">
|
|
|
- <input type="radio" id="tel-8" name="noreasonBackIsTransfer" value="2" seleType="postage">
|
|
|
- <label for="tel-8">已申请待转账</label>
|
|
|
- </div>
|
|
|
- <div class="radio-box">
|
|
|
- <input type="radio" id="tel-9" name="noreasonBackIsTransfer" value="3" seleType="postage">
|
|
|
- <label for="tel-9">未申请</label>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="row cl" id="postageInformation">
|
|
|
- <div class="formControls col-2 col-sm-2 text-r">
|
|
|
- <strong>邮费信息</strong>
|
|
|
- </div>
|
|
|
- <div class="formControls col-9 col-sm-9 text-r">
|
|
|
- <div class="formControls col-4 col-sm-4 text-r" style="padding-left: 0px;">
|
|
|
- <input type="text" class="input-text" value="" placeholder="寄回邮费" id="noreasonBackBackPostage" name="noreasonBackBackPostage" seleType="postage">
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="formControls col-4 col-sm-4 text-r" style="padding-left: 0px;">
|
|
|
- <input type="text" class="input-text" value="" placeholder="用户支付宝账户" id="noreasonBackAlipay" name="noreasonBackAlipay" seleType="postage">
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="formControls col-4 col-sm-4 text-r" style="padding-left: 0px;">
|
|
|
- <input type="text" class="input-text" value="" placeholder="用户支付宝姓名" id="noreasonBackAlipayName" name="noreasonBackAlipayName" seleType="postage">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="row cl">
|
|
|
- <div class="formControls col-2 col-sm-2">
|
|
|
- </div>
|
|
|
- <div class="formControls col-8 col-sm-8 text-c">
|
|
|
- <button onClick="update_noreason_back(2);" class="btn btn-primary" type="button">确认提交</button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="tabCon">
|
|
|
- <div class="row cl" style="margin-left: -70px;">
|
|
|
- <div class="formControls col-2 col-sm-2 text-r">
|
|
|
- <strong>QC进度</strong>
|
|
|
- </div>
|
|
|
- <div class="formControls col-10 col-sm-10">
|
|
|
- <table class="table table-border table-bg table-bordered">
|
|
|
- <tbody class="text-c" id="detect_table"><tr>
|
|
|
- <th>工厂检测现象</th><th>故障分类</th><th>故障原因</th><th>判定结果</th><th>故障指向</th><th>原因分析</th><th>生产维修</th>
|
|
|
- </tr>
|
|
|
- </tbody></table>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="tabCon">
|
|
|
- <div class="row cl" style="margin-left: -70px;">
|
|
|
- <div class="formControls col-2 col-sm-2 text-r">
|
|
|
- <strong>返修进度</strong>
|
|
|
- </div>
|
|
|
- <div class="formControls col-10 col-sm-10">
|
|
|
- <table class="table table-border table-bg table-bordered">
|
|
|
- <tbody class="text-c" id="maintenance_table"><tr>
|
|
|
- <th>是否可返修</th><th>返修内容</th><th>返修日期</th>
|
|
|
- </tr>
|
|
|
- </tbody></table>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
-</article>
|
|
|
-<script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
|
|
|
-<script type="text/javascript" src="${path}/common/lib/icheck/jquery.icheck.min.js"></script>
|
|
|
-<script type="text/javascript">
|
|
|
-
|
|
|
- $(function(){
|
|
|
- $.Huitab("#tab_demo .tabBar span","#tab_demo .tabCon","current","click","0")}
|
|
|
- );
|
|
|
-
|
|
|
- var mobile= /^1(3|4|5|7|8)\d{9}$/; //手机号码
|
|
|
- var uname = /^[\u4e00-\u9fa5a-zA-Z]{1,12}$/; //中文英文
|
|
|
- var money = /^(0{1}|([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/;//金额
|
|
|
-
|
|
|
- $(function(){
|
|
|
- $('.skin-minimal input').iCheck({
|
|
|
- checkboxClass: 'icheckbox-blue',
|
|
|
- radioClass: 'iradio-blue',
|
|
|
- increaseArea: '20%'
|
|
|
- });
|
|
|
- get_noreason_info();
|
|
|
- showUpdateSendProduct();
|
|
|
-
|
|
|
- /*/!* 监听寄回状态按钮 *!/
|
|
|
- $("input[name='noreasonBackBackStatus']").change(function (){
|
|
|
- initBackInfo( $(this).val());
|
|
|
- })*/
|
|
|
- });
|
|
|
-
|
|
|
- /*/!*初始化寄回信息*!/
|
|
|
- function initBackInfo(statusCode){
|
|
|
- if(statusCode == 1){
|
|
|
- $("#backLogisticsInfo").hide();
|
|
|
- $("#backTransferInfo").hide();
|
|
|
- $("#backUserInfo").hide();
|
|
|
- }else{
|
|
|
- $("#backLogisticsInfo").show();
|
|
|
- $("#backTransferInfo").show();
|
|
|
- $("#backUserInfo").show();
|
|
|
- }
|
|
|
- }*/
|
|
|
-
|
|
|
- /*显示所有产品及配件信息*/
|
|
|
- function showUpdateSendProduct() {
|
|
|
- var productList = getProduct() ; //所有产品
|
|
|
- var html = "";
|
|
|
- if(productList == null){
|
|
|
- return false;
|
|
|
- }
|
|
|
- for(var i=0;i<productList.length;i++) {
|
|
|
- var product = productList[i];
|
|
|
- var produceFittings = product.fittingsList; //获取该产品的所有配件
|
|
|
- var colorList = product.colorList; //该产品的所有颜色
|
|
|
-
|
|
|
- var colorHtml = '';
|
|
|
- if(colorList != null && colorList.length >0 ){
|
|
|
- colorHtml += '<table style="height: 100%;">';
|
|
|
- for(var j=0;j<colorList.length;j++){
|
|
|
- var number = "";
|
|
|
- var color = colorList[j];
|
|
|
- /*for(var k=0;k<orderItemList.length;k++){
|
|
|
- var item = orderItemList[k];
|
|
|
- if(item.itemColorId == color.colorId){
|
|
|
- number = item.itemNum;
|
|
|
- }
|
|
|
- }*/
|
|
|
- var fristInputStyle = "border-top: 1px solid #ddd;";
|
|
|
- if(color.colorProductId == product.productId) {
|
|
|
- colorHtml += '<tr >' +
|
|
|
- ' <td width="75" class="input-color-name" style="border-left: none;text-align: center;'+ fristInputStyle +'">' + color.colorName + '</td>' +
|
|
|
- ' <td width="25" style="'+ fristInputStyle +'">' +
|
|
|
- ' <input type="hidden" class="input-produce-id" value="' + color.colorProductId + '">' +
|
|
|
- ' <input type="hidden" class="input-color-id" value="' + color.colorId + '">' +
|
|
|
- ' <input type="hidden" class="input-produce-name" value="' + product.productName + '">' +
|
|
|
- ' <input type="text" class="input-text input-color-number number-input" style="width: 100%;" value="'+ number +'" placeholder="产品数量" id="" name="" onkeyup="keyFun($(this))" onpaste="keyFun($(this))" >' +
|
|
|
- ' </td>' +
|
|
|
- ' </tr>';
|
|
|
- fristInputStyle = "";
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- colorHtml += '</table>';
|
|
|
- }else{
|
|
|
- colorHtml += '<span>暂无该产品的颜色!<span>';
|
|
|
- }
|
|
|
-
|
|
|
- var produceFittingsHtml = '';
|
|
|
- if(produceFittings != null && produceFittings.length > 0){
|
|
|
- produceFittingsHtml += '<table style="height: 100%;">';
|
|
|
- for(var m=0;m<produceFittings.length;m++){
|
|
|
- var produceFit = produceFittings[m];
|
|
|
- if(produceFit.productId == product.productId) {
|
|
|
- var fristInputStyle = "border-top: 1px solid #ddd;";
|
|
|
- produceFittingsHtml += '<tr >' +
|
|
|
- ' <td width="75" class="input-fittings-name" style="border-left: none;text-align: center; '+ fristInputStyle +'">' + produceFit.fittingsName +'</td>' +
|
|
|
- ' <td width="25" style="'+ fristInputStyle +'">' +
|
|
|
- ' <input type="hidden" class="input-produce-id" value="' + produceFit.productId + '">' +
|
|
|
- ' <input type="hidden" class="input-fittings-id" value="' + produceFit.fittingsId +'">' +
|
|
|
- ' <input type="text" class="input-text input-fittings-number" style="width: 100%;" value="'+ number +'" placeholder="配件数量" id="" name="" onkeyup="keyFun($(this))" onpaste="keyFun($(this))" >' +
|
|
|
- ' </td>' +
|
|
|
- ' </tr>';
|
|
|
- fristInputStyle = "";
|
|
|
- }
|
|
|
- }
|
|
|
- produceFittingsHtml += '</table>';
|
|
|
- }else{
|
|
|
- produceFittingsHtml += '<span>暂无产品配件!<span>';
|
|
|
- }
|
|
|
-
|
|
|
- var produceHtml = '<input type="hidden" value="'+ product.productId +'">' +
|
|
|
- '<span>'+ product.productName +'</span>';
|
|
|
-
|
|
|
- html += ' <tr >' +
|
|
|
- ' <td width="70">'+ produceHtml +'</td>' +
|
|
|
- ' <td style="padding: 0px;text-align: center;">' +
|
|
|
- colorHtml +
|
|
|
- ' </td>' +
|
|
|
- ' <td style="padding: 0px;text-align: center;">' +
|
|
|
- produceFittingsHtml +
|
|
|
- ' </td>' +
|
|
|
- '</tr>';
|
|
|
- }
|
|
|
- html += '<tr><td colspan="3" style="text-align: center;"><button onClick="hideProductList();" class="btn btn-primary" type="button">确认</button></td></tr>'
|
|
|
- $("#addProduct").html(html);
|
|
|
- }
|
|
|
-
|
|
|
- function showProductList() {
|
|
|
- $('#produceSelect').show();
|
|
|
- }
|
|
|
-
|
|
|
- function hideProductList() {
|
|
|
- var txt_product = '';
|
|
|
- var color_numbers = '';
|
|
|
- var fittings_numbers = '';
|
|
|
- $("#addProduct").find(".input-color-number").each(function(){
|
|
|
- var number = $(this).val();
|
|
|
- if(number != null && number != ""){
|
|
|
- var productId = $(this).parent().find(".input-produce-id").val();
|
|
|
- var colorId = $(this).parent().find(".input-color-id").val();
|
|
|
- var productName = $(this).parent().find(".input-produce-name").val();
|
|
|
- //var colorName = $(this).parent().find(".input-color-name").val();
|
|
|
- //封装更换的所有产品
|
|
|
- color_numbers += productId + ':' + colorId + ":" + number + ",";
|
|
|
- txt_product += '<span style="margin-bottom: 10px;display: inline-block;float: left;">'+ productName + '*' + number + '台</span>';
|
|
|
- }
|
|
|
- });
|
|
|
- $("#addProduct").find(".input-fittings-number").each(function(){
|
|
|
- var number = $(this).val();
|
|
|
- if(number != null && number != ""){
|
|
|
- var productId = $(this).parent().find(".input-produce-id").val();
|
|
|
- var fittingsId = $(this).parent().find(".input-fittings-id").val();
|
|
|
- var fittingsName = $(this).parent().parent().find(".input-fittings-name").html();
|
|
|
- //var colorName = $(this).parent().find(".input-color-name").val();
|
|
|
- //封装更换的所有产品
|
|
|
- fittings_numbers += productId + ':' + fittingsId + ":" + number + ",";
|
|
|
- txt_product += '<span style="margin-bottom: 10px;display: inline-block;float: left;">'+ fittingsName + '*' + number + '件</span>';
|
|
|
- }
|
|
|
- })
|
|
|
- $('#noreasonBackProduct').html(txt_product);
|
|
|
- $('#closed_products').val(color_numbers);
|
|
|
- $('#closed_fittings').val(fittings_numbers);
|
|
|
- $('#produceSelect').hide();
|
|
|
- }
|
|
|
-
|
|
|
- /*获取产品*/
|
|
|
- function getProduct(){
|
|
|
- var productList;
|
|
|
- var productName = $("#selectProcuct").val();
|
|
|
- if(productName == null || productName == ""){
|
|
|
- var productTable = '<td colspan="3">暂无数据!</td>';
|
|
|
- $("#addProduct").html(productTable);
|
|
|
- return null;
|
|
|
- }
|
|
|
- $.ajax({
|
|
|
- type: "POST",
|
|
|
- data:{'productName':productName},
|
|
|
- url: "${path}/admin/signclosed/select_product",
|
|
|
- async: false,
|
|
|
- success: function(data){
|
|
|
- if (data.returnCode == 200) {
|
|
|
- $("#addProduct").html("");
|
|
|
- productList = data.returnMsg.productList;
|
|
|
- }else{
|
|
|
- var productTable = '<td colspan="3">暂无数据!</td>';
|
|
|
- $("#addProduct").html(productTable);
|
|
|
- return null;
|
|
|
- }
|
|
|
- },
|
|
|
- error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
- }
|
|
|
- });
|
|
|
- return productList;
|
|
|
- }
|
|
|
-
|
|
|
- /*获取售后无理由退货信息*/
|
|
|
- function get_noreason_info() {
|
|
|
- $.ajax({
|
|
|
- cache: true,
|
|
|
- type: "POST",
|
|
|
- data: {"customerId":${customerId}},
|
|
|
- url: "${path}/admin/customer/get_noreason_back",
|
|
|
- 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);
|
|
|
- $('#noreasonBackAlipay').val(noreasonBack.noreasonBackAlipay);
|
|
|
- $('#noreasonBackAlipayName').val(noreasonBack.noreasonBackAlipayName);
|
|
|
- $('#noreasonBackReceiptDate').val(formatDate(noreasonBack.noreasonBackReceiptDate));
|
|
|
- $('input[name="noreasonBackIsTransfer"]').each(function(){
|
|
|
- if (this.value == noreasonBack.noreasonBackIsTransfer) {
|
|
|
- $(this).iCheck('check');
|
|
|
- }
|
|
|
- });
|
|
|
- /*$('#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);
|
|
|
- $('input[name="noreasonBackBackStatus"]').each(function(){
|
|
|
- if (this.value == noreasonBack.noreasonBackBackStatus) {
|
|
|
- $(this).iCheck('check');
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- /*/!*初始化寄回信息*!/
|
|
|
- initBackInfo(noreasonBack.noreasonBackBackStatus);*/
|
|
|
-
|
|
|
- var noreasonProduct = '';
|
|
|
- if (noreasonBack.closedProdcues != null && noreasonBack.closedProdcues.length > 0) {
|
|
|
- $.each(noreasonBack.closedProdcues,function(index,element){
|
|
|
- noreasonProduct += '<span style="margin-bottom: 10px;display: inline-block;float: left;">'+ this.closedProductName + '*' + this.closedProdcueNumber + '</span>';
|
|
|
- })
|
|
|
- }
|
|
|
- if (noreasonBack.closedFittings != null && noreasonBack.closedFittings.length > 0) {
|
|
|
- $.each(noreasonBack.closedFittings,function(index,element){
|
|
|
- noreasonProduct += '<span style="margin-bottom: 10px;display: inline-block;float: left;">'+ this.closedFittingsName + '*' + this.closedFittingNumber + '</span>';
|
|
|
- })
|
|
|
- }
|
|
|
- $('#noreasonBackProduct').html(noreasonProduct);
|
|
|
- }
|
|
|
- },
|
|
|
- error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- function getseleType(type){
|
|
|
- var obj = new Object();
|
|
|
- var oldName = "";
|
|
|
- $("[seleType="+ type +"]").each(function(){
|
|
|
- var name = $(this).attr("name");
|
|
|
- if(oldName != name){
|
|
|
- oldName = name
|
|
|
- if($(this).attr("type") == "radio"){
|
|
|
- obj[name] = $("[name="+ name +"]:checked").val();
|
|
|
- }else{
|
|
|
- obj[name] = $("[name="+ name +"]").val();
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- $("[seleType='primary']").each(function(){
|
|
|
- var name = $(this).attr("name");
|
|
|
- if(oldName != name){
|
|
|
- oldName = name;
|
|
|
- obj[name] = $("[name="+ name +"]").val();
|
|
|
- }
|
|
|
- });
|
|
|
- return obj;
|
|
|
- }
|
|
|
-
|
|
|
- /*修改售后无理由退货信息*/
|
|
|
- function update_noreason_back(type) {
|
|
|
- var noreasonBack_flag = checkNoreason(type);
|
|
|
-
|
|
|
- var noreasonBackBackPostage = $("#noreasonBackBackPostage").val();
|
|
|
- $("#noreasonBackBackPostage").val(parseInt(noreasonBackBackPostage*100));
|
|
|
-
|
|
|
- var obj = null;
|
|
|
- if(type == 1){
|
|
|
- obj = getseleType("send");
|
|
|
- }else if(type == 2){
|
|
|
- obj = getseleType("postage");
|
|
|
- }else if(type ==3){
|
|
|
- obj = getseleType("sendInformation");
|
|
|
- }
|
|
|
-
|
|
|
- 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) {
|
|
|
- window.parent.custome_result(data.resultMsg,1);
|
|
|
- parent.location.reload();
|
|
|
- var index = parent.layer.getFrameIndex(window.name);
|
|
|
- parent.layer.close(index);
|
|
|
- } else {
|
|
|
- window.parent.custome_result(data.resultMsg,5);
|
|
|
- }
|
|
|
- },
|
|
|
- error: function (XmlHttpRequest, textStatus, errorThrown) {
|
|
|
- window.parent.admin_result("修改失败!",5);
|
|
|
- var index = parent.layer.getFrameIndex(window.name);
|
|
|
- parent.layer.close(index);
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /*校验无理由退货填写信息*/
|
|
|
- function checkNoreason(type) {
|
|
|
- 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 noreasonBackAlipay = $("#noreasonBackAlipay").val();
|
|
|
- var noreasonBackAlipayName = $("#noreasonBackAlipayName").val();
|
|
|
-
|
|
|
- if(type == 1 ){ //寄回信息
|
|
|
- if(noreasonBackBackStatus == 2 || noreasonBackBackStatus == 3){
|
|
|
- if (noreasonBackBackLogisticsCompany == null || noreasonBackBackLogisticsCompany == '') {
|
|
|
- vailErrorMsg($('#noreasonBackBackLogisticsCompany'),"需要选择物流公司!");
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
- if (noreasonBackBackLogisticsNo == null || noreasonBackBackLogisticsNo == '') {
|
|
|
- vailErrorMsg($('#noreasonBackBackLogisticsNo'),"需要填写物流单号!");
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
- if (noreasonBackBackName == null || noreasonBackBackName == '') {
|
|
|
- vailErrorMsg($('#noreasonBackBackName'),"需要填写寄件人信息!");
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
- if (noreasonBackBackTel == null || noreasonBackBackTel == '') {
|
|
|
- vailErrorMsg($('#noreasonBackBackTel'),"需要填写寄件人信息!");
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
- if (!mobile.test(noreasonBackBackTel)) {
|
|
|
- vailErrorMsg($('#noreasonBackBackTel'),"寄回人电话号码格式不正确,请重新输入!");
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
-// if (!uname.test(noreasonBackBackName)) {
|
|
|
-// alert("寄回人信息格式不正确,请重新输入!");
|
|
|
-// backGoods_flag = false;
|
|
|
-// return backGoods_flag;
|
|
|
-// }
|
|
|
- }
|
|
|
- if (noreasonBackBackStatus == 3) {
|
|
|
- var noreasonBackReceiptDate = $('#noreasonBackReceiptDate').val();//仓库签收时间
|
|
|
- if (noreasonBackReceiptDate == null || noreasonBackReceiptDate == '') {
|
|
|
- layer.msg("仓库签收时间不能为空",{icon: 5,time:1000});
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
- }
|
|
|
- }else if(type == 2){
|
|
|
- if (noreasonBackBackPostage == null || noreasonBackBackPostage == '') {
|
|
|
- vailErrorMsg($('#noreasonBackBackPostage'),"需要填写邮费!");
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
- if (!money.test(noreasonBackBackPostage)) {
|
|
|
- vailErrorMsg($('#noreasonBackBackPostage'),"邮费格式不正确,请重新输入!");
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
- if (noreasonBackAlipay == null || noreasonBackAlipay == '') {
|
|
|
- vailErrorMsg($('#noreasonBackAlipay'),"需要填写支付宝账户!");
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
- if (noreasonBackAlipayName == null || noreasonBackAlipayName == '') {
|
|
|
- vailErrorMsg($('#noreasonBackAlipayName'),"需要填写支付宝姓名!");
|
|
|
- noreasonBack_flag = false;
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
- }
|
|
|
- return noreasonBack_flag;
|
|
|
- }
|
|
|
-
|
|
|
-</script>
|
|
|
-</body>
|
|
|
-</html>
|