|
@@ -16,18 +16,8 @@ listenScroll()
|
|
|
$(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
$(".selectStatus").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
$(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
-$(".fpSelectCheck").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
-$(".qcSelectCheck").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
-let srcUrl = $("#contentIframe", parent.document).attr("src")
|
|
|
-let statisticsType = getUrlArgObjectNew("dateType", srcUrl) || getUrlArgObjectNew("shijian", srcUrl) || ""
|
|
|
|
|
|
-let deptNamePram = getUrlArgObjectNew("deptName", srcUrl) || ""
|
|
|
-let startDateParam = getUrlArgObjectNew("startDateParam", srcUrl) || ""
|
|
|
-let endDateParam = getUrlArgObjectNew("endDateParam", srcUrl) || ""
|
|
|
-let tabList = [], name = "", behospitalCode = "", deptName = "", deptNameTemp = "", behosDateStart = "", level = "", behosDateEnd = "", scoreSum = 0, nameTemp = "",
|
|
|
- behospitalCodeTemp = "", levelTemp = "", creatStatus = "", deptId = "", deptIdTemp = "", doctorName = "", doctorNameTemp = "", doctorNum = "", doctorNumTemp = "",
|
|
|
- fpCheckStatus = "", fpCheckStatusTemp = "", fpCheckName = "", fpCheckNameTemp = "", qcCheckName = "", qcCheckNameTemp = "", qcCheckMain = "", qcCheckMainTemp = "", qcCheckStatus = "", qcCheckStatusTemp = "", fpCheckDateStart = "", fpCheckDateEnd = "",
|
|
|
- qcCheckDateStart = "", qcCheckDateEnd = "", data_desc = ["leaveHospitalDate"], data_asc = [];
|
|
|
+let tabList = [],global_deptId = "",global_checkStatus = "",global_level="",data_desc = ["leaveHospitalDate"], data_asc = [];
|
|
|
let isPlacefile = getCookie('isPlacefile') || 1
|
|
|
if (isPlacefile != 1) {
|
|
|
data_desc = ["behospitalDate"]
|
|
@@ -83,19 +73,7 @@ $(function(){
|
|
|
};
|
|
|
$.datepicker.setDefaults($.datepicker.regional['zh-CN']);
|
|
|
|
|
|
- let startDate = "", endDate = new Date()
|
|
|
- let year = new Date().getFullYear()
|
|
|
- let month = new Date().getMonth() + 1
|
|
|
- if (statisticsType == '1') {
|
|
|
- startDate = new Date(`${year}-${month}-01`)
|
|
|
- } else if (statisticsType == '2') {
|
|
|
- startDate = new Date(`${year}-01-01`)
|
|
|
- } else if (statisticsType == '3') {
|
|
|
- startDate = new Date(startDateParam)
|
|
|
- endDate = new Date(endDateParam)
|
|
|
- } else {
|
|
|
- startDate = "-6d"
|
|
|
- }
|
|
|
+ let endDate = new Date(),startDate = "-6d";
|
|
|
$("#datepicker").datepicker({
|
|
|
changeMonth: true,
|
|
|
changeYear: true,
|
|
@@ -132,7 +110,6 @@ $(function(){
|
|
|
e.stopPropagation()
|
|
|
$(".deptList ").css("display", "none")
|
|
|
$(".selectDept .arrow").attr("src", iconDown)
|
|
|
- $(".checkList ").css("display", "none")
|
|
|
$(".selectCheck .arrow").attr("src", iconDown)
|
|
|
const showList = $(".statusList").css("display")
|
|
|
if (showList == "none" || !showList) {
|
|
@@ -144,28 +121,6 @@ $(function(){
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-//选择病历核查状态
|
|
|
- $('.qcSelectCheck').on("click", function (e) {
|
|
|
- e.stopPropagation()
|
|
|
- $(".deptList ").css("display", "none")
|
|
|
- $(".selectDept .arrow").attr("src", iconDown)
|
|
|
- $(".levelList ").css("display", "none")
|
|
|
- $(".selectLevel .arrow").attr("src", iconDown)
|
|
|
- $(".statusList").css("display", "none")
|
|
|
- $(".selectStatus .arrow").attr("src", iconDown)
|
|
|
- $(".selectStatus .arrow").attr("src", iconDown)
|
|
|
- $(".fpSelectCheck .arrow").attr("src", iconDown)
|
|
|
- $(".fpCheckList ").css("display", "none")
|
|
|
- const showList = $(".qcCheckList ").css("display")
|
|
|
- if (showList == "none" || !showList) {
|
|
|
- $(".qcCheckList ").css("display", "block")
|
|
|
- $(".qcSelectCheck .arrow").attr("src", iconUp)
|
|
|
- } else {
|
|
|
- $(".qcCheckList ").css("display", "none")
|
|
|
- $(".qcSelectCheck .arrow").attr("src", iconDown)
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
//筛选
|
|
|
$(".filter").on("click", function () {
|
|
|
const filterData = getFilterData();
|
|
@@ -185,7 +140,6 @@ $(function(){
|
|
|
getTabData(1)
|
|
|
bindLeveldSelect()
|
|
|
bindStatusdSelect()
|
|
|
- bindCheckedSelectQc()
|
|
|
|
|
|
$('.selectDept').on("click", function (e) {
|
|
|
e.stopPropagation()
|
|
@@ -193,12 +147,6 @@ $(function(){
|
|
|
$(".selectLevel .arrow").attr("src", iconDown)
|
|
|
$(".statusList").css("display", "none")
|
|
|
$(".selectStatus .arrow").attr("src", iconDown)
|
|
|
- $(".checkList ").css("display", "none")
|
|
|
- $(".selectCheck .arrow").attr("src", iconDown)
|
|
|
- $(".fpCheckList ").css("display", "none")
|
|
|
- $(".fpSelectCheck .arrow").attr("src", iconDown)
|
|
|
- $(".qcCheckList ").css("display", "none")
|
|
|
- $(".qcSelectCheck .arrow").attr("src", iconDown)
|
|
|
const showList = $(".deptList ").css("display")
|
|
|
if (showList == "none" || !showList) {
|
|
|
$(".deptList ").css("display", "block")
|
|
@@ -213,15 +161,9 @@ $(function(){
|
|
|
$(".statusList").css("display", "none")
|
|
|
$(".levelList ").css("display", "none")
|
|
|
$(".deptList").css("display", "none")
|
|
|
- $(".checkList").css("display", "none")
|
|
|
- $(".fpCheckList").css("display", "none")
|
|
|
- $(".qcCheckList").css("display", "none")
|
|
|
$(".selectDept .arrow").attr("src", iconDown)
|
|
|
$(".selectLevel .arrow").attr("src", iconDown)
|
|
|
$(".selectStatus .arrow").attr("src", iconDown)
|
|
|
- $(".selectCheck .arrow").attr("src", iconDown)
|
|
|
- $(".fpSelectCheck .arrow").attr("src", iconDown)
|
|
|
- $(".qcSelectCheck .arrow").attr("src", iconDown)
|
|
|
})
|
|
|
|
|
|
|
|
@@ -288,13 +230,12 @@ function clearFilter(){
|
|
|
function getTabData(activePage) {
|
|
|
const filterData = getFilterData();
|
|
|
const param = {
|
|
|
- creatStatus: creatStatus,
|
|
|
- hospitalId: getCookie("hospitalid"),//医院id
|
|
|
- level: level,//病历等级
|
|
|
+ level: global_level,//病历等级
|
|
|
asc: data_asc, //升序
|
|
|
desc: data_desc, //降序
|
|
|
- department: deptName == "全部" ? "" : deptName || '',
|
|
|
...filterData,
|
|
|
+ behDeptId:global_deptId,
|
|
|
+ status:global_checkStatus,
|
|
|
jobDistributionTimeStart:filterData.jobDistributionTimeStart+" 00:00:00",
|
|
|
jobDistributionTimeEnd:filterData.jobDistributionTimeEnd+" 23:59:59"
|
|
|
}
|
|
@@ -362,12 +303,10 @@ function renderTab(data) {
|
|
|
function bindLeveldSelect() {
|
|
|
$('.levelItem').on("click", function () {
|
|
|
const levelItemName = $(this).attr("data-name")
|
|
|
- const levelItemItemId = $(this).attr("data-id")
|
|
|
- levelTemp = levelItemItemId
|
|
|
+ global_level = $(this).attr("data-id")
|
|
|
$('.selectLevel').html(levelItemName)
|
|
|
$(".levelList").css("display", "none")
|
|
|
$(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
- $('.selectLevel').removeClass('unSelect')
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -376,31 +315,15 @@ function bindLeveldSelect() {
|
|
|
function bindStatusdSelect() {
|
|
|
$('.statusItem').on("click", function () {
|
|
|
const levelItemName = $(this).attr("data-name")
|
|
|
- const levelItemItemId = $(this).attr("data-id")
|
|
|
- creatStatus = levelItemItemId
|
|
|
+ global_checkStatus = $(this).attr("data-id")
|
|
|
$('.selectStatus').html(levelItemName)
|
|
|
$(".statusList").css("display", "none")
|
|
|
$(".selectStatus").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
- $('.selectStatus').removeClass('unSelect')
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-//病历核查状态选择
|
|
|
-function bindCheckedSelectQc() {
|
|
|
- $('.qcCheckItem').on("click", function () {
|
|
|
- const qcCheckItemName = $(this).attr("data-name")
|
|
|
- const qcCheckItemItemId = $(this).attr("data-id") || ""
|
|
|
- qcCheckStatusTemp = qcCheckItemItemId
|
|
|
- $('.qcSelectCheck').html(qcCheckItemName)
|
|
|
- $(".qcCheckList").css("display", "none")
|
|
|
- $(".qcSelectCheck").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
- $('.qcSelectCheck').removeClass('unSelect')
|
|
|
})
|
|
|
}
|
|
|
|
|
|
function getDeptList() {
|
|
|
- post(api.getDeptListDept, { inputStr: "" }).then(res => {
|
|
|
+ post(api.getDeptList, {}).then(res => {
|
|
|
if (res.data.code == '0') {
|
|
|
const deptList = res.data.data
|
|
|
rendeDeptList(deptList)
|
|
@@ -411,7 +334,7 @@ function getDeptList() {
|
|
|
}
|
|
|
|
|
|
function rendeDeptList(deptList) {
|
|
|
- console.log(deptList)
|
|
|
+ //console.log(deptList)
|
|
|
let str = `<li class="deptItem ellipsis" 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>`
|
|
@@ -423,20 +346,14 @@ function rendeDeptList(deptList) {
|
|
|
function bindDeptSelect() {
|
|
|
$('.deptItem').on("click", function () {
|
|
|
const deptItemName = $(this).attr("data-name")
|
|
|
- const deptItemId = $(this).attr("data-id")
|
|
|
- deptIdTemp = deptItemId
|
|
|
- deptName = deptNamePram = deptNameTemp = deptItemName
|
|
|
-
|
|
|
+ global_deptId = $(this).attr("data-id")
|
|
|
if (deptItemName.length > 10) {
|
|
|
- $('.selectDept').val(deptItemName.substring(0, 8) + '...')
|
|
|
+ $('.selectDept').text(deptItemName.substring(0, 8) + '...')
|
|
|
} else {
|
|
|
- $('.selectDept').val(deptItemName)
|
|
|
-
|
|
|
+ $('.selectDept').text(deptItemName)
|
|
|
}
|
|
|
- console.log($('.selectDept').val(deptItemName))
|
|
|
- $('.selectDept ').attr('title', deptItemName)
|
|
|
+ $('.selectDept ').text(deptItemName).attr('title', deptItemName)
|
|
|
$(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
- $('.selectDept').removeClass('unSelect')
|
|
|
$(".deptList").css("display", "none")
|
|
|
})
|
|
|
}
|