|
@@ -201,6 +201,11 @@
|
|
|
},
|
|
|
getDataList(isTurnPage) {
|
|
|
const param = this.getFilterItems(isTurnPage);
|
|
|
+ const {leaveHosDateStart,leaveHosDateEnd}=param;
|
|
|
+ if(leaveHosDateStart&&leaveHosDateEnd&&leaveHosDateStart>leaveHosDateEnd){
|
|
|
+ this.warning('开始时间不能大于结束时间');
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.searched = true;
|
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
@@ -209,13 +214,17 @@
|
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
|
});
|
|
|
api.getStdList(param).then((res) => {
|
|
|
- loading.close()
|
|
|
- let list = res.data.data.records
|
|
|
- this.list = list;
|
|
|
- this.total = res.data.data.total;
|
|
|
- if(this.inCurrentPage!==undefined){
|
|
|
- this.currentPage=this.inCurrentPage;
|
|
|
- this.inCurrentPage = undefined;
|
|
|
+ loading.close();
|
|
|
+ if(res.data.code==="0"){
|
|
|
+ let list = res.data.data.records;
|
|
|
+ this.list = list;
|
|
|
+ this.total = res.data.data.total;
|
|
|
+ if(this.inCurrentPage!==undefined){
|
|
|
+ this.currentPage=this.inCurrentPage;
|
|
|
+ this.inCurrentPage = undefined;
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ this.warning(res.data.msg||'操作失败');
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -275,6 +284,7 @@
|
|
|
this.clearFilter();
|
|
|
};
|
|
|
const {hospitalId,behospitalCode, deptId, name,date1,date2} = this.filter;
|
|
|
+ const {tranformDate} = utils;
|
|
|
const param = {
|
|
|
current: this.inCurrentPage||this.currentPage,
|
|
|
size: this.pageSize,
|
|
@@ -282,8 +292,8 @@
|
|
|
deptId,
|
|
|
name,
|
|
|
behospitalCode,
|
|
|
- leaveHosDateEnd:date2,
|
|
|
- leaveHosDateStart: date1
|
|
|
+ leaveHosDateEnd:tranformDate(date2,' 23:59:59'),
|
|
|
+ leaveHosDateStart: tranformDate(date1," 00:00:00")
|
|
|
};
|
|
|
return param;
|
|
|
},
|