|
@@ -1,28 +1,34 @@
|
|
require('./../css/reset.css');
|
|
require('./../css/reset.css');
|
|
require('./../css/cdss.less');
|
|
require('./../css/cdss.less');
|
|
require('./../css/popup.css');
|
|
require('./../css/popup.css');
|
|
|
|
+require('./../css/staticSearch.css')
|
|
|
|
+require('./../js/staticSearch.js')
|
|
require('./../images/empty.png')
|
|
require('./../images/empty.png')
|
|
require('./../images/loading.gif')
|
|
require('./../images/loading.gif')
|
|
require('./../images/right.png')
|
|
require('./../images/right.png')
|
|
// require('./popupEdit.js');
|
|
// require('./popupEdit.js');
|
|
var Promise = require("bluebird");
|
|
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')
|
|
|
|
|
|
+let infoImg = require('./../images/icon_info.png')
|
|
|
|
+let infoImgOn = require('./../images/icon_info_on.png')
|
|
|
|
+let iconArrowUp = require('./../images/icon_arrow_up.png')
|
|
|
|
+let iconArrowDown = require('./../images/icon_arrow_down.png')
|
|
|
|
+let iconMark = require('./../images/icon_mark.png')
|
|
|
|
|
|
|
|
|
|
const $ = require("jquery");
|
|
const $ = require("jquery");
|
|
-const { post,config,getUrlArgObject,openNewWin } = require('./promise.js');
|
|
|
|
|
|
+const { post,config,getUrlArgObject,openNewWin,titleConfig } = require('./promise.js');
|
|
const { transConf } = require('./util.js');
|
|
const { transConf } = require('./util.js');
|
|
const {renderWrapper, renderCaseStandard,renderWarning,renderRecommendInfo,renderMultRecommendInfo,renderRecommendConditTips} = require('./cdssDom.js');
|
|
const {renderWrapper, renderCaseStandard,renderWarning,renderRecommendInfo,renderMultRecommendInfo,renderRecommendConditTips} = require('./cdssDom.js');
|
|
|
|
+const { data } = require('jquery');
|
|
const { render } = require('less');
|
|
const { render } = require('less');
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
+let moduleConfig={
|
|
|
|
+ auxiliary:"recommendWrap",
|
|
|
|
+ qc:"qcWrap",
|
|
|
|
+ medical:"medicalKonwledgeWrap"
|
|
|
|
+}
|
|
|
|
+let moduleNum = 0
|
|
let mrId = getUrlArgObject('mrId')
|
|
let mrId = getUrlArgObject('mrId')
|
|
const tipsMode = getUrlArgObject('tipsMode') || 1
|
|
const tipsMode = getUrlArgObject('tipsMode') || 1
|
|
let msg;
|
|
let msg;
|
|
@@ -30,7 +36,7 @@ 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'){
|
|
@@ -38,7 +44,6 @@ getMRInfo().then(res =>{
|
|
window.msg = msg
|
|
window.msg = msg
|
|
getConf().then(res =>{
|
|
getConf().then(res =>{
|
|
if(res.data.code == '0'){
|
|
if(res.data.code == '0'){
|
|
- console.log('data',res.data.data)
|
|
|
|
// const configArr = res.data.data.pushSetList || []
|
|
// const configArr = res.data.data.pushSetList || []
|
|
// getPageInfo(configArr)
|
|
// getPageInfo(configArr)
|
|
const data = res.data.data&&res.data.data[0]
|
|
const data = res.data.data&&res.data.data[0]
|
|
@@ -49,7 +54,6 @@ getMRInfo().then(res =>{
|
|
// renderCaseStandard('CaseStandard', '病例书写规范', res.data.data.warning)
|
|
// renderCaseStandard('CaseStandard', '病例书写规范', res.data.data.warning)
|
|
// })
|
|
// })
|
|
// getHosptDeptUsal().then(res =>{
|
|
// getHosptDeptUsal().then(res =>{
|
|
- // console.log('ressss', res)
|
|
|
|
// const diagCommon = res.data.data
|
|
// const diagCommon = res.data.data
|
|
// renderRecommendInfo(5,'diagCommon', '常见症状', diagCommon, true,7,2);
|
|
// renderRecommendInfo(5,'diagCommon', '常见症状', diagCommon, true,7,2);
|
|
// })
|
|
// })
|
|
@@ -77,13 +81,17 @@ getMRInfo().then(res =>{
|
|
// window.pushMessage = {}
|
|
// window.pushMessage = {}
|
|
function getConf() {
|
|
function getConf() {
|
|
var msg = window.msg
|
|
var msg = window.msg
|
|
- return post(config.getPushSet,{hospitalId: 0,planCode: ""})
|
|
|
|
|
|
+ return post(config.getPushSet,{hospitalId: 1,planCode: "all"})
|
|
}
|
|
}
|
|
|
|
|
|
function getPushInfo() {
|
|
function getPushInfo() {
|
|
- return post(config.pushInner,Object.assign({featureType: '1,4,5,6,7,22',ruleType:config.ruleTypeMap['22']},msg))
|
|
|
|
|
|
+ return post(config.pushInner,Object.assign({featureType: '1,4,5,6,7,22',hospitalId:2,ruleType:config.ruleTypeMap['22']},msg))
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+function getPusgWarning(){
|
|
|
|
+ return post(config.indicationPush,Object.assign({ruleType: '1,2,3,4',hospitalId:2,ruleType:config.ruleTypeMap['22']},msg))
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
|
|
function getAnalyse() {
|
|
function getAnalyse() {
|
|
const param = getAnalyseParam()
|
|
const param = getAnalyseParam()
|
|
@@ -103,169 +111,7 @@ function getHosptDeptUsal(){
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-// 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){
|
|
function getPushData(res){
|
|
if(res&&res.data&&res.data.data&&res.data.data.dis&&res.data.data.dis){
|
|
if(res&&res.data&&res.data.data&&res.data.data.dis&&res.data.data.dis){
|
|
@@ -311,64 +157,6 @@ $(document).on('click',".allDis .right,.allDis .secDis",function(){
|
|
$(".allDis").css("display","none")
|
|
$(".allDis").css("display","none")
|
|
$(".singleDis").css("display","block")
|
|
$(".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")
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -389,38 +177,308 @@ function getVersion() {
|
|
$(".version-tip").addClass('new-icon');
|
|
$(".version-tip").addClass('new-icon');
|
|
localStorage.setItem('versionTime',time+"=new"); //保存版本更新时间
|
|
localStorage.setItem('versionTime',time+"=new"); //保存版本更新时间
|
|
}else{
|
|
}else{
|
|
- $(".version-tip").removeClass('new-icon');
|
|
|
|
|
|
+ $(".version-tip").removeClass("new-icon");
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
function getDisclaimer() {
|
|
function getDisclaimer() {
|
|
- post(config.disclaimer, '').then((res) => {
|
|
|
|
- const data = res.data.data.find(item => item.disclaimerCode == '2');
|
|
|
|
|
|
+ post(config.disclaimer, "").then((res) => {
|
|
|
|
+ const data = res.data.data.find(item => item.disclaimerCode == "2");
|
|
$(".responsibility").html(data.description);
|
|
$(".responsibility").html(data.description);
|
|
- $('.iframeWrap').css({height: $(window).height()-115-$(".responsibility").height()+'px'})
|
|
|
|
|
|
+ $(".iframeWrap").css({height: $(window).height()-115-$(".responsibility").height()+"px"})
|
|
|
|
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
function renderPage(pageSet){
|
|
function renderPage(pageSet){
|
|
renderTab(pageSet.sysSetInfo)
|
|
renderTab(pageSet.sysSetInfo)
|
|
- renderContent(pageSet.sysSetInfo)
|
|
|
|
|
|
+ const hasAuxiliary = hasTab("辅助信息",pageSet.sysSetInfo)
|
|
|
|
+ const hasMedical = hasTab("医学知识",pageSet.sysSetInfo)
|
|
|
|
+ if(hasAuxiliary){
|
|
|
|
+ renderModuleWrapper(hasAuxiliary.planDetails)
|
|
|
|
+ let needPush = isNeedPush(hasAuxiliary.planDetails)
|
|
|
|
+ let needPushWarning = isNeedPushWarning(hasAuxiliary.planDetails)
|
|
|
|
+ if(needPush || needPushWarning){
|
|
|
|
+ renderPushData()
|
|
|
|
+ }
|
|
|
|
+ if(needPushWarning){
|
|
|
|
+ renderPushWarning()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function renderPushData(){
|
|
|
|
+ return getPushInfo().then(res =>{
|
|
|
|
+ if(res.data.code == "0"){
|
|
|
|
+ const result = res.data.data
|
|
|
|
+ let diagPush = result.dis
|
|
|
|
+
|
|
|
|
+ // let lisPush = result.lis || []
|
|
|
|
+ // let pacsPush = result.pacs || []
|
|
|
|
+ let symptomPush = result.symptom ||[]
|
|
|
|
+ // 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}]
|
|
|
|
+ renderLis(lisPush,5,null,true)
|
|
|
|
+ renderPacs(pacsPush,5,null,true)
|
|
|
|
+ renderCheckup(checkupPush,5,null,false)
|
|
|
|
+ renderSymptomPush(symptomPush,5,null,true)
|
|
|
|
+ renderDiag(diagPush)
|
|
|
|
+ bindOpenInfo()
|
|
|
|
+ bindSlide()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function isNeedPush(list){
|
|
|
|
+ let pushCode = ["diag","lis","pacs","symptom","vital"]
|
|
|
|
+ for(let i = 0; i < list.length; i++){
|
|
|
|
+ if(pushCode.indexOf(list[i].code)>-1){
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+}
|
|
|
|
+function isNeedPushWarning(list){
|
|
|
|
+ let pushCode = ["tips"]
|
|
|
|
+ for(let i = 0; i < list.length; i++){
|
|
|
|
+ if(pushCode.indexOf(list[i].code)>-1){
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function renderPushWarning(){
|
|
|
|
+ return getPusgWarning().then(res =>{
|
|
|
|
+ if(res.data.code == '0'){
|
|
|
|
+ const result = res.data.data
|
|
|
|
+ let billMsgList = result.billMsgList || [] //开单合理性提醒
|
|
|
|
+ let highRiskList = result.highRiskList || [] //高危药品、手术
|
|
|
|
+ let criticalValList = result.criticalValList || [] //危急值提醒
|
|
|
|
+ let noteList = result.noteList || [] //检查内容注意事项
|
|
|
|
+ let dubugStr = result.dubugStr || [] //注意调试信息
|
|
|
|
+ $('.moduleItem.tips').append(titleStr('warning'))
|
|
|
|
+ renderBillingPush(billMsgList,'开单合理性提醒')
|
|
|
|
+ renderBillingPush(criticalValList,'危急值提醒')
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function renderBillingPush(list,name){
|
|
|
|
+ if(list.length === 0){
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ let str = ``
|
|
|
|
+ for(let i = 0; i < list.length; i++){
|
|
|
|
+ str += `<div class="billingPushItem"><img class="iconMark" src=${iconMark}>${list[i].msg}</div>`
|
|
|
|
+ }
|
|
|
|
+ let titleStr = titleStr2(name)
|
|
|
|
+ let boxStr = `<div class="moduleBox">
|
|
|
|
+ ${titleStr}
|
|
|
|
+ ${str}
|
|
|
|
+ </div>`
|
|
|
|
+ $(".tips").append(boxStr)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+function renderDiag(diagPush){
|
|
|
|
+ let possibleDiagPush = 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}]
|
|
|
|
+ $('.moduleItem.diag').append(titleStr("diagPush"))
|
|
|
|
+ renderDiagItem(possibleDiagPush,"可能诊断")
|
|
|
|
+ renderDiagItem(firstDiagPush,"初步诊断")
|
|
|
|
+ renderDiagItem(identifyDiagPush,"鉴别诊断")
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function renderDiagItem(list,name){
|
|
|
|
+ if(list.length === 0){
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ let titleStr = titleStr2(name)
|
|
|
|
+ let {shortStr, longStr} = renderItemWrapper(list,5,null,true)
|
|
|
|
+ let boxStr = `<div class="moduleBox">
|
|
|
|
+ ${titleStr}
|
|
|
|
+ ${shortStr}
|
|
|
|
+ ${longStr}
|
|
|
|
+ </div>`
|
|
|
|
+ $(".diag").append(boxStr)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+function renderLis(list,showNum,type,hasInfo){
|
|
|
|
+ if(list.length > 0 && $(".moduleItem.pacs").length > 0){
|
|
|
|
+ moduleNum++
|
|
|
|
+ $('.moduleItem.lis').append(titleStr("lisPush"))
|
|
|
|
+ let {shortStr, longStr} = renderItemWrapper(list,showNum,type,hasInfo)
|
|
|
|
+ $('.moduleItem.lis').append(shortStr).append(longStr)
|
|
|
|
+ $('.moduleItem.lis').css("display","block")
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function renderPacs(list,showNum,type,hasInfo){
|
|
|
|
+ if(list.length > 0 && $(".moduleItem.pacs").length > 0){
|
|
|
|
+ moduleNum++
|
|
|
|
+ $(".moduleItem.pacs").append(titleStr("pacsPush"))
|
|
|
|
+ let {shortStr, longStr} = renderItemWrapper(list,showNum,type,hasInfo)
|
|
|
|
+ $(".moduleItem.pacs").append(shortStr).append(longStr)
|
|
|
|
+ $('.moduleItem.pacs').css("display","block")
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+function renderCheckup(list,showNum,type,hasInfo){
|
|
|
|
+ if(list.length > 0 && $(".moduleItem.vital").length > 0){
|
|
|
|
+ moduleNum++
|
|
|
|
+ $(".moduleItem.vital").append(titleStr("checkupPush"))
|
|
|
|
+ let {shortStr, longStr} = renderItemWrapper(list,showNum,type,hasInfo)
|
|
|
|
+ $(".moduleItem.vital").append(shortStr).append(longStr)
|
|
|
|
+ $('.moduleItem.vital').css("display","block")
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+function renderSymptomPush(list,showNum,type,hasInfo){
|
|
|
|
+ if(list.length > 0 && $(".moduleItem.vital").length > 0){
|
|
|
|
+ moduleNum++
|
|
|
|
+ $(".moduleItem.symptom").append(titleStr('symptomPush'))
|
|
|
|
+ let {shortStr, longStr} = renderItemWrapper(list,showNum,type,hasInfo)
|
|
|
|
+ $(".moduleItem.symptom").append(shortStr).append(longStr)
|
|
|
|
+ $(".moduleItem.symptom").css("display","block")
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+function renderItemWrapper(list,showNum,type,hasInfo){
|
|
|
|
+ let showNum1 = showNum || 5
|
|
|
|
+ let shortStr = '', longStr = ''
|
|
|
|
+
|
|
|
|
+ for(let i = 0; i < list.length; i++){
|
|
|
|
+ if(i <= showNum1-1){
|
|
|
|
+ shortStr += renderPushItem(list[i].name,type,hasInfo)
|
|
|
|
+ }
|
|
|
|
+ longStr += renderPushItem(list[i].name,type,hasInfo)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(showNum1 >= list.length){
|
|
|
|
+ return {
|
|
|
|
+ shortStr:`<div class="shortBox">${shortStr}</div>`,
|
|
|
|
+ longStr:''
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ shortStr += `<span class="showMore">更多 <img class="iconArrowImg" src="${iconArrowDown}"></span>`
|
|
|
|
+ longStr += `<span class="showLess">收起 <img class="iconArrowImg" src="${iconArrowUp}"></span>`
|
|
|
|
+ return {
|
|
|
|
+ shortStr:`<div class="shortBox clearfix">${shortStr}</div>`,
|
|
|
|
+ longStr:`<div class="longBox clearfix">${longStr}</div>`
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function renderPushItem(name,type,hasInfo){
|
|
|
|
+ if(hasInfo){
|
|
|
|
+ str= `<span class="pushItemBox"><span class="pushItemName">${name}</span><img class="infoImg" src="${infoImg}"></span>`
|
|
|
|
+ }else{
|
|
|
|
+ str= `<span class="pushItemBox">${name}</span>`
|
|
|
|
+ }
|
|
|
|
+ return str
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function bindOpenInfo(){
|
|
|
|
+ $(".infoImg").on("mouseenter", function(){
|
|
|
|
+ $(this).attr("src", infoImgOn)
|
|
|
|
+ }).on("mouseleave", function(){
|
|
|
|
+ $(this).attr("src", infoImg)
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function bindSlide(){
|
|
|
|
+ $(".showMore").on("click", function(){
|
|
|
|
+ $(this).parent().parent().find(".longBox").css("display","block")
|
|
|
|
+ $(this).parent().parent().find(".shortBox").css("display","none")
|
|
|
|
+ })
|
|
|
|
+ $(".showLess").on("click", function(){
|
|
|
|
+ $(this).parent().parent().find(".longBox").css("display","none")
|
|
|
|
+ $(this).parent().parent().find(".shortBox").css("display","block")
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function renderModuleWrapper(moduleList){
|
|
|
|
+ let moduleStr = ''
|
|
|
|
+ for(let i = 0; i < moduleList.length; i++){
|
|
|
|
+ // if(moduleList[i].status !='0'){
|
|
|
|
+ moduleStr += `<div class="moduleItem ${moduleList[i].code}" style="display:block"></div>`
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ $(".recommendWrap").append(moduleStr)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function hasTab(tabName,tabList){
|
|
|
|
+ for(let i = 0; i < tabList.length; i++){
|
|
|
|
+ if(tabList[i].name == tabName){
|
|
|
|
+ return tabList[i]
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+}
|
|
function renderTab(tabList){
|
|
function renderTab(tabList){
|
|
- let str = ''
|
|
|
|
|
|
+ let tabStr = ''
|
|
for(let i = 0; i < tabList.length; i++){
|
|
for(let i = 0; i < tabList.length; i++){
|
|
- str += `<span class="${i === 0 ? 'activeTab':''}">${tabList.name}</span>`
|
|
|
|
|
|
+ tabStr += `<span class="tab ${i === 0 ? 'activeTab':''}" data-name="${tabList[i].code}" >${tabList[i].name}<span class="activeLine"></span></span>`
|
|
}
|
|
}
|
|
|
|
+ $(".tabList").append(tabStr)
|
|
|
|
+ getModuleShow(moduleConfig[tabList[0].code])
|
|
|
|
+ bindTabClick()
|
|
}
|
|
}
|
|
-function renderContent(){
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+function titleStr(type){
|
|
|
|
+ let titleStr = ''
|
|
|
|
+ titleStr += `<h4 class="moduleTitle" style="background:${titleConfig[type].background}"><img class="titleIcon" src=${titleConfig[type].icon}>${titleConfig[type].name}</h4>`
|
|
|
|
+ return titleStr
|
|
|
|
+}
|
|
|
|
+function titleStr2(name){
|
|
|
|
+ let titleStr = ''
|
|
|
|
+ titleStr += `<p class="moduleBoxTitle">${name}:</p>`
|
|
|
|
+ return titleStr
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function bindTabClick(){
|
|
|
|
+ $(".tabList .tab").on("click", function(){
|
|
|
|
+ $(".activeTab").removeClass("activeTab")
|
|
|
|
+ $(this).addClass("activeTab")
|
|
|
|
+ const moduleName = $(this).attr("data-name")
|
|
|
|
+ getModuleShow(moduleConfig[moduleName])
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function getModuleShow(moduleClassName){
|
|
|
|
+ if( $(`.${moduleClassName}`).css("display") =="none"){
|
|
|
|
+ $(".moduleWrapper").css("display","none")
|
|
|
|
+ $(`.${moduleClassName}`).css("display","block")
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
$(function(){
|
|
$(function(){
|
|
- getDisclaimer(); //获取免责声明
|
|
|
|
- getVersion(); //获取版本信息
|
|
|
|
|
|
+ // getDisclaimer(); //获取免责声明
|
|
|
|
+ // getVersion(); //获取版本信息
|
|
$(".disclaimerInfo").on("click", function(){
|
|
$(".disclaimerInfo").on("click", function(){
|
|
openNewWin("disclaimer.html")
|
|
openNewWin("disclaimer.html")
|
|
});
|
|
});
|