|
@@ -100,7 +100,11 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (leng1<=1){
|
|
|
|
|
|
+ var projectGrade = '${projectGrade}';
|
|
|
|
+ if (leng1<=1 ){
|
|
|
|
+ top.layer.msg("请添加咨询员信息!", {icon: 0});
|
|
|
|
+ return false;
|
|
|
|
+ }else if(projectGrade == 1 && leng1<=2){
|
|
top.layer.msg("请添加咨询员信息!", {icon: 0});
|
|
top.layer.msg("请添加咨询员信息!", {icon: 0});
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
@@ -1072,7 +1076,7 @@
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
<label class="layui-form-label"><span class="require-item">*</span>审核人员:</label>
|
|
<label class="layui-form-label"><span class="require-item">*</span>审核人员:</label>
|
|
<div class="layui-input-block readOnlyFFF">
|
|
<div class="layui-input-block readOnlyFFF">
|
|
- <select class="form-control judgment layui-input" id="bzshbUserId" name="projectReportData.bzshbUserId">
|
|
|
|
|
|
+ <select class="form-control judgment layui-input" id="bzshbUserId" lay-filter="bzshbUserIdFilter" name="projectReportData.bzshbUserId">
|
|
<option value=""/>
|
|
<option value=""/>
|
|
<c:forEach items="${projectRecords.bzshbUserList}" var="user" varStatus="status">
|
|
<c:forEach items="${projectRecords.bzshbUserList}" var="user" varStatus="status">
|
|
<option value="${user.id}" <c:if test="${projectcontentinfo.projectReportData.bzshbUserId eq user.id }">selected</c:if>>${user.name}</option>
|
|
<option value="${user.id}" <c:if test="${projectcontentinfo.projectReportData.bzshbUserId eq user.id }">selected</c:if>>${user.name}</option>
|
|
@@ -1335,6 +1339,43 @@
|
|
</td>
|
|
</td>
|
|
</tr>//-->
|
|
</tr>//-->
|
|
</script>
|
|
</script>
|
|
|
|
+ <script type="text/template" id="workClientBankTplTechnology">//<!--
|
|
|
|
+ <tr id="reportedConsultantList{{idx}}">
|
|
|
|
+ <td class="hide">
|
|
|
|
+ <input id="reportedConsultantList{{idx}}_id" name="reportedConsultantList[{{idx}}].id" type="hidden" value="{{row.id}}"/>
|
|
|
|
+ <input id="reportedConsultantList{{idx}}_delFlag" name="reportedConsultantList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
|
|
+ <input id="reportedConsultantList{{idx}}_remindId" name="reportedConsultantList[{{idx}}].remindId" type="hidden" value="{{row.remindId}}"/>
|
|
|
|
+ <input id="reportedConsultantList{{idx}}_zhucezigezhKey" name="reportedConsultantList[{{idx}}].zhucezigezhKey" type="hidden" value="{{row.zhucezigezhKey}}"/>
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <td width="60px">
|
|
|
|
+ <input id="reportedConsultantList{{idx}}_costNum" name="reportedConsultantList[{{idx}}].costNum" readonly="readonly" style="text-align: center" value="{{idx}}" type="text" class="form-control contentDetail"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reportedConsultantList{{idx}}_zixunyuan" name="reportedConsultantList[{{idx}}].zixunyuan" type="hidden" value="{{row.zixunyuan}}"/>
|
|
|
|
+ <input id="reportedConsultantList{{idx}}_zixunyuanName" readonly="true" name="reportedConsultantList[{{idx}}].zixunyuanName" value="{{row.zixunyuanName}}" readonly="true" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reportedConsultantList{{idx}}_role" readonly="true" name="reportedConsultantList[{{idx}}].role" value="技术负责人" readonly="true" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reportedConsultantList{{idx}}_zhucezigezhID" readonly="true" name="reportedConsultantList[{{idx}}].zhucezigezhID" value="{{row.zhucezigezhID}}" class="form-control required"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reportedConsultantList{{idx}}_major" readonly="true" name="reportedConsultantList[{{idx}}].major" value="{{row.major}}" class="form-control required"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reportedConsultantList{{idx}}_wordnr" placeholder="请输入本人负责内容" name="reportedConsultantList[{{idx}}].wordnr" value="{{row.wordnr}}" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reportedConsultantList{{idx}}_auditOpinion" placeholder="请输入审核意见" readonly="true" style="background-color: #FFFFFF;" name="reportedConsultantList[{{idx}}].auditOpinion" value="{{row.auditOpinion}}" onclick="openInfo(reportedConsultantList{{idx}},this.value)" class="form-control judgment"/>
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <td class="text-center op-td" width="10">
|
|
|
|
+
|
|
|
|
+ </td>
|
|
|
|
+ </tr>//-->
|
|
|
|
+ </script>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -2200,6 +2241,32 @@
|
|
$("#contractRate").parent().parent().hide();
|
|
$("#contractRate").parent().parent().hide();
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+ layui.form.on('select(bzshbUserIdFilter)', function(data){
|
|
|
|
+ console.log(data.value); //得到被选中的值
|
|
|
|
+
|
|
|
|
+ //根据id查询咨询员列表现有数据量
|
|
|
|
+ var length = $("#reportedConsultantList").find("tr").length;
|
|
|
|
+ //行数超过一行则表示已经存在技术负责人列,则可进行替换
|
|
|
|
+ if(length>1){
|
|
|
|
+ //根据审核人员id查询信息并对数据进行替换
|
|
|
|
+ $.ajax({
|
|
|
|
+ type:"post",
|
|
|
|
+ url:'${ctx}/ruralProject/ruralCostProjectMessage/getWorkUserBYJudgement',
|
|
|
|
+ data:{"id":data.value},
|
|
|
|
+ dataType:"json",
|
|
|
|
+ success:function(result){
|
|
|
|
+ console.log(result)
|
|
|
|
+ $("#reportedConsultantList2_zixunyuan").val(result.zixunyuanId);
|
|
|
|
+ $("#reportedConsultantList2_zixunyuanName").val(result.zixunyuanName);
|
|
|
|
+ $("#reportedConsultantList2_zhucezigezhID").val(result.num);
|
|
|
|
+ $("#reportedConsultantList2_zhucezigezhKey").val(result.name);
|
|
|
|
+ $("#reportedConsultantList2_major").val(result.major);
|
|
|
|
+ $("#reportedConsultantList2_idCard").val(result.idCard);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ });
|
|
});
|
|
});
|
|
})
|
|
})
|
|
</script>
|
|
</script>
|
|
@@ -2207,11 +2274,16 @@
|
|
var workClientBankRowIdx = 0,
|
|
var workClientBankRowIdx = 0,
|
|
workClientBankTpl = $("#workClientBankTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
|
|
workClientBankTpl = $("#workClientBankTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
|
|
workClientBankTplFirst = $("#workClientBankTplFirst").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
|
|
workClientBankTplFirst = $("#workClientBankTplFirst").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
|
|
|
|
+ workClientBankTplTechnology = $("#workClientBankTplTechnology").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
|
|
$(document).ready(function () {
|
|
$(document).ready(function () {
|
|
var dataBank = ${fns:toJson(info)};
|
|
var dataBank = ${fns:toJson(info)};
|
|
|
|
+ var projectGrade = ${projectGrade};
|
|
for (var i = 0; i < dataBank.length; i++) {
|
|
for (var i = 0; i < dataBank.length; i++) {
|
|
if(i == 0){
|
|
if(i == 0){
|
|
addRow('#reportedConsultantList', workClientBankRowIdx, workClientBankTplFirst, dataBank[i]);
|
|
addRow('#reportedConsultantList', workClientBankRowIdx, workClientBankTplFirst, dataBank[i]);
|
|
|
|
+ }else if(i ==1 && projectGrade == 1){
|
|
|
|
+ addRow('#reportedConsultantList', workClientBankRowIdx, workClientBankTplTechnology, dataBank[i]);
|
|
|
|
+
|
|
}else{
|
|
}else{
|
|
addRow('#reportedConsultantList', workClientBankRowIdx, workClientBankTpl, dataBank[i]);
|
|
addRow('#reportedConsultantList', workClientBankRowIdx, workClientBankTpl, dataBank[i]);
|
|
}
|
|
}
|
|
@@ -2220,10 +2292,35 @@
|
|
});
|
|
});
|
|
|
|
|
|
function consultant(id, workClientBankRowIdx, workClientBankTpl) {
|
|
function consultant(id, workClientBankRowIdx, workClientBankTpl) {
|
|
|
|
+ var projectGrade = ${projectGrade};
|
|
//根据id查询咨询员列表现有数据量
|
|
//根据id查询咨询员列表现有数据量
|
|
var length = $("#reportedConsultantList").find("tr").length;
|
|
var length = $("#reportedConsultantList").find("tr").length;
|
|
if(length == 0){
|
|
if(length == 0){
|
|
addRow(id, workClientBankRowIdx, workClientBankTplFirst, "");
|
|
addRow(id, workClientBankRowIdx, workClientBankTplFirst, "");
|
|
|
|
+ }else if(length ==1 && projectGrade == 1){
|
|
|
|
+ var bzshbUserId = $("#bzshbUserId").val();
|
|
|
|
+ if(undefined == bzshbUserId || null == bzshbUserId || '' == bzshbUserId){
|
|
|
|
+ parent.layer.msg("请先选择审核人员!", {icon: 5});
|
|
|
|
+ return false;
|
|
|
|
+ }else{
|
|
|
|
+ addRow(id, workClientBankRowIdx, workClientBankTplTechnology, "");
|
|
|
|
+ var bzshbUserId = $("#bzshbUserId").val();
|
|
|
|
+ $.ajax({
|
|
|
|
+ type:"post",
|
|
|
|
+ url:'${ctx}/ruralProject/ruralCostProjectMessage/getWorkUserBYJudgement',
|
|
|
|
+ data:{"id":bzshbUserId},
|
|
|
|
+ dataType:"json",
|
|
|
|
+ success:function(result){
|
|
|
|
+ console.log(result)
|
|
|
|
+ $("#reportedConsultantList2_zixunyuan").val(result.zixunyuanId);
|
|
|
|
+ $("#reportedConsultantList2_zixunyuanName").val(result.zixunyuanName);
|
|
|
|
+ $("#reportedConsultantList2_zhucezigezhID").val(result.num);
|
|
|
|
+ $("#reportedConsultantList2_zhucezigezhKey").val(result.name);
|
|
|
|
+ $("#reportedConsultantList2_major").val(result.major);
|
|
|
|
+ $("#reportedConsultantList2_idCard").val(result.idCard);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}else{
|
|
}else{
|
|
addRow(id, workClientBankRowIdx, workClientBankTpl, "");
|
|
addRow(id, workClientBankRowIdx, workClientBankTpl, "");
|
|
}
|
|
}
|