|
@@ -0,0 +1,463 @@
|
|
|
|
+<%@ page contentType="text/html;charset=UTF-8" %>
|
|
|
|
+<%@ include file="/webpage/include/taglib.jsp"%>
|
|
|
|
+<html>
|
|
|
|
+<head>
|
|
|
|
+ <title>审批管理</title>
|
|
|
|
+ <meta name="decorator" content="default"/>
|
|
|
|
+ <script src="${ctxStatic}/layer-v2.3/laydate/laydate.js"></script>
|
|
|
|
+ <script type="text/javascript" src="${ctxStatic}/layui/layui.js"></script>
|
|
|
|
+ <link rel='stylesheet' type="text/css" href="${ctxStatic}/layui/css/layui.css"/>
|
|
|
|
+ <link href="${ctxStatic}/layer-v2.3/layui/tableTree/treetable.css" rel="stylesheet" />
|
|
|
|
+ <%@include file="/webpage/include/treetable.jsp" %>
|
|
|
|
+
|
|
|
|
+ <script type="text/javascript">
|
|
|
|
+ var validateForm;
|
|
|
|
+ function doSubmit(obj){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
|
|
|
|
+ if(validateForm.form()){
|
|
|
|
+ if(obj == 1) {
|
|
|
|
+ $("#flag").val("yes");
|
|
|
|
+ }else {
|
|
|
|
+ if(obj == 2){
|
|
|
|
+ $("#flag").val("no1");
|
|
|
|
+ }else {
|
|
|
|
+ $("#flag").val("no2");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ $("#inputForm").submit();
|
|
|
|
+ return true;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ $(document).ready(function() {
|
|
|
|
+ $(".listTr").click(function(){
|
|
|
|
+ var name=$(this).find("td").eq(0).find("input").eq(0).val();
|
|
|
|
+ var tiao="."+name;
|
|
|
|
+ var span=$(this).find("td").eq(2);
|
|
|
|
+ var ss=$(span).val().split(" ")[4];
|
|
|
|
+ var flag = true;
|
|
|
|
+ // var ss=$(span).val().split(" ")[4];
|
|
|
|
+ $(span).toggle(
|
|
|
|
+ function(){
|
|
|
|
+ if(!flag){
|
|
|
|
+ flag = false;
|
|
|
|
+ $(tiao).hide();
|
|
|
|
+ $(span).find("span").eq(0).attr("class","default_shut");
|
|
|
|
+ }else{
|
|
|
|
+ flag = false;
|
|
|
|
+ $(tiao).show();
|
|
|
|
+ $(span).find("span").eq(0).attr("class","default_open");
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ function(){
|
|
|
|
+ if(flag){
|
|
|
|
+ flag = true;
|
|
|
|
+ $(tiao).show();
|
|
|
|
+ $(span).find("span").eq(0).attr("class","default_open");
|
|
|
|
+ }else{
|
|
|
|
+ flag = true;
|
|
|
|
+ $(tiao).hide();
|
|
|
|
+ $(span).find("span").eq(0).attr("class","default_shut");
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ );
|
|
|
|
+ if(flag){
|
|
|
|
+ $(tiao).hide();
|
|
|
|
+ $(span).find("span").eq(0).attr("class","default_shut")
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ validateForm = $("#inputForm").validate({
|
|
|
|
+ submitHandler: function(form){
|
|
|
|
+ loading('正在提交,请稍等...');
|
|
|
|
+ form.submit();
|
|
|
|
+ },
|
|
|
|
+ errorContainer: "#messageBox",
|
|
|
|
+ errorPlacement: function(error, element) {
|
|
|
|
+ $("#messageBox").text("输入有误,请先更正。");
|
|
|
|
+ if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
|
|
|
+ error.appendTo(element.parent().parent());
|
|
|
|
+ } else {
|
|
|
|
+ error.insertAfter(element);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ var contractNum = $("#contractNum").val();
|
|
|
|
+ if (contractNum == null || contractNum === "") {
|
|
|
|
+ $("#div1").hide();
|
|
|
|
+ $("#div3").hide();
|
|
|
|
+ setTimeout(function () {
|
|
|
|
+ var tt = $("#workClientLinkmanList").find("tr").eq(0).find("td").eq(1).text().trim();
|
|
|
|
+ $("#clientName").val(tt);
|
|
|
|
+ },100);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ function insertTitle(tValue){
|
|
|
|
+ var files = $("#attachment_file")[0].files;
|
|
|
|
+ for(var i = 0;i<files.length;i++) { var file = files[i];
|
|
|
|
+ var attachmentId = $("#id").val();
|
|
|
|
+ var attachmentFlag = "82";
|
|
|
|
+ console.log(file);
|
|
|
|
+ var timestamp=new Date().getTime();
|
|
|
|
+
|
|
|
|
+ var storeAs = "projectRecords";
|
|
|
|
+ var uploadPath="http://gangwan-app.oss-cn-hangzhou.aliyuncs.com/"+storeAs;/*将这段字符串存到数据库即可*/
|
|
|
|
+ var divId = "_attachment";
|
|
|
|
+ $("#addFile"+divId).show();
|
|
|
|
+ multipartUploadWithSts(storeAs, file,attachmentId,attachmentFlag,uploadPath,divId,0);}
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function addFile() {
|
|
|
|
+ $("#attachment_file").click();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function addRow(list, idx, tpl, row){
|
|
|
|
+ // var idx1 = $("#workClientLinkmanList tr").length;
|
|
|
|
+ bornTemplete(list, idx, 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>
|
|
|
|
+</head>
|
|
|
|
+<body >
|
|
|
|
+<div class="single-form">
|
|
|
|
+ <div class="container">
|
|
|
|
+ <form:form id="inputForm" modelAttribute="projectFilingBatch" enctype="multipart/form-data" action="${ctx}/projectFilingBatch/projectFilingBatchInfo/adminUpdate" method="post" class="layui-form">
|
|
|
|
+ <form:hidden path="id"/>
|
|
|
|
+ <form:hidden path="home"/>
|
|
|
|
+ <form:hidden path="act.taskId"/>
|
|
|
|
+ <form:hidden path="act.taskName"/>
|
|
|
|
+ <form:hidden id="taskDefKey" path="act.taskDefKey"/>
|
|
|
|
+ <form:hidden path="act.procInsId"/>
|
|
|
|
+ <form:hidden path="act.procDefId"/>
|
|
|
|
+ <form:hidden id="flag" path="act.flag"/>
|
|
|
|
+ <input type="hidden" id="opinion" name="act.comment" value="" maxlength="250">
|
|
|
|
+ <c:set var="status" value="${projectFilingBatch.filingStatus}" />
|
|
|
|
+ <div class="form-group layui-row first">
|
|
|
|
+ <div class="form-group-label"><h2>归档批次信息</h2></div>
|
|
|
|
+ <div >
|
|
|
|
+ <div class="layui-item layui-col-sm6 lw6">
|
|
|
|
+ <label class="layui-form-label">归档批次号:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+
|
|
|
|
+ <form:input path="filingBatch" id="filingBatch" readonly="true" class="form-control layui-input" />
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6 lw6">
|
|
|
|
+ <label class="layui-form-label">归档人:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <form:input path="createBy.name" id="createBy" readonly="true" class="form-control layui-input" />
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
|
|
+ <label class="layui-form-label">归档名称:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <form:input path="filingName" htmlEscape="false" readonly="true" class="form-control layui-input required"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm12 lw7 with-textarea">
|
|
|
|
+ <label class="layui-form-label">归档说明:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <form:textarea path="information" readonly="true" htmlEscape="false" rows="4" maxlength="200" class="form-control "/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <%--<div class="form-group layui-row first">
|
|
|
|
+ <div class="form-group-label"><h2>项目基础信息</h2></div>
|
|
|
|
+ <table id="contentTable" class="table table-bordered table-condensed can-edit">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <th class="hide"></th>
|
|
|
|
+ <th style="text-align: center">归档项目编号</th>
|
|
|
|
+ <th style="text-align: center" >归档项目名称</th>
|
|
|
|
+ <th style="text-align: center">报告号</th>
|
|
|
|
+ <th style="text-align: center" >案卷号</th>
|
|
|
|
+ <th style="text-align: center" >确认案卷号</th>
|
|
|
|
+ <th style="text-align: center" >审批</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody id="workClientLinkmanList">
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${not empty projectFilingBatch}">
|
|
|
|
+ <c:forEach items="${projectFilingBatch.project}" var="project" varStatus="index">
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${project.flag ==1}">
|
|
|
|
+ <tr id="workAccountList${index.index}">
|
|
|
|
+ <td class="hide">
|
|
|
|
+ <input id="workAccountList${index.index}_id" name="workAccountList[${index.index}].id" type="hidden" value="${project.id}"/>
|
|
|
|
+ <input id="workAccountList${index.index}_delFlag" name="workAccountList[${index.index}].delFlag" type="hidden" value="0"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input type="text" readonly value="${project.projectId}" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input type="text" readonly value="${project.projectName}" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input type="text" readonly value="${project.projectReportNumber}" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <td>
|
|
|
|
+ <input id="workAccountList${index.index}_boxNum" name="workAccountList[${index.index}].boxNum" maxlength="32" type="text" value="${projectFilingBatch.boxNum}" class="form-control required layui-input"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="workAccountList${index.index}_reBoxNum" name="workAccountList[${index.index}].reBoxNum" maxlength="32" type="text" value="${projectFilingBatch.reBoxNum}" class="form-control required layui-input"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td style="overflow: visible;">
|
|
|
|
+ <select name="clientType" id="clientType" lay-filter="cc" lay-verify="ctype" class="form-control simple-select clientType">
|
|
|
|
+ <option value="" >--是否通过--</option>
|
|
|
|
+ <option value="5" itemLabel="label">通过</option>
|
|
|
|
+ <option value="4" itemLabel="label">驳回</option>
|
|
|
|
+ </select>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <tr id="workAccountList${index.index}">
|
|
|
|
+ <td class="hide">
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input type="text" readonly value="${project.projectId}" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input type="text" readonly value="${project.projectName}" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input type="text" readonly value="${project.projectReportNumber}" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <td>
|
|
|
|
+ <input type="text" readonly value="${project.projectReportNumber}" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input type="text" readonly value="${project.projectReportNumber}" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input type="text" readonly value="${project.projectReportNumber}" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <tr>
|
|
|
|
+ <td colspan="7">
|
|
|
|
+ 暂无数据
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>--%>
|
|
|
|
+
|
|
|
|
+ <div class="form-group layui-row">
|
|
|
|
+ <div class="form-group-label"><h2>项目基础信息</h2></div>
|
|
|
|
+ <table id="contentTable" class="table table-bordered table-condensed can-edit tree_table">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <th width="20%" style="text-align: center">归档项目编号</th>
|
|
|
|
+ <th width="20%" style="text-align: center" >归档项目名称</th>
|
|
|
|
+ <th width="20%" style="text-align: center">报告号</th>
|
|
|
|
+ <th width="20%" style="text-align: center" >案卷号</th>
|
|
|
|
+ <%-- <th style="text-align: center" >确认案卷号</th>--%>
|
|
|
|
+ <th width="20%" style="text-align: center" >审批</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody id="workClientLinkmanList">
|
|
|
|
+ <c:if test="${not empty projectFilingBatch}">
|
|
|
|
+ <c:forEach items="${projectFilingBatch.project}" var="project" varStatus="index">
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${project.parentId == '0'}">
|
|
|
|
+ <tr class="listTr" id="projectFilingbatchRelations${index.index}">
|
|
|
|
+ <td class="hide">
|
|
|
|
+ <input id="projectFilingbatchRelations${index.index}_id" name="projectFilingbatchRelations[${index.index}].id" type="hidden" value="${project.id}"/>
|
|
|
|
+ <input id="projectFilingbatchRelations${index.index}_delFlag" name="projectFilingbatchRelations[${index.index}].delFlag" type="hidden" value="0"/>
|
|
|
|
+ <input id="projectFilingbatchRelations${index.index}_parentId" type="hidden" value="${project.parentId}"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td class="hide">
|
|
|
|
+ <input id="projectFilingbatchRelations${index.index}_status" name="projectFilingbatchRelations[${index.index}].status" type="hidden" value="${project.delFlag}"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td style="background-color: #f1f1f1;text-align: center;line-height: 25px">
|
|
|
|
+ <span class="default_open" style="padding-right: 20px;"></span> ${project.projectId}
|
|
|
|
+
|
|
|
|
+ <%-- <span style="padding-left: 10px;padding-right: 10px;float: left">-</span>${project.projectId}--%>
|
|
|
|
+ <%-- <input style="cursor:Pointer" type="text" value=" - ${project.projectId}" readonly="readonly" class="form-control"/>--%>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="projectFilingbatchRelations${index.index}_projectName" type="text" value="${project.projectName}" readonly="readonly" style="text-align: center" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input type="text" value="${project.projectReportNumber}" readonly="readonly" onclick="check('${project.projectFilingBatchesId}')" style="text-align: center" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input id="projectFilingbatchRelations${index.index}_boxNum" placeholder="请输入案卷号" name="projectFilingbatchRelations[${index.index}].boxNum" maxlength="32" type="text" value="${project.boxNum}" class="form-control layui-input"/>
|
|
|
|
+ </td>
|
|
|
|
+ <%-- <td>--%>
|
|
|
|
+ <%-- <input id="projectFilingbatchRelations${index.index}_reBoxNum" name="projectFilingbatchRelations[${index.index}].reBoxNum" maxlength="32" type="text" value="${projectFilingBatch.reBoxNum}" class="form-control layui-input"/>--%>
|
|
|
|
+ <%-- </td>--%>
|
|
|
|
+ <td style="overflow: visible;">
|
|
|
|
+ <select id="projectFilingbatchRelations${index.index}_clientType" name="projectFilingbatchRelations${index.index}.clientType" id="clientType" lay-filter="cc" lay-verify="ctype" class="form-control simple-select clientType">
|
|
|
|
+ <option value="" >--是否通过--</option>
|
|
|
|
+ <option value="5" <c:if test="${project.delFlag == '5'}">selected</c:if> itemLabel="label">通过</option>
|
|
|
|
+ <option value="4" <c:if test="${project.delFlag == '4'}">selected</c:if> itemLabel="label">驳回</option>
|
|
|
|
+ </select>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <tr class="${project.parentId}" id="workAccountList${index.index}">
|
|
|
|
+ <td class="hide">
|
|
|
|
+ <input id="projectFilingbatchRelations${index.index}_parentId" type="hidden" value="${project.parentId}"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input type="text" title="${project.projectId}" readonly value="${project.projectId}" style="text-align: center" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td style="background-color: #f1f1f1;display:table-cell; vertical-align:middle;text-align: center">
|
|
|
|
+ <input type="text" title="${project.projectReportNumber}" readonly value="${project.projectReportNumber}" style="text-align: center" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input type="text" readonly value="" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <td>
|
|
|
|
+ <input type="text" readonly value="" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input type="text" readonly value="" class="form-control"/>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </c:if>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ <%-- <div class="form-group layui-row">--%>
|
|
|
|
+ <%-- <div class="form-group-label"><h2>审批意见</h2></div>--%>
|
|
|
|
+ <%-- <div class="layui-item layui-col-sm8 lw6 with-textarea">--%>
|
|
|
|
+ <%-- <div class="layui-input-block" style="margin-left:10px;position: relative">--%>
|
|
|
|
+ <%-- <form:textarea placeholder="请输入意见:" path="act.comment" id="opinion" class="form-control" rows="4" cssStyle="height: 200px;" maxlength="127" />--%>
|
|
|
|
+ <%-- <a id="clearOpinon" class="layui-btn" style="position: absolute;bottom: 10px;right: 20px;">清空</a>--%>
|
|
|
|
+ <%-- <input type="file" name="upload_files" style="display: none;">--%>
|
|
|
|
+ <%-- </div>--%>
|
|
|
|
+ <%-- </div>--%>
|
|
|
|
+ <%-- <div class="layui-item layui-col-sm4 lw6 with-textarea">--%>
|
|
|
|
+ <%-- <div class="layui-input-block" style="margin-left:10px;">--%>
|
|
|
|
+ <%-- <div style="padding: 5px 0px;"><input type="checkbox" lay-filter="raopinion" name="sh" value="同意" title="同意" style="cursor:pointer" class="apen"/></div>--%>
|
|
|
|
+ <%-- <div style="padding: 5px 0px;"><input type="checkbox" lay-filter="raopinion" name="sh" value="不同意" title="不同意" style="cursor:pointer" class="apen"/></div>--%>
|
|
|
|
+ <%-- <div style="padding: 5px 0px;"><input type="checkbox" lay-filter="raopinion" name="sh" value="请领导审核" title="请领导审核" style="cursor:pointer" class="apen"/></div>--%>
|
|
|
|
+ <%-- <div style="padding: 5px 0px;">--%>
|
|
|
|
+ <%-- <form:select path="act.comment" id="auditOpinion" lay-filter="opinion" lay-verify="opinion" class="form-control simple-select">--%>
|
|
|
|
+ <%-- <form:option value=""/>--%>
|
|
|
|
+ <%-- <form:options items="${fns:getMainDictListOnProjectAdvent('audit_opinion_template')}" itemLabel="label" itemValue="label" htmlEscape="false"/>--%>
|
|
|
|
+ <%-- </form:select>--%>
|
|
|
|
+ <%-- </div>--%>
|
|
|
|
+ <%-- </div>--%>
|
|
|
|
+ <%-- </div>--%>
|
|
|
|
+ <%-- </div>--%>
|
|
|
|
+
|
|
|
|
+ </form:form>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+<script type="text/javascript">
|
|
|
|
+ function f1(row) {
|
|
|
|
+ // window.parent.document.getElementById('opinion').value = row;
|
|
|
|
+ $("#opinion").val(row)
|
|
|
|
+ }
|
|
|
|
+ function openDialogre(title,url,width,height,target,buttons) {
|
|
|
|
+ if (navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)) {//如果是移动端,就使用自适应大小弹窗
|
|
|
|
+ width = 'auto';
|
|
|
|
+ height = 'auto';
|
|
|
|
+ } else {//如果是PC端,根据用户设置的width和height显示。
|
|
|
|
+ }
|
|
|
|
+ var split = buttons.split(",");
|
|
|
|
+ top.layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ area: [width, height],
|
|
|
|
+ title: title,
|
|
|
|
+ maxmin: true, //开启最大化最小化按钮
|
|
|
|
+ skin: 'three-btns',
|
|
|
|
+ content: url,
|
|
|
|
+ btn: split,
|
|
|
|
+ btn1: function(index, layero){
|
|
|
|
+ top.layer.close(index)
|
|
|
|
+ document.getElementById('iframe').contentWindow.location.reload();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ layui.use(['form', 'layer'], function () {
|
|
|
|
+ var form = layui.form;
|
|
|
|
+ var table = layui.table;
|
|
|
|
+ //下拉框监听器
|
|
|
|
+ layui.form.on('select(cc)', function(data){
|
|
|
|
+ console.log(data);
|
|
|
|
+ var dataId = data.elem.id;
|
|
|
|
+ var a =dataId.substring(0,dataId.indexOf("_")+1);
|
|
|
|
+ $("#"+a +"status").val(data.value)
|
|
|
|
+ console.log('$("#"+a +"status")',$("#"+a +"status"))
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ //监听单元格事件
|
|
|
|
+ layui.form.on('tool(demoEvent)', function(obj){
|
|
|
|
+ alert(11111);
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ function check(obj) {
|
|
|
|
+ console.log(obj)
|
|
|
|
+ openDialogView("查看项目","${ctx}/ruralProject/ruralProjectView/view?id=" + obj +"","95%","95%");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //打开对话框(查看)
|
|
|
|
+ function openDialogView(title,url,width,height){
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
|
|
+ width='auto';
|
|
|
|
+ height='auto';
|
|
|
|
+ }else{//如果是PC端,根据用户设置的width和height显示。
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ top.layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ skin: 'one-btn',
|
|
|
|
+ area: [width, height],
|
|
|
|
+ title: title,
|
|
|
|
+ maxmin: true, //开启最大化最小化按钮
|
|
|
|
+ content: url ,
|
|
|
|
+ btn: ['关闭'],
|
|
|
|
+ cancel: function(index){
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+</script>
|
|
|
|
+</body>
|
|
|
|
+</html>
|