Commit e05996ce authored by 盖献康's avatar 盖献康

检查管理-设备下拉框

parent f3b44ec2
......@@ -72,6 +72,16 @@ export function listDeviceAll(query) {
params: query
})
}
// 查询设备列表用于检查管理-立即预约(没有分页)
export function deviceUseInSubscribeList(query) {
return request({
url: '/business/device/deviceUseInSubscribe',
method: 'get',
params: query
})
}
// 查询设备详细
export function getDevice(id) {
return request({
......
......@@ -171,7 +171,7 @@
<el-form-item label="设备" prop="registId">
<el-select v-model="form.shebei" clearable placeholder="请选择设备" @change="changeDeviceName">
<el-option
v-for="item in dict.type.exam_type"
v-for="item in selectableDevice"
:key="item.value"
:label="item.label"
:value="item.value"
......@@ -230,7 +230,7 @@
<script>
import { getManage, delManage, addManage, updateManage, listCheckManage } from '@/api/business/manage'
import { listDeviceAll, listReservationDevice } from '@/api/business/device'
import { deviceUseInSubscribeList, listReservationDevice } from '@/api/business/device'
export default {
name: 'MedicalRecordManagement',
......@@ -323,7 +323,9 @@ export default {
value: '2',
label: '预约外部服务'
}
]
],
// 设备下拉框
selectableDevice: []
}
},
created() {
......@@ -343,7 +345,7 @@ export default {
},
/** 获取所有设备用于设备下拉 */
getAllDevice() {
listDeviceAll().then(res => {
deviceUseInSubscribeList({ isPrivate: '1' }).then(res => {
console.log('设备下拉框', res)
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment