|
@@ -135,7 +135,7 @@
|
|
var clientId = $("#clientId").val();
|
|
var clientId = $("#clientId").val();
|
|
console.log(id.val()+"-----------"+clientId);
|
|
console.log(id.val()+"-----------"+clientId);
|
|
if(id.val() == clientId){
|
|
if(id.val() == clientId){
|
|
- parent.layer.msg('主委托方不允许删除');
|
|
|
|
|
|
+ parent.layer.msg('主委托方不允许删除',{icon:5});
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if (id.val() == "") {
|
|
if (id.val() == "") {
|
|
@@ -313,8 +313,8 @@
|
|
$("#clientId").val(d.id);
|
|
$("#clientId").val(d.id);
|
|
$("#clientName").val(d.name);
|
|
$("#clientName").val(d.name);
|
|
addRow('#workClientInfoList', workClientInfoListRowIdx, workClientInfoListTpl);workClientInfoListRowIdx = workClientInfoListRowIdx + 1;
|
|
addRow('#workClientInfoList', workClientInfoListRowIdx, workClientInfoListTpl);workClientInfoListRowIdx = workClientInfoListRowIdx + 1;
|
|
- console.log("---------"+data.companyType+"---------"+data.companyIndustry+"---------"+data.areaName);
|
|
|
|
- console.log("---------"+workClientInfoListRowIdx+"---------"+workClientInfoListTpl);
|
|
|
|
|
|
+ // console.log("---------"+data.companyType+"---------"+data.companyIndustry+"---------"+data.areaName);
|
|
|
|
+ // console.log("---------"+workClientInfoListRowIdx+"---------"+workClientInfoListTpl);
|
|
var row = workClientInfoListRowIdx - 1 ;
|
|
var row = workClientInfoListRowIdx - 1 ;
|
|
$("#"+"workClientInfoList"+row+"_id").val(d.id);
|
|
$("#"+"workClientInfoList"+row+"_id").val(d.id);
|
|
$("#"+"workClientInfoList"+row+"_name").val(d.name);
|
|
$("#"+"workClientInfoList"+row+"_name").val(d.name);
|
|
@@ -353,8 +353,8 @@
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
addRow('#workClientInfoList', workClientInfoListRowIdx, workClientInfoListTpl);workClientInfoListRowIdx = workClientInfoListRowIdx + 1;
|
|
addRow('#workClientInfoList', workClientInfoListRowIdx, workClientInfoListTpl);workClientInfoListRowIdx = workClientInfoListRowIdx + 1;
|
|
- console.log("---------"+data.companyType+"---------"+data.companyIndustry+"---------"+data.areaName);
|
|
|
|
- console.log("---------"+workClientInfoListRowIdx+"---------"+workClientInfoListTpl);
|
|
|
|
|
|
+ // console.log("---------"+data.companyType+"---------"+data.companyIndustry+"---------"+data.areaName);
|
|
|
|
+ // console.log("---------"+workClientInfoListRowIdx+"---------"+workClientInfoListTpl);
|
|
var row = workClientInfoListRowIdx - 1 ;
|
|
var row = workClientInfoListRowIdx - 1 ;
|
|
$("#"+"workClientInfoList"+row+"_id").val(d.id);
|
|
$("#"+"workClientInfoList"+row+"_id").val(d.id);
|
|
$("#"+"workClientInfoList"+row+"_name").val(d.name);
|
|
$("#"+"workClientInfoList"+row+"_name").val(d.name);
|
|
@@ -394,8 +394,8 @@
|
|
var size = $("#workClientInfoList tr").length+count;
|
|
var size = $("#workClientInfoList tr").length+count;
|
|
if(size == 0){
|
|
if(size == 0){
|
|
addRow('#workClientInfoList', workClientInfoListRowIdx, workClientInfoListTpl);workClientInfoListRowIdx = workClientInfoListRowIdx + 1;
|
|
addRow('#workClientInfoList', workClientInfoListRowIdx, workClientInfoListTpl);workClientInfoListRowIdx = workClientInfoListRowIdx + 1;
|
|
- console.log("---------"+data.companyType+"---------"+data.companyIndustry+"---------"+data.areaName);
|
|
|
|
- console.log("---------"+workClientInfoListRowIdx+"---------"+workClientInfoListTpl);
|
|
|
|
|
|
+ // console.log("---------"+data.companyType+"---------"+data.companyIndustry+"---------"+data.areaName);
|
|
|
|
+ // console.log("---------"+workClientInfoListRowIdx+"---------"+workClientInfoListTpl);
|
|
var row = workClientInfoListRowIdx - 1 ;
|
|
var row = workClientInfoListRowIdx - 1 ;
|
|
$("#"+"workClientInfoList"+row+"_id").val(d.id);
|
|
$("#"+"workClientInfoList"+row+"_id").val(d.id);
|
|
$("#"+"workClientInfoList"+row+"_name").val(d.name);
|
|
$("#"+"workClientInfoList"+row+"_name").val(d.name);
|
|
@@ -419,8 +419,8 @@
|
|
if(num == 'alone'){
|
|
if(num == 'alone'){
|
|
addRow('#workClientInfoList', workClientInfoListRowIdx, workClientInfoListTpl);
|
|
addRow('#workClientInfoList', workClientInfoListRowIdx, workClientInfoListTpl);
|
|
workClientInfoListRowIdx = workClientInfoListRowIdx + 1;
|
|
workClientInfoListRowIdx = workClientInfoListRowIdx + 1;
|
|
- console.log("---------" + data.companyType + "---------" + data.companyIndustry + "---------" + data.areaName);
|
|
|
|
- console.log("---------" + workClientInfoListRowIdx + "---------" + workClientInfoListTpl);
|
|
|
|
|
|
+ // console.log("---------" + data.companyType + "---------" + data.companyIndustry + "---------" + data.areaName);
|
|
|
|
+ // console.log("---------" + workClientInfoListRowIdx + "---------" + workClientInfoListTpl);
|
|
var row = workClientInfoListRowIdx - 1;
|
|
var row = workClientInfoListRowIdx - 1;
|
|
$("#" + "workClientInfoList" + row + "_id").val(d.id);
|
|
$("#" + "workClientInfoList" + row + "_id").val(d.id);
|
|
$("#" + "workClientInfoList" + row + "_name").val(d.name);
|
|
$("#" + "workClientInfoList" + row + "_name").val(d.name);
|
|
@@ -767,14 +767,37 @@
|
|
</c:if>
|
|
</c:if>
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|
|
|
|
+ <script type="text/template" id="workClientInfoListTpl">//<!--
|
|
|
|
+ <tr id="workClientInfoList{{idx}}">
|
|
|
|
+ <td class="hide">
|
|
|
|
+ <input id="workClientInfoList{{idx}}_id" name="workClientInfoList[{{idx}}].id" type="hidden" value="{{row.id}}" class="clientInfoId"/>
|
|
|
|
+ <input id="workClientInfoList{{idx}}_delFlag" name="workClientInfoList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="workClientInfoList{{idx}}_name" name="workClientInfoList[{{idx}}].name" type="text" value="{{row.name}}" readonly="true" class="form-control required"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="workClientInfoList{{idx}}_companyType" name="workClientInfoList[{{idx}}].companyType" type="text" value="{{row.companyType}}" readonly="true" class="form-control required"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="workClientInfoList{{idx}}_companyIndustry" name="workClientInfoList[{{idx}}].companyIndustry" type="text" value="{{row.companyIndustry}}" readonly="true" class="form-control required"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="workClientInfoList{{idx}}_area" name="workClientInfoList[{{idx}}].area.name" type="text" value="{{row.area.name}}" readonly="true" class="form-control required"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td class="text-center op-td" id="workClientInfoList{{idx}}_td">
|
|
|
|
+ {{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#workClientInfoList{{idx}}')" title="删除"><i class="glyphicon glyphicon-remove"></i> 删除</span>{{/delBtn}}
|
|
|
|
+ </td>
|
|
|
|
+ </tr>//-->
|
|
|
|
+ </script>
|
|
|
|
+ <script type="text/javascript">
|
|
|
|
+ var workClientInfoListRowIdx = 0,
|
|
|
|
+ workClientInfoListTpl = $("#workClientInfoListTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
|
|
|
|
+ if ($("#id").val() || $("#aId").val()) {
|
|
|
|
+ workClientInfoListRowIdx = ${fn:length(workContractInfo.workClientInfoList)};
|
|
|
|
+ }
|
|
|
|
|
|
- <script type="text/javascript">
|
|
|
|
- var workClientInfoListRowIdx = 0, workClientInfoListTpl = $("#workClientInfoListTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");
|
|
|
|
- if($("#id").val()||$("#aId").val()){
|
|
|
|
- workClientInfoListRowIdx = ${fn:length(workContractInfo.workClientInfoList)};
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- </script>
|
|
|
|
|
|
+ </script>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|