|
|
@@ -242,9 +242,13 @@ function queryTable() {
|
|
|
operation = true;
|
|
|
var hide1 = true;
|
|
|
if (check_type == 2) {
|
|
|
-
|
|
|
hide1 = false;
|
|
|
}
|
|
|
+
|
|
|
+ if (check_type == 4) {
|
|
|
+ data["scoretype"] = $("#scoretype").val();
|
|
|
+ }
|
|
|
+
|
|
|
var cols = [
|
|
|
{ width: 30, text: '序号', flex: false, colClass: 'text-center', field: 'num' },
|
|
|
{ width: 50, text: '时间', flex: false, colClass: '', field: 'check_time' },
|
|
|
@@ -432,6 +436,24 @@ function setSecond() {
|
|
|
refreshFee(feeList, dept);
|
|
|
}
|
|
|
|
|
|
+function setscoretype() {
|
|
|
+ var sec = document.getElementById('scoretype');
|
|
|
+ var tempStr = '<option value="all" selected>全部</option>'
|
|
|
+ if (all_data.length > 0) {
|
|
|
+ if (all_data[0].children.length > 0) {
|
|
|
+ all_data[0].children.forEach(child => {
|
|
|
+ tempStr += "<option value=" + child.name + " >" + child.name + "</option>";
|
|
|
+ });
|
|
|
+ sec.innerHTML = tempStr;
|
|
|
+ } else {
|
|
|
+ sec.innerHTML = '';
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ sec.innerHTML = '';
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
function refreshFee(data, selectId) {
|
|
|
var sec = document.getElementById('second');
|
|
|
var tempStr = '<option value="">全部</option>'
|
|
|
@@ -697,6 +719,10 @@ function getOtherCheckItems() {
|
|
|
all_data.push(zdataItem);
|
|
|
}
|
|
|
check_item_tree = $.fn.zTree.init($("#check_rule_tree2"), setting, all_data)
|
|
|
+
|
|
|
+ if (check_type == 4) {
|
|
|
+ setscoretype();
|
|
|
+ }
|
|
|
}
|
|
|
}, function(error) {})
|
|
|
}
|