|
@@ -22,7 +22,7 @@ const goDownB = require("./../images/arrow_down_blue.png")
|
|
|
let pageSet = [],pageSetCopy = [], showNum = 0, scrollTop=0;
|
|
|
$(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
$(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
-
|
|
|
+$(".selectCheck").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
let srcUrl = $("#contentIframe",parent.document).attr("src")
|
|
|
let statisticsType = getUrlArgObjectNew("dateType",srcUrl)||getUrlArgObjectNew("shijian",srcUrl) || ""
|
|
|
let chengdu = getUrlArgObjectNew("chengdu",srcUrl)||""
|
|
@@ -32,7 +32,8 @@ let docName = getUrlArgObjectNew("docName",srcUrl)||""
|
|
|
let startDateParam = getUrlArgObjectNew("startDateParam",srcUrl)||""
|
|
|
let endDateParam = getUrlArgObjectNew("endDateParam",srcUrl)||""
|
|
|
let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",behosDateEnd="", scoreSum = 0,nameTemp = "",
|
|
|
- behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="", doctorName="", doctorNameTemp="", doctorNum="", doctorNumTemp="",data_desc=["leave_hospital_date"],data_asc=[];
|
|
|
+ behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="", doctorName="", doctorNameTemp="", doctorNum="", doctorNumTemp="",
|
|
|
+ checkStatus="",checkStatusTemp="",data_desc=["leave_hospital_date"],data_asc=[];
|
|
|
|
|
|
$("#filterToggler").click(function(){
|
|
|
const text = $(this).text();
|
|
@@ -103,7 +104,8 @@ function getTabData(activePage){
|
|
|
leaveHosDateStart: behosDateStart, //1-单项否决 0-非
|
|
|
leaveHosDateEnd: behosDateEnd, //0-未启用 1-启用
|
|
|
size: 15,
|
|
|
- statisticsType:statisticsType
|
|
|
+ statisticsType:statisticsType,
|
|
|
+ checkStatus: checkStatus?Number(checkStatus):checkStatus, //核查状态
|
|
|
}
|
|
|
return post(api.qcListByDept,param).then(res =>{
|
|
|
if(res.data.code == '0'){
|
|
@@ -148,6 +150,7 @@ $(".filter").on("click", function(e){
|
|
|
deptId = deptIdTemp
|
|
|
doctorName = doctorNameTemp
|
|
|
doctorNum = doctorNumTemp
|
|
|
+ checkStatus = checkStatusTemp
|
|
|
getTabData(1)
|
|
|
})
|
|
|
|
|
@@ -166,6 +169,8 @@ $(".abnormalClear").on("click", function(e){
|
|
|
doctorNum="";
|
|
|
doctorNameTemp="";
|
|
|
doctorNumTemp="";
|
|
|
+ checkStatus="";
|
|
|
+ checkStatusTemp="";
|
|
|
data_desc=["leave_hospital_date"]
|
|
|
data_asc=[];
|
|
|
$('.patientNumInp').val('')
|
|
@@ -194,6 +199,9 @@ $(".abnormalClear").on("click", function(e){
|
|
|
$(".levelList").css("display", "none")
|
|
|
$(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
// $('.selectLevel ').addClass('unSelect')
|
|
|
+ $('.selectCheck').html('全部')
|
|
|
+ $(".checkList").css("display", "none")
|
|
|
+ $(".selectCheck").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
$("th[code]").removeClass("asc desc")
|
|
|
$(".leaveHospitalDate").addClass(" desc")
|
|
|
behosDateStart = $("#datepicker").val().trim()
|
|
@@ -243,7 +251,11 @@ function renderTab(data){
|
|
|
<td class="recordScoreOperaBtn textCenter" style="opacity:${hasData('FUNC000017')?'1':'0.5'}">评分</td>`
|
|
|
for(let j = 0; j < pageSet.length; j++){
|
|
|
if(pageSet[j].status == 1){
|
|
|
- str += `<td class="${isTextCenter(pageSet[j].val) ? 'textCenter':''}"><span data-index=${i} class="${pageSet[j].val=='name'?'patientNameSpan':''}">${item[pageSet[j].val] || "-"}<span></td>`
|
|
|
+ if(pageSet[j].val === "checkStatus"){
|
|
|
+ str += `<td class="${isTextCenter(pageSet[j].val) ? 'textCenter':''}"><span data-index=${i} class="${pageSet[j].val=='name'?'patientNameSpan':'' } ">${item[pageSet[j].val] =="1"? "已核查" :item[pageSet[j].val] === 0 ? "未核查":"-"}<span></td>`
|
|
|
+ }else{
|
|
|
+ str += `<td class="${isTextCenter(pageSet[j].val) ? 'textCenter':''}"><span data-index=${i} class="${pageSet[j].val=='name'?'patientNameSpan':'' } ">${item[pageSet[j].val] || "-"}<span></td>`
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
// <td >${item.behospitalCode || "-"}</td>
|
|
@@ -283,12 +295,12 @@ function renderTab(data){
|
|
|
}
|
|
|
|
|
|
function isTextCenter(name){
|
|
|
- const textCenterList = ['level', 'scoreRes', 'sex','age', 'behospitalDate', 'leaveHospitalDate', 'placefileDate', 'gradeTime']
|
|
|
+ const textCenterList = ['level', 'scoreRes', 'sex','age', 'behospitalDate', 'leaveHospitalDate', 'placefileDate', 'gradeTime','checkStatus']
|
|
|
return textCenterList.findIndex(item=> item==name) > -1
|
|
|
}
|
|
|
|
|
|
-function scoreDetail(id,age,code,name){
|
|
|
- window.open(`./qcScore.html?id=${id}&age=${age}&code=${code}&hid=${getCookie('hospitalid')}&name=${name}`)
|
|
|
+function scoreDetail(id,age,code,name,checkStatus){
|
|
|
+ window.open(`./qcScore.html?id=${id}&age=${age}&code=${code}&hid=${getCookie('hospitalid')}&name=${name}&checkStatus=${checkStatus}`)
|
|
|
}
|
|
|
function bindScoreDetail(){
|
|
|
$('.patientNameSpan').on('click',function(e){
|
|
@@ -296,11 +308,12 @@ function bindScoreDetail(){
|
|
|
const id = tabList[index].behospitalCode
|
|
|
const age = tabList[index].age
|
|
|
const noScore = tabList[index].level == '未评分'
|
|
|
+ const checkStatus = tabList[index].checkStatus
|
|
|
if(noScore){
|
|
|
$.alerModal({"message":'请先进行评分!',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
return
|
|
|
} else{
|
|
|
- scoreDetail(id,age,'YH-BLZK-ZKPFKS',tabList[index].name)
|
|
|
+ scoreDetail(id,age,'YH-BLZK-ZKPFKS',tabList[index].name,checkStatus)
|
|
|
}
|
|
|
|
|
|
})
|
|
@@ -311,6 +324,8 @@ $('.selectLevel').on("click", function(e){
|
|
|
e.stopPropagation()
|
|
|
$(".deptList ").css("display", "none")
|
|
|
$(".selectDept .arrow").attr("src",iconDown)
|
|
|
+ $(".checkList ").css("display", "none")
|
|
|
+ $(".selectCheck .arrow").attr("src",iconDown)
|
|
|
const showList = $(".levelList ").css("display")
|
|
|
if(showList == "none" ||!showList){
|
|
|
$(".levelList ").css("display","block")
|
|
@@ -321,8 +336,26 @@ $('.selectLevel').on("click", function(e){
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+
|
|
|
+//选择核查状态
|
|
|
+$('.selectCheck').on("click", function(e){
|
|
|
+ e.stopPropagation()
|
|
|
+ $(".deptList ").css("display", "none")
|
|
|
+ $(".selectDept .arrow").attr("src",iconDown)
|
|
|
+ $(".levelList ").css("display","none")
|
|
|
+ $(".selectLevel .arrow").attr("src",iconDown)
|
|
|
+ const showList = $(".checkList ").css("display")
|
|
|
+ if(showList == "none" ||!showList){
|
|
|
+ $(".checkList ").css("display","block")
|
|
|
+ $(".selectCheck .arrow").attr("src",iconUp)
|
|
|
+ }else{
|
|
|
+ $(".checkList ").css("display", "none")
|
|
|
+ $(".selectCheck .arrow").attr("src",iconDown)
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
bindLeveldSelect()
|
|
|
-//是否启用选择
|
|
|
+//病历等级选择
|
|
|
function bindLeveldSelect(){
|
|
|
$('.levelItem').on("click",function(){
|
|
|
const levelItemName = $(this).attr("data-name")
|
|
@@ -335,6 +368,21 @@ function bindLeveldSelect(){
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+bindCheckedSelect()
|
|
|
+//核查状态选择
|
|
|
+function bindCheckedSelect(){
|
|
|
+ $('.checkItem').on("click",function(){
|
|
|
+ const checkItemName = $(this).attr("data-name")
|
|
|
+ const checkItemItemId = $(this).attr("data-id")
|
|
|
+ checkStatusTemp =checkItemItemId
|
|
|
+ $('.selectCheck').html(checkItemName)
|
|
|
+ $(".checkList").css("display", "none")
|
|
|
+ $(".selectCheck").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
+ $('.selectCheck').removeClass('unSelect')
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
//全选绑定
|
|
|
bindOperaAll()
|
|
|
function bindScoreOperaItem(){
|
|
@@ -376,6 +424,8 @@ $('.selectDept').on("click", function(e){
|
|
|
e.stopPropagation()
|
|
|
$(".levelList ").css("display","none")
|
|
|
$(".selectLevel .arrow").attr("src",iconDown)
|
|
|
+ $(".checkList ").css("display", "none")
|
|
|
+ $(".selectCheck .arrow").attr("src",iconDown)
|
|
|
const showList = $(".deptList ").css("display")
|
|
|
if(showList == "none" ||!showList){
|
|
|
$(".deptList ").css("display","block")
|
|
@@ -851,8 +901,10 @@ function renderPagination(totalPage,activePage,totalNum){
|
|
|
$(document).on("click", function(){
|
|
|
$(".levelList ").css("display", "none")
|
|
|
$(".deptList").css("display", "none")
|
|
|
+ $(".checkList").css("display", "none")
|
|
|
$(".selectDept .arrow").attr("src",iconDown)
|
|
|
$(".selectLevel .arrow").attr("src",iconDown)
|
|
|
+ $(".selectCheck .arrow").attr("src",iconDown)
|
|
|
|
|
|
})
|
|
|
|
|
@@ -867,10 +919,13 @@ $((function($){
|
|
|
"deptId": deptId.trim(),
|
|
|
"doctorCode":doctorNum,
|
|
|
"doctorName": doctorName,
|
|
|
+ "asc":data_asc, //升序
|
|
|
+ "desc":data_desc, //降序
|
|
|
"leaveHosDateEnd": behosDateEnd,
|
|
|
"leaveHosDateStart": behosDateStart,
|
|
|
"level": level,
|
|
|
- "name": name
|
|
|
+ "name": name,
|
|
|
+ "checkStatus": checkStatus?Number(checkStatus):checkStatus, //核查状态
|
|
|
}
|
|
|
expJson(api.exportQcListDept,param).then(res =>{
|
|
|
downloadExportedData(res.data, behosDateStart.slice(0,10).replace(/-/g,"")+"-"+behosDateEnd.slice(0,10).replace(/-/g,"")+"抽查住院病历质量情况.xls")
|