Browse Source

多条件护理

1178232204@qq.com 3 years ago
parent
commit
2491f1bd84
8 changed files with 255 additions and 22 deletions
  1. 26 9
      src/css/cdss.less
  2. 25 1
      src/css/cdssHorizontal.less
  3. 118 0
      src/html/nurseAlert.html
  4. BIN
      src/images/dots.png
  5. 6 6
      src/js/cdss.js
  6. 24 6
      src/js/cdssHorizontal.js
  7. 41 0
      src/js/nurseAlert.js
  8. 15 0
      webpack.config.js

+ 26 - 9
src/css/cdss.less

@@ -763,35 +763,52 @@ body {
 }
 }
 .shortBox-tit {
 .shortBox-tit {
   color: #333;
   color: #333;
+  float: left;
 }
 }
 .nurseDetail {
 .nurseDetail {
   font-size: 14px;
   font-size: 14px;
   font-weight: 400;
   font-weight: 400;
   color: #1677ff;
   color: #1677ff;
   line-height: 20px;
   line-height: 20px;
-  background: #E3F0FF;
+  background: #e3f0ff;
   margin-left: 5px;
   margin-left: 5px;
   padding: 0 5px;
   padding: 0 5px;
   cursor: pointer;
   cursor: pointer;
-  .nurseImg{
+  .nurseImg {
     margin-left: 5px;
     margin-left: 5px;
   }
   }
 }
 }
-.nurseIitle{
-  border-bottom: 1px solid #D9D9D9;
+.nurseIitle {
+  border-bottom: 1px solid #d9d9d9;
   padding-bottom: 10px;
   padding-bottom: 10px;
-  .title{
+  .title {
     padding-left: 5px;
     padding-left: 5px;
   }
   }
-  &:before{
-    content: ""; 
+  &:before {
+    content: "";
     width: 4px;
     width: 4px;
     height: 15px;
     height: 15px;
-    background: #1ECEBD;
+    background: #1ecebd;
     position: absolute;
     position: absolute;
     top: 6.5px;
     top: 6.5px;
   }
   }
 }
 }
-.nurseIitle:last-child{
+.nurseIitle:last-child {
   border-bottom: none;
   border-bottom: none;
+}
+.shortBox {
+  overflow: hidden;
+}
+.shortBox-tit2 {
+  float: left;
+  width: 85%;
+}
+.shortBox-tit1 {
+  float: left;
+  width: 75%;
+}
+.hasdiagnose,.maydiagnose{
+  .titleIcon{
+    width: 20px;
+  }
 }
 }

+ 25 - 1
src/css/cdssHorizontal.less

@@ -275,6 +275,9 @@
 }
 }
 .billingPushItem {
 .billingPushItem {
   color: @fontColor;
   color: @fontColor;
+  background: url("../images/dot.png") 0 10px no-repeat;
+  text-indent: 10px;
+  background-size: 5px;
 }
 }
 .shortBox {
 .shortBox {
   color: @fontColor;
   color: @fontColor;
@@ -866,7 +869,28 @@
   height: 22px;
   height: 22px;
   z-index: 55;
   z-index: 55;
 }
 }
-.nurse{
+.nurse {
   height: 63px;
   height: 63px;
   overflow: hidden;
   overflow: hidden;
+  background: #F6F6F6 ;
+  .moduleTitle{
+    color: #1ECEBD;
+  }
+  .billingPushItem {
+    background: url("../images/dots.png") 0 10px no-repeat;
+    text-indent: 10px;
+    background-size: 5px;
+  }
+}
+.nurseDetail {
+  font-size: 14px;
+  font-weight: 400;
+  color: #1677ff;
+  line-height: 20px;
+  margin-left: 5px;
+  padding: 0 5px;
+  cursor: pointer;
+  .nurseImg {
+    margin-left: 5px;
+  }
 }
 }

File diff suppressed because it is too large
+ 118 - 0
src/html/nurseAlert.html


BIN
src/images/dots.png


+ 6 - 6
src/js/cdss.js

@@ -623,14 +623,14 @@ function renderBillingNursePush(list, showNum) {
     for (let i = 0; i < list.length; i++) {
     for (let i = 0; i < list.length; i++) {
       const item = list[i];
       const item = list[i];
       str += `<div class="shortBox">
       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 class="nurseIitle" data-name="${item.orderName}" data-type="${item.type}"><div><span class="title">${item.msg}</span>${renderNursePush(item.staticList)}</div></div>
       </div>`
       </div>`
     }
     }
     $('.moduleItem.nurse').append(str)
     $('.moduleItem.nurse').append(str)
     $('.moduleItem.nurse').css("display", "block")
     $('.moduleItem.nurse').css("display", "block")
     $('.nurseDetail').off("click").click(function () {
     $('.nurseDetail').off("click").click(function () {
       const name = $(this).attr('data-name')
       const name = $(this).attr('data-name')
-      const type = $(this).parents(".nurseIitle").attr('data-type')
+      const type = 9
       openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&page=1&mrId=${encodeURIComponent(mrId)}&gauge=gauge`)
       openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&page=1&mrId=${encodeURIComponent(mrId)}&gauge=gauge`)
     })
     })
   }
   }
@@ -1067,7 +1067,7 @@ function renderHasPush(treatPush, medicinesPush, operationsPush, nursePush) {
   renderHasTreatPush(treatPush)
   renderHasTreatPush(treatPush)
   renderHasMedicPush(medicinesPush)
   renderHasMedicPush(medicinesPush)
   renderHasOperationsPush(operationsPush)
   renderHasOperationsPush(operationsPush)
-  renderHasNursePush(nursePush, nursenum)
+  renderHasNursePush(nursePush)
   $('.hasdiagnose .centerBox ul li').click(function () {
   $('.hasdiagnose .centerBox ul li').click(function () {
     var i = $(this).attr('data-index');
     var i = $(this).attr('data-index');
     if ($(this).hasClass('active')) {
     if ($(this).hasClass('active')) {
@@ -1193,15 +1193,15 @@ function renderItemWrapper(list, showNum, name) {
   }
   }
   if (showNum1 >= list.length) {
   if (showNum1 >= list.length) {
     return {
     return {
-      shortStr: `<div class="shortBox"><span class="shortBox-tit">${name ? name + ':' : ''}</span>${shortStr}</div>`,
+      shortStr: `<div class="shortBox"><span class="shortBox-tit">${name ? name + ':' : ''}</span><div class="${name ? `${name == '推荐检验' || name == '推荐检查'?'shortBox-tit1' : 'shortBox-tit2'}` : ''}">${shortStr}</div></div>`,
       longStr: ''
       longStr: ''
     }
     }
   } else {
   } else {
     shortStr += `<span class="showMore"><img class="iconArrowImg" src="${iconArrowDown}"></span>`
     shortStr += `<span class="showMore"><img class="iconArrowImg" src="${iconArrowDown}"></span>`
     longStr += `<span class="showLess"><img class="iconArrowImg"  src="${iconArrowUp}"></span>`
     longStr += `<span class="showLess"><img class="iconArrowImg"  src="${iconArrowUp}"></span>`
     return {
     return {
-      shortStr: `<div class="shortBox"><span class="shortBox-tit">${name ? name + ':' : ''}</span>${shortStr}</div>`,
-      longStr: `<div class="longBox"><span class="shortBox-tit">${name ? name + ':' : ''}</span>${longStr}</div></div>`
+      shortStr: `<div class="shortBox"><span class="shortBox-tit">${name ? name + ':' : ''}</span><div class="${name == '推荐检验' || name == '推荐检查'?'shortBox-tit1' : 'shortBox-tit2'}">${shortStr}</div></div>`,
+      longStr: `<div class="longBox"><span class="shortBox-tit">${name ? name + ':' : ''}</span><divclass="${name == '推荐检验' || name == '推荐检查'?'shortBox-tit1' : 'shortBox-tit2'}">${shortStr}</div></div></div>`
     }
     }
   }
   }
 }
 }

+ 24 - 6
src/js/cdssHorizontal.js

@@ -18,6 +18,8 @@ require('./../images/dn.png').replace(/^undefined/g, '')
 require('./../images/loading.gif').replace(/^undefined/g, '')
 require('./../images/loading.gif').replace(/^undefined/g, '')
 let emptyImg = require('./../images/empty3.png').replace(/^undefined/g, '')
 let emptyImg = require('./../images/empty3.png').replace(/^undefined/g, '')
 require('./../images/new2.png').replace(/^undefined/g, '')
 require('./../images/new2.png').replace(/^undefined/g, '')
+require('./../images/dots.png').replace(/^undefined/g, '')
+require('./../images/dot.png').replace(/^undefined/g, '')
 const { post, config, getUrlArgObject, openNewWin, titleConfigH, throttle, } = require('./promise.js');
 const { post, config, getUrlArgObject, openNewWin, titleConfigH, throttle, } = require('./promise.js');
 let infoImg = require('./../images/icon_info.png').replace(/^undefined/g, '')
 let infoImg = require('./../images/icon_info.png').replace(/^undefined/g, '')
 let infoImgOn = require('./../images/icon_info_on.png').replace(/^undefined/g, '')
 let infoImgOn = require('./../images/icon_info_on.png').replace(/^undefined/g, '')
@@ -25,6 +27,7 @@ let iconArrowUp = require('./../images/icon_arrow_up.png').replace(/^undefined/g
 let iconArrowDown = require('./../images/icon_arrow_down.png').replace(/^undefined/g, '')
 let iconArrowDown = require('./../images/icon_arrow_down.png').replace(/^undefined/g, '')
 let showImg = require('./../images/show2.png').replace(/^undefined/g, '')
 let showImg = require('./../images/show2.png').replace(/^undefined/g, '')
 let collapseImg = require('./../images/collapse2.png').replace(/^undefined/g, '')
 let collapseImg = require('./../images/collapse2.png').replace(/^undefined/g, '')
+let go = require('./../images/g1.png').replace(/^undefined/g, '')
 let treatDisName, treatUniqueName
 let treatDisName, treatUniqueName
 let maydiagnoseList = [], hasdiagnoseList = []
 let maydiagnoseList = [], hasdiagnoseList = []
 let maydiagnoseType = false, hasdiagnoseType = false;
 let maydiagnoseType = false, hasdiagnoseType = false;
@@ -877,7 +880,6 @@ function renderHasPush(treatPush, medicinesPush, operationsPush, nursePush, inx)
     } else {
     } else {
       $(this).addClass('actives').siblings().removeClass('actives');
       $(this).addClass('actives').siblings().removeClass('actives');
       $(".hasdiagnose .item[data-index=" + inx + "] .checkBox[data-index=" + i + "]").addClass('onshow').siblings().removeClass('onshow');
       $(".hasdiagnose .item[data-index=" + inx + "] .checkBox[data-index=" + i + "]").addClass('onshow').siblings().removeClass('onshow');
-      console.log(i);
     }
     }
 
 
   });
   });
@@ -1176,7 +1178,7 @@ function renderPushWarning() {
         type: null,
         type: null,
       }]
       }]
 
 
-      
+      localStorage.setItem('nurseList',JSON.stringify(nurseList))
       renderBillingPush(billMsgList, '开单合理性', 'rationali')
       renderBillingPush(billMsgList, '开单合理性', 'rationali')
       renderBillingPush(highRiskList, '高风险提示', 'highrisk')
       renderBillingPush(highRiskList, '高风险提示', 'highrisk')
       renderBillingPush(criticalValList, '危急值提醒', 'crivalue')
       renderBillingPush(criticalValList, '危急值提醒', 'crivalue')
@@ -1228,17 +1230,23 @@ function renderBillingPush(list, name, code) {
   $("." + code).append(boxStr)
   $("." + code).append(boxStr)
   $('.moduleItem.' + code).addClass("tips").attr("code", code).css("display", "block")
   $('.moduleItem.' + code).addClass("tips").attr("code", code).css("display", "block")
 }
 }
+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) {
 function renderBillingNursePush(list) {
   if (list.length > 0 && $(".moduleItem.nurse").length > 0) {
   if (list.length > 0 && $(".moduleItem.nurse").length > 0) {
     moduleNum++
     moduleNum++
     $('.moduleItem.nurse .moduleItemTitBox').append(titleStr("nursePush"))
     $('.moduleItem.nurse .moduleItemTitBox').append(titleStr("nursePush"))
     let str = ``
     let str = ``
     for (let i = 0; i < list.length; i++) {
     for (let i = 0; i < list.length; i++) {
-      str += `<div class="billingPushItem">${list[i].msg}</div>`
+      str += `<div class="billingPushItem">${list[i].msg}${renderNursePush(list[i].staticList)}</div>`
     }
     }
-    let titStr = `<span class="moduleBoxName">${name}</span>`
     let boxStr = `<div class="moduleBox">
     let boxStr = `<div class="moduleBox">
-          ${titStr}
           ${str}
           ${str}
         </div>`
         </div>`
     $(".moduleItem.nurse").append(boxStr)
     $(".moduleItem.nurse").append(boxStr)
@@ -1246,10 +1254,20 @@ function renderBillingNursePush(list) {
     let tipNum = $(".nurse .billingPushItem").length;
     let tipNum = $(".nurse .billingPushItem").length;
     if (tipNum > 3) {
     if (tipNum > 3) {
       $(".nurse").append(`<span class="showMoreNewPage">更多</span>`)
       $(".nurse").append(`<span class="showMoreNewPage">更多</span>`)
-      showMoreNewPage()
+      showMoreNewNurse()
     }
     }
+    $('.nurseDetail').off("click").click(function () {
+      const name = $(this).attr('data-name')
+      const type = 9
+      openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&page=1&mrId=${encodeURIComponent(mrId)}&gauge=gauge`)
+    })
   }
   }
 }
 }
+function showMoreNewNurse(){
+  $(".showMoreNewPage").on("click", function () {
+    openNewWin(`nurseAlert.html?mrId=${mrId}&hospitalId=${hospitalIdUrl}` );
+  })
+}
 function renderLongStr(name, longStr, location) {
 function renderLongStr(name, longStr, location) {
   if (!longStr) {
   if (!longStr) {
     return
     return

+ 41 - 0
src/js/nurseAlert.js

@@ -0,0 +1,41 @@
+const $ = require("jquery");
+const { post, config, getUrlArgObject,openNewWin } = require('./promise.js');
+require('./../images/dots.png').replace(/^undefined/g, '')
+require('./../images/icon_warn1.png').replace(/^undefined/g, '')
+let go = require('./../images/g1.png').replace(/^undefined/g, '')
+let mrId = getUrlArgObject('mrId')
+let hospitalIdUrl = getUrlArgObject('hospitalId') || ''
+const codes = getUrlArgObject('codes') || ''
+let msg
+$(function () {
+    const nurseList = JSON.parse(localStorage.getItem('nurseList'))
+    renderBillingPush(nurseList, '开单合理性')
+    // renderBillingPush(dubugStr,'注意调试信息')
+    function renderBillingPush(list, name) {
+        if (list.length === 0) {
+            return
+        }
+        let str = ``
+        let infoStr = ""
+        for (let i = 0; i < list.length; i++) {
+            infoStr += `<li class="contentItem">${list[i].msg}${renderNursePush(list[i].staticList)}</li>`
+        }
+        str += `<ul class="contentBox">${infoStr}</ul>`
+        $(".content").append(str)
+
+        $('.nurseDetail').off("click").click(function () {
+            console.log(123);
+            const name = $(this).attr('data-name')
+            const type = 9
+            openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&page=1&mrId=${encodeURIComponent(mrId)}&gauge=gauge`)
+        })
+    }
+    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
+    }
+})

+ 15 - 0
webpack.config.js

@@ -24,6 +24,7 @@ module.exports = {
     homeStatic:path.resolve(__dirname, 'src/js', 'homeStatic.js'),
     homeStatic:path.resolve(__dirname, 'src/js', 'homeStatic.js'),
     searchStaticList:path.resolve(__dirname, 'src/js', 'searchStaticList.js'),
     searchStaticList:path.resolve(__dirname, 'src/js', 'searchStaticList.js'),
     staticInfo:path.resolve(__dirname, 'src/js', 'staticInfo.js'),
     staticInfo:path.resolve(__dirname, 'src/js', 'staticInfo.js'),
+    nurseAlert:path.resolve(__dirname, 'src/js', 'nurseAlert.js'),
     //staticInfoOut:path.resolve(__dirname, 'src/js', 'informationOut.js'),
     //staticInfoOut:path.resolve(__dirname, 'src/js', 'informationOut.js'),
     vendor: 'lodash'// 多个页面所需的公共库文件,防止重复打包带入
     vendor: 'lodash'// 多个页面所需的公共库文件,防止重复打包带入
   },
   },
@@ -89,6 +90,20 @@ module.exports = {
         collapseWhitespace: true //删除空白符与换行符
         collapseWhitespace: true //删除空白符与换行符
       }
       }
     }),
     }),
+    new HtmlWebpackPlugin({
+      title: '推荐护理',
+      template: path.resolve(__dirname, 'src/html', 'nurseAlert.html'),
+      filename: 'nurseAlert.html',
+      chunks: ['nurseAlert', 'vendor', 'common'],
+      inject: true,
+      hash: true, //防止缓存
+      minify: {
+        removeAttributeQuotes: true, //压缩 去掉引号
+        removeComments: true, //移除HTML中的注释
+        collapseWhitespace: true //删除空白符与换行符
+      }
+    }),
+    
     new HtmlWebpackPlugin({
     new HtmlWebpackPlugin({
       title: '随访计划',
       title: '随访计划',
       template: path.resolve(__dirname, 'src/html', 'cdssPlan.html'),
       template: path.resolve(__dirname, 'src/html', 'cdssPlan.html'),