Browse Source

体温脉搏阈值

lihong 1 year ago
parent
commit
3cd32000fd

+ 15 - 1
src/api/medical-advice/nursing-manage.js

@@ -242,5 +242,19 @@ export function getAllWards() {
     })
 }
 
+//查询体温脉搏范围
+export function queryTwMbRange() {
+    return request({
+        url: '/medicalAdvice/nursingManagement/queryTwMbRange',
+        method: 'get',
+    })
+}
 
-
+// 保存体温脉搏阈值
+export function saveTwMbRange(data) {
+    return request({
+        url: '/medicalAdvice/nursingManagement/saveTwMbRange',
+        method: 'post',
+        data,
+    })
+}

+ 63 - 0
src/components/medical-advice/nursing-manage/twMbEdit.vue

@@ -0,0 +1,63 @@
+<template>
+  <el-form :model="formData" label-width="120px">
+    <el-form-item label="体温范围">
+      <el-col :span="9">
+        <el-input v-model="formData.twStart" />
+      </el-col>
+      <el-col :span="4" class="text-center">
+        <span >至</span>
+      </el-col>
+      <el-col :span="9">
+        <el-input v-model="formData.twEnd"/>
+      </el-col>
+    </el-form-item>
+    <el-form-item label="脉搏范围">
+      <el-col :span="9">
+        <el-input v-model="formData.mbStart" />
+      </el-col>
+      <el-col :span="4" class="text-center">
+        <span >至</span>
+      </el-col>
+      <el-col :span="9">
+        <el-input v-model="formData.mbEnd"/>
+      </el-col>
+    </el-form-item>
+    <el-form-item>
+      <el-button type="primary" @click="saveTwMoData">保存</el-button>
+    </el-form-item>
+  </el-form>
+</template>
+<script setup >
+import {onMounted,computed,ref} from "vue"
+import {queryTwMbRange,saveTwMbRange
+} from "@/api/medical-advice/nursing-manage";
+const emit = defineEmits(['closeTwMb']);
+const formData = ref({
+  twStart:'',
+  twEnd:'',
+  mbStart:'',
+  mbEnd:''
+})
+
+onMounted(()=>{
+queryTwMbRange().then(res=>{
+  console.log(res)
+  formData.value.twStart= res.twStart
+  formData.value.twEnd= res.twEnd
+  formData.value.mbStart= res.mbStart
+  formData.value.mbEnd= res.mbEnd
+})
+})
+
+const saveTwMoData = ()=>{
+  saveTwMbRange(formData.value).then(res=>{
+    emit('closeTwMb',true)
+  })
+}
+</script>
+<style scoped lang="scss">
+.text-center{
+  text-align: center;
+}
+
+</style>

+ 9 - 0
src/views/medical-advice/nursing-manage/NursingRecord.vue

@@ -16,6 +16,7 @@
                     <el-button icon="Printer" type="success" @click="daYingClick">打印</el-button>
                     <el-button icon="Search" type="primary" @click="openPatientInfo">患者详情</el-button>
                     <el-button icon="Search" type="primary" @click="bingAnShouYe">病案首页信息</el-button>
+                  <el-button icon="Edit" type="success" @click="twMbDialog=true">修改体温脉搏阈值</el-button>
                 </div>
                 <div style="width: 100%;height: 40px;padding-left: 10px;">
                     <div style="float: left;margin-right: 10px;padding-top: 15px">
@@ -841,6 +842,9 @@
     <el-dialog v-model="hulidanDialogFlag"  title="编辑护理记录" draggable destroy-on-close="true" style="width: 75%;height: 750px; ">
             <FirstHuLiDan @refreshHuLidan="refreshHuLidan" :nursingRecordData="nursingRecordData" @closeHld="closeHld" ></FirstHuLiDan>
     </el-dialog>
+  <el-dialog v-model="twMbDialog"  title="编辑体温脉搏阈值" draggable  style="width: 300px">
+    <twMbEdit   @closeTwMb="closeTwMb" ></twMbEdit>
+  </el-dialog>
     <pat-infomation-dialog
             v-if="patientInfoDialog"
             @closed="patientInfoDialog = false"
@@ -854,6 +858,7 @@
 <script setup name='nursingRecord'>
 import PatientInfo from "@/components/medical-advice/PatientInfo.vue"
 import FirstHuLiDan from "@/components/medical-advice/nursing-manage/FirstHuLiDan.vue"
+import twMbEdit from "@/components/medical-advice/nursing-manage/twMbEdit.vue"
 import PatientBaseList from "@/components/medical-advice/PatientBaseList.vue"
 import {getLodop, initLodop} from '@/utils/c-lodop'
 import {onMounted,computed,ref} from "vue"
@@ -1035,6 +1040,10 @@ const openPatientInfo= async ()=>{
     patientInfoDialog.value =true
 }
 
+const twMbDialog = ref(false)
+const closeTwMb = ()=>{
+  twMbDialog.value = false
+}
 
 const hulidanDialogFlag=ref(false)
 //刷新护理单关闭窗口

+ 9 - 0
src/views/medical-advice/nursing-manage/ThreeTestList.vue

@@ -29,6 +29,7 @@
                 <el-button icon="Search" type="primary" @click="queryInfo">查询</el-button>
                 <el-button type="success" @click="saveThreeTestInfo">保存</el-button>
                 <el-button icon="Search" type="primary" @click="openPsInfo">皮试信息</el-button>
+              <el-button icon="Edit" type="success" @click="twMbDialog=true">修改体温脉搏阈值</el-button>
             </el-header>
             <el-main>
                     <el-tabs
@@ -246,10 +247,14 @@
     <el-dialog v-model="psDialogFlag"  title="皮试信息" destroy-on-close="true" style="width:75%;height:75% ">
         <PsInfo :patintList="allPatientList" :curWard="curWard"  :height="getWindowSize.h/1.2-140"></PsInfo>
     </el-dialog>
+  <el-dialog v-model="twMbDialog"  title="编辑体温脉搏阈值" draggable  style="width: 300px">
+    <twMbEdit   @closeTwMb="closeTwMb" ></twMbEdit>
+  </el-dialog>
 </template>
 
 <script setup name='ThreeTestList'>
 import PatientBaseList from "@/components/medical-advice/PatientBaseList.vue"
+import twMbEdit from "@/components/medical-advice/nursing-manage/twMbEdit.vue"
 import PsInfo from "@/views/medical-advice/nursing-manage/PsInfo.vue"
 import {queryThreeTestList,saveThreeTest,queyGm,saveGm,deleteYzTemperature,deleteYzTemperatureSum} from "@/api/medical-advice/nursing-manage";
 import { getFormatDatetime } from "@/utils/date";
@@ -276,6 +281,10 @@ const queryParam = ref({
     patientInfoList:[]
 })
 
+const twMbDialog = ref(false)
+const closeTwMb = ()=>{
+  twMbDialog.value = false
+}
 const openPsInfo = ()=>{
     psDialogFlag.value = true
 }