|
@@ -25,18 +25,19 @@ let srcUrl = $("#contentIframe",parent.document).attr("src")
|
|
|
let statisticsType = getUrlArgObjectNew("dateType",srcUrl)||getUrlArgObjectNew("shijian",srcUrl) || "3"
|
|
|
let chengdu = getUrlArgObjectNew("chengdu",srcUrl)||""
|
|
|
let deptIdPram = getUrlArgObjectNew("deptId",srcUrl)||""
|
|
|
-let deptNamePram = getUrlArgObjectNew("deptName",srcUrl)||""
|
|
|
-let docName = getUrlArgObjectNew("docName",srcUrl)||""
|
|
|
-let startDateParam = getUrlArgObjectNew("startDate",srcUrl)||""
|
|
|
-let endDateParam = getUrlArgObjectNew("endDate",srcUrl)||""
|
|
|
-let from = getUrlArgObjectNew("from",srcUrl)||""
|
|
|
+let deptNamePram = getUrlArgObjectNew("deptName",srcUrl)||"";
|
|
|
+let docName = getUrlArgObjectNew("docName",srcUrl)||"";
|
|
|
+let startDateParam = getUrlArgObjectNew("startDate",srcUrl)||"";
|
|
|
+let endDateParam = getUrlArgObjectNew("endDate",srcUrl)||"";
|
|
|
+let from = getUrlArgObjectNew("from",srcUrl)||"";
|
|
|
let defectName = getUrlArgObjectNew("defectName",srcUrl)||"";
|
|
|
let casesEntryId = getUrlArgObjectNew("casesEntryId",srcUrl)|| "";
|
|
|
let casesId = getUrlArgObjectNew("casesId",srcUrl)|| "";
|
|
|
-let ruleType = getUrlArgObjectNew("ruleType",srcUrl)||""
|
|
|
-let isSingleReject = getUrlArgObjectNew("isSingleReject",srcUrl)||""
|
|
|
-let fromDays = getUrlArgObjectNew("fromDays", srcUrl) || ""
|
|
|
-let deptListDept = JSON.parse(getCookie("deptList"))||[]
|
|
|
+let ruleType = getUrlArgObjectNew("ruleType",srcUrl)||"";
|
|
|
+let isSingleReject = getUrlArgObjectNew("isSingleReject",srcUrl)||"";
|
|
|
+let fromDays = getUrlArgObjectNew("fromDays", srcUrl) || "";
|
|
|
+let deptListDept = JSON.parse(getCookie("deptList"))||[];
|
|
|
+let improveType = getUrlArgObjectNew("improveType", srcUrl) || '';
|
|
|
|
|
|
let currentPage;
|
|
|
$(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
@@ -85,24 +86,42 @@ if(deptIdPram&&deptNamePram){
|
|
|
}
|
|
|
if(from==2){
|
|
|
$(".export").css('display','none')
|
|
|
- $(".partTitle .titlePic ").html(`<a class="consoleD" href="deptConsole.html">控制台(科室) / </a><a class="consoleP" href="singleVeto.html?from=1">条目缺陷占比 / </a>缺陷详情`)
|
|
|
+ $(".partTitle .titlePic ").html(`<a class="consoleD" href="deptConsole.html">控制台(科室) / </a><a class="consoleP" href="singleVeto.html?from=1">条目缺陷占比 / </a>缺陷列表`)
|
|
|
deptId=deptListDept[0]&&deptListDept[0].deptId;
|
|
|
deptName=deptListDept[0]&&deptListDept[0].deptName;
|
|
|
deptNameTemp=deptListDept[0]&&deptListDept[0].deptName;
|
|
|
deptIdTemp=deptListDept[0]&&deptListDept[0].deptId;
|
|
|
$('.selectDept').html(deptName)
|
|
|
}else if(from==3){
|
|
|
- $(".partTitle .titlePic ").html(`<a href="keyItemFlawControl.html">关键条目缺陷占比 / </a>缺陷详情`)
|
|
|
+ $(".partTitle .titlePic ").html(`<a href="keyItemFlawControl.html">关键条目缺陷占比 / </a>病历列表`)
|
|
|
}else if(from==4){
|
|
|
// $(".qcFiliterItem").css("display","none")
|
|
|
// 控制台 / 病案首页合格率占比 / 缺陷详情
|
|
|
// $(".partTitle .titlePic ").html(`<a class="consoleD" href="console.html">控制台 / </a><a class="consoleP" href="singleVeto.html?from=1">条目缺陷占比 / </a><a class="defectDetail" href="quexianDetailControlHome.html">缺陷详情 / </a>病历详情`)
|
|
|
- $(".partTitle .titlePic ").html(`<a class="consoleD" href="console.html">控制台 / </a><a class="consoleP" href="partDetailControl.html?from=1">病案首页合格率占比 / </a><a class="defectDetail" href="quexianDetailControlHome.html">缺陷详情 / </a>病历详情`)
|
|
|
+ $(".partTitle .titlePic ").html(`<a class="consoleD" href="console.html">控制台 / </a><a class="consoleP" href="partDetailControl.html?from=1">病案首页合格率占比 / </a><a class="defectDetail" href="quexianDetailControlHome.html">缺陷列表 / </a>病历列表`)
|
|
|
$(".defectDetail").on("click",function(){
|
|
|
$(parent.document).find("#contentIframe").attr("src","quexianDetailControlHome.html?deptName="+`${deptNamePram=="全部" ?"全院":deptNamePram}`+"&deptId="+deptIdPram+"&from=1&casesId=243"+"&shijian=3"+"&ruleType="+ruleType+"&startDateParam="+startDateParam+"&endDateParam="+endDateParam)
|
|
|
})
|
|
|
+}else if(from==9){
|
|
|
+ // 来自 各科室缺陷占比的跳转
|
|
|
+ $(".partTitle .titlePic ").html(`<a class="consoleD" href="console.html">控制台 / </a><a class="consoleP" href="deptScoreDetailControl.html?from=1">各科室缺陷占比 / </a><a class="defectDetail" href="quexianDetailControl.html">缺陷列表 / </a>病历列表`)
|
|
|
+ $(".defectDetail").on("click", function () {
|
|
|
+ $(parent.document).find("#contentIframe").attr("src", "quexianDetailControl.html?deptName=" + `${deptNamePram == "全部" ? "全院" : deptNamePram}` + "&deptId=" + deptIdPram + "&from=1&" + "&shijian=3" + "&startDateParam=" + startDateParam + "&endDateParam=" + endDateParam)
|
|
|
+ })
|
|
|
+} else if (from == 8 || from == 7) {
|
|
|
+ // 来自 质控核查统计的跳转
|
|
|
+ $(".partTitle .titlePic ").html(`<a class="consoleD" href="console.html">控制台 / </a><a class="consoleP" href="checkControl.html?from=1">质控核查统计 / </a>病历列表`)
|
|
|
+ $(".defectDetail").on("click", function () {
|
|
|
+ $(parent.document).find("#contentIframe").attr("src", "checkControl.html?deptName=" + `${deptNamePram == "全部" ? "全院" : deptNamePram}` + "&deptId=" + deptIdPram + "&from=1&" + "&shijian=3" + "&startDateParam=" + startDateParam + "&endDateParam=" + endDateParam)
|
|
|
+ })
|
|
|
+} else if (from == 6) {
|
|
|
+ // 来自 质控核查统计的跳转 ---改善数量的跳转
|
|
|
+ $(".partTitle .titlePic ").html(`<a class="consoleD" href="console.html">控制台 / </a><a class="consoleP" href="checkControl.html?from=1">质控核查统计 / </a>病历列表`)
|
|
|
+ $(".defectDetail").on("click", function () {
|
|
|
+ $(parent.document).find("#contentIframe").attr("src", "checkControl.html?deptName=" + `${deptNamePram == "全部" ? "全院" : deptNamePram}` + "&deptId=" + deptIdPram + "&from=1&" + "&shijian=3" + "&startDateParam=" + startDateParam + "&endDateParam=" + endDateParam)
|
|
|
+ })
|
|
|
}else{
|
|
|
- $(".partTitle .titlePic ").html(`<a class="consoleD" href="console.html">控制台 / </a><a class="consoleP" href="singleVeto.html?from=1">条目缺陷占比 / </a>缺陷详情`)
|
|
|
+ $(".partTitle .titlePic ").html(`<a class="consoleD" href="console.html">控制台 / </a><a class="consoleP" href="singleVeto.html?from=1">条目缺陷占比 / </a>病历列表`)
|
|
|
}
|
|
|
$(".partTitle .consoleD").click(function(){
|
|
|
//初始菜单选中
|
|
@@ -138,6 +157,30 @@ $("#filterToggler").click(function(){
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
+// 初始化请求列表接口
|
|
|
+function formatPostUrl(type) {
|
|
|
+ if(type==='2'){
|
|
|
+ return api.qcResultShortByDeptPage
|
|
|
+ } else if (type === '7' || type === '8'){
|
|
|
+ return api.qcCheckMRPage
|
|
|
+ } else if (type === '6') {
|
|
|
+ return api.hmImproveMRPage
|
|
|
+ }else{
|
|
|
+ return api.qcResultDefectList
|
|
|
+ }
|
|
|
+}
|
|
|
+// 初始化导出接口
|
|
|
+function formatExportUrl(type) {
|
|
|
+ if (type === '7' || type === '8') {
|
|
|
+ return api.qcCheckMRPageExport
|
|
|
+ } else if (type === '6') {
|
|
|
+ return api.hmImproveMRPageExport
|
|
|
+ }else {
|
|
|
+ // 默认导出接口
|
|
|
+ return api.qcResultShortPageExport
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
function getTabData(activePage){
|
|
|
// 判断是否是 住院超过31日病人数
|
|
|
let beHosGT31Days = null
|
|
@@ -147,7 +190,7 @@ function getTabData(activePage){
|
|
|
if (casesEntryId === 'undefined') {
|
|
|
casesEntryId = ""
|
|
|
}
|
|
|
- const param = {
|
|
|
+ let param = {
|
|
|
current:activePage,
|
|
|
behospitalCode: behospitalCode,
|
|
|
patName: name, //病人姓名
|
|
@@ -175,7 +218,18 @@ function getTabData(activePage){
|
|
|
mrTimeStart: fpCheckDateStart.replace(/\//g,'-'), //首页核查起始时间
|
|
|
mrTimeEnd: fpCheckDateEnd.replace(/\//g,'-'), //首页核查截止时间
|
|
|
}
|
|
|
- return post(from==2?api.qcResultShortByDeptPage:api.qcResultDefectList,param).then(res =>{
|
|
|
+ if (from == 9) {
|
|
|
+ param = { ...param, behDeptName: deptNamePram}
|
|
|
+ }
|
|
|
+ if (from == 7) {
|
|
|
+ param = { ...param, checkStatus: 1 }
|
|
|
+ }
|
|
|
+ if (from == 6) {
|
|
|
+ param = { ...param, improveType }
|
|
|
+ }
|
|
|
+
|
|
|
+ let url = formatPostUrl(from)
|
|
|
+ return post(url,param).then(res =>{
|
|
|
if(res.data.code == '0'){
|
|
|
const data = res.data.data;
|
|
|
tabList = data.records;
|
|
@@ -673,11 +727,14 @@ function renderTabTitle(data){
|
|
|
str += `<th class="textCenter ${item.val} ${item.val ==defaultOrder ? 'desc':''}" code="${item.val}">${item.name}</th>`
|
|
|
}
|
|
|
}
|
|
|
+ // <span class="setCol"><img class="iconSetting" src=${require('./../images/setting.png')} alt="关闭" />列设置</span>
|
|
|
let operStr=`<td colspan="${showNum+2}" style="background: #fff">
|
|
|
<div class="tabFoot">
|
|
|
<span class="scoreOpera" data-selectAll=false><img class="iconCheck" src="${iconUnCheck}" alt="checkbox">全选</span>
|
|
|
<span class="recordScoreBtn">评分</span>
|
|
|
- <span class="setCol"><img class="iconSetting" src=${require('./../images/setting.png')} alt="关闭" />列设置</span>
|
|
|
+ <span class="setCol">列设置</span>
|
|
|
+ <span class="tipIcon"><img class="toolTipIcon" src=${require('./../images/toolTip.png')} alt="关闭" /></span>
|
|
|
+ <span class="tooltip">可设置列的隐藏、显示及排序</span>
|
|
|
</div>
|
|
|
</td>`
|
|
|
$(".tabOpera").html(operStr)
|
|
@@ -687,14 +744,27 @@ function renderTabTitle(data){
|
|
|
bindRecordScoreBtn()
|
|
|
bindSetCol()
|
|
|
bindOrder()
|
|
|
+ bindToolTip()
|
|
|
+}
|
|
|
+function bindToolTip() {
|
|
|
+ $('.tipIcon').off("hover").hover(function () {
|
|
|
+ $('.tooltip').css('visibility', "visible")
|
|
|
+ }, function () {
|
|
|
+ $('.tooltip').css('visibility', "hidden")
|
|
|
+ })
|
|
|
}
|
|
|
-
|
|
|
function bindSetCol(){
|
|
|
$(".setCol").off("click").on("click", function(){
|
|
|
renderColSet(pageSetCopy)
|
|
|
})
|
|
|
+ $('.setCol').off("hover").hover(function () {
|
|
|
+ $('.setCol').css('color', '#00A1FF')
|
|
|
+ }, function () {
|
|
|
+ $('.setCol').css('color', '#777777')
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
+
|
|
|
function rendeDeptList(deptList){
|
|
|
let str = `<li class="deptItem ellipsis" data-id=" " data-name="全部">全部</li>`;
|
|
|
if(from == 2){
|
|
@@ -826,7 +896,7 @@ function renderColSet(list){
|
|
|
<div class='cloInfobox'>
|
|
|
<div class='cloInfoTitle'><span class='cloInfoTitleTxt'>列显示设置</span> <img class="iconClose" src=${require('./../images/icon_close_default.png')} alt="关闭" /></div>
|
|
|
<div class='cloInfo'></div>
|
|
|
- <div class='btnBox'> <span class='cancalColSet'>取消</span> <span class='saveColSet'>保存设置</span></div>
|
|
|
+ <div class='btnBox'><span class='defaultColSet'>恢复默认</span> <span class='cancalColSet'>取消</span> <span class='saveColSet'>保存设置</span></div>
|
|
|
</div>
|
|
|
</div>`
|
|
|
let infoStr = `<div class='colTabTitle' ><span class='colOpera toggleSelectColAll' data-select=${allSelect}>${allSelect ? `<img src=${iconCheck} />`:`<img src=${iconUnCheck} />`}全选</span><span class='colName'>列名</span></div><div class='colTabInfoBox' >`
|
|
@@ -857,10 +927,32 @@ function renderColSet(list){
|
|
|
bindSelectCol()
|
|
|
bindColOrder()
|
|
|
bindSaveColSet()
|
|
|
+ bindDefaultColset()
|
|
|
bindCloseColSet()
|
|
|
bindImgEnter()
|
|
|
}
|
|
|
|
|
|
+function bindDefaultColset() {
|
|
|
+ $('.defaultColSet', parent.document).off("hover").hover(function () {
|
|
|
+ $(this).css('color', '#00A1FF')
|
|
|
+ }, function () {
|
|
|
+ $(this).css('color', '#777777')
|
|
|
+ })
|
|
|
+ $('.defaultColSet', parent.document).off("click").on('click', function () {
|
|
|
+ return post(api.getDefaultPageSet, { pageType: 1 }).then(res => {
|
|
|
+ if (res.data.code == '0') {
|
|
|
+ pageSet = res.data.data
|
|
|
+ pageSetCopy = JSON.parse(JSON.stringify(pageSet))
|
|
|
+ renderColSet(pageSetCopy)
|
|
|
+ } else { }
|
|
|
+ }).catch((e) => {
|
|
|
+
|
|
|
+ })
|
|
|
+ // closeColSet()
|
|
|
+ })
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
function bindImgEnter(){
|
|
|
$(".pageSetUpBox img",parent.document).off("mouseenter").on("mouseenter",function(){
|
|
|
$(this).attr('src', goUpB)
|
|
@@ -1178,7 +1270,7 @@ $(function($){
|
|
|
if (fromDays && fromDays === "1") {
|
|
|
beHosGT31Days = 1
|
|
|
}
|
|
|
- const param = {
|
|
|
+ let param = {
|
|
|
behospitalCode: behospitalCode,
|
|
|
patName: name, //病人姓名
|
|
|
level:level,//病历等级
|
|
@@ -1205,8 +1297,22 @@ $(function($){
|
|
|
mrTimeStart: fpCheckDateStart.replace(/\//g,'-'), //首页核查起始时间
|
|
|
mrTimeEnd: fpCheckDateEnd.replace(/\//g,'-'), //首页核查截止时间
|
|
|
}
|
|
|
- expJson(api.qcResultShortPageExport,param).then(res =>{
|
|
|
+ let exportURL = formatExportUrl(from)
|
|
|
+ // console.log(exportURL,'exportURL导出接口');
|
|
|
+ if (from == 9) {
|
|
|
+ param = { ...param, behDeptName: deptNamePram }
|
|
|
+ }
|
|
|
+ if (from == 7) {
|
|
|
+ param = { ...param, checkStatus: 1 }
|
|
|
+ }
|
|
|
+ if (from == 6) {
|
|
|
+ param = { ...param, improveType }
|
|
|
+ }
|
|
|
+ expJson(exportURL,param).then(res =>{
|
|
|
downloadExportedData(res.data, $(".partTitle").text()+".xls")
|
|
|
})
|
|
|
+ // expJson(api.qcResultShortPageExport,param).then(res =>{
|
|
|
+ // downloadExportedData(res.data, $(".partTitle").text()+".xls")
|
|
|
+ // })
|
|
|
})
|
|
|
});
|