|
@@ -58,13 +58,30 @@ $(function() {
|
|
|
|
|
|
//导出事件绑定
|
|
//导出事件绑定
|
|
$('.export').click(function(){
|
|
$('.export').click(function(){
|
|
- const param = getFilterParam();
|
|
|
|
- if(param.startDate > param.endDate){
|
|
|
|
|
|
+ //const param = getFilterParam();
|
|
|
|
+ const startDate = getPickerDate($("#datepicker"),1);
|
|
|
|
+ const endDate = getPickerDate($("#datepicker2"),2);
|
|
|
|
+ const param = {
|
|
|
|
+ "isPlacefile":isPlacefile,
|
|
|
|
+ "deptId": deptNameTemp=="全部"?"":deptIdTemp||"", //科室id
|
|
|
|
+ "casesName": caseNameTemp,
|
|
|
|
+ "entryName":$("#entryName").val(),
|
|
|
|
+ "deptName": deptNameTemp=="全部"?"":deptNameTemp||"",
|
|
|
|
+ "asc":"", //升序
|
|
|
|
+ "desc":"", //降序
|
|
|
|
+ "startDate":startDate,
|
|
|
|
+ "endDate":endDate,
|
|
|
|
+ "doctorName":$("#doctorName").val(),
|
|
|
|
+ "doctorId":$("#doctorId").val(),
|
|
|
|
+ current:1,
|
|
|
|
+ size:500
|
|
|
|
+ };
|
|
|
|
+ if(startDate > endDate){
|
|
$.alerModal({"message":'开始时间不能大于结束时间~',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
$.alerModal({"message":'开始时间不能大于结束时间~',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
return
|
|
return
|
|
}
|
|
}
|
|
expJson(api.getEntryDefectImproveByDeptExport,param).then(res =>{
|
|
expJson(api.getEntryDefectImproveByDeptExport,param).then(res =>{
|
|
- downloadExportedData(res.data,"条目缺陷改善统计(科室)"+startDateParam.substr(0,10).replace(/\//g,'')+"-"+endDateParam.substr(0,10).replace(/\//g,'')+".xls");
|
|
|
|
|
|
+ downloadExportedData(res.data,"条目缺陷改善统计(科室)"+startDate.substr(0,10).replace(/\//g,'')+"-"+endDate.substr(0,10).replace(/\//g,'')+".xls");
|
|
})
|
|
})
|
|
})
|
|
})
|
|
//给每一个标题绑定一个排序事件
|
|
//给每一个标题绑定一个排序事件
|
|
@@ -88,6 +105,8 @@ $(function() {
|
|
data_desc="totalNum"
|
|
data_desc="totalNum"
|
|
data_asc=""
|
|
data_asc=""
|
|
setDatePicker($("#datepicker"),$("#datepicker2"),2);
|
|
setDatePicker($("#datepicker"),$("#datepicker2"),2);
|
|
|
|
+ startDateParam=getPickerDate($("#datepicker"),1)
|
|
|
|
+ endDateParam=getPickerDate($("#datepicker2"),2)
|
|
$("#entryName,#doctorId,#doctorName").val("");
|
|
$("#entryName,#doctorId,#doctorName").val("");
|
|
$("th[code]").removeClass("desc asc");
|
|
$("th[code]").removeClass("desc asc");
|
|
$("th[code='totalNum']").addClass("desc");
|
|
$("th[code='totalNum']").addClass("desc");
|