|  | @@ -44,7 +44,7 @@
 | 
	
		
			
				|  |  |          $(document).ready(function() {
 | 
	
		
			
				|  |  |              var div1 = $("#div1").html();
 | 
	
		
			
				|  |  |              var div2 = $("#div2").html();
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +            var radioVal ;
 | 
	
		
			
				|  |  |              validateForm = $("#inputForm").validate({
 | 
	
		
			
				|  |  |                  submitHandler: function(form){
 | 
	
		
			
				|  |  |                      loading('正在提交,请稍等...');
 | 
	
	
		
			
				|  | @@ -78,30 +78,23 @@
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            var radioVal ;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |              $("input[name='ext']").on('ifChecked',function(event){
 | 
	
		
			
				|  |  |                  radioVal = $(this).val();
 | 
	
		
			
				|  |  |                  if(radioVal == 0){
 | 
	
		
			
				|  |  | -                    alert(radioVal);
 | 
	
		
			
				|  |  |                      //有合同状态
 | 
	
		
			
				|  |  |                      $("#divv").show();
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |                      $("#div1").remove();
 | 
	
		
			
				|  |  |                      $("#div2").remove();
 | 
	
		
			
				|  |  |                      var temp = $("<div id='div1'></div>").html(div1);
 | 
	
		
			
				|  |  |                      $("#LinkMenDiv").append(temp);
 | 
	
		
			
				|  |  | -                    console.log( $("#LinkMenDiv").html());
 | 
	
		
			
				|  |  |                  }else{
 | 
	
		
			
				|  |  | -                    alert(radioVal);
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |                      $("#divv").hide();
 | 
	
		
			
				|  |  |                      $("#divv input").val('');
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |                      $("#div1").remove();
 | 
	
		
			
				|  |  |                      $("#div2").remove();
 | 
	
		
			
				|  |  |                      var temp = $("<div id='div2'></div>").html(div2);
 | 
	
		
			
				|  |  |                      $("#LinkMenDiv").append(temp);
 | 
	
		
			
				|  |  | -                    console.log( $("#LinkMenDiv").html());
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -385,79 +378,78 @@
 | 
	
		
			
				|  |  |              </div>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            <div class="form-group layui-row" id="LinkMenDiv">
 | 
	
		
			
				|  |  | +            <div class="form-group layui-row">
 | 
	
		
			
				|  |  |                  <div class="form-group-label"><h2><span class="require-item">*</span>委托方联系人信息</h2></div>
 | 
	
		
			
				|  |  | -                <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 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 class="layui-item layui-col-xs12 form-table-container">
 | 
	
		
			
				|  |  | -                        <table id="contentTable1" class="table table-bordered table-condensed details">
 | 
	
		
			
				|  |  | -                            <thead>
 | 
	
		
			
				|  |  | -                            <tr>
 | 
	
		
			
				|  |  | -                                <th class="hide"></th>
 | 
	
		
			
				|  |  | -                                <th width="20%">委托方</th>
 | 
	
		
			
				|  |  | -                                <th width="20%">联系人姓名</th>
 | 
	
		
			
				|  |  | -                                <th width="20%">联系方式1</th>
 | 
	
		
			
				|  |  | -                                <th width="20%">联系方式2</th>
 | 
	
		
			
				|  |  | -                                <th width="20%">操作</th>
 | 
	
		
			
				|  |  | -                            </tr>
 | 
	
		
			
				|  |  | -                            </thead>
 | 
	
		
			
				|  |  | -                            <tbody id="workClientLinkmanList">
 | 
	
		
			
				|  |  | -                            </tbody>
 | 
	
		
			
				|  |  | -                        </table>
 | 
	
		
			
				|  |  | -                        <script type="text/template" id="workClientLinkmanTpl">
 | 
	
		
			
				|  |  | -                        </script>
 | 
	
		
			
				|  |  | +                    <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>
 | 
	
		
			
				|  |  | +                        </div>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  |                  </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>
 | 
	
		
			
				|  |  | -                    </div>
 | 
	
		
			
				|  |  | -                    <div class="layui-item layui-col-xs12 form-table-container">
 | 
	
		
			
				|  |  | -                        <table id="contentTable" class="table table-bordered table-condensed can-edit">
 | 
	
		
			
				|  |  | -                            <thead>
 | 
	
		
			
				|  |  | -                            <tr>
 | 
	
		
			
				|  |  | -                                <th class="hide"></th>
 | 
	
		
			
				|  |  | -                                <th width="20%"><font color="red">*</font>委托方</th>
 | 
	
		
			
				|  |  | -                                <th width="20%">联系人姓名</th>
 | 
	
		
			
				|  |  | -                                <th width="20%">联系方式1</th>
 | 
	
		
			
				|  |  | -                                <th width="20%">联系方式2</th>
 | 
	
		
			
				|  |  | -                                <th width="20%">操作</th>
 | 
	
		
			
				|  |  | -                            </tr>
 | 
	
		
			
				|  |  | -                            </thead>
 | 
	
		
			
				|  |  | -                            <tbody id="workClientLinkmanList">
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            </tbody>
 | 
	
		
			
				|  |  | -                        </table>
 | 
	
		
			
				|  |  | -                        <script type="text/template" id="workClientLinkmanTpl">
 | 
	
		
			
				|  |  | -                        </script>
 | 
	
		
			
				|  |  | -                        <script type="text/javascript">
 | 
	
		
			
				|  |  | -                            var workClientLinkmanRowIdx = 0,
 | 
	
		
			
				|  |  | -                                workClientLinkmanTpl = $("#workClientLinkmanTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
 | 
	
		
			
				|  |  | -                            var workClientBankRowIdx = 0,
 | 
	
		
			
				|  |  | -                                workClientBankTpl = $("#workClientBankTpl").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;
 | 
	
		
			
				|  |  | -                                }
 | 
	
		
			
				|  |  | -                                var dataBank = ${fns:toJson(workClientInfo.workClientBankList)};
 | 
	
		
			
				|  |  | -                                for (var i = 0; i < dataBank.length; i++) {
 | 
	
		
			
				|  |  | -                                    addRow('#workClientBankList', workClientBankRowIdx, workClientBankTpl, dataBank[i]);
 | 
	
		
			
				|  |  | -                                    workClientBankRowIdx = workClientBankRowIdx + 1;
 | 
	
		
			
				|  |  | -                                }
 | 
	
		
			
				|  |  | -                            });
 | 
	
		
			
				|  |  | +                <div class="form-group layui-row">
 | 
	
		
			
				|  |  | +                    <table id="contentTable1" class="table table-bordered table-condensed details">
 | 
	
		
			
				|  |  | +                        <thead>
 | 
	
		
			
				|  |  | +                        <tr>
 | 
	
		
			
				|  |  | +                            <th class="hide"></th>
 | 
	
		
			
				|  |  | +                            <th width="20%"><font color="red">*</font>委托方</th>
 | 
	
		
			
				|  |  | +                            <th width="20%">联系人姓名</th>
 | 
	
		
			
				|  |  | +                            <th width="20%">联系方式1</th>
 | 
	
		
			
				|  |  | +                            <th width="20%">联系方式2</th>
 | 
	
		
			
				|  |  | +                            <th width="20%">操作</th>
 | 
	
		
			
				|  |  | +                        </tr>
 | 
	
		
			
				|  |  | +                        </thead>
 | 
	
		
			
				|  |  | +                        <tbody id="workClientLinkmanList">
 | 
	
		
			
				|  |  | +                        </tbody>
 | 
	
		
			
				|  |  | +                    </table>
 | 
	
		
			
				|  |  | +                    <script type="text/template" id="workClientLinkmanTpl">//<!--
 | 
	
		
			
				|  |  | +            <tr id="workClientLinkmanList{{idx}}">
 | 
	
		
			
				|  |  | +                <td class="hide">
 | 
	
		
			
				|  |  | +                    <input id="workClientLinkmanList{{idx}}_id" name="workClientLinkmanList[{{idx}}].id" type="hidden" value="{{row.id}}"/>
 | 
	
		
			
				|  |  | +                    <input id="workClientLinkmanList{{idx}}_delFlag" name="workClientLinkmanList[{{idx}}].delFlag" type="hidden" value="0"/>
 | 
	
		
			
				|  |  | +                </td>
 | 
	
		
			
				|  |  | +                <td>
 | 
	
		
			
				|  |  | +                    <input id="workClientLinkmanList{{idx}}_office" name="workClientLinkmanList[{{idx}}].office" type="text" value="{{row.office}}"    class="form-control "/>
 | 
	
		
			
				|  |  | +                </td>
 | 
	
		
			
				|  |  | +                <td>
 | 
	
		
			
				|  |  | +                    <input id="workClientLinkmanList{{idx}}_name" name="workClientLinkmanList[{{idx}}].name" type="text" value="{{row.name}}"    class="form-control required"/>
 | 
	
		
			
				|  |  | +                </td>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                        </script>
 | 
	
		
			
				|  |  | -                    </div>
 | 
	
		
			
				|  |  | +                <td>
 | 
	
		
			
				|  |  | +                    <input id="workClientLinkmanList{{idx}}_linkPhone" name="workClientLinkmanList[{{idx}}].linkPhone" type="text" value="{{row.linkPhone}}"    class="form-control isTel"/>
 | 
	
		
			
				|  |  | +                </td>
 | 
	
		
			
				|  |  | +                <td>
 | 
	
		
			
				|  |  | +                    <input id="workClientLinkmanList{{idx}}_linkMobile" name="workClientLinkmanList[{{idx}}].linkMobile" type="text" value="{{row.linkMobile}}"    class="form-control isPhone"/>
 | 
	
		
			
				|  |  | +                </td>
 | 
	
		
			
				|  |  | +                <td class="text-center op-td" >
 | 
	
		
			
				|  |  | +                    {{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#workClientLinkmanList{{idx}}')" title="删除"><i class="glyphicon glyphicon-remove"></i> 删除</span>{{/delBtn}}
 | 
	
		
			
				|  |  | +                </td>
 | 
	
		
			
				|  |  | +            </tr>//-->
 | 
	
		
			
				|  |  | +                    </script>
 | 
	
		
			
				|  |  | +                    <script type="text/javascript">
 | 
	
		
			
				|  |  | +                        var workClientLinkmanRowIdx = 0,
 | 
	
		
			
				|  |  | +                            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;
 | 
	
		
			
				|  |  | +                            }
 | 
	
		
			
				|  |  | +                        });
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                    </script>
 | 
	
		
			
				|  |  |                  </div>
 | 
	
		
			
				|  |  |              </div>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -482,7 +474,29 @@
 | 
	
		
			
				|  |  |                          <tbody id="workConstructionLinkmanList">
 | 
	
		
			
				|  |  |                          </tbody>
 | 
	
		
			
				|  |  |                      </table>
 | 
	
		
			
				|  |  | -                    <script type="text/template" id="workConstructionLinkmanTpl">
 | 
	
		
			
				|  |  | +                    <script type="text/template" id="workConstructionLinkmanTpl">//<!--
 | 
	
		
			
				|  |  | +					<tr id="workConstructionLinkmanList{{idx}}">
 | 
	
		
			
				|  |  | +					<td class="hide">
 | 
	
		
			
				|  |  | +						<input id="workConstructionLinkmanList{{idx}}_id" name="workConstructionLinkmanList[{{idx}}].id" type="hidden" value="{{row.id}}" class="linkmanId"/>
 | 
	
		
			
				|  |  | +						<input id="workConstructionLinkmanList{{idx}}_delFlag" name="workConstructionLinkmanList[{{idx}}].delFlag" type="hidden" value="0"/>
 | 
	
		
			
				|  |  | +					</td>
 | 
	
		
			
				|  |  | +					<td style="text-align: center">
 | 
	
		
			
				|  |  | +						<input id="workConstructionLinkmanList{{idx}}_cid" name = "workConstructionLinkmanList[{{idx}}].clientId.id" type="hidden" value="{{row.clientId.id}}"/>
 | 
	
		
			
				|  |  | +						{{row.clientId.name}}
 | 
	
		
			
				|  |  | +					</td>
 | 
	
		
			
				|  |  | +					<td style="text-align: center">
 | 
	
		
			
				|  |  | +						{{row.name }}
 | 
	
		
			
				|  |  | +					</td>
 | 
	
		
			
				|  |  | +					<td style="text-align: center">
 | 
	
		
			
				|  |  | +						{{row.linkPhone}}
 | 
	
		
			
				|  |  | +					</td>
 | 
	
		
			
				|  |  | +					<td style="text-align: center">
 | 
	
		
			
				|  |  | +						{{row.linkMobile}}
 | 
	
		
			
				|  |  | +					</td>
 | 
	
		
			
				|  |  | +					<td class="text-center" width="10">
 | 
	
		
			
				|  |  | +						{{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#workConstructionLinkmanList{{idx}}')" title="删除"><i class="fa fa-trash"></i> 删除</span>{{/delBtn}}
 | 
	
		
			
				|  |  | +					</td>
 | 
	
		
			
				|  |  | +				</tr>//-->
 | 
	
		
			
				|  |  |                      </script>
 | 
	
		
			
				|  |  |                      <script>
 | 
	
		
			
				|  |  |                          var workClientLinkmanRowIdx = 0, workClientLinkmanTpl = $("#workClientLinkmanTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");
 |