|
@@ -362,8 +362,10 @@ $(function () {
|
|
|
$(this).parent().find("input").focus()
|
|
|
});
|
|
|
$('.export').click(function () {
|
|
|
- const start = new Date(startDateParam).getTime()
|
|
|
- const end = new Date(endDateParam).getTime()
|
|
|
+ const dateStatrt = getPickerDate($("#datepicker"), 1)
|
|
|
+ const dateEnd = getPickerDate($("#datepicker2"), 2)
|
|
|
+ const start = new Date(dateStatrt).getTime()
|
|
|
+ const end = new Date(dateEnd).getTime()
|
|
|
if (start > end) {
|
|
|
$.alerModal({ "message": '开始时间不能大于结束时间~', type: "tip", time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
|
|
|
return
|
|
@@ -376,9 +378,9 @@ $(function () {
|
|
|
"deptName": deptName == "全院" ? "" : (deptName || ""),
|
|
|
"deptId": deptId,
|
|
|
/*"type": statisticsType||2,*/ //1-本月,2-本年
|
|
|
- "startDate": startDateParam,
|
|
|
+ "startDate": start,
|
|
|
"isPlacefile": isPlacefile,
|
|
|
- "endDate": endDateParam
|
|
|
+ "endDate": end
|
|
|
};
|
|
|
const url = hospital == '台州市立' ? api.exportDeptFlawsTz : api.exportDeptFlaws;
|
|
|
expJson(api.doctorAverageStatisticsExport, param).then(res => {
|