|  | @@ -231,6 +231,83 @@
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              $(obj).val(t.split("").reverse().join("") + "." + r);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +        function openBill2(title,url,width,height,target,formId){
 | 
	
		
			
				|  |  | +            var frameIndex = parent.layer.getFrameIndex(window.name);
 | 
	
		
			
				|  |  | +            var urls = url+"&index="+frameIndex;
 | 
	
		
			
				|  |  | +            if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
 | 
	
		
			
				|  |  | +                width='auto';
 | 
	
		
			
				|  |  | +                height='auto';
 | 
	
		
			
				|  |  | +            }else{//如果是PC端,根据用户设置的width和height显示。
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            top.layer.open({
 | 
	
		
			
				|  |  | +                type: 2,
 | 
	
		
			
				|  |  | +                area: [width, height],
 | 
	
		
			
				|  |  | +                title: title,
 | 
	
		
			
				|  |  | +                skin:"two-btns",
 | 
	
		
			
				|  |  | +                maxmin: false, //开启最大化最小化按钮
 | 
	
		
			
				|  |  | +                content: urls ,
 | 
	
		
			
				|  |  | +                btn: ['确定','关闭'],
 | 
	
		
			
				|  |  | +                yes: function(index, layero){
 | 
	
		
			
				|  |  | +                    var body = top.layer.getChildFrame('body', index);
 | 
	
		
			
				|  |  | +                    var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
 | 
	
		
			
				|  |  | +                    var inputForm = body.find('#inputForm');
 | 
	
		
			
				|  |  | +                    var top_iframe;
 | 
	
		
			
				|  |  | +                    if(target){
 | 
	
		
			
				|  |  | +                        top_iframe = target;//如果指定了iframe,则在改frame中跳转
 | 
	
		
			
				|  |  | +                    }else{
 | 
	
		
			
				|  |  | +                        top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                    inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
 | 
	
		
			
				|  |  | +                    inputForm.attr("action","${ctx}/project/projectRecords/linkManSave");//表单提交成功后,从服务器返回的url在当前tab中展示
 | 
	
		
			
				|  |  | +                    var $document = iframeWin.contentWindow.document;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                    formSubmit2($document,formId,index);
 | 
	
		
			
				|  |  | +                },
 | 
	
		
			
				|  |  | +                cancel: function(index){
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            function formSubmit2($document, inputForm, index) {
 | 
	
		
			
				|  |  | +                var validateForm = $($document.getElementById(inputForm)).validate({
 | 
	
		
			
				|  |  | +                    submitHandler: function (form) {
 | 
	
		
			
				|  |  | +                        loading('正在提交,请稍等...');
 | 
	
		
			
				|  |  | +                        form.submit();
 | 
	
		
			
				|  |  | +                    },
 | 
	
		
			
				|  |  | +                    errorContainer: "#messageBox",
 | 
	
		
			
				|  |  | +                    errorPlacement: function (error, element) {
 | 
	
		
			
				|  |  | +                        $($document.getElementById("#messageBox")).text("输入有误,请先更正。");
 | 
	
		
			
				|  |  | +                        if (element.is(":checkbox") || element.is(":radio") || element.parent().is(".input-append")) {
 | 
	
		
			
				|  |  | +                            error.appendTo(element.parent().parent());
 | 
	
		
			
				|  |  | +                        } else {
 | 
	
		
			
				|  |  | +                            error.insertAfter(element);
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                });
 | 
	
		
			
				|  |  | +                if (validateForm.form()) {
 | 
	
		
			
				|  |  | +                    $($document.getElementById(inputForm)).ajaxSubmit({
 | 
	
		
			
				|  |  | +                        success: function (data) {
 | 
	
		
			
				|  |  | +                            var d = data;
 | 
	
		
			
				|  |  | +                            if (d.msg == "false") {
 | 
	
		
			
				|  |  | +                                parent.layer.msg("保存客户信息异常!", {icon: 2});
 | 
	
		
			
				|  |  | +                                return false;
 | 
	
		
			
				|  |  | +                            }
 | 
	
		
			
				|  |  | +                            addRow('#workClientLinkmanList', workClientLinkmanRowIdx, workClientLinkmanRowIdx);
 | 
	
		
			
				|  |  | +                            workClientLinkmanRowIdx = workClientLinkmanRowIdx + 1;
 | 
	
		
			
				|  |  | +                            var row = workClientLinkmanRowIdx - 1;
 | 
	
		
			
				|  |  | +                            $("#" + "workClientLinkmanList" + row + "_id").val(d.id);
 | 
	
		
			
				|  |  | +                            $("#" + "workClientLinkmanList" + row + "_office").val(d.office);
 | 
	
		
			
				|  |  | +                            $("#" + "workClientLinkmanList" + row + "_name").val(d.name);
 | 
	
		
			
				|  |  | +                            $("#" + "workClientLinkmanList" + row + "_linkPhone").val(d.linkPhone);
 | 
	
		
			
				|  |  | +                            $("#" + "workClientLinkmanList" + row + "_linkMobile").val(d.linkMobile);
 | 
	
		
			
				|  |  | +                            parent.layer.msg(d.str, {icon: 1});
 | 
	
		
			
				|  |  | +                            top.layer.close(index)
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                    });
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      </script>
 | 
	
		
			
				|  |  |  </head>
 | 
	
		
			
				|  |  |  <body>
 | 
	
	
		
			
				|  | @@ -392,9 +469,7 @@
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  |                      <div id="div2">
 | 
	
		
			
				|  |  |                          <div class="layui-item nav-btns">
 | 
	
		
			
				|  |  | -                            <a class="nav-btn nav-btn-add"
 | 
	
		
			
				|  |  | -                               onclick="addRow('#workClientLinkmanList', workClientLinkmanRowIdx, workClientLinkmanTpl);workClientLinkmanRowIdx = workClientLinkmanRowIdx + 1;"
 | 
	
		
			
				|  |  | -                               title="新增"><i class="fa fa-plus"></i> 新增</a>
 | 
	
		
			
				|  |  | +                            <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>
 | 
	
	
		
			
				|  | @@ -412,6 +487,31 @@
 | 
	
		
			
				|  |  |                          </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}_delFlag" name="workClientLinkmanList[${index.index}].delFlag" type="hidden" value="0"/>
 | 
	
		
			
				|  |  | +                                    </td>
 | 
	
		
			
				|  |  | +                                    <td>
 | 
	
		
			
				|  |  | +                                        <input id="workClientLinkmanList${index.index}_office" name="workClientLinkmanList[${index.index}].office" type="text" value="${casePeopleNorm.office}" 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">//<!--
 |