ljy121 1 год назад
Родитель
Сommit
1b2557d41c

+ 55 - 13
zjugis-workflow/src/main/resources/templates/HandlerCaseCenter/js/config.js

@@ -266,8 +266,14 @@
 				{label: '流程名称', align: "left", name: "NAME", width: 180, fixed: true},
 				{label: '被退环节', align: "center", name: "BACTIVITYNAME", width: 180, fixed: true},
 				{label: '退至环节', align: "center", name: "ACTIVITYNAME", width: 180, fixed: true},
-				{label: '退回时间', align: "center", name: "CREATE_TIME", width: 160, fixed: true},
-				{label: '退至环节完成时间', align: "center", name: "END_TIME", width: 160, fixed: true},
+				{label: '退回时间', align: "center", name: "CREATE_TIME", width: 160, fixed: true,
+					formatter:function(cellvalue, option, rowObject){
+						return longToDate(cellvalue);
+					}},
+				{label: '退至环节完成时间', align: "center", name: "END_TIME", width: 160, fixed: true,
+					formatter:function(cellvalue, option, rowObject){
+						return longToDate(cellvalue);
+					}},
 				{label: '退回原因', align: "center", name: "BACK_REASON", width: 160, fixed: true}
 			];
 		}, //已退回
@@ -315,7 +321,10 @@
 					fixed: true,
 					formatter: gridConfig.descFormatter
 				},
-				{label: '解挂后截止时间', align: "center", name: "shouldFinishDate", width: 160, fixed: true},
+				{label: '解挂后截止时间', align: "center", name: "shouldFinishDate", width: 160, fixed: true,
+					formatter:function(cellvalue, option, rowObject){
+						return longToDate(cellvalue);
+					}},
 			];
 		}, //已挂起
 		getToVoidGridModel: function () { /*已作废grid列配置*/
@@ -399,7 +408,10 @@
 				},
 				{label: '流程名称', align: "left", name: "NAME", width: 220, fixed: true},
 				{label: '当前在办环节', align: "center", name: "runActivityName", width: 180, fixed: true},
-				{label: '流程创建时间', align: "center", name: "STARTTIME", width: 160, fixed: true}
+				{label: '流程创建时间', align: "center", name: "STARTTIME", width: 160, fixed: true,
+					formatter:function(cellvalue, option, rowObject){
+						return longToDate(cellvalue);
+					}}
 			];
 		}, //关注列表
 		getSuperviseGridModel: function () {
@@ -437,12 +449,21 @@
 					minwidth: 500,
 					formatter: gridConfig.descFormatter
 				},
-				{label: '督办时间', align: "center", name: "superviseTime", width: 160, fixed: true},
+				{label: '督办时间', align: "center", name: "superviseTime", width: 160, fixed: true,
+					formatter:function(cellvalue, option, rowObject){
+						return longToDate(cellvalue);
+					}},
 				{label: '督办案件', align: "left", name: "name", width: 220, fixed: true},
 				{label: '督办环节', align: "left", name: "activityName", width: 220, fixed: true},
 				{label: '被督办人', align: "left", name: "sprvUserName", width: 78, fixed: true},
-				{label: '回复时间', align: "center", name: "responseTime", width: 160, fixed: true},
-				{label: '核查时间', align: "center", name: "checkTime", width: 160, fixed: true}
+				{label: '回复时间', align: "center", name: "responseTime", width: 160, fixed: true,
+					formatter:function(cellvalue, option, rowObject){
+						return longToDate(cellvalue);
+					}},
+				{label: '核查时间', align: "center", name: "checkTime", width: 160, fixed: true,
+					formatter:function(cellvalue, option, rowObject){
+						return longToDate(cellvalue);
+					}}
 			];
 		},//督办列表
 		getCarbonCopyGridModel: function () {
@@ -474,7 +495,10 @@
 				{label: '流程名称', align: "left", name: "name", width: 200, fixed: true},
 				{label: '当前在办环节', align: "center", name: "currentActivityName", width: 180, fixed: true},
 				{label: '抄送人', align: "center", name: "carbonCopyUserName", width: 160, fixed: true},
-				{label: '抄送时间', align: "center", name: "carbonCopyTime", width: 160, fixed: true}
+				{label: '抄送时间', align: "center", name: "carbonCopyTime", width: 160, fixed: true,
+					formatter:function(cellvalue, option, rowObject){
+						return longToDate(cellvalue);
+					}}
 			];
 		},
 		getDelegationGridModel: function () { /*委托grid列配置*/
@@ -522,9 +546,18 @@
 				},
 				{label: '流程名称', align: "left", name: "NAME", width: 180, fixed: true},
 				{label: '办理环节', align: "center", name: "ACTIVITYNAME", width: 180, fixed: true},
-				{label: '环节剩余时间', align: "center", name: "shouldFinishVal", width: 160, fixed: true},
-				{label: '流程剩余时间', align: "center", name: "fShouldFinishVal", width: 160, fixed: true},
-				{label: '接件时间', align: "center", name: "RECEIVE_TIME", width: 160, fixed: true}
+				{label: '环节剩余时间', align: "center", name: "shouldFinishVal", width: 160, fixed: true,
+					formatter:function(cellvalue, option, rowObject){
+						return longToDate(cellvalue);
+					}},
+				{label: '流程剩余时间', align: "center", name: "fShouldFinishVal", width: 160, fixed: true,
+					formatter:function(cellvalue, option, rowObject){
+						return longToDate(cellvalue);
+					}},
+				{label: '接件时间', align: "center", name: "RECEIVE_TIME", width: 160, fixed: true,
+					formatter:function(cellvalue, option, rowObject){
+						return longToDate(cellvalue);
+					}}
 			];
 		}, //委托
 		getDelegationFinishGridModel: function () { /*已完成grid列配置*/
@@ -576,8 +609,14 @@
 				{label: '流程名称', align: "left", name: "NAME", width: 180, fixed: true},
 				{label: '当前在办环节', align: "center", name: "currentActivityVal", width: 180, fixed: true},
 				{label: '完成环节', align: "center", name: "ACTIVITYNAME", width: 160, fixed: true},
-				{label: '完成时间', align: "center", name: "FINISH_TIME", width: 160, fixed: true},
-				{label: '截止时间', align: "center", name: "SHOULD_FINISH_TIME", width: 160, fixed: true}
+				{label: '完成时间', align: "center", name: "FINISH_TIME", width: 160, fixed: true,
+					formatter:function(cellvalue, option, rowObject){
+						return longToDate(cellvalue);
+					}},
+				{label: '截止时间', align: "center", name: "SHOULD_FINISH_TIME", width: 160, fixed: true,
+					formatter:function(cellvalue, option, rowObject){
+						return longToDate(cellvalue);
+					}}
 			];
 		}, //委托已完成
 		unHangUpEvent: function (rowData) {
@@ -850,6 +889,9 @@
 			return '';
 		}
 		var date = new Date(long);
+		if(isNaN(date.getTime())){
+			return '';
+		}
 		var year = date.getFullYear();
 		var month = ("0" + (date.getMonth() + 1)).slice(-2);
 		var day = ("0" + date.getDate()).slice(-2);