|
@@ -30,6 +30,7 @@
|
|
|
<el-button size="small" type="success" @click="saveBedInfo"
|
|
|
>保存
|
|
|
</el-button>
|
|
|
+ <el-button type="primary" @click="updateZyBedMi">更新床位</el-button>
|
|
|
<el-button type="primary" @click="openReceiveAdmDialog">入院接收</el-button>
|
|
|
<!-- <el-button type="primary" @click="clearBedInfo">清除床位信息</el-button>-->
|
|
|
<!-- <el-button type="primary" @click="addBedInfo">添加床位信息</el-button>-->
|
|
@@ -321,6 +322,7 @@ import { onMounted } from "vue";
|
|
|
import { stringNotBlank, stringIsBlank } from "@/utils/blank-utils";
|
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
import {
|
|
|
+ updateZyBedMiByZyActPatient,
|
|
|
confirmPreBed,
|
|
|
queryZyBedPreMsg,
|
|
|
getIdleBedNoList,
|
|
@@ -348,6 +350,19 @@ const openPrebedDialog = () => {
|
|
|
|
|
|
const preAdmList = ref([])
|
|
|
const receiveAdmVisible = ref(false);
|
|
|
+
|
|
|
+const updateZyBedMi = () => {
|
|
|
+ let msg = `是否确认更新床位?`
|
|
|
+ ElMessageBox.confirm(msg, '提示', {
|
|
|
+ type: "warning",
|
|
|
+ confirmButtonText: "确认",
|
|
|
+ }).then(() => {
|
|
|
+ updateZyBedMiByZyActPatient({wardCode: queryParam.wardCode}).then(res => {
|
|
|
+ refBedMiInfo()
|
|
|
+ })
|
|
|
+ }).catch(() => {})
|
|
|
+}
|
|
|
+
|
|
|
function openReceiveAdmDialog() {
|
|
|
queryPreAdmiss(queryParam.wardCode).then(res => {
|
|
|
preAdmList.value = res
|