|
@@ -5,6 +5,7 @@
|
|
<title>项目管理</title>
|
|
<title>项目管理</title>
|
|
<meta name="decorator" content="default"/>
|
|
<meta name="decorator" content="default"/>
|
|
<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}/layui/layui.js"></script>
|
|
<script type="text/javascript" src="${ctxStatic}/iCheck/icheck.min.js"></script>
|
|
<script type="text/javascript" src="${ctxStatic}/iCheck/icheck.min.js"></script>
|
|
<script type="text/javascript" src="${ctxStatic}/layui/layuidown.js"></script>
|
|
<script type="text/javascript" src="${ctxStatic}/layui/layuidown.js"></script>
|
|
<script src="${ctxStatic}/common/html/js/script.js"></script>
|
|
<script src="${ctxStatic}/common/html/js/script.js"></script>
|
|
@@ -310,6 +311,36 @@
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ function setProjectValue(obj){
|
|
|
|
+ console.log('obj',obj)
|
|
|
|
+ $.ajax({
|
|
|
|
+ async:false,
|
|
|
|
+ type:'post',
|
|
|
|
+ url:'${ctx}/projectReport/projectReportSignature/getPNumber',
|
|
|
|
+ data:{
|
|
|
|
+ "obj":obj
|
|
|
|
+ },
|
|
|
|
+ success:function(data){
|
|
|
|
+ var d = JSON.parse(data);
|
|
|
|
+ $("#projectId").val(d.id);
|
|
|
|
+ $("#projectName").val(d.projectName);
|
|
|
|
+ $("#workContractName").val(d.workContractName);
|
|
|
|
+ $("#projectNum").val(d.projectNum);
|
|
|
|
+ $("#clientName").val(d.clientName);
|
|
|
|
+ $("#reportDataNum").val(d.reportDataNum);
|
|
|
|
+ var areaId = $("#areaId").val();
|
|
|
|
+ if(undefined ==areaId || null == areaId || '' == areaId){
|
|
|
|
+ $("#areaId").val(d.areaId);
|
|
|
|
+ $("#areaName").val(d.areaName);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
</script>
|
|
</script>
|
|
</head>
|
|
</head>
|
|
<body>
|
|
<body>
|
|
@@ -322,89 +353,123 @@
|
|
|
|
|
|
<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 nav-btns">
|
|
|
|
- <a class="nav-btn nav-btn-add" onclick="addRow1('#projectReportSignatureRelationList', projectReportSignatureRelationListRowIdx, projectReportSignatureRelationListTpl);projectReportSignatureRelationListRowIdx = projectReportSignatureRelationListRowIdx + 1;" title="新增"><i class="fa fa-plus"></i> 新增</a>
|
|
|
|
- </div>
|
|
|
|
- <div class="layui-table-body layui-item layui-col-xs12 form-table-container" style="padding:0px">
|
|
|
|
- <table id="contentTables" class="table table-bordered table-condensed can-edit no-bottom-margin details">
|
|
|
|
- <thead>
|
|
|
|
- <tr>
|
|
|
|
- <th width="200px"><font color="red">*</font>项目名称</th>
|
|
|
|
- <th width="200px">报告号</th>
|
|
|
|
- <th width="200px">合同名称</th>
|
|
|
|
- <th width="200px">项目编号</th>
|
|
|
|
- <th width="200px">委托方</th>
|
|
|
|
- <th width="100px">操作</th>
|
|
|
|
- </tr>
|
|
|
|
- </thead>
|
|
|
|
- <tbody id="projectReportSignatureRelationList">
|
|
|
|
- </tbody>
|
|
|
|
- </table>
|
|
|
|
- <script type="text/template" id="projectReportSignatureRelationListTpl">//<!--
|
|
|
|
- <tr id="projectReportSignatureRelationList{{idx}}">
|
|
|
|
- <td class="hide">
|
|
|
|
- <input id="projectReportSignatureRelationList{{idx}}_signatureId" name="projectReportSignatureRelationList[{{idx}}].signatureId" type="hidden" value="{{row.signatureId}}"/>
|
|
|
|
- <input id="projectReportSignatureRelationList{{idx}}_delFlag" name="projectReportSignatureRelationList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
|
|
- <input id="projectReportSignatureRelationList{{idx}}_contractId" name="projectReportSignatureRelationList[{{idx}}].contractId" type="hidden" value="{{row.contractId}}"/>
|
|
|
|
- </td>
|
|
|
|
- <td>
|
|
|
|
- <sys:gridselectprojectsignatures url="${ctx}/projectReport/projectReportSignature/getProjectReportList" id="projectReportSignatureRelationList{{idx}}_projectId" name="projectReportSignatureRelationList[{{idx}}].projectId" value="{{row.projectId}}" title="选择所属项目" labelName="projectReportSignatureRelationList[{{idx}}].projectName" cssStyle="background-color: #fff"
|
|
|
|
- labelValue="{{row.projectName}}" cssClass="form-control judgment layui-input" fieldLabels="项目" fieldKeys="projectName" searchLabel="项目名称" searchKey="projectName" isProject="{{row.isProject}}" isProjectFalg="{{row.isProjectFalg}}" details="{{row.details}}"></sys:gridselectprojectsignatures>
|
|
|
|
- </td>
|
|
|
|
- <td>
|
|
|
|
- <input id="projectReportSignatureRelationList{{idx}}_reportDataNum" type="text" value="{{row.reportDataNum}}" readonly="readonly" class="form-control"/>
|
|
|
|
- </td>
|
|
|
|
- <td>
|
|
|
|
- <input id="projectReportSignatureRelationList{{idx}}_workContractName" type="text" value="{{row.workContractName}}" readonly="readonly" class="form-control"/>
|
|
|
|
- </td>
|
|
|
|
- <td style="text-align:center;">
|
|
|
|
- <input id="projectReportSignatureRelationList{{idx}}_projectNum" type="text" value="{{row.projectNum}}" readonly="readonly" class="form-control"/>
|
|
|
|
- </td>
|
|
|
|
- <td>
|
|
|
|
- <input id="projectReportSignatureRelationList{{idx}}_clientName" type="text" value="{{row.clientName}}" readonly="readonly" class="form-control"/>
|
|
|
|
- </td>
|
|
|
|
- <td class="text-center op-td" >
|
|
|
|
- {{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow1(this, '#projectReportSignatureRelationList{{idx}}')" title="删除"><i class="glyphicon glyphicon-remove"></i> 删除</span>{{/delBtn}}
|
|
|
|
- </td>
|
|
|
|
- </tr>//-->
|
|
|
|
- </script>
|
|
|
|
- <script type="text/javascript">
|
|
|
|
- var projectReportSignatureRelationListRowIdx = 0, projectReportSignatureRelationListTpl = $("#projectReportSignatureRelationListTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");
|
|
|
|
- /*if($("#id").val()){
|
|
|
|
- projectReportSignatureRelationListRowIdx = ${fn:length(projectReportSignature.projectReportSignatureRelationList)};
|
|
|
|
- }*/
|
|
|
|
- $(document).ready(function() {
|
|
|
|
- var data = ${fns:toJson(projectReportSignature.projectReportSignatureRelationList)};
|
|
|
|
- console.log(data)
|
|
|
|
- for (var i=0; i<data.length; i++){
|
|
|
|
- addRow1('#projectReportSignatureRelationList', projectReportSignatureRelationListRowIdx, projectReportSignatureRelationListTpl, data[i])
|
|
|
|
- projectReportSignatureRelationListRowIdx = projectReportSignatureRelationListRowIdx + 1;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- </script>
|
|
|
|
|
|
+ <div id="divv">
|
|
|
|
+ <div class="layui-item layui-col-sm6 lw7" id="d1">
|
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>选择项目:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <sys:gridselectSignatureProject url="${ctx}/projectReport/projectReportSignature/getProjectReportList" type="" isTotal="" id="projectId" name="reportSignatureRelation.projectId" value="${projectReportSignature.reportSignatureRelation.projectId}" title="选择所属项目" labelName="reportSignatureRelation.projectName"
|
|
|
|
+ cssStyle="background-color: #fff" labelValue="${projectReportSignature.reportSignatureRelation.projectName}" cssClass="form-control required layui-input" fieldLabels="项目名称" fieldKeys="projectName" searchLabel="项目名称" searchKey="projectName"></sys:gridselectSignatureProject>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
|
|
+ <label class="layui-form-label">报告号:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input htmlEscape="false" readonly="true" id="reportDataNum" class="form-control layui-input" value="${projectReportSignature.reportSignatureRelation.reportDataNum}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
|
|
+ <label class="layui-form-label">合同名称:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input htmlEscape="false" readonly="true" id="workContractName" class="form-control layui-input" value="${projectReportSignature.reportSignatureRelation.workContractName}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
|
|
+ <label class="layui-form-label">项目编号:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input htmlEscape="false" readonly="true" id="projectNum" class="form-control layui-input" value="${projectReportSignature.reportSignatureRelation.projectNum}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
|
|
+ <label class="layui-form-label">委托方:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input htmlEscape="false" readonly="true" id="clientName" name="reportSignatureRelation.clientName" class="form-control layui-input" value="${projectReportSignature.reportSignatureRelation.clientName}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
|
|
+<%-- <div class="layui-item nav-btns">--%>
|
|
|
|
+<%-- <a class="nav-btn nav-btn-add" onclick="addRow1('#projectReportSignatureRelationList', projectReportSignatureRelationListRowIdx, projectReportSignatureRelationListTpl);projectReportSignatureRelationListRowIdx = projectReportSignatureRelationListRowIdx + 1;" title="新增"><i class="fa fa-plus"></i> 新增</a>--%>
|
|
|
|
+<%-- </div>--%>
|
|
|
|
+<%-- <div class="layui-table-body layui-item layui-col-xs12 form-table-container" style="padding:0px">--%>
|
|
|
|
+<%-- <table id="contentTables" class="table table-bordered table-condensed can-edit no-bottom-margin details">--%>
|
|
|
|
+<%-- <thead>--%>
|
|
|
|
+<%-- <tr>--%>
|
|
|
|
+<%-- <th width="200px"><font color="red">*</font>项目名称</th>--%>
|
|
|
|
+<%-- <th width="200px">报告号</th>--%>
|
|
|
|
+<%-- <th width="200px">合同名称</th>--%>
|
|
|
|
+<%-- <th width="200px">项目编号</th>--%>
|
|
|
|
+<%-- <th width="200px">委托方</th>--%>
|
|
|
|
+<%-- <th width="100px">操作</th>--%>
|
|
|
|
+<%-- </tr>--%>
|
|
|
|
+<%-- </thead>--%>
|
|
|
|
+<%-- <tbody id="projectReportSignatureRelationList">--%>
|
|
|
|
+<%-- </tbody>--%>
|
|
|
|
+<%-- </table>--%>
|
|
|
|
+<%-- <script type="text/template" id="projectReportSignatureRelationListTpl">//<!----%>
|
|
|
|
+<%-- <tr id="projectReportSignatureRelationList{{idx}}">--%>
|
|
|
|
+<%-- <td class="hide">--%>
|
|
|
|
+<%-- <input id="projectReportSignatureRelationList{{idx}}_signatureId" name="projectReportSignatureRelationList[{{idx}}].signatureId" type="hidden" value="{{row.signatureId}}"/>--%>
|
|
|
|
+<%-- <input id="projectReportSignatureRelationList{{idx}}_delFlag" name="projectReportSignatureRelationList[{{idx}}].delFlag" type="hidden" value="0"/>--%>
|
|
|
|
+<%-- <input id="projectReportSignatureRelationList{{idx}}_contractId" name="projectReportSignatureRelationList[{{idx}}].contractId" type="hidden" value="{{row.contractId}}"/>--%>
|
|
|
|
+<%-- </td>--%>
|
|
|
|
+<%-- <td>--%>
|
|
|
|
+<%-- <sys:gridselectprojectsignatures url="${ctx}/projectReport/projectReportSignature/getProjectReportList" id="projectReportSignatureRelationList{{idx}}_projectId" name="projectReportSignatureRelationList[{{idx}}].projectId" value="{{row.projectId}}" title="选择所属项目" labelName="projectReportSignatureRelationList[{{idx}}].projectName" cssStyle="background-color: #fff"--%>
|
|
|
|
+<%-- labelValue="{{row.projectName}}" cssClass="form-control judgment layui-input" fieldLabels="项目" fieldKeys="projectName" searchLabel="项目名称" searchKey="projectName" isProject="{{row.isProject}}" isProjectFalg="{{row.isProjectFalg}}" details="{{row.details}}"></sys:gridselectprojectsignatures>--%>
|
|
|
|
+<%--<%– </td>–%>--%>
|
|
|
|
+<%-- <td>--%>
|
|
|
|
+<%-- <input id="projectReportSignatureRelationList{{idx}}_reportDataNum" type="text" value="{{row.reportDataNum}}" readonly="readonly" class="form-control"/>--%>
|
|
|
|
+<%-- </td>--%>
|
|
|
|
+<%-- <td>--%>
|
|
|
|
+<%-- <input id="projectReportSignatureRelationList{{idx}}_workContractName" type="text" value="{{row.workContractName}}" readonly="readonly" class="form-control"/>--%>
|
|
|
|
+<%-- </td>--%>
|
|
|
|
+<%-- <td style="text-align:center;">--%>
|
|
|
|
+<%-- <input id="projectReportSignatureRelationList{{idx}}_projectNum" type="text" value="{{row.projectNum}}" readonly="readonly" class="form-control"/>--%>
|
|
|
|
+<%-- </td>--%>
|
|
|
|
+<%-- <td>--%>
|
|
|
|
+<%-- <input id="projectReportSignatureRelationList{{idx}}_clientName" type="text" value="{{row.clientName}}" readonly="readonly" class="form-control"/>--%>
|
|
|
|
+<%-- </td>--%>
|
|
|
|
+<%-- <td class="text-center op-td" >--%>
|
|
|
|
+<%-- {{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow1(this, '#projectReportSignatureRelationList{{idx}}')" title="删除"><i class="glyphicon glyphicon-remove"></i> 删除</span>{{/delBtn}}--%>
|
|
|
|
+<%-- </td>--%>
|
|
|
|
+<%-- </tr>//-->--%>
|
|
|
|
+<%-- </script>--%>
|
|
|
|
+<%-- <script type="text/javascript">--%>
|
|
|
|
+<%-- var projectReportSignatureRelationListRowIdx = 0, projectReportSignatureRelationListTpl = $("#projectReportSignatureRelationListTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");--%>
|
|
|
|
+<%-- /*if($("#id").val()){--%>
|
|
|
|
+<%-- projectReportSignatureRelationListRowIdx = ${fn:length(projectReportSignature.projectReportSignatureRelationList)};--%>
|
|
|
|
+<%-- }*/--%>
|
|
|
|
+<%-- $(document).ready(function() {--%>
|
|
|
|
+<%-- var data = ${fns:toJson(projectReportSignature.projectReportSignatureRelationList)};--%>
|
|
|
|
+<%-- console.log(data)--%>
|
|
|
|
+<%-- for (var i=0; i<data.length; i++){--%>
|
|
|
|
+<%-- addRow1('#projectReportSignatureRelationList', projectReportSignatureRelationListRowIdx, projectReportSignatureRelationListTpl, data[i])--%>
|
|
|
|
+<%-- projectReportSignatureRelationListRowIdx = projectReportSignatureRelationListRowIdx + 1;--%>
|
|
|
|
+<%-- }--%>
|
|
|
|
+<%-- });--%>
|
|
|
|
+<%-- </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>
|
|
<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">签章描述:</label>
|
|
<div class="layui-input-block">
|
|
<div class="layui-input-block">
|
|
- <form:input path="signatureName" id="signatureName" maxlength="255" htmlEscape="false" placeholder="请输入签章描述" class="form-control layui-input required"/>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="layui-item layui-col-sm6 lw7">
|
|
|
|
- <label class="layui-form-label">签章编号:</label>
|
|
|
|
- <div class="layui-input-block">
|
|
|
|
- <div class="input-group">
|
|
|
|
- <form:input path="number" htmlEscape="false" readonly="true" class="form-control layui-input"/>
|
|
|
|
- <%--<span class="input-group-btn">
|
|
|
|
- <label class="form-status"><c:choose><c:when test="${not empty projectReportSignature.status}">${fns:getDictLabel(projectReportSignature.status, 'audit_state', '')}</c:when><c:otherwise>新添</c:otherwise></c:choose></label>
|
|
|
|
- </span>--%>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <form:input path="signatureName" id="signatureName" maxlength="255" htmlEscape="false" placeholder="请输入签章描述" class="form-control layui-input"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+<%-- <div class="layui-item layui-col-sm6 lw7">--%>
|
|
|
|
+<%-- <label class="layui-form-label">签章编号:</label>--%>
|
|
|
|
+<%-- <div class="layui-input-block">--%>
|
|
|
|
+<%-- <div class="input-group">--%>
|
|
|
|
+<%-- <form:input path="number" htmlEscape="false" readonly="true" class="form-control layui-input"/>--%>
|
|
|
|
+<%-- <%–<span class="input-group-btn">--%>
|
|
|
|
+<%-- <label class="form-status"><c:choose><c:when test="${not empty projectReportSignature.status}">${fns:getDictLabel(projectReportSignature.status, 'audit_state', '')}</c:when><c:otherwise>新添</c:otherwise></c:choose></label>--%>
|
|
|
|
+<%-- </span>–%>--%>
|
|
|
|
+<%-- </div>--%>
|
|
|
|
+<%-- </div>--%>
|
|
|
|
+<%-- </div>--%>
|
|
|
|
|
|
<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>
|
|
@@ -415,7 +480,17 @@
|
|
</form:select>
|
|
</form:select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>签章责任人:</label>
|
|
|
|
+ <div class="layui-input-block readOnlyFFF">
|
|
|
|
+ <select class="form-control judgment layui-input" id="dutyPerson" name="dutyPerson">
|
|
|
|
+ <option value=""/>
|
|
|
|
+ <c:forEach items="${dutyPersonList}" var="user">
|
|
|
|
+ <option value="${user.id}" <c:if test="${projectReportSignature.dutyPerson eq user.id }">selected</c:if>>${user.name}</option>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -448,7 +523,7 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-group layui-row">
|
|
<div class="form-group layui-row">
|
|
- <div class="form-group-label"><h2><span class="require-item">*</span>签章附件信息</h2></div>
|
|
|
|
|
|
+ <div class="form-group-label"><h2><span class="require-item">*</span>签章附件信息<span style="color: red">(仅可上传doc、docx、pdf类型文档)</span></h2></div>
|
|
<div class="layui-item nav-btns">
|
|
<div class="layui-item nav-btns">
|
|
<a id="attachment_btn" class="nav-btn nav-btn-add" title="添加附件"><i class="fa fa-plus"></i> 添加附件</a>
|
|
<a id="attachment_btn" class="nav-btn nav-btn-add" title="添加附件"><i class="fa fa-plus"></i> 添加附件</a>
|
|
</div>
|
|
</div>
|
|
@@ -644,5 +719,21 @@
|
|
</form:form>
|
|
</form:form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+<script>
|
|
|
|
+ $(document).ready(function() {
|
|
|
|
+ layui.use(['form', 'layer'], function () {
|
|
|
|
+ var form = layui.form;
|
|
|
|
+ layui.form.on('select(dutyPersonFilter)', function(data){
|
|
|
|
+ console.log(data.value); //得到被选中的值
|
|
|
|
+ var duty = data.value
|
|
|
|
+
|
|
|
|
+ var res= $("#dutyPerson").val()
|
|
|
|
+ console.log(res);
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+</script>
|
|
</body>
|
|
</body>
|
|
</html>
|
|
</html>
|