|
|
@@ -46,10 +46,11 @@ function init() {
|
|
|
setRoadManagerSelect("#first", road_manager, true);
|
|
|
// 设置服务区
|
|
|
var checked_dept = null;
|
|
|
- if (roleContains("FWQ")) {
|
|
|
+ if (roleContains("QZD")) {
|
|
|
checked_dept = getCurrentUser().organid;
|
|
|
}
|
|
|
- setSASelect("#fsList", checked_dept);
|
|
|
+ // setSASelect("#fsList", checked_dept);
|
|
|
+ setWreckerGroupAllSelect("#fsList", checked_dept);
|
|
|
|
|
|
// 新增服务区下拉框
|
|
|
var dept;
|
|
|
@@ -61,7 +62,8 @@ function init() {
|
|
|
roadManager2 = getCurrentUser().organid;
|
|
|
}
|
|
|
var feeList = getOrganList(roadManager2);
|
|
|
- setSASelectValueNoAll(feeList, "#select-dept", dept);
|
|
|
+ // setWreckerGroupSelect("#select-dept", checked_dept);
|
|
|
+ setQzdSelectValueNoAll(feeList, "#select-dept", dept);
|
|
|
// setPersonal();// 2期不需要人员显示
|
|
|
var zTreeObj;
|
|
|
var zNodes = [];
|
|
|
@@ -70,7 +72,6 @@ function init() {
|
|
|
getOtherCheckItems();
|
|
|
|
|
|
$("#check_item_select input").on("click", function() {
|
|
|
- //debugger;
|
|
|
var nodedata;
|
|
|
if ($("#check_item_select input") != undefined && $("#check_item_select input") != "") {
|
|
|
nodedata = check_item_tree.getNodeByParam("name", $("#check_item_select input").val(), null);
|
|
|
@@ -152,7 +153,7 @@ $("#save-check").click(function() {
|
|
|
|
|
|
|
|
|
if (dept_id == null || dept_id == undefined || dept_id == "") {
|
|
|
- layer.msg('请选择服务区');
|
|
|
+ layer.msg('请选择清障队');
|
|
|
return;
|
|
|
} else if (check_item_id == null || check_item_id == undefined || check_item_id == "") {
|
|
|
layer.msg('请选择扣分类别');
|
|
|
@@ -178,7 +179,7 @@ $("#save-check").click(function() {
|
|
|
}
|
|
|
console.log(data);
|
|
|
if (idUpdate) {
|
|
|
- post_common_service("f/checkOther/update", data, function(data) {
|
|
|
+ post_common_service("q/checkOther/update", data, function(data) {
|
|
|
file_src = "";
|
|
|
imgs_src = [];
|
|
|
layer.closeAll();
|
|
|
@@ -187,7 +188,7 @@ $("#save-check").click(function() {
|
|
|
|
|
|
});
|
|
|
} else {
|
|
|
- post_common_service("f/checkOther/add", data, function(data) {
|
|
|
+ post_common_service("q/checkOther/add", data, function(data) {
|
|
|
file_src = "";
|
|
|
imgs_src = [];
|
|
|
layer.closeAll();
|
|
|
@@ -241,6 +242,7 @@ function confirmCfun() {
|
|
|
|
|
|
function queryTable() {
|
|
|
$(".datatable").empty();
|
|
|
+ console.log(check_type);
|
|
|
var data = {
|
|
|
"check_time_name": $("#month_date").val(),
|
|
|
"dept_id": $("#fsList").val(),
|
|
|
@@ -299,13 +301,13 @@ function queryTable() {
|
|
|
}
|
|
|
$('.datatable').mytable({
|
|
|
'cols': cols,
|
|
|
- 'url': "f/checkOther/getAllCheckOther",
|
|
|
+ 'url': "q/checkOther/getAllCheckOther",
|
|
|
'param': data
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function deleteCheckTeam(id) {
|
|
|
- deleteItem4Common(id, "f/checkOther/delete", queryTable);
|
|
|
+ deleteItem4Common(id, "q/checkOther/delete", queryTable);
|
|
|
}
|
|
|
|
|
|
function updateCheckTeam(id) {
|
|
|
@@ -313,7 +315,7 @@ function updateCheckTeam(id) {
|
|
|
data = {
|
|
|
"id": id
|
|
|
}
|
|
|
- post_common_service("f/checkOther/getCheckById", data, function(data) {
|
|
|
+ post_common_service("q/checkOther/getCheckById", data, function(data) {
|
|
|
var select_road = $(".div-roadManage select").val();
|
|
|
var feeList = getOrganList(select_road);
|
|
|
setSASelectValueNoAll(feeList, "#select-dept", data.dept_id);
|
|
|
@@ -426,13 +428,13 @@ function getOrganList(select_road) {
|
|
|
// if (check_type == 5) {
|
|
|
// organList = cache_road_manager_wrecker_group_map.get(select_road);
|
|
|
// } else {
|
|
|
- organList = cache_service_area_map.get(select_road);
|
|
|
+ organList = getWreckerGroupList.get(select_road);
|
|
|
// }
|
|
|
} else {
|
|
|
// if (check_type == 5) {
|
|
|
// organList = $.zui.store.get("cache_wrecker_group_list");
|
|
|
// } else {
|
|
|
- organList = $.zui.store.get("cache_service_area_list");
|
|
|
+ organList = $.zui.store.get("cache_wrecker_group_list");
|
|
|
// }
|
|
|
}
|
|
|
return organList;
|
|
|
@@ -494,7 +496,7 @@ function refreshFee(data, selectId) {
|
|
|
// var param = {
|
|
|
// "organid": select_road
|
|
|
// }
|
|
|
-// var url = "user/getFsUserList";
|
|
|
+// var url = "useq/getFsUserList";
|
|
|
// if (check_type == 5) {
|
|
|
// url = "user/getWGUserList";
|
|
|
// }
|
|
|
@@ -707,11 +709,17 @@ function getOtherCheckItems() {
|
|
|
var param = {};
|
|
|
// rule_type=8,服务区暗访考核办法.rule_type=9,服务区现场考核办法
|
|
|
// check_type=8,服务区第三方暗访,check_type=9,服务区现场稽查
|
|
|
- if (check_type == 8) {
|
|
|
- param.rule_type = 8;
|
|
|
- } else if (check_type == 9) {
|
|
|
- param.rule_type = 9;
|
|
|
+ if (check_type == 11) {
|
|
|
+ param.rule_type = 11;
|
|
|
+ } else if (check_type == 12) {
|
|
|
+ param.rule_type = 12;
|
|
|
+ }else if (check_type == 13) {
|
|
|
+ param.rule_type = 13;
|
|
|
+ }else if (check_type == 14) {
|
|
|
+ param.rule_type = 14;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
post_common_service('checkRule/getItemListByRuleType', param, function(data) {
|
|
|
all_data = [];
|
|
|
z_cache = data;
|
|
|
@@ -789,7 +797,7 @@ function static() {
|
|
|
|
|
|
var type = $("#speacial_type_select").val();
|
|
|
|
|
|
- if (check_type == 8 || check_type == 9) {
|
|
|
+ if (check_type == 11 || check_type == 12 || check_type == 13 || check_type == 14) {
|
|
|
var p = {
|
|
|
"check_type": check_type,
|
|
|
"check_period": $("#month_date").val(),
|
|
|
@@ -797,7 +805,8 @@ function static() {
|
|
|
};
|
|
|
|
|
|
|
|
|
- post_common_service("f/checkOther/getOtherCheckStatistics", p, function(data) {
|
|
|
+ post_common_service("q/checkOther/getOtherCheckStatistics", p, function(data) {
|
|
|
+ console.log(data);
|
|
|
|
|
|
var names = new Array();
|
|
|
var totalnamesvalue = new HashMap();
|
|
|
@@ -805,8 +814,10 @@ function static() {
|
|
|
var datas = '';
|
|
|
var t8 = 0;
|
|
|
var title = "";
|
|
|
- if (check_type == 8) title = "服务区第三方暗访情况";
|
|
|
- if (check_type == 9) title = "服务区现场检查情况";
|
|
|
+ if (check_type == 12) title = "清障队第三方暗访情况";
|
|
|
+ if (check_type == 11) title = "清障队现场检查情况";
|
|
|
+ if (check_type == 13) title = "清障队96777";
|
|
|
+ if (check_type == 14) title = "清障队其它稽查情况";
|
|
|
// if (check_type == 4) title = "数据平台应用情况";
|
|
|
// if (check_type == 2 && type == "1") title = "公司特情稽查情况";
|
|
|
// if (check_type == 2 && type == "2") title = "联网特情稽查情况";
|