|
@@ -0,0 +1,433 @@
|
|
|
|
+require('./../css/reset.css');
|
|
|
|
+require('./../css/cdss.less');
|
|
|
|
+require('./../css/popup.css');
|
|
|
|
+require('./../images/empty.png')
|
|
|
|
+require('./../images/loading.gif')
|
|
|
|
+require('./../images/right.png')
|
|
|
|
+// require('./popupEdit.js');
|
|
|
|
+var Promise = require("bluebird");
|
|
|
|
+let diagFirstImg = require('./../images/yszd.png')
|
|
|
|
+let diagWarningImg = require('./../images/warning.png')
|
|
|
|
+let diagPossibleImg = require('./../images/knzd.png')
|
|
|
|
+let diagIdentifyImg = require('./../images/jianb.png')
|
|
|
|
+let labAndPacsImg = require('./../images/inspect.png')
|
|
|
|
+let physiExamImg = require('./../images/tgjc.png')
|
|
|
|
+let medicalIndicationsImg = require('./../images/tips.png')
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+const $ = require("jquery");
|
|
|
|
+const { post,config,getUrlArgObject,openNewWin } = require('./promise.js');
|
|
|
|
+const { transConf } = require('./util.js');
|
|
|
|
+const {renderWrapper, renderCaseStandard,renderWarning,renderRecommendInfo,renderMultRecommendInfo,renderRecommendConditTips} = require('./cdssDom.js');
|
|
|
|
+const { render } = require('less');
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+let mrId = getUrlArgObject('mrId')
|
|
|
|
+const tipsMode = getUrlArgObject('tipsMode') || 1
|
|
|
|
+let msg;
|
|
|
|
+
|
|
|
|
+function getMRInfo() {
|
|
|
|
+ return post(config.getMr2,{mrId:mrId})
|
|
|
|
+}
|
|
|
|
+$('.loading').css("display","block")
|
|
|
|
+$('.empty').css("display","none")
|
|
|
|
+getMRInfo().then(res =>{
|
|
|
|
+ if(res.data.code == '0'){
|
|
|
|
+ msg = res.data.data
|
|
|
|
+ window.msg = msg
|
|
|
|
+ getConf().then(res =>{
|
|
|
|
+ if(res.data.code == '0'){
|
|
|
|
+ console.log('data',res.data.data)
|
|
|
|
+ // const configArr = res.data.data.pushSetList || []
|
|
|
|
+ // getPageInfo(configArr)
|
|
|
|
+ const data = res.data.data&&res.data.data[0]
|
|
|
|
+ renderPage(data)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ // getAnalyse().then(res =>{
|
|
|
|
+ // renderCaseStandard('CaseStandard', '病例书写规范', res.data.data.warning)
|
|
|
|
+ // })
|
|
|
|
+ // getHosptDeptUsal().then(res =>{
|
|
|
|
+ // console.log('ressss', res)
|
|
|
|
+ // const diagCommon = res.data.data
|
|
|
|
+ // renderRecommendInfo(5,'diagCommon', '常见症状', diagCommon, true,7,2);
|
|
|
|
+ // })
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+}).catch(function (err) {
|
|
|
|
+ console.log(err);
|
|
|
|
+})
|
|
|
|
+
|
|
|
|
+// var msg = {
|
|
|
|
+// age: getUrlArgObject('age'),
|
|
|
|
+// sex: getUrlArgObject('sex') == '男'?1:(getUrlArgObject('sex') == '女'?2:(getUrlArgObject('sex') == '通用'?3:getUrlArgObject('sex'))),
|
|
|
|
+// symptom: getUrlArgObject('symptomJson'),
|
|
|
|
+// vital: getUrlArgObject('vitalJson'),
|
|
|
|
+// lis: getUrlArgObject('lisJson')? JSON.parse(getUrlArgObject('lisJson')) : [],
|
|
|
|
+// pacs: getUrlArgObject('pacsJson'),
|
|
|
|
+// diag: getUrlArgObject('diagJson'),
|
|
|
|
+// diseaseName: getUrlArgObject('diseaseName'),
|
|
|
|
+// other: getUrlArgObject('otherJson') + getUrlArgObject('pastJson'),
|
|
|
|
+// hosCode:getUrlArgObject('hospitalCode') || '',
|
|
|
|
+// plan:getUrlArgObject('plan') || '0',
|
|
|
|
+// }//推送相关信息
|
|
|
|
+// // http://localhost:8082/indexVert.html?age=28&diseaseId=280&lisJson=&diagJson=%E6%80%A5%E6%80%A7%E8%83%B0%E8%85%BA%E7%82%8E&pastJson=%E6%97%A0%E5%BF%83%E8%84%8F%E7%97%85&otherJson=%E6%97%A0%E9%AB%98%E8%A1%80%E5%8E%8B&pacsJson=%E8%85%B9%E9%83%A8B%E8%B6%85:%E6%97%A0%E5%BC%82%E5%B8%B8,%20%E6%8A%A5%E5%91%8A%E6%97%A5%E6%9C%9F:2019-05-07&sex=%E7%94%B7&symptomJson=%E6%81%B6%E5%BF%83%E5%91%95%E5%90%90%E8%85%B0%E7%97%9B&vitalJson=%E8%A1%80%E5%8E%8B%E5%B7%A6%E4%B8%8A%E8%82%A213/12mmHg
|
|
|
|
+// window.msg = msg
|
|
|
|
+// window.pushMessage = {}
|
|
|
|
+function getConf() {
|
|
|
|
+ var msg = window.msg
|
|
|
|
+ return post(config.getPushSet,{hospitalId: 0,planCode: ""})
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function getPushInfo() {
|
|
|
|
+ return post(config.pushInner,Object.assign({featureType: '1,4,5,6,7,22',ruleType:config.ruleTypeMap['22']},msg))
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function getAnalyse() {
|
|
|
|
+ const param = getAnalyseParam()
|
|
|
|
+ return post(config.analyse,param)
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+function getHosptDeptUsal(){
|
|
|
|
+ var msg = window.msg
|
|
|
|
+ const param ={
|
|
|
|
+ age: msg.age,
|
|
|
|
+ deptName: msg.deptName,
|
|
|
|
+ hospitalCode: msg.hosCode,
|
|
|
|
+ sexType: msg.sex,
|
|
|
|
+ type: 1,
|
|
|
|
+ }
|
|
|
|
+ return post(config.getHosptDeptUsal,param)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+// function getPageInfo(configArr) {
|
|
|
|
+// let {confArr, showLabsNum, showPacsNum, labsAndPacMode} = transConf(configArr),
|
|
|
|
+
|
|
|
|
+// diagWaring = [{clientNames: null, conceptId: 531694,libType: 18,name: "糖尿病肾病",type: 7},{clientNames: null, conceptId: 531694,libType: 18,name: "糖尿病肾病",type: 7},{clientNames: null, conceptId: 531694,libType: 18,name: "糖尿病肾病",type: 7},{clientNames: null, conceptId: 531694,libType: 18,name: "糖尿病肾病",type: 7},{clientNames: null, conceptId: 531694,libType: 18,name: "糖尿病肾病",type: 7}]
|
|
|
|
+// // diagWaring = [],
|
|
|
|
+// diagFirst = [],
|
|
|
|
+// diagPossible = [],
|
|
|
|
+// diagIdentify = [],
|
|
|
|
+// labRecommend = [],
|
|
|
|
+// pacsRecommend = [],
|
|
|
|
+// physiExamRecommend = [],
|
|
|
|
+// symptomRecommend = [],
|
|
|
|
+// medicalIndications = [],
|
|
|
|
+// diagCommon = [],
|
|
|
|
+// CaseStandard = [],
|
|
|
|
+// labAndPacsRecommend = [],
|
|
|
|
+// disName=""
|
|
|
|
+// const hasCaseStandard = confArr.findIndex(item => item.code == 'specification_show') > -1
|
|
|
|
+// const hasCommon = confArr.findIndex(item => item.code == 'comsympto_show') > -1
|
|
|
|
+// if(hasCommon){
|
|
|
|
+// if(hasCaseStandard){
|
|
|
|
+// Promise.all([getHosptDeptUsal(),getPushInfo(),getAnalyse()]).then(([res1, res2, res3]) =>{
|
|
|
|
+// diagCommon = res1&&res.data&&res.data.data&&res.data.data || []
|
|
|
|
+// diagWaring = res2&&res2.data&&res2.data.data&&res2.data.data.dis&&res2.data.data.dis['警惕'] || []
|
|
|
|
+// diagFirst = res2&&res2.data&&res2.data.data&&res2.data.data.dis&&res2.data.data.dis['拟诊'] || []
|
|
|
|
+// diagDetermine = res2&&res2.data&&res2.data.data&&res2.data.data.dis&&res2.data.data.dis['确诊'] || []
|
|
|
|
+// diagFirst = diagDetermine.concat (diagFirst)
|
|
|
|
+// diagPossible = res2&&res2.data&&res2.data.data&&res2.data.data.dis&&res2.data.data.dis['可能诊断'] || []
|
|
|
|
+// diagIdentify = res2&&res2.data&&res2.data.data&&res2.data.data.dis&&res2.data.data.dis['鉴别诊断'] || []
|
|
|
|
+// labRecommend = res2&&res2.data&&res2.data.data&&res2.data.data.lab || []
|
|
|
|
+// pacsRecommend = res2&&res2.data&&res2.data.data&&res2.data.data.pacs || []
|
|
|
|
+// physiExamRecommend = res2&&res2.data&&res2.data.data&&res2.data.data.vital || []
|
|
|
|
+// symptomRecommend = res2&&res2.data&&res2.data.data&&res2.data.data.symptom || []
|
|
|
|
+// medicalIndications = res2&&res2.data&&res2.data.data&&res2.data.data.medicalIndications || []
|
|
|
|
+// CaseStandard = res3&&res3.data&&res3.data.data&&res3.data.data.warning || []
|
|
|
|
+// labAndPacsRecommend = [
|
|
|
|
+// {
|
|
|
|
+// title: '化验',
|
|
|
|
+// className: 'labRecommend',
|
|
|
|
+// data: labRecommend,
|
|
|
|
+// showNum: showLabsNum
|
|
|
|
+// },
|
|
|
|
+// {
|
|
|
|
+// title: '辅检',
|
|
|
|
+// className: 'pacsRecommend',
|
|
|
|
+// data: pacsRecommend,
|
|
|
|
+// showNum: showPacsNum
|
|
|
|
+// }
|
|
|
|
+// ]
|
|
|
|
+// window.pushMessage = medicalIndications;//计算的需要的相关数据
|
|
|
|
+// renderPageData(confArr,diagWaring,diagFirst,diagPossible,diagIdentify,labAndPacsRecommend,physiExamRecommend,symptomRecommend,medicalIndications,diagCommon,CaseStandard);
|
|
|
|
+
|
|
|
|
+// }).catch(function (err) {
|
|
|
|
+// console.log(err);
|
|
|
|
+// })
|
|
|
|
+// } else{
|
|
|
|
+// Promise.all([getHosptDeptUsal(),getPushInfo()]).then(([res1, res2]) =>{
|
|
|
|
+// diagCommon = res1&&res1.data&&res1.data.data&&res1.data.data || []
|
|
|
|
+// // diagWaring = res2&&res2.data&&res2.data.data&&res2.data.data.dis&&res2.data.data.dis['警惕'] || []
|
|
|
|
+// diagFirst = res2&&res2.data&&res2.data.data&&res2.data.data.dis&&res2.data.data.dis['拟诊'] || []
|
|
|
|
+// diagDetermine = res2&&res2.data&&res2.data.data&&res2.data.data.dis&&res2.data.data.dis['确诊'] || []
|
|
|
|
+// diagFirst = diagDetermine.concat (diagFirst)
|
|
|
|
+// diagPossible = res2&&res2.data&&res2.data.data&&res2.data.data.dis&&res2.data.data.dis['可能诊断'] || []
|
|
|
|
+// diagIdentify = res2&&res2.data&&res2.data.data&&res2.data.data.dis&&res2.data.data.dis['鉴别诊断'] || []
|
|
|
|
+// labRecommend = res2&&res2.data&&res2.data.data&&res2.data.data.lab || []
|
|
|
|
+// pacsRecommend = res2&&res2.data&&res2.data.data&&res2.data.data.pacs || []
|
|
|
|
+// physiExamRecommend = res2&&res2.data&&res2.data.data&&res2.data.data.vital || []
|
|
|
|
+// symptomRecommend = res2&&res2.data&&res2.data.data&&res2.data.data.symptom || []
|
|
|
|
+// medicalIndications = res2&&res2.data&&res2.data.data&&res2.data.data.medicalIndications || []
|
|
|
|
+// labAndPacsRecommend = [
|
|
|
|
+// {
|
|
|
|
+// title: '化验',
|
|
|
|
+// className: 'labRecommend',
|
|
|
|
+// data: labRecommend,
|
|
|
|
+// showNum: showLabsNum
|
|
|
|
+// },
|
|
|
|
+// {
|
|
|
|
+// title: '辅检',
|
|
|
|
+// className: 'pacsRecommend',
|
|
|
|
+// data: pacsRecommend,
|
|
|
|
+// showNum: showPacsNum
|
|
|
|
+// }
|
|
|
|
+// ]
|
|
|
|
+// window.pushMessage = medicalIndications;//计算的需要的相关数据
|
|
|
|
+// renderPageData(confArr,diagWaring,diagFirst,diagPossible,diagIdentify,labAndPacsRecommend,physiExamRecommend,symptomRecommend,medicalIndications,diagCommon,CaseStandard);
|
|
|
|
+
|
|
|
|
+// }).catch(function (err) {
|
|
|
|
+// console.log(err);
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+// }else{
|
|
|
|
+// if(hasCaseStandard){
|
|
|
|
+// Promise.all([getAnalyse(), getPushInfo()]).then(([res1, res2]) =>{
|
|
|
|
+// getPushData(res2)
|
|
|
|
+// diagWaring = res2&&res2.data&&res2.data.data&&res2.data.data.dis&&res2.data.data.dis['警惕'] || []
|
|
|
|
+// diagFirst = res2&&res2.data&&res2.data.data&&res2.data.data.dis&&res2.data.data.dis['拟诊'] || []
|
|
|
|
+// diagDetermine = res2&&res2.data&&res2.data.data&&res2.data.data.dis&&res2.data.data.dis['确诊'] || []
|
|
|
|
+// diagFirst = diagDetermine.concat (diagFirst)
|
|
|
|
+// diagPossible = res2&&res2.data&&res2.data.data&&res2.data.data.dis&&res2.data.data.dis['可能诊断'] || []
|
|
|
|
+// diagIdentify = res2&&res2.data&&res2.data.data&&res2.data.data.dis&&res2.data.data.dis['鉴别诊断'] || []
|
|
|
|
+// labRecommend = res2&&res2.data&&res2.data.data&&res2.data.data.lab || []
|
|
|
|
+// pacsRecommend = res2&&res2.data&&res2.data.data&&res2.data.data.pacs || []
|
|
|
|
+// physiExamRecommend = res2&&res2.data&&res2.data.data&&res2.data.data.vital || []
|
|
|
|
+// symptomRecommend = res2&&res2.data&&res2.data.data&&res2.data.data.symptom || []
|
|
|
|
+// medicalIndications = res2&&res2.data&&res2.data.data&&res2.data.data.medicalIndications || []
|
|
|
|
+// CaseStandard = res1&&res1.data&&res1.data.data&&res1.data.data.warning || []
|
|
|
|
+// labAndPacsRecommend = [
|
|
|
|
+// {
|
|
|
|
+// title: '化验',
|
|
|
|
+// className: 'labRecommend',
|
|
|
|
+// data: labRecommend,
|
|
|
|
+// showNum: showLabsNum
|
|
|
|
+// },
|
|
|
|
+// {
|
|
|
|
+// title: '辅检',
|
|
|
|
+// className: 'pacsRecommend',
|
|
|
|
+// data: pacsRecommend,
|
|
|
|
+// showNum: showPacsNum
|
|
|
|
+// }
|
|
|
|
+// ]
|
|
|
|
+// window.pushMessage = medicalIndications;//计算的需要的相关数据
|
|
|
|
+// renderPageData(confArr,diagWaring,diagFirst,diagPossible,diagIdentify,labAndPacsRecommend,physiExamRecommend,symptomRecommend,medicalIndications,diagCommon,CaseStandard);
|
|
|
|
+
|
|
|
|
+// }).catch(function (err) {
|
|
|
|
+// console.log(err);
|
|
|
|
+// })
|
|
|
|
+// } else{
|
|
|
|
+
|
|
|
|
+// getPushInfo().then(res =>{
|
|
|
|
+// diagWaring = res&&res.data&&res.data.data&&res.data.data.dis&&res.data.data.dis['警惕'] || []
|
|
|
|
+// diagFirst = res&&res.data&&res.data.data&&res.data.data.dis&&res.data.data.dis['拟诊'] || []
|
|
|
|
+// diagDetermine = res&&res.data&&res.data.data&&res.data.data.dis&&res.data.data.dis['确诊'] || []
|
|
|
|
+// diagFirst = diagDetermine.concat (diagFirst)
|
|
|
|
+// diagPossible = res&&res.data&&res.data.data&&res.data.data.dis&&res.data.data.dis['可能诊断'] || []
|
|
|
|
+// diagIdentify = res&&res.data&&res.data.data&&res.data.data.dis&&res.data.data.dis['鉴别诊断'] || []
|
|
|
|
+// labRecommend = res&&res.data&&res.data.data&&res.data.data.lab || []
|
|
|
|
+// pacsRecommend = res&&res.data&&res.data.data&&res.data.data.pacs || []
|
|
|
|
+// physiExamRecommend = res&&res.data&&res.data.data&&res.data.data.vital || []
|
|
|
|
+// symptomRecommend = res&&res.data&&res.data.data&&res.data.data.symptom || []
|
|
|
|
+// medicalIndications = res&&res.data&&res.data.data&&res.data.data.medicalIndications || []
|
|
|
|
+// labAndPacsRecommend = [
|
|
|
|
+// {
|
|
|
|
+// title: '化验',
|
|
|
|
+// className: 'labRecommend',
|
|
|
|
+// data: labRecommend,
|
|
|
|
+// showNum: showLabsNum
|
|
|
|
+// },
|
|
|
|
+// {
|
|
|
|
+// title: '辅检',
|
|
|
|
+// className: 'pacsRecommend',
|
|
|
|
+// data: pacsRecommend,
|
|
|
|
+// showNum: showPacsNum
|
|
|
|
+// }
|
|
|
|
+// ]
|
|
|
|
+// window.pushMessage = medicalIndications;//计算的需要的相关数据
|
|
|
|
+// renderPageData(confArr,diagWaring,diagFirst,diagPossible,diagIdentify,labAndPacsRecommend,physiExamRecommend,symptomRecommend,medicalIndications,diagCommon,CaseStandard);
|
|
|
|
+// }).catch(function (err) {
|
|
|
|
+// console.log(err);
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+
|
|
|
|
+// }
|
|
|
|
+
|
|
|
|
+function getPushData(res){
|
|
|
|
+ if(res&&res.data&&res.data.data&&res.data.data.dis&&res.data.data.dis){
|
|
|
|
+ let dis = res.data.data.dis;
|
|
|
|
+ //急诊显示规则,主诊断有急诊优先显示,没有则显示推送的,推送也没有就不显示
|
|
|
|
+ if(dis&&dis['页面急诊']&&(dis['页面急诊'].length>0)){
|
|
|
|
+ let name = dis['页面急诊'][0].name || ''
|
|
|
|
+ $(".allDis .disName").html(name)
|
|
|
|
+ disName = name
|
|
|
|
+ if(name){
|
|
|
|
+ $(".singleDis").css("display","block")
|
|
|
|
+ }
|
|
|
|
+ }else if(dis&&dis['急诊']&&dis['急诊'].length>0){
|
|
|
|
+ let name = dis['急诊'][0].name || ''
|
|
|
|
+ $(".allDis .disName").html(name)
|
|
|
|
+ disName = name
|
|
|
|
+ if(name){
|
|
|
|
+ $(".singleDis").css("display","block")
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+let disName=""
|
|
|
|
+function handleShow(){
|
|
|
|
+ const newinConf = {
|
|
|
|
+ width: '600', //窗口的文档显示区的宽度。以像素计。
|
|
|
|
+ height: '826', //窗口文档显示区的高度。以像素计。
|
|
|
|
+ left: '0', //窗口的 x 坐标。以像素计。
|
|
|
|
+ top: '0', //窗口的 y 坐标。以像素计。
|
|
|
|
+ openMode: "_blank" //每次都是新窗口打开为_blank,打开同一窗口填写任意字符串
|
|
|
|
+ }
|
|
|
|
+ const newWindowLocation = `width=${newinConf.width}, height=${newinConf.height}, left=${newinConf.left}, top=${newinConf.top} scrollbars=yes`
|
|
|
|
+ window.open('./emergency.html?disName='+disName, newinConf.openMode, newWindowLocation)
|
|
|
|
+}
|
|
|
|
+$(document).on('click',".allDis .allName",function(){
|
|
|
|
+ handleShow()
|
|
|
|
+})
|
|
|
|
+$(document).on('click',".singleDis",function(){
|
|
|
|
+ $(this).next().css("display","block")
|
|
|
|
+ $(this).css("display","none")
|
|
|
|
+})
|
|
|
|
+$(document).on('click',".allDis .right,.allDis .secDis",function(){
|
|
|
|
+ $(".allDis").css("display","none")
|
|
|
|
+ $(".singleDis").css("display","block")
|
|
|
|
+})
|
|
|
|
+// function renderPageData(confArr,diagWaring,diagFirst,diagPossible,diagIdentify,labAndPacsRecommend,physiExamRecommend,symptomRecommend,medicalIndications,diagCommon,CaseStandard){
|
|
|
|
+
|
|
|
|
+// let renderNum = 0
|
|
|
|
+// for(let i = 0; i < confArr.length; i++) {
|
|
|
|
+
|
|
|
|
+// switch(confArr[i].code) {
|
|
|
|
+// case "symptoms_show": //问诊症状
|
|
|
|
+// symptomRecommend.length > 0 && renderRecommendInfo(confArr[i].showNum,'symptomRecommend', '问诊症状', symptomRecommend, false)
|
|
|
|
+// $('.symptomRecommend h4 img').attr('src',diagFirstImg)
|
|
|
|
+// symptomRecommend.length > 0 && renderNum++
|
|
|
|
+// break;
|
|
|
|
+// case "physical_show": //体格检查
|
|
|
|
+// physiExamRecommend.length > 0 && renderRecommendInfo(5,'physiExamRecommend', '体格检查', physiExamRecommend, false)
|
|
|
|
+// $('.physiExamRecommend h4 img').attr('src',physiExamImg)
|
|
|
|
+// physiExamRecommend.length > 0 && renderNum++
|
|
|
|
+// break;
|
|
|
|
+// case "illness_show": //病情提示
|
|
|
|
+// medicalIndications.length > 0 && renderRecommendConditTips('conditTips','病情提示', medicalIndications || []);
|
|
|
|
+// medicalIndications.length > 0 && renderNum++;
|
|
|
|
+// break;
|
|
|
|
+// case "vigilant_show": //警惕诊断
|
|
|
|
+// diagWaring.length > 0 && renderWarning(confArr[i].showNum,'warning', '警惕诊断', diagWaring, true,7,2);
|
|
|
|
+// diagWaring.length > 0 && renderNum++;
|
|
|
|
+// break;
|
|
|
|
+// case "comsympto_show": //常见症状
|
|
|
|
+// diagCommon.length > 0 && renderRecommendInfo(confArr[i].showNum,'commonSymp', '常见症状', diagCommon, true,7,2);
|
|
|
|
+// diagCommon.length > 0 && renderNum++;
|
|
|
|
+// break;
|
|
|
|
+// case "specification_show": //病例书写规范
|
|
|
|
+// CaseStandard.length > 0 && renderCaseStandard('CaseStandard', '病历书写规范提示', CaseStandard);
|
|
|
|
+// CaseStandard.length > 0 && renderNum++;
|
|
|
|
+// break;
|
|
|
|
+// case "Inspush_show": //检验检查
|
|
|
|
+// (labRecommend.length > 0 || pacsRecommend.length >0) && renderMultRecommendInfo('labAndPacsRecommend', '检验检查', labAndPacsRecommend, false);
|
|
|
|
+// (labRecommend.length > 0 || pacsRecommend.length >0) && renderNum++
|
|
|
|
+// break;
|
|
|
|
+// case "diapush_show": //推荐诊断
|
|
|
|
+// diagFirst.length>0 && renderRecommendInfo(5,'diagFirst', '初步诊断', diagFirst, true,7,2);
|
|
|
|
+// diagFirst.length>0 && renderNum++
|
|
|
|
+// diagPossible.length>0 && renderRecommendInfo(5,'diagPossible', '可能诊断', diagPossible, true,7,2);
|
|
|
|
+// diagPossible.length>0 && renderNum++
|
|
|
|
+// diagIdentify.length>0 && renderRecommendInfo(5,'diagIdentify', '鉴别诊断', diagIdentify, true,7,2);
|
|
|
|
+// diagIdentify.length>0 && renderNum++;
|
|
|
|
+// $('.diagFirst h4 img').attr('src',diagFirstImg);
|
|
|
|
+// $('.diagPossible h4 img').attr('src',diagPossibleImg);
|
|
|
|
+// $('.diagIdentify h4 img').attr('src',diagIdentifyImg);
|
|
|
|
+// break;
|
|
|
|
+// default:
|
|
|
|
+// break;
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+// $('.loading').css("display","none")
|
|
|
|
+// if(renderNum > 0 || diagWaring.length > 0){
|
|
|
|
+// $(".empty").css("display","none")
|
|
|
|
+// }else{
|
|
|
|
+// $(".empty").css("display","block")
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+function moreInfo() {
|
|
|
|
+ $('.moreInfo').click(function(){
|
|
|
|
+ const name = $(this).attr('data-name')
|
|
|
|
+ const type = $(this).attr('data-type')
|
|
|
|
+ openNewWin(`information.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}`)
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function getVersion() {
|
|
|
|
+ post(config.getVersion, 'confArr').then((res) => {
|
|
|
|
+ const data = res.data.data;
|
|
|
|
+ const ver = localStorage.getItem('versionTime');
|
|
|
|
+ const time = data.refreshTime;
|
|
|
|
+ if(!ver||ver===time+"=new"||time!==ver.replace("=new","")){ //判断版本是否更新
|
|
|
|
+ $(".version-tip").addClass('new-icon');
|
|
|
|
+ localStorage.setItem('versionTime',time+"=new"); //保存版本更新时间
|
|
|
|
+ }else{
|
|
|
|
+ $(".version-tip").removeClass('new-icon');
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+function getDisclaimer() {
|
|
|
|
+ post(config.disclaimer, '').then((res) => {
|
|
|
|
+ const data = res.data.data.find(item => item.disclaimerCode == '2');
|
|
|
|
+ $(".responsibility").html(data.description);
|
|
|
|
+ $('.iframeWrap').css({height: $(window).height()-115-$(".responsibility").height()+'px'})
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function renderPage(pageSet){
|
|
|
|
+ renderTab(pageSet.sysSetInfo)
|
|
|
|
+ renderContent(pageSet.sysSetInfo)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function renderTab(tabList){
|
|
|
|
+ let str = ''
|
|
|
|
+ for(let i = 0; i < tabList.length; i++){
|
|
|
|
+ str += `<span class="${i === 0 ? 'activeTab':''}">${tabList.name}</span>`
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+function renderContent(){
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+$(function(){
|
|
|
|
+ getDisclaimer(); //获取免责声明
|
|
|
|
+ getVersion(); //获取版本信息
|
|
|
|
+ $(".disclaimerInfo").on("click", function(){
|
|
|
|
+ openNewWin("disclaimer.html")
|
|
|
|
+ });
|
|
|
|
+ $(".version-tip").on("click", function(){
|
|
|
|
+ const ver = localStorage.getItem('versionTime');
|
|
|
|
+ $(".version-tip").removeClass('new-icon');
|
|
|
|
+ localStorage.setItem('versionTime',ver.replace("=new",""));
|
|
|
|
+ openNewWin("version.html");
|
|
|
|
+ });
|
|
|
|
+});
|