|
@@ -1,80 +1,130 @@
|
|
|
const $ = require('jquery');
|
|
|
-require("../../css/dept/partDetailControlDept.less");
|
|
|
+require("@less/dept/partDetailControlDept.less");
|
|
|
require('../modal.js');
|
|
|
-const {api} = require('../api.js')
|
|
|
-const {post,getCookie,getUrlArgObjectNew,emptyBox,setTitleTxt,setDatePicker,getPickerDate,downloadExportedData,expJson,initScroll,listenScroll} = require('../utils.js')
|
|
|
+const {api} = require('@js/api.js')
|
|
|
+const {post,getCookie,getUrlArgObjectNew,emptyBox,setDatePicker,getPickerDate,initScroll,listenScroll} = require('@js/utils.js')
|
|
|
require('../../resource/jquery-ui/jquery-ui.min.js');
|
|
|
require('../../resource/jquery-ui/jquery-ui.min.css');
|
|
|
-const iconDown= require("../../images/arrow_down.png")
|
|
|
-const iconUp = require("../../images/arrow_up.png")
|
|
|
-const loadingImg = require("../../images/loading.gif")
|
|
|
-const arrowLeft= require("../../images/arrow_left.png")
|
|
|
-const arrowRight = require("../../images/arrow_right.png")
|
|
|
+const iconCheck= require("@images/icon_check.png")
|
|
|
+const iconUnCheck = require("@images/icon_unchecked.png")
|
|
|
+const iconCalenBlue= require("@images/icon_calen_blue.png")
|
|
|
+const iconCalenGrey= require("@images/icon_calen_grey.png")
|
|
|
+const iconDown= require("@images/arrow_down.png")
|
|
|
+const iconUp = require("@images/arrow_up.png")
|
|
|
+const loadingImg = require("@images/loading.gif")
|
|
|
+const arrowLeft= require("@images/arrow_left.png")
|
|
|
+const arrowRight = require("@images/arrow_right.png")
|
|
|
+listenScroll()
|
|
|
$(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
$(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
-listenScroll()
|
|
|
-let isPlacefile = getCookie('isPlacefile')||1
|
|
|
-
|
|
|
-let tabList = [], name = "",deptName="",deptNameTemp="", behospitalCode="", behosDateStart="", level="",behosDateEnd="", scoreSum = 0,statisticsType="",
|
|
|
+let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",behosDateEnd="", scoreSum = 0,statisticsType="",
|
|
|
nameTemp = "", behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="", doctorName="", doctorNum="",doctorNameTemp="",doctorNumTemp="",
|
|
|
- data_desc="deptName",data_asc="";
|
|
|
- let srcUrl = $("#contentIframe",parent.document).attr("src")
|
|
|
- statisticsType = getUrlArgObjectNew("dateType",srcUrl)||""
|
|
|
- from = getUrlArgObjectNew("from",srcUrl)||""
|
|
|
- lineType = getUrlArgObjectNew("lineType",srcUrl)||""
|
|
|
- let startDateParam = getUrlArgObjectNew("startDateParam",srcUrl)||""
|
|
|
- let endDateParam = getUrlArgObjectNew("endDateParam",srcUrl)||""
|
|
|
- data_desc = (lineType == "合格率")?"firstLevelPercent":(lineType=="完整率"?"emptyPercent":"deptName")
|
|
|
- if(lineType){
|
|
|
- $("th[code="+data_desc+"]").addClass("desc");
|
|
|
- }
|
|
|
- //setTitleTxt('',from) //导航栏面包屑
|
|
|
- if(statisticsType == 1){
|
|
|
- $(".monthYear .mon").css({
|
|
|
- backgroundColor:'#00A1FF',
|
|
|
- color:'#fff'
|
|
|
- }).siblings().css({
|
|
|
- color:'#00A1FF',
|
|
|
- backgroundColor:'#fff'
|
|
|
- })
|
|
|
- setDatePicker($("#datepicker"),$("#datepicker2"),1)
|
|
|
- }else if(statisticsType == 2){
|
|
|
- $(".monthYear .year").css({
|
|
|
- backgroundColor:'#00A1FF',
|
|
|
- color:'#fff'
|
|
|
- }).siblings().css({
|
|
|
- color:'#00A1FF',
|
|
|
- backgroundColor:'#fff'
|
|
|
- })
|
|
|
- setDatePicker($("#datepicker"),$("#datepicker2"),2)
|
|
|
- }else if(statisticsType == 3){
|
|
|
- setDatePicker($("#datepicker"),$("#datepicker2"),3,new Date(startDateParam),new Date(endDateParam))
|
|
|
- }else{
|
|
|
- setDatePicker($("#datepicker"),$("#datepicker2"),'default')
|
|
|
- }
|
|
|
- if(!statisticsType){
|
|
|
- setDatePicker($("#datepicker"),$("#datepicker2"),'default')
|
|
|
- }
|
|
|
+ data_desc='',data_asc='';
|
|
|
+let deptList = JSON.parse(getCookie("deptList"))||[]
|
|
|
+$(function(){
|
|
|
+ let srcUrl = $("#contentIframe",parent.document).attr("src")
|
|
|
+ statisticsType = getUrlArgObjectNew("dateType",srcUrl)||""
|
|
|
+ deptId = deptIdTemp = getUrlArgObjectNew("deptName",srcUrl)||""
|
|
|
+ let startDateParam = getUrlArgObjectNew("startDateParam",srcUrl)||""
|
|
|
+ let endDateParam = getUrlArgObjectNew("endDateParam",srcUrl)||""
|
|
|
+ if(statisticsType == 1){
|
|
|
+ $(".monthYear .mon").css({
|
|
|
+ backgroundColor:'#00A1FF',
|
|
|
+ color:'#fff'
|
|
|
+ }).siblings().css({
|
|
|
+ color:'#00A1FF',
|
|
|
+ backgroundColor:'#fff'
|
|
|
+ })
|
|
|
+ setDatePicker($("#datepicker"),$("#datepicker2"),1)
|
|
|
+ }else if(statisticsType == 2){
|
|
|
+ $(".monthYear .year").css({
|
|
|
+ backgroundColor:'#00A1FF',
|
|
|
+ color:'#fff'
|
|
|
+ }).siblings().css({
|
|
|
+ color:'#00A1FF',
|
|
|
+ backgroundColor:'#fff'
|
|
|
+ })
|
|
|
+ setDatePicker($("#datepicker"),$("#datepicker2"),2)
|
|
|
+ }else if(statisticsType == 3){
|
|
|
+ setDatePicker($("#datepicker"),$("#datepicker2"),3,new Date(startDateParam),new Date(endDateParam))
|
|
|
+ }else{
|
|
|
+ setDatePicker($("#datepicker"),$("#datepicker2"),"default")
|
|
|
+ }
|
|
|
+ if(!statisticsType){
|
|
|
+ setDatePicker($("#datepicker"),$("#datepicker2"),"default")
|
|
|
+ }
|
|
|
+ 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(){
|
|
|
- data_desc=""
|
|
|
- data_asc=""
|
|
|
+ deptId=deptIdTemp = deptList[0]&&deptList[0].deptName
|
|
|
+ behospitalCode=behospitalCodeTemp = ""
|
|
|
setDatePicker($("#datepicker"),$("#datepicker2"),"default")
|
|
|
$(".patientNumInp").val("")
|
|
|
- $("th[code]").removeClass("desc asc");
|
|
|
- behospitalCode =behospitalCodeTemp= ""
|
|
|
- deptName = deptNameTemp = ""
|
|
|
- level = levelTemp = ""
|
|
|
- deptId = deptIdTemp = ""
|
|
|
- $(".selectDept").attr({'title':"全部",'data-id':''}).val("全部")
|
|
|
+ $(".selectDept").html(deptId).attr({
|
|
|
+ "data-id":deptId,
|
|
|
+ "title":deptId
|
|
|
+ }).append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
+ getmoduleTypeList()
|
|
|
getTabData(1)
|
|
|
})
|
|
|
$(".partTitle a").click(function(){
|
|
|
- //初始菜单选中
|
|
|
- $(".menu .page",parent.document).removeClass("active").eq(0).addClass("active");
|
|
|
+ //初始菜单选中
|
|
|
+ focusMenuItem('YH-KZTKS')
|
|
|
$(".container",parent.document).addClass("console-cont");
|
|
|
})
|
|
|
|
|
|
+function focusMenuItem(code){
|
|
|
+ const ele = $(parent.document).find(".menu .page[code="+code+"]");
|
|
|
+ const parEle = ele.parents(".list-1");
|
|
|
+ if(!parEle.is(".list-1-show")){
|
|
|
+ parEle.click();
|
|
|
+ }
|
|
|
+ //console.log($(parent.document).find(".menu .page[code='YH-ZKK-GMKQXZB_XQ']"))
|
|
|
+ ele.click();
|
|
|
+ }
|
|
|
+$(function() {
|
|
|
+ const iconCalenBlue= require("@images/icon_calen_blue.png")
|
|
|
+ const iconCalenGrey= require("@images/icon_calen_grey.png")
|
|
|
+ $('.datapickerBox').append(`<img class="iconCalen" src=${iconCalenGrey} />`)
|
|
|
+ $('.iconCalen').on("mouseenter", function(e){
|
|
|
+ $(this).attr("src", iconCalenBlue)
|
|
|
+ })
|
|
|
+ $('.iconCalen').on("mouseleave", function(e){
|
|
|
+ $(this).attr("src", iconCalenGrey)
|
|
|
+ })
|
|
|
+ $('.iconCalen').on("click", function(e){
|
|
|
+ $(this).parent().find("input").focus()
|
|
|
+ })
|
|
|
+});
|
|
|
+
|
|
|
$('.recordScoreBtn').css("opacity",hasData('FUNC000017')?'1':'0.5')
|
|
|
+
|
|
|
+//科室处理
|
|
|
+function getDeptList(flg){
|
|
|
+ let str = ``
|
|
|
+ if(deptList.length<=0)return
|
|
|
+ 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)
|
|
|
+ getmoduleTypeList()
|
|
|
+ getTabData(1)
|
|
|
+}
|
|
|
+
|
|
|
dateChange()
|
|
|
//所有数据切换日期筛选
|
|
|
function dateChange(){
|
|
@@ -107,10 +157,6 @@ function dateChange(){
|
|
|
getTabData(1)
|
|
|
})
|
|
|
}
|
|
|
-// YH-ZKK-BASYHGLZB_XQ
|
|
|
-$(".menu .page", parent.document).removeClass("active")
|
|
|
-$(parent.document).find(".menu .page[code=YH-ZKK-BASYHGLZB_XQ]").addClass("active")
|
|
|
-
|
|
|
//判断有无某一权限
|
|
|
function hasData(data){
|
|
|
let trdObj = JSON.parse(getCookie("trdObj"))
|
|
@@ -133,20 +179,17 @@ function getTabData(activePage){
|
|
|
return
|
|
|
}
|
|
|
const param = {
|
|
|
- "level": "",
|
|
|
+ "asc": data_asc,
|
|
|
+ "desc": data_desc,
|
|
|
+ "deptName": deptId||"",
|
|
|
"name": behospitalCode||"",
|
|
|
- "deptName": deptName=="全部"?"":deptName||"",
|
|
|
- "asc":data_asc, //升序
|
|
|
- "desc":data_desc, //降序
|
|
|
- "type": 0, //1-本月,2-本年,0-自定义时间(现在所有都是自定义时间,都会传开始日期和结束日期)
|
|
|
+ "type": 0, //1-本月,2-本年,0-自定义时间(现在 都是自定义时间,都会传具体时间进去)
|
|
|
"startDate":dateStatrt,
|
|
|
"endDate":dateEnd
|
|
|
}
|
|
|
- startDateParam = dateStatrt
|
|
|
- endDateParam = dateEnd
|
|
|
- $('.pagination').html("")
|
|
|
- $('.tbody').html(emptyBox('努力加载中...','',1))
|
|
|
- post(api.homePageLevelStatistics,param).then(res =>{
|
|
|
+ startDateParam = dateStatrt
|
|
|
+ endDateParam = dateEnd
|
|
|
+ post(api.homePageLevelByDeptLimit,param).then(res =>{
|
|
|
if(res.data.code == '0'){
|
|
|
const data = res.data.data||[];
|
|
|
renderTab(data,data.hospitalId,activePage);
|
|
@@ -164,17 +207,66 @@ function getTabData(activePage){
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-getTabData(1)
|
|
|
+//模块类型
|
|
|
+$('.selectModuleType').on("focus", function(e){
|
|
|
+ e.stopPropagation()
|
|
|
+ $(".rejectList ").css("display","none")
|
|
|
+ $(".usedList ").css("display", "none")
|
|
|
+ $(".selectReject .arrow").attr("src",iconDown)
|
|
|
+ $(".selectUsed .arrow").attr("src",iconDown)
|
|
|
+ $(".moduleTypeList ").css("display","block")
|
|
|
+})
|
|
|
+$('.selectModuleType').on("blur", function(e){
|
|
|
+ $(".moduleTypeList ").css("display","none")
|
|
|
+})
|
|
|
+$('.selectModuleType').on("input", function(e){
|
|
|
+ let val = $(this).val().trim()
|
|
|
+ casesName = casesNameTemp = val
|
|
|
+ getmoduleTypeList(val)
|
|
|
+})
|
|
|
+//获取模块类型
|
|
|
+function getmoduleTypeList(val,dept){
|
|
|
+ post(api.getListDoctor,{inputStr:val=="全部"?"":val||"",deptName:dept||deptId}).then(res =>{
|
|
|
+ if(res.data.code == '0'){
|
|
|
+ const moduleTypeList = res.data.data
|
|
|
+ renderModuleTypeList(moduleTypeList)
|
|
|
+ }else{
|
|
|
+ renderModuleTypeList([])
|
|
|
+ }
|
|
|
+ }).catch((e) =>{
|
|
|
+
|
|
|
+ })
|
|
|
+}
|
|
|
+function renderModuleTypeList(moduleTypeList){
|
|
|
+ if(moduleTypeList.length == 0){
|
|
|
+ $('.moduleTypeList').html("")
|
|
|
+ return
|
|
|
+ }
|
|
|
+ let str = `<li class="modeTypeItem " data-id=" " data-name="全部">全部</li>`
|
|
|
+ for(let i = 0; i < moduleTypeList.length; i++){
|
|
|
+ str += `<li class="modeTypeItem ellipsis" title=${moduleTypeList[i].name} data-id=${moduleTypeList[i].doctorId} data-name=${moduleTypeList[i].name}> ${moduleTypeList[i].name}</li>`
|
|
|
+ }
|
|
|
+ $('.moduleTypeList').html(str)
|
|
|
+ bindModuleTypeSelect()
|
|
|
+}
|
|
|
+
|
|
|
+//模块类型选择
|
|
|
+function bindModuleTypeSelect(){
|
|
|
+ $('.modeTypeItem').on("mousedown",function(){
|
|
|
+ const modeTypeItemName = $(this).attr("data-name")
|
|
|
+ const modeTypeItemId = $(this).attr("data-id")
|
|
|
+ casesIdTemp =modeTypeItemId
|
|
|
+ casesName=casesNameTemp = modeTypeItemName=="全部"?"":modeTypeItemName;
|
|
|
+ $('.selectModuleType').val(modeTypeItemName).attr("title",modeTypeItemName)
|
|
|
+ $(".moduleTypeList ").css("display", "none")
|
|
|
+ })
|
|
|
+}
|
|
|
|
|
|
$(".filter").on("click", function(e){
|
|
|
name = nameTemp
|
|
|
behospitalCode = behospitalCodeTemp
|
|
|
level = levelTemp
|
|
|
deptId = deptIdTemp
|
|
|
- deptName = deptNameTemp
|
|
|
- if(deptName == ""){
|
|
|
- $(".selectDept").attr({'title':"全部",'data-id':''}).val("全部")
|
|
|
- }
|
|
|
getTabData(1)
|
|
|
})
|
|
|
function renderTab(data,hisId,activePage){
|
|
@@ -184,7 +276,7 @@ function renderTab(data,hisId,activePage){
|
|
|
str += `
|
|
|
<tr data-index=${i}>
|
|
|
<td class="textCenter">${(activePage-1)*15 + i+1}</td>
|
|
|
- <td >${item.deptName || "-"}</td>
|
|
|
+ <td >${item.doctorName || "-"}</td>
|
|
|
<td class="goHomeDetail" data-ruleType="" data-dept="${item.deptName || ""}">${item.entryNum || "-"}</td>
|
|
|
<td class="goHomeDetail1" data-dept="${item.deptName || ""}" data-title="不合格数">${item.secondLevelNum}</td>
|
|
|
<td class="goHomeDetail1" data-dept="${item.deptName || ""}" data-title="合格数">${item.firstLevelNum}</td>
|
|
@@ -201,24 +293,11 @@ function renderTab(data,hisId,activePage){
|
|
|
$('.tbody').html(str?str:emptyBox())
|
|
|
bindScoreDetail(hisId)
|
|
|
$(".goHomeDetail").click(function(){
|
|
|
- let index = $(this).parent().attr("data-index")
|
|
|
- let deptName = $(this).attr("data-dept")
|
|
|
+ let docName = $(this).attr("data-doc")
|
|
|
let ruleType = $(this).attr("data-ruleType")
|
|
|
- let deptId = data[index].deptId
|
|
|
- $(parent.document).find("#contentIframe").attr("src","quexianDetailControlHome.html?deptName="+deptName+"&deptId="+deptId+"&from=1&casesId=243"+"&shijian=3"+"&ruleType="+ruleType+"&startDateParam="+startDateParam+"&endDateParam="+endDateParam)
|
|
|
- })
|
|
|
- // 不合格数跳转至 病历列表详情页
|
|
|
- $(".goHomeDetail1").click(function () {
|
|
|
- let index = $(this).parent().attr("data-index")
|
|
|
- let deptName = $(this).attr("data-dept")
|
|
|
- let titleName = $(this).attr("data-title")
|
|
|
- // let ruleType = $(this).attr("data-ruleType")
|
|
|
- let deptId = data[index].deptId
|
|
|
- // $(parent.document).find("#contentIframe").attr("src", "qcListCopy.html?deptName=" + deptName + "&deptId=" + deptId + "&from=4&casesId=243" + "&shijian=3" + "&ruleType=" + ruleType + "&startDate=" + startDateParam + "&endDate=" + endDateParam + "&defectName=" + defectName)
|
|
|
- $(parent.document).find("#contentIframe").attr("src", "qcListCopyUnqualified.html?deptName=" + deptName + "&deptId=" + deptId + "&from=4&casesId=243" + "&shijian=3" + "&startDate=" + startDateParam + "&endDate=" + endDateParam+"&titleName="+titleName )
|
|
|
-
|
|
|
+ $(parent.document).find("#contentIframe").attr("src","quexianDetailHome.html?from=1&casesId=243&deptName="+deptIdTemp+"&docName="+docName+"&shijian=3"+"&ruleType="+ruleType+"&startDateParam="+startDateParam+"&endDateParam="+endDateParam)
|
|
|
})
|
|
|
- // initScroll("partDetailControl","YX",1)
|
|
|
+ // initScroll("partDetail","YX",1)
|
|
|
}
|
|
|
|
|
|
function scoreDetail(id,age,hid,code){
|
|
@@ -241,7 +320,7 @@ function midifyMsgBox(item,type){
|
|
|
msgBox = `<div class="midifyMsgBox">
|
|
|
<div class="mask"></div>
|
|
|
<div class="midifyMsgContent abnormal">
|
|
|
- <p class="midifyMsgTitle">修改 <img class="iconClose" src=${require('../../images/icon_close_default.png')} alt="关闭" /></p>
|
|
|
+ <p class="midifyMsgTitle">修改 <img class="iconClose" src=${require('@images/icon_close_default.png')} alt="关闭" /></p>
|
|
|
<div class="itemMsgInfoBox">
|
|
|
<span class="itemMsgLab abnormalLeft">状态:</span>
|
|
|
<span class="abnormalAll" data-status="${itemCopy.status}">${itemCopy.status == 0?"未处理":"已处理"}</span>
|
|
@@ -266,7 +345,7 @@ function midifyMsgBox(item,type){
|
|
|
msgBox = `<div class="midifyMsgBox">
|
|
|
<div class="mask"></div>
|
|
|
<div class="midifyMsgContent midifyMsgContentDel">
|
|
|
- <p class="midifyMsgTitle">修改 <img class="iconClose" src=${require('../../images/icon_close_default.png')} alt="关闭" /></p>
|
|
|
+ <p class="midifyMsgTitle">修改 <img class="iconClose" src=${require('@images/icon_close_default.png')} alt="关闭" /></p>
|
|
|
<p class="delTips">确认要删除该条异常记录?</p>
|
|
|
<div class="midifyMsgBtn midifyMsgBtnDel">
|
|
|
<span class="midifyEdit midifyEditDel">删除</span>
|
|
@@ -339,13 +418,11 @@ function saveModifyOne(itemCopy){
|
|
|
const data = res.data.data;
|
|
|
getTabData(1)
|
|
|
$("#mainBox .midifyMsgBox", parent.document).remove()
|
|
|
- $.alerModal({"message":'修改成功',type:"tip",time:'1000',isFather: true,win: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
+ $.alerModal({"message":'修改成功',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
}else{
|
|
|
- $.alerModal({"message":'修改失败,请重试~',type:"tip",time:'1000',isFather: true,win: 'default', fatherWrapper: $("#mainBox", parent.document)});
|
|
|
|
|
|
}
|
|
|
}).catch((e) =>{
|
|
|
- $.alerModal({"message":'修改失败,请重试~',type:"tip",time:'1000',isFather: true,win: 'default', fatherWrapper: $("#mainBox", parent.document)});
|
|
|
|
|
|
})
|
|
|
}
|
|
@@ -379,56 +456,38 @@ function bindLeveldSelect(){
|
|
|
|
|
|
//全选绑定
|
|
|
|
|
|
-$('.selectDept').on("focus", function(e){
|
|
|
+$('.selectDept').on("click", function(e){
|
|
|
e.stopPropagation()
|
|
|
- $(".deptList ").css("display","block")
|
|
|
+ $(".levelList ").css("display","none")
|
|
|
+ $(".selectLevel .arrow").attr("src",iconDown)
|
|
|
+ const showList = $(".deptList ").css("display")
|
|
|
+ if(showList == "none" ||!showList){
|
|
|
+ $(".deptList ").css("display","block")
|
|
|
+ $(".selectDept .arrow").attr("src",iconUp)
|
|
|
+ }else{
|
|
|
+ $(".deptList ").css("display", "none")
|
|
|
+ $(".selectDept .arrow").attr("src",iconDown)
|
|
|
+ }
|
|
|
})
|
|
|
-$('.selectDept').on("blur", function(e){
|
|
|
- $(".deptList ").css("display", "none")
|
|
|
- $(".selectDept .arrow").attr("src",iconDown)
|
|
|
- })
|
|
|
- $('.selectDept').on("input", function(e){
|
|
|
- let val = $(this).val().trim()
|
|
|
- deptName = deptNameTemp = val
|
|
|
- getDeptList(deptName)
|
|
|
- })
|
|
|
-//获取科室列表
|
|
|
-getDeptList()
|
|
|
-function getDeptList(val){
|
|
|
- post(api.getDeptList,{inputStr:val=="全部"?"":val||""}).then(res =>{
|
|
|
- if(res.data.code == '0'){
|
|
|
- const deptList = res.data.data||[]
|
|
|
- rendeDeptList(deptList)
|
|
|
- }else{
|
|
|
- rendeDeptList([])
|
|
|
- }
|
|
|
- }).catch((e) =>{
|
|
|
|
|
|
- })
|
|
|
-}
|
|
|
|
|
|
-function rendeDeptList(deptList){
|
|
|
- if(deptList.length == 0){
|
|
|
- $('.deptList').html("")
|
|
|
- return
|
|
|
- }
|
|
|
- let str = `<li class="deptItem " data-id="" data-name="全部">全部</li>`
|
|
|
- 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>`
|
|
|
- }
|
|
|
- $('.deptList').html(str)
|
|
|
- bindDeptSelect()
|
|
|
-}
|
|
|
+bindDeptSelect()
|
|
|
//科室选择
|
|
|
function bindDeptSelect(){
|
|
|
- $('.deptItem').on("mousedown",function(){
|
|
|
+ $("body").on("click",'.deptItem',function(){
|
|
|
const deptItemName = $(this).attr("data-name")
|
|
|
const deptItemId = $(this).attr("data-id")
|
|
|
- deptNameTemp=deptItemName=="全部"?"":deptItemName;
|
|
|
deptIdTemp =deptItemId
|
|
|
- $('.selectDept').val(deptItemName)
|
|
|
- $('.selectDept ').attr('title',deptItemName)
|
|
|
+ if(deptItemName.length > 10){
|
|
|
+ $('.selectDept').html(deptItemName.substring(0,8)+'...')
|
|
|
+ }else{
|
|
|
+ $('.selectDept').html(deptItemName)
|
|
|
+ }
|
|
|
+ $('.selectDept ').attr({'title':deptItemName,'data-id':deptItemName})
|
|
|
+ $(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
+
|
|
|
$(".deptList").css("display", "none")
|
|
|
+ getmoduleTypeList('',deptItemId)
|
|
|
})
|
|
|
}
|
|
|
function loading(){
|
|
@@ -465,13 +524,13 @@ $('.recordScoreBtn').on("click",function(e){
|
|
|
})
|
|
|
$("th[code]").on("click",function(e){
|
|
|
const code=$(this).attr("code");
|
|
|
- if(data_asc==code){
|
|
|
+ if(data_asc===code){
|
|
|
data_desc=code;
|
|
|
- data_asc="";
|
|
|
+ data_asc='';
|
|
|
$("th[code]").removeClass("asc desc");
|
|
|
$(this).addClass("desc");
|
|
|
}else{
|
|
|
- data_desc="";
|
|
|
+ data_desc='';
|
|
|
data_asc=code;
|
|
|
$("th[code]").removeClass("asc desc");
|
|
|
$(this).addClass("asc");
|
|
@@ -514,6 +573,51 @@ $(".doctorNumInp").on("input", function(e){
|
|
|
const val = $(this).val().trim();
|
|
|
doctorNumTemp = val
|
|
|
})
|
|
|
+$(function() {
|
|
|
+ $.datepicker.regional['zh-CN'] = {
|
|
|
+ clearText: '清除',
|
|
|
+ clearStatus: '清除已选e799bee5baa6e59b9ee7ad9431333361303131日期',
|
|
|
+ closeText: '关闭',
|
|
|
+ closeStatus: '不改变当前选择',
|
|
|
+ prevText: '<上月',
|
|
|
+ prevStatus: '显示上月',
|
|
|
+ prevBigText: '<<',
|
|
|
+ prevBigStatus: '显示上一年',
|
|
|
+ nextText: '下月>',
|
|
|
+ nextStatus: '显示下月',
|
|
|
+ nextBigText: '>>',
|
|
|
+ nextBigStatus: '显示下一年',
|
|
|
+ currentText: '今天',
|
|
|
+ currentStatus: '显示本月',
|
|
|
+ monthNames: ['一月','二月','三月','四月','五月','六月', '七月','八月','九月','十月','十一月','十二月'],
|
|
|
+ monthNamesShort: ['一月','二月','三月','四月','五月','六月', '七月','八月','九月','十月','十一月','十二月'],
|
|
|
+ yearNamesShort: ['一月','二月','三月','四月','五月','六月', '七月','八月','九月','十月','十一月','十二月'],
|
|
|
+ monthStatus: '选择月份',
|
|
|
+ yearStatus: '选择年份',
|
|
|
+ weekHeader: '周',
|
|
|
+ weekStatus: '年内周次',
|
|
|
+ dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],
|
|
|
+ dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'],
|
|
|
+ dayNamesMin: ['日','一','二','三','四','五','六'],
|
|
|
+ dayStatus: '设置 DD 为一周起始',
|
|
|
+ dateStatus: '选择 m月 d日, DD',
|
|
|
+ dateFormat: 'yy-mm-dd',
|
|
|
+ firstDay: 1,
|
|
|
+ initStatus: '请选择日期',
|
|
|
+ isRTL: false};
|
|
|
+ $.datepicker.setDefaults($.datepicker.regional['zh-CN']);
|
|
|
+
|
|
|
+ $( "#datepicker" ).datepicker({
|
|
|
+ changeMonth: true,
|
|
|
+ changeYear: true,
|
|
|
+ dateFormat:"yy/mm/dd"
|
|
|
+ });
|
|
|
+ $( "#datepicker2" ).datepicker({
|
|
|
+ changeMonth: true,
|
|
|
+ changeYear: true,
|
|
|
+ dateFormat:"yy/mm/dd"
|
|
|
+ });
|
|
|
+});
|
|
|
|
|
|
//分页渲染
|
|
|
function renderPagination(totalPage,activePage,totalNum){
|
|
@@ -576,40 +680,11 @@ function renderPagination(totalPage,activePage,totalNum){
|
|
|
|
|
|
}
|
|
|
|
|
|
+$(document).on("click", function(){
|
|
|
+ $(".levelList ").css("display", "none")
|
|
|
+ $(".deptList").css("display", "none")
|
|
|
+ $(".selectDept .arrow").attr("src",iconDown)
|
|
|
+})
|
|
|
|
|
|
-$(function() {
|
|
|
- const iconCalenBlue= require("../../images/icon_calen_blue.png")
|
|
|
- const iconCalenGrey= require("../../images/icon_calen_grey.png")
|
|
|
- $('.datapickerBox').append(`<img class="iconCalen" src=${iconCalenGrey} />`)
|
|
|
- $('.iconCalen').on("mouseenter", function(e){
|
|
|
- $(this).attr("src", iconCalenBlue)
|
|
|
- })
|
|
|
- $('.iconCalen').on("mouseleave", function(e){
|
|
|
- $(this).attr("src", iconCalenGrey)
|
|
|
- })
|
|
|
- $('.iconCalen').on("click", function(e){
|
|
|
- $(this).parent().find("input").focus()
|
|
|
- })
|
|
|
- $('.export').click(function(){
|
|
|
- const start = new Date(startDateParam).getTime()
|
|
|
- const end = new Date(endDateParam).getTime()
|
|
|
- if(start > end){
|
|
|
- $.alerModal({"message":'开始时间不能大于结束时间~',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
- return
|
|
|
- }
|
|
|
- const param = {
|
|
|
- "isPlacefile":isPlacefile,
|
|
|
- "level": "",
|
|
|
- "name": behospitalCode||"",
|
|
|
- "deptName": deptName=="全部"?"":deptName||"",
|
|
|
- "asc":data_asc, //升序
|
|
|
- "desc":data_desc, //降序
|
|
|
- "type": statisticsType||2, //1-本月,2-本年
|
|
|
- "startDate":startDateParam,
|
|
|
- "endDate":endDateParam
|
|
|
- }
|
|
|
- expJson(api.exportIndexQualified,param).then(res =>{
|
|
|
- downloadExportedData(res.data,"病案首页合格率占比.xls")
|
|
|
- })
|
|
|
- })
|
|
|
-});
|
|
|
+$((function($){
|
|
|
+})($));
|