|
@@ -492,7 +492,34 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ function delRow(obj, prefix){
|
|
|
|
+ var id = $(prefix+"_id");
|
|
|
|
+ var delFlag = $(prefix+"_delFlag");
|
|
|
|
+ $(obj).parent().parent().remove();
|
|
|
|
+ }
|
|
|
|
+ function addRow(list, idx, tpl, row){
|
|
|
|
+ var idx1 = $("#reportedConsultantList tr").length;
|
|
|
|
+ idx1 +=1;
|
|
|
|
+ bornTemplete(list, idx1, tpl, row, idx);
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ function bornTemplete(list, idx, tpl, row, idx1){
|
|
|
|
+ $(list).append(Mustache.render(tpl, {
|
|
|
|
+ idx: idx, delBtn: true, row: row,
|
|
|
|
+ order:idx1 + 1
|
|
|
|
+ }));
|
|
|
|
+ $(list+idx).find("select").each(function(){
|
|
|
|
+ $(this).val($(this).attr("data-value"));
|
|
|
|
+ });
|
|
|
|
+ $(list+idx).find("input[type='checkbox'], input[type='radio']").each(function(){
|
|
|
|
+ var ss = $(this).attr("data-value").split(',');
|
|
|
|
+ for (var i=0; i<ss.length; i++){
|
|
|
|
+ if($(this).val() == ss[i]){
|
|
|
|
+ $(this).attr("checked","checked");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
</script>
|
|
</script>
|
|
</head>
|
|
</head>
|
|
<body>
|
|
<body>
|
|
@@ -872,8 +899,10 @@
|
|
<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 with-icon">
|
|
<div class="layui-input-block with-icon">
|
|
- <sys:inquireselectUser id="principal" name="projectReportData.principal.id" value="${projectReportData.principal.id}" labelName="projectReportData.principal.name" labelValue="${projectReportData.principal.name}"
|
|
|
|
- cssStyle="background-color:#fff" title="用户" url="/sys/office/treeDataAll?type=3" cssClass="form-control required layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
|
|
|
+ <sys:reportedtreeselectUser id="principal" name="projectReportData.principal.id" value="${ruralProjectRecords.projectMasterId}" labelName="projectMasterName" labelValue="${projectRecords.projectMasterName}"
|
|
|
|
+ cssStyle="background-color:#fff" title="项目负责人" url="/sys/office/treeDataAll?type=4" cssClass="form-control layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
|
+<%-- <sys:inquireselectUser id="principal" name="projectReportData.principal.id" value="${projectReportData.principal.id}" labelName="projectReportData.principal.name" labelValue="${projectReportData.principal.name}"--%>
|
|
|
|
+<%-- cssStyle="background-color:#fff" title="用户" url="/sys/office/treeDataAll?type=3" cssClass="form-control required layui-input" allowClear="true" notAllowSelectParent="true"/>--%>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item layui-col-sm12 lw7 with-textarea">
|
|
<div class="layui-item layui-col-sm12 lw7 with-textarea">
|
|
@@ -883,6 +912,88 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="form-group layui-row">
|
|
|
|
+ <div class="form-group-label"><h2><span class="require-item">*</span>咨询员</h2></div>
|
|
|
|
+ <div class="layui-item layui-col-sm12 lw6">
|
|
|
|
+ <div class="layui-item nav-btns">
|
|
|
|
+ <div class="layui-item nav-btns" style="padding-left:0px;">
|
|
|
|
+ <a class="nav-btn nav-btn-add"
|
|
|
|
+ onclick="addRow('#reportedConsultantList', workClientBankRowIdx, workClientBankTpl);workClientBankRowIdx = workClientBankRowIdx + 1;"
|
|
|
|
+ title="新增"><i class="fa fa-plus"></i> 新增</a>
|
|
|
|
+ </div>
|
|
|
|
+ <table id="bankinfo" class="table table-bordered table-condensed can-edit">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <th width="60px">编号</th>
|
|
|
|
+ <th ><span class="require-item">*</span>咨询员名称</th>
|
|
|
|
+ <th ><span class="require-item">*</span>注册/资格证号</th>
|
|
|
|
+ <th ><span class="require-item">*</span>专业</th>
|
|
|
|
+ <th ><span class="require-item">*</span>本人负责内容</th>
|
|
|
|
+ <th width="100px">操作</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody id="reportedConsultantList">
|
|
|
|
+ <c:forEach items="${info}" var = "info" varStatus="status">
|
|
|
|
+ <tr>
|
|
|
|
+ <td width="60px">
|
|
|
|
+ <input id="reportedConsultantList${status.index+1}_costNum" name="reportedConsultantList[${status.index+1}].costNum" readonly="readonly" style="text-align: center" value="${status.index+1}" type="text" class="form-control contentDetail"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <sys:reportedtreeselectUser id="reportedConsultantList${status.index+1}_zixunyuan" name="reportedConsultantList[${status.index+1}].zixunyuan" value="${info.zixunyuan}" labelName="workAccountList[${status.index+1}].zixunyuan" labelValue="${info.zixunyuanName}"
|
|
|
|
+ title="用户" url="/sys/office/treeDataAll?type=4" cssClass="form-control required layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reportedConsultantList${status.index+1}_zhucezigezhID" readonly="true" name="reportedConsultantList[${status.index+1}].zhucezigezhID" value="${info.zhucezigezhID}" class="form-control required"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reportedConsultantList${status.index+1}_major" readonly="true" name="reportedConsultantList[${status.index+1}].major" value="${info.major}" class="form-control required"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="reportedConsultantList${status.index+1}_wordnr" placeholder="请输入本人负责内容" name="reportedConsultantList[${status.index+1}].wordnr" value="${info.wordnr}" class="form-control required"/>
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <td class="text-center op-td" width="10">
|
|
|
|
+ <span class="op-btn op-btn-delete" onclick="delRow(this, '#reportedConsultantList${status.index+1}')" title="删除"><i class="fa fa-trash"></i> 删除</span>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ <script type="text/template" id="workClientBankTpl">//<!--
|
|
|
|
+ <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}}"/>
|
|
|
|
+ </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>
|
|
|
|
+ <sys:reportedtreeselectUser id="reportedConsultantList{{idx}}_zixunyuan" name="reportedConsultantList[{{idx}}].zixunyuan" value="{{row.zixunyuan}}" labelName="workAccountList[{{idx}}].zixunyuan" labelValue="{{row.zixunyuanName}}"
|
|
|
|
+ title="用户" url="/sys/office/treeDataAll?type=4" cssClass="form-control required layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
|
+ </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 required"/>
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <td class="text-center op-td" width="10">
|
|
|
|
+ {{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#reportedConsultantList{{idx}}')" title="删除"><i class="fa fa-trash"></i> 删除</span>{{/delBtn}}
|
|
|
|
+ </td>
|
|
|
|
+ </tr>//-->
|
|
|
|
+ </script>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
|
|
<div class="form-group layui-row">
|
|
<div class="form-group layui-row">
|
|
<div class="form-group-label"><h2>成果文件</h2></div>
|
|
<div class="form-group-label"><h2>成果文件</h2></div>
|
|
@@ -1174,6 +1285,18 @@
|
|
</form:form>
|
|
</form:form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+<script type="text/javascript">
|
|
|
|
+ var workClientBankRowIdx = 0,
|
|
|
|
+ workClientBankTpl = $("#workClientBankTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
|
|
|
|
+ $(document).ready(function () {
|
|
|
|
+ var dataBank = ${fns:toJson(ruralProjectRecordsReported.reportedConsultantList)};
|
|
|
|
+ for (var i = 0; i < dataBank.length; i++) {
|
|
|
|
+ addRow('#reportedConsultantList', workClientBankRowIdx, workClientBankTpl, dataBank[i]);
|
|
|
|
+ workClientBankRowIdx = workClientBankRowIdx + 1;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+</script>
|
|
<script>
|
|
<script>
|
|
function openBill2(title,url,width,height,target,formId,tableId){
|
|
function openBill2(title,url,width,height,target,formId,tableId){
|
|
var rows = $(this).parent().prevAll().length + 1;
|
|
var rows = $(this).parent().prevAll().length + 1;
|
|
@@ -1351,36 +1474,36 @@
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
- function addRowBaseData(list, idx, tpl, row){
|
|
|
|
- bornTemplete(list, idx, tpl, row, idx);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- function bornTemplete(list, idx, tpl, row, idx1){
|
|
|
|
- var idx1 = '';
|
|
|
|
- if(list == 'file_attachment'){
|
|
|
|
- idx1 = $("#file_attachment tr").length +1;
|
|
|
|
- }else if(list == 'file_gistdata'){
|
|
|
|
- idx1 = $("#file_gistdata tr").length +1;
|
|
|
|
- }else if(list == 'file_other'){
|
|
|
|
- idx1 = $("#file_other tr").length +1;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- $(list).append(Mustache.render(tpl, {
|
|
|
|
- idx: idx, delBtn: true, row: row,
|
|
|
|
- order:idx1 + 1, idx1:idx1
|
|
|
|
- }));
|
|
|
|
- $(list+idx).find("select").each(function(){
|
|
|
|
- $(this).val($(this).attr("data-value"));
|
|
|
|
- });
|
|
|
|
- $(list+idx).find("input[type='checkbox'], input[type='radio']").each(function(){
|
|
|
|
- var ss = $(this).attr("data-value").split(',');
|
|
|
|
- for (var i=0; i<ss.length; i++){
|
|
|
|
- if($(this).val() == ss[i]){
|
|
|
|
- $(this).attr("checked","checked");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ // function addRowBaseData(list, idx, tpl, row){
|
|
|
|
+ // bornTemplete(list, idx, tpl, row, idx);
|
|
|
|
+ // }
|
|
|
|
+ //
|
|
|
|
+ // function bornTemplete(list, idx, tpl, row, idx1){
|
|
|
|
+ // var idx1 = '';
|
|
|
|
+ // if(list == 'file_attachment'){
|
|
|
|
+ // idx1 = $("#file_attachment tr").length +1;
|
|
|
|
+ // }else if(list == 'file_gistdata'){
|
|
|
|
+ // idx1 = $("#file_gistdata tr").length +1;
|
|
|
|
+ // }else if(list == 'file_other'){
|
|
|
|
+ // idx1 = $("#file_other tr").length +1;
|
|
|
|
+ // }
|
|
|
|
+ //
|
|
|
|
+ // $(list).append(Mustache.render(tpl, {
|
|
|
|
+ // idx: idx, delBtn: true, row: row,
|
|
|
|
+ // order:idx1 + 1, idx1:idx1
|
|
|
|
+ // }));
|
|
|
|
+ // $(list+idx).find("select").each(function(){
|
|
|
|
+ // $(this).val($(this).attr("data-value"));
|
|
|
|
+ // });
|
|
|
|
+ // $(list+idx).find("input[type='checkbox'], input[type='radio']").each(function(){
|
|
|
|
+ // var ss = $(this).attr("data-value").split(',');
|
|
|
|
+ // for (var i=0; i<ss.length; i++){
|
|
|
|
+ // if($(this).val() == ss[i]){
|
|
|
|
+ // $(this).attr("checked","checked");
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
function delRowBaseData(obj, prefix,userId){
|
|
function delRowBaseData(obj, prefix,userId){
|
|
var id = $(prefix+"_id").val();
|
|
var id = $(prefix+"_id").val();
|
|
var currentUser = '${fns:getUser().id}';
|
|
var currentUser = '${fns:getUser().id}';
|