|
@@ -2,7 +2,7 @@ const $ = require('jquery');
|
|
require("../css/deptScoreDetail.less");
|
|
require("../css/deptScoreDetail.less");
|
|
require('./modal.js');
|
|
require('./modal.js');
|
|
const {api} = require('./api.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.js');
|
|
require('./../resource/jquery-ui/jquery-ui.min.css');
|
|
require('./../resource/jquery-ui/jquery-ui.min.css');
|
|
const iconCheck= require("./../images/icon_check.png")
|
|
const iconCheck= require("./../images/icon_check.png")
|
|
@@ -17,13 +17,48 @@ const arrowRight = require("./../images/arrow_right.png")
|
|
|
|
|
|
$(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
$(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
$(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
$(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
-let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",behosDateEnd="", scoreSum = 0,statisticsType=2,
|
|
|
|
|
|
+let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",behosDateEnd="", scoreSum = 0,statisticsType=2,deptList=[],
|
|
nameTemp = "", behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="", doctorName="", doctorNum="",doctorNameTemp="",doctorNumTemp="",
|
|
nameTemp = "", behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="", doctorName="", doctorNum="",doctorNameTemp="",doctorNumTemp="",
|
|
data_desc=[],data_asc=[];
|
|
data_desc=[],data_asc=[];
|
|
-let deptList = JSON.parse(getCookie("deptList"))||[]
|
|
|
|
|
|
+$(function(){
|
|
|
|
+ deptList = JSON.parse(getCookie("deptList"))||[]
|
|
|
|
+ let srcUrl = $("#contentIframe",parent.document).attr("src")
|
|
|
|
+ deptId = deptIdTemp = getUrlArgObjectNew("deptName",srcUrl)||""
|
|
|
|
+ statisticsType = getUrlArgObjectNew("dateType",srcUrl)||""
|
|
|
|
+ console.log(deptIdTemp,deptId)
|
|
|
|
+ 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)
|
|
|
|
+ }
|
|
|
|
+ getTabData(1)
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+
|
|
$(".abnormalClear").click(function(){
|
|
$(".abnormalClear").click(function(){
|
|
- // window.location.reload()
|
|
|
|
- deptId = deptList[0].deptName
|
|
|
|
|
|
+ deptId = deptIdTemp = deptList[0].deptName
|
|
behospitalCode = ""
|
|
behospitalCode = ""
|
|
$(".patientNumInp").val("")
|
|
$(".patientNumInp").val("")
|
|
$(".selectDept").html(deptId).attr({
|
|
$(".selectDept").html(deptId).attr({
|
|
@@ -49,13 +84,15 @@ $('.iconCalen').on("click", function(e){
|
|
})
|
|
})
|
|
$('.recordScoreBtn').css("opacity",hasData('FUNC000017')?'1':'0.5')
|
|
$('.recordScoreBtn').css("opacity",hasData('FUNC000017')?'1':'0.5')
|
|
//科室处理
|
|
//科室处理
|
|
-getDeptList()
|
|
|
|
-function getDeptList(){
|
|
|
|
|
|
+// getDeptList()
|
|
|
|
+function getDeptList(flg){
|
|
let str = ``
|
|
let str = ``
|
|
if(deptList.length<=0)return
|
|
if(deptList.length<=0)return
|
|
- $(".deptScoreDetail .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
|
|
|
|
+ }
|
|
|
|
+ // $(".deptScoreDetail .selectDept ").attr("data-id",deptList[0].deptName).find("i").html(deptList[0].deptName)
|
|
for(let i = 0;i < deptList.length;i++){
|
|
for(let i = 0;i < deptList.length;i++){
|
|
let tmp = deptList[i]
|
|
let tmp = deptList[i]
|
|
str += `<li class="deptItem ellipsis" title="${tmp.deptName}" data-id="${tmp.deptName}" data-name="${tmp.deptName}">${tmp.deptName}</li>`
|
|
str += `<li class="deptItem ellipsis" title="${tmp.deptName}" data-id="${tmp.deptName}" data-name="${tmp.deptName}">${tmp.deptName}</li>`
|
|
@@ -106,6 +143,7 @@ function dateChange(){
|
|
}
|
|
}
|
|
|
|
|
|
function getTabData(activePage){
|
|
function getTabData(activePage){
|
|
|
|
+ console.log(deptIdTemp,deptId,7878778)
|
|
const param = {
|
|
const param = {
|
|
"asc": "",
|
|
"asc": "",
|
|
"deptName": deptId||"",
|
|
"deptName": deptId||"",
|
|
@@ -135,7 +173,6 @@ function getTabData(activePage){
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
-getTabData(1)
|
|
|
|
|
|
|
|
$(".filter").on("click", function(e){
|
|
$(".filter").on("click", function(e){
|
|
name = nameTemp
|
|
name = nameTemp
|
|
@@ -348,7 +385,7 @@ $('.selectDept').on("click", function(e){
|
|
function rendeDeptList(deptList){
|
|
function rendeDeptList(deptList){
|
|
let str = `<li class="deptItem " data-id=" " data-name="全部">全部</li>`
|
|
let str = `<li class="deptItem " data-id=" " data-name="全部">全部</li>`
|
|
for(let i = 0; i < deptList.length; i++){
|
|
for(let i = 0; i < deptList.length; i++){
|
|
- str += `<li class="deptItem ellipsis" title=${deptList[i].deptName} data-id=${deptList[i].deptId} data-name=${deptList[i].deptName}> ${deptList[i].deptName}</li>`
|
|
|
|
|
|
+ str += `<li class="deptItem ellipsis" title=${deptList[i].deptName} data-id=${deptList[i].deptName} data-name=${deptList[i].deptName}> ${deptList[i].deptName}</li>`
|
|
}
|
|
}
|
|
$('.deptList').html(str)
|
|
$('.deptList').html(str)
|
|
}
|
|
}
|