|
@@ -24,6 +24,9 @@ let docName = getUrlArgObjectNew("docName",srcUrl)||""
|
|
|
let startDateParam = getUrlArgObjectNew("startDate",srcUrl)||""
|
|
|
let endDateParam = getUrlArgObjectNew("endDate",srcUrl)||""
|
|
|
let defectName = getUrlArgObjectNew("defectName",srcUrl)||""
|
|
|
+let from = getUrlArgObjectNew("from",srcUrl)||""
|
|
|
+let isSingleReject = getUrlArgObjectNew("isSingleReject",srcUrl)||""
|
|
|
+let deptList = JSON.parse(getCookie("deptList"))||[]
|
|
|
|
|
|
$(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
$(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
@@ -101,8 +104,9 @@ function getTabData(activePage){
|
|
|
endDate: behosDateEnd, //出院日期--结束时间
|
|
|
casesEntryName: casesEntryName,
|
|
|
size: pageSize,
|
|
|
+ isReject: isSingleReject
|
|
|
}
|
|
|
- post(api.qcResultDefectList,param).then(res =>{
|
|
|
+ post(from==2?api.qcResultDefectListDept:api.qcResultDefectList,param).then(res =>{
|
|
|
if(res.data.code == '0'){
|
|
|
const data = res.data.data;
|
|
|
currentPage = data.current;
|
|
@@ -539,13 +543,19 @@ $(function() {
|
|
|
dateFormat:"yy/mm/dd"
|
|
|
}).datepicker( "setDate",endDate);
|
|
|
$(".filter").click(); //初始查询
|
|
|
- $(".partTitle .titlePic ").html(`<a class="consoleD" href="console.html">控制台 / </a><a class="consoleP" href="singleVeto.html?form=1">条目缺陷占比 / </a>缺陷详情`)
|
|
|
+ if(from==2){
|
|
|
+ $(".partTitle .titlePic ").html(`<a class="consoleD" href="deptConsole.html">控制台(科室) / </a><a class="consoleP" href="singleVeto.html?form=1">条目缺陷占比 / </a>缺陷详情`)
|
|
|
+
|
|
|
+ }else{
|
|
|
+ $(".partTitle .titlePic ").html(`<a class="consoleD" href="console.html">控制台 / </a><a class="consoleP" href="singleVeto.html?form=1">条目缺陷占比 / </a>缺陷详情`)
|
|
|
+
|
|
|
+ }
|
|
|
$(".partTitle .consoleD").click(function(){
|
|
|
$(".menu .page",parent.document).removeClass("active").eq(0).addClass("active");
|
|
|
$(".container",parent.document).addClass("console-cont");
|
|
|
})
|
|
|
$(".partTitle .consoleP").click(function(){
|
|
|
- $(parent.document).find("#contentIframe").attr("src",`./singleVeto.html?from=1`)
|
|
|
+ $(parent.document).find("#contentIframe").attr("src",`./singleVeto.html?from=${form}`)
|
|
|
|
|
|
})
|
|
|
});
|