|
@@ -2,7 +2,7 @@ const $ = require('jquery');
|
|
|
require("../css/partDetail.less");
|
|
|
require('./modal.js');
|
|
|
const {api} = require('./api.js')
|
|
|
-const {post,getCookie} = require('./utils.js')
|
|
|
+const {post,getCookie,getUrlArgObjectNew} = require('./utils.js')
|
|
|
require('./../resource/jquery-ui/jquery-ui.min.js');
|
|
|
require('./../resource/jquery-ui/jquery-ui.min.css');
|
|
|
const iconCheck= require("./../images/icon_check.png")
|
|
@@ -21,8 +21,39 @@ let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",beho
|
|
|
nameTemp = "", behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="", doctorName="", doctorNum="",doctorNameTemp="",doctorNumTemp="",
|
|
|
data_desc=[],data_asc=[];
|
|
|
let deptList = JSON.parse(getCookie("deptList"))||[]
|
|
|
+$(function(){
|
|
|
+ let srcUrl = $("#contentIframe",parent.document).attr("src")
|
|
|
+ statisticsType = getUrlArgObjectNew("dateType",srcUrl)||2
|
|
|
+ deptId = deptIdTemp = getUrlArgObjectNew("deptName",srcUrl)||""
|
|
|
+ if(statisticsType == 1){
|
|
|
+ $(".monthYear .mon").css({
|
|
|
+ backgroundColor:'#00A1FF',
|
|
|
+ color:'#fff'
|
|
|
+ }).siblings().css({
|
|
|
+ color:'#00A1FF',
|
|
|
+ backgroundColor:'#fff'
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ $(".monthYear .year").css({
|
|
|
+ backgroundColor:'#00A1FF',
|
|
|
+ color:'#fff'
|
|
|
+ }).siblings().css({
|
|
|
+ color:'#00A1FF',
|
|
|
+ backgroundColor:'#fff'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if(deptId){
|
|
|
+ $(".selectDept").html(deptId).attr({
|
|
|
+ "data-id":deptId,
|
|
|
+ "title":deptId
|
|
|
+ }).append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
+ getDeptList()
|
|
|
+ }else{
|
|
|
+ getDeptList(1)
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
$(".abnormalClear").click(function(){
|
|
|
- // window.location.reload()
|
|
|
deptId = deptList[0].deptName
|
|
|
behospitalCode = ""
|
|
|
$(".patientNumInp").val("")
|
|
@@ -60,18 +91,20 @@ $('.iconCalen').on("click", function(e){
|
|
|
$('.recordScoreBtn').css("opacity",hasData('FUNC000017')?'1':'0.5')
|
|
|
|
|
|
//科室处理
|
|
|
-getDeptList()
|
|
|
-function getDeptList(){
|
|
|
+function getDeptList(flg){
|
|
|
+ console.log(flg)
|
|
|
let str = ``
|
|
|
if(deptList.length<=0)return
|
|
|
- $(".partDetail .selectDept ").attr("data-id",deptList[0].deptName).find("i").html(deptList[0].deptName)
|
|
|
- deptIdTemp = deptList[0].deptName
|
|
|
- deptId = deptList[0].deptName
|
|
|
+ if(flg){
|
|
|
+ $(".partDetail .selectDept ").attr("data-id",deptList[0].deptName).find("i").html(deptList[0].deptName)
|
|
|
+ deptId = deptIdTemp = deptList[0].deptName
|
|
|
+ }
|
|
|
for(let i = 0;i < deptList.length;i++){
|
|
|
let tmp = deptList[i]
|
|
|
str += `<li class="deptItem ellipsis" title="${tmp.deptName}" data-id="${tmp.deptName}" data-name="${tmp.deptName}">${tmp.deptName}</li>`
|
|
|
}
|
|
|
$(".partDetail .filterDropList").html(str)
|
|
|
+ getTabData(1)
|
|
|
}
|
|
|
|
|
|
dateChange()
|
|
@@ -142,7 +175,6 @@ function getTabData(activePage){
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-getTabData(1)
|
|
|
|
|
|
$(".filter").on("click", function(e){
|
|
|
name = nameTemp
|