See999 4 yıl önce
ebeveyn
işleme
b3951fab7d

+ 31 - 16
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Dosyayı Görüntüle

@@ -1,13 +1,13 @@
1 1
 <template>
2
-  <div style="height: calc(100% - 36px);display: flex;flex-direction: column;">
3
-    <div style="border-top:1px solid #e5e5e5;margin-top:5px;">
2
+  <div style="height: calc(100% - 36px);display: flex;flex-direction: column;margin-top: 36px;">
3
+    <!-- <div style="border-top:1px solid #e5e5e5;margin-top:5px;">
4 4
       <div class="mainCell" style="margin-bottom:10px;float:right">
5 5
         <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">保存</el-button>
6 6
         <el-button size="small" @click="open(2)" type="primary">打印</el-button>
7 7
         <el-button size="small" @click="open(4)" type="primary">选择模板</el-button>
8 8
         <el-button size="small" @click="open(5)" type="primary">存模板</el-button>
9 9
       </div>
10
-    </div>
10
+    </div> -->
11 11
     <div class="backColor"></div>
12 12
     <div class="mainCenter">
13 13
       <div class="centerLeft">
@@ -100,20 +100,24 @@
100 100
           <p :class="rightTab == 2 ? 'activeP' : ''" @click="clickTab(2)">项目</p>
101 101
         </div>
102 102
         <template>
103
-          <!--<div style="margin-top:5px;">-->
104
-          <!--<el-input style="width:50%;" v-model="input" placeholder=""></el-input>-->
105
-          <!--<el-select style="float: right;width: 49%;" v-model="value" placeholder="">-->
106
-          <!--<el-option-->
107
-          <!--v-for="item in options"-->
108
-          <!--:key="item.value"-->
109
-          <!--:label="item.label"-->
110
-          <!--:value="item.value">-->
111
-          <!--</el-option>-->
112
-          <!--</el-select>-->
113
-          <!--</div>-->
114 103
           <div style="height:84%;overflow-y: auto;margin-bottom: 60px;" v-show="showOne">
115 104
             <el-tabs class="rightTabs" v-model="activeName">
116 105
               <el-tab-pane label="药品列表" name="1">
106
+                <div style="margin-bottom:5px;">
107
+                  <el-input style="width:50%;" v-model="input" placeholder=""></el-input>
108
+                  <el-select style="margin-right:5px;width:100px;" v-model="value" placeholder="" @change="changeKind">
109
+                    <el-option
110
+                      label="全部"
111
+                      value="0">
112
+                    </el-option>
113
+                    <el-option
114
+                      v-for="(item,index) in getDictionaryDataConfig('system','drug_type')"
115
+                      :key="index"
116
+                      :label="item.name"
117
+                      :value="item.id">
118
+                    </el-option>
119
+                  </el-select>
120
+                </div>
117 121
                 <el-table ref="multipleTable" :data="drugs" border @select='selectDrugs' style="width: 100%;"
118 122
                           :row-style="{ color: '#303133' }"
119 123
                           @select-all="changeAllGoodInfoTableData"
@@ -133,6 +137,17 @@
133 137
 
134 138
               </el-tab-pane>
135 139
               <el-tab-pane label="医嘱模板" name="2">
140
+                <div style="margin-bottom:5px;">
141
+                  <el-input style="width:50%;" v-model="input" placeholder=""></el-input>
142
+                  <el-select style="float: right;width: 49%;" v-model="value" placeholder="">
143
+                      <el-option
144
+                      v-for="item in options"
145
+                      :key="item.value"
146
+                      :label="item.label"
147
+                      :value="item.value">
148
+                      </el-option>
149
+                  </el-select>
150
+                </div>
136 151
                 <el-table ref="multipleTableTwo" :data="advices_template" border style="width: 100%;"
137 152
                           :row-style="{ color: '#303133' }"
138 153
                           :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
@@ -190,7 +205,7 @@
190 205
           </div>
191 206
 
192 207
           <div class="comfirmBox">
193
-            <div>
208
+            <!-- <div>
194 209
               <span>药品类型:</span>
195 210
               <el-select style="margin-right:5px;width:100px;" v-model="value" placeholder="" @change="changeKind">
196 211
                 <el-option
@@ -204,7 +219,7 @@
204 219
                   :value="item.id">
205 220
                 </el-option>
206 221
               </el-select>
207
-            </div>
222
+            </div> -->
208 223
             <el-button type="primary" size="small" @click="comfirm">确定添加</el-button>
209 224
           </div>
210 225
         </template>

+ 3 - 3
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue Dosyayı Görüntüle

@@ -1,13 +1,13 @@
1 1
 <template>
2
-  <div class="deskRecord">
3
-    <div style="overflow:hidden;border-top:1px solid #e5e5e5;margin-top:5px;">
2
+  <div class="deskRecord" style="margin-top:36px;">
3
+    <!-- <div style="overflow:hidden;border-top:1px solid #e5e5e5;margin-top:5px;">
4 4
       <div class="mainCell" style="margin-bottom:10px;float:right">
5 5
         <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">保存</el-button>
6 6
         <el-button size="small" @click="open(2)" type="primary">打印</el-button>
7 7
         <el-button size="small" @click="open(3)" type="primary">病历调用</el-button>
8 8
         <el-button size="small" @click="open(4)" type="primary">存模板</el-button>
9 9
       </div>
10
-    </div>
10
+    </div> -->
11 11
     <div class="backColor"></div>
12 12
     <div class="mainTitle">基本信息:</div>
13 13
     <el-form class="basicForm" :model="patientInfo" :rules="rules" ref="form" label-width="120px">

+ 61 - 4
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Dosyayı Görüntüle

@@ -22,8 +22,8 @@
22 22
             搜索
23 23
           </el-button>
24 24
         </div>
25
-        <div style="flex:1;overflow-y:auto;">
26
-          <el-table :data="patientTableData" @row-click='choosePatient' border style="width: 100%;"
25
+        <div>
26
+          <el-table :data="patientTableData" :height="tableHeight" @row-click='choosePatient' border style="width: 100%;"
27 27
                     :row-style="{ color: '#303133' }"
28 28
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
29 29
                     highlight-current-row
@@ -40,10 +40,22 @@
40 40
       </div>
41 41
       <div class="mainRight">
42 42
         <div class="mainHeader">
43
-          <el-radio-group v-model="titleType" @change="changeTab">
43
+          <el-radio-group class="titleBox" v-model="titleType" @change="changeTab">
44 44
             <el-radio-button label="处方"></el-radio-button>
45 45
             <el-radio-button label="病历"></el-radio-button>
46 46
           </el-radio-group>
47
+          <div class="mainCell fixedCell" style="float:right" v-if="titleType == '处方'">
48
+            <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">保存</el-button>
49
+            <el-button size="small" @click="open(2)" type="primary">打印</el-button>
50
+            <el-button size="small" @click="open(4)" type="primary">选择模板</el-button>
51
+            <el-button size="small" @click="open(5)" type="primary">存模板</el-button>
52
+          </div>
53
+          <div class="mainCell fixedCell" style="float:right" v-if="titleType == '病历'">
54
+            <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">保存</el-button>
55
+            <el-button size="small" @click="open(2)" type="primary">打印</el-button>
56
+            <el-button size="small" @click="open(3)" type="primary">病历调用</el-button>
57
+            <el-button size="small" @click="open(4)" type="primary">存模板</el-button>
58
+          </div>
47 59
         </div>
48 60
         <!--<desk-prescription ref="prescriptions"   :prescriptions="prescriptions" :patientInfo="patientInfo" :hisPatientInfo="hisPatientInfo"-->
49 61
         <!--v-if="titleType == '处方'" style="flex:1;"></desk-prescription>-->
@@ -76,6 +88,8 @@
76 88
     },
77 89
     data() {
78 90
       return {
91
+        tableHeight:'',
92
+        fullHeight: document.documentElement.clientHeight,
79 93
         prescriptions: [
80 94
           {
81 95
             name: '处方1',
@@ -307,8 +321,33 @@
307 321
       this.diagnoses = this.getDictionaryDataConfig('system', 'diagnose')
308 322
       this.other_sick = this.getDictionaryDataConfig('system', 'other_sick_history')
309 323
 
324
+      console.log('1222232434234',document.documentElement.clientHeight)
325
+      let tableHeight = document.body.clientHeight - 263
326
+      this.tableHeight = tableHeight
310 327
 
311
-
328
+    },
329
+    mounted(){
330
+      const that = this
331
+      window.onresize = () => {
332
+        return (() => {
333
+          window.fullHeight = document.documentElement.clientHeight
334
+          that.fullHeight = window.fullHeight
335
+        })()
336
+      }
337
+    },
338
+    watch: {
339
+      fullHeight (val) {
340
+        if(!this.timer) {
341
+          this.fullHeight = val
342
+          let tableHeight = val - 263
343
+          this.tableHeight = tableHeight
344
+          this.timer = true
345
+          let that = this
346
+          setTimeout(function (){
347
+            that.timer = false
348
+          },400)
349
+        }
350
+      }
312 351
     }
313 352
   }
314 353
 </script>
@@ -460,6 +499,24 @@
460 499
     align-items: center;
461 500
     justify-content: space-between;
462 501
   }
502
+  .mainHeader{
503
+    width:100%;
504
+    background: #fff;
505
+    position: fixed;
506
+    z-index: 100;
507
+    height: 36px;
508
+  }
509
+  .titleBox{
510
+    position: fixed;
511
+    z-index: 99;
512
+    background: #fff;
513
+  }
514
+  .fixedCell{
515
+    position: fixed;
516
+    z-index: 99;
517
+    right: 30px;
518
+    background: #fff;
519
+  }
463 520
 </style>
464 521
 
465 522
 <style lang="scss">