|
|
|
|
@ -279,7 +279,38 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
|
|
actDateRange: [],
|
|
|
|
|
pickerOptions: {
|
|
|
|
|
shortcuts: [
|
|
|
|
|
{
|
|
|
|
|
text: "最近一周",
|
|
|
|
|
onClick(picker) {
|
|
|
|
|
const end = new Date();
|
|
|
|
|
const start = new Date();
|
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
|
|
|
picker.$emit("pick", [start, end]);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
text: "最近一个月",
|
|
|
|
|
onClick(picker) {
|
|
|
|
|
const end = new Date();
|
|
|
|
|
const start = new Date();
|
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
|
|
|
picker.$emit("pick", [start, end]);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
text: "最近三个月",
|
|
|
|
|
onClick(picker) {
|
|
|
|
|
const end = new Date();
|
|
|
|
|
const start = new Date();
|
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
|
|
|
|
picker.$emit("pick", [start, end]);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
//界面配置相关
|
|
|
|
|
//患者处方
|
|
|
|
|
tableHeader: [],
|
|
|
|
|
@ -301,6 +332,8 @@ export default {
|
|
|
|
|
billNo: null,
|
|
|
|
|
busType: null,
|
|
|
|
|
workPlaceCode: null,
|
|
|
|
|
startTime: null,
|
|
|
|
|
endTime: null,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10,
|
|
|
|
|
},
|
|
|
|
|
@ -401,9 +434,18 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
downloadData() {
|
|
|
|
|
if (this.filterQuery.workPlaceCode == null) {
|
|
|
|
|
return this.$message.error("请先选择工位")
|
|
|
|
|
// if (this.filterQuery.workPlaceCode == null) {
|
|
|
|
|
// return this.$message.error("请先选择工位")
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
if (this.actDateRange !== null) {
|
|
|
|
|
this.filterQuery.startTime = this.actDateRange[0];
|
|
|
|
|
this.filterQuery.endTime = this.actDateRange[1];
|
|
|
|
|
} else {
|
|
|
|
|
this.filterQuery.startTime = null;
|
|
|
|
|
this.filterQuery.endTime = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
downloadOrder(this.filterQuery).then(res => {
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
return this.$message.success(res.data)
|
|
|
|
|
@ -440,7 +482,13 @@ export default {
|
|
|
|
|
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
console.log(this.filterQuery)
|
|
|
|
|
if (this.actDateRange !== null) {
|
|
|
|
|
this.filterQuery.startTime = this.actDateRange[0];
|
|
|
|
|
this.filterQuery.endTime = this.actDateRange[1];
|
|
|
|
|
} else {
|
|
|
|
|
this.filterQuery.startTime = null;
|
|
|
|
|
this.filterQuery.endTime = null;
|
|
|
|
|
}
|
|
|
|
|
orderPage(this.filterQuery).then(res => {
|
|
|
|
|
this.loading = false
|
|
|
|
|
this.list = res.data.list || []
|
|
|
|
|
@ -454,6 +502,13 @@ export default {
|
|
|
|
|
,
|
|
|
|
|
getList2(_this) {
|
|
|
|
|
_this.loading = true;
|
|
|
|
|
if (_this.actDateRange !== null) {
|
|
|
|
|
_this.filterQuery.startTime = _this.actDateRange[0];
|
|
|
|
|
_this.filterQuery.endTime = _this.actDateRange[1];
|
|
|
|
|
} else {
|
|
|
|
|
_this.filterQuery.startTime = null;
|
|
|
|
|
_this.filterQuery.endTime = null;
|
|
|
|
|
}
|
|
|
|
|
orderPage(_this.filterQuery).then(res => {
|
|
|
|
|
_this.loading = false
|
|
|
|
|
_this.list = res.data.list || []
|
|
|
|
|
|