|
@@ -39,13 +39,6 @@ const { transConf } = require('./util.js');
|
|
|
|
|
|
//静态知识类型: 1:诊断 2.药品 3.化验套餐 4.化验明细 5.辅检 6.手术和操作
|
|
|
|
|
|
-
|
|
|
-// console.log('aaaaaaaaaaa')
|
|
|
-// $(".bodyWrap").on("mousewheel DOMMouseScroll",function(e){
|
|
|
-// // console.log('aaaaaaaaaaa')
|
|
|
-// e.stopPropagation()
|
|
|
-// // e.preventDefault();
|
|
|
-// })
|
|
|
let moduleConfig={
|
|
|
auxiliary:"recommendWrap",
|
|
|
qc:"qcWrap",
|
|
@@ -65,18 +58,8 @@ let treatDisName;
|
|
|
function getMRInfo() {
|
|
|
return post(config.getMr2,{mrId:mrId})
|
|
|
}
|
|
|
-// $('.loading').css("display","block")
|
|
|
$('.empty').css("display","none")
|
|
|
if(mrId){
|
|
|
- // getMRInfo().then(res =>{
|
|
|
- // if(res.data.code == '0'){
|
|
|
- // msg = res.data.data ||{}
|
|
|
- // window.msg = msg
|
|
|
-
|
|
|
- // }
|
|
|
- // }).catch(function (err) {
|
|
|
- // console.log(err);
|
|
|
- // })
|
|
|
Promise.all([getConf(),getMRInfo()]).then(([res1,res2])=>{
|
|
|
const data = res1.data.data&&res1.data.data[0]
|
|
|
msg = res2.data.data ||{}
|
|
@@ -107,7 +90,7 @@ function getConf() {
|
|
|
|
|
|
function getPushInfo() {
|
|
|
return post(config.pushInner, Object.assign({}, msg, {
|
|
|
- featureType: '1,4,5,6,7,8,9,10,12',
|
|
|
+ featureType: '1,4,5,6,7,8,9,10,12,13',
|
|
|
hospitalId: hospitalIdUrl || msg.hospitalId,
|
|
|
ruleType: config.ruleTypeMap['22']
|
|
|
}))
|
|
@@ -263,6 +246,7 @@ function renderPushData(){
|
|
|
let medicinesPush = result.medicines || []
|
|
|
let operationsPush = result.operations ||[]
|
|
|
let treatPush = result.treat&&result.treat[0] ||{}
|
|
|
+ let nursePush = result.nurse || []
|
|
|
treatDisName = treatPush&&treatPush["name"]
|
|
|
let generaTreatPush = treatPush&&treatPush["generaTreat"]
|
|
|
// let lisPush =[{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null}]
|
|
@@ -275,6 +259,7 @@ function renderPushData(){
|
|
|
let symptomNum = $(".moduleItem.symptom").attr("data-num") || 5
|
|
|
let medicinesNum = $(".moduleItem.medicine").attr("data-num") || 5
|
|
|
let operationsNum = $(".moduleItem.operation").attr("data-num") || 5
|
|
|
+ let nurseNum = $(".moduleItem.nurse").attr("data-num") || 5
|
|
|
|
|
|
|
|
|
renderLis(lisPush,lisNum,3,true)
|
|
@@ -286,6 +271,7 @@ function renderPushData(){
|
|
|
renderMedicinesPush(medicinesPush,medicinesNum,2,true)
|
|
|
renderOperationPush(operationsPush,operationsNum,6,true)
|
|
|
rendergeneraTreatPush(generaTreatPush)
|
|
|
+ renderNurse(nursePush, nurseNum, 9, true)
|
|
|
if(hasCompleteTnterface === allInterface){
|
|
|
$('.loading').css("display","none")
|
|
|
if(moduleNum === 0){
|
|
@@ -496,9 +482,17 @@ function renderScale(list,showNum,type,hasInfo){
|
|
|
$('.moduleItem.evaluation').append(shortStr).append(longStr)
|
|
|
$('.moduleItem.evaluation').css("display","block")
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
+function renderNurse(list, showNum, type, hasInfo) {
|
|
|
+ if (list.length > 0 && $(".moduleItem.nurse").length > 0) {
|
|
|
+ moduleNum++
|
|
|
+ $('.moduleItem.nurse').append(titleStr("nursePush"))
|
|
|
+ let {shortStr, longStr} = renderItemWrapper(list, showNum, type, hasInfo)
|
|
|
+ $('.moduleItem.nurse').append(shortStr).append(longStr);
|
|
|
+ $('.moduleItem.nurse').css("display", "block")
|
|
|
+ }
|
|
|
+}
|
|
|
function renderPacs(list,showNum,type,hasInfo){
|
|
|
if(list.length > 0 && $(".moduleItem.pacs").length > 0){
|
|
|
moduleNum++
|
|
@@ -568,9 +562,8 @@ function renderOperationPush(list,showNum,type,hasInfo){
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-function renderItemWrapper(list,showNum,type,hasInfo){
|
|
|
+function renderItemWrapper(list, showNum, type, hasInfo) {
|
|
|
+ console.log(33, type)
|
|
|
let showNum1 = showNum || 5
|
|
|
let shortStr = '', longStr = ''
|
|
|
|