| | |
| | | <el-form-item label="状态" prop="state"> |
| | | <el-select |
| | | v-model="queryParams.state" |
| | | multiple |
| | | placeholder="请选择状态" |
| | | clearable |
| | | class="!w-240px" |
| | | > |
| | | <el-option |
| | | v-for="dict in stateOptions" |
| | | v-for="dict in DevStateOptions" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | |
| | | <el-button |
| | | link |
| | | type="primary" |
| | | @click="showPatient(scope.row.rentId)" |
| | | v-hasPermi="['ecg:device:update']" |
| | | v-if= scope.row.rentId |
| | | > |
| | | 查患者 |
| | | </el-button> |
| | | <el-button |
| | | link |
| | | type="primary" |
| | | @click="openForm('update', scope.row.id)" |
| | | v-hasPermi="['ecg:device:update']" |
| | | > |
| | |
| | | @click="openForm('devState', scope.row.id)" |
| | | v-hasPermi="['ecg:device:update']" |
| | | > |
| | | 设备状态 |
| | | 改状态 |
| | | </el-button> |
| | | <el-button |
| | | link |
| | |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { ElMessageBox } from 'element-plus' |
| | | import {getStrDictOptions, DICT_TYPE, DictDataType} from '@/utils/dict' |
| | | import {dateFormatter2} from '@/utils/formatTime' |
| | | import {tranlateDevState} from "@/utils/statusFormatter"; |
| | | import {DevStateOptions, tranlateDevState} from "@/utils/statusFormatter"; |
| | | import download from '@/utils/download' |
| | | import {DeviceApi, DeviceVO, DevModelApi, OptionsVO} from '@/api/ecg/devmanage' |
| | | import DeviceForm from './DeviceForm.vue' |
| | | import {DevRentApi} from "@/api/ecg/devrent"; |
| | | |
| | | /** 设备 列表 */ |
| | | defineOptions({ name: 'Device' }) |
| | |
| | | purchaseDate: [], |
| | | createTime: [], |
| | | devId: undefined, |
| | | state: undefined, |
| | | state: [], |
| | | category: undefined, |
| | | brand: undefined, |
| | | model: undefined |
| | |
| | | handleQuery() |
| | | } |
| | | |
| | | const showPatient = async (rentId: number) => { |
| | | if (!rentId) return |
| | | |
| | | const devRent = await DevRentApi.getDevRent(rentId) |
| | | ElMessageBox.alert(devRent.patDetails, '患者信息'); |
| | | } |
| | | |
| | | /** 添加/修改操作 */ |
| | | const formRef = ref() |
| | | const openForm = (type: string, id?: number) => { |