|
|
|
|
@ -228,7 +228,7 @@ function initTable() {
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
var masterId = row.id;
|
|
|
|
|
var name = row.name;
|
|
|
|
|
var name = encodeURI(row.name);
|
|
|
|
|
var inpNo = row.inpNo;
|
|
|
|
|
var visitId = row.visitId;
|
|
|
|
|
var dischargeDateTime = row.dischargeDateTime;
|
|
|
|
|
@ -389,7 +389,7 @@ function paramsMatter(value, row) {
|
|
|
|
|
if(value == null){
|
|
|
|
|
value = '';
|
|
|
|
|
}
|
|
|
|
|
value = '<p class="hidden-xs" title="'+value+'">'+result+value+'</p>';
|
|
|
|
|
value = '<p title="'+value+'">'+result+value+'</p>';
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -636,18 +636,60 @@ $("#getRecallBtn").on('click', function () {
|
|
|
|
|
function getCurrentCodes() {
|
|
|
|
|
//只做一次查询赋值
|
|
|
|
|
if($("#currentRoleIds").val() == ''){
|
|
|
|
|
$.ajaxSettings.async = false;
|
|
|
|
|
$.get(path+"/beHosp/getCurrentCodes",function(data){
|
|
|
|
|
$("#currentRole").val(data.code);
|
|
|
|
|
$("#currentRoleIds").val(data.msg);
|
|
|
|
|
},'json')
|
|
|
|
|
$.ajaxSettings.async = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//加载审核节点
|
|
|
|
|
function getApproveRoles() {
|
|
|
|
|
//只做一次查询赋值
|
|
|
|
|
$.get(path+"/beHosp/getFlowRole",function(data){
|
|
|
|
|
if(data.code == 100){
|
|
|
|
|
var flowRoles = data.extend.list;
|
|
|
|
|
if(null != flowRoles && flowRoles != ''){
|
|
|
|
|
var html = '';
|
|
|
|
|
//获取拥有角色
|
|
|
|
|
var currentRoleIds = $("#currentRoleIds").val();
|
|
|
|
|
//获取操作角色
|
|
|
|
|
var checker = $("#checker").val();
|
|
|
|
|
for (var i = 0; i < flowRoles.length; i++) {
|
|
|
|
|
var code = flowRoles[i].code;
|
|
|
|
|
//过滤病案室审核128和病案室召回1024且无效的对象
|
|
|
|
|
if(code != '128' && code != '1024' && flowRoles[i].effective == 1){
|
|
|
|
|
if(code <= 64 && code >= 2 && checker != 4){
|
|
|
|
|
if(currentRoleIds != '' && currentRoleIds > flowRoles[i].id && checker == flowRoles[i].role){
|
|
|
|
|
html += '<option value="'+code+'">'+flowRoles[i].name+'</option>';
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
if(checker != 4 && flowRoles[i].role != null){
|
|
|
|
|
if(checker == flowRoles[i].role){
|
|
|
|
|
html += '<option value="'+code+'">'+flowRoles[i].name+'</option>';
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
html += '<option value="'+code+'">'+flowRoles[i].name+'</option>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$("#approveRole").append(html);
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
toastr.error(data.msg);
|
|
|
|
|
}
|
|
|
|
|
},'json')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
|
//赋值审核角色
|
|
|
|
|
getChecker();
|
|
|
|
|
//加载当前角色
|
|
|
|
|
getCurrentCodes();
|
|
|
|
|
//加载审核节点
|
|
|
|
|
//getApproveRoles();
|
|
|
|
|
var url = window.location.href;
|
|
|
|
|
var index = url.substring(url.lastIndexOf('?') + 1).replace("num=", "");
|
|
|
|
|
if (index != null && index != "" && index.indexOf("excel") != -1) {
|
|
|
|
|
|