|
@@ -7,6 +7,7 @@
|
|
<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}/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"/>
|
|
|
|
+ <link href="${ctxStatic}/layer-v2.3/layui/tableTree/treetable.css" rel="stylesheet" />
|
|
<style>
|
|
<style>
|
|
#projectDesc-error{
|
|
#projectDesc-error{
|
|
left:0;
|
|
left:0;
|
|
@@ -44,8 +45,10 @@
|
|
parent.layer.msg("请添加归档项目!", {icon: 5});
|
|
parent.layer.msg("请添加归档项目!", {icon: 5});
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
|
|
+ // var prosize=$()
|
|
|
|
+ // var proJson=new Array(length);
|
|
for (var i=0;i<length;i++){
|
|
for (var i=0;i<length;i++){
|
|
- var zhi=$("#projectList tr").eq(i).find("input[name='wType']").val();
|
|
|
|
|
|
+ var zhi=$("#projectList tr").eq(i).find("input[name='proInfoType']").val();
|
|
if (zhi==""){
|
|
if (zhi==""){
|
|
parent.layer.msg("信息未填写完整!", {icon: 5});
|
|
parent.layer.msg("信息未填写完整!", {icon: 5});
|
|
return false
|
|
return false
|
|
@@ -58,6 +61,21 @@
|
|
}
|
|
}
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
+ function listTr(obj){
|
|
|
|
+ var name=$(obj).find("td").eq(0).find("input").eq(0).val();
|
|
|
|
+ var tiao="."+name;
|
|
|
|
+ var span=$(obj).find("td").eq(0);
|
|
|
|
+ // var ss=$(span).val().split(" ")[4];
|
|
|
|
+ $(span).toggle(function () {
|
|
|
|
+ $(tiao).hide();
|
|
|
|
+ $(span).find("span").attr("class","treeTable-icon")
|
|
|
|
+ },function () {
|
|
|
|
+ $(tiao).show();
|
|
|
|
+ $(span).find("span").attr("class","treeTable-icon open")
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ var edit;
|
|
|
|
+ var editId;
|
|
$(document).ready(function() {
|
|
$(document).ready(function() {
|
|
var filingId=$("#filingId").val();
|
|
var filingId=$("#filingId").val();
|
|
if(filingId!=""){
|
|
if(filingId!=""){
|
|
@@ -72,6 +90,8 @@
|
|
var id="projectList_"+obj.id;
|
|
var id="projectList_"+obj.id;
|
|
var pid="project_"+obj.id;
|
|
var pid="project_"+obj.id;
|
|
var tid="project_"+obj.id+"_proId";
|
|
var tid="project_"+obj.id+"_proId";
|
|
|
|
+ editId=id;
|
|
|
|
+ edit=tid;
|
|
var inId="#"+tid;
|
|
var inId="#"+tid;
|
|
var size=$("#projectList .rowSize").size();
|
|
var size=$("#projectList .rowSize").size();
|
|
var flag=true;
|
|
var flag=true;
|
|
@@ -82,26 +102,30 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(flag) {
|
|
if(flag) {
|
|
- $("#projectList").append("<tr class='rowSize'>" +
|
|
|
|
- "<td><input type=\"hidden\" name=\"proId\" id='" + tid + "' value=" + obj.id + ">" + obj.projectId + "</td>" +
|
|
|
|
|
|
+ $("#projectList").append("<tr class='rowSize' onclick='listTr(this)'>" +
|
|
|
|
+ "<td><input type=\"hidden\" name=\"proId\" id='" + tid + "' value=" + obj.id + "><input type=\"hidden\" name=\"projectid\" value=" + obj.id + "><span><i class=\"layui-icon layui-icon-triangle-d\"></i></span>" + obj.projectId + "</td>" +
|
|
"<td>" + obj.projectName + "</td>" +
|
|
"<td>" + obj.projectName + "</td>" +
|
|
"<td>" + obj.projectReportNumber + "</td>" +
|
|
"<td>" + obj.projectReportNumber + "</td>" +
|
|
"<td class=\"text-center op-td\" >" +
|
|
"<td class=\"text-center op-td\" >" +
|
|
- "<span class=\"op-btn op-btn-add\" onclick=\"addRowInfo(" + id + ")\" title=\"添加\"><i class=\"fa fa-plus\"></i> 添加</span>" +
|
|
|
|
|
|
+ "<span class=\"op-btn op-btn-add\" onclick=\"addRowInfoForm("+tid+","+id+")\" title=\"添加\"><i class=\"fa fa-plus\"></i> 添加</span>" +
|
|
"<span class=\"op-btn op-btn-delete\" onclick=\"delListRow(this," + id + ")\" title=\"删除\"><i class=\"glyphicon glyphicon-remove\"></i> 删除</span>" +
|
|
"<span class=\"op-btn op-btn-delete\" onclick=\"delListRow(this," + id + ")\" title=\"删除\"><i class=\"glyphicon glyphicon-remove\"></i> 删除</span>" +
|
|
"</td>" +
|
|
"</td>" +
|
|
"</tr>")
|
|
"</tr>")
|
|
- $("#projectList").append("<tr style='display: none;'> <td colspan='4' style='padding: 0px;'>" +
|
|
|
|
|
|
+ $("#projectList").append("<tr class='"+obj.id+"' style='display: none;'> <td colspan='4' style='padding: 0px;'>" +
|
|
"<table style=\"width: 100%;padding: 0px;margin: 0px;\" class=\"table table-bordered table-condensed details\">" +
|
|
"<table style=\"width: 100%;padding: 0px;margin: 0px;\" class=\"table table-bordered table-condensed details\">" +
|
|
"<tbody id='" + id + "'>" +
|
|
"<tbody id='" + id + "'>" +
|
|
|
|
+ "<input type='text' id='" + id + "_len' style='display: none;' name='flags' />"+
|
|
"</tbody>" +
|
|
"</tbody>" +
|
|
|
|
+
|
|
"</table>" +
|
|
"</table>" +
|
|
"</td></tr>")
|
|
"</td></tr>")
|
|
-
|
|
|
|
$.ajax({
|
|
$.ajax({
|
|
type : "POST",
|
|
type : "POST",
|
|
- url : "${ctx}/projectFilingBatch/projectFilingBatchInfo/getAttachmentList",
|
|
|
|
- data : {'projectId':obj.id},
|
|
|
|
|
|
+ url : "${ctx}/projectFilingBatch/projectFilingBatchInfo/getFilingBatchProInfo",
|
|
|
|
+ data : {
|
|
|
|
+ 'projectId':obj.id,
|
|
|
|
+ 'filingBatch':filingId,
|
|
|
|
+ },
|
|
//请求成功
|
|
//请求成功
|
|
success : function(result) {
|
|
success : function(result) {
|
|
var iid="#"+id
|
|
var iid="#"+id
|
|
@@ -110,17 +134,20 @@
|
|
$(iid).parent().parent().parent().show();
|
|
$(iid).parent().parent().parent().show();
|
|
$.each(result.data,function(index,value){
|
|
$.each(result.data,function(index,value){
|
|
$(iid).append(
|
|
$(iid).append(
|
|
- "<tr>"+
|
|
|
|
- "<td class=\"hide\">"+
|
|
|
|
- "<input type='file' multiple='multiple' style='display: none;' onChange='if(this.value)insertAccording(this.value,"+obj.id+",this);'/>"+
|
|
|
|
- "<input type='hidden' style='display: none;' id='attId' value='"+value.id+"'/>"+
|
|
|
|
- "</td>"+
|
|
|
|
- "<td style=\"text-align: center\" width=\"20%\"><input name='wType' onChange='upwType(this)' class=\"form-control required\" value='"+value.remarks+"'/></td>"+
|
|
|
|
- "<td style=\"text-align: center\" width=\"20%\"><a class=\"attention-info\" href=\"javascript:void(0)\" title=\""+value.attachmentName+"\" onclick=\"preview('预览','"+value.url+"','90%','90%')\"></a>"+value.attachmentName+"</td>"+
|
|
|
|
|
|
+ "<tr class='listInfo' style='position: relative'>"+
|
|
|
|
+ // "<td class=\"hide\">"+
|
|
|
|
+ // "<input type='file' multiple='multiple' style='display: none;' onChange='if(this.value)insertAccording(this.value,"+obj.id+",this);'/>"+
|
|
|
|
+ // "<input type='hidden' style='display: none;' id='attId' value='"+value.id+"'/>"+
|
|
|
|
+ // "<input type='hidden' style='display: none;' id='fileUrl' value='"+value.url+"'/>"+
|
|
|
|
+ // "</td>"+
|
|
|
|
+ "<td style=\"text-align: center;position: relative;\" width=\"20%\">" +
|
|
|
|
+ "<input name='proInfoType' onChange='upwType(this)' style='text-align: center' readonly='true' class=\"form-control required\" value='"+value.proInfoType+"'/></td>"+
|
|
|
|
+ "<td style=\"text-align: center\" width=\"20%\"><input readonly='true' name='proInfoName' style='text-align: center' class=\"form-control required\" value='"+value.proInfoName+"'/></td>"+
|
|
"<td style=\"text-align: center\" width=\"20%\"></td>"+
|
|
"<td style=\"text-align: center\" width=\"20%\"></td>"+
|
|
"<td width=\"20%\">" +
|
|
"<td width=\"20%\">" +
|
|
- "<span href=javascript:void(0); onclick=\"accordingBtn(this)\" class=\"op-btn op-btn-edit\" title=\"上传附件\"><i class=\"glyphicon glyphicon-edit\"></i> 编辑</span>" +
|
|
|
|
|
|
+ "<span href=javascript:void(0); onclick=\"addRowInfoForm("+tid+","+id+")\" class=\"op-btn op-btn-edit\" title=\"上传附件\"><i class=\"glyphicon glyphicon-edit\"></i> 编辑</span>" +
|
|
"<span class=\"op-btn op-btn-delete\" onclick=\"delListInfoRow(this)\" title=\"删除\"><i class=\"glyphicon glyphicon-remove\"></i> 删除</span>" +
|
|
"<span class=\"op-btn op-btn-delete\" onclick=\"delListInfoRow(this)\" title=\"删除\"><i class=\"glyphicon glyphicon-remove\"></i> 删除</span>" +
|
|
|
|
+ "<input type='text' class='" + id + "_json' style='display: none;' name='proInfos' />"+
|
|
"</td>"+
|
|
"</td>"+
|
|
"</tr>"
|
|
"</tr>"
|
|
)
|
|
)
|
|
@@ -497,6 +524,8 @@
|
|
var id="projectList_"+d.id;
|
|
var id="projectList_"+d.id;
|
|
var pid="project_"+d.id;
|
|
var pid="project_"+d.id;
|
|
var tid="project_"+d.id+"_proId";
|
|
var tid="project_"+d.id+"_proId";
|
|
|
|
+ edit=tid;
|
|
|
|
+ editId=id;
|
|
var inId="#"+tid;
|
|
var inId="#"+tid;
|
|
var size=$("#projectList .rowSize").size();
|
|
var size=$("#projectList .rowSize").size();
|
|
var flag=true;
|
|
var flag=true;
|
|
@@ -507,19 +536,20 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(flag) {
|
|
if(flag) {
|
|
- $("#projectList").append("<tr class='rowSize'>" +
|
|
|
|
- "<td><input type=\"hidden\" name=\"proId\" id='" + tid + "' value=" + d.id + ">" + d.projectId + "</td>" +
|
|
|
|
|
|
+ $("#projectList").append("<tr class='rowSize' onclick='listTr(this)'>" +
|
|
|
|
+ "<td><input type=\"hidden\" name=\"proId\" id='" + tid + "' value=" + d.id + "><input type=\"hidden\" name=\"projectid\" value=" + d.id + "><span class='treeTable-icon'><i class=\"layui-icon layui-icon-triangle-d\"></i></span>" + d.projectId + "</td>" +
|
|
"<td>" + d.projectName + "</td>" +
|
|
"<td>" + d.projectName + "</td>" +
|
|
"<td>" + d.projectReportNumber + "</td>" +
|
|
"<td>" + d.projectReportNumber + "</td>" +
|
|
"<td class=\"text-center op-td\" >" +
|
|
"<td class=\"text-center op-td\" >" +
|
|
- "<span class=\"op-btn op-btn-add\" onclick=\"addRowInfo(" + id + ")\" title=\"添加\"><i class=\"fa fa-plus\"></i> 添加</span>" +
|
|
|
|
|
|
+ "<span class=\"op-btn op-btn-add\" onclick=\"addRowInfoForm("+tid+","+id+")\" title=\"添加\"><i class=\"fa fa-plus\"></i> 添加</span>" +
|
|
"<span class=\"op-btn op-btn-delete\" onclick=\"delListRow(this," + id + ")\" title=\"删除\"><i class=\"glyphicon glyphicon-remove\"></i> 删除</span>" +
|
|
"<span class=\"op-btn op-btn-delete\" onclick=\"delListRow(this," + id + ")\" title=\"删除\"><i class=\"glyphicon glyphicon-remove\"></i> 删除</span>" +
|
|
"</td>" +
|
|
"</td>" +
|
|
"</tr>")
|
|
"</tr>")
|
|
- $("#projectList").append("<tr style='display: none;'> <td colspan='4' style='padding: 0px;'>" +
|
|
|
|
|
|
+ $("#projectList").append("<tr class='"+d.id+"' style='display: none;'> <td colspan='4' style='padding: 0px;'>" +
|
|
"<table style=\"width: 100%;padding: 0px;margin: 0px;\" class=\"table table-bordered table-condensed details\">" +
|
|
"<table style=\"width: 100%;padding: 0px;margin: 0px;\" class=\"table table-bordered table-condensed details\">" +
|
|
"<tbody id='" + id + "'>" +
|
|
"<tbody id='" + id + "'>" +
|
|
"</tbody>" +
|
|
"</tbody>" +
|
|
|
|
+ "<input type='text' id='" + id + "_len' style='display: none;' name='flags' />"+
|
|
"</table>" +
|
|
"</table>" +
|
|
"</td></tr>")
|
|
"</td></tr>")
|
|
}
|
|
}
|
|
@@ -549,48 +579,127 @@
|
|
// var idx1 = $("#projectList tr").length;
|
|
// var idx1 = $("#projectList tr").length;
|
|
bornTemplete(list, idx, tpl, row, idx);
|
|
bornTemplete(list, idx, tpl, row, idx);
|
|
}
|
|
}
|
|
|
|
+ function addRowInfoForm(obj,tbody) {
|
|
|
|
+ var proid=$(obj).val();
|
|
|
|
+ var filingId=$("#filingId").val();
|
|
|
|
+ var len="#"+tbody.id+" tr";
|
|
|
|
+ var length=$(len).length;
|
|
|
|
+ var types=new Array();
|
|
|
|
+ var names=new Array();
|
|
|
|
+ for (var i=0;i<length;i++){
|
|
|
|
+ types[i]=$(len).eq(i).find("td").eq(0).find("input").eq(0).val();
|
|
|
|
+ names[i]=$(len).eq(i).find("td").eq(1).find("input").eq(0).val();
|
|
|
|
+ }
|
|
|
|
+ var index = parent.layer.getFrameIndex(window.name);
|
|
|
|
+ openDialog1('添加信息', '${ctx}/projectFilingBatch/projectFilingBatchInfo/projectFilingBatchProInfoForm?types='+types+'&names='+names+'&proid='+proid+'&filingId='+filingId,'70%', '80%',tbody);
|
|
|
|
+ }
|
|
|
|
+ function openDialog1(title,url,width,height,tbody){
|
|
|
|
+ top.layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ area: [width, height],
|
|
|
|
+ title: title,
|
|
|
|
+ maxmin: true, //开启最大化最小化按钮
|
|
|
|
+ content: url ,
|
|
|
|
+ btn: ['确定', '关闭'],
|
|
|
|
+ yes: function(index, layero){
|
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
|
+ var tbodyId="#"+tbody.id;
|
|
|
|
+ var JsonId="."+tbody.id;
|
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ var types=iframeWin.contentWindow.proInfoType();
|
|
|
|
+ var names=iframeWin.contentWindow.proInfoValue();
|
|
|
|
+ var proJsons=iframeWin.contentWindow.proInfoJson();
|
|
|
|
+ var jsonInput=JsonId+"_json"
|
|
|
|
+ // $(jsonInput).val(json);
|
|
|
|
+ if(iframeWin.contentWindow.proInfoValue() ){
|
|
|
|
+ $(tbodyId).html("")
|
|
|
|
+ for (var i=0;i<types.length;i++){
|
|
|
|
+ var s=$(body).find("#file_attachment tr").eq(i).html();
|
|
|
|
+ var name=names[i];
|
|
|
|
+ var type=types[i];
|
|
|
|
+ var proJson=proJsons[i];
|
|
|
|
+ $(tbodyId).append(
|
|
|
|
+ "<tr class='listInfo'>"+
|
|
|
|
+ "<td style=\"text-align: center;position: relative;\" width=\"20%\">" +
|
|
|
|
+ "<input readonly='true' name='ProInfoType' style='text-align: center' class=\"form-control required\" value='"+type+"'></td>"+
|
|
|
|
+ "<td style=\"text-align: center\" width=\"20%\"><input readonly='true' name='ProInfoName' style='text-align: center' class=\"form-control\" value='"+name+"'></input></td>"+
|
|
|
|
+ "<td style=\"text-align: center\" width=\"20%\"></td>"+
|
|
|
|
+ "<td width=\"20%\">" +
|
|
|
|
+ "<span href=javascript:void(0); onclick=\"addRowInfoForm("+edit+","+editId+")\" class=\"op-btn op-btn-edit\" title=\"上传附件\"><i class=\"glyphicon glyphicon-edit\"></i> 编辑</span>" +
|
|
|
|
+ "<span class=\"op-btn op-btn-delete\" onclick=\"delListInfoRow(this)\" title=\"删除\"><i class=\"glyphicon glyphicon-remove\"></i> 删除</span>" +
|
|
|
|
+ "<input type='text' class='" + jsonInput + "' name='proInfos' style='display: none;' value='"+proJson+"' />"+
|
|
|
|
+ "</td>"+
|
|
|
|
+ "</tr>"
|
|
|
|
+ )
|
|
|
|
+ }
|
|
|
|
+ if(types.length==1){
|
|
|
|
+ var lenId=tbodyId+"_len"
|
|
|
|
+ $(lenId).val("123");
|
|
|
|
+ var ssss=$(lenId).val()
|
|
|
|
+ }else{
|
|
|
|
+ var lenId=tbodyId+"_len"
|
|
|
|
+ $(lenId).val("");
|
|
|
|
+ }
|
|
|
|
+ top.layer.close(index);//关闭对话框。
|
|
|
|
+ // top.window[iframeName].frames.location.reload();//刷新父亲
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ cancel: function(index){
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ //子页面回调方法
|
|
|
|
+ function addRecord(name,chainName) {
|
|
|
|
+ alert(name);
|
|
|
|
+ }
|
|
|
|
+
|
|
function addRowInfo(obj,d){
|
|
function addRowInfo(obj,d){
|
|
var id="#"+obj.id
|
|
var id="#"+obj.id
|
|
var ss=(obj.id).split("_")
|
|
var ss=(obj.id).split("_")
|
|
var sa=ss[1];
|
|
var sa=ss[1];
|
|
$(id).parent().parent().parent().show();
|
|
$(id).parent().parent().parent().show();
|
|
$(id).append(
|
|
$(id).append(
|
|
- "<tr>"+
|
|
|
|
- "<td class=\"hide\">"+
|
|
|
|
- "<input type='file' multiple='multiple' style='display: none;' onChange='if(this.value)insertAccording(this.value,"+obj.id+",this);'/>"+
|
|
|
|
- "<input type='hidden' style='display: none;' id='attId' value=''/>"+
|
|
|
|
- "</td>"+
|
|
|
|
- "<td style=\"text-align: center\" width=\"20%\"><input name='wType' onChange='upwType(this)' class=\"form-control required\"/></td>"+
|
|
|
|
- "<td style=\"text-align: center\" width=\"20%\"></td>"+
|
|
|
|
|
|
+ "<tr class='listInfo'>"+
|
|
|
|
+ // "<td class=\"hide\">"+
|
|
|
|
+ // "<input type='file' multiple='multiple' style='display: none;' onChange='if(this.value)insertAccording(this.value,"+obj.id+",this);'/>"+
|
|
|
|
+ // "<input type='hidden' style='display: none;' id='attId' value=''/>"+
|
|
|
|
+ // "<input type='hidden' style='display: none;' id='fileUrl' value=''/>"+
|
|
|
|
+ // "</td>"+
|
|
|
|
+ "<td style=\"text-align: center;position: relative;\" width=\"20%\"><input name='ProInfoType' readonly='true' style='text-align: center' onChange='upwType(this)' class=\"form-control required\"/></td>"+
|
|
|
|
+ "<td style=\"text-align: center\" width=\"20%\"><input name='ProInfoName' readonly='true' style='text-align: center' class=\"form-control\"/></td>"+
|
|
"<td style=\"text-align: center\" width=\"20%\"></td>"+
|
|
"<td style=\"text-align: center\" width=\"20%\"></td>"+
|
|
"<td width=\"20%\">" +
|
|
"<td width=\"20%\">" +
|
|
- "<span href=javascript:void(0); onclick=\"accordingBtn(this)\" class=\"op-btn op-btn-edit\" title=\"上传附件\"><i class=\"glyphicon glyphicon-edit\"></i> 编辑</span>" +
|
|
|
|
- "<span class=\"op-btn op-btn-delete\" onclick=\"delListInfoRow(this)\" title=\"删除\"><i class=\"glyphicon glyphicon-remove\"></i> 删除</span>" +
|
|
|
|
|
|
+ // "<span href=javascript:void(0); onclick=\"accordingBtn(this)\" class=\"op-btn op-btn-edit\" title=\"上传附件\"><i class=\"glyphicon glyphicon-edit\"></i> 编辑</span>" +
|
|
|
|
+ // "<span class=\"op-btn op-btn-delete\" onclick=\"delListInfoRow(this)\" title=\"删除\"><i class=\"glyphicon glyphicon-remove\"></i> 删除</span>" +
|
|
"</td>"+
|
|
"</td>"+
|
|
"</tr>"
|
|
"</tr>"
|
|
)
|
|
)
|
|
|
|
+ // var ob=$(id).find("tr:last").find("td").eq(4).find("span").eq(0)
|
|
|
|
+ //文件上传
|
|
|
|
+ // accordingBtn(ob)
|
|
|
|
+
|
|
}
|
|
}
|
|
function upwType(obj) {
|
|
function upwType(obj) {
|
|
- var is=$(obj).parent().parent().find("td").eq(0).find("input").eq(1).val();
|
|
|
|
- var id = is.toString()
|
|
|
|
- var wtype=$(obj).val()
|
|
|
|
- if (is==""){
|
|
|
|
- parent.layer.msg("请先上传文件!", {icon: 5});
|
|
|
|
- $(obj).val("")
|
|
|
|
- }else{
|
|
|
|
- $.ajax({
|
|
|
|
- type:"post",
|
|
|
|
- url:"${ctx}/projectFilingBatch/projectFilingBatchInfo/updateByType",
|
|
|
|
- data:{
|
|
|
|
- "id":id,
|
|
|
|
- "remarks":wtype
|
|
|
|
- },
|
|
|
|
- dataType:"json",
|
|
|
|
- success:function (d) {
|
|
|
|
|
|
+ <%--var is=$(obj).parent().parent().find("td").eq(0).find("input").eq(1).val();--%>
|
|
|
|
+ <%--var id = is.toString()--%>
|
|
|
|
+ <%--var wtype=$(obj).val()--%>
|
|
|
|
+ <%--if (is==""){--%>
|
|
|
|
+ <%-- parent.layer.msg("请先上传文件!", {icon: 5});--%>
|
|
|
|
+ <%-- $(obj).val("")--%>
|
|
|
|
+ <%--}else{--%>
|
|
|
|
+ <%-- $.ajax({--%>
|
|
|
|
+ <%-- type:"post",--%>
|
|
|
|
+ <%-- url:"${ctx}/projectFilingBatch/projectFilingBatchInfo/updateByType",--%>
|
|
|
|
+ <%-- data:{--%>
|
|
|
|
+ <%-- "id":id,--%>
|
|
|
|
+ <%-- "remarks":wtype--%>
|
|
|
|
+ <%-- },--%>
|
|
|
|
+ <%-- dataType:"json",--%>
|
|
|
|
+ <%-- success:function (d) {--%>
|
|
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ <%-- }--%>
|
|
|
|
+ <%-- });--%>
|
|
|
|
+ <%--}--%>
|
|
}
|
|
}
|
|
|
|
|
|
function accordingBtn(obj){
|
|
function accordingBtn(obj){
|
|
@@ -635,28 +744,33 @@
|
|
});
|
|
});
|
|
}
|
|
}
|
|
function delListRow(o,obj){
|
|
function delListRow(o,obj){
|
|
- $(o).parent().parent().remove();
|
|
|
|
- $(obj).parent().parent().parent().remove();
|
|
|
|
- $(obj).parent().parent().parent().hide();
|
|
|
|
- var id=$(obj+" tr").length();
|
|
|
|
|
|
+ var tr=obj.id+" tr"
|
|
|
|
+ var html=$(tr).html()
|
|
|
|
+ if(html!="undefined"){
|
|
|
|
+ $(o).parent().parent().remove();
|
|
|
|
+ $(obj).parent().parent().parent().remove();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ // var fu= $(obj).parent().parent().parent().html();
|
|
|
|
+ // if ()
|
|
|
|
+ // $(obj).parent().parent().parent().hide();
|
|
|
|
+ }
|
|
|
|
+ function delListInfoRow(obj, prefix){
|
|
|
|
+ var tr=$(obj).parent().parent();
|
|
|
|
+ var id=$(tr).find("td").eq(0).find("#attId").val();
|
|
|
|
+ var url=$(tr).find("td").eq(0).find("#fileUrl").val();
|
|
|
|
+ $(obj).parent().parent().remove();
|
|
|
|
+ $(obj).parent().parent().parent().parent().parent().parent().remove();
|
|
$.ajax({
|
|
$.ajax({
|
|
type:"post",
|
|
type:"post",
|
|
- url:"${ctx}/projectFilingBatch/projectFilingBatchInfo/deleteById",
|
|
|
|
- data:{
|
|
|
|
- "id":id
|
|
|
|
- },
|
|
|
|
|
|
+ url:"${ctx}/sys/workattachment/deleteFileFromAliyun?url="+url+"&id="+id,
|
|
dataType:"json",
|
|
dataType:"json",
|
|
success:function (d) {
|
|
success:function (d) {
|
|
|
|
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- function delListInfoRow(obj, prefix){
|
|
|
|
- var id = $(prefix+"_id");
|
|
|
|
- var delFlag = $(prefix+"_delFlag");
|
|
|
|
- $(obj).parent().parent().remove();
|
|
|
|
- $(obj).parent().parent().parent().parent().parent().parent().remove();
|
|
|
|
- }
|
|
|
|
function delEntrustRow(obj, prefix){
|
|
function delEntrustRow(obj, prefix){
|
|
var id = $(prefix+"_id");
|
|
var id = $(prefix+"_id");
|
|
var delFlag = $(prefix+"_delFlag");
|
|
var delFlag = $(prefix+"_delFlag");
|
|
@@ -857,7 +971,8 @@
|
|
<div class="container">
|
|
<div class="container">
|
|
<sys:message content="${message}"/>
|
|
<sys:message content="${message}"/>
|
|
<form:form id="inputForm" modelAttribute="projectFilingBatch" action="${ctx}/projectFilingBatch/projectFilingBatchInfo/save" method="post" class="form-horizontal">
|
|
<form:form id="inputForm" modelAttribute="projectFilingBatch" action="${ctx}/projectFilingBatch/projectFilingBatchInfo/save" method="post" class="form-horizontal">
|
|
- <form:input path="id" id="filingId"/>
|
|
|
|
|
|
+ <form:hidden path="id" id="filingId"/>
|
|
|
|
+ <input type="hidden" value="${projectFilingBatch.id}" name="proInfofilingBatch"/>
|
|
<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>
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
@@ -874,7 +989,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
- <label class="layui-form-label">归档名称:</label>
|
|
|
|
|
|
+ <label class="layui-form-label"><span style="color: red">*</span>归档名称:</label>
|
|
<div class="layui-input-block">
|
|
<div class="layui-input-block">
|
|
<form:input path="filingName" htmlEscape="false" class="form-control layui-input required"/>
|
|
<form:input path="filingName" htmlEscape="false" class="form-control layui-input required"/>
|
|
</div>
|
|
</div>
|
|
@@ -900,8 +1015,8 @@
|
|
<tr>
|
|
<tr>
|
|
<th class="hide"></th>
|
|
<th class="hide"></th>
|
|
<th style="text-align: center" width="20%">归档项目编号/文件类型</th>
|
|
<th style="text-align: center" width="20%">归档项目编号/文件类型</th>
|
|
- <th style="text-align: center" width="20%">归档项目名称/文件名称</th>
|
|
|
|
- <th style="text-align: center" width="20%">报告号/案卷号</th>
|
|
|
|
|
|
+ <th style="text-align: center" width="20%">归档项目名称/文件描述</th>
|
|
|
|
+ <th style="text-align: center" width="20%">报告号</th>
|
|
<th width="20%">操作</th>
|
|
<th width="20%">操作</th>
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|