|
@@ -39,6 +39,7 @@ let down = require('./../images/d1.png').replace(/^undefined/g, '')
|
|
|
let ups = require('./../images/d2.png').replace(/^undefined/g, '')
|
|
|
let more = require('./../images/more.png').replace(/^undefined/g, '')
|
|
|
let up = require('./../images/icon-up.png').replace(/^undefined/g, '')
|
|
|
+let go = require('./../images/g1.png').replace(/^undefined/g, '')
|
|
|
let maydiagnoseList = [], hasdiagnoseList = [];
|
|
|
let maydiagnoseType = false, hasdiagnoseType = false;
|
|
|
const $ = require("jquery");
|
|
@@ -321,7 +322,7 @@ function renderPushData() {
|
|
|
let medicinesPush = result.medicines || []
|
|
|
let operationsPush = result.operations || []
|
|
|
let treatPush = result.treat && result.treat[0] || {}
|
|
|
- let nursePush = result.nurse || []
|
|
|
+ // let nursePush = result.nurse || []
|
|
|
treatDisName = treatPush && treatPush["name"]
|
|
|
let generaTreatPush = treatPush && treatPush["generaTreat"]
|
|
|
let lisNum = $(".moduleItem.lis").attr("data-num") || 5
|
|
@@ -342,7 +343,7 @@ function renderPushData() {
|
|
|
renderMedicinesPush(medicinesPush, medicinesNum)
|
|
|
renderOperationPush(operationsPush, operationsNum)
|
|
|
rendergeneraTreatPush(generaTreatPush)
|
|
|
- renderNurse(nursePush, nurseNum)
|
|
|
+ // renderNurse(nursePush, nurseNum)
|
|
|
renderDiagList(diagList)
|
|
|
renderAffListList(AffList)
|
|
|
bindOpenInfo()
|
|
@@ -486,11 +487,14 @@ function renderPushWarning() {
|
|
|
let billMsgList = result.billMsgList || [] //开单合理性提醒
|
|
|
let highRiskList = result.highRiskList || [] //高危药品、手术
|
|
|
let criticalValList = result.criticalValList || [] //危急值提醒
|
|
|
+ let nurseList = result.nurseList || [] //推荐护理
|
|
|
let otherList = result.otherList || [] //其他提醒
|
|
|
renderBillingPush(billMsgList, '开单合理性提醒', 'rationali')
|
|
|
renderBillingPush(highRiskList, '高风险提示', 'highrisk')
|
|
|
renderBillingPush(criticalValList, '危急值提醒', 'crivalue')
|
|
|
//renderBillingPush(noteList,'检查内容注意事项')
|
|
|
+ renderBillingNursePush(nurseList, 5)
|
|
|
+ // renderBillingPush(nurseList, '推荐护理', 'nurse')
|
|
|
renderBillingPush(otherList, '其他提醒', 'otherremind')
|
|
|
//moreInfo()
|
|
|
$(".moduleItem.tips").wrapAll("<div class='tips-cont'></div>");
|
|
@@ -603,7 +607,34 @@ function renderDiag(diagPush) {
|
|
|
renderWarningDiag(warningDiagPush, "警惕", warnNumber)
|
|
|
moreInfo()
|
|
|
}
|
|
|
-
|
|
|
+function renderNursePush(list){
|
|
|
+ let str = ``
|
|
|
+ for (let i = 0; i < list.length; i++) {
|
|
|
+ const item = list[i];
|
|
|
+ str += `<span class="nurseDetail" data-name="${item}">${item}<img class="nurseImg" src="${go}"></span>`
|
|
|
+ }
|
|
|
+ return str
|
|
|
+}
|
|
|
+function renderBillingNursePush(list, showNum) {
|
|
|
+ if (list.length > 0 && $(".moduleItem.nurse").length > 0) {
|
|
|
+ moduleNum++
|
|
|
+ $('.moduleItem.nurse').append(titleStr("nursePush"))
|
|
|
+ let str = ``
|
|
|
+ for (let i = 0; i < list.length; i++) {
|
|
|
+ const item = list[i];
|
|
|
+ str += `<div class="shortBox">
|
|
|
+ <p class="nurseIitle" data-name="${item.orderName}" data-type="${item.type}"><span class="title">【${item.orderName}】${item.msg}</span>${renderNursePush(item.staticList)}</p>
|
|
|
+ </div>`
|
|
|
+ }
|
|
|
+ $('.moduleItem.nurse').append(str)
|
|
|
+ $('.moduleItem.nurse').css("display", "block")
|
|
|
+ $('.nurseDetail').off("click").click(function () {
|
|
|
+ const name = $(this).attr('data-name')
|
|
|
+ const type = $(this).parents(".nurseIitle").attr('data-type')
|
|
|
+ openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&page=1&mrId=${encodeURIComponent(mrId)}&gauge=gauge`)
|
|
|
+ })
|
|
|
+ }
|
|
|
+}
|
|
|
function renderDiagItem(list, name, number) {
|
|
|
if (list.length === 0) {
|
|
|
return
|
|
@@ -659,13 +690,13 @@ function renderDiagList(list, showNum) {
|
|
|
$(".loading").show();
|
|
|
$(".maydiagnose .box[data-index=" + i + "]").find(".moduleCenter").html('')
|
|
|
$(".maydiagnose .box").find(".moduleCenter").css("display", "none")
|
|
|
- $(".maydiagnose .box").find(".box-img").attr('src',down)
|
|
|
+ $(".maydiagnose .box").find(".box-img").attr('src', down)
|
|
|
$(".maydiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display", "block")
|
|
|
- $(e.target).find(".box-img").attr('src',ups)
|
|
|
+ $(e.target).find(".box-img").attr('src', ups)
|
|
|
renderpushByMayDisease(name, i)
|
|
|
} else {
|
|
|
$(".maydiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display", "none")
|
|
|
- $(e.target).find(".box-img").attr('src',down)
|
|
|
+ $(e.target).find(".box-img").attr('src', down)
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -1036,7 +1067,7 @@ function renderHasPush(treatPush, medicinesPush, operationsPush, nursePush) {
|
|
|
renderHasTreatPush(treatPush)
|
|
|
renderHasMedicPush(medicinesPush)
|
|
|
renderHasOperationsPush(operationsPush)
|
|
|
- renderHasNursePush(nursePush,nursenum)
|
|
|
+ renderHasNursePush(nursePush, nursenum)
|
|
|
$('.hasdiagnose .centerBox ul li').click(function () {
|
|
|
var i = $(this).attr('data-index');
|
|
|
if ($(this).hasClass('active')) {
|
|
@@ -1072,12 +1103,12 @@ function renderHasTreatPush(list) {
|
|
|
function renderMayMedicPush(list) {
|
|
|
if (list.length > 0) {
|
|
|
moduleNum++
|
|
|
- let { shortStr, longStr } = renderItemWrapper(list,10)
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
|
$(".maymedicine").append(shortStr).append(longStr)
|
|
|
}
|
|
|
}
|
|
|
function renderHasMedicPush(list) {
|
|
|
- if (list.length > 0 ) {
|
|
|
+ if (list.length > 0) {
|
|
|
moduleNum++
|
|
|
let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
|
$(".hasmedicine").append(shortStr).append(longStr)
|