|
@@ -37,7 +37,8 @@ let moduleConfig={
|
|
|
let allInterface = 0
|
|
|
let hasCompleteTnterface = 0
|
|
|
let moduleNum = 0
|
|
|
-let mrId = getUrlArgObject('mrId')
|
|
|
+let mrId = getUrlArgObject('mrId')
|
|
|
+let pushMrId = getUrlArgObject('pushMrId')
|
|
|
const tipsMode = getUrlArgObject('tipsMode') || 1
|
|
|
let planCode = getUrlArgObject('planCode') || 'all'
|
|
|
let hospitalIdUrl = getUrlArgObject('hospitalId') || ''
|
|
@@ -61,7 +62,8 @@ function getPushInfo() {
|
|
|
|
|
|
}
|
|
|
function getPusgWarning(){
|
|
|
- return post(config.indicationPush,Object.assign({},msg,{ruleType: '1,2,3,4',hospitalId:hospitalIdUrl||msg.hospitalId}))
|
|
|
+ const indPush = pushMrId ? config.indicationPushCache : config.indicationPush;
|
|
|
+ return post(indPush, Object.assign({}, msg, {mrId: pushMrId || mrId}))
|
|
|
}
|
|
|
function getWriteStandardPush(){
|
|
|
return post(config.caseWritingPrompt,Object.assign({},msg,{hospitalId:2||msg.hospitalId}))
|
|
@@ -159,7 +161,7 @@ function renderModuleWrapper(moduleList){
|
|
|
let moduleStr = '',treatStr=""
|
|
|
for(let i = 0; i < moduleList.length; i++){
|
|
|
if(moduleList[i].status !='0'){
|
|
|
- if(moduleList[i].code == 'general' || moduleList[i].code == 'medicine' || moduleList[i].code == 'operation'){
|
|
|
+ if (moduleList[i].code == 'general' || moduleList[i].code == 'medicine' || moduleList[i].code == 'operation' || moduleList[i].code == 'nurse') {
|
|
|
treatStr += `<div class="moduleItem ${moduleList[i].code }" data-num="${moduleList[i].number}" style="display:none"><span class="moduleItemTitBox"></span></div>`
|
|
|
}else if(moduleList[i].code == 'critical'){
|
|
|
moduleStr += `<div class="moduleItem warning" data-num="${moduleList[i].number}" style="display:none"><span class="moduleItemTitBox"></span></div>`
|
|
@@ -283,9 +285,8 @@ function renderPushData(){
|
|
|
renderCheckup(checkupPush,checkupNum,null,true)
|
|
|
renderSymptomPush(symptomPush,symptomNum,null,true)
|
|
|
renderDiag(diagPush)
|
|
|
- renderNurse(nursePush, nurseNum, 9, true)
|
|
|
|
|
|
- if(medicinesPush.length > 0 || operationsPush.length > 0||generaTreatPush){
|
|
|
+ if (medicinesPush.length > 0 || operationsPush.length > 0 || generaTreatPush || nursePush) {
|
|
|
let str = `<img class="treatIcon" src = ${titleConfigH["treat"].icon} /><span>${titleConfigH["treat"].name}</span>`
|
|
|
$(".rightBoxTitle").append(str)
|
|
|
renderDisName()
|
|
@@ -304,10 +305,11 @@ function renderPushData(){
|
|
|
width: "100%"
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
rendergeneraTreatPush(generaTreatPush)
|
|
|
renderMedicinesPush(medicinesPush,medicinesNum,2,true)
|
|
|
renderOperationPush(operationsPush,operationsNum,6,true)
|
|
|
+ renderNurse(nursePush, nurseNum, 9, true)
|
|
|
// if(hasCompleteTnterface === allInterface){
|
|
|
// $('.loading').css("display","none")
|
|
|
// if(moduleNum === 0){
|
|
@@ -347,9 +349,9 @@ function renderNurse(list, showNum, type, hasInfo) {
|
|
|
moduleNum++
|
|
|
$('.moduleItem.nurse .moduleItemTitBox').append(titleStr("nursePush"))
|
|
|
let {shortStr, longStr} = renderItemWrapper(list, showNum, type, hasInfo)
|
|
|
- $('.moduleItem.nurse').append(shortStr)
|
|
|
- $('.moduleItem.nurse').append(renderLongStr(titleConfigH["nursePush"].name, longStr, titleConfigH["nursePush"].location))
|
|
|
- $('.moduleItem.nurse').css("display", "block")
|
|
|
+ $(".moduleItem.nurse").append(shortStr)
|
|
|
+ $(".moduleItem.nurse").append(renderLongStr(titleConfigH["nursePush"].name, longStr, titleConfigH["nursePush"].location))
|
|
|
+ $(".moduleItem.nurse").css("display", "block")
|
|
|
}
|
|
|
}
|
|
|
function renderPacs(list,showNum,type,hasInfo){
|