|
@@ -2,7 +2,7 @@ const $ = require('jquery');
|
|
|
require("../css/qcListDept.less");
|
|
|
require('./modal.js');
|
|
|
const {api} = require('./api.js')
|
|
|
-const {post,getCookie,getUrlArgObjectNew,emptyBox} = require('./utils.js')
|
|
|
+const {post,getCookie,getUrlArgObjectNew,emptyBox,downloadExportedData,expJson} = 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")
|
|
@@ -605,4 +605,24 @@ $(document).on("click", function(){
|
|
|
})
|
|
|
|
|
|
$((function($){
|
|
|
+ $('.export').click(function(){
|
|
|
+ if((new Date(behosDateEnd) - new Date(behosDateStart))/24/60/60/1000 > 7){
|
|
|
+ $.alerModal({"message":"最多只能导出7天",type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
+ return
|
|
|
+ }
|
|
|
+ const param = {
|
|
|
+ "behospitalCode": behospitalCode,
|
|
|
+ "deptId": deptId,
|
|
|
+ "doctorCode":doctorNum,
|
|
|
+ "doctorName": doctorName,
|
|
|
+ "leaveHosDateEnd": behosDateEnd,
|
|
|
+ "leaveHosDateStart": behosDateStart,
|
|
|
+ "level": level,
|
|
|
+ "name": name
|
|
|
+ }
|
|
|
+ expJson(api.exportQcList,param).then(res =>{
|
|
|
+ downloadExportedData(res.data, behosDateStart.slice(0,10).replace(/-/g,"")+"-"+behosDateEnd.slice(0,10).replace(/-/g,"")+"抽查住院病历质量情况.xls")
|
|
|
+ })
|
|
|
+
|
|
|
+ })
|
|
|
})($));
|