|
|
@@ -38,7 +38,7 @@ var bootstrap = function ($, learun) { |
|
|
|
|
|
|
|
$('#MPMonth').lrDataItemSelect({ code: 'MPMonth' }); |
|
|
|
$('#MPDepartment').lrselect({ |
|
|
|
type: 'tree', |
|
|
|
type: 'treemultiple', |
|
|
|
// 展开最大高度 |
|
|
|
maxHeight: 200, |
|
|
|
// 是否允许搜索 |
|
|
@@ -46,11 +46,18 @@ var bootstrap = function ($, learun) { |
|
|
|
// 访问数据接口地址 |
|
|
|
url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree', |
|
|
|
select: function (val) { |
|
|
|
console.log(val); |
|
|
|
var departmentIds = val.id; |
|
|
|
$('#MPReceiveUser').lrselectRefresh({ |
|
|
|
url: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByDepartmentIds?departmentId=' + departmentIds |
|
|
|
}) |
|
|
|
if (val && val.length > 0) { |
|
|
|
var departmentIds = ''; |
|
|
|
for (var i = 0; i < val.length; i++) { |
|
|
|
departmentIds += val[i].id; |
|
|
|
if (i < val.length - 1) { |
|
|
|
departmentIds += ','; |
|
|
|
} |
|
|
|
} |
|
|
|
$('#MPReceiveUser').lrselectRefresh({ |
|
|
|
url: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByDepartmentIds?departmentId=' + departmentIds |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
@@ -149,9 +156,14 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#lr_qualified').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('MPId'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
var MPConclusion = $('#gridtable').jfGridValue('MPConclusion'); |
|
|
|
if (MPConclusion == 1) { |
|
|
|
learun.alert.warning("当前项已合格"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
learun.layerConfirm('是否确认合格!', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/Qqualified', {keyValue:keyValue, status: true }, function () { |
|
|
|
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/MP_QualityObjectives/Qqualified', {keyValue:keyValue, status: true }, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
} |
|
|
@@ -162,9 +174,14 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#lr_noqualified').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('MPId'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
var MPConclusion = $('#gridtable').jfGridValue('MPConclusion'); |
|
|
|
if (MPConclusion != 1) { |
|
|
|
learun.alert.warning("当前项已不合格"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
learun.layerConfirm('是否确认不合格!', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/Qqualified', {keyValue:keyValue, status: false }, function () { |
|
|
|
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/MP_QualityObjectives/Qqualified', {keyValue:keyValue, status: false }, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
} |
|
|
@@ -203,8 +220,10 @@ var bootstrap = function ($, learun) { |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
if (i < deptarr.length - 1) { |
|
|
|
content += ','; |
|
|
|
} |
|
|
|
} |
|
|
|
content = content.substring(0, content.length - 1); |
|
|
|
callback(content); |
|
|
|
} else { |
|
|
|
learun.clientdata.getAsync('custmerData', |
|
|
@@ -254,7 +273,11 @@ var bootstrap = function ($, learun) { |
|
|
|
item.F_Id + |
|
|
|
'\',)" style="color:blue">' + |
|
|
|
item.F_FileName + |
|
|
|
'</span>, '; |
|
|
|
'</span> '; |
|
|
|
|
|
|
|
if (i < res.data.length - 1) { |
|
|
|
bb += ', '; |
|
|
|
} |
|
|
|
}) |
|
|
|
callback(bb); |
|
|
|
} |
|
|
|