|  | @@ -18,6 +18,7 @@
 | 
	
		
			
				|  |  |      </style>
 | 
	
		
			
				|  |  |      <script type="text/javascript">
 | 
	
		
			
				|  |  |          var validateForm;
 | 
	
		
			
				|  |  | +        var isMasterClient = true;//是否是主委托方
 | 
	
		
			
				|  |  |          function doSubmit(i){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
 | 
	
		
			
				|  |  |              if(validateForm.form()){
 | 
	
		
			
				|  |  |                  // if($(".trIdAdds").length==0){
 | 
	
	
		
			
				|  | @@ -42,8 +43,6 @@
 | 
	
		
			
				|  |  |              return false;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          $(document).ready(function() {
 | 
	
		
			
				|  |  | -            var div1 = $("#div1").html();
 | 
	
		
			
				|  |  | -            var div2 = $("#div2").html();
 | 
	
		
			
				|  |  |              var radioVal ;
 | 
	
		
			
				|  |  |              validateForm = $("#inputForm").validate({
 | 
	
		
			
				|  |  |                  submitHandler: function(form){
 | 
	
	
		
			
				|  | @@ -70,36 +69,32 @@
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  |              $('#scaleUnit').val("${projectRecords.scaleUnit}")
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            var flag = $("input[name='ext']").val();
 | 
	
		
			
				|  |  | -            if(flag == 0){
 | 
	
		
			
				|  |  | -                $("#div2").hide();
 | 
	
		
			
				|  |  | -            }else {
 | 
	
		
			
				|  |  | -                $("#div1").hide();
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |              $("input[name='ext']").on('ifChecked',function(event){
 | 
	
		
			
				|  |  |                  radioVal = $(this).val();
 | 
	
		
			
				|  |  |                  if(radioVal == 0){
 | 
	
		
			
				|  |  |                      //有合同状态
 | 
	
		
			
				|  |  |                      $("#divv2 input").val("");
 | 
	
		
			
				|  |  | +                    // $("#workClientLinkmanList tr").remove();
 | 
	
		
			
				|  |  |                      $("#divv").show();
 | 
	
		
			
				|  |  | -                    $("#div1").remove();
 | 
	
		
			
				|  |  | -                    $("#div2").remove();
 | 
	
		
			
				|  |  | -                    var temp = $("<div id='div1'></div>").html(div1);
 | 
	
		
			
				|  |  | -                    $("#LinkMenDiv").append(temp);
 | 
	
		
			
				|  |  | +                    $("#divv3").show();
 | 
	
		
			
				|  |  |                  }else{
 | 
	
		
			
				|  |  | +                    $("#divv input").val('');
 | 
	
		
			
				|  |  |                      $("#divv2 input").val("");
 | 
	
		
			
				|  |  | +                    $("#divv3 input").val("");
 | 
	
		
			
				|  |  | +                    // $("#workClientLinkmanList tr").remove();
 | 
	
		
			
				|  |  |                      $("#divv").hide();
 | 
	
		
			
				|  |  | -                    $("#divv input").val('');
 | 
	
		
			
				|  |  | -                    $("#div1").remove();
 | 
	
		
			
				|  |  | -                    $("#div2").remove();
 | 
	
		
			
				|  |  | -                    var temp = $("<div id='div2'></div>").html(div2);
 | 
	
		
			
				|  |  | -                    $("#LinkMenDiv").append(temp);
 | 
	
		
			
				|  |  | +                    $("#divv3").hide();
 | 
	
		
			
				|  |  | +                    $("#linkmanId").val("");
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +            //自动选择合同状态
 | 
	
		
			
				|  |  | +            if ($("#projectName").val() != null) {
 | 
	
		
			
				|  |  | +                if ($("#contractName").val() == "") {
 | 
	
		
			
				|  |  | +                    $("#ext1").iCheck("check");
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -122,18 +117,19 @@
 | 
	
		
			
				|  |  |                      //清理之前的联系人
 | 
	
		
			
				|  |  |                      var newClientId  = data.client.id;
 | 
	
		
			
				|  |  |                      if(clientId != newClientId){
 | 
	
		
			
				|  |  | -                        $("#workClientLinkmanList tr").remove()
 | 
	
		
			
				|  |  | +                        $("#workClientLinkmanList tr").remove();
 | 
	
		
			
				|  |  |                          setLinkMan(newClientId);
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  | +                    // console.log("clientId------newClientId");
 | 
	
		
			
				|  |  |                      // console.log(clientId+"------"+newClientId);
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        function setLinkMan(client_Id) {
 | 
	
		
			
				|  |  | +        function setLinkMan(newClientId) {
 | 
	
		
			
				|  |  |              $.ajax({
 | 
	
		
			
				|  |  |                  url:"${ctx}/project/projectRecords/getLinkManByClientId",
 | 
	
		
			
				|  |  | -                data:{"clientId":client_Id},
 | 
	
		
			
				|  |  | +                data:{"clientId":newClientId},
 | 
	
		
			
				|  |  |                  type:"post",
 | 
	
		
			
				|  |  |                  dataType:"json",
 | 
	
		
			
				|  |  |                  success:function (d) {
 | 
	
	
		
			
				|  | @@ -146,7 +142,6 @@
 | 
	
		
			
				|  |  |                      $("#workClientLinkmanList"+row+"_name").val(d.linkName);
 | 
	
		
			
				|  |  |                      $("#workClientLinkmanList"+row+"_linkMobile").val(d.linkMobile);
 | 
	
		
			
				|  |  |                      $("#workClientLinkmanList"+row+"_linkPhone").val(d.linkPhone);
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |                      $("#workClientLinkmanList"+row+"_clientName").prop("readonly","readonly");
 | 
	
		
			
				|  |  |                      $("#workClientLinkmanList"+row+"_name").prop("readonly","readonly");
 | 
	
		
			
				|  |  |                      $("#workClientLinkmanList"+row+"_linkMobile").prop("readonly","readonly");
 | 
	
	
		
			
				|  | @@ -162,6 +157,12 @@
 | 
	
		
			
				|  |  |                      workClientLinkmanRowIdx=workClientLinkmanRowIdx+1;
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | +            if(obj[0].name != null){
 | 
	
		
			
				|  |  | +                if(isMasterClient){
 | 
	
		
			
				|  |  | +                    $("#contractClientName").val(obj[0].clientId.name);
 | 
	
		
			
				|  |  | +                    isMasterClient = false;
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          function hasInArr(id,idArr) {
 | 
	
		
			
				|  |  |              for(var i=0;i<idArr.length;i++){
 | 
	
	
		
			
				|  | @@ -326,7 +327,7 @@
 | 
	
		
			
				|  |  |                              parent.layer.msg("保存客户信息异常!",{icon:2});
 | 
	
		
			
				|  |  |                              return false;
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  | -                        console.log("-------success-----");
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |                          addRow('#workClientLinkmanList', workClientLinkmanRowIdx, workClientLinkmanTpl);workClientLinkmanRowIdx = workClientLinkmanRowIdx + 1;
 | 
	
		
			
				|  |  |                          var row = workClientLinkmanRowIdx - 1 ;
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -336,7 +337,10 @@
 | 
	
		
			
				|  |  |                          $("#"+"workClientLinkmanList"+row+"_name").val(d.linkName);
 | 
	
		
			
				|  |  |                          $("#"+"workClientLinkmanList"+row+"_linkMobile").val(d.linkMobile);
 | 
	
		
			
				|  |  |                          $("#"+"workClientLinkmanList"+row+"_linkPhone").val(d.linkPhone);
 | 
	
		
			
				|  |  | -                        $("#contractClientName").val(d.clientName);
 | 
	
		
			
				|  |  | +                        if(isMasterClient){
 | 
	
		
			
				|  |  | +                            $("#contractClientName").val(d.clientName);
 | 
	
		
			
				|  |  | +                            isMasterClient = false;
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  |                          parent.layer.msg(d.str,{icon:1});
 | 
	
		
			
				|  |  |                          top.layer.close(index)
 | 
	
		
			
				|  |  |                      }
 | 
	
	
		
			
				|  | @@ -354,18 +358,18 @@
 | 
	
		
			
				|  |  |              <form:hidden path="workContractInfo.client.id" id="contractClientId" value="${workContractInfo.client.id}"/>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              <div class="form-group layui-row first">
 | 
	
		
			
				|  |  | -               <div class="form-group layui-row">
 | 
	
		
			
				|  |  | -                   <div class="form-group-label"><h2>项目合同信息</h2></div>
 | 
	
		
			
				|  |  | -                   <div class="layui-item layui-col-sm6 lw7">
 | 
	
		
			
				|  |  | -                       <label class="layui-form-label">合同情况:</label>
 | 
	
		
			
				|  |  | -                       <div class="layui-input-block">
 | 
	
		
			
				|  |  | -                           <input type="radio" class="i-checks" name="ext" checked id="ext" value="0">
 | 
	
		
			
				|  |  | -                           <label for="ext">有合同</label>
 | 
	
		
			
				|  |  | -                           <input type="radio" class="i-checks" name="ext" id="ext1" value="1">
 | 
	
		
			
				|  |  | -                           <label for="ext1">无合同</label>
 | 
	
		
			
				|  |  | -                       </div>
 | 
	
		
			
				|  |  | -                   </div>
 | 
	
		
			
				|  |  | -               </div>
 | 
	
		
			
				|  |  | +                <div class="form-group layui-row">
 | 
	
		
			
				|  |  | +                    <div class="form-group-label"><h2>项目合同信息</h2></div>
 | 
	
		
			
				|  |  | +                    <div class="layui-item layui-col-sm6 lw7">
 | 
	
		
			
				|  |  | +                        <label class="layui-form-label">合同情况:</label>
 | 
	
		
			
				|  |  | +                        <div class="layui-input-block">
 | 
	
		
			
				|  |  | +                            <input type="radio" class="i-checks" name="ext" checked id="ext" value="0">
 | 
	
		
			
				|  |  | +                            <label for="ext">有合同</label>
 | 
	
		
			
				|  |  | +                            <input type="radio" class="i-checks" name="ext" id="ext1" value="1">
 | 
	
		
			
				|  |  | +                            <label for="ext1">无合同</label>
 | 
	
		
			
				|  |  | +                        </div>
 | 
	
		
			
				|  |  | +                    </div>
 | 
	
		
			
				|  |  | +                </div>
 | 
	
		
			
				|  |  |                  <div id="divv">
 | 
	
		
			
				|  |  |                      <div class="layui-item layui-col-sm12 lw7" id="d1">
 | 
	
		
			
				|  |  |                          <label class="layui-form-label"><span class="require-item">*</span>选择合同:</label>
 | 
	
	
		
			
				|  | @@ -387,20 +391,22 @@
 | 
	
		
			
				|  |  |                          </div>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  |                  </div>
 | 
	
		
			
				|  |  | -               <div id="divv2">
 | 
	
		
			
				|  |  | -                   <div class="layui-item layui-col-sm6 lw7">
 | 
	
		
			
				|  |  | -                       <label class="layui-form-label">主委托方:</label>
 | 
	
		
			
				|  |  | -                       <div class="layui-input-block">
 | 
	
		
			
				|  |  | -                           <input htmlEscape="false"  readonly="true" id="contractClientName" name="workContractInfo.client.name" class="form-control layui-input" value="${projectRecords.workContractInfo.client.name}"/>
 | 
	
		
			
				|  |  | -                       </div>
 | 
	
		
			
				|  |  | -                   </div>
 | 
	
		
			
				|  |  | -                   <div class="layui-item layui-col-sm6 lw7">
 | 
	
		
			
				|  |  | -                       <label class="layui-form-label">工程分类:</label>
 | 
	
		
			
				|  |  | -                       <div class="layui-input-block">
 | 
	
		
			
				|  |  | -                           <input htmlEscape="false"  readonly="true" id="constructionProjectType"  class="form-control layui-input" value="${projectRecords.workContractInfo.constructionProjectTypeStr}"/>
 | 
	
		
			
				|  |  | -                       </div>
 | 
	
		
			
				|  |  | -                   </div>
 | 
	
		
			
				|  |  | -               </div>
 | 
	
		
			
				|  |  | +                <div id="divv2">
 | 
	
		
			
				|  |  | +                    <div class="layui-item layui-col-sm6 lw7">
 | 
	
		
			
				|  |  | +                        <label class="layui-form-label">主委托方:</label>
 | 
	
		
			
				|  |  | +                        <div class="layui-input-block">
 | 
	
		
			
				|  |  | +                            <input htmlEscape="false"  readonly="true" id="contractClientName" name="workContractInfo.client.name" class="form-control layui-input" value="${projectRecords.workContractInfo.client.name}"/>
 | 
	
		
			
				|  |  | +                        </div>
 | 
	
		
			
				|  |  | +                    </div>
 | 
	
		
			
				|  |  | +                </div>
 | 
	
		
			
				|  |  | +                <div id="divv3">
 | 
	
		
			
				|  |  | +                    <div class="layui-item layui-col-sm6 lw7">
 | 
	
		
			
				|  |  | +                        <label class="layui-form-label">工程分类:</label>
 | 
	
		
			
				|  |  | +                        <div class="layui-input-block">
 | 
	
		
			
				|  |  | +                            <input htmlEscape="false"  readonly="true" id="constructionProjectType"  class="form-control layui-input" value="${projectRecords.workContractInfo.constructionProjectTypeStr}"/>
 | 
	
		
			
				|  |  | +                        </div>
 | 
	
		
			
				|  |  | +                    </div>
 | 
	
		
			
				|  |  | +                </div>
 | 
	
		
			
				|  |  |              </div>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              <div class="form-group layui-row">
 | 
	
	
		
			
				|  | @@ -494,23 +500,19 @@
 | 
	
		
			
				|  |  |              </div>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            <div class="form-group layui-row">
 | 
	
		
			
				|  |  | +            <div>
 | 
	
		
			
				|  |  |                  <div class="form-group-label"><h2><span class="require-item">*</span>委托方联系人信息</h2></div>
 | 
	
		
			
				|  |  | -                <div id="LinkMenDiv">
 | 
	
		
			
				|  |  | -                    <div id="div1">
 | 
	
		
			
				|  |  | -                        <div class="layui-item nav-btns">
 | 
	
		
			
				|  |  | -                            <sys:gridselect1 url="${ctx}/workclientinfo/workClientInfo/linkmanList" id="linkman"
 | 
	
		
			
				|  |  | -                                             name="linkman.id" title="选择客户"
 | 
	
		
			
				|  |  | -                                             value="${projectRecords.workContractInfo.workClinetInfoIds}"
 | 
	
		
			
				|  |  | -                                             cssClass="form-control required" fieldLabels="联系人" fieldKeys="name"
 | 
	
		
			
				|  |  | -                                             searchLabel="联系人" searchKey="name"></sys:gridselect1>
 | 
	
		
			
				|  |  | -                        </div>
 | 
	
		
			
				|  |  | -                    </div>
 | 
	
		
			
				|  |  | -                    <div id="div2">
 | 
	
		
			
				|  |  | -                        <div class="layui-item nav-btns">
 | 
	
		
			
				|  |  | -                            <a href="javascript:void(0)" onclick="openBill2('新增客户管理', '${ctx}/workclientinfo/workClientInfo/form?param=2','95%','95%',false,'inputForm')" class="nav-btn nav-btn-add" ><i class="fa fa-plus"></i> 新增客户</a>
 | 
	
		
			
				|  |  | -                        </div>
 | 
	
		
			
				|  |  | -                    </div>
 | 
	
		
			
				|  |  | +                <div class="layui-item nav-btns" style="float: left;width: 155px">
 | 
	
		
			
				|  |  | +                    <sys:gridselect1  id="linkman" url="${ctx}/workclientinfo/workClientInfo/linkmanList"
 | 
	
		
			
				|  |  | +                                      name="linkman.id"  title="选择客户"
 | 
	
		
			
				|  |  | +                                      value="${projectRecords.workContractInfo.workClinetInfoIds}"
 | 
	
		
			
				|  |  | +                                      cssClass="form-control required" fieldLabels="联系人" fieldKeys="name"
 | 
	
		
			
				|  |  | +                                      searchLabel="联系人" searchKey="name"></sys:gridselect1>
 | 
	
		
			
				|  |  | +                </div>
 | 
	
		
			
				|  |  | +                <div class="layui-item nav-btns" style="float: left;">
 | 
	
		
			
				|  |  | +                    <a href="javascript:void(0)"
 | 
	
		
			
				|  |  | +                       onclick="openBill2('新增客户管理', '${ctx}/workclientinfo/workClientInfo/form?param=2','95%','95%',false,'inputForm')"
 | 
	
		
			
				|  |  | +                       class="nav-btn nav-btn-add"><i class="fa fa-plus"></i> 新增客户</a>
 | 
	
		
			
				|  |  |                  </div>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                  <div class="layui-item layui-col-xs12 form-table-container">
 | 
	
	
		
			
				|  | @@ -526,32 +528,32 @@
 | 
	
		
			
				|  |  |                          </tr>
 | 
	
		
			
				|  |  |                          </thead>
 | 
	
		
			
				|  |  |                          <tbody id="workClientLinkmanList">
 | 
	
		
			
				|  |  | -                        <c:if test="${not empty projectRecords.workClientLinkmanList}">
 | 
	
		
			
				|  |  | -                            <c:forEach items="${projectRecords.workClientLinkmanList}" var="casePeopleNorm" varStatus="index">
 | 
	
		
			
				|  |  | -                                <tr id="workClientInfoList${index.index}">
 | 
	
		
			
				|  |  | -                                    <td class="hide">
 | 
	
		
			
				|  |  | -                                        <input id="workClientLinkmanList${index.index}_id" name="workClientLinkmanList[${index.index}].id" type="hidden" value="${casePeopleNorm.id}" class="clientInfoId"/>
 | 
	
		
			
				|  |  | -                                        <input id="workClientLinkmanList${index.index}_clientId_id" name="workClientLinkmanList[${index.index}].clientId.id" type="hidden" value="${casePeopleNorm.clientId.id}" class="clientInfoId"/>
 | 
	
		
			
				|  |  | -                                        <input id="workClientLinkmanList${index.index}_delFlag" name="workClientLinkmanList[${index.index}].delFlag" type="hidden" value="0"/>
 | 
	
		
			
				|  |  | -                                    </td>
 | 
	
		
			
				|  |  | -                                    <td>
 | 
	
		
			
				|  |  | -                                        <input id="workClientLinkmanList${index.index}_clientName" name="workClientLinkmanList[${index.index}].clientId.name" type="text" value="${casePeopleNorm.clientId.name}" readonly="true"   class="form-control "/>
 | 
	
		
			
				|  |  | -                                    </td>
 | 
	
		
			
				|  |  | -                                    <td>
 | 
	
		
			
				|  |  | -                                        <input id="workClientLinkmanList${index.index}_name" name="workClientLinkmanList[${index.index}].name" type="text" value="${casePeopleNorm.name}" readonly="true"   class="form-control "/>
 | 
	
		
			
				|  |  | -                                    </td>
 | 
	
		
			
				|  |  | -                                    <td>
 | 
	
		
			
				|  |  | -                                        <input id="workClientLinkmanList${index.index}_linkPhone" name="workClientLinkmanList[${index.index}].linkPhone" type="text" value="${casePeopleNorm.linkPhone}" readonly="true"   class="form-control "/>
 | 
	
		
			
				|  |  | -                                    </td>
 | 
	
		
			
				|  |  | -                                    <td>
 | 
	
		
			
				|  |  | -                                        <input id="workClientLinkmanList${index.index}_linkMobile" name="workClientLinkmanList[${index.index}].linkMobile" type="text" value="${casePeopleNorm.linkMobile}" readonly="true"   class="form-control "/>
 | 
	
		
			
				|  |  | -                                    </td>
 | 
	
		
			
				|  |  | -                                    <td class="text-center op-td">
 | 
	
		
			
				|  |  | -                                        <span class="op-btn op-btn-delete" onclick="delRow(this, '#workClientLinkmanList${index.index}')" title="删除"><i class="glyphicon glyphicon-remove"></i> 删除</span>
 | 
	
		
			
				|  |  | -                                    </td>
 | 
	
		
			
				|  |  | -                                </tr>
 | 
	
		
			
				|  |  | -                            </c:forEach>
 | 
	
		
			
				|  |  | -                        </c:if>
 | 
	
		
			
				|  |  | +<%--                        <c:if test="${not empty projectRecords.workClientLinkmanList}">--%>
 | 
	
		
			
				|  |  | +<%--                            <c:forEach items="${projectRecords.workClientLinkmanList}" var="casePeopleNorm" varStatus="index">--%>
 | 
	
		
			
				|  |  | +<%--                                <tr id="workClientInfoList${index.index}">--%>
 | 
	
		
			
				|  |  | +<%--                                    <td class="hide">--%>
 | 
	
		
			
				|  |  | +<%--                                        <input id="workClientLinkmanList${index.index}_id" name="workClientLinkmanList[${index.index}].id" type="hidden" value="${casePeopleNorm.id}" class="clientInfoId"/>--%>
 | 
	
		
			
				|  |  | +<%--                                        <input id="workClientLinkmanList${index.index}_clientId_id" name="workClientLinkmanList[${index.index}].clientId.id" type="hidden" value="${casePeopleNorm.clientId.id}" class="clientInfoId"/>--%>
 | 
	
		
			
				|  |  | +<%--                                        <input id="workClientLinkmanList${index.index}_delFlag" name="workClientLinkmanList[${index.index}].delFlag" type="hidden" value="0"/>--%>
 | 
	
		
			
				|  |  | +<%--                                    </td>--%>
 | 
	
		
			
				|  |  | +<%--                                    <td>--%>
 | 
	
		
			
				|  |  | +<%--                                        <input id="workClientLinkmanList${index.index}_clientName" name="workClientLinkmanList[${index.index}].clientId.name" type="text" value="${casePeopleNorm.clientId.name}" readonly="true"   class="form-control "/>--%>
 | 
	
		
			
				|  |  | +<%--                                    </td>--%>
 | 
	
		
			
				|  |  | +<%--                                    <td>--%>
 | 
	
		
			
				|  |  | +<%--                                        <input id="workClientLinkmanList${index.index}_name" name="workClientLinkmanList[${index.index}].name" type="text" value="${casePeopleNorm.name}" readonly="true"   class="form-control "/>--%>
 | 
	
		
			
				|  |  | +<%--                                    </td>--%>
 | 
	
		
			
				|  |  | +<%--                                    <td>--%>
 | 
	
		
			
				|  |  | +<%--                                        <input id="workClientLinkmanList${index.index}_linkPhone" name="workClientLinkmanList[${index.index}].linkPhone" type="text" value="${casePeopleNorm.linkPhone}" readonly="true"   class="form-control "/>--%>
 | 
	
		
			
				|  |  | +<%--                                    </td>--%>
 | 
	
		
			
				|  |  | +<%--                                    <td>--%>
 | 
	
		
			
				|  |  | +<%--                                        <input id="workClientLinkmanList${index.index}_linkMobile" name="workClientLinkmanList[${index.index}].linkMobile" type="text" value="${casePeopleNorm.linkMobile}" readonly="true"   class="form-control "/>--%>
 | 
	
		
			
				|  |  | +<%--                                    </td>--%>
 | 
	
		
			
				|  |  | +<%--                                    <td class="text-center op-td">--%>
 | 
	
		
			
				|  |  | +<%--                                        <span class="op-btn op-btn-delete" onclick="delRow(this, '#workClientLinkmanList${index.index}')" title="删除"><i class="glyphicon glyphicon-remove"></i> 删除</span>--%>
 | 
	
		
			
				|  |  | +<%--                                    </td>--%>
 | 
	
		
			
				|  |  | +<%--                                </tr>--%>
 | 
	
		
			
				|  |  | +<%--                            </c:forEach>--%>
 | 
	
		
			
				|  |  | +<%--                        </c:if>--%>
 | 
	
		
			
				|  |  |                          </tbody>
 | 
	
		
			
				|  |  |                      </table>
 | 
	
		
			
				|  |  |                      <script type="text/template" id="workClientLinkmanTpl">//<!--
 | 
	
	
		
			
				|  | @@ -584,12 +586,13 @@
 | 
	
		
			
				|  |  |                              workClientLinkmanTpl = $("#workClientLinkmanTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
 | 
	
		
			
				|  |  |                          $(document).ready(function () {
 | 
	
		
			
				|  |  |                              var data = ${fns:toJson(workClientInfo.workClientLinkmanList)};
 | 
	
		
			
				|  |  | -                            for (var i = 0; i < data.length; i++) {
 | 
	
		
			
				|  |  | -                                addRow('#workClientLinkmanList', workClientLinkmanRowIdx, workClientLinkmanTpl, data[i]);
 | 
	
		
			
				|  |  | -                                workClientLinkmanRowIdx = workClientLinkmanRowIdx + 1;
 | 
	
		
			
				|  |  | +                            if(data!=null && data.length() > 0){
 | 
	
		
			
				|  |  | +                                for (var i = 0; i < data.length; i++) {
 | 
	
		
			
				|  |  | +                                    addRow('#workClientLinkmanList', workClientLinkmanRowIdx, workClientLinkmanTpl, data[i]);
 | 
	
		
			
				|  |  | +                                    workClientLinkmanRowIdx = workClientLinkmanRowIdx + 1;
 | 
	
		
			
				|  |  | +                                }
 | 
	
		
			
				|  |  |                              }
 | 
	
		
			
				|  |  |                          });
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |                      </script>
 | 
	
		
			
				|  |  |                  </div>
 | 
	
		
			
				|  |  |              </div>
 |