| | |
| | | |
| | | <script> |
| | | import { illness } from "@/api/count/disease"; |
| | | import { |
| | | getNewDateList, |
| | | } from "@/api/hosp/order"; |
| | | import moment from "moment"; |
| | | |
| | | export default { |
| | | name: "disease", |
| | |
| | | |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getdate(); |
| | | }, |
| | | methods: { |
| | | getdate() { |
| | | getNewDateList().then((res) => { |
| | | this.value1 = [ |
| | | moment(res.data).format("YYYY-MM-DD 00:00:00"), |
| | | moment(res.data).format("YYYY-MM-DD 23:59:00") |
| | | ];; |
| | | }); |
| | | }, |
| | | // 根据疾病名称查询相关人员信息 |
| | | |
| | | // 时间 |
| | |
| | | // 搜索 |
| | | submitForm() { |
| | | this.queryParams.pageNum = 1; |
| | | this.queryParams.beginTime = this.startTime[0]; |
| | | this.queryParams.endTime = this.startTime[1]; |
| | | if(this.value1){ |
| | | this.queryParams.beginTime = this.value1[0]; |
| | | this.queryParams.endTime = this.value1[1]; |
| | | }else if(this.value1 == null){ |
| | | this.queryParams.beginTime = null; |
| | | this.queryParams.endTime = null; |
| | | } else { |
| | | |
| | | this.queryParams.beginTime = this.startTime[0]; |
| | | this.queryParams.endTime = this.startTime[1]; |
| | | } |
| | | let disesseName = this.queryParams.disesseName; |
| | | if (disesseName) { |
| | | illness(this.queryParams).then(response => { |