Browse Source

医嘱生成警告消息

lihong 1 week ago
parent
commit
0a03e1ca7c
1 changed files with 14 additions and 2 deletions
  1. 14 2
      src/views/medical-advice/execute-item/GenerateYz.vue

+ 14 - 2
src/views/medical-advice/execute-item/GenerateYz.vue

@@ -63,7 +63,7 @@ import {onMounted, ref} from "vue";
 import {getWindowSize} from "@/utils/window-size";
 import {getAllWards} from "@/api/zhu-yuan-yi-sheng/resident-doctor";
 import {queryGenerateYzList,generateYpOrZl} from "@/api/medical-advice/excute-item";
-import {ElTable} from "element-plus";
+import {ElTable,ElMessageBox} from "element-plus";
 import { getFormatDatetime } from "@/utils/date";
 const queryParam=ref({
   wardCode:'',
@@ -116,7 +116,19 @@ const yzGenerate = (ypOrZlFlag:any)=>{
     yzDate : queryParam.value.yzDate,
     ypOrZlFlag : ypOrZlFlag,
     zyActpatients :multipleSelection.value
-  }).then((res:any)=>{})
+  }).then((res:any)=>{
+       // 警告信息
+       if(res.length > 0){
+         for (let i = 0; i < res.length; i++) {
+           ElMessageBox.alert(`${res[i]}`,'警告信息',{
+             type: 'error',
+             showCancelButton: false,
+           }).then(() => {})
+         }
+       }
+
+
+  })
 }
 
 </script>