|
@@ -34,13 +34,17 @@ $('.iconCalen').on("click", function(e){
|
|
|
$('.recordScoreBtn').css("opacity",hasData('FUNC000017')?'1':'0.5')
|
|
|
|
|
|
//判断有无某一权限
|
|
|
-function hasData(data){
|
|
|
- let lis = JSON.parse(getCookie("codeLis"))
|
|
|
+ function hasData(data){
|
|
|
+ let trdObj = JSON.parse(getCookie("trdObj"))
|
|
|
+ let lis = trdObj['YH-BLZK-ZKPF']
|
|
|
+ if(!lis){
|
|
|
+ return false
|
|
|
+ }
|
|
|
if(lis.indexOf(data)>-1){//有权限
|
|
|
return true
|
|
|
}
|
|
|
return false;
|
|
|
- }
|
|
|
+}
|
|
|
function getTabData(activePage){
|
|
|
const param = {
|
|
|
current:activePage,
|
|
@@ -148,8 +152,8 @@ function renderTab(data,hisId){
|
|
|
bindScoreDetail(hisId)
|
|
|
}
|
|
|
|
|
|
-function scoreDetail(id,age,hid){
|
|
|
- window.open(`./qcScore.html?id=${id}&age=${age}&hid=${hid}`)
|
|
|
+function scoreDetail(id,age,hid,code){
|
|
|
+ window.open(`./qcScore.html?id=${id}&age=${age}&hid=${hid}&code=${code}`)
|
|
|
}
|
|
|
function bindScoreDetail(hisId){
|
|
|
$('.patientNameSpan').on('click',function(e){
|
|
@@ -161,7 +165,7 @@ function bindScoreDetail(hisId){
|
|
|
$.alerModal({"message":'请先进行评分!',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
return
|
|
|
} else{
|
|
|
- scoreDetail(id,age,hisId)
|
|
|
+ scoreDetail(id,age,hisId,'YH-BLZK-ZKPF')
|
|
|
}
|
|
|
|
|
|
})
|