xy 2 years ago
parent bdaba001b0
commit aa569ce4de

@ -455,19 +455,51 @@ export default {
}, },
exports(){ exports(){
download('/api/admin/chart/schedule-list-log','get',{ let pickYear = ''
page: 1, const h = this.$createElement
page_size: 9999, this.$msgbox({
status:this.select.status, title: "导出年份选择",
nurse_name:this.select.nurse_name, message: h('div',[
customer_name:this.select.customer_name, h('el-date-picker',{
address_name:this.select.address_name, ref: "msgbox-date-picker",
start_sign_in:this.select.start_sign_in, props: {
end_sign_in:this.select.end_sign_in, type: "year",
start_start_time:this.select.start_start_time, value: pickYear,
end_start_time:this.select.end_start_time, "value-format": "yyyy"
is_export:1 },
},`服务明细.xlsx`) 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() { reset() {

Loading…
Cancel
Save