|
|
@@ -33,13 +33,14 @@ $(function() {
|
|
|
if (roleContains("ROAD_MANAGER")) {
|
|
|
road_manager = getCurrentUser().organid;
|
|
|
}
|
|
|
- setRoadManagerSelect("#center-manager", road_manager, true);
|
|
|
+ //setRoadManagerSelect("#center-manager", road_manager, true);
|
|
|
if (road_manager) {
|
|
|
var dept;
|
|
|
if (roleContains("STATION")) {
|
|
|
dept = getCurrentUser().organid;
|
|
|
}
|
|
|
var feeList = cache_road_manager_fee_list_map.get(road_manager);
|
|
|
+ console.log(feeList);
|
|
|
// $("#fsList").html(obj);
|
|
|
setRoadManagerValue(feeList, "#fsList", dept, true);
|
|
|
// $("#fsList").val(dept);
|
|
|
@@ -47,22 +48,14 @@ $(function() {
|
|
|
initQueryEmp(road_manager, dept);
|
|
|
} else {
|
|
|
// 初始化查询
|
|
|
+ var deptData;
|
|
|
+ get_common_service("/dept/getAllFs", null, function(data) {
|
|
|
+ setRoadManagerValue(data, "#fsList", null, true);
|
|
|
+ });
|
|
|
+ console.log(deptData);
|
|
|
initQueryEmp(null, null);
|
|
|
}
|
|
|
// 道管中心选择变化
|
|
|
- $("#center-manager").change(function() {
|
|
|
- $("#fsList").empty();
|
|
|
- if (GV(this) != '') {
|
|
|
- getFsStationList(GV(this), function(options) {
|
|
|
- $("#fsList").append(options);
|
|
|
- var dept;
|
|
|
- if (roleContains("STATION")) {
|
|
|
- dept = getCurrentUser().organid;
|
|
|
- }
|
|
|
- $("#fsList").val(dept);
|
|
|
- });
|
|
|
- }
|
|
|
- })
|
|
|
// end
|
|
|
})
|
|
|
|
|
|
@@ -113,7 +106,6 @@ function queryEmpClick() {
|
|
|
return;
|
|
|
}
|
|
|
var param = {
|
|
|
- "parent_dept_id": GV("#center-manager"),
|
|
|
"dept_id": GV("#fsList"),
|
|
|
"start_date": start_date,
|
|
|
"end_date": end_date,
|
|
|
@@ -128,7 +120,7 @@ function initQueryEmp(parent_dept_id, dept_id) {
|
|
|
$.zui.store.set('store_param_' + current_url, null);
|
|
|
if (p_m) {
|
|
|
|
|
|
- $("#center-manager").val(p_m.parent_dept_id);
|
|
|
+ //$("#center-manager").val(p_m.parent_dept_id);
|
|
|
$("#fsList").val(p_m.dept_id);
|
|
|
$("#start-time").val(p_m.start_date);
|
|
|
$("#end-time").val(p_m.end_date);
|
|
|
@@ -205,7 +197,12 @@ function initQueryEmp(parent_dept_id, dept_id) {
|
|
|
*/
|
|
|
function getEmployeeInfosClick(url, param, start_score, end_score, start_num, end_num) {
|
|
|
post_common_service(url, param, function(data) {
|
|
|
-
|
|
|
+ $("#itemInfo").empty();
|
|
|
+ itemNameList = data.itemList;
|
|
|
+ for(var index in data.itemList){
|
|
|
+ var obj = data.itemList[index];
|
|
|
+ $("#itemInfo").append("<th width='4%' id='th_9_"+index+"'>"+obj.name+"</th>");
|
|
|
+ }
|
|
|
|
|
|
var userChangeStations = data["userChangeStations"];
|
|
|
var userChangeStationMap = new HashMap();
|
|
|
@@ -215,7 +212,7 @@ function getEmployeeInfosClick(url, param, start_score, end_score, start_num, en
|
|
|
}
|
|
|
|
|
|
data = data["lists"];
|
|
|
-
|
|
|
+ console.log(data);
|
|
|
var strTbody = '';
|
|
|
var count = 0;
|
|
|
var start_date_time = moment(param.end_date + "Z");
|
|
|
@@ -232,9 +229,8 @@ function getEmployeeInfosClick(url, param, start_score, end_score, start_num, en
|
|
|
isshownumber = true;
|
|
|
|
|
|
}
|
|
|
-
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
- var score = 1000 - filterByZeroHandle(data[i].check_score_avg, '0');
|
|
|
+ var score = 100 - data[i].check_all_score;
|
|
|
var check_number = filter(data[i].checked_num, '0');
|
|
|
var flag = judgeParamFilter(data, i, score, start_score, end_score, check_number, start_num, end_num)
|
|
|
if (flag) {
|
|
|
@@ -254,27 +250,21 @@ function getEmployeeInfosClick(url, param, start_score, end_score, start_num, en
|
|
|
tiptext = userChangeStation.old_dept_name + ":" + userChangeStation.old_dept_check_num + "次," +
|
|
|
userChangeStation.new_dept_name + ":" + userChangeStation.new_dept_check_num + "次";
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
var showNumberHtml = (isshownumber ? (filter(data[i].checked_num, '0') + (data[i].checked_num < 6 ? html : "")) : "-");
|
|
|
if (hasRole(ROLE_ADMIN) || hasRole(ROLE_JICHA_ADMIN)) {
|
|
|
showNumberHtml = (ischage ? ("<span style='color:red;' data-toggle='tooltip' data-placement='right' title=" + tiptext + ">" + userChangeStation.old_dept_check_num + "+" + userChangeStation.new_dept_check_num + "</span>") : filter(data[i].checked_num, '0')) + html;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
strTbody += "<tr><td width='4%;'>" + (count + 1) + "</td><td width='6%;'>" + data[i].user.fee_station_name + "</td>" +
|
|
|
"<td width='6%;'><a href='JavaScript:void(0)' onclick='jumpuser(\"" + data[i].user.id + "\",\"" + data[i].user.organid + "\")'>" + data[i].user.truename + "</a></td><td width='6%;'>" + data[i].user.position_name + "</td>" +
|
|
|
"<td width='7%;'>" + data[i].user.workno + "</td><td width='4%;'>" + filter(data[i].company_ranking, '/') + "</td>" +
|
|
|
- "<td width='4%;'>" + filter(data[i].center_ranking, '/') + "</td><td width='4%;'>" + filter(data[i].fee_station_ranking, '/') +
|
|
|
- "</td><td width='4%;'>" + getItemScore(data[i], '环境') + "</td>" +
|
|
|
- "<td width='4%;'>" + getItemScore(data[i], '仪容仪表') + "</td><td width='4%;'>" + getItemScore(data[i], '表情') + "</td>" +
|
|
|
- "<td width='4%;'>" + getItemScore(data[i], '动作') + "</td><td width='4%;'>" + getItemScore(data[i], '文明用语') + "</td>" +
|
|
|
- "<td width='4%;'>" + getItemScore(data[i], '工作纪律') + "</td><td width='4%'>" + getItemScore(data[i], '便民服务') + "</td><td width='4%;'>" +
|
|
|
- getItemScore(data[i], '安全管理') + "</td><td width='4%;'>" + data[i].check_all_score + "</td>" +
|
|
|
- "<td width='6%;'>" + showNumberHtml + "</td><td width='4%;'>" + filterSlash(filterByZeroHandle(data[i].check_score_avg, '0'), filter(data[i].checked_num + data[i].checked_m_num, '0')) + "</td>" +
|
|
|
+ "<td width='4%;'>" + filter(data[i].fee_station_ranking, '/') +
|
|
|
+ "</td>"
|
|
|
+ for(var index in itemNameList){
|
|
|
+ var obj = itemNameList[index];
|
|
|
+ strTbody +="<td width='4%;'>"+getItemScore(data[i],obj.name)+"</td>";
|
|
|
+ }
|
|
|
+ strTbody += "<td width='4%;'>"+data[i].check_all_score + "</td>";
|
|
|
+ strTbody += "<td width='6%;'>" + showNumberHtml + "</td><td width='4%;'>" + filterSlash(filterByZeroHandle(data[i].check_score_avg, '0'), filter(data[i].checked_num + data[i].checked_m_num, '0')) + "</td>" +
|
|
|
"<td width='4%;'>" + filterSlash(score, filter(data[i].checked_num + data[i].checked_m_num, '0')) + "</td><td width='4%;'>" + "</td><td width='4%;'>" + "</td></tr>";
|
|
|
count++;
|
|
|
}
|
|
|
@@ -291,7 +281,7 @@ function jumpuser(userid, deptid) {
|
|
|
|
|
|
|
|
|
var param = {
|
|
|
- "parent_dept_id": GV("#center-manager"),
|
|
|
+ // "parent_dept_id": GV("#center-manager"),
|
|
|
"dept_id": GV("#fsList"),
|
|
|
"start_date": $("#start-time").val(),
|
|
|
"end_date": $("#end-time").val(),
|
|
|
@@ -872,7 +862,7 @@ function exportExcel() {
|
|
|
var end_date = $("#end-time").val();
|
|
|
var start_score = $("#start-score").val();
|
|
|
var end_score = $("#end-score").val();
|
|
|
- var parent_dept_id = $("#center-manager").val();
|
|
|
+ // var parent_dept_id = $("#center-manager").val();
|
|
|
var max_score = $("#end-score").val();
|
|
|
var min_score = $("#start-score").val();
|
|
|
var min_check_num = $("#start-num").val();
|