|  | @@ -58,19 +58,19 @@
 | 
	
		
			
				|  |  |  </nav>
 | 
	
		
			
				|  |  |  <article class="page-container" style="padding: 10px;">
 | 
	
		
			
				|  |  |      <div class="pd-20 cl">
 | 
	
		
			
				|  |  | -        <form action="" method="post" class="form form-horizontal" id="form-article-add">
 | 
	
		
			
				|  |  | +        <form action="" method="post" class="form form-horizontal" id="form-signclosed-add">
 | 
	
		
			
				|  |  |              <div class="row cl">
 | 
	
		
			
				|  |  |                  <label class="form-label col-3 col-sm-3"><span class="c-red">*</span>签收类型:</label>
 | 
	
		
			
				|  |  |  				<div class="radio-box">
 | 
	
		
			
				|  |  | -                        <input type="radio" id="tel-1" name="signclosedType" datatype="*"  checked nullmsg="请选择签收类型!">
 | 
	
		
			
				|  |  | +                        <input type="radio" id="tel-1" name="signclosedType" value="1" datatype="*"  checked nullmsg="请选择签收类型!">
 | 
	
		
			
				|  |  |                          <label for="tel-1">客诉寄回</label>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  |                      <div class="radio-box">
 | 
	
		
			
				|  |  | -                        <input type="radio" id="tel-2" name="signclosedType">
 | 
	
		
			
				|  |  | +                        <input type="radio" id="tel-2" name="signclosedType" value="2">
 | 
	
		
			
				|  |  |                          <label for="tel-2">代理商退货</label>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  |                      <div class="radio-box">
 | 
	
		
			
				|  |  | -                        <input type="radio" id="tel-3" name="signclosedType">
 | 
	
		
			
				|  |  | +                        <input type="radio" id="tel-3" name="signclosedType" value="3">
 | 
	
		
			
				|  |  |                          <label for="tel-3">其他</label>
 | 
	
		
			
				|  |  |                          <input type="text" style="width: 150px;margin-left: 10px;" class="input-text" placeholder="选择其他时有值" id="signclosedTypeName" name="signclosedTypeName">
 | 
	
		
			
				|  |  |                      </div>
 | 
	
	
		
			
				|  | @@ -91,13 +91,12 @@
 | 
	
		
			
				|  |  |                          <#if (productList?size > 0)>
 | 
	
		
			
				|  |  |                              <#list productList as product>
 | 
	
		
			
				|  |  |                              <tr >
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |                                  <td>${product.productName!''}</td>
 | 
	
		
			
				|  |  |                                  <td>
 | 
	
		
			
				|  |  |                                      <#if (product.colorList?size > 0)>
 | 
	
		
			
				|  |  |                                          <#list product.colorList as colorList>
 | 
	
		
			
				|  |  | -                                        ${colorList.colorName!''}<input type="text" style="width: 50px;margin-left: 10px;" class="input-text" value="" placeholder="数量" id="" name=""><br>
 | 
	
		
			
				|  |  | +                                            <input type="checkbox" id="" value="${colorList.colorId!''}" name="colorName" datatype="*">${colorList.colorName!''}
 | 
	
		
			
				|  |  | +                                            <input type="text" style="width: 50px;margin-left: 10px;" class="input-text" value="" placeholder="数量" id="colorId${colorList.colorId!''}" name="colorId${colorList.colorId!''}"><br>
 | 
	
		
			
				|  |  |                                          </#list>
 | 
	
		
			
				|  |  |                                      <#else>
 | 
	
		
			
				|  |  |                                          暂无颜色,请先添加产品颜色
 | 
	
	
		
			
				|  | @@ -106,7 +105,8 @@
 | 
	
		
			
				|  |  |                                  <td>
 | 
	
		
			
				|  |  |                                      <#if (product.fittingsList?size > 0)>
 | 
	
		
			
				|  |  |                                          <#list product.fittingsList as fittingsList>
 | 
	
		
			
				|  |  | -                                        ${fittingsList.fittingsName!''}<input type="text" style="width: 50px;margin-left: 10px;" class="input-text" value="" placeholder="数量" id="" name=""><br>
 | 
	
		
			
				|  |  | +                                        <input type="checkbox" id="" value="${fittingsList.fittingsId!''}" name="fittingsName" datatype="*">${fittingsList.fittingsName!''}
 | 
	
		
			
				|  |  | +                                        <input type="text" style="width: 50px;margin-left: 10px;" class="input-text" value="" placeholder="数量" id="fittingsId${fittingsList.fittingsId!''}" name="fittingsId${fittingsList.fittingsId!''}"><br>
 | 
	
		
			
				|  |  |                                          </#list>
 | 
	
		
			
				|  |  |                                      <#else>
 | 
	
		
			
				|  |  |                                          暂无配件,请先添加配件
 | 
	
	
		
			
				|  | @@ -196,7 +196,8 @@
 | 
	
		
			
				|  |  |                              <td>
 | 
	
		
			
				|  |  |                                  <#if (product.colorList?size > 0)>
 | 
	
		
			
				|  |  |                                      <#list product.colorList as colorList>
 | 
	
		
			
				|  |  | -                                    ${colorList.colorName!''}<input type="text" style="width: 50px;margin-left: 10px;" class="input-text" value="" placeholder="数量" id="" name=""><br>
 | 
	
		
			
				|  |  | +                                        <input type="checkbox" id="" value="${colorList.colorId!''}" name="alreadyColorName" datatype="*">${colorList.colorName!''}
 | 
	
		
			
				|  |  | +                                        <input type="text" style="width: 50px;margin-left: 10px;" class="input-text" value="" placeholder="数量" id="alreadyColorId${colorList.colorId!''}" name="alreadyColorId${colorList.colorId!''}"><br>
 | 
	
		
			
				|  |  |                                      </#list>
 | 
	
		
			
				|  |  |                                  <#else>
 | 
	
		
			
				|  |  |                                  暂无颜色,请先添加产品颜色
 | 
	
	
		
			
				|  | @@ -205,7 +206,8 @@
 | 
	
		
			
				|  |  |                              <td>
 | 
	
		
			
				|  |  |                                  <#if (product.fittingsList?size > 0)>
 | 
	
		
			
				|  |  |                                      <#list product.fittingsList as fittingsList>
 | 
	
		
			
				|  |  | -                                    ${fittingsList.fittingsName!''}<input type="text" style="width: 50px;margin-left: 10px;" class="input-text" value="" placeholder="数量" id="" name=""><br>
 | 
	
		
			
				|  |  | +                                        <input type="checkbox" id="" value="${fittingsList.fittingsId!''}" name="alreadyFittingsName" datatype="*">${fittingsList.fittingsName!''}
 | 
	
		
			
				|  |  | +                                        <input type="text" style="width: 50px;margin-left: 10px;" class="input-text" value="" placeholder="数量" id="alreadyFittingsId${fittingsList.fittingsId!''}" name="alreadyFittingsId${fittingsList.fittingsId!''}"><br>
 | 
	
		
			
				|  |  |                                      </#list>
 | 
	
		
			
				|  |  |                                  <#else>
 | 
	
		
			
				|  |  |                                      暂无配件,请先添加配件
 | 
	
	
		
			
				|  | @@ -228,11 +230,11 @@
 | 
	
		
			
				|  |  |                  <label class="form-label col-3 col-sm-3"><span class="c-red">*</span>是否少配件:</label>
 | 
	
		
			
				|  |  |                  <div class="formControls col-5 col-sm-5 skin-minimal">
 | 
	
		
			
				|  |  |                      <div class="radio-box">
 | 
	
		
			
				|  |  | -                        <input type="radio" id="tel-4" name="signclosedIsFittings" datatype="*" checked  >
 | 
	
		
			
				|  |  | +                        <input type="radio" id="tel-4" name="signclosedIsFittings" value="1" datatype="*" checked  >
 | 
	
		
			
				|  |  |                          <label for="tel-4">缺少配件</label>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  |                      <div class="radio-box">
 | 
	
		
			
				|  |  | -                        <input type="radio" id="tel-5" name="signclosedIsFittings" datatype="*">
 | 
	
		
			
				|  |  | +                        <input type="radio" id="tel-5" name="signclosedIsFittings" value="2" datatype="*">
 | 
	
		
			
				|  |  |                          <label for="tel-5">不缺配件</label>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  |                  </div>
 | 
	
	
		
			
				|  | @@ -240,7 +242,7 @@
 | 
	
		
			
				|  |  |              <div class="row cl">
 | 
	
		
			
				|  |  |                  <label class="form-label col-3 col-sm-3"><span class="c-red">*</span>签收日期:</label>
 | 
	
		
			
				|  |  |                  <div class="formControls col-5 col-sm-5 skin-minimal">
 | 
	
		
			
				|  |  | -                   <input type="text" style="width: 150px;margin-left: 10px;" class="input-text" placeholder="签收日期" id="signclosedDate" name="signclosedDate">
 | 
	
		
			
				|  |  | +                   <input type="text" style="width: 150px;margin-left: 10px;" class="input-text my-input-date" placeholder="签收日期" onClick="WdatePicker({skin:'whyGreen',maxDate:'%y-%M-%d'})" id="signclosed_date" name="signclosed_date" readonly="readonly"/>
 | 
	
		
			
				|  |  |                  </div>
 | 
	
		
			
				|  |  |              </div>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -248,11 +250,11 @@
 | 
	
		
			
				|  |  |                  <label class="form-label col-3 col-sm-3"><span class="c-red">*</span>是否品检:</label>
 | 
	
		
			
				|  |  |                  <div class="formControls col-5 col-sm-5 skin-minimal">
 | 
	
		
			
				|  |  |                      <div class="radio-box">
 | 
	
		
			
				|  |  | -                        <input type="radio" id="tel-6" name="signclosedIsQuality" datatype="*" checked  >
 | 
	
		
			
				|  |  | +                        <input type="radio" id="tel-6" name="signclosedIsQuality" value="1" datatype="*" checked  >
 | 
	
		
			
				|  |  |                          <label for="tel-6">需要品检</label>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  |                      <div class="radio-box">
 | 
	
		
			
				|  |  | -                        <input type="radio" id="tel-7" name="signclosedIsQuality" datatype="*">
 | 
	
		
			
				|  |  | +                        <input type="radio" id="tel-7" name="signclosedIsQuality" value="2" datatype="*">
 | 
	
		
			
				|  |  |                          <label for="tel-7">不需要品检</label>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  |                  </div>
 | 
	
	
		
			
				|  | @@ -261,16 +263,41 @@
 | 
	
		
			
				|  |  |                  <label class="form-label col-3 col-sm-3"><span class="c-red">*</span>是否已转入:</label>
 | 
	
		
			
				|  |  |                  <div class="formControls col-5 col-sm-5 skin-minimal">
 | 
	
		
			
				|  |  |                      <div class="radio-box">
 | 
	
		
			
				|  |  | -                        <input type="radio" id="tel-8" name="signclosedIsInto" datatype="*" checked  >
 | 
	
		
			
				|  |  | +                        <input type="radio" id="tel-8" name="signclosedIsInto" value="1" datatype="*" checked  >
 | 
	
		
			
				|  |  |                          <label for="tel-8">已转入品检</label>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  |                      <div class="radio-box">
 | 
	
		
			
				|  |  | -                        <input type="radio" id="tel-9" name="signclosedIsInto" datatype="*">
 | 
	
		
			
				|  |  | +                        <input type="radio" id="tel-9" name="signclosedIsInto" value="2" datatype="*">
 | 
	
		
			
				|  |  |                          <label for="tel-9">未转入品检</label>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  |                  </div>
 | 
	
		
			
				|  |  |              </div>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +            <div class="row cl">
 | 
	
		
			
				|  |  | +                <label class="form-label col-3 col-sm-3"><span class="c-red">*</span>是否已经签收:</label>
 | 
	
		
			
				|  |  | +                <div class="formControls col-5 col-sm-5 skin-minimal">
 | 
	
		
			
				|  |  | +                    <div class="radio-box">
 | 
	
		
			
				|  |  | +                        <input type="radio" id="tel-10" name="signclosedState" onclick="show();" value="1" datatype="*" checked  >
 | 
	
		
			
				|  |  | +                        <label for="tel-8">已签收</label>
 | 
	
		
			
				|  |  | +                    </div>
 | 
	
		
			
				|  |  | +                    <div class="radio-box">
 | 
	
		
			
				|  |  | +                        <input type="radio" id="tel-11" name="signclosedState" onclick="hide();" value="2" datatype="*">
 | 
	
		
			
				|  |  | +                        <label for="tel-9">未签收</label>
 | 
	
		
			
				|  |  | +                    </div>
 | 
	
		
			
				|  |  | +                </div>
 | 
	
		
			
				|  |  | +            </div>
 | 
	
		
			
				|  |  | +            <div class="row cl" id="objectsStateId">
 | 
	
		
			
				|  |  | +                <label class="form-label col-3 col-sm-3"><span class="c-red">*</span>物件状态:</label>
 | 
	
		
			
				|  |  | +                <div class="formControls col-5 col-sm-5 skin-minimal">
 | 
	
		
			
				|  |  | +                    <div class="radio-box">
 | 
	
		
			
				|  |  | +                        <input type="radio" id="tel-12" name="signclosedObjectsState" value="1" datatype="*" checked  >
 | 
	
		
			
				|  |  | +                        <label for="tel-8">正常签收</label>
 | 
	
		
			
				|  |  | +                    </div>
 | 
	
		
			
				|  |  | +                    <div class="radio-box">
 | 
	
		
			
				|  |  | +                        <input type="radio" id="tel-13" name="signclosedObjectsState" value="2" datatype="*">
 | 
	
		
			
				|  |  | +                        <label for="tel-9">物件不对</label>
 | 
	
		
			
				|  |  | +                    </div>
 | 
	
		
			
				|  |  | +                </div>
 | 
	
		
			
				|  |  | +            </div>
 | 
	
		
			
				|  |  |              <div class="row cl">
 | 
	
		
			
				|  |  |                  <label class="form-label col-3 col-sm-3">备注:</label>
 | 
	
		
			
				|  |  |                  <div class="formControls col-5 col-sm-5">
 | 
	
	
		
			
				|  | @@ -279,7 +306,7 @@
 | 
	
		
			
				|  |  |              </div>
 | 
	
		
			
				|  |  |              <div class="row cl">
 | 
	
		
			
				|  |  |                  <div class="col-2 col-sm-2 col-offset-3">
 | 
	
		
			
				|  |  | -                    <button onClick="save_submit();" class="btn btn-block btn-primary size-XL" type="submit">确认录入</button>
 | 
	
		
			
				|  |  | +                    <button onClick="add();" class="btn btn-block btn-primary size-XL" type="button">确认录入</button>
 | 
	
		
			
				|  |  |                  </div>
 | 
	
		
			
				|  |  |              </div>
 | 
	
		
			
				|  |  |          </form>
 | 
	
	
		
			
				|  | @@ -295,416 +322,115 @@
 | 
	
		
			
				|  |  |  <#--<script type="text/javascript" src="${path}/common/lib/cm.lib/dimensions.js"></script>-->
 | 
	
		
			
				|  |  |  <script type="text/javascript" src="${path}/common/lib/cm.lib/suggest.js"></script>
 | 
	
		
			
				|  |  |  <script type="text/javascript">
 | 
	
		
			
				|  |  | -    $(function(){
 | 
	
		
			
				|  |  | -    });
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    $(document).on('click', '.dalog-ask .answer', function() {
 | 
	
		
			
				|  |  | -        $("#answer-textarea").text($(this).find("span").text());
 | 
	
		
			
				|  |  | -    });
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -</script>
 | 
	
		
			
				|  |  | -<script type="text/javascript">
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    /*处理结果的执行状态*/
 | 
	
		
			
				|  |  | -    var isSolve = {
 | 
	
		
			
				|  |  | -        solved : [],
 | 
	
		
			
				|  |  | -        noSolved : [],
 | 
	
		
			
				|  |  | -        renewed : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","换新发货","发货通知用户","收货后回访"],
 | 
	
		
			
				|  |  | -        maintain : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","品质检测","产线维修","换新发货","发货通知用户","收货后回访"],
 | 
	
		
			
				|  |  | -        reissue : ["录入客诉","生成E订单","督促仓库发货","仓库发货","发货通知用户","收货后回访"],
 | 
	
		
			
				|  |  | -        backGoods : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","品质检测","退款","退货完成"],
 | 
	
		
			
				|  |  | -        noReasonBack : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","品质检测","退款","退货完成"]
 | 
	
		
			
				|  |  | +    function hide() {
 | 
	
		
			
				|  |  | +        $("#objectsStateId").hide();
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +    function show() {
 | 
	
		
			
				|  |  | +        $("#objectsStateId").show();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    /*全局标识当前状态  type : 1 :已解决  2:未解决  3:换新  4:维修  5:补发   6:退货  7:无理由退货*/
 | 
	
		
			
				|  |  | -    var allCustomerType = 1;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    /*初始化页面参数*/
 | 
	
		
			
				|  |  | -    $(function () {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        /*初始化问题分类*/
 | 
	
		
			
				|  |  | -        initComplaintTypeInfo();
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        /*初始化客服*/
 | 
	
		
			
				|  |  | -        initSysAdmin();
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        /*初始化产品类型 --  客诉头部的产品类型单选 */
 | 
	
		
			
				|  |  | -        initProduceType();
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        /*初始化选择处理结果 -- type : 1 :已解决  2:未解决  3:换新  4:维修  5:补发   6:退货  7:无理由退货 */
 | 
	
		
			
				|  |  | -        initProcessResult(1);
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        /*监听处理结果选择事件*/
 | 
	
		
			
				|  |  | -        $("[name='customerIsSolve']").change(function(){
 | 
	
		
			
				|  |  | -            initProcessResult(parseInt($(this).val()));
 | 
	
		
			
				|  |  | -            allCustomerType = parseInt($(this).val());
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        /*监听问题类型 选择事件*/
 | 
	
		
			
				|  |  | -        $("[name='complaintId']").change(function(){
 | 
	
		
			
				|  |  | -            initComplaintSmallClassInfo($(this).val());
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  | +    $(function(){
 | 
	
		
			
				|  |  | +        var province = listProvince(null,null);
 | 
	
		
			
				|  |  | +        var provinceHtml = '';
 | 
	
		
			
				|  |  | +        for(var i=0;i<province.length;i++){
 | 
	
		
			
				|  |  | +                provinceHtml += '<option value="'+ province[i].provinceId +'">'+ province[i].province +'</option>';
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        $("#province").html(provinceHtml);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        /*监听问题关键字搜索*/
 | 
	
		
			
				|  |  | -        $(document).on('click', '#search_button', function() {
 | 
	
		
			
				|  |  | -            initComplaintQuestionInfo();
 | 
	
		
			
				|  |  | -        });
 | 
	
		
			
				|  |  | +       var city = listCity(null,null);
 | 
	
		
			
				|  |  | +        var cityHtml = '';
 | 
	
		
			
				|  |  | +        for(var i=0;i<city.length;i++){
 | 
	
		
			
				|  |  | +            cityHtml += '<option value="'+ city[i].cityId +'">'+ city[i].city +'</option>';
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        $("#city").html(cityHtml);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        /*搜索订单事件*/
 | 
	
		
			
				|  |  | -        $(document).on('click', '#selectOrder', function() {
 | 
	
		
			
				|  |  | -            selectOrder();
 | 
	
		
			
				|  |  | -        });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          /*监听省选择事件*/
 | 
	
		
			
				|  |  |          $(document).on('change', '#province', function() {
 | 
	
		
			
				|  |  |              var proId = $("#province").val();
 | 
	
		
			
				|  |  | -            var cityId = setCity("",proId,2)
 | 
	
		
			
				|  |  | -            setDistrict("",cityId,2)
 | 
	
		
			
				|  |  | -        });
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        /*监听市选择事件*/
 | 
	
		
			
				|  |  | -        $(document).on('change', '#city', function() {
 | 
	
		
			
				|  |  | -            var city = $("#city").val();
 | 
	
		
			
				|  |  | -            setDistrict("",city,2)
 | 
	
		
			
				|  |  | -        });
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        /* 初始化单选框样式 */
 | 
	
		
			
				|  |  | -        initCheck();
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    })
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    /*初始化单选框样式*/
 | 
	
		
			
				|  |  | -    function initCheck(){
 | 
	
		
			
				|  |  | -        $('.skin-minimal input').iCheck({
 | 
	
		
			
				|  |  | -            checkboxClass: 'icheckbox-blue',
 | 
	
		
			
				|  |  | -            radioClass: 'iradio-blue',
 | 
	
		
			
				|  |  | -            increaseArea: '20%'
 | 
	
		
			
				|  |  | -        });
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    /*初始化产品类型 --  客诉头部的产品类型单选*/
 | 
	
		
			
				|  |  | -    function initProduceType(){
 | 
	
		
			
				|  |  | -        var html = "";
 | 
	
		
			
				|  |  | -        $.ajax({
 | 
	
		
			
				|  |  | -            type: "POST",
 | 
	
		
			
				|  |  | -            data: {
 | 
	
		
			
				|  |  | -            },
 | 
	
		
			
				|  |  | -            url: "${path}/admin/customer/select_produce_type",
 | 
	
		
			
				|  |  | -            async: false,
 | 
	
		
			
				|  |  | -            success: function(data){
 | 
	
		
			
				|  |  | -                if (data.returnCode == 200) {
 | 
	
		
			
				|  |  | -                    var check = "checked";
 | 
	
		
			
				|  |  | -                    for(var i=0;i<data.returnMsg.productTypeList.length;i++){
 | 
	
		
			
				|  |  | -                        var produce = data.returnMsg.productTypeList[i];
 | 
	
		
			
				|  |  | -                        html += ' <div class="radio-box">' +
 | 
	
		
			
				|  |  | -                                '<input type="radio" id="tel-3" name="produceType" datatype="*" value="'+ produce.typeId +'"  '+ check +' nullmsg="请选择产品类型!" >' +
 | 
	
		
			
				|  |  | -                                ' <label for="tel-3">'+ produce.typeName +'</label>' +
 | 
	
		
			
				|  |  | -                                ' </div>';
 | 
	
		
			
				|  |  | -                        check = "";
 | 
	
		
			
				|  |  | -                    }
 | 
	
		
			
				|  |  | -                }else{
 | 
	
		
			
				|  |  | -                    html = '';
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -            },
 | 
	
		
			
				|  |  | -            error: function(XmlHttpRequest, textStatus, errorThrown){
 | 
	
		
			
				|  |  | +            var city = listCity(proId,null);
 | 
	
		
			
				|  |  | +            var cityHtml = '';
 | 
	
		
			
				|  |  | +            for(var i=0;i<city.length;i++){
 | 
	
		
			
				|  |  | +                cityHtml += '<option value="'+ city[i].cityId +'">'+ city[i].city +'</option>';
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | +            $("#city").html(cityHtml);
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  | -        $("#produceTypeHtml").html(html);
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +    });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    /**
 | 
	
		
			
				|  |  | -     * 设置地址
 | 
	
		
			
				|  |  | -     */
 | 
	
		
			
				|  |  | -    function setAdress(){
 | 
	
		
			
				|  |  | -        var addres = $("#addressInfo").val();
 | 
	
		
			
				|  |  | +    function  add() {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        $("#addrssMsg").html("");
 | 
	
		
			
				|  |  | -        if(addres == null){
 | 
	
		
			
				|  |  | -            $("#addrssMsg").html("*未能获取到地址,请手动选择地址");
 | 
	
		
			
				|  |  | +        var signclosedType = $("#signclosedType").val();
 | 
	
		
			
				|  |  | +        if( signclosedType == 3){
 | 
	
		
			
				|  |  | +            var signclosedTypeName = $("#signclosedTypeName").val();
 | 
	
		
			
				|  |  | +            if( signclosedTypeName == null || signclosedTypeName == "" ) {
 | 
	
		
			
				|  |  | +                layer.msg('类型为其他时需填值', {icon: 5, time: 1000});
 | 
	
		
			
				|  |  | +                return;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        var signclosedLogisticsNumber = $("#signclosedLogisticsNumber").val();
 | 
	
		
			
				|  |  | +        if( signclosedLogisticsNumber == null || signclosedLogisticsNumber == "" ){
 | 
	
		
			
				|  |  | +            layer.msg('物流单号不能为空',{icon: 5,time:1000});
 | 
	
		
			
				|  |  |              return;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        var addresList = addres.split("-");
 | 
	
		
			
				|  |  | -        if(addresList[0] == null || addresList[1]==null || addresList[2]==null || addresList[3]==null){
 | 
	
		
			
				|  |  | -            $("#addrssMsg").html("*未能获取到地址,请手动选择地址");
 | 
	
		
			
				|  |  | +        if( signclosedLogisticsNumber.length > 300 ){
 | 
	
		
			
				|  |  | +            layer.msg('物流单号长度不得大于20个字符',{icon: 5,time:1000});
 | 
	
		
			
				|  |  |              return;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        var proId = setPro(getAddress(addresList[0],0),1);
 | 
	
		
			
				|  |  | -        var cityId = setCity(getAddress(addresList[1],1),proId,1);
 | 
	
		
			
				|  |  | -        setDistrict(getAddress(addresList[2],2),cityId,1);
 | 
	
		
			
				|  |  | -        $("#sendAddress").val(addresList[3]);
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    /***
 | 
	
		
			
				|  |  | -     * 删除 “省”,“市”,“区”关键字
 | 
	
		
			
				|  |  | -     * type : 0:省   2:市   3:区
 | 
	
		
			
				|  |  | -     */
 | 
	
		
			
				|  |  | -    function getAddress(addrss,type) {
 | 
	
		
			
				|  |  | -        var abbreviation = "";
 | 
	
		
			
				|  |  | -        if(addrss == ""){
 | 
	
		
			
				|  |  | -            abbreviation = "";
 | 
	
		
			
				|  |  | -        }else{
 | 
	
		
			
				|  |  | -            switch(type)
 | 
	
		
			
				|  |  | -            {
 | 
	
		
			
				|  |  | -                case 0:
 | 
	
		
			
				|  |  | -                    var proReg = new RegExp("省","g");
 | 
	
		
			
				|  |  | -                    abbreviation = addrss.replace(proReg,"");
 | 
	
		
			
				|  |  | -                    break;
 | 
	
		
			
				|  |  | -                case 1:
 | 
	
		
			
				|  |  | -                    var cityReg = new RegExp("市","g");
 | 
	
		
			
				|  |  | -                    abbreviation = addrss.replace(cityReg,"");
 | 
	
		
			
				|  |  | -                    break;
 | 
	
		
			
				|  |  | -                case 2:
 | 
	
		
			
				|  |  | -                    var districtReg = new RegExp("市","g");
 | 
	
		
			
				|  |  | -                    abbreviation = addrss.replace(districtReg,"");
 | 
	
		
			
				|  |  | -                    break;
 | 
	
		
			
				|  |  | -                default:
 | 
	
		
			
				|  |  | -                    break;
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | +        var signclosedSendName = $("#signclosedSendName").val();
 | 
	
		
			
				|  |  | +        if( signclosedSendName == null || signclosedSendName == "" ){
 | 
	
		
			
				|  |  | +            layer.msg('寄件人姓名不能为空',{icon: 5,time:1000});
 | 
	
		
			
				|  |  | +            return;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        return abbreviation
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    /**
 | 
	
		
			
				|  |  | -     * 设置省
 | 
	
		
			
				|  |  | -     * type  1:搜索订单赋值   2:只查询全部,默认第一个
 | 
	
		
			
				|  |  | -     */
 | 
	
		
			
				|  |  | -    function setPro(provinceName,type) {
 | 
	
		
			
				|  |  | -        var proId = '';
 | 
	
		
			
				|  |  | -        var province = listProvince();
 | 
	
		
			
				|  |  | -        var selectPro = {};
 | 
	
		
			
				|  |  | -        if(type == 1){
 | 
	
		
			
				|  |  | -            selectPro = listProvince("",provinceName);
 | 
	
		
			
				|  |  | -        }else if(type == 2){
 | 
	
		
			
				|  |  | -            selectPro = null;
 | 
	
		
			
				|  |  | +        if( signclosedSendName.length > 10 ){
 | 
	
		
			
				|  |  | +            layer.msg('寄件人姓名长度不得大于10个字符',{icon: 5,time:1000});
 | 
	
		
			
				|  |  | +            return;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        if(province!=null){
 | 
	
		
			
				|  |  | -            var provinceHtml = ''
 | 
	
		
			
				|  |  | -            for(var i=0;i<province.length;i++){
 | 
	
		
			
				|  |  | -                if(selectPro!= null && province[i].provinceId == selectPro[0].provinceId){
 | 
	
		
			
				|  |  | -                    proId = selectPro[0].provinceId;
 | 
	
		
			
				|  |  | -                    provinceHtml += '<option value="'+ province[i].provinceId +'" selected>'+ province[i].province +'</option>';
 | 
	
		
			
				|  |  | -                }else{
 | 
	
		
			
				|  |  | -                    provinceHtml += '<option value="'+ province[i].provinceId +'">'+ province[i].province +'</option>';
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            $("#province").html(provinceHtml);
 | 
	
		
			
				|  |  | +        var signclosedSendTel = $("#signclosedSendTel").val();
 | 
	
		
			
				|  |  | +        if( signclosedSendTel == null || signclosedSendTel == "" ){
 | 
	
		
			
				|  |  | +            layer.msg('请输入寄件人电话',{icon: 5,time:1000});
 | 
	
		
			
				|  |  | +            return;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        return proId;
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    /**
 | 
	
		
			
				|  |  | -     * 设置市
 | 
	
		
			
				|  |  | -     * type  1:搜索订单赋值   2:只查询全部,默认第一个
 | 
	
		
			
				|  |  | -     */
 | 
	
		
			
				|  |  | -    function setCity(cityName,proId,type) {
 | 
	
		
			
				|  |  | -        var cityId = '';
 | 
	
		
			
				|  |  | -        var city = listCity(proId,"");
 | 
	
		
			
				|  |  | -        var selectCity = {};
 | 
	
		
			
				|  |  | -        if(type == 1){
 | 
	
		
			
				|  |  | -            selectCity = listCity(proId,cityName);
 | 
	
		
			
				|  |  | -        }else if(type == 2){
 | 
	
		
			
				|  |  | -            selectCity = null;
 | 
	
		
			
				|  |  | -            cityId = city[0].cityId;
 | 
	
		
			
				|  |  | +        if( signclosedSendTel.length > 11 ){
 | 
	
		
			
				|  |  | +            layer.msg('寄件人电话长度不得大于11个字符',{icon: 5,time:1000});
 | 
	
		
			
				|  |  | +            return;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        if(city!=null){
 | 
	
		
			
				|  |  | -            var cityHtml = ''
 | 
	
		
			
				|  |  | -            for(var i=0;i<city.length;i++){
 | 
	
		
			
				|  |  | -                if(selectCity != null && city[i].cityId == selectCity[0].cityId){
 | 
	
		
			
				|  |  | -                    cityId = city[i].cityId;
 | 
	
		
			
				|  |  | -                    cityHtml += '<option value="'+ city[i].cityId +'" selected>'+ city[i].city +'</option>';
 | 
	
		
			
				|  |  | -                }else{
 | 
	
		
			
				|  |  | -                    cityHtml += '<option value="'+ city[i].cityId +'">'+ city[i].city +'</option>';
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            $("#city").html(cityHtml);
 | 
	
		
			
				|  |  | +        var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
 | 
	
		
			
				|  |  | +        if(!myreg.test(signclosedSendTel)){
 | 
	
		
			
				|  |  | +            layer.msg('寄件人电话格式不正确',{icon: 5,time:1000});
 | 
	
		
			
				|  |  | +            return;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        return cityId;
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    /**
 | 
	
		
			
				|  |  | -     * 设置区
 | 
	
		
			
				|  |  | -     * type  1:搜索订单赋值   2:只查询全部,默认第一个
 | 
	
		
			
				|  |  | -     */
 | 
	
		
			
				|  |  | -    function setDistrict(districtName,cityId,type) {
 | 
	
		
			
				|  |  | -        var district = listDistrict(cityId,"");
 | 
	
		
			
				|  |  | -        var selectDistrict = {};
 | 
	
		
			
				|  |  | -        if(type == 1){
 | 
	
		
			
				|  |  | -            selectDistrict = listDistrict(cityId,districtName);
 | 
	
		
			
				|  |  | -        }else if(type == 2){
 | 
	
		
			
				|  |  | -            selectDistrict = null;
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -        if(district!=null){
 | 
	
		
			
				|  |  | -            var districtHtml = ''
 | 
	
		
			
				|  |  | -            for(var i=0;i<district.length;i++){
 | 
	
		
			
				|  |  | -                if(selectDistrict != null && district[i].districtId == selectDistrict[0].districtId){
 | 
	
		
			
				|  |  | -                    districtHtml += '<option value="'+ district[i].districtId +'" selected>'+ district[i].district +'</option>';
 | 
	
		
			
				|  |  | -                }else{
 | 
	
		
			
				|  |  | -                    districtHtml += '<option value="'+ district[i].districtId +'">'+ district[i].district +'</option>';
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | +        var signclosedDesc = $("#signclosedDesc").val();
 | 
	
		
			
				|  |  | +        if( signclosedDesc != null || signclosedDesc == "" ){
 | 
	
		
			
				|  |  | +            if( signclosedDesc.length > 300 ){
 | 
	
		
			
				|  |  | +                layer.msg('备注长度不得大于150个字符',{icon: 5,time:1000});
 | 
	
		
			
				|  |  | +                return;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            $("#district").html(districtHtml);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    /**
 | 
	
		
			
				|  |  | -     * 展示产品
 | 
	
		
			
				|  |  | -     * @param produceList
 | 
	
		
			
				|  |  | -     */
 | 
	
		
			
				|  |  | -    function setProduce(orderItemList) {
 | 
	
		
			
				|  |  | -        var html = "";
 | 
	
		
			
				|  |  | -        $.ajax({
 | 
	
		
			
				|  |  | -            type: "POST",
 | 
	
		
			
				|  |  | -            data: {
 | 
	
		
			
				|  |  | -            },
 | 
	
		
			
				|  |  | -            url: "${path}/admin/customer/select_produce",
 | 
	
		
			
				|  |  | -            async: false,
 | 
	
		
			
				|  |  | -            success: function(data){
 | 
	
		
			
				|  |  | -                if (data.returnCode == 200) {
 | 
	
		
			
				|  |  | -                    for(var i=0;i<data.returnMsg.productList.length;i++){
 | 
	
		
			
				|  |  | -                        var product = data.returnMsg.productList[i];    //所有产品
 | 
	
		
			
				|  |  | -                        var produceFittings = getProduceFittings(product.productId);  //获取该产品的所有配件
 | 
	
		
			
				|  |  | -                        var colorList = product.colorList;  //该产品的所有颜色
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -                        var isColorSelect = false;
 | 
	
		
			
				|  |  | -                        var selectColor = new Array();    //颜色选择html和颜色数量对应 对象
 | 
	
		
			
				|  |  | -                        if(colorList != null){
 | 
	
		
			
				|  |  | -                            for(var m=0;m<orderItemList.length;m++){
 | 
	
		
			
				|  |  | -                                var colorNumber = 1;
 | 
	
		
			
				|  |  | -                                var colorHtml = '';
 | 
	
		
			
				|  |  | -                                for(var j=0;j<colorList.length;j++){
 | 
	
		
			
				|  |  | -                                    var colors = {};
 | 
	
		
			
				|  |  | -                                    if(colorList[j].colorId == orderItemList[m].itemColorId){
 | 
	
		
			
				|  |  | -                                        colorHtml += '<option value="'+ colorList[j].colorId +'" selected>'+ colorList[j].colorName +'</option>';
 | 
	
		
			
				|  |  | -                                        isColorSelect = true;
 | 
	
		
			
				|  |  | -                                        colorNumber = orderItemList[m].itemNum;
 | 
	
		
			
				|  |  | -                                    }else{
 | 
	
		
			
				|  |  | -                                        colorHtml += '<option value="'+ colorList[j].colorId +'">'+ colorList[j].colorName +'</option>';
 | 
	
		
			
				|  |  | -                                    }
 | 
	
		
			
				|  |  | -                                }
 | 
	
		
			
				|  |  | -                                colors.colorNumber = colorNumber;
 | 
	
		
			
				|  |  | -                                colors.colorHtml = colorHtml;
 | 
	
		
			
				|  |  | -                                selectColor.push(colors);
 | 
	
		
			
				|  |  | -                            }
 | 
	
		
			
				|  |  | -                        }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -                        var fittingsHtml = '';
 | 
	
		
			
				|  |  | -                        if(produceFittings != null){
 | 
	
		
			
				|  |  | -                            for(var k=0;k<produceFittings.length;k++){
 | 
	
		
			
				|  |  | -                                fittingsHtml += '<div class="check-box">' +
 | 
	
		
			
				|  |  | -                                        '<input type="checkbox" id="checkbox-2" name="ck-produce-fittings" value="'+ produceFittings[k].fittingsId +'">' +
 | 
	
		
			
				|  |  | -                                        '<label for="checkbox-2">'+ produceFittings[k].fittingsName +'</label>' +
 | 
	
		
			
				|  |  | -                                        '<input type="text" class="input-text" style="width: 40px;text-align: center;" value="1" placeholder="" id="" name="produceFittings">' +
 | 
	
		
			
				|  |  | -                                        '</div>';
 | 
	
		
			
				|  |  | -                            }
 | 
	
		
			
				|  |  | -                        }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -                        var isChecked = '';
 | 
	
		
			
				|  |  | -                        if(isColorSelect){
 | 
	
		
			
				|  |  | -                            isChecked = 'checked';
 | 
	
		
			
				|  |  | -                        }
 | 
	
		
			
				|  |  | -                        for(var f=0;f<selectColor.length;f++){
 | 
	
		
			
				|  |  | -                            html += '<div class="skin-minimal">' +
 | 
	
		
			
				|  |  | -                                    '        <div class="check-box">' +
 | 
	
		
			
				|  |  | -                                    '            <input type="checkbox" name="ck-produce" id="checkbox-'+ i +'" '+ isChecked +'>' +
 | 
	
		
			
				|  |  | -                                    '' +
 | 
	
		
			
				|  |  | -                                    '           <label for="checkbox-'+ i +'" name="produceName">'+ convertUndefinedToEmpty(product.typeName) +'</label> -' +
 | 
	
		
			
				|  |  | -                                    '           <input type="hidden" name="productType" value="">' +
 | 
	
		
			
				|  |  | -                                    '' +
 | 
	
		
			
				|  |  | -                                    '            <label for="checkbox-'+ i +'">'+ convertUndefinedToEmpty(product.productName) +'</label>' +
 | 
	
		
			
				|  |  | -                                    '           <input type="hidden" name="productId" value="">' +
 | 
	
		
			
				|  |  | -                                    '' +
 | 
	
		
			
				|  |  | -                                    '            <select class="select colorId" name="colorId" style="width: 100px;">' +
 | 
	
		
			
				|  |  | -                                    selectColor[f].colorHtml +
 | 
	
		
			
				|  |  | -                                    '            </select>' +
 | 
	
		
			
				|  |  | -                                    '            <input type="text" class="input-text" style="width: 40px;text-align: center;" value="'+ selectColor[f].colorNumber +'" placeholder="" id="" name="produceNumber">' +
 | 
	
		
			
				|  |  | -                                    '        </div>' +
 | 
	
		
			
				|  |  | -                                    fittingsHtml +
 | 
	
		
			
				|  |  | -                                    '    </div>';
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -                            if(!isColorSelect){
 | 
	
		
			
				|  |  | -                                break;
 | 
	
		
			
				|  |  | -                            }
 | 
	
		
			
				|  |  | -                        }
 | 
	
		
			
				|  |  | -                    }
 | 
	
		
			
				|  |  | -                }else{
 | 
	
		
			
				|  |  | -                    html = '';
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -            },
 | 
	
		
			
				|  |  | -            error: function(XmlHttpRequest, textStatus, errorThrown){
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -        });
 | 
	
		
			
				|  |  | -        $("#produceSelect").html(html);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        initCheck(); //因为需要展示产品,所以再次初始化多选框
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        setBackProduct();  //设置寄回产品
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        monitorProduct();   //监听产品变化
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    /*获取产品配件*/
 | 
	
		
			
				|  |  | -    function getProduceFittings(productId){
 | 
	
		
			
				|  |  | -        var produceFittings;
 | 
	
		
			
				|  |  |          $.ajax({
 | 
	
		
			
				|  |  | -            type: "get",
 | 
	
		
			
				|  |  | -            data: {
 | 
	
		
			
				|  |  | -                productId : productId
 | 
	
		
			
				|  |  | -            },
 | 
	
		
			
				|  |  | -            url: "${path}/admin/customer/select_produce_fittings",
 | 
	
		
			
				|  |  | +            cache: true,
 | 
	
		
			
				|  |  | +            type: "POST",
 | 
	
		
			
				|  |  | +            url: "${path}/admin/signclosed/add_signclosed",
 | 
	
		
			
				|  |  | +            data:$('#form-signclosed-add').serialize(),// 你的formid
 | 
	
		
			
				|  |  |              async: false,
 | 
	
		
			
				|  |  |              success: function(data){
 | 
	
		
			
				|  |  |                  if (data.returnCode == 200) {
 | 
	
		
			
				|  |  | -                    produceFittings = data.returnMsg.produceFittingsList;
 | 
	
		
			
				|  |  | +                    layer.msg('添加成功',{icon: 1,time:1000},function () {
 | 
	
		
			
				|  |  | +                        location.replace(location.href);
 | 
	
		
			
				|  |  | +                    });
 | 
	
		
			
				|  |  | +                } else {
 | 
	
		
			
				|  |  | +                    layer.msg('添加失败',{icon: 5,time:1000});
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |              error: function(XmlHttpRequest, textStatus, errorThrown){
 | 
	
		
			
				|  |  | +                layer.msg('添加错误',{icon: 5,time:1000});
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  | -        return produceFittings;
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    /*监听产品变化*/
 | 
	
		
			
				|  |  | -    function monitorProduct(){
 | 
	
		
			
				|  |  | -        /*产品的多选框*/
 | 
	
		
			
				|  |  | -        $("#produceSelect").find("input[name='ck-produce']").change(function (){
 | 
	
		
			
				|  |  | -            setBackProduct();
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  | -        /*选择产品颜色*/
 | 
	
		
			
				|  |  | -        $("#produceSelect").find(".colorId").change(function (){
 | 
	
		
			
				|  |  | -            setBackProduct();
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  | -        /*产品数量*/
 | 
	
		
			
				|  |  | -        $("#produceSelect").find("input[name='produceNumber']").blur(function (){
 | 
	
		
			
				|  |  | -            setBackProduct();
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  | -        /*配件数量*/
 | 
	
		
			
				|  |  | -        $("#produceSelect").find("input[name='produceFittings']").blur(function (){
 | 
	
		
			
				|  |  | -            setBackProduct();
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  | -        /*配件多选框*/
 | 
	
		
			
				|  |  | -        $("#produceSelect").find("input[name='ck-produce-fittings']").click(function (){
 | 
	
		
			
				|  |  | -            setBackProduct();
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    /*设置寄回产品*/
 | 
	
		
			
				|  |  | -    function setBackProduct() {
 | 
	
		
			
				|  |  | -        $("#produceSelect").find(".skin-minimal").each(function (){
 | 
	
		
			
				|  |  | -            var isChecked = $(this).find("input[name='ck-produce']").attr('checked');
 | 
	
		
			
				|  |  | -            var produceName =  $(this).find("input[name='produceName']").eq(0).html();
 | 
	
		
			
				|  |  | -            alert(isChecked + "--" +produceName);
 | 
	
		
			
				|  |  | -//            if(){
 | 
	
		
			
				|  |  | -//                html = '<div class="update-parts" style="margin-bottom: 10px;"><span>红色净水机(wx-1)x 1台</span><span>水箱 x 1件</span><span>t1 x 1件</span><span>t2 x 1件</span></div>';
 | 
	
		
			
				|  |  | -//            }
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -    
 | 
	
		
			
				|  |  |  </script>
 | 
	
		
			
				|  |  |  <!--/请在上方写此页面业务相关的脚本-->
 | 
	
		
			
				|  |  |  </body>
 |