|
@@ -103,15 +103,25 @@
|
|
|
{label: 'participantId', name: "PARTICIPANTID", hidden: true},
|
|
|
{label: 'activityInsId', name: "ACTIVITYINSID", hidden: true, key: true},
|
|
|
{label: 'flowInsId', name: "FLOWINSID", hidden: true},
|
|
|
- {label: '办件来源', align: "center", name: "HANDLE_SOURCE", width: 80, fixed: true},
|
|
|
+ // {label: '办件来源', align: "center", name: "HANDLE_SOURCE", width: 80, fixed: true},
|
|
|
{label: '业务编号', align: "center", name: "CODE", width: 250, fixed: true},
|
|
|
{label: '环节状态', align: "center", name: "statusVal", width: 90, fixed: true,},
|
|
|
{label: '流程描述', align: "left", name: "DESCRIBTION", minwidth: 600, formatter: gridConfig.descFormatter},
|
|
|
{label: '流程名称', align: "left", name: "NAME", width: 130, 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);
|
|
|
+ }
|
|
|
+ }
|
|
|
];
|
|
|
z.ui.ajax({
|
|
|
url: "/ConfigCenter/getToDoColumns",
|
|
@@ -130,12 +140,19 @@
|
|
|
} else {
|
|
|
columnset.minwidth = item.displayWidth;
|
|
|
}
|
|
|
- if (item.columnName == "DESCRIBTION") {
|
|
|
+ if (item.columnName === "DESCRIBTION") {
|
|
|
columnset.formatter = gridConfig.descFormatter;
|
|
|
}
|
|
|
- if (item.columnName == "RECEIVE_TIME") {
|
|
|
+ if (item.columnName === "RECEIVE_TIME") {
|
|
|
+ columnset.formatter = longToDate;
|
|
|
iExistReceiveTime = true;
|
|
|
}
|
|
|
+ if (item.columnName === "shouldFinishVal") {
|
|
|
+ columnset.formatter = longToDate;
|
|
|
+ }
|
|
|
+ if (item.columnName === "fShouldFinishVal") {
|
|
|
+ columnset.formatter = longToDate;
|
|
|
+ }
|
|
|
columnSets.push(columnset);
|
|
|
});
|
|
|
if (!iExistReceiveTime) {
|
|
@@ -200,8 +217,16 @@
|
|
|
},
|
|
|
{label: '流程名称', align: "left", name: "NAME", width: 130, 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);
|
|
|
+ }
|
|
|
+ },
|
|
|
{label: '当前在办环节', align: "center", name: "currentActivityVal", width: 180, fixed: true}
|
|
|
];
|
|
|
}, //已完成
|
|
@@ -819,5 +844,19 @@
|
|
|
|
|
|
}//按行获取更多操作
|
|
|
}
|
|
|
+
|
|
|
+ function longToDate(long) {
|
|
|
+ if(!long){
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+ var date = new Date(long);
|
|
|
+ var year = date.getFullYear();
|
|
|
+ var month = ("0" + (date.getMonth() + 1)).slice(-2);
|
|
|
+ var day = ("0" + date.getDate()).slice(-2);
|
|
|
+ var hour = ("0" + date.getHours()).slice(-2);
|
|
|
+ var minute = ("0" + date.getMinutes()).slice(-2);
|
|
|
+ var second = ("0" + date.getSeconds()).slice(-2);
|
|
|
+ return year + "-" + month + "-" + day + " " + hour + ":" + minute + ":" + second;
|
|
|
+ }
|
|
|
window.gridConfig = gridConfig || {};
|
|
|
})();
|