| | |
| | | </el-form> |
| | | <el-button @click="submitForm" type="primary" :disabled="formLoading">拆机完成</el-button> |
| | | <el-button @click="dialogVisible = false">取 消</el-button> |
| | | |
| | | <!-- 医生拆机列表 --> |
| | | <ContentWrap> |
| | | <el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
| | | <el-table-column label="id" align="center" prop="id" /> |
| | | <el-table-column label="作业类型" align="center" prop="jobType" /> |
| | | <el-table-column label="医生编号" align="center" prop="docId" /> |
| | | <el-table-column label="医生名称" align="center" prop="docName" /> |
| | | <el-table-column label="设备编号" align="center" prop="devId" /> |
| | | <el-table-column label="患者编号" align="center" prop="patId" /> |
| | | <el-table-column label="患者名称" align="center" prop="patName" /> |
| | | <el-table-column |
| | | label="作业时间" |
| | | align="center" |
| | | prop="jobTime" |
| | | :formatter="dateFormatter" |
| | | width="180px" |
| | | /> |
| | | <el-table-column label="作业概要" align="center" prop="summary" /> |
| | | <el-table-column label="备注" align="center" prop="remark" /> |
| | | <el-table-column |
| | | label="创建时间" |
| | | align="center" |
| | | prop="createTime" |
| | | :formatter="dateFormatter" |
| | | width="180px" |
| | | /> |
| | | <el-table-column label="操作" align="center" min-width="120px"> |
| | | <template #default="scope"> |
| | | <el-button |
| | | link |
| | | type="primary" |
| | | @click="openForm('update', scope.row.id)" |
| | | v-hasPermi="['ecg:job-record:update']" |
| | | > |
| | | 编辑 |
| | | </el-button> |
| | | <el-button |
| | | link |
| | | type="danger" |
| | | @click="handleDelete(scope.row.id)" |
| | | v-hasPermi="['ecg:job-record:delete']" |
| | | > |
| | | 删除 |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- 分页 --> |
| | | <Pagination |
| | | :total="total" |
| | | v-model:page="queryParams.pageNo" |
| | | v-model:limit="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | </ContentWrap> |
| | | |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | |
| | | import { DevRentApi, DevRentVO } from '@/api/ecg/devrent' |
| | | import {QueueVO} from "@/api/ecg/queue"; |
| | | import {isStringEmpty} from "@/utils/stringUtil"; |
| | | import {dateFormatter} from "@/utils/formatTime"; |
| | | import {JobRecordApi, JobRecordVO} from "@/api/ecg/jobrecord"; |
| | | |
| | | /** 装机拆机 表单 */ |
| | | defineOptions({ name: 'DevrDismantle' }) |
| | |
| | | // 发送操作成功的事件 |
| | | emit('success') |
| | | resetForm() |
| | | getList() |
| | | } finally { |
| | | formLoading.value = false |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | const loading = ref(true) // 列表的加载中 |
| | | const list = ref<JobRecordVO[]>([]) // 列表的数据 |
| | | const total = ref(0) // 列表的总页数 |
| | | const queryParams = reactive({ |
| | | pageNo: 1, |
| | | pageSize: 10, |
| | | jobType: 1, |
| | | docId: undefined, |
| | | docName: undefined, |
| | | devId: undefined, |
| | | patId: undefined, |
| | | patName: undefined, |
| | | jobTime: [], |
| | | summary: undefined, |
| | | remark: undefined, |
| | | createTime: [] |
| | | }) |
| | | /** 查询列表 */ |
| | | const getList = async () => { |
| | | loading.value = true |
| | | try { |
| | | const data = await JobRecordApi.getJobRecordDoctorPage(queryParams) |
| | | list.value = data.list |
| | | total.value = data.total |
| | | } finally { |
| | | loading.value = false |
| | | } |
| | | } |
| | | |
| | | /** 初始化 **/ |
| | | onMounted(() => { |
| | | getList() |
| | | }) |
| | | |
| | | </script> |
| | | |