|
@@ -3,7 +3,7 @@ require("../css/quexianDetailHome.less");
|
|
|
require('./../resource/jquery-ui/jquery-ui.min.js');
|
|
|
require('./modal.js');
|
|
|
const {api} = require('./api.js')
|
|
|
-const {post,getCookie,getUrlArgObjectNew,emptyBox,setDatePicker,getPickerDate,initScroll,listenScroll} = require('./utils.js')
|
|
|
+const {post,getCookie,getUrlArgObjectNew,emptyBox,setDatePicker,getPickerDate,downloadExportedData,expJson,listenScroll} = require('./utils.js')
|
|
|
require('./../resource/jquery-ui/jquery-ui.min.js');
|
|
|
require('./../resource/jquery-ui/jquery-ui.min.css');
|
|
|
const switchIconOpen = require("./../images/btn_open.png")
|
|
@@ -13,12 +13,13 @@ const iconUp = require("./../images/arrow_up.png")
|
|
|
const arrowLeft= require("./../images/arrow_left.png")
|
|
|
const arrowRight = require("./../images/arrow_right.png")
|
|
|
listenScroll('.quexianDetailHome')
|
|
|
+let isPlacefile = getCookie('isPlacefile')||1
|
|
|
|
|
|
let casesId="", name="", isReject ="",deptName="", isUsed ="",ruleType="",casesIdTemp="", data_asc=[],data_desc=["casesName"],nameTemp="",casesIds="", isRejectTemp ="", isUsedTemp ="",from="",deptIdTemp="",deptItemId="",deptId=""
|
|
|
$(".selectModuleType").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
$(".selectReject").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
$(".selectUsed").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
-$(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
+// $(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
let deptList = JSON.parse(getCookie("deptList"))||[]
|
|
|
$(function(){
|
|
|
dateChange()
|
|
@@ -31,6 +32,7 @@ $(function(){
|
|
|
ruleType= getUrlArgObjectNew("ruleType",srcUrl)||""
|
|
|
let startDateParam = getUrlArgObjectNew("startDateParam",srcUrl)||""
|
|
|
let endDateParam = getUrlArgObjectNew("endDateParam",srcUrl)||""
|
|
|
+ $('.selectDefect').html(deptName).attr("title",deptName)
|
|
|
if(isReject == 1){
|
|
|
$(".monthYear .mon").css({
|
|
|
backgroundColor:'#00A1FF',
|
|
@@ -59,7 +61,7 @@ $(function(){
|
|
|
}
|
|
|
from = getUrlArgObjectNew("from",srcUrl)||""
|
|
|
if(from == 1){
|
|
|
- $(".partTitle .titlePic ").html(`<a class="consoleD" href="deptConsole.html">控制台(科室) / </a><a class="consoleP" href="partDetail.html">病案首页合格率占比 / </a>缺陷详情`)
|
|
|
+ $(".partTitle .titlePic ").html(`<a class="consoleD" href="deptConsole.html">控制台(科室) / </a><a class="consoleP" href="partDetailControlDept.html">病案首页合格率占比 / </a>缺陷列表`)
|
|
|
$(".partTitle .consoleD").click(function(){
|
|
|
focusMenuItem('YH-KZTKS')
|
|
|
$(".container",parent.document).addClass("console-cont");
|
|
@@ -68,7 +70,7 @@ $(function(){
|
|
|
focusMenuItem('YH-KSZR-BASYHGLZB_XQ')
|
|
|
})
|
|
|
}else{
|
|
|
- $(".partTitle .titlePic ").html(`<a class="consoleD" href="console.html">控制台(科室) / </a><a class="consoleP" href="deptScoreDetail.html">各科室缺陷占比 / </a>缺陷详情`)
|
|
|
+ $(".partTitle .titlePic ").html(`<a class="consoleD" href="console.html">控制台(科室) / </a><a class="consoleP" href="deptScoreDetail.html">各科室缺陷占比 / </a>缺陷列表`)
|
|
|
$(".partTitle .consoleD").click(function(){
|
|
|
focusMenuItem('YH-KZT')
|
|
|
$(".container",parent.document).addClass("console-cont");
|
|
@@ -119,7 +121,7 @@ function bindDeptSelect(){
|
|
|
$('.selectDept').html(deptItemName)
|
|
|
}
|
|
|
$('.selectDept ').attr('title',deptItemName)
|
|
|
- $(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
+ // $(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
|
|
|
$(".deptList").css("display", "none")
|
|
|
})
|
|
@@ -128,16 +130,16 @@ function bindDeptSelect(){
|
|
|
|
|
|
$('.selectDept').on("click", function(e){
|
|
|
e.stopPropagation()
|
|
|
- $(".levelList ").css("display","none")
|
|
|
- $(".selectLevel .arrow").attr("src",iconDown)
|
|
|
- const showList = $(".deptList ").css("display")
|
|
|
- if(showList == "none" ||!showList){
|
|
|
- $(".deptList ").css("display","block")
|
|
|
- $(".selectDept .arrow").attr("src",iconUp)
|
|
|
- }else{
|
|
|
- $(".deptList ").css("display", "none")
|
|
|
- $(".selectDept .arrow").attr("src",iconDown)
|
|
|
- }
|
|
|
+ // $(".levelList ").css("display","none")
|
|
|
+ // $(".selectLevel .arrow").attr("src",iconDown)
|
|
|
+ // const showList = $(".deptList ").css("display")
|
|
|
+ // if(showList == "none" ||!showList){
|
|
|
+ // $(".deptList ").css("display","block")
|
|
|
+ // $(".selectDept .arrow").attr("src",iconUp)
|
|
|
+ // }else{
|
|
|
+ // $(".deptList ").css("display", "none")
|
|
|
+ // $(".selectDept .arrow").attr("src",iconDown)
|
|
|
+ // }
|
|
|
})
|
|
|
|
|
|
//科室处理
|
|
@@ -315,8 +317,9 @@ function renderTab(data,activePage){
|
|
|
str += `
|
|
|
<tr data-id=${item.id} data-index=${i}>
|
|
|
<td class="textCenter">${(activePage-1)*15 + i+1}</td>
|
|
|
+ <td class="textCenter">${item.casesName}</td>
|
|
|
<td>${item.name}</td>
|
|
|
- <td class="textCenter">${item.num}</td>
|
|
|
+ <td class="textCenter canJump" data-ruleType="${item.ruleType}">${item.num}</td>
|
|
|
<td class="textCenter">${item.percentStr}</td>
|
|
|
</tr>
|
|
|
`
|
|
@@ -324,6 +327,12 @@ function renderTab(data,activePage){
|
|
|
$('.tbody').html(str?str:emptyBox())
|
|
|
bindEdit(data,activePage)
|
|
|
// initScroll("quexianDetailHome","Y",1)
|
|
|
+ $(".canJump").click(function(){
|
|
|
+ // let ruleType = $(this).attr("data-ruleType")
|
|
|
+ let index = $(this).parent().attr("data-index")
|
|
|
+ let defectName = data[index].name
|
|
|
+ $(parent.document).find("#contentIframe").attr("src","../qcListCopyDept.html?deptName="+deptName+"&deptId="+deptId+"&from=10&casesId=243"+"&shijian=3"+"&ruleType="+ruleType+"&startDate="+startDateParam+"&endDate="+endDateParam+"&defectName="+defectName)
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
function bindEdit(data,activePage){
|
|
@@ -584,4 +593,31 @@ $(function() {
|
|
|
$('.iconCalen').on("click", function(e){
|
|
|
$(this).parent().find("input").focus()
|
|
|
})
|
|
|
+
|
|
|
+ $('.exportData').click(function(){
|
|
|
+ const start = new Date(startDateParam).getTime()
|
|
|
+ const end = new Date(endDateParam).getTime()
|
|
|
+ if(start > end){
|
|
|
+ $.alerModal({"message":'开始时间不能大于结束时间~',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
+ return
|
|
|
+ }
|
|
|
+ const param = {
|
|
|
+ isPlacefile:isPlacefile,
|
|
|
+ type: 0, //1-本月,2-本年,0-自定义时间(现在 都是自定义时间,都会传具体时间进去)
|
|
|
+ name: name, //条目名
|
|
|
+ doctorName:docName||"",
|
|
|
+ deptName:deptName=="全院"?"":(deptName||""),
|
|
|
+ casesName:deptId||"",
|
|
|
+ casesId:casesIds||"",
|
|
|
+ ascs:data_asc,
|
|
|
+ descs:data_desc,
|
|
|
+ ruleType:ruleType||null,
|
|
|
+ size: 15,
|
|
|
+ "startDate":startDateParam,
|
|
|
+ "endDate":endDateParam
|
|
|
+ }
|
|
|
+ expJson(api.entryCountGroupByEntryExport,param).then(res =>{
|
|
|
+ downloadExportedData(res.data, "病案首页合格率占比 / 缺陷列表.xls")
|
|
|
+ })
|
|
|
+ })
|
|
|
});
|