|
@@ -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="下拉">`)
|
|
@@ -104,6 +105,18 @@ if(from==2){
|
|
|
$(".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>病历列表`)
|
|
|
}
|
|
@@ -141,6 +154,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
|
|
@@ -181,7 +218,15 @@ function getTabData(activePage){
|
|
|
if (from == 9) {
|
|
|
param = { ...param, behDeptName: deptNamePram}
|
|
|
}
|
|
|
- return post(from==2?api.qcResultShortByDeptPage:api.qcResultDefectList,param).then(res =>{
|
|
|
+ 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;
|
|
@@ -840,7 +885,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' >`
|
|
@@ -871,10 +916,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)
|
|
@@ -1192,7 +1259,7 @@ $(function($){
|
|
|
if (fromDays && fromDays === "1") {
|
|
|
beHosGT31Days = 1
|
|
|
}
|
|
|
- const param = {
|
|
|
+ let param = {
|
|
|
behospitalCode: behospitalCode,
|
|
|
patName: name, //病人姓名
|
|
|
level:level,//病历等级
|
|
@@ -1219,8 +1286,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")
|
|
|
+ // })
|
|
|
})
|
|
|
});
|