Просмотр исходного кода

批量归档中点击项目报告号进行查看项目信息

user5 3 лет назад
Родитель
Сommit
d51b5a1ee9

+ 9 - 0
src/main/java/com/jeeplus/modules/ruralprojectrecords/entity/RuralProjectRecords.java

@@ -289,6 +289,7 @@ public class RuralProjectRecords extends ActEntity<RuralProjectRecords> {
 	private Date qualitySignatureUploadDate;		//质量复核签章文件上传时间
 
 	private String belongingDepartment;    //归属部门
+	private String projectFilingBatchesId;
 
 
 	private List<String> civilProjectList = Lists.newArrayList();
@@ -2100,4 +2101,12 @@ public class RuralProjectRecords extends ActEntity<RuralProjectRecords> {
 	public void setQualitySignatureUploadDate(Date qualitySignatureUploadDate) {
 		this.qualitySignatureUploadDate = qualitySignatureUploadDate;
 	}
+
+	public String getProjectFilingBatchesId() {
+		return projectFilingBatchesId;
+	}
+
+	public void setProjectFilingBatchesId(String projectFilingBatchesId) {
+		this.projectFilingBatchesId = projectFilingBatchesId;
+	}
 }

+ 29 - 0
src/main/java/com/jeeplus/modules/ruralprojectrecords/service/RuralProjectMessageService.java

@@ -4421,6 +4421,35 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
         }
 
 
+        //总经理
+        User representativeUser = UserUtils.getByLoginName("杨荣华");
+        if(null != representativeUser){
+            //获取成员印章id信息
+            String userSealId = SignaturePostUtil.getUserSealByMobile(representativeUser.getMobile(),"","杨荣华个人签名章");
+            if(StringUtils.isNotBlank(userSealId)){
+                Action actionUser = new Action();
+                actionUser.setType("CORPORATE");
+                actionUser.setName(representativeUser.getName() + "个人签名章");    //填写人员信息
+                actionUser.setSerialNo("1");
+                actionUser.setSealId(userSealId);   //人员印章id
+
+                //添加盖章位置
+                List<Location> principalLocations = Lists.newArrayList();
+                Location principalLocation = new Location();
+                principalLocation.setDocumentId(documentList.get(0));
+                //principalLocation.setPage(0);
+                principalLocation.setRectType("SEAL_CORPORATE");
+                principalLocation.setKeyword("法定代表人:");
+                principalLocation.setKeywordIndex(1);
+                /*principalLocation.setOffsetX(0.7518);*/
+                principalLocation.setOffsetY("0.03");
+                principalLocations.add(principalLocation);
+                actionUser.setLocations(principalLocations);
+                actions.add(actionUser);
+            }
+        }
+
+
         //创建签署方信息表
         List<SignatorieInfo> signatories = Lists.newArrayList();
         SignatorieInfo signatorieInfo1 = new SignatorieInfo();

+ 1 - 0
src/main/java/com/jeeplus/modules/workprojectnotify/web/WorkProjectNotifyController.java

@@ -6452,6 +6452,7 @@ public class WorkProjectNotifyController extends BaseController {
 
 					for (ProjectFilingBatch filingBatch : projectFilingBatches) {
 						RuralProjectRecords ruralProjectRecords = ruralProjectRecordsService.get(filingBatch.getProjectId());
+						ruralProjectRecords.setProjectFilingBatchesId(ruralProjectRecords.getId());
 						ruralProjectRecords.setProjectReportNumber(filingBatch.getNumber());
 						ruralProjectRecords.setId(filingBatch.getRelationId());
 						ruralProjectRecords.setParentId("0");

+ 37 - 1
src/main/webapp/webpage/modules/projectFilingBatch/projectFilingBatchAudit.jsp

@@ -320,7 +320,7 @@
 											<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" style="text-align: center" class="form-control"/>
+											<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="${projectFilingBatch.boxNum}"  class="form-control layui-input"/>
@@ -435,6 +435,7 @@
 
 	layui.use(['form', 'layer'], function () {
 		var form = layui.form;
+		var table = layui.table;
 		//下拉框监听器
 		layui.form.on('select(cc)', function(data){
 			console.log(data.value);
@@ -442,7 +443,42 @@
 			var a =dataId.substring(0,dataId.indexOf("_")+1);
 			$("#"+a +"status").val(data.value)
 		});
+
+		//监听单元格事件
+		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>