瀏覽代碼

优化代码? 恢复 bug

DESKTOP-0GD05B0\Administrator 2 年之前
父節點
當前提交
acd8bae203

+ 11 - 7
src/components/zhu-yuan-yi-sheng/jian-cha-shen-qing/TianJiaJianChaJianYan.vue

@@ -6,13 +6,15 @@
         <el-radio-button :label="2">个人模板</el-radio-button>
         <el-radio-button :label="3">科室模板</el-radio-button>
       </el-radio-group>
-      <div v-show="chaZhaoLeiXing === 1" style="height: 700px;overflow: auto">
-        <JyJcTree yjyc="jy" @nodeClick="nodeClick"/>
-      </div>
-      <div v-show="chaZhaoLeiXing !== 1">
-        <jy-jc-template-tree :data="templateData"
-                             @node-click="tempClick"
-                             @del-click="clickDeleteTemplate"/>
+      <div style=" overflow: auto" :style="{height: getWindowSize.h / 1.2 + 'px'}">
+        <div v-show="chaZhaoLeiXing === 1">
+          <JyJcTree yjyc="jy" @nodeClick="nodeClick"/>
+        </div>
+        <div v-show="chaZhaoLeiXing !== 1">
+          <jy-jc-template-tree :data="templateData"
+                               @node-click="tempClick"
+                               @del-click="clickDeleteTemplate"/>
+        </div>
       </div>
     </el-aside>
     <el-main>
@@ -125,6 +127,8 @@ import JyJcTree from "@/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/jy-jc-tree/JyJ
 import {xcMessage} from "@/utils/xiaochan-element-plus";
 import JyJcTemplateTree
   from "@/views/hospitalization/zhu-yuan-yi-sheng/jian-cha-jian-yan-shen-qing/JyJcTemplateTree.vue";
+import {getWindowSize} from '@/utils/window-size'
+
 
 const props = defineProps({
   jianCha: {

+ 3 - 1
src/components/zhu-yuan-yi-sheng/jian-cha-shen-qing/aside/NewApplication.vue

@@ -4,7 +4,7 @@
     <el-radio-button :label="2">个人模板</el-radio-button>
     <el-radio-button :label="3">科室模板</el-radio-button>
   </el-radio-group>
-  <div style="height: 700px;overflow: auto">
+  <div style=" overflow: auto" :style="{height: getWindowSize.h / 1.2 + 'px'}">
     <div v-show="chaZhaoLeiXing === 1">
       <JyJcTree yjyc="jc" @node-click="nodeClick"/>
     </div>
@@ -31,6 +31,7 @@ import {
 } from "@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng";
 import JyJcTemplateTree
   from "@/views/hospitalization/zhu-yuan-yi-sheng/jian-cha-jian-yan-shen-qing/JyJcTemplateTree.vue";
+import {getWindowSize} from "@/utils/window-size";
 
 const props = defineProps({
   returnItem: Function
@@ -38,6 +39,7 @@ const props = defineProps({
 
 const config = {value: 'code', label: 'name', children: 'children'}
 
+
 const chaZhaoLeiXing = ref(1)
 
 const newApplication = ref([])

+ 3 - 2
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/yz-edit/YzEditor.vue

@@ -11,7 +11,8 @@
       <button @click="duplicateAndPaste">复制并粘贴</button>
       <button @click="openTheOrderPopUpWindow">打开医嘱弹窗</button>
     </div>
-    <div class="editing_area" ref="editingAreaRef"
+    <div class="editing_area"
+         ref="editingAreaRef"
          :style="{color: isEdit ? '#0014fc' : ''}">
       <div class="yz_editor__disable" v-if="isEdit"></div>
       <div class="yz_input__box">
@@ -26,7 +27,7 @@
               :query-data-func="searchOrders"
               :current-key="yiZhuData.orderCode + yiZhuData.orderName"
               @rowClick="xuanZhongFeiYong">
-            <el-table-column label="说明书">
+            <el-table-column label="说明书" fixed="left">
               <template #default="{row}">
                 <el-button @click.stop="drugManual.open(row.orderCode,row.serial)"
                            :disabled="row.groupNo === '00'">

+ 2 - 11
src/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/Home.vue

@@ -3,9 +3,8 @@
     <div v-show="!isDualScreen">
       <emr-select-pat :pat-info="patientInfo" @selected="selected"/>
       住院号:
-      <el-input v-model="query.patNo" @keydown.enter="getMaxTimes" style="width: 120px"/>
-      次数 ({{ query.maxTimes }}) :
-      <el-input-number v-model="query.times" @keydown.enter="disPatients"/>
+      <el-input v-model="query.patNo" style="width: 120px"/>
+      次数 ({{ query.times }}) :
       <emr-leave-hospital-patient @rowClick="disPatients"/>
       <el-button @click="allPatientsInTheHospital">全院患者</el-button>
       <el-button @click="patientListDrawer = !patientListDrawer">患者列表</el-button>
@@ -64,14 +63,6 @@ let patientListDrawer = $ref(false)
 let isDualScreen = $ref(false)
 
 
-// 获取最大住院次数
-const getMaxTimes = () => {
-  getDischargeTimes(query.value.patNo).then((res) => {
-    query.value.times = res
-    query.value.maxTimes = res
-  })
-}
-
 const selected = ({inpatientNo, admissTimes}) => {
   query.value.patNo = inpatientNo
   query.value.times = admissTimes

+ 1 - 1
src/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/YiZhuLuRu.vue

@@ -21,7 +21,7 @@
       </button>
       <button @click="confirmAssociationClick">关联</button>
       <button @click="openRationalDrugUse">合理用药</button>
-      <button @click="allergen.open()">患者过敏信息维护</button>
+      <button @click="allergen.open()">患者过敏信息维护</button>
       <button @click="openDualScreen">双屏模式</button>
     </div>
     <div style="height: 5px"/>