|  | @@ -32,53 +32,31 @@
 | 
												
													
														
															|  |  <article class="page-container">
 |  |  <article class="page-container">
 | 
												
													
														
															|  |      <form class="form form-horizontal" id="form-admin-add">
 |  |      <form class="form form-horizontal" id="form-admin-add">
 | 
												
													
														
															|  |          <div class="input-box">
 |  |          <div class="input-box">
 | 
												
													
														
															|  | 
 |  | +            <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;"><span class="c-red">*</span>客诉编号:</label>
 | 
												
													
														
															|  | 
 |  | +            <div class="formControls col-8 col-sm-8 text-c huanhang" style="margin-left: -4.5%;">
 | 
												
													
														
															|  | 
 |  | +                <input class="my-input-date" type="text"  name="customerId" id="customerId" placeholder="请输入客诉编号,如没有请留空"/>
 | 
												
													
														
															|  | 
 |  | +            </div>
 | 
												
													
														
															|  | 
 |  | +        </div>
 | 
												
													
														
															|  | 
 |  | +        <div class="input-box">
 | 
												
													
														
															|  |              <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;"><span class="c-red">*</span>检测产品:</label>
 |  |              <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;"><span class="c-red">*</span>检测产品:</label>
 | 
												
													
														
															|  | -            <div class="formControls col-9 col-sm-9 text-c huanhang" style="margin-bottom: 15px;">
 |  | 
 | 
												
													
														
															|  | -                <table class="table table-border table-bg table-bordered" style="width: 420px;">
 |  | 
 | 
												
													
														
															|  | -                    <thead>
 |  | 
 | 
												
													
														
															|  | -                    <tr class="text-c">
 |  | 
 | 
												
													
														
															|  | -                        <th style="text-align: center;" width="100">产品名称</th>
 |  | 
 | 
												
													
														
															|  | -                        <th style="text-align: center;" width="50">产品颜色</th>
 |  | 
 | 
												
													
														
															|  | -                        <th style="text-align: center;" width="50">产品编号</th>
 |  | 
 | 
												
													
														
															|  | -                    </tr>
 |  | 
 | 
												
													
														
															|  | -                    </thead>
 |  | 
 | 
												
													
														
															|  | -                    <tbody id="addProduct">
 |  | 
 | 
												
													
														
															|  | 
 |  | +            <div class="formControls col-9 col-sm-9 huanhang" style="margin-bottom: 15px;">
 | 
												
													
														
															|  | 
 |  | +                <select id="productId" name="productId" class="select" style="width: 150px;">
 | 
												
													
														
															|  |                      <#if (productList?size > 0)>
 |  |                      <#if (productList?size > 0)>
 | 
												
													
														
															|  | -                        <#list productList as product>
 |  | 
 | 
												
													
														
															|  | -                        <tr>
 |  | 
 | 
												
													
														
															|  | 
 |  | +                            <#list productList as product>
 | 
												
													
														
															|  | 
 |  | +                                <option value="${product.productId!""}">${product.productName!""}</option>
 | 
												
													
														
															|  | 
 |  | +                            </#list>
 | 
												
													
														
															|  | 
 |  | +                    </#if>
 | 
												
													
														
															|  | 
 |  | +                </select>
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -                        <td>
 |  | 
 | 
												
													
														
															|  | -                            <div class="formControls col-xs-12 col-sm-12 skin-minimal">
 |  | 
 | 
												
													
														
															|  | -                                <input type="radio"  id="radio-1${product.productId!''}" name="productId" value="${product.productId!''}" <#if product_index == 0>checked</#if>/>
 |  | 
 | 
												
													
														
															|  | -                                <label for="radio-1${product.productId!''}">  ${product.productName!''}</label>
 |  | 
 | 
												
													
														
															|  | -                            </div>
 |  | 
 | 
												
													
														
															|  | -                        </td>
 |  | 
 | 
												
													
														
															|  | -                        <td>
 |  | 
 | 
												
													
														
															|  | -                            <select name="colorId${product.productId!''}" id="colorId${product.productId!''}" style="width:90%" class="my-select">
 |  | 
 | 
												
													
														
															|  | -                            <#if (product.colorList?size > 0)>
 |  | 
 | 
												
													
														
															|  | -                                <#list product.colorList as colorList>
 |  | 
 | 
												
													
														
															|  | -                                    <option value ="${colorList.colorId!''}">${colorList.colorName!''}</option>
 |  | 
 | 
												
													
														
															|  | -                                </#list>
 |  | 
 | 
												
													
														
															|  | -                            <#else>
 |  | 
 | 
												
													
														
															|  | -                                <option value ="">暂无颜色</option>
 |  | 
 | 
												
													
														
															|  | -                            </#if>
 |  | 
 | 
												
													
														
															|  | -                            </select>
 |  | 
 | 
												
													
														
															|  | -                        </td>
 |  | 
 | 
												
													
														
															|  | -                        <td>
 |  | 
 | 
												
													
														
															|  | -                            <input class="input-text" type="text" id="maintenanceEquipmentNumber${product.productId!''}" name="maintenanceEquipmentNumber${product.productId!''}" style="width: 100%;" placeholder="机器编号" /><br>
 |  | 
 | 
												
													
														
															|  | -                        </td>
 |  | 
 | 
												
													
														
															|  | 
 |  | +                <select id="productColorId" name="productColorId" class="select" style="width: 150px;">
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -                        </tr>
 |  | 
 | 
												
													
														
															|  | -                        </#list>
 |  | 
 | 
												
													
														
															|  | -                    </#if>
 |  | 
 | 
												
													
														
															|  | -                    </tbody>
 |  | 
 | 
												
													
														
															|  | -                </table>
 |  | 
 | 
												
													
														
															|  | 
 |  | +                </select>
 | 
												
													
														
															|  |              </div>
 |  |              </div>
 | 
												
													
														
															|  |          </div>
 |  |          </div>
 | 
												
													
														
															|  |          <div class="input-box">
 |  |          <div class="input-box">
 | 
												
													
														
															|  |              <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;"><span class="c-red">*</span>检测日期:</label>
 |  |              <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;"><span class="c-red">*</span>检测日期:</label>
 | 
												
													
														
															|  |              <div class="formControls col-8 col-sm-8 text-c huanhang" style="margin-left: -4.5%;">
 |  |              <div class="formControls col-8 col-sm-8 text-c huanhang" style="margin-left: -4.5%;">
 | 
												
													
														
															|  | -                <input class="my-input-date" type="text"  name="detect_date" id="detectDate" onClick="WdatePicker({skin:'whyGreen',maxDate:'%y-%M-%d'})" placeholder="请选择检测日期" readonly="readonly"/>
 |  | 
 | 
												
													
														
															|  | 
 |  | +                <input class="my-input-date" type="text"  name="itemDate" id="itemDate" onClick="WdatePicker({skin:'whyGreen',maxDate:'%y-%M-%d'})" placeholder="请选择检测日期" readonly="readonly"/>
 | 
												
													
														
															|  |              </div>
 |  |              </div>
 | 
												
													
														
															|  |          </div>
 |  |          </div>
 | 
												
													
														
															|  |  
 |  |  
 | 
												
											
												
													
														
															|  | @@ -86,11 +64,11 @@
 | 
												
													
														
															|  |              <label class="col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;"><span class="c-red">*</span>检测结果:</label>
 |  |              <label class="col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;"><span class="c-red">*</span>检测结果:</label>
 | 
												
													
														
															|  |              <div class="formControls col-xs-7 col-sm-7 skin-minimal huanhang" style="margin: 10px 0px;">
 |  |              <div class="formControls col-xs-7 col-sm-7 skin-minimal huanhang" style="margin: 10px 0px;">
 | 
												
													
														
															|  |                  <div class="radio-box">
 |  |                  <div class="radio-box">
 | 
												
													
														
															|  | -                    <input type="radio" id="radio-3" name="detectState" value="3" checked/>
 |  | 
 | 
												
													
														
															|  | 
 |  | +                    <input type="radio" id="radio-3" name="maintenanceResults" value="1" checked/>
 | 
												
													
														
															|  |                      <label for="radio-3">检测通过</label>
 |  |                      <label for="radio-3">检测通过</label>
 | 
												
													
														
															|  |                  </div>
 |  |                  </div>
 | 
												
													
														
															|  |                  <div class="radio-box">
 |  |                  <div class="radio-box">
 | 
												
													
														
															|  | -                    <input type="radio" id="radio-4" name="detectState" value="4"/>
 |  | 
 | 
												
													
														
															|  | 
 |  | +                    <input type="radio" id="radio-4" name="maintenanceResults" value="2"/>
 | 
												
													
														
															|  |                      <label for="radio-4">检测未通过</label>
 |  |                      <label for="radio-4">检测未通过</label>
 | 
												
													
														
															|  |                  </div>
 |  |                  </div>
 | 
												
													
														
															|  |              </div>
 |  |              </div>
 | 
												
											
												
													
														
															|  | @@ -98,53 +76,59 @@
 | 
												
													
														
															|  |          <div class="input-box" >
 |  |          <div class="input-box" >
 | 
												
													
														
															|  |              <label class="col-3 col-sm-3 huanhang"  style="text-align: right;margin: 10px 0px;"><span class="c-red">*</span>工厂检测现象:</label>
 |  |              <label class="col-3 col-sm-3 huanhang"  style="text-align: right;margin: 10px 0px;"><span class="c-red">*</span>工厂检测现象:</label>
 | 
												
													
														
															|  |              <div class="formControls col-xs-7 col-sm-7 skin-minimal" style="margin: 10px 0px;">
 |  |              <div class="formControls col-xs-7 col-sm-7 skin-minimal" style="margin: 10px 0px;">
 | 
												
													
														
															|  | -                    <textarea style="margin-left: 0%;" rows="3" cols="20" name="detectPhenomenon" id="detectPhenomenon" class="my-textarea" placeholder="工厂检测现象"></textarea>
 |  | 
 | 
												
													
														
															|  | 
 |  | +                    <textarea style="margin-left: 0%;" rows="3" cols="20" name="detectItemPhenomenon" id="detectItemPhenomenon" class="my-textarea" placeholder="工厂检测现象"></textarea>
 | 
												
													
														
															|  |              </div>
 |  |              </div>
 | 
												
													
														
															|  |          </div>
 |  |          </div>
 | 
												
													
														
															|  |          <div class="input-box">
 |  |          <div class="input-box">
 | 
												
													
														
															|  |              <label class="col-3 col-sm-3 huanhang"  style="text-align: right;margin: 10px 0px;"><span class="c-red">*</span>故障分类:</label>
 |  |              <label class="col-3 col-sm-3 huanhang"  style="text-align: right;margin: 10px 0px;"><span class="c-red">*</span>故障分类:</label>
 | 
												
													
														
															|  |              <div class="formControls col-xs-7 col-sm-7 skin-minimal" style="margin: 10px 0px;">
 |  |              <div class="formControls col-xs-7 col-sm-7 skin-minimal" style="margin: 10px 0px;">
 | 
												
													
														
															|  | -                <textarea style="margin-left: 0%;" rows="3" cols="20" name="detectFailureClassification" id="detectFailureClassification" class="my-textarea" placeholder="故障分类"></textarea>
 |  | 
 | 
												
													
														
															|  | 
 |  | +                <textarea style="margin-left: 0%;" rows="3" cols="20" name="detectItemClassification" id="detectItemClassification" class="my-textarea" placeholder="故障分类"></textarea>
 | 
												
													
														
															|  |              </div>
 |  |              </div>
 | 
												
													
														
															|  |          </div>
 |  |          </div>
 | 
												
													
														
															|  |          <div class="input-box">
 |  |          <div class="input-box">
 | 
												
													
														
															|  |              <label class="col-3 col-sm-3 huanhang"  style="text-align: right;margin: 10px 0px;"><span class="c-red">*</span>故障原因:</label>
 |  |              <label class="col-3 col-sm-3 huanhang"  style="text-align: right;margin: 10px 0px;"><span class="c-red">*</span>故障原因:</label>
 | 
												
													
														
															|  |              <div class="formControls col-xs-7 col-sm-7 skin-minimal" style="margin: 10px 0px;">
 |  |              <div class="formControls col-xs-7 col-sm-7 skin-minimal" style="margin: 10px 0px;">
 | 
												
													
														
															|  | -            <textarea style="margin-left: 0%;" rows="3" cols="20" name="detectFailureCause" id="detectFailureCause" class="my-textarea" placeholder="故障原因"></textarea>
 |  | 
 | 
												
													
														
															|  | 
 |  | +            <textarea style="margin-left: 0%;" rows="3" cols="20" name="detectItemFailureCause" id="detectItemFailureCause" class="my-textarea" placeholder="故障原因"></textarea>
 | 
												
													
														
															|  |              </div>
 |  |              </div>
 | 
												
													
														
															|  |          </div>
 |  |          </div>
 | 
												
													
														
															|  |          <div class="input-box">
 |  |          <div class="input-box">
 | 
												
													
														
															|  |              <label class="col-3 col-sm-3 huanhang"  style="text-align: right;margin: 10px 0px;"><span class="c-red">*</span>判定结果:</label>
 |  |              <label class="col-3 col-sm-3 huanhang"  style="text-align: right;margin: 10px 0px;"><span class="c-red">*</span>判定结果:</label>
 | 
												
													
														
															|  |              <div class="formControls col-xs-7 col-sm-7 skin-minimal" style="margin: 10px 0px;">
 |  |              <div class="formControls col-xs-7 col-sm-7 skin-minimal" style="margin: 10px 0px;">
 | 
												
													
														
															|  | -            <textarea style="margin-left: 0%;" rows="3" cols="20" name="detectResults" id="detectResults" class="my-textarea" placeholder="判定结果"></textarea>
 |  | 
 | 
												
													
														
															|  | 
 |  | +            <textarea style="margin-left: 0%;" rows="3" cols="20" name="detectItemResults" id="detectItemResults" class="my-textarea" placeholder="判定结果"></textarea>
 | 
												
													
														
															|  |              </div>
 |  |              </div>
 | 
												
													
														
															|  |          </div>
 |  |          </div>
 | 
												
													
														
															|  |          <div class="input-box">
 |  |          <div class="input-box">
 | 
												
													
														
															|  |              <label class="col-3 col-sm-3 huanhang"  style="text-align: right;margin: 10px 0px;"><span class="c-red">*</span>故障指向:</label>
 |  |              <label class="col-3 col-sm-3 huanhang"  style="text-align: right;margin: 10px 0px;"><span class="c-red">*</span>故障指向:</label>
 | 
												
													
														
															|  |              <div class="formControls col-xs-7 col-sm-7 skin-minimal" style="margin: 10px 0px;">
 |  |              <div class="formControls col-xs-7 col-sm-7 skin-minimal" style="margin: 10px 0px;">
 | 
												
													
														
															|  | -            <textarea style="margin-left: 0%;" rows="3" cols="20" name="detectPoint" id="detectPoint" class="my-textarea" placeholder="故障指向"></textarea>
 |  | 
 | 
												
													
														
															|  | 
 |  | +            <textarea style="margin-left: 0%;" rows="3" cols="20" name="detectItemPoint" id="detectItemPoint" class="my-textarea" placeholder="故障指向"></textarea>
 | 
												
													
														
															|  |              </div>
 |  |              </div>
 | 
												
													
														
															|  |          </div>
 |  |          </div>
 | 
												
													
														
															|  |          <div class="input-box">
 |  |          <div class="input-box">
 | 
												
													
														
															|  |              <label class="col-3 col-sm-3 huanhang"  style="text-align: right;margin: 10px 0px;"><span class="c-red">*</span>原因分析:</label>
 |  |              <label class="col-3 col-sm-3 huanhang"  style="text-align: right;margin: 10px 0px;"><span class="c-red">*</span>原因分析:</label>
 | 
												
													
														
															|  |              <div class="formControls col-xs-7 col-sm-7 skin-minimal" style="margin: 10px 0px;">
 |  |              <div class="formControls col-xs-7 col-sm-7 skin-minimal" style="margin: 10px 0px;">
 | 
												
													
														
															|  | -            <textarea style="margin-left: 0%;" rows="3" cols="20" name="detectAnalysis" id="detectAnalysis" class="my-textarea" placeholder="原因分析"></textarea>
 |  | 
 | 
												
													
														
															|  | 
 |  | +            <textarea style="margin-left: 0%;" rows="3" cols="20" name="detectItemNalysis" id="detectItemNalysis" class="my-textarea" placeholder="原因分析"></textarea>
 | 
												
													
														
															|  | 
 |  | +            </div>
 | 
												
													
														
															|  | 
 |  | +        </div>
 | 
												
													
														
															|  | 
 |  | +        <div class="input-box">
 | 
												
													
														
															|  | 
 |  | +            <label class="col-3 col-sm-3 huanhang"  style="text-align: right;margin: 10px 0px;"><span class="c-red">*</span>维修内容:</label>
 | 
												
													
														
															|  | 
 |  | +            <div class="formControls col-xs-7 col-sm-7 skin-minimal" style="margin: 10px 0px;">
 | 
												
													
														
															|  | 
 |  | +            <textarea style="margin-left: 0%;" rows="3" cols="20" name="detectItemContent" id="detectItemContent" class="my-textarea" placeholder="维修内容"></textarea>
 | 
												
													
														
															|  |              </div>
 |  |              </div>
 | 
												
													
														
															|  |          </div>
 |  |          </div>
 | 
												
													
														
															|  |          <div class="input-box">
 |  |          <div class="input-box">
 | 
												
													
														
															|  |              <label class="col-3 col-sm-3 huanhang" style="text-align: right;"><span class="c-red">*</span>是否维修:</label>
 |  |              <label class="col-3 col-sm-3 huanhang" style="text-align: right;"><span class="c-red">*</span>是否维修:</label>
 | 
												
													
														
															|  |              <div class="formControls col-xs-7 col-sm-7 skin-minimal">
 |  |              <div class="formControls col-xs-7 col-sm-7 skin-minimal">
 | 
												
													
														
															|  |                  <div class="radio-box">
 |  |                  <div class="radio-box">
 | 
												
													
														
															|  | -                    <input type="radio" id="radio-5" name="detectIsMaintenance" value="1" checked/>
 |  | 
 | 
												
													
														
															|  | 
 |  | +                    <input type="radio" id="radio-5" name="isMaintenance" value="1" checked/>
 | 
												
													
														
															|  |                      <label for="radio-5">需要维修</label>
 |  |                      <label for="radio-5">需要维修</label>
 | 
												
													
														
															|  |                  </div>
 |  |                  </div>
 | 
												
													
														
															|  |                  <div class="radio-box">
 |  |                  <div class="radio-box">
 | 
												
													
														
															|  | -                    <input type="radio" id="radio-6" name="detectIsMaintenance" value="2"/>
 |  | 
 | 
												
													
														
															|  | 
 |  | +                    <input type="radio" id="radio-6" name="isMaintenance" value="2"/>
 | 
												
													
														
															|  |                      <label for="radio-6">不需要维修</label>
 |  |                      <label for="radio-6">不需要维修</label>
 | 
												
													
														
															|  |                  </div>
 |  |                  </div>
 | 
												
													
														
															|  |              </div>
 |  |              </div>
 | 
												
													
														
															|  |          </div>
 |  |          </div>
 | 
												
													
														
															|  | -        <div class="input-box">
 |  | 
 | 
												
													
														
															|  | 
 |  | +        <#--<div class="input-box">
 | 
												
													
														
															|  |              <label class="col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;"><span class="c-red">*</span>是否已转入:</label>
 |  |              <label class="col-3 col-sm-3 huanhang" style="text-align: right;margin: 10px 0px;"><span class="c-red">*</span>是否已转入:</label>
 | 
												
													
														
															|  |              <div class="formControls col-xs-7 col-sm-7 skin-minimal" style="margin: 10px 0px;">
 |  |              <div class="formControls col-xs-7 col-sm-7 skin-minimal" style="margin: 10px 0px;">
 | 
												
													
														
															|  |                  <div class="radio-box">
 |  |                  <div class="radio-box">
 | 
												
											
												
													
														
															|  | @@ -155,14 +139,14 @@
 | 
												
													
														
															|  |                      <input type="radio" id="radio-8" name="detectRevolutionProduced" value="1"/>
 |  |                      <input type="radio" id="radio-8" name="detectRevolutionProduced" value="1"/>
 | 
												
													
														
															|  |                       <label for="radio-8">未转入维修</label>
 |  |                       <label for="radio-8">未转入维修</label>
 | 
												
													
														
															|  |                  </div>
 |  |                  </div>
 | 
												
													
														
															|  | -        </div>
 |  | 
 | 
												
													
														
															|  | 
 |  | +        </div>-->
 | 
												
													
														
															|  |          </div>
 |  |          </div>
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |          <div class="input-box" >
 |  |          <div class="input-box" >
 | 
												
													
														
															|  |              <label class="form-label col-3 col-sm-3 huanhang"  style="text-align: right;">备注:</label>
 |  |              <label class="form-label col-3 col-sm-3 huanhang"  style="text-align: right;">备注:</label>
 | 
												
													
														
															|  |              <div class="formControls col-xs-9 col-sm-9">
 |  |              <div class="formControls col-xs-9 col-sm-9">
 | 
												
													
														
															|  |                  <div class="radio-box">
 |  |                  <div class="radio-box">
 | 
												
													
														
															|  | -                    <textarea rows="3" style="width: 186%;margin-left: -15%;margin-top: 5%;" cols="20" name="detectDesc" id="detectDesc" class="my-textarea" placeholder="请详细备注签收的内容,便于以后复查。如果转入生产,则生产部门同事可查看!"></textarea>
 |  | 
 | 
												
													
														
															|  | 
 |  | +                    <textarea rows="3" style="width: 186%;margin-left: -15%;margin-top: 5%;" cols="20" name="detectItemDesc" id="detectItemDesc" class="my-textarea" placeholder="请详细备注签收的内容,便于以后复查。如果转入生产,则生产部门同事可查看!"></textarea>
 | 
												
													
														
															|  |                  </div>
 |  |                  </div>
 | 
												
													
														
															|  |              </div>
 |  |              </div>
 | 
												
													
														
															|  |          </div>
 |  |          </div>
 | 
												
											
												
													
														
															|  | @@ -185,75 +169,112 @@
 | 
												
													
														
															|  |                      $("#maintenanceEquipmentNumber"+$(this).val()).val("");
 |  |                      $("#maintenanceEquipmentNumber"+$(this).val()).val("");
 | 
												
													
														
															|  |                  });
 |  |                  });
 | 
												
													
														
															|  |              });
 |  |              });
 | 
												
													
														
															|  | -
 |  | 
 | 
												
													
														
															|  | -
 |  | 
 | 
												
													
														
															|  |          });
 |  |          });
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | 
 |  | +        //查询产品颜色信息
 | 
												
													
														
															|  | 
 |  | +    $('#productId').change(function(){
 | 
												
													
														
															|  | 
 |  | +        getProduct($(this).children('option:selected').val())
 | 
												
													
														
															|  | 
 |  | +    })
 | 
												
													
														
															|  | 
 |  | +    function  getProduct(productId) {
 | 
												
													
														
															|  | 
 |  | +        $.ajax({
 | 
												
													
														
															|  | 
 |  | +            cache: true,
 | 
												
													
														
															|  | 
 |  | +            type: "POST",
 | 
												
													
														
															|  | 
 |  | +            url: "${path}/admin/product/get_product",
 | 
												
													
														
															|  | 
 |  | +            data:{colorProductId:productId},// 你的formid
 | 
												
													
														
															|  | 
 |  | +            async: false,
 | 
												
													
														
															|  | 
 |  | +            success: function(data){
 | 
												
													
														
															|  | 
 |  | +                if (data.returnCode == 200) {
 | 
												
													
														
															|  | 
 |  | +                    $("#productColorId").empty();
 | 
												
													
														
															|  | 
 |  | +                    if(data.returnMsg.productColorList.length > 0){
 | 
												
													
														
															|  | 
 |  | +                        for(var i=0;i<data.returnMsg.productColorList.length;i++){
 | 
												
													
														
															|  | 
 |  | +                            var productColor = data.returnMsg.productColorList[i];
 | 
												
													
														
															|  | 
 |  | +                            $("#productColorId").append('<option value='+productColor.colorId+'>'+productColor.colorName+'</option>');
 | 
												
													
														
															|  | 
 |  | +                        }
 | 
												
													
														
															|  | 
 |  | +                    }
 | 
												
													
														
															|  | 
 |  | +
 | 
												
													
														
															|  | 
 |  | +                }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | 
 |  | +            },
 | 
												
													
														
															|  | 
 |  | +            error: function(XmlHttpRequest, textStatus, errorThrown){
 | 
												
													
														
															|  | 
 |  | +                layer.msg('添加错误',{icon: 5,time:1000});
 | 
												
													
														
															|  | 
 |  | +            }
 | 
												
													
														
															|  | 
 |  | +        });
 | 
												
													
														
															|  | 
 |  | +    }
 | 
												
													
														
															|  | 
 |  | +        
 | 
												
													
														
															|  |      function  add() {
 |  |      function  add() {
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -        var detectDate = $("#detectDate").val();
 |  | 
 | 
												
													
														
															|  | -        if( detectDate == null || detectDate == "" ){
 |  | 
 | 
												
													
														
															|  | 
 |  | +        var itemDate = $("#itemDate").val();
 | 
												
													
														
															|  | 
 |  | +        if( itemDate == null || itemDate == "" ){
 | 
												
													
														
															|  |              layer.msg('请选择检测日期',{icon: 5,time:1000});
 |  |              layer.msg('请选择检测日期',{icon: 5,time:1000});
 | 
												
													
														
															|  |              return;
 |  |              return;
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  | -        var detectPhenomenon = $("#detectPhenomenon").val();
 |  | 
 | 
												
													
														
															|  | -        if( detectPhenomenon == null || detectPhenomenon == "" ){
 |  | 
 | 
												
													
														
															|  | 
 |  | +        var detectItemPhenomenon = $("#detectItemPhenomenon").val();
 | 
												
													
														
															|  | 
 |  | +        if( detectItemPhenomenon == null || detectItemPhenomenon == "" ){
 | 
												
													
														
															|  |              layer.msg('请输入工厂检测现象',{icon: 5,time:1000});
 |  |              layer.msg('请输入工厂检测现象',{icon: 5,time:1000});
 | 
												
													
														
															|  |              return;
 |  |              return;
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  | -        if( detectPhenomenon.length > 300 ){
 |  | 
 | 
												
													
														
															|  | 
 |  | +        if( detectItemPhenomenon.length > 300 ){
 | 
												
													
														
															|  |              layer.msg('工厂检测现象长度不得大于150个字符',{icon: 5,time:1000});
 |  |              layer.msg('工厂检测现象长度不得大于150个字符',{icon: 5,time:1000});
 | 
												
													
														
															|  |              return;
 |  |              return;
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  | -        var detectFailureClassification = $("#detectFailureClassification").val();
 |  | 
 | 
												
													
														
															|  | -        if( detectFailureClassification == null || detectFailureClassification == "" ){
 |  | 
 | 
												
													
														
															|  | 
 |  | +        var detectItemClassification = $("#detectItemClassification").val();
 | 
												
													
														
															|  | 
 |  | +        if( detectItemClassification == null || detectItemClassification == "" ){
 | 
												
													
														
															|  |              layer.msg('请输入故障分类',{icon: 5,time:1000});
 |  |              layer.msg('请输入故障分类',{icon: 5,time:1000});
 | 
												
													
														
															|  |              return;
 |  |              return;
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  | -        if( detectFailureClassification.length > 50 ){
 |  | 
 | 
												
													
														
															|  | 
 |  | +        if( detectItemClassification.length > 50 ){
 | 
												
													
														
															|  |              layer.msg('故障分类长度不得大于25个字符',{icon: 5,time:1000});
 |  |              layer.msg('故障分类长度不得大于25个字符',{icon: 5,time:1000});
 | 
												
													
														
															|  |              return;
 |  |              return;
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  | -        var detectFailureCause = $("#detectFailureCause").val();
 |  | 
 | 
												
													
														
															|  | -        if( detectFailureCause == null || detectFailureCause == "" ){
 |  | 
 | 
												
													
														
															|  | 
 |  | +        var detectItemFailureCause = $("#detectItemFailureCause").val();
 | 
												
													
														
															|  | 
 |  | +        if( detectItemFailureCause == null || detectItemFailureCause == "" ){
 | 
												
													
														
															|  |              layer.msg('请输入故障原因',{icon: 5,time:1000});
 |  |              layer.msg('请输入故障原因',{icon: 5,time:1000});
 | 
												
													
														
															|  |              return;
 |  |              return;
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  | -        if( detectFailureCause.length > 100 ){
 |  | 
 | 
												
													
														
															|  | 
 |  | +        if( detectItemFailureCause.length > 100 ){
 | 
												
													
														
															|  |              layer.msg('故障原因长度不得大于50个字符',{icon: 5,time:1000});
 |  |              layer.msg('故障原因长度不得大于50个字符',{icon: 5,time:1000});
 | 
												
													
														
															|  |              return;
 |  |              return;
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -        var detectResults = $("#detectResults").val();
 |  | 
 | 
												
													
														
															|  | -        if( detectResults == null || detectResults == "" ){
 |  | 
 | 
												
													
														
															|  | 
 |  | +        var detectItemResults = $("#detectItemResults").val();
 | 
												
													
														
															|  | 
 |  | +        if( detectItemResults == null || detectItemResults == "" ){
 | 
												
													
														
															|  |              layer.msg('请输入判定结果',{icon: 5,time:1000});
 |  |              layer.msg('请输入判定结果',{icon: 5,time:1000});
 | 
												
													
														
															|  |              return;
 |  |              return;
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  | -        if( detectResults.length > 100 ){
 |  | 
 | 
												
													
														
															|  | 
 |  | +        if( detectItemResults.length > 100 ){
 | 
												
													
														
															|  |              layer.msg('判定结果长度不得大于50个字符',{icon: 5,time:1000});
 |  |              layer.msg('判定结果长度不得大于50个字符',{icon: 5,time:1000});
 | 
												
													
														
															|  |              return;
 |  |              return;
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -        var detectPoint = $("#detectPoint").val();
 |  | 
 | 
												
													
														
															|  | -        if( detectPoint == null || detectPoint == "" ){
 |  | 
 | 
												
													
														
															|  | 
 |  | +        var detectItemPoint = $("#detectItemPoint").val();
 | 
												
													
														
															|  | 
 |  | +        if( detectItemPoint == null || detectItemPoint == "" ){
 | 
												
													
														
															|  |              layer.msg('请输入故障指向',{icon: 5,time:1000});
 |  |              layer.msg('请输入故障指向',{icon: 5,time:1000});
 | 
												
													
														
															|  |              return;
 |  |              return;
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  | -        if( detectPoint.length > 100 ){
 |  | 
 | 
												
													
														
															|  | 
 |  | +        if( detectItemPoint.length > 100 ){
 | 
												
													
														
															|  |              layer.msg('故障指向长度不得大于50个字符',{icon: 5,time:1000});
 |  |              layer.msg('故障指向长度不得大于50个字符',{icon: 5,time:1000});
 | 
												
													
														
															|  |              return;
 |  |              return;
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -        var detectAnalysis = $("#detectAnalysis").val();
 |  | 
 | 
												
													
														
															|  | -        if( detectAnalysis == null || detectAnalysis == "" ){
 |  | 
 | 
												
													
														
															|  | 
 |  | +        var detectItemNalysis = $("#detectItemNalysis").val();
 | 
												
													
														
															|  | 
 |  | +        if( detectItemNalysis == null || detectItemNalysis == "" ){
 | 
												
													
														
															|  |              layer.msg('请输入原因分析',{icon: 5,time:1000});
 |  |              layer.msg('请输入原因分析',{icon: 5,time:1000});
 | 
												
													
														
															|  |              return;
 |  |              return;
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  | -        if( detectAnalysis.length > 100 ){
 |  | 
 | 
												
													
														
															|  | 
 |  | +        if( detectItemNalysis.length > 100 ){
 | 
												
													
														
															|  |              layer.msg('原因分析长度不得大于50个字符',{icon: 5,time:1000});
 |  |              layer.msg('原因分析长度不得大于50个字符',{icon: 5,time:1000});
 | 
												
													
														
															|  |              return;
 |  |              return;
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  | 
 |  | +
 | 
												
													
														
															|  | 
 |  | +        var detectItemContent = $("#detectItemContent").val();
 | 
												
													
														
															|  | 
 |  | +        if( detectItemContent == null || detectItemContent == "" ){
 | 
												
													
														
															|  | 
 |  | +            layer.msg('请输入维修内容',{icon: 5,time:1000});
 | 
												
													
														
															|  | 
 |  | +            return;
 | 
												
													
														
															|  | 
 |  | +        }
 | 
												
													
														
															|  | 
 |  | +        if( detectItemContent.length > 300 ){
 | 
												
													
														
															|  | 
 |  | +            layer.msg('维修内容长度不得大于300个字符',{icon: 5,time:1000});
 | 
												
													
														
															|  | 
 |  | +            return;
 | 
												
													
														
															|  | 
 |  | +        }
 | 
												
													
														
															|  |          $.ajax({
 |  |          $.ajax({
 | 
												
													
														
															|  |              cache: true,
 |  |              cache: true,
 | 
												
													
														
															|  |              type: "POST",
 |  |              type: "POST",
 |