|
@@ -43,7 +43,9 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
|
- <el-button @click="handleQuery" style="margin-left: 2vw"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
|
|
|
|
|
|
|
+ <el-button @click="handleQuery" style="margin-left: 2vw"
|
|
|
|
|
+ ><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button
|
|
|
|
|
+ >
|
|
|
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
|
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
@@ -52,12 +54,9 @@
|
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
|
<ContentWrap>
|
|
<ContentWrap>
|
|
|
<div class="mb-10px">
|
|
<div class="mb-10px">
|
|
|
-
|
|
|
|
|
- <ButtonAdd @click="openForm(undefined)" />
|
|
|
|
|
|
|
+ <ButtonAdd @click="openForm(undefined)" />
|
|
|
<!-- <el-button @click="inputH" type="success"><Icon icon="fa:cloud-upload" :size="16" class="mr-1"/>导入</el-button>-->
|
|
<!-- <el-button @click="inputH" type="success"><Icon icon="fa:cloud-upload" :size="16" class="mr-1"/>导入</el-button>-->
|
|
|
-<!-- <ButtonImport @click="handleImportCard" />-->
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <!-- <ButtonImport @click="handleImportCard" />-->
|
|
|
</div>
|
|
</div>
|
|
|
<el-table v-loading="loading" :data="list" :header-cell-style="tableHeaderColor">
|
|
<el-table v-loading="loading" :data="list" :header-cell-style="tableHeaderColor">
|
|
|
<el-table-column header-align="center" align="center" label="序号" width="60">
|
|
<el-table-column header-align="center" align="center" label="序号" width="60">
|
|
@@ -68,37 +67,57 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- <el-table-column prop="elderName" header-align="center" align="center" label="长者姓名" min-width="150" show-overflow-tooltip/>
|
|
|
|
|
- <el-table-column prop="assessor" header-align="center" align="center" label="评估人" min-width="200" show-overflow-tooltip/>
|
|
|
|
|
- <el-table-column prop="assessDate" header-align="center" align="center" label="记录日期" min-width="200" show-overflow-tooltip/>
|
|
|
|
|
-
|
|
|
|
|
- <el-table-column prop="creator" header-align="center" align="center" label="记录人" min-width="200" show-overflow-tooltip/>
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- <el-table-column label="操作" align="center" width="200" >
|
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="elderName"
|
|
|
|
|
+ header-align="center"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ label="长者姓名"
|
|
|
|
|
+ min-width="150"
|
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
|
+ />
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="bedName"
|
|
|
|
|
+ header-align="center"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ label="床位号"
|
|
|
|
|
+ min-width="150"
|
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
|
+ />
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="assessor"
|
|
|
|
|
+ header-align="center"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ label="评估人"
|
|
|
|
|
+ min-width="200"
|
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
|
+ />
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="assessDate"
|
|
|
|
|
+ header-align="center"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ label="记录日期"
|
|
|
|
|
+ min-width="200"
|
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
|
+ />
|
|
|
|
|
+
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="creator"
|
|
|
|
|
+ header-align="center"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ label="记录人"
|
|
|
|
|
+ min-width="200"
|
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
|
+ />
|
|
|
|
|
+
|
|
|
|
|
+ <el-table-column label="操作" align="center" width="200">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <el-button
|
|
|
|
|
- link
|
|
|
|
|
- type="primary"
|
|
|
|
|
- @click="openFormEdit(scope.row, scope.row.id)"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-button link type="primary" @click="openFormEdit(scope.row, scope.row.id)">
|
|
|
编辑
|
|
编辑
|
|
|
</el-button>
|
|
</el-button>
|
|
|
- <el-button
|
|
|
|
|
- link
|
|
|
|
|
- type="warning"
|
|
|
|
|
- @click="openFormDetail(scope.row,scope.row.id)"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-button link type="warning" @click="openFormDetail(scope.row, scope.row.id)">
|
|
|
详情
|
|
详情
|
|
|
</el-button>
|
|
</el-button>
|
|
|
- <el-button
|
|
|
|
|
- link
|
|
|
|
|
- type="danger"
|
|
|
|
|
- @click="openClose(scope.row)"
|
|
|
|
|
- >
|
|
|
|
|
- 删除
|
|
|
|
|
- </el-button>
|
|
|
|
|
|
|
+ <el-button link type="danger" @click="openClose(scope.row)"> 删除 </el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -130,7 +149,6 @@
|
|
|
@cancel="showBatchExport = false"
|
|
@cancel="showBatchExport = false"
|
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
<Import
|
|
<Import
|
|
|
ref="importRef"
|
|
ref="importRef"
|
|
|
@success="getList"
|
|
@success="getList"
|
|
@@ -139,21 +157,20 @@
|
|
|
downloadUrl: 'elderly-service-order/get-import-template',
|
|
downloadUrl: 'elderly-service-order/get-import-template',
|
|
|
excelTempName: '居家工单-【导入】模板',
|
|
excelTempName: '居家工单-【导入】模板',
|
|
|
importUrl: '/elderly-service-order/import',
|
|
importUrl: '/elderly-service-order/import',
|
|
|
- failExportUrl: '',
|
|
|
|
|
|
|
+ failExportUrl: ''
|
|
|
}"
|
|
}"
|
|
|
/>
|
|
/>
|
|
|
-
|
|
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
-import AddForm from "./AddForm.vue";
|
|
|
|
|
-import ButtonAdd from "@/components/ButtonAdd/src/ButtonAdd.vue";
|
|
|
|
|
-import ButtonImport from "@/components/ButtonImport/src/ButtonImport.vue";
|
|
|
|
|
|
|
+import AddForm from './AddForm.vue'
|
|
|
|
|
+import ButtonAdd from '@/components/ButtonAdd/src/ButtonAdd.vue'
|
|
|
|
|
+import ButtonImport from '@/components/ButtonImport/src/ButtonImport.vue'
|
|
|
import { useUserStore } from '@/store/modules/user'
|
|
import { useUserStore } from '@/store/modules/user'
|
|
|
-import {formatTimestamp, getCurrentMonthRange} from "@/utils/dateUtil";
|
|
|
|
|
-import Import from "@/components/ImportFile/index.vue";
|
|
|
|
|
-import {restraintCreatePage, restraintDelete} from "@/api/elderly/nursing/keep-fit";
|
|
|
|
|
-import {perceptionDelete, perceptionPage} from "@/api/social-work";
|
|
|
|
|
|
|
+import { formatTimestamp, getCurrentMonthRange } from '@/utils/dateUtil'
|
|
|
|
|
+import Import from '@/components/ImportFile/index.vue'
|
|
|
|
|
+import { restraintCreatePage, restraintDelete } from '@/api/elderly/nursing/keep-fit'
|
|
|
|
|
+import { perceptionDelete, perceptionPage } from '@/api/social-work'
|
|
|
const message = useMessage() // 消息弹窗
|
|
const message = useMessage() // 消息弹窗
|
|
|
const { t } = useI18n() // 国际化
|
|
const { t } = useI18n() // 国际化
|
|
|
const userStore = useUserStore()
|
|
const userStore = useUserStore()
|
|
@@ -192,14 +209,13 @@ const inputH = () => {
|
|
|
}
|
|
}
|
|
|
// 打开导出弹窗
|
|
// 打开导出弹窗
|
|
|
const handleImportCard = async () => {
|
|
const handleImportCard = async () => {
|
|
|
-
|
|
|
|
|
// showBatchExport.value = true
|
|
// showBatchExport.value = true
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 处理批量导出
|
|
// 处理批量导出
|
|
|
const handleBatchExport = async (batch: number, count: number) => {
|
|
const handleBatchExport = async (batch: number, count: number) => {
|
|
|
exportLoading.value = true
|
|
exportLoading.value = true
|
|
|
- console.log(batch,count)
|
|
|
|
|
|
|
+ console.log(batch, count)
|
|
|
// try {
|
|
// try {
|
|
|
// let queryParams = {
|
|
// let queryParams = {
|
|
|
// pageNo: batch,
|
|
// pageNo: batch,
|
|
@@ -221,7 +237,6 @@ const handleBatchExport = async (batch: number, count: number) => {
|
|
|
// ]
|
|
// ]
|
|
|
// exportWithExpandedObjectArrays(list, headers, `医疗护理记录${formatToDateTime()}.xlsx`, '医疗护理记录')
|
|
// exportWithExpandedObjectArrays(list, headers, `医疗护理记录${formatToDateTime()}.xlsx`, '医疗护理记录')
|
|
|
// } catch (_) {}
|
|
// } catch (_) {}
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/** 查询列表 */
|
|
/** 查询列表 */
|
|
@@ -251,7 +266,7 @@ const resetQuery = () => {
|
|
|
queryParams.elderName = ''
|
|
queryParams.elderName = ''
|
|
|
queryParams.assessor = ''
|
|
queryParams.assessor = ''
|
|
|
queryParams.tenantIds = userStore.orgTenantId
|
|
queryParams.tenantIds = userStore.orgTenantId
|
|
|
- queryParams.assessDate= getCurrentMonthRange()
|
|
|
|
|
|
|
+ queryParams.assessDate = getCurrentMonthRange()
|
|
|
queryFormRef.value.resetFields()
|
|
queryFormRef.value.resetFields()
|
|
|
handleQuery()
|
|
handleQuery()
|
|
|
}
|
|
}
|
|
@@ -259,39 +274,34 @@ const resetQuery = () => {
|
|
|
/** 添加/修改操作 */
|
|
/** 添加/修改操作 */
|
|
|
const formRef = ref()
|
|
const formRef = ref()
|
|
|
const openForm = (id?: number) => {
|
|
const openForm = (id?: number) => {
|
|
|
- if(queryParams.tenantIds.length == 0 || queryParams.tenantIds.length > 1){
|
|
|
|
|
|
|
+ if (queryParams.tenantIds.length == 0 || queryParams.tenantIds.length > 1) {
|
|
|
message.error('新增只能选择一个机构')
|
|
message.error('新增只能选择一个机构')
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- formRef.value.open(queryParams.tenantIds[0], id,false)
|
|
|
|
|
|
|
+ formRef.value.open(queryParams.tenantIds[0], id, false)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const editRef = ref()
|
|
const editRef = ref()
|
|
|
const openFormEdit = (row: any = {}, id?: number) => {
|
|
const openFormEdit = (row: any = {}, id?: number) => {
|
|
|
- formRef.value.open(row.tenantId, id,false)
|
|
|
|
|
|
|
+ formRef.value.open(row.tenantId, id, false)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-const openFormDetail = (row: any = {},id?: number) => {
|
|
|
|
|
- formRef.value.open(row.tenantId,id,true)
|
|
|
|
|
|
|
+const openFormDetail = (row: any = {}, id?: number) => {
|
|
|
|
|
+ formRef.value.open(row.tenantId, id, true)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
const openClose = async (item) => {
|
|
const openClose = async (item) => {
|
|
|
try {
|
|
try {
|
|
|
- console.log("任务ID",item)
|
|
|
|
|
|
|
+ console.log('任务ID', item)
|
|
|
const res = await message.confirm('确定要删除吗?', '提示')
|
|
const res = await message.confirm('确定要删除吗?', '提示')
|
|
|
if (res == 'confirm') {
|
|
if (res == 'confirm') {
|
|
|
// 发起
|
|
// 发起
|
|
|
try {
|
|
try {
|
|
|
const res = await perceptionDelete(item.id)
|
|
const res = await perceptionDelete(item.id)
|
|
|
- if (res){
|
|
|
|
|
|
|
+ if (res) {
|
|
|
message.success(t('common.updateSuccess'))
|
|
message.success(t('common.updateSuccess'))
|
|
|
}
|
|
}
|
|
|
- }catch(err) {}
|
|
|
|
|
|
|
+ } catch (err) {}
|
|
|
}
|
|
}
|
|
|
// 刷新列表
|
|
// 刷新列表
|
|
|
await getList()
|
|
await getList()
|
|
@@ -314,7 +324,7 @@ const cancelDelete = async (id: number) => {
|
|
|
const route = useRoute()
|
|
const route = useRoute()
|
|
|
/** 初始化 **/
|
|
/** 初始化 **/
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
- if(route.query && route.query.elderName){
|
|
|
|
|
|
|
+ if (route.query && route.query.elderName) {
|
|
|
queryParams.elderName = route.query.elderName as string
|
|
queryParams.elderName = route.query.elderName as string
|
|
|
}
|
|
}
|
|
|
getList()
|
|
getList()
|