|
|
@@ -1,44 +1,53 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<div class="card-grid">
|
|
|
- <div
|
|
|
- @click="itemClick(card.id)"
|
|
|
- v-for="card in cards"
|
|
|
- :key="card.id"
|
|
|
- class="card-item"
|
|
|
- >
|
|
|
+ <div @click="itemClick(card.id)" v-for="card in cards" :key="card.id" class="card-item">
|
|
|
<h3>{{ card.title }}</h3>
|
|
|
<p>{{ card.content }}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <MarkCheckinBillsPaidForm ref="refMarkCheckinBillsPaid"/>
|
|
|
- <AddItemForm ref="addItemForm"/>
|
|
|
- <DeleteItemForm ref="deleteItemForm"/>
|
|
|
-
|
|
|
+ <Import
|
|
|
+ ref="importRef"
|
|
|
+ :config="{
|
|
|
+ title: '导入',
|
|
|
+ desc: '',
|
|
|
+ downloadUrl: '/elderlyHealthRecord/import-template',
|
|
|
+ excelTempName: '机构养老-【入住申请】模板',
|
|
|
+ importUrl: '/elderlyHealthRecord/importExcel',
|
|
|
+ failExportUrl: '/elderlyInfo/downErrorExcel'
|
|
|
+ }"
|
|
|
+ />
|
|
|
+
|
|
|
+ <MarkCheckinBillsPaidForm ref="refMarkCheckinBillsPaid" />
|
|
|
+ <AddItemForm ref="addItemForm" />
|
|
|
+ <DeleteItemForm ref="deleteItemForm" />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup lang="ts">
|
|
|
-import MarkCheckinBillsPaidForm from "./MarkCheckinBillsPaidForm.vue"
|
|
|
-import AddItemForm from "./AddItemForm.vue"
|
|
|
-import DeleteItemForm from "./DeleteItemForm.vue"
|
|
|
-import {useUserStore} from "@/store/modules/user";
|
|
|
+import MarkCheckinBillsPaidForm from './MarkCheckinBillsPaidForm.vue'
|
|
|
+import AddItemForm from './AddItemForm.vue'
|
|
|
+import DeleteItemForm from './DeleteItemForm.vue'
|
|
|
+import { useUserStore } from '@/store/modules/user'
|
|
|
import { getOtherFilesStatistics } from '@/api/elderly/elder/elderly-Info'
|
|
|
import { exportWithCustomHeaders } from '@/utils/excel-export'
|
|
|
import { ElLoading } from 'element-plus'
|
|
|
import { getUserGroupTenant } from '@/api/system/user'
|
|
|
+import Import from '@/components/ImportFile/index.vue'
|
|
|
|
|
|
const message = useMessage() // 消息弹窗
|
|
|
const userStore = useUserStore()
|
|
|
const refMarkCheckinBillsPaid = ref()
|
|
|
const addItemForm = ref()
|
|
|
const deleteItemForm = ref()
|
|
|
+const importRef = ref()
|
|
|
|
|
|
const cards = ref([
|
|
|
{ id: 0, title: '把入院账单设置成已缴费状态', content: '只操作本机构的,集团账号时不要操作' },
|
|
|
{ id: 1, title: '为长者增加月度费用', content: '只操作本机构的,集团账号时不要操作' },
|
|
|
{ id: 2, title: '为长者删除月度费用', content: '只操作本机构的,集团账号时不要操作' },
|
|
|
{ id: 3, title: '统计院区档案上传情况', content: '所有院区的档案上传情况统计' },
|
|
|
+ { id: 4, title: '导入床头卡信息', content: '导入健康档案信息' }
|
|
|
])
|
|
|
|
|
|
const handleExportStatistics = async () => {
|
|
|
@@ -53,9 +62,9 @@ const handleExportStatistics = async () => {
|
|
|
console.log('getUserGroupTenant 返回:', treeRes)
|
|
|
const tenantIds = treeRes.map((item: any) => item.orgTenantId)
|
|
|
console.log('tenantIds:', tenantIds)
|
|
|
-
|
|
|
+
|
|
|
fullscreenLoading.setText('正在导出,请稍候...')
|
|
|
-
|
|
|
+
|
|
|
const data = await getOtherFilesStatistics({ tenantIds: tenantIds.join(',') })
|
|
|
console.log('getOtherFilesStatistics 返回:', data)
|
|
|
if (data && data.length > 0) {
|
|
|
@@ -67,9 +76,8 @@ const handleExportStatistics = async () => {
|
|
|
return {
|
|
|
...item,
|
|
|
uploadedOtherFilesCount,
|
|
|
- emptyOtherFilesPercentage: totalCount > 0
|
|
|
- ? Number(((uploadedOtherFilesCount / totalCount) * 100).toFixed(2))
|
|
|
- : 0
|
|
|
+ emptyOtherFilesPercentage:
|
|
|
+ totalCount > 0 ? Number(((uploadedOtherFilesCount / totalCount) * 100).toFixed(2)) : 0
|
|
|
}
|
|
|
})
|
|
|
|
|
|
@@ -96,25 +104,28 @@ const handleExportStatistics = async () => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-const itemClick=(id:any)=>{
|
|
|
- switch (id){
|
|
|
+const itemClick = (id: any) => {
|
|
|
+ switch (id) {
|
|
|
case 0: //把入院账单设置成已缴费状态
|
|
|
refMarkCheckinBillsPaid.value.open(userStore.orgTenantId)
|
|
|
|
|
|
break
|
|
|
case 1: //增加月度费用
|
|
|
- addItemForm.value.open(undefined,false,"月度费用",undefined,userStore.orgTenantId)
|
|
|
+ addItemForm.value.open(undefined, false, '月度费用', undefined, userStore.orgTenantId)
|
|
|
|
|
|
break
|
|
|
case 2: //删除月度费用
|
|
|
- deleteItemForm.value.open(undefined,false,"月度费用",undefined,userStore.orgTenantId)
|
|
|
+ deleteItemForm.value.open(undefined, false, '月度费用', undefined, userStore.orgTenantId)
|
|
|
|
|
|
break
|
|
|
case 3: //各院档案及数据完整率
|
|
|
handleExportStatistics()
|
|
|
break
|
|
|
- }
|
|
|
+ case 4: //导入
|
|
|
+ importRef.value.open(userStore.orgTenantId[0])
|
|
|
|
|
|
+ break
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// const toMarkCheckinBillsPaid = async () => {
|
|
|
@@ -133,13 +144,8 @@ const itemClick=(id:any)=>{
|
|
|
// },500)
|
|
|
// }
|
|
|
// }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
</script>
|
|
|
<style scoped lang="scss">
|
|
|
-
|
|
|
.card-grid {
|
|
|
display: grid;
|
|
|
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); // 自动填充,最小250px
|