|
@@ -23,24 +23,29 @@ const { data } = require('jquery');
|
|
const { render } = require('less');
|
|
const { render } = require('less');
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
let moduleConfig={
|
|
let moduleConfig={
|
|
auxiliary:"recommendWrap",
|
|
auxiliary:"recommendWrap",
|
|
qc:"qcWrap",
|
|
qc:"qcWrap",
|
|
medical:"medicalKonwledgeWrap"
|
|
medical:"medicalKonwledgeWrap"
|
|
}
|
|
}
|
|
|
|
+let allInterface = 0
|
|
|
|
+let hasCompleteTnterface = 0
|
|
let moduleNum = 0
|
|
let moduleNum = 0
|
|
let mrId = getUrlArgObject('mrId')
|
|
let mrId = getUrlArgObject('mrId')
|
|
const tipsMode = getUrlArgObject('tipsMode') || 1
|
|
const tipsMode = getUrlArgObject('tipsMode') || 1
|
|
|
|
+let planCode = getUrlArgObject('planCode') || 'all'
|
|
let msg;
|
|
let msg;
|
|
|
|
|
|
function getMRInfo() {
|
|
function getMRInfo() {
|
|
return post(config.getMr2,{mrId:mrId})
|
|
return post(config.getMr2,{mrId:mrId})
|
|
}
|
|
}
|
|
-// $('.loading').css("display","block")
|
|
|
|
|
|
+$('.loading').css("display","block")
|
|
$('.empty').css("display","none")
|
|
$('.empty').css("display","none")
|
|
getMRInfo().then(res =>{
|
|
getMRInfo().then(res =>{
|
|
if(res.data.code == '0'){
|
|
if(res.data.code == '0'){
|
|
- msg = res.data.data
|
|
|
|
|
|
+ msg = res.data.data ||{}
|
|
window.msg = msg
|
|
window.msg = msg
|
|
getConf().then(res =>{
|
|
getConf().then(res =>{
|
|
if(res.data.code == '0'){
|
|
if(res.data.code == '0'){
|
|
@@ -81,15 +86,15 @@ getMRInfo().then(res =>{
|
|
// window.pushMessage = {}
|
|
// window.pushMessage = {}
|
|
function getConf() {
|
|
function getConf() {
|
|
var msg = window.msg
|
|
var msg = window.msg
|
|
- return post(config.getPushSet,{hospitalId: 1,planCode: "all"})
|
|
|
|
|
|
+ return post(config.getPushSet,{hospitalId: msg.hospitalId||1,planCode: planCode})
|
|
}
|
|
}
|
|
|
|
|
|
function getPushInfo() {
|
|
function getPushInfo() {
|
|
- return post(config.pushInner,Object.assign({featureType: '1,4,5,6,7,22',hospitalId:2,ruleType:config.ruleTypeMap['22']},msg))
|
|
|
|
|
|
+ return post(config.pushInner,Object.assign(msg,{featureType: '1,4,5,6,7,22',hospitalId:2,ruleType:config.ruleTypeMap['22']}))
|
|
|
|
|
|
}
|
|
}
|
|
function getPusgWarning(){
|
|
function getPusgWarning(){
|
|
- return post(config.indicationPush,Object.assign({ruleType: '1,2,3,4',hospitalId:2,ruleType:config.ruleTypeMap['22']},msg))
|
|
|
|
|
|
+ return post(config.indicationPush,Object.assign(msg,{ruleType: '1,2,3,4',hospitalId:2,ruleType:config.ruleTypeMap['22']}))
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -192,40 +197,53 @@ function getDisclaimer() {
|
|
|
|
|
|
function renderPage(pageSet){
|
|
function renderPage(pageSet){
|
|
renderTab(pageSet.sysSetInfo)
|
|
renderTab(pageSet.sysSetInfo)
|
|
|
|
+ const iframeHei = $(".bodyWrap").height()
|
|
|
|
+ const tabHei = $(".tabList").height()
|
|
|
|
+ $(".contentWrapper").css("height",iframeHei-tabHei-10+'px')
|
|
const hasAuxiliary = hasTab("辅助信息",pageSet.sysSetInfo)
|
|
const hasAuxiliary = hasTab("辅助信息",pageSet.sysSetInfo)
|
|
const hasMedical = hasTab("医学知识",pageSet.sysSetInfo)
|
|
const hasMedical = hasTab("医学知识",pageSet.sysSetInfo)
|
|
|
|
+
|
|
if(hasAuxiliary){
|
|
if(hasAuxiliary){
|
|
renderModuleWrapper(hasAuxiliary.planDetails)
|
|
renderModuleWrapper(hasAuxiliary.planDetails)
|
|
let needPush = isNeedPush(hasAuxiliary.planDetails)
|
|
let needPush = isNeedPush(hasAuxiliary.planDetails)
|
|
let needPushWarning = isNeedPushWarning(hasAuxiliary.planDetails)
|
|
let needPushWarning = isNeedPushWarning(hasAuxiliary.planDetails)
|
|
if(needPush || needPushWarning){
|
|
if(needPush || needPushWarning){
|
|
renderPushData()
|
|
renderPushData()
|
|
|
|
+ allInterface++
|
|
}
|
|
}
|
|
if(needPushWarning){
|
|
if(needPushWarning){
|
|
renderPushWarning()
|
|
renderPushWarning()
|
|
|
|
+ allInterface++
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
function renderPushData(){
|
|
function renderPushData(){
|
|
return getPushInfo().then(res =>{
|
|
return getPushInfo().then(res =>{
|
|
|
|
+ hasCompleteTnterface++
|
|
if(res.data.code == "0"){
|
|
if(res.data.code == "0"){
|
|
const result = res.data.data
|
|
const result = res.data.data
|
|
let diagPush = result.dis
|
|
let diagPush = result.dis
|
|
|
|
|
|
- // let lisPush = result.lis || []
|
|
|
|
- // let pacsPush = result.pacs || []
|
|
|
|
|
|
+ let lisPush = result.lis || []
|
|
|
|
+ let pacsPush = result.pacs || []
|
|
let symptomPush = result.symptom ||[]
|
|
let symptomPush = result.symptom ||[]
|
|
- // let checkupPush = result.vital ||[]
|
|
|
|
|
|
+ let checkupPush = result.vital ||[]
|
|
|
|
|
|
- let lisPush =[{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null}]
|
|
|
|
- let pacsPush = [{name:"胸部x射线",hisNameList:null},{name:"心电图",hisNameList:null}]
|
|
|
|
- let checkupPush = [{name:"神志表情",hisNameList:null},{name:"面部表情",hisNameList:null}]
|
|
|
|
|
|
+ // let lisPush =[{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null}]
|
|
|
|
+ // let pacsPush = [{name:"胸部x射线",hisNameList:null},{name:"心电图",hisNameList:null}]
|
|
|
|
+ // let checkupPush = [{name:"神志表情",hisNameList:null},{name:"面部表情",hisNameList:null}]
|
|
renderLis(lisPush,5,null,true)
|
|
renderLis(lisPush,5,null,true)
|
|
renderPacs(pacsPush,5,null,true)
|
|
renderPacs(pacsPush,5,null,true)
|
|
renderCheckup(checkupPush,5,null,false)
|
|
renderCheckup(checkupPush,5,null,false)
|
|
renderSymptomPush(symptomPush,5,null,true)
|
|
renderSymptomPush(symptomPush,5,null,true)
|
|
renderDiag(diagPush)
|
|
renderDiag(diagPush)
|
|
|
|
+ if(hasCompleteTnterface === allInterface){
|
|
|
|
+ $('.loading').css("display","none")
|
|
|
|
+ if(moduleNum === 0){
|
|
|
|
+ empty()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
bindOpenInfo()
|
|
bindOpenInfo()
|
|
bindSlide()
|
|
bindSlide()
|
|
}
|
|
}
|
|
@@ -253,6 +271,7 @@ function isNeedPushWarning(list){
|
|
|
|
|
|
function renderPushWarning(){
|
|
function renderPushWarning(){
|
|
return getPusgWarning().then(res =>{
|
|
return getPusgWarning().then(res =>{
|
|
|
|
+ hasCompleteTnterface++
|
|
if(res.data.code == '0'){
|
|
if(res.data.code == '0'){
|
|
const result = res.data.data
|
|
const result = res.data.data
|
|
let billMsgList = result.billMsgList || [] //开单合理性提醒
|
|
let billMsgList = result.billMsgList || [] //开单合理性提醒
|
|
@@ -262,7 +281,16 @@ function renderPushWarning(){
|
|
let dubugStr = result.dubugStr || [] //注意调试信息
|
|
let dubugStr = result.dubugStr || [] //注意调试信息
|
|
$('.moduleItem.tips').append(titleStr('warning'))
|
|
$('.moduleItem.tips').append(titleStr('warning'))
|
|
renderBillingPush(billMsgList,'开单合理性提醒')
|
|
renderBillingPush(billMsgList,'开单合理性提醒')
|
|
|
|
+ renderBillingPush(highRiskList,'高风险提示')
|
|
renderBillingPush(criticalValList,'危急值提醒')
|
|
renderBillingPush(criticalValList,'危急值提醒')
|
|
|
|
+ renderBillingPush(noteList,'检查内容注意事项')
|
|
|
|
+ // renderBillingPush(dubugStr,'注意调试信息')
|
|
|
|
+ if(hasCompleteTnterface === allInterface){
|
|
|
|
+ $('.loading').css("display","none")
|
|
|
|
+ if(moduleNum === 0){
|
|
|
|
+ empty()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
})
|
|
})
|
|
@@ -287,11 +315,11 @@ function renderBillingPush(list,name){
|
|
|
|
|
|
function renderDiag(diagPush){
|
|
function renderDiag(diagPush){
|
|
let possibleDiagPush = diagPush["可能诊断"] || []
|
|
let possibleDiagPush = diagPush["可能诊断"] || []
|
|
- // let firstDiagPush = diagPush["初步诊断"] || []
|
|
|
|
- // let identifyDiagPush = diagPush["鉴别诊断"] || []
|
|
|
|
|
|
+ let firstDiagPush = diagPush["初步诊断"] || []
|
|
|
|
+ let identifyDiagPush = diagPush["鉴别诊断"] || []
|
|
|
|
|
|
- let firstDiagPush = [{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null}]
|
|
|
|
- let identifyDiagPush = diagPush["鉴别诊断"] || [{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null}]
|
|
|
|
|
|
+ // let firstDiagPush = [{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null}]
|
|
|
|
+ // let identifyDiagPush = diagPush["鉴别诊断"] || [{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null}]
|
|
$('.moduleItem.diag').append(titleStr("diagPush"))
|
|
$('.moduleItem.diag').append(titleStr("diagPush"))
|
|
renderDiagItem(possibleDiagPush,"可能诊断")
|
|
renderDiagItem(possibleDiagPush,"可能诊断")
|
|
renderDiagItem(firstDiagPush,"初步诊断")
|
|
renderDiagItem(firstDiagPush,"初步诊断")
|
|
@@ -415,9 +443,9 @@ function bindSlide(){
|
|
function renderModuleWrapper(moduleList){
|
|
function renderModuleWrapper(moduleList){
|
|
let moduleStr = ''
|
|
let moduleStr = ''
|
|
for(let i = 0; i < moduleList.length; i++){
|
|
for(let i = 0; i < moduleList.length; i++){
|
|
- // if(moduleList[i].status !='0'){
|
|
|
|
- moduleStr += `<div class="moduleItem ${moduleList[i].code}" style="display:block"></div>`
|
|
|
|
- // }
|
|
|
|
|
|
+ if(moduleList[i].status !='0'){
|
|
|
|
+ moduleStr += `<div class="moduleItem ${moduleList[i].code}" style="display:none"></div>`
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|
|
$(".recommendWrap").append(moduleStr)
|
|
$(".recommendWrap").append(moduleStr)
|
|
@@ -468,6 +496,9 @@ function getModuleShow(moduleClassName){
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+function empty(){
|
|
|
|
+ $('.empty').css("display","block")
|
|
|
|
+}
|
|
|
|
|
|
|
|
|
|
|
|
|