|
|
|
@ -84,6 +84,7 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
|
|
|
|
import {queryDays,queryList} from "@/api/examination"; |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
@ -122,18 +123,24 @@ export default { |
|
|
|
selectArr:[], |
|
|
|
selectArr:[], |
|
|
|
selectDate:'', |
|
|
|
selectDate:'', |
|
|
|
today:'', |
|
|
|
today:'', |
|
|
|
isToday:'' |
|
|
|
isToday:'', |
|
|
|
|
|
|
|
hospitalId:'', |
|
|
|
|
|
|
|
startTime:'', |
|
|
|
|
|
|
|
endTime:'', |
|
|
|
|
|
|
|
cupCardNo:'' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
created() { |
|
|
|
this.getList() |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
|
|
|
|
|
this.hospitalId = this.$route.query.id; |
|
|
|
var WeekFirstDay=new Date(new Date()-(new Date().getDay()-1)*86400000); |
|
|
|
var WeekFirstDay=new Date(new Date()-(new Date().getDay()-1)*86400000); |
|
|
|
this.today = new Date().getDate(); |
|
|
|
this.today = new Date().getDate(); |
|
|
|
this.isToday = this.today; |
|
|
|
this.isToday = this.today; |
|
|
|
let year = new Date().getFullYear(); |
|
|
|
let year = new Date().getFullYear(); |
|
|
|
let month = new Date().getMonth() + 1 < 10 ? '0' + (new Date().getMonth() + 1) : new Date().getMonth() + 1 |
|
|
|
let month = new Date().getMonth() + 1 < 10 ? '0' + (new Date().getMonth() + 1) : new Date().getMonth() + 1 |
|
|
|
|
|
|
|
let month1 = new Date().getMonth() + 2 < 10 ? '0' + (new Date().getMonth() + 2) : new Date().getMonth() + 2; |
|
|
|
|
|
|
|
let lastDay = new Date(new Date().getFullYear(),new Date().getMonth() + 2,0).getDate(); |
|
|
|
this.selectDate = year + '-' + month + '-' + (this.today < 10 ? '0' + this.today : this.today); |
|
|
|
this.selectDate = year + '-' + month + '-' + (this.today < 10 ? '0' + this.today : this.today); |
|
|
|
for(var i = WeekFirstDay.getDate();i<= parseInt(WeekFirstDay.getDate()) + 6;i++){ |
|
|
|
for(var i = WeekFirstDay.getDate();i<= parseInt(WeekFirstDay.getDate()) + 6;i++){ |
|
|
|
this.weekArr.push(i) |
|
|
|
this.weekArr.push(i) |
|
|
|
@ -141,13 +148,37 @@ export default { |
|
|
|
var todayWeek = new Date().getDay(); |
|
|
|
var todayWeek = new Date().getDay(); |
|
|
|
this.weekData.map((item,index) =>{ |
|
|
|
this.weekData.map((item,index) =>{ |
|
|
|
if(index + 1 == todayWeek){ |
|
|
|
if(index + 1 == todayWeek){ |
|
|
|
// item = '今日' |
|
|
|
|
|
|
|
this.weekData[index] = '今日' |
|
|
|
this.weekData[index] = '今日' |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
this.startTime = year + '-' + month + '-' + this.today; |
|
|
|
|
|
|
|
this.endTime = year + '-' + month1 + '-' + lastDay; |
|
|
|
|
|
|
|
// this.getDays() |
|
|
|
|
|
|
|
this.cupCardNo = JSON.parse(sessionStorage.getItem('userInfo')).papersnumber; |
|
|
|
|
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
getDays(){ |
|
|
|
|
|
|
|
queryDays( |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
createDept:this.hospitalId, |
|
|
|
|
|
|
|
startTime:this.startTime, |
|
|
|
|
|
|
|
endTime:this.endTime |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
).then(res =>{ |
|
|
|
|
|
|
|
console.log(res) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
getList(){ |
|
|
|
getList(){ |
|
|
|
|
|
|
|
queryList( |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
createDept:this.hospitalId, |
|
|
|
|
|
|
|
apmDay:this.selectDate, |
|
|
|
|
|
|
|
cupCardNo:this.cupCardNo |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
).then(res =>{ |
|
|
|
|
|
|
|
console.log('列表===>',res ) |
|
|
|
|
|
|
|
}) |
|
|
|
this.examData.map(item =>{ |
|
|
|
this.examData.map(item =>{ |
|
|
|
item.examArr.map(item1 =>{ |
|
|
|
item.examArr.map(item1 =>{ |
|
|
|
item1.isSelect = false |
|
|
|
item1.isSelect = false |
|
|
|
@ -239,6 +270,7 @@ export default { |
|
|
|
name:'ExamProject', |
|
|
|
name:'ExamProject', |
|
|
|
params:{ |
|
|
|
params:{ |
|
|
|
time:this.selectDate, |
|
|
|
time:this.selectDate, |
|
|
|
|
|
|
|
createDept:this.hospitalId, |
|
|
|
selectArr:this.selectArr |
|
|
|
selectArr:this.selectArr |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|