|
|
|
|
@ -455,19 +455,51 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
exports(){
|
|
|
|
|
download('/api/admin/chart/schedule-list-log','get',{
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 9999,
|
|
|
|
|
status:this.select.status,
|
|
|
|
|
nurse_name:this.select.nurse_name,
|
|
|
|
|
customer_name:this.select.customer_name,
|
|
|
|
|
address_name:this.select.address_name,
|
|
|
|
|
start_sign_in:this.select.start_sign_in,
|
|
|
|
|
end_sign_in:this.select.end_sign_in,
|
|
|
|
|
start_start_time:this.select.start_start_time,
|
|
|
|
|
end_start_time:this.select.end_start_time,
|
|
|
|
|
is_export:1
|
|
|
|
|
},`服务明细.xlsx`)
|
|
|
|
|
let pickYear = ''
|
|
|
|
|
const h = this.$createElement
|
|
|
|
|
this.$msgbox({
|
|
|
|
|
title: "导出年份选择",
|
|
|
|
|
message: h('div',[
|
|
|
|
|
h('el-date-picker',{
|
|
|
|
|
ref: "msgbox-date-picker",
|
|
|
|
|
props: {
|
|
|
|
|
type: "year",
|
|
|
|
|
value: pickYear,
|
|
|
|
|
"value-format": "yyyy"
|
|
|
|
|
},
|
|
|
|
|
on: {
|
|
|
|
|
['input']:e => {
|
|
|
|
|
pickYear = e
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs['msgbox-date-picker'].$el.children[0].value = e
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
]),
|
|
|
|
|
beforeClose: async (action, instance, done) => {
|
|
|
|
|
if (action === 'confirm') {
|
|
|
|
|
instance.confirmButtonLoading = true;
|
|
|
|
|
instance.confirmButtonText = '执行中...';
|
|
|
|
|
|
|
|
|
|
await download('/api/admin/chart/schedule-list-log','get',{
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 9999,
|
|
|
|
|
status:this.select.status,
|
|
|
|
|
nurse_name:this.select.nurse_name,
|
|
|
|
|
customer_name:this.select.customer_name,
|
|
|
|
|
address_name:this.select.address_name,
|
|
|
|
|
start_start_time: this.$moment(new Date(pickYear)).startOf('years').format('YYYY-MM-DD'),
|
|
|
|
|
end_start_time: this.$moment(new Date(pickYear)).endOf('years').format('YYYY-MM-DD'),
|
|
|
|
|
is_export:1
|
|
|
|
|
},`服务明细.xlsx`)
|
|
|
|
|
instance.confirmButtonLoading = false;
|
|
|
|
|
done();
|
|
|
|
|
} else {
|
|
|
|
|
done();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
reset() {
|
|
|
|
|
|