|
@@ -24,6 +24,7 @@
|
|
import SearchBoxVue from './components/SearchBox2.vue'
|
|
import SearchBoxVue from './components/SearchBox2.vue'
|
|
import TableBoxVue from './components/TableBox2.vue'
|
|
import TableBoxVue from './components/TableBox2.vue'
|
|
import { errorDetailsListExport } from '@/api/excel'
|
|
import { errorDetailsListExport } from '@/api/excel'
|
|
|
|
+import { dateFormat, getDaysInMonth } from '@/utils'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -78,7 +79,8 @@ export default {
|
|
created() {
|
|
created() {
|
|
this.error_rule = this.$route.query.error_rule;
|
|
this.error_rule = this.$route.query.error_rule;
|
|
this.searchData.hospital_name = this.$route.query.hospital_name?this.$route.query.hospital_name:'';
|
|
this.searchData.hospital_name = this.$route.query.hospital_name?this.$route.query.hospital_name:'';
|
|
-
|
|
|
|
|
|
+ this.searchData.start_time = this.$route.query.start_time?this.$route.query.start_time:'';
|
|
|
|
+ this.searchData.end_time = this.$route.query.end_time?this.$route.query.end_time:'';
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -98,6 +100,12 @@ export default {
|
|
page,
|
|
page,
|
|
page_size: limit
|
|
page_size: limit
|
|
}
|
|
}
|
|
|
|
+ const { start_time, end_time } = this.searchData
|
|
|
|
+ const days = getDaysInMonth(end_time.slice(0, 4), end_time.slice(4, 6))
|
|
|
|
+ const dayStr = days < 10 ? `0${days}` : days
|
|
|
|
+ params.start_time = start_time.length === 8 ? start_time : `${start_time}01`
|
|
|
|
+ params.end_time = `${end_time.slice(0, 4)}${end_time.slice(4, 6)}${dayStr}`
|
|
|
|
+
|
|
if (this.sort.length) {
|
|
if (this.sort.length) {
|
|
params.sort = this.sort
|
|
params.sort = this.sort
|
|
}
|
|
}
|