|
@@ -1137,8 +1137,11 @@ $(document).on("click", function(){
|
|
|
$(".fpSelectCheck .arrow").attr("src",iconDown)
|
|
|
$(".qcSelectCheck .arrow").attr("src",iconDown)
|
|
|
})
|
|
|
-$((function($){
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+let radioCheck = 1;
|
|
|
+$((function($){
|
|
|
$('.export').click(function(){
|
|
|
const behosDateStartTime = new Date(behosDateStart).getTime()
|
|
|
const behosDateEndTime = new Date(behosDateEnd).getTime()
|
|
@@ -1146,14 +1149,11 @@ $((function($){
|
|
|
$.alerModal({"message":'开始时间不能大于结束时间~',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
return
|
|
|
}
|
|
|
- if((new Date(behosDateEnd) - new Date(behosDateStart))/24/60/60/1000 > exportTimeLimit.normalTime){
|
|
|
- $.alerModal({"message":`最多只能导出${exportTimeLimit.normalTime}天`,type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
- return
|
|
|
- }
|
|
|
const param = {
|
|
|
"behospitalCode": behospitalCode,
|
|
|
"deptName": deptName=="全部"?"":deptName||"",
|
|
|
"deptId": deptId.trim(),
|
|
|
+ "radioCheck":radioCheck||1, //1:7天2:90天
|
|
|
"doctorCode":doctorNum,
|
|
|
"doctorName": doctorName,
|
|
|
"asc":data_asc, //升序
|
|
@@ -1175,8 +1175,35 @@ $((function($){
|
|
|
"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.exportQcList,param).then(res =>{
|
|
|
+ $(".divModal",parent.document).html("")
|
|
|
downloadExportedData(res.data, behosDateStart.slice(0,10).replace(/-/g,"")+"-"+behosDateEnd.slice(0,10).replace(/-/g,"")+"抽查住院病历质量情况.xls")
|
|
|
})
|
|
|
})
|
|
|
-})($));
|
|
|
+}
|