|
@@ -484,9 +484,6 @@ function renderwriteStandardPage(list){
|
|
|
$(".moduleItem.casewriting").append(str)
|
|
|
$('.moduleItem.casewriting').css("display","block")
|
|
|
}
|
|
|
-}
|
|
|
-function computeTipsHeight(){
|
|
|
-
|
|
|
}
|
|
|
function renderPushWarning(){
|
|
|
return getPusgWarning().then(res =>{
|
|
@@ -499,17 +496,20 @@ function renderPushWarning(){
|
|
|
let noteList = result.noteList || [] //检查内容注意事项
|
|
|
let dubugStr = result.dubugStr || [] //注意调试信息
|
|
|
let otherList = result.otherList || [] //其他提醒
|
|
|
- $('.moduleItem.rationali .moduleItemTitBox').append(titleStr('warning'))
|
|
|
renderBillingPush(billMsgList,'开单合理性','rationali')
|
|
|
renderBillingPush(highRiskList,'高风险提示','highrisk')
|
|
|
renderBillingPush(criticalValList,'危急值提醒','crivalue')
|
|
|
renderBillingPush(noteList,'检查注意事项')
|
|
|
renderBillingPush(otherList,'其他提醒','otherremind')
|
|
|
+ const codes = ($(".rationali.tips").length?'rationali,':"")+($(".highrisk.tips").length?'highrisk,':"")+($(".crivalue.tips").length?'crivalue,':"")+($(".otherremind.tips").length?'otherremind':"");
|
|
|
+ $(".moduleItem.tips").wrapAll("<div class='tips-cont' codes="+codes+"></div>");
|
|
|
+ $('.tips-cont').append(titleStr('warning'))
|
|
|
moreInfo()
|
|
|
- if($(".moduleItem.tips")){
|
|
|
- let tipsHei = $(".moduleItem.tips")[0].scrollHeight
|
|
|
+ const hasTipsNum = $(".moduleItem.tips").length;
|
|
|
+ if(hasTipsNum){
|
|
|
+ let tipsHei = $(".tips-cont")[0].scrollHeight;
|
|
|
if(tipsHei > 81){
|
|
|
- $(".tips").append(`<span class="showMoreNewPage">更多</span>`)
|
|
|
+ $(".tips-cont").append(`<span class="showMoreNewPage">更多</span>`)
|
|
|
tipsMsg = result
|
|
|
showMoreNewPage()
|
|
|
}
|
|
@@ -541,7 +541,7 @@ function renderBillingPush(list,name,code){
|
|
|
${str}
|
|
|
</div>`
|
|
|
$("."+code).append(boxStr)
|
|
|
- $('.moduleItem.'+code).addClass("tips").css("display","block")
|
|
|
+ $('.moduleItem.'+code).addClass("tips").attr("code",code).css("display","block")
|
|
|
}
|
|
|
function renderLongStr(name,longStr,location){
|
|
|
if(!longStr){
|
|
@@ -614,9 +614,10 @@ function bindSlide(){
|
|
|
addScrollEvent()
|
|
|
}
|
|
|
function showMoreNewPage(){
|
|
|
+ const codes = $(".tips-cont").attr("codes");
|
|
|
$(".showMoreNewPage").on("click", function(){
|
|
|
// openNewWin(`smartAlert.html?billMsgList=${encodeURIComponent(billMsgList)}&highRiskList=${encodeURIComponent(highRiskList)}&criticalValList=${encodeURIComponent(criticalValList)}¬eList=${encodeURIComponent(noteList)}`)
|
|
|
- openNewWin(`smartAlert.html?mrId=${mrId}&hospitalId=${hospitalIdUrl}`)
|
|
|
+ openNewWin(`smartAlert.html?mrId=${mrId}&hospitalId=${hospitalIdUrl}&codes=`+codes);
|
|
|
})
|
|
|
}
|
|
|
function showMoreCaseWrite(){
|