|
@@ -2,7 +2,7 @@ const $ = require('jquery');
|
|
|
require("../css/qcListPerson.less");
|
|
|
require('./modal.js');
|
|
|
const {api} = require('./api.js')
|
|
|
-const {post,getUrlArgObject,getCookie,getUrlArgObjectNew,emptyBox,initScroll,listenScroll} = require('./utils.js')
|
|
|
+const {post,getUrlArgObject,getCookie,getUrlArgObjectNew,emptyBox,expJson,listenScroll,downloadExportedData,exportTimeLimit} = require('./utils.js')
|
|
|
require('./../resource/jquery-ui/jquery-ui.min.js');
|
|
|
require('./../resource/jquery-ui/jquery-ui.min.css');
|
|
|
const iconCheck= require("./../images/icon_check.png")
|
|
@@ -1120,5 +1120,68 @@ $(document).on("click", function(){
|
|
|
$(".qcSelectCheck .arrow").attr("src",iconDown)
|
|
|
})
|
|
|
|
|
|
+let radioCheck = 1;
|
|
|
$((function($){
|
|
|
-})($));
|
|
|
+ $('.export').click(function(){
|
|
|
+ const behosDateStartTime = new Date(behosDateStart).getTime()
|
|
|
+ const behosDateEndTime = new Date(behosDateEnd).getTime()
|
|
|
+ if(behosDateStartTime > behosDateEndTime){
|
|
|
+ $.alerModal({"message":'开始时间不能大于结束时间~',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
+ return
|
|
|
+ }
|
|
|
+ const param = {
|
|
|
+ behospitalCode: behospitalCode,
|
|
|
+ name: name, //条目名
|
|
|
+ level:level,//病历等级
|
|
|
+ deptId: deptId.trim(),
|
|
|
+ asc:data_asc, //升序
|
|
|
+ desc:data_desc, //降序
|
|
|
+ doctorName: doctorName,
|
|
|
+ "leaveHosDateStart": isPlacefile==1?behosDateStart:'', //出院日期--开始时间
|
|
|
+ "leaveHosDateEnd": isPlacefile==1?behosDateEnd:'', //出院日期--结束时间
|
|
|
+ "behosDateStart": isPlacefile==1?'':behosDateStart, //出院日期--开始时间
|
|
|
+ "behosDateEnd": isPlacefile==1?'':behosDateEnd, //出院日期--结束时间
|
|
|
+ size: 15,
|
|
|
+ statisticsType:statisticsType,
|
|
|
+ checkStatus: qcCheckStatus?Number(qcCheckStatus):qcCheckStatus, //病历核查状态
|
|
|
+ mrStatus: fpCheckStatus?Number(fpCheckStatus):fpCheckStatus, //首页核查状态(1:已核查,0:未核查)
|
|
|
+ chName: qcCheckName, //病历核查人员
|
|
|
+ diagnose: qcCheckMain, //病历核查人员
|
|
|
+ mrName: fpCheckName, //首页核查人员
|
|
|
+ chTimeStart: qcCheckDateStart.replace(/\//g,'-'), //病历核查起始时间
|
|
|
+ chTimeEnd: qcCheckDateEnd.replace(/\//g,'-'), //病历核查截止时间
|
|
|
+ mrTimeStart: fpCheckDateStart.replace(/\//g,'-'), //首页核查起始时间
|
|
|
+ mrTimeEnd: fpCheckDateEnd.replace(/\//g,'-'), //首页核查截止时间
|
|
|
+ }
|
|
|
+ $.alerModal({type:"radio",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
+ closeRadio()
|
|
|
+ radioSelect()
|
|
|
+ bindSaveColPort(param)
|
|
|
+ })
|
|
|
+})($));
|
|
|
+function closeRadio(){
|
|
|
+ $(".colSetBox .iconClose,.colSetBox .cancalColSet", parent.document ).off("click").on("click",function(){
|
|
|
+ $(".divModal",parent.document).html("")
|
|
|
+ })
|
|
|
+}
|
|
|
+function radioSelect(){
|
|
|
+ $(".selectDate", parent.document).click(function(){
|
|
|
+ $(this).find("input").prop("checked",true)
|
|
|
+ $(this).siblings().find("input").prop("checked",false)
|
|
|
+ })
|
|
|
+}
|
|
|
+function bindSaveColPort(param){
|
|
|
+ $(".savePort", parent.document ).off("click").on("click", function(){
|
|
|
+ radioCheck = $(".selectDate input[type='radio']:checked", parent.document).attr("data-select")
|
|
|
+ let time = radioCheck==2?exportTimeLimit.defectTime:exportTimeLimit.normalTime
|
|
|
+ if((new Date(behosDateEnd) - new Date(behosDateStart))/24/60/60/1000 > time){
|
|
|
+ $.alerModal({"message":`最多只能导出${time}天`,type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
+ return
|
|
|
+ }
|
|
|
+ param.radioCheck = radioCheck||1
|
|
|
+ expJson(api.exportQcresultByPerson,param).then(res =>{
|
|
|
+ $(".divModal",parent.document).html("")
|
|
|
+ downloadExportedData(res.data, behosDateStart.slice(0,10).replace(/-/g,"")+"-"+behosDateEnd.slice(0,10).replace(/-/g,"")+"抽查住院病历质量情况.xls")
|
|
|
+ })
|
|
|
+ })
|
|
|
+}
|