瀏覽代碼

'更新床位'

yaodeguang 4 天之前
父節點
當前提交
126417157c
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. 15 0
      src/views/medical-advice/patient-info/AdjustBed.vue

+ 15 - 0
src/views/medical-advice/patient-info/AdjustBed.vue

@@ -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