|
@@ -7,6 +7,7 @@ if (!Promise) {
|
|
|
})
|
|
|
}
|
|
|
const $ = require("jquery");
|
|
|
+require('./util.js');
|
|
|
require('./../css/reset.css');
|
|
|
require('./../css/cdssHorizontal.less');
|
|
|
require('./../css/popup.css');
|
|
@@ -25,6 +26,8 @@ let iconArrowDown = require('./../images/icon_arrow_down.png').replace(/^undefin
|
|
|
let showImg = require('./../images/show2.png').replace(/^undefined/g, '')
|
|
|
let collapseImg = require('./../images/collapse2.png').replace(/^undefined/g, '')
|
|
|
let treatDisName, treatUniqueName
|
|
|
+let maydiagnoseList = [], hasdiagnoseList = []
|
|
|
+let maydiagnoseType = false, hasdiagnoseType = false;
|
|
|
let generalTreatInfo
|
|
|
const { renderFollowUp } = require('./followUp.js');
|
|
|
const { getTcmMr } = require('./tcmiss.js');
|
|
@@ -63,6 +66,17 @@ function getPushInfo() {
|
|
|
}))
|
|
|
|
|
|
}
|
|
|
+function pushByDisease(name, i) {
|
|
|
+ return post(config.pushInner, Object.assign({}, msg, {
|
|
|
+ featureType: '1,4,5,6,7,8,9,10,12,13',
|
|
|
+ hospitalId: hospitalIdUrl || msg.hospitalId,
|
|
|
+ ruleType: config.ruleTypeMap['22'],
|
|
|
+ diseaseName: {
|
|
|
+ name: name,
|
|
|
+ uniqueName: name
|
|
|
+ }
|
|
|
+ }))
|
|
|
+}
|
|
|
function getPusgWarning() {
|
|
|
const indPush = pushMrId ? config.indicationPushCache : config.indicationPush;
|
|
|
return post(indPush, Object.assign({}, msg, { ruleType: '1,2,3,4', mrId: pushMrId || mrId }))
|
|
@@ -106,27 +120,27 @@ function renderPage(pageSet) {
|
|
|
const hasTcm = hasTab("中医辅助", pageSet.sysSetInfo)
|
|
|
|
|
|
//所有模块都未开启配置,显示功能未开启(无tab)
|
|
|
- if(hasAuxiliary.status===0&&hasMedical.status===0&&hasFollowUp.status===0&&hasTcm.status===0){
|
|
|
- const nullTxt = `<div class="empty-box" style="left: -20px;display: block;">
|
|
|
+ if (hasAuxiliary.status === 0 && hasMedical.status === 0 && hasFollowUp.status === 0 && hasTcm.status === 0) {
|
|
|
+ const nullTxt = `<div class="empty-box" style="left: -20px;display: block;">
|
|
|
<img class="emptyImg" src="../images/icon_admin.png" alt="空">
|
|
|
<p class="emptyTxt">功能未开启</p>
|
|
|
</div>`
|
|
|
- $(".recommendWrap").html(nullTxt).show();
|
|
|
- return;
|
|
|
+ $(".recommendWrap").html(nullTxt).show();
|
|
|
+ return;
|
|
|
}
|
|
|
if (hasTcm) {
|
|
|
getTcmMr(mrId, hasTcm);
|
|
|
}
|
|
|
|
|
|
if (hasFollowUp) {
|
|
|
- renderFollowUp(msg, 1)
|
|
|
+ renderFollowUp(msg, 1)
|
|
|
}
|
|
|
const planDetail = hasAuxiliary.planDetails;
|
|
|
- const configs = planDetail.filter((it)=>it.status!==0)||[];
|
|
|
- if(!configs[0]){ //没有开启辅助信息各项配置
|
|
|
- $('.empty-box,.leftWrapper').hide();
|
|
|
- $('.recommendWrap .empty-right').show();
|
|
|
- return;
|
|
|
+ const configs = planDetail.filter((it) => it.status !== 0) || [];
|
|
|
+ if (!configs[0]) { //没有开启辅助信息各项配置
|
|
|
+ $('.empty-box,.leftWrapper').hide();
|
|
|
+ $('.recommendWrap .empty-right').show();
|
|
|
+ return;
|
|
|
}
|
|
|
//有数据再设置宽度
|
|
|
//setWidth()
|
|
@@ -160,7 +174,11 @@ function renderTab(tabList) {
|
|
|
TabNum++
|
|
|
tabStr += `<div class="tab" data-name="${tabList[i].code}" ><span class="tabName">${tabList[i].name}</span></div>`
|
|
|
}
|
|
|
-
|
|
|
+ if (tabList[i].code == 'maydiagnose') {
|
|
|
+ maydiagnoseList = moduleList[i].planDetails
|
|
|
+ } else if (tabList[i].code == 'hasdiagnose') {
|
|
|
+ hasdiagnoseList = tabList[i].planDetails
|
|
|
+ }
|
|
|
}
|
|
|
$(".tabList").append(tabStr)
|
|
|
$(".tabList .tab").eq(0).addClass("activeTab")
|
|
@@ -192,6 +210,28 @@ function renderModuleWrapper(moduleList) {
|
|
|
} else if (moduleList[i].code == 'critical') {
|
|
|
moduleStr += `<div class="moduleItem warning" data-num="${moduleList[i].number}" style="display:none"><span class="moduleItemTitBox"></span></div>`
|
|
|
// moduleStr += `<div class="moduleItem tips" data-num="${moduleList[i].number}" style="display:none"><span class="moduleItemTitBox"></span></div>`
|
|
|
+ } else if (moduleList[i].code == 'maydiagnose') {
|
|
|
+ maydiagnoseList = moduleList[i].planDetails
|
|
|
+ moduleStr += `<div class="moduleItem ${moduleList[i].code}" data-num="${moduleList[i].number}" style="display:none"><span class="moduleItemTitBox"></span></div>`
|
|
|
+ let arr = []
|
|
|
+ for (let j = 0; j < moduleList[i].planDetails.length; j++) {
|
|
|
+ let item = moduleList[i].planDetails[j]
|
|
|
+ arr.push(item.status)
|
|
|
+ }
|
|
|
+ if (arr.indexOf(1) == -1) {
|
|
|
+ maydiagnoseType = true
|
|
|
+ }
|
|
|
+ } else if (moduleList[i].code == 'hasdiagnose') {
|
|
|
+ hasdiagnoseList = moduleList[i].planDetails
|
|
|
+ moduleStr += `<div class="moduleItem ${moduleList[i].code}" data-num="${moduleList[i].number}" style="display:none"><span class="moduleItemTitBox"></span></div>`
|
|
|
+ let arr = []
|
|
|
+ for (let j = 0; j < moduleList[i].planDetails.length; j++) {
|
|
|
+ let item = moduleList[i].planDetails[j]
|
|
|
+ arr.push(item.status)
|
|
|
+ }
|
|
|
+ if (arr.indexOf(1) == -1) {
|
|
|
+ hasdiagnoseType = true
|
|
|
+ }
|
|
|
} else {
|
|
|
moduleStr += `<div class="moduleItem ${moduleList[i].code}" data-num="${moduleList[i].number}" style="display:none"><span class="moduleItemTitBox"></span></div>`
|
|
|
}
|
|
@@ -206,7 +246,7 @@ function renderModuleWrapper(moduleList) {
|
|
|
|
|
|
}
|
|
|
function isNeedPush(list) {
|
|
|
- let pushCode = ['critical',"diag", "lis", "pacs", "symptom", "vital","treat","medicines",'evaluation','general','medicine','operation','nurse']
|
|
|
+ let pushCode = ['critical', "diag", "lis", "pacs", "symptom", "vital", "treat", "medicines", 'evaluation', 'general', 'medicine', 'operation', 'nurse']
|
|
|
for (let i = 0; i < list.length; i++) {
|
|
|
if (pushCode.indexOf(list[i].code) > -1) {
|
|
|
if (list[i].status == "1") {
|
|
@@ -277,8 +317,8 @@ function renderCaseWrite() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }).catch(()=>{
|
|
|
- $(".loading").hide()
|
|
|
+ }).catch(() => {
|
|
|
+ $(".loading").hide()
|
|
|
})
|
|
|
}
|
|
|
function renderPushData() {
|
|
@@ -312,32 +352,36 @@ function renderPushData() {
|
|
|
let medicinesNum = $(".moduleItem.medicine").attr("data-num") || 5
|
|
|
let operationsNum = $(".moduleItem.operation").attr("data-num") || 5
|
|
|
let nurseNum = $(".moduleItem.nurse").attr("data-num") || 5
|
|
|
-
|
|
|
+ let diagList = result.clickPosDis || [] //可能诊断
|
|
|
+ let AffList = result.clickAffDis || [] //已诊断疾病
|
|
|
renderLis(lisPush, lisNum)
|
|
|
renderScale(scalePush, scaleNum)
|
|
|
renderPacs(pacsPush, pacsNum)
|
|
|
renderCheckup(checkupPush, checkupNum)
|
|
|
renderSymptomPush(symptomPush, symptomNum)
|
|
|
renderDiag(diagPush)
|
|
|
+ renderDiagList(diagList)
|
|
|
+ renderAffListList(AffList)
|
|
|
if (medicinesPush.length > 0 || operationsPush.length > 0 || generaTreatPush || nursePush.length > 0) {
|
|
|
let str = `<img class="treatIcon" src = ${titleConfigH["treat"].icon} /><span>${titleConfigH["treat"].name}</span>`
|
|
|
$(".rightBoxTitle").append(str)
|
|
|
renderDisName()
|
|
|
$(".empty-box").hide();
|
|
|
$(".rightWrapper").css("display", "block")
|
|
|
- if($(".leftBox .moduleItem:visible").length===0){ //左侧没有数据,右侧有数据时,右侧往左移
|
|
|
- $(".leftWrapper").css({"width":'0','padding':'0'});
|
|
|
- $(".rightWrapper").css("width",'100%');
|
|
|
+ if ($(".leftBox .moduleItem:visible").length === 0) { //左侧没有数据,右侧有数据时,右侧往左移
|
|
|
+ $(".leftWrapper").css({ "width": '0', 'padding': '0' });
|
|
|
+ $(".rightWrapper").css("width", '100%');
|
|
|
}
|
|
|
- } else if($(".leftWrapper .moduleItem:visible").length!==0) {console.log(2)
|
|
|
+ } else if ($(".leftWrapper .moduleItem:visible").length !== 0) {
|
|
|
+ console.log(2)
|
|
|
$(".empty-box").hide();
|
|
|
$(".leftWrapper").css({
|
|
|
borderRight: "0px",
|
|
|
width: "100%"
|
|
|
})
|
|
|
}
|
|
|
- if ($(".moduleItem.general,.moduleItem.medicine,.moduleItem.operation,.moduleItem.nurse").length === 0&&$(".leftWrapper .moduleItem:visible").length!==0) {
|
|
|
- console.log(3)
|
|
|
+ if ($(".moduleItem.general,.moduleItem.medicine,.moduleItem.operation,.moduleItem.nurse").length === 0 && $(".leftWrapper .moduleItem:visible").length !== 0) {
|
|
|
+ console.log(3)
|
|
|
$(".rightWrapper").css("display", "none")
|
|
|
$(".empty-box").hide();
|
|
|
$(".leftWrapper").css({
|
|
@@ -345,7 +389,7 @@ function renderPushData() {
|
|
|
width: "100%"
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+ console.log(123);
|
|
|
rendergeneraTreatPush(generaTreatPush)
|
|
|
renderMedicinesPush(medicinesPush, medicinesNum)
|
|
|
renderOperationPush(operationsPush, operationsNum)
|
|
@@ -355,24 +399,593 @@ function renderPushData() {
|
|
|
moreInfo()
|
|
|
empty()
|
|
|
}
|
|
|
- }).catch(()=>{
|
|
|
- $(".loading").hide()
|
|
|
+ }).catch(() => {
|
|
|
+ $(".loading").hide()
|
|
|
})
|
|
|
}
|
|
|
-function empty(){ //显示空状态
|
|
|
- setTimeout(function(){console.log(!$(".rightWrapper .rightBoxTitle").html(),$(".leftWrapper .moduleItem:visible").length===0)
|
|
|
- if((!$(".rightWrapper .rightBoxTitle").html())&&$(".leftWrapper .moduleItem:visible").length!==0){console.log(4)
|
|
|
- $(".leftWrapper").css({
|
|
|
- borderRight: "0px",
|
|
|
- width: "100%"
|
|
|
- })
|
|
|
+function renderpushByMayDisease(name, i, inx) {
|
|
|
+ return pushByDisease(name, i).then(res => {
|
|
|
+ $(".loading").hide();
|
|
|
+ hasCompleteTnterface++
|
|
|
+ if (res.data.code == "0") {
|
|
|
+ const result = res.data.data
|
|
|
+ let symptomPush = result.symptom || []
|
|
|
+ let vitalPush = result.vital || []
|
|
|
+ let lisPush = result.lis || []
|
|
|
+ let pacsPush = result.pacs || []
|
|
|
+ let scalePush = result.scale || []
|
|
|
+ let disPush = result.dis['大数据推送诊断'] || {}
|
|
|
+ let treatPush = result.treat || {}
|
|
|
+ let medicinesPush = result.medicines || {}
|
|
|
+ let operationsPush = result.operations || {}
|
|
|
+ let nursePush = result.nurse || {}
|
|
|
+ if (symptomPush.length == 0 && vitalPush.length == 0 && lisPush.length == 0 && pacsPush.length == 0 && scalePush.length == 0 && disPush.length == 0 && treatPush.length == 0 && medicinesPush.length == 0 && operationsPush.length == 0 && nursePush.length == 0) {
|
|
|
+ $.toast('toast3', '', 3000, '.maydiagnose', i);
|
|
|
+ } else if (maydiagnoseType) {
|
|
|
+ $.toast('toast3', '', 3000, '.maydiagnose', i);
|
|
|
+ } else {
|
|
|
+ renderMaySymptomPush(symptomPush, inx)
|
|
|
+ renderMayVitalPush(vitalPush, inx)
|
|
|
+ renderMayLisPush(lisPush, inx)
|
|
|
+ renderMayPacsPush(pacsPush, inx)
|
|
|
+ renderMayScalePush(scalePush, inx)
|
|
|
+ renderMayDisPush(disPush, inx)
|
|
|
+ renderMayPush(treatPush, medicinesPush, operationsPush, nursePush, inx)
|
|
|
+ bindOpenInfo()
|
|
|
+ moreInfo()
|
|
|
+ bindSlide();
|
|
|
}
|
|
|
- if($(".tabList .tab:first-child").is(".activeTab")&&$(".empty-right:visible").length===0&&$(".moduleItem:visible").length===0){
|
|
|
- $(".empty-box,.leftWrapper").hide();
|
|
|
- $(".empty-null").show();
|
|
|
+ }
|
|
|
+ empty(); //判断是否显示空状态
|
|
|
+ })
|
|
|
+}
|
|
|
+function renderpushByHasDisease(name, i, inx) {
|
|
|
+ return pushByDisease(name, i).then(res => {
|
|
|
+ $(".loading").hide();
|
|
|
+ hasCompleteTnterface++
|
|
|
+ if (res.data.code == "0") {
|
|
|
+ const result = res.data.data
|
|
|
+ let symptomPush = result.symptom || []
|
|
|
+ let vitalPush = result.vital || []
|
|
|
+ let lisPush = result.lis || []
|
|
|
+ let pacsPush = result.pacs || []
|
|
|
+ let scalePush = result.scale || []
|
|
|
+ let disPush = result.dis['鉴别诊断'] || {}
|
|
|
+ let treatPush = result.treat || {}
|
|
|
+ let medicinesPush = result.medicines || {}
|
|
|
+ let operationsPush = result.operations || {}
|
|
|
+ let nursePush = result.nurse || {}
|
|
|
+ if (symptomPush.length == 0 && vitalPush.length == 0 && lisPush.length == 0 && pacsPush.length == 0 && scalePush.length == 0 && disPush.length == 0 && treatPush.length == 0 && medicinesPush.length == 0 && operationsPush.length == 0 && nursePush.length == 0) {
|
|
|
+ $.toast('toast3', '', 3000, '.hasdiagnose', i);
|
|
|
+ } else if (hasdiagnoseType) {
|
|
|
+ $.toast('toast3', '', 3000, '.hasdiagnose', i);
|
|
|
+ } else {
|
|
|
+ renderHasSymptomPush(symptomPush, inx)
|
|
|
+ renderHasVitalPush(vitalPush, inx)
|
|
|
+ renderHasLisPush(lisPush, inx)
|
|
|
+ renderHasPacsPush(pacsPush, inx)
|
|
|
+ renderHasScalePush(scalePush, inx)
|
|
|
+ renderHasDisPush(disPush, inx)
|
|
|
+ renderHasPush(treatPush, medicinesPush, operationsPush, nursePush, inx)
|
|
|
+ bindOpenInfo()
|
|
|
+ moreInfo()
|
|
|
+ bindSlide();
|
|
|
}
|
|
|
- },300);
|
|
|
+
|
|
|
+ }
|
|
|
+ empty(); //判断是否显示空状态
|
|
|
+ })
|
|
|
+}
|
|
|
+function empty() { //显示空状态
|
|
|
+ setTimeout(function () {
|
|
|
+ if ((!$(".rightWrapper .rightBoxTitle").html()) && $(".leftWrapper .moduleItem:visible").length !== 0) {
|
|
|
+ console.log(4)
|
|
|
+ $(".leftWrapper").css({
|
|
|
+ borderRight: "0px",
|
|
|
+ width: "100%"
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if ($(".tabList .tab:first-child").is(".activeTab") && $(".empty-right:visible").length === 0 && $(".moduleItem:visible").length === 0) {
|
|
|
+ $(".empty-box,.leftWrapper").hide();
|
|
|
+ $(".empty-null").show();
|
|
|
+ }
|
|
|
+ }, 300);
|
|
|
+}
|
|
|
+function renderDiagList(list, showNum) {
|
|
|
+ if (list.length === 0) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ $('.moduleItem.maydiagnose .moduleItemTitBox').append(titleStr("maydiagnosePush"))
|
|
|
+ let str = ``
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
|
+ let boxStr = `<div class="moduleBox">
|
|
|
+ ${str}
|
|
|
+ ${shortStr}
|
|
|
+ </div>`
|
|
|
+ $(".moduleItem.maydiagnose").append(boxStr)
|
|
|
+ $(".moduleItem.maydiagnose").append("<div class='item' data-index='1'></div>")
|
|
|
+ $(".moduleItem.maydiagnose.moduleItemTitBox").append(renderLongStr(name, longStr, "left"))
|
|
|
+ $('.moduleItem.maydiagnose').css("display", "block")
|
|
|
+
|
|
|
+ $('.maydiagnose .pushItemBox').on("click", function (e) {
|
|
|
+ e.preventDefault()
|
|
|
+ const name = $(this).attr('data-name');
|
|
|
+ const i = $(this).attr('data-index');
|
|
|
+ if ($(this).hasClass('active')) {
|
|
|
+ $(this).removeClass('active');
|
|
|
+ } else {
|
|
|
+ $(this).addClass('active').siblings().removeClass('active');
|
|
|
+ }
|
|
|
+ const index = $(this).parent().parent().next().attr('data-i')
|
|
|
+ const showList = $(".maydiagnose .item").css("display")
|
|
|
+ if (showList == "none" || index != i) {
|
|
|
+ $(".loading").show();
|
|
|
+ $(".maydiagnose .item").html('')
|
|
|
+ $(".maydiagnose .item").css("display", "none")
|
|
|
+ $(this).parent().parent().next().css("display", "block")
|
|
|
+ $(this).parent().parent().next().attr('data-i', i)
|
|
|
+ renderpushByMayDisease(name, i, 1)
|
|
|
+ } else {
|
|
|
+ $(this).find(".item").css("display", "block")
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+function renderAffListList(list, showNum) {
|
|
|
+ if (list.length === 0) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ $('.moduleItem.hasdiagnose .moduleItemTitBox').append(titleStr("hasdiagnosePush"))
|
|
|
+ let str = ``
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
|
+ let boxStr = `<div class="moduleBox">
|
|
|
+ ${str}
|
|
|
+ ${shortStr}
|
|
|
+ </div>`
|
|
|
+ $(".moduleItem.hasdiagnose").append(boxStr)
|
|
|
+ $(".moduleItem.hasdiagnose").append("<div class='item' data-index='2'></div>")
|
|
|
+ $(".moduleItem.hasdiagnose.moduleItemTitBox").append(renderLongStr(name, longStr, "left"))
|
|
|
+ $('.moduleItem.hasdiagnose').css("display", "block")
|
|
|
+
|
|
|
+ $('.hasdiagnose .pushItemBox').on("click", function (e) {
|
|
|
+ e.preventDefault()
|
|
|
+ const name = $(this).attr('data-name');
|
|
|
+ const i = $(this).attr('data-index');
|
|
|
+ if ($(this).hasClass('active')) {
|
|
|
+ $(this).removeClass('active');
|
|
|
+ } else {
|
|
|
+ $(this).addClass('active').siblings().removeClass('active');
|
|
|
+ }
|
|
|
+ const index = $(this).parent().parent().next().attr('data-i')
|
|
|
+ const showList = $(".hasdiagnose .item").css("display")
|
|
|
+ if (showList == "none" || index != i) {
|
|
|
+ $(".loading").show();
|
|
|
+ $(".hasdiagnose .item").html('')
|
|
|
+ $(".hasdiagnose .item").css("display", "none")
|
|
|
+ $(this).parent().parent().next().css("display", "block")
|
|
|
+ $(this).parent().parent().next().attr('data-i', i)
|
|
|
+ renderpushByHasDisease(name, i, 2)
|
|
|
+ } else {
|
|
|
+ $(this).find(".item").css("display", "block")
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+function renderMayVitalPush(list, inx) {
|
|
|
+ let num, state
|
|
|
+ for (let i = 0; i < maydiagnoseList.length; i++) {
|
|
|
+ const item = maydiagnoseList[i];
|
|
|
+ if (item.code == 'mayvital') {
|
|
|
+ num = item.number
|
|
|
+ state = item.status
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (list.length > 0 && state != 0) {
|
|
|
+ moduleNum++
|
|
|
+ let { shortStr } = renderItemWrapper(list, num, '体征')
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "]").append("<div class='mayvital'></div>")
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .mayvital").append(shortStr)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .mayvital").append(renderLongStr(titleConfigH["symptomPush"].name, longStr, titleConfigH["symptomPush"].location))
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .mayvital").css("display", "block")
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+function renderHasVitalPush(list, inx) {
|
|
|
+ let num, state
|
|
|
+ for (let i = 0; i < hasdiagnoseList.length; i++) {
|
|
|
+ const item = hasdiagnoseList[i];
|
|
|
+ if (item.code == 'hasvital') {
|
|
|
+ num = item.number
|
|
|
+ state = item.status
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (list.length > 0 && state != 0) {
|
|
|
+ moduleNum++
|
|
|
+ let { shortStr } = renderItemWrapper(list, num, '体征')
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "]").append("<div class='hasvital'></div>")
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .hasvital").append(shortStr)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .hasvital").append(renderLongStr(titleConfigH["symptomPush"].name, longStr, titleConfigH["symptomPush"].location))
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .hasvital").css("display", "block")
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+function renderMaySymptomPush(list, inx) {
|
|
|
+ let num, state
|
|
|
+ for (let i = 0; i < maydiagnoseList.length; i++) {
|
|
|
+ const item = maydiagnoseList[i];
|
|
|
+ if (item.code == 'maysymptom') {
|
|
|
+ num = item.number
|
|
|
+ state = item.status
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (list.length > 0 && state != 0) {
|
|
|
+ console.log(778);
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, num, '症状')
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "]").append("<div class='maysymptom'></div>")
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .maysymptom").append(shortStr)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .maysymptom").append(renderLongStr(titleConfigH["symptomPush"].name, longStr, titleConfigH["symptomPush"].location))
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .maysymptom").css("display", "block")
|
|
|
+ }
|
|
|
+}
|
|
|
+function renderHasSymptomPush(list, inx) {
|
|
|
+ let num, state
|
|
|
+ for (let i = 0; i < hasdiagnoseList.length; i++) {
|
|
|
+ const item = hasdiagnoseList[i];
|
|
|
+ if (item.code == 'hassymptom') {
|
|
|
+ num = item.number
|
|
|
+ state = item.status
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (list.length > 0 && state != 0) {
|
|
|
+ moduleNum++
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, num, '症状')
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "]").append("<div class='hassymptom'></div>")
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .hassymptom").append(shortStr)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .hassymptom").append(renderLongStr(titleConfigH["symptomPush"].name, longStr, titleConfigH["symptomPush"].location))
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .hassymptom").css("display", "block")
|
|
|
+ }
|
|
|
+}
|
|
|
+function renderMayLisPush(list, inx) {
|
|
|
+ let num, state
|
|
|
+ for (let i = 0; i < maydiagnoseList.length; i++) {
|
|
|
+ const item = maydiagnoseList[i];
|
|
|
+ if (item.code == 'maylis') {
|
|
|
+ num = item.number
|
|
|
+ state = item.status
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (list.length > 0 && state != 0) {
|
|
|
+ moduleNum++
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, num, '推荐检验')
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "]").append("<div class='maylis'></div>")
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .maylis").append(shortStr)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .maylis").append(renderLongStr(titleConfigH["lisPush"].name, longStr, titleConfigH["lisPush"].location))
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .maylis").css("display", "block")
|
|
|
+ }
|
|
|
}
|
|
|
+function renderHasLisPush(list, inx) {
|
|
|
+ let num, state
|
|
|
+ for (let i = 0; i < hasdiagnoseList.length; i++) {
|
|
|
+ const item = hasdiagnoseList[i];
|
|
|
+ if (item.code == 'maylis') {
|
|
|
+ num = item.number
|
|
|
+ state = item.status
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (list.length > 0 && state != 0) {
|
|
|
+ moduleNum++
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, num, '推荐检验')
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "]").append("<div class='haslis'></div>")
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .haslis").append(shortStr)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .haslis").append(renderLongStr(titleConfigH["lisPush"].name, longStr, titleConfigH["lisPush"].location))
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .haslis").css("display", "block")
|
|
|
+ }
|
|
|
+}
|
|
|
+function renderMayPacsPush(list, inx) {
|
|
|
+ let num, state
|
|
|
+ for (let i = 0; i < maydiagnoseList.length; i++) {
|
|
|
+ const item = maydiagnoseList[i];
|
|
|
+ if (item.code == 'maypacs') {
|
|
|
+ num = item.number
|
|
|
+ state = item.status
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (list.length > 0 && state != 0) {
|
|
|
+ moduleNum++
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, num, '推荐检查')
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "]").append("<div class='maypacs'></div>")
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .maypacs").append(shortStr)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .maypacs").append(renderLongStr(titleConfigH["pacsPush"].name, longStr, titleConfigH["pacsPush"].location))
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .maypacs").css("display", "block")
|
|
|
+ }
|
|
|
+}
|
|
|
+function renderHasPacsPush(list, inx) {
|
|
|
+ let num, state
|
|
|
+ for (let i = 0; i < hasdiagnoseList.length; i++) {
|
|
|
+ const item = hasdiagnoseList[i];
|
|
|
+ if (item.code == 'haspacs') {
|
|
|
+ num = item.number
|
|
|
+ state = item.status
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (list.length > 0 && state != 0) {
|
|
|
+ moduleNum++
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, num, '推荐检查')
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "]").append("<div class='haspacs'></div>")
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .haspacs").append(shortStr)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .haspacs").append(renderLongStr(titleConfigH["pacsPush"].name, longStr, titleConfigH["pacsPush"].location))
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .haspacs").css("display", "block")
|
|
|
+ }
|
|
|
+}
|
|
|
+function renderMayScalePush(list, inx) {
|
|
|
+ let num, state
|
|
|
+ for (let i = 0; i < maydiagnoseList.length; i++) {
|
|
|
+ const item = maydiagnoseList[i];
|
|
|
+ if (item.code == 'mayevaluation') {
|
|
|
+ num = item.number
|
|
|
+ state = item.status
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (list.length > 0 && state != 0) {
|
|
|
+ moduleNum++
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, num, '推荐量表')
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "]").append("<div class='mayevaluation'></div>")
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .mayevaluation").append(shortStr)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .mayevaluation").append(renderLongStr(titleConfigH["scalePush"].name, longStr, titleConfigH["scalePush"].location))
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .mayevaluation").css("display", "block")
|
|
|
+ }
|
|
|
+}
|
|
|
+function renderHasScalePush(list, inx) {
|
|
|
+ let num, state
|
|
|
+ for (let i = 0; i < hasdiagnoseList.length; i++) {
|
|
|
+ const item = hasdiagnoseList[i];
|
|
|
+ if (item.code == 'hasevaluation') {
|
|
|
+ num = item.number
|
|
|
+ state = item.status
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (list.length > 0 && state != 0) {
|
|
|
+ moduleNum++
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, num, '推荐量表')
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "]").append("<div class='hasevaluation'></div>")
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .hasevaluation").append(shortStr)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .hasevaluation").append(renderLongStr(titleConfigH["scalePush"].name, longStr, titleConfigH["scalePush"].location))
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .hasevaluation").css("display", "block")
|
|
|
+ }
|
|
|
+}
|
|
|
+function renderMayDisPush(list, inx) {
|
|
|
+ let num, state
|
|
|
+ for (let i = 0; i < maydiagnoseList.length; i++) {
|
|
|
+ const item = maydiagnoseList[i];
|
|
|
+ if (item.code == 'mayantidias') {
|
|
|
+ num = item.number
|
|
|
+ state = item.status
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (list.length > 0 && state != 0) {
|
|
|
+ moduleNum++
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, num, '鉴别诊断')
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "]").append("<div class='mayantidias'></div>")
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .mayantidias").append(shortStr)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .mayantidias").append(renderLongStr(titleConfigH["scalePush"].name, longStr, titleConfigH["scalePush"].location))
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .mayantidias").css("display", "block")
|
|
|
+ }
|
|
|
+}
|
|
|
+function renderHasDisPush(list, inx) {
|
|
|
+ let num, state
|
|
|
+ for (let i = 0; i < hasdiagnoseList.length; i++) {
|
|
|
+ const item = hasdiagnoseList[i];
|
|
|
+ if (item.code == 'hasantidias') {
|
|
|
+ num = item.number
|
|
|
+ state = item.status
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (list.length > 0 && state != 0) {
|
|
|
+ moduleNum++
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, num, '鉴别诊断')
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "]").append("<div class='hasantidias'></div>")
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .hasantidias").append(shortStr)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .hasantidias").append(renderLongStr(titleConfigH["scalePush"].name, longStr, titleConfigH["scalePush"].location))
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .hasantidias").css("display", "block")
|
|
|
+ }
|
|
|
+}
|
|
|
+function renderMayPush(treatPush, medicinesPush, operationsPush, nursePush, inx) {
|
|
|
+ $(".maydiagnose .item[data-index=" + inx + "]").append("<div class='centerBox'></div>")
|
|
|
+ let str = `<ul>
|
|
|
+ ${treatPush.length > 0 ? `<li class="general">一般治疗</li>` : ''}
|
|
|
+ ${medicinesPush.length > 0 ? `<li class="medicine">推荐用药</li>` : ''}
|
|
|
+ ${operationsPush.length > 0 ? `<li class="operation">推荐手术/操作</li>` : ''}
|
|
|
+ ${nursePush.length > 0 ? `<li class="nurse">推荐护理</li>` : ''}
|
|
|
+ </ul>
|
|
|
+ <div class="centerBoxItem">
|
|
|
+ ${treatPush.length > 0 ? `<div class="checkBox generalItem maygeneral" data-index="0"></div>` : ''}
|
|
|
+ ${medicinesPush.length > 0 ? `<div class="checkBox medicineItem maymedicine" data-index="1"></div>` : ''}
|
|
|
+ ${operationsPush.length > 0 ? `<div class="checkBox operationItem mayoperation" data-index="2"></div>` : ''}
|
|
|
+ ${nursePush.length > 0 ? `<div class="checkBox nurseItem maynurse" data-index="3"></div>` : ''}
|
|
|
+ </div>`
|
|
|
+ $(".maydiagnose .item[data-index=" + inx + "] .centerBox").append(str)
|
|
|
+ renderMayTreatPush(treatPush, inx)
|
|
|
+ renderMayMedicinesPush(medicinesPush, inx)
|
|
|
+ renderMayOperationsPush(operationsPush, inx)
|
|
|
+ renderMayNursePush(nursePush, inx)
|
|
|
+ $(".maydiagnose .item[data-index=" + inx + "] .centerBox ul li").click(function () {
|
|
|
+ var i = $(this).index();
|
|
|
+ if ($(this).hasClass('actives')) {
|
|
|
+ $(this).removeClass('actives');
|
|
|
+ $(".maydiagnose .item[data-index=" + inx + "] .checkBox[data-index=" + i + "]").removeClass('onshow');
|
|
|
+ } else {
|
|
|
+ $(this).addClass('actives').siblings().removeClass('actives');
|
|
|
+ $(".maydiagnose .item[data-index=" + inx + "] .checkBox[data-index=" + i + "]").addClass('onshow').siblings().removeClass('onshow');
|
|
|
+ }
|
|
|
+
|
|
|
+ });
|
|
|
+}
|
|
|
+function renderHasPush(treatPush, medicinesPush, operationsPush, nursePush, inx) {
|
|
|
+ $(".hasdiagnose .item[data-index=" + inx + "]").append("<div class='centerBox'></div>")
|
|
|
+ let str = `<ul>
|
|
|
+ ${treatPush.length > 0 ? `<li class="general">一般治疗</li>` : ''}
|
|
|
+ ${medicinesPush.length > 0 ? `<li class="medicine">推荐用药</li>` : ''}
|
|
|
+ ${operationsPush.length > 0 ? `<li class="operation">推荐手术/操作</li>` : ''}
|
|
|
+ ${nursePush.length > 0 ? `<li class="nurse">推荐护理</li>` : ''}
|
|
|
+ </ul>
|
|
|
+ <div class="centerBoxItem">
|
|
|
+ ${treatPush.length > 0 ? `<div class="checkBox generalItem hasgeneral" data-index="0"></div>` : ''}
|
|
|
+ ${medicinesPush.length > 0 ? `<div class="checkBox medicineItem hasmedicine" data-index="1"></div>` : ''}
|
|
|
+ ${operationsPush.length > 0 ? `<div class="checkBox operationItem hasoperation" data-index="2"></div>` : ''}
|
|
|
+ ${nursePush.length > 0 ? `<div class="checkBox nurseItem hasnurse" data-index="3"></div>` : ''}
|
|
|
+ </div>`
|
|
|
+ $(".hasdiagnose .item[data-index=" + inx + "] .centerBox").append(str)
|
|
|
+ renderHasTreatPush(treatPush, inx)
|
|
|
+ renderHasMedicinesPush(medicinesPush, inx)
|
|
|
+ renderHasOperationsPush(operationsPush, inx)
|
|
|
+ renderHasNursePush(nursePush, inx)
|
|
|
+ $(".hasdiagnose .item[data-index=" + inx + "] .centerBox ul li").click(function () {
|
|
|
+ var i = $(this).index();
|
|
|
+ console.log(123);
|
|
|
+ if ($(this).hasClass('actives')) {
|
|
|
+ $(this).removeClass('actives');
|
|
|
+ $(".hasdiagnose .item[data-index=" + inx + "] .checkBox[data-index=" + i + "]").removeClass('onshow');
|
|
|
+ } else {
|
|
|
+ $(this).addClass('actives').siblings().removeClass('actives');
|
|
|
+ $(".hasdiagnose .item[data-index=" + inx + "] .checkBox[data-index=" + i + "]").addClass('onshow').siblings().removeClass('onshow');
|
|
|
+ console.log(i);
|
|
|
+ }
|
|
|
+
|
|
|
+ });
|
|
|
+}
|
|
|
+function renderMayTreatPush(list, inx) {
|
|
|
+ let num, state
|
|
|
+ for (let i = 0; i < maydiagnoseList.length; i++) {
|
|
|
+ const item = maydiagnoseList[i];
|
|
|
+ if (item.code == 'maygeneral') {
|
|
|
+ num = item.number
|
|
|
+ state = item.status
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (list.length > 0 && state != 0) {
|
|
|
+ let str = ''
|
|
|
+ for (let i = 0; i < list.length; i++) {
|
|
|
+ const item = list[i];
|
|
|
+ str = `${item.generaTreat}`
|
|
|
+ }
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .maygeneral").append(str)
|
|
|
+ }
|
|
|
+}
|
|
|
+function renderHasTreatPush(list, inx) {
|
|
|
+ let num, state
|
|
|
+ for (let i = 0; i < hasdiagnoseList.length; i++) {
|
|
|
+ const item = hasdiagnoseList[i];
|
|
|
+ if (item.code == 'hasgeneral') {
|
|
|
+ num = item.number
|
|
|
+ state = item.status
|
|
|
+ }
|
|
|
+ }
|
|
|
+ let str = ''
|
|
|
+ if (list.length > 0 && state != 0) {
|
|
|
+ for (let i = 0; i < list.length; i++) {
|
|
|
+ const item = list[i];
|
|
|
+ str = `${item.generaTreat}`
|
|
|
+ }
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .hasgeneral").append(str)
|
|
|
+ }
|
|
|
+}
|
|
|
+function renderMayMedicinesPush(list, inx) {
|
|
|
+ let num, state
|
|
|
+ for (let i = 0; i < maydiagnoseList.length; i++) {
|
|
|
+ const item = maydiagnoseList[i];
|
|
|
+ if (item.code == 'maymedicine') {
|
|
|
+ num = item.number
|
|
|
+ state = item.status
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (list.length > 0 && state != 0) {
|
|
|
+ moduleNum++
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, num)
|
|
|
+ console.log($(".moduleItem .item[data-index=" + inx + "] .maymedicine"));
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .maymedicine").append(shortStr)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .maymedicine").append(renderLongStr(titleConfigH["drugPush"].name, longStr, titleConfigH["drugPush"].location))
|
|
|
+ }
|
|
|
+}
|
|
|
+function renderHasMedicinesPush(list, inx) {
|
|
|
+ let num, state
|
|
|
+ for (let i = 0; i < hasdiagnoseList.length; i++) {
|
|
|
+ const item = hasdiagnoseList[i];
|
|
|
+ if (item.code == 'hasmedicine') {
|
|
|
+ num = item.number
|
|
|
+ state = item.status
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (list.length > 0 && state != 0) {
|
|
|
+ moduleNum++
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, num)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .hasmedicine").append(shortStr)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .hasmedicine").append(renderLongStr(titleConfigH["drugPush"].name, longStr, titleConfigH["drugPush"].location))
|
|
|
+ }
|
|
|
+}
|
|
|
+function renderMayOperationsPush(list, inx) {
|
|
|
+ let num, state
|
|
|
+ for (let i = 0; i < maydiagnoseList.length; i++) {
|
|
|
+ const item = maydiagnoseList[i];
|
|
|
+ if (item.code == 'mayoperation') {
|
|
|
+ num = item.number
|
|
|
+ state = item.status
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (list.length > 0 && state != 0) {
|
|
|
+ moduleNum++
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, num)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .mayoperation").append(shortStr)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .mayoperation").append(renderLongStr(titleConfigH["operationPush"].name, longStr, titleConfigH["operationPush"].location))
|
|
|
+ }
|
|
|
+}
|
|
|
+function renderHasOperationsPush(list, inx) {
|
|
|
+ let num, state
|
|
|
+ for (let i = 0; i < hasdiagnoseList.length; i++) {
|
|
|
+ const item = hasdiagnoseList[i];
|
|
|
+ if (item.code == 'hasoperation') {
|
|
|
+ num = item.number
|
|
|
+ state = item.status
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (list.length > 0 && state != 0) {
|
|
|
+ moduleNum++
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, num)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .hasoperation").append(shortStr)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .hasoperation").append(renderLongStr(titleConfigH["operationPush"].name, longStr, titleConfigH["operationPush"].location))
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+function renderMayNursePush(list, inx) {
|
|
|
+ let num, state
|
|
|
+ for (let i = 0; i < maydiagnoseList.length; i++) {
|
|
|
+ const item = maydiagnoseList[i];
|
|
|
+ if (item.code == 'maynurse') {
|
|
|
+ num = item.number
|
|
|
+ state = item.status
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (list.length > 0 && state != 0) {
|
|
|
+ moduleNum++
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, num)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .maynurse").append(shortStr)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .maynurse").append(renderLongStr(titleConfigH["nursePush"].name, longStr, titleConfigH["nursePush"].location))
|
|
|
+ }
|
|
|
+}
|
|
|
+function renderHasNursePush(list, inx) {
|
|
|
+ let num, state
|
|
|
+ for (let i = 0; i < hasdiagnoseList.length; i++) {
|
|
|
+ const item = hasdiagnoseList[i];
|
|
|
+ if (item.code == 'hasnurse') {
|
|
|
+ num = item.number
|
|
|
+ state = item.status
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (list.length > 0 && state != 0) {
|
|
|
+ moduleNum++
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, num)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .hasnurse").append(shortStr)
|
|
|
+ $(".moduleItem .item[data-index=" + inx + "] .hasnurse").append(renderLongStr(titleConfigH["nursePush"].name, longStr, titleConfigH["nursePush"].location))
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
function renderLis(list, showNum) {
|
|
|
if (list.length > 0 && $(".moduleItem.lis").length > 0) {
|
|
|
moduleNum++
|
|
@@ -428,18 +1041,18 @@ function renderSymptomPush(list, showNum) {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
-function renderMedicinesPush(list, showNum) {
|
|
|
+// function renderMedicinesPush(list, showNum) {
|
|
|
|
|
|
- if (list.length > 0 && $(".moduleItem.medicine").length > 0) {
|
|
|
- moduleNum++
|
|
|
- $('.moduleItem.medicine .moduleItemTitBox').append(titleStr("drugPush"))
|
|
|
- let { shortStr, longStr } = renderItemWrapper(list, showNum)
|
|
|
- $(".moduleItem.medicine").append(shortStr)
|
|
|
- $(".moduleItem.medicine").append(renderLongStr(titleConfigH["drugPush"].name, longStr, titleConfigH["drugPush"].location))
|
|
|
- $(".moduleItem.medicine").css("display", "block")
|
|
|
- }
|
|
|
+// if (list.length > 0 && $(".moduleItem.medicine").length > 0) {
|
|
|
+// moduleNum++
|
|
|
+// $('.moduleItem.medicine .moduleItemTitBox').append(titleStr("drugPush"))
|
|
|
+// let { shortStr, longStr } = renderItemWrapper(list, showNum)
|
|
|
+// $(".moduleItem.medicine").append(shortStr)
|
|
|
+// $(".moduleItem.medicine").append(renderLongStr(titleConfigH["drugPush"].name, longStr, titleConfigH["drugPush"].location))
|
|
|
+// $(".moduleItem.medicine").css("display", "block")
|
|
|
+// }
|
|
|
|
|
|
-}
|
|
|
+// }
|
|
|
function renderOperationPush(list, showNum) {
|
|
|
if (list.length > 0 && $(".moduleItem.operation").length > 0) {
|
|
|
moduleNum++
|
|
@@ -457,7 +1070,6 @@ function renderDisName() {
|
|
|
function rendergeneraTreatPush(list) {
|
|
|
if (list && 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)
|
|
@@ -470,7 +1082,7 @@ function rendergeneraTreatPush(list) {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
- console.log($(".generalTreatInfo").text())
|
|
|
+ console.log($(".generalTreatInfo").text())
|
|
|
$(".moduleItem.general").css("display", "block")
|
|
|
}
|
|
|
}
|
|
@@ -576,8 +1188,8 @@ function renderPushWarning() {
|
|
|
}
|
|
|
empty()
|
|
|
|
|
|
- }).catch(()=>{
|
|
|
- $(".loading").hide()
|
|
|
+ }).catch(() => {
|
|
|
+ $(".loading").hide()
|
|
|
})
|
|
|
}
|
|
|
function renderBillingPush(list, name, code) {
|
|
@@ -610,32 +1222,33 @@ function renderLongStr(name, longStr, location) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-function renderItemWrapper(list, showNum) {
|
|
|
+function renderItemWrapper(list, showNum, name) {
|
|
|
+ console.log(name);
|
|
|
let showNum1 = showNum || 5
|
|
|
let shortStr = '', longStr = ''
|
|
|
for (let i = 0; i < list.length; i++) {
|
|
|
if (i <= showNum1 - 1) {
|
|
|
- shortStr += renderPushItem(list[i])
|
|
|
+ shortStr += renderPushItem(list[i], i)
|
|
|
}
|
|
|
- longStr += renderPushItem(list[i])
|
|
|
+ longStr += renderPushItem(list[i], i)
|
|
|
}
|
|
|
|
|
|
if (showNum1 >= list.length) {
|
|
|
return {
|
|
|
- shortStr: `<div class="shortBox">${shortStr}</div>`,
|
|
|
+ shortStr: `<div class="shortBox"><span>${name ? name + ':' : ''}</span>${shortStr}</div>`,
|
|
|
longStr: ''
|
|
|
}
|
|
|
} else {
|
|
|
shortStr += `<span class="showMore"> <img class="iconArrowImg" src="${showImg}"></span>`
|
|
|
longStr += `<span class="showLess"><img class="iconArrowImg" src="${collapseImg}"></span>`
|
|
|
return {
|
|
|
- shortStr: `<div class="shortBox clearfix">${shortStr}</div>`,
|
|
|
- longStr: `<div class="longBox clearfix">${longStr}</div>`
|
|
|
+ shortStr: `<div class="shortBox clearfix"><span>${name ? name + ':' : ''}</span>${shortStr}</div>`,
|
|
|
+ longStr: `<div class="longBox clearfix"<span>${name ? name + ':' : ''}</span>${longStr}</div>`
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-function renderPushItem(item) {
|
|
|
- str = `<span class="pushItemBox" data-name="${item.name}" data-type="${item.type}">`
|
|
|
+function renderPushItem(item, i) {
|
|
|
+ str = `<span class="pushItemBox" data-name="${item.name}" data-type="${item.type}" data-index="${i}">`
|
|
|
str += `${item.hasScale == "0" ? `<span class="pushItemName">${item.type == 8 ? ('【' + item.name + '】') : item.name}</span>` : item.hasScale == "1" ? `<span class="pushItemName evaluationtitle">${item.type == 8 ? ('【' + item.name + '】') : item.name}</span>` : `<span class="pushItemName">${item.type == 8 ? ('【' + item.name + '】') : item.name}</span>`}`
|
|
|
str += `${item.hasInfo == "1" ? `<img class="infoImg" src="${infoImg}">` : ""}`
|
|
|
str += '</span >'
|
|
@@ -651,19 +1264,22 @@ function bindOpenInfo() {
|
|
|
|
|
|
|
|
|
function titleStr(type) {
|
|
|
+ console.log(type);
|
|
|
let titleStr = ''
|
|
|
+ console.log(titleConfigH[type].icon);
|
|
|
titleStr += `<div class="moduleTitle"><img class="titleIcon" src=${titleConfigH[type].icon}>${titleConfigH[type].name}:</div>`
|
|
|
return titleStr
|
|
|
}
|
|
|
function bindSlide() {
|
|
|
$(".showMore").off("click").on("click", function () {
|
|
|
- const longBox = $(this).parent().next().length?$(this).parent().next():$(this).parent().parent().next();
|
|
|
+ const longBox = $(this).parent().next().length ? $(this).parent().next() : $(this).parent().parent().next();
|
|
|
+ console.log(longBox);
|
|
|
$(".longStrBox").css("display", "none")
|
|
|
- longBox.css("display", "block")
|
|
|
+ longBox.css("display", "block")
|
|
|
let location = longBox.attr("data-location")
|
|
|
let scrollTop = getLongTop(location)
|
|
|
- const n = Number(scrollTop)-2>-1?Number(scrollTop)-2:0;
|
|
|
- longBox.css("top", n + "px")
|
|
|
+ const n = Number(scrollTop) - 2 > -1 ? Number(scrollTop) - 2 : 0;
|
|
|
+ longBox.css("top", n + "px")
|
|
|
})
|
|
|
$(".showLess").off("click").on("click", function () {
|
|
|
$(this).parent().parent().css("display", "none")
|
|
@@ -748,21 +1364,21 @@ function addScrollEvent() {
|
|
|
$(`.leftWrapper`).off("scroll").scroll(throttle(function () {
|
|
|
|
|
|
if ($(".leftWrapper .longStrBox:visible").length) {
|
|
|
- const n = Number(getLongTop("left")) -10>-1?(Number(getLongTop("left")) -10):0;
|
|
|
- $(".leftWrapper .longStrBox:visible").css("top", Number(getLongTop("left")) -2 + "px")
|
|
|
+ const n = Number(getLongTop("left")) - 10 > -1 ? (Number(getLongTop("left")) - 10) : 0;
|
|
|
+ $(".leftWrapper .longStrBox:visible").css("top", Number(getLongTop("left")) - 2 + "px")
|
|
|
}
|
|
|
}, 100));
|
|
|
$(`.rightWrapper`).off("scroll").scroll(throttle(function () {
|
|
|
if ($(".rightWrapper .longStrBox:visible").css("display") === "block") {
|
|
|
- const n = Number(getLongTop("right"))>-1?(Number(getLongTop("right"))):0;
|
|
|
+ const n = Number(getLongTop("right")) > -1 ? (Number(getLongTop("right"))) : 0;
|
|
|
$(".rightWrapper .longStrBox:visible").css("top", n + "px")
|
|
|
}
|
|
|
}, 100));
|
|
|
}
|
|
|
$(function () {//隐藏logo
|
|
|
- if(getUrlArgObject("hideLg")){
|
|
|
- $(".versionTop .logoTxt").hide();
|
|
|
- }
|
|
|
+ if (getUrlArgObject("hideLg")) {
|
|
|
+ $(".versionTop .logoTxt").hide();
|
|
|
+ }
|
|
|
getVersion()
|
|
|
$(".versionTop").on("click", function () {
|
|
|
openNewWin("disclaimer.html")
|