此诊室包含多台设备,如同时勾选多个,被勾选设备将共同占用分配的名额。如需为设备单独分配名额,请单独勾选(推荐)
@@ -658,7 +658,10 @@
console.log('编辑')
GetDetailInfo(row.id)
}, 500)
-
+ } else if (activeZhenShi.value.id) {
+ //新增模式,默认选中左侧当前激活的排班
+ PlanInfo.value.resources_id = activeZhenShi.value.id
+ resourceChange()
}
}
@@ -940,6 +943,10 @@
loading.value = false
if (res.status) {
devicesList.value = res.data
+ //新增模式且服务组列表不为空时,默认选中第一个
+ if (PlanInfo.value.devices.length === 0 && res.data.length > 0) {
+ PlanInfo.value.devices = [res.data[0].id]
+ }
} else {
ElMessage.error(res.msg)
}