|
@@ -22,7 +22,8 @@ let iconArrowUp = require('./../images/icon_arrow_up.png').replace(/^undefined/g
|
|
|
let iconArrowDown = require('./../images/icon_arrow_down.png').replace(/^undefined/g, '')
|
|
|
let showImg = require('./../images/show2.png').replace(/^undefined/g, '')
|
|
|
let collapseImg = require('./../images/collapse2.png').replace(/^undefined/g, '')
|
|
|
-
|
|
|
+let treatDisName
|
|
|
+let generalTreatInfo
|
|
|
|
|
|
|
|
|
setWidth()
|
|
@@ -64,6 +65,9 @@ if(mrId){
|
|
|
Promise.all([getConf(),getMRInfo()]).then(([res1,res2])=>{
|
|
|
const data = res1.data.data&&res1.data.data[0]
|
|
|
msg = res2.data.data ||{}
|
|
|
+ if(!(msg&&msg.diseaseName&&msg.diseaseName.name)){
|
|
|
+ msg.diseaseName={}
|
|
|
+ }
|
|
|
window.msg = msg
|
|
|
renderPage(data)
|
|
|
})
|
|
@@ -242,7 +246,10 @@ function renderPushData(){
|
|
|
let checkupPush = result.vital ||[]
|
|
|
let medicinesPush = result.medicines || []
|
|
|
let operationsPush = result.operations ||[]
|
|
|
-
|
|
|
+ let treatPush = result.treat&&result.treat[0] ||{}
|
|
|
+ treatDisName = treatPush&&treatPush["name"]
|
|
|
+ let generaTreatPush = treatPush&&treatPush["generaTreat"]
|
|
|
+ generalTreatInfo = generaTreatPush
|
|
|
// 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}]
|
|
@@ -258,9 +265,11 @@ function renderPushData(){
|
|
|
renderCheckup(checkupPush,checkupNum,null,true)
|
|
|
renderSymptomPush(symptomPush,symptomNum,null,true)
|
|
|
renderDiag(diagPush)
|
|
|
- if(medicinesPush.length > 0 || operationsPush.length > 0){
|
|
|
+
|
|
|
+ if(medicinesPush.length > 0 || operationsPush.length > 0||generaTreatPush){
|
|
|
let str = `<img class="treatIcon" src = ${titleConfigH["treat"].icon} /><span>${titleConfigH["treat"].name}</span>`
|
|
|
$(".rightBoxTitle").append(str)
|
|
|
+ renderDisName()
|
|
|
$(".rightWrapper").css("display","inline-block")
|
|
|
}else{
|
|
|
$(".leftWrapper").css({
|
|
@@ -268,15 +277,17 @@ function renderPushData(){
|
|
|
width: "100%"
|
|
|
})
|
|
|
}
|
|
|
- if((!$(".moduleItem.medicine")&&!$(".moduleItem.operation")) ||($(".moduleItem.medicine").length === 0&&$(".moduleItem.operation").length === 0)){
|
|
|
+ if((!$(".moduleItem.medicine")&&!$(".moduleItem.operation")&&!(".moduleItem.general")) ||($(".moduleItem.general").length === 0&&$(".moduleItem.medicine").length === 0&&$(".moduleItem.operation").length === 0)){
|
|
|
$(".rightWrapper").css("display","none")
|
|
|
$(".leftWrapper").css({
|
|
|
borderRight: "0px",
|
|
|
width: "100%"
|
|
|
})
|
|
|
}
|
|
|
- renderMedicinesPush(medicinesPush,medicinesNum,2,true)
|
|
|
- renderOperationPush(operationsPush,operationsNum,6,true)
|
|
|
+
|
|
|
+ rendergeneraTreatPush(generaTreatPush)
|
|
|
+ renderMedicinesPush(medicinesPush,1,2,true)
|
|
|
+ renderOperationPush(operationsPush,1,6,true)
|
|
|
// if(hasCompleteTnterface === allInterface){
|
|
|
// $('.loading').css("display","none")
|
|
|
// if(moduleNum === 0){
|
|
@@ -345,6 +356,30 @@ function renderOperationPush(list,showNum,type,hasInfo){
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+function renderDisName(){
|
|
|
+ $(".disName").append(`${treatDisName}`)
|
|
|
+}
|
|
|
+function rendergeneraTreatPush(list){
|
|
|
+ if(list.length > 0 && $(".moduleItem.general").length > 0){
|
|
|
+ moduleNum++
|
|
|
+
|
|
|
+ $('.moduleItem.general .moduleItemTitBox').append(titleStr("generaTreatPush"))
|
|
|
+ let str = `<div class="generalTreatInfo clearfix isOverFlow">${list}</div>`
|
|
|
+ $(".moduleItem.general").append(str)
|
|
|
+
|
|
|
+ setTimeout(function(){
|
|
|
+ let generaTreatHei = $(".moduleItem .generalTreatInfo")[0].scrollHeight
|
|
|
+ console.log("generaTreatHei",generaTreatHei)
|
|
|
+ if(generaTreatHei >81){
|
|
|
+ $(".moduleItem .generalTreatInfo").append(`<span class="showMoreGeneralTreat">更多</span>`)
|
|
|
+ bindGeneralSlide()
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
+ $(".moduleItem.general").css("display","block")
|
|
|
+ }
|
|
|
+}
|
|
|
function renderCheckup(list,showNum,type,hasInfo){
|
|
|
if(list.length > 0 && $(".moduleItem.vital").length > 0){
|
|
|
moduleNum++
|
|
@@ -545,7 +580,12 @@ function showMoreCaseWrite(){
|
|
|
openNewWin(`caseWriteStandard.html?caseWriteStandradList=${encodeURIComponent(JSON.stringify(caseWriteStandradList))}`)
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+function bindGeneralSlide(){
|
|
|
+ $(".showMoreGeneralTreat").on("click",function(){
|
|
|
+ openNewWin(`generalTreat.html?disName=${treatDisName}&generalTreatInfo=${generalTreatInfo}`)
|
|
|
+ })
|
|
|
+
|
|
|
+}
|
|
|
function setWidth(){
|
|
|
let winWidth = $(".bodyWrap").css("width")
|
|
|
$(".contentBox").css("width",winWidth)
|