|  | @@ -5,7 +5,7 @@
 | 
												
													
														
															|  |      <title>项目管理</title>
 |  |      <title>项目管理</title>
 | 
												
													
														
															|  |      <meta name="decorator" content="default"/>
 |  |      <meta name="decorator" content="default"/>
 | 
												
													
														
															|  |      <script type="text/javascript" src="${ctxStatic}/helloweba_editable-select/jquery.editable-select.min.js"></script>
 |  |      <script type="text/javascript" src="${ctxStatic}/helloweba_editable-select/jquery.editable-select.min.js"></script>
 | 
												
													
														
															|  | -    <script type="text/javascript" src="${ctxStatic}/static/iCheck/icheck.min.js"></script>
 |  | 
 | 
												
													
														
															|  | 
 |  | +    <script type="text/javascript" src="${ctxStatic}/iCheck/icheck.min.js"></script>
 | 
												
													
														
															|  |      <link rel='stylesheet' type="text/css" href="${ctxStatic}/helloweba_editable-select/jquery.editable-select.min.css"/>
 |  |      <link rel='stylesheet' type="text/css" href="${ctxStatic}/helloweba_editable-select/jquery.editable-select.min.css"/>
 | 
												
													
														
															|  |      <style>
 |  |      <style>
 | 
												
													
														
															|  |          #projectDesc-error{
 |  |          #projectDesc-error{
 | 
												
											
												
													
														
															|  | @@ -263,51 +263,56 @@
 | 
												
													
														
															|  |                      var $document = iframeWin.contentWindow.document;
 |  |                      var $document = iframeWin.contentWindow.document;
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |                      formSubmit2($document,formId,index);
 |  |                      formSubmit2($document,formId,index);
 | 
												
													
														
															|  | 
 |  | +
 | 
												
													
														
															|  |                  },
 |  |                  },
 | 
												
													
														
															|  |                  cancel: function(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);
 |  | 
 | 
												
													
														
															|  | 
 |  | +
 | 
												
													
														
															|  | 
 |  | +        }
 | 
												
													
														
															|  | 
 |  | +
 | 
												
													
														
															|  | 
 |  | +        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;
 | 
												
													
														
															|  |                          }
 |  |                          }
 | 
												
													
														
															|  | 
 |  | +                        console.log("-------success-----");
 | 
												
													
														
															|  | 
 |  | +                        addRow('#workClientLinkmanList', workClientLinkmanRowIdx, workClientLinkmanTpl);workClientLinkmanRowIdx = workClientLinkmanRowIdx + 1;
 | 
												
													
														
															|  | 
 |  | +                        var row = workClientLinkmanRowIdx - 1 ;
 | 
												
													
														
															|  | 
 |  | +
 | 
												
													
														
															|  | 
 |  | +                        $("#"+"workClientLinkmanList"+row+"_id").val(d.id);
 | 
												
													
														
															|  | 
 |  | +                        $("#"+"workClientLinkmanList"+row+"_clientId_id").val(d.clientId);
 | 
												
													
														
															|  | 
 |  | +                        $("#"+"workClientLinkmanList"+row+"_clientName").val(d.clientName);
 | 
												
													
														
															|  | 
 |  | +                        $("#"+"workClientLinkmanList"+row+"_name").val(d.linkName);
 | 
												
													
														
															|  | 
 |  | +                        $("#"+"workClientLinkmanList"+row+"_linkMobile").val(d.linkMobile);
 | 
												
													
														
															|  | 
 |  | +                        $("#"+"workClientLinkmanList"+row+"_linkPhone").val(d.linkPhone);
 | 
												
													
														
															|  | 
 |  | +                        $("#contractClientName").val(d.clientName);
 | 
												
													
														
															|  | 
 |  | +                        parent.layer.msg(d.str,{icon:1});
 | 
												
													
														
															|  | 
 |  | +                        top.layer.close(index)
 | 
												
													
														
															|  |                      }
 |  |                      }
 | 
												
													
														
															|  |                  });
 |  |                  });
 | 
												
													
														
															|  | -                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>
 |  |      </script>
 | 
												
													
														
															|  |  </head>
 |  |  </head>
 | 
												
													
														
															|  |  <body>
 |  |  <body>
 | 
												
											
												
													
														
															|  | @@ -319,16 +324,18 @@
 | 
												
													
														
															|  |              <form:hidden path="workContractInfo.client.id" id="contractClientId" value="${workContractInfo.client.id}"/>
 |  |              <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 first">
 | 
												
													
														
															|  | -                <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 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 id="divv">
 | 
												
													
														
															|  |                      <div class="layui-item layui-col-sm12 lw7" id="d1">
 |  |                      <div class="layui-item layui-col-sm12 lw7" id="d1">
 | 
												
													
														
															|  |                          <label class="layui-form-label"><span class="require-item">*</span>选择合同:</label>
 |  |                          <label class="layui-form-label"><span class="require-item">*</span>选择合同:</label>
 | 
												
											
												
													
														
															|  | @@ -349,17 +356,17 @@
 | 
												
													
														
															|  |                              <input htmlEscape="false"  readonly="true" id="contractPrice"  class="form-control layui-input" value="${projectRecords.workContractInfo.contractPrice}" onchange="formatNum(this);"/>
 |  |                              <input htmlEscape="false"  readonly="true" id="contractPrice"  class="form-control layui-input" value="${projectRecords.workContractInfo.contractPrice}" onchange="formatNum(this);"/>
 | 
												
													
														
															|  |                          </div>
 |  |                          </div>
 | 
												
													
														
															|  |                      </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="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="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 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>
 |  |              </div>
 | 
												
											
												
													
														
															|  | @@ -492,10 +499,11 @@
 | 
												
													
														
															|  |                                  <tr id="workClientInfoList${index.index}">
 |  |                                  <tr id="workClientInfoList${index.index}">
 | 
												
													
														
															|  |                                      <td class="hide">
 |  |                                      <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}_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"/>
 |  |                                          <input id="workClientLinkmanList${index.index}_delFlag" name="workClientLinkmanList[${index.index}].delFlag" type="hidden" value="0"/>
 | 
												
													
														
															|  |                                      </td>
 |  |                                      </td>
 | 
												
													
														
															|  |                                      <td>
 |  |                                      <td>
 | 
												
													
														
															|  | -                                        <input id="workClientLinkmanList${index.index}_office" name="workClientLinkmanList[${index.index}].office" type="text" value="${casePeopleNorm.office}" readonly="true"   class="form-control "/>
 |  | 
 | 
												
													
														
															|  | 
 |  | +                                        <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>
 | 
												
													
														
															|  |                                      <td>
 |  |                                      <td>
 | 
												
													
														
															|  |                                          <input id="workClientLinkmanList${index.index}_name" name="workClientLinkmanList[${index.index}].name" type="text" value="${casePeopleNorm.name}" readonly="true"   class="form-control "/>
 |  |                                          <input id="workClientLinkmanList${index.index}_name" name="workClientLinkmanList[${index.index}].name" type="text" value="${casePeopleNorm.name}" readonly="true"   class="form-control "/>
 | 
												
											
												
													
														
															|  | @@ -518,10 +526,11 @@
 | 
												
													
														
															|  |              <tr id="workClientLinkmanList{{idx}}">
 |  |              <tr id="workClientLinkmanList{{idx}}">
 | 
												
													
														
															|  |                  <td class="hide">
 |  |                  <td class="hide">
 | 
												
													
														
															|  |                      <input id="workClientLinkmanList{{idx}}_id" name="workClientLinkmanList[{{idx}}].id" type="hidden" value="{{row.id}}"/>
 |  |                      <input id="workClientLinkmanList{{idx}}_id" name="workClientLinkmanList[{{idx}}].id" type="hidden" value="{{row.id}}"/>
 | 
												
													
														
															|  | 
 |  | +                    <input id="workClientLinkmanList{{idx}}_clientId_id" name="workClientLinkmanList[{{idx}}].clientId.id" type="hidden" value="{{row.clientId.id}}"/>
 | 
												
													
														
															|  |                      <input id="workClientLinkmanList{{idx}}_delFlag" name="workClientLinkmanList[{{idx}}].delFlag" type="hidden" value="0"/>
 |  |                      <input id="workClientLinkmanList{{idx}}_delFlag" name="workClientLinkmanList[{{idx}}].delFlag" type="hidden" value="0"/>
 | 
												
													
														
															|  |                  </td>
 |  |                  </td>
 | 
												
													
														
															|  |                  <td>
 |  |                  <td>
 | 
												
													
														
															|  | -                    <input id="workClientLinkmanList{{idx}}_office" name="workClientLinkmanList[{{idx}}].office" type="text" value="{{row.office}}"    class="form-control "/>
 |  | 
 | 
												
													
														
															|  | 
 |  | +                    <input id="workClientLinkmanList{{idx}}_clientName" name="workClientLinkmanList[{{idx}}].clientId.name" type="text" value="{{row.clientId.name}}"    class="form-control "/>
 | 
												
													
														
															|  |                  </td>
 |  |                  </td>
 | 
												
													
														
															|  |                  <td>
 |  |                  <td>
 | 
												
													
														
															|  |                      <input id="workClientLinkmanList{{idx}}_name" name="workClientLinkmanList[{{idx}}].name" type="text" value="{{row.name}}"    class="form-control required"/>
 |  |                      <input id="workClientLinkmanList{{idx}}_name" name="workClientLinkmanList[{{idx}}].name" type="text" value="{{row.name}}"    class="form-control required"/>
 |