XMLWAN 2 years ago
parent
commit
cec8426714

+ 8 - 0
src/api/dialysis_record.js View File

@@ -172,3 +172,11 @@ export function getInitPrintData(params) {
172 172
     params: params
173 173
   })
174 174
 }
175
+
176
+export function getInitPrintDataOne(params) {
177
+  return request({
178
+    url: '/api/getinitprintdateone',
179
+    method: 'get',
180
+    params: params
181
+  })
182
+}

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

@@ -945,7 +945,7 @@ export default {
945 945
       data['weight_after'] = this.form.weight_after ? parseFloat(this.form.weight_after) : 0
946 946
       data['weight_loss'] = this.form.weight_loss ? parseFloat(this.form.weight_loss) : 0
947 947
       data['temperature'] = this.form.temperature ? parseFloat(this.form.temperature) : 0
948
-      data['breathing_rate'] = this.form.temperature ? parseFloat(this.form.breathing_rate) : 0
948
+      data['breathing_rate'] = this.form.breathing_rate 
949 949
       data['systolic_blood_pressure'] = this.form.systolic_blood_pressure ? parseFloat(this.form.systolic_blood_pressure) : 0
950 950
       data['diastolic_blood_pressure'] = this.form.diastolic_blood_pressure ? parseFloat(this.form.diastolic_blood_pressure) : 0
951 951
       data['pulse_frequency'] = this.form.pulse_frequency ? parseFloat(this.form.pulse_frequency) : 0

+ 1 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

@@ -89,7 +89,7 @@
89 89
 
90 90
           <el-col :span="8">
91 91
             <el-form-item label="呼吸频率(次/分):" v-if="isShow('呼吸频率')">
92
-              <el-input type="number" v-model="assessmentBeforeDislysis.breathing_rate"></el-input>
92
+              <el-input  v-model="assessmentBeforeDislysis.breathing_rate"></el-input>
93 93
             </el-form-item>
94 94
           </el-col>
95 95
 

+ 4 - 15
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

@@ -2142,13 +2142,8 @@ export default {
2142 2142
           ? 0
2143 2143
           : parseFloat(this.form.temperature);
2144 2144
       this.form.pulse_frequency =
2145
-        parseFloat(this.form.pulse_frequency) == NaN
2146
-          ? 0
2147
-          : parseFloat(this.form.pulse_frequency);
2148
-      this.form.breathing_rated =
2149
-        parseFloat(this.form.breathing_rated) == NaN
2150
-          ? 0
2151
-          : parseFloat(this.form.breathing_rated);
2145
+      parseFloat(this.form.pulse_frequency) == NaN ? 0: parseFloat(this.form.pulse_frequency);
2146
+      this.form.breathing_rated = this.form.breathing_rated
2152 2147
       this.form.blood_flow_volume =
2153 2148
         parseFloat(this.form.blood_flow_volume) == NaN
2154 2149
           ? 0
@@ -2306,14 +2301,8 @@ export default {
2306 2301
               parseFloat(this.form.temperature) == NaN
2307 2302
                 ? 0
2308 2303
                 : parseFloat(this.form.temperature);
2309
-            this.form.pulse_frequency =
2310
-              parseFloat(this.form.pulse_frequency) == NaN
2311
-                ? 0
2312
-                : parseFloat(this.form.pulse_frequency);
2313
-            this.form.breathing_rated =
2314
-              parseFloat(this.form.breathing_rated) == NaN
2315
-                ? 0
2316
-                : parseFloat(this.form.breathing_rated);
2304
+            this.form.pulse_frequency =parseFloat(this.form.pulse_frequency) == NaN? 0 : parseFloat(this.form.pulse_frequency);
2305
+            this.form.breathing_rated = this.form.breathing_rated
2317 2306
             this.form.blood_flow_volume =
2318 2307
               parseFloat(this.form.blood_flow_volume) == NaN
2319 2308
                 ? 0

+ 1 - 1
src/xt_pages/dialysis/dialysisDoctorAdvice.vue View File

@@ -562,7 +562,7 @@ export default {
562 562
               console.log("wode 2o2o3o3o23o32o32o23o32o32o", this.project)
563 563
              
564 564
               let projectArr = []
565
-              if(this.org_id!= 10318){
565
+              if(this.org_id!= 10318 && this.org_id!=10265){
566 566
                 this.project.map(item => {
567 567
                   resp.data.hisAdvices.map(it => {
568 568
                     if(item.patient_id == it.patient_id){

+ 2 - 0
src/xt_pages/hospitalStation/doctorDesk.vue View File

@@ -72,7 +72,9 @@
72 72
                         <el-tab-pane label="电子处方" name="电子处方"></el-tab-pane>
73 73
                         <el-tab-pane label="透析记录" name="透析记录"></el-tab-pane>
74 74
                         <el-tab-pane label="电子病历" name="电子病历"></el-tab-pane>
75
+                       
75 76
                     </el-tabs>
77
+                   
76 78
                     <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子处方'">
77 79
                         <el-button size="small" ref="button_one" @click="open(1)" type="primary"
78 80
                                    v-loading="saveLoading">保存

+ 237 - 5
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -104,11 +104,15 @@
104 104
       </div>
105 105
       <div class="mainRight">
106 106
         <div class="mainHeader">
107
+          
107 108
           <el-tabs v-model="titleType" @tab-click="handleClick"
108 109
                    style="position: fixed;width: calc(100% - 490px);background:#fff;">
109 110
             <el-tab-pane label="电子处方" name="电子处方"></el-tab-pane>
110
-            <el-tab-pane label="透析记录" name="透析记录"></el-tab-pane>
111
+            <el-tab-pane label="透析记录" name="透析记录">
112
+           
113
+            </el-tab-pane>
111 114
             <el-tab-pane label="电子病历" name="电子病历"></el-tab-pane>
115
+           
112 116
           </el-tabs>
113 117
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子处方'">
114 118
             <el-button size="small" ref="button_one" @click="open(1)" type="primary"
@@ -138,6 +142,11 @@
138 142
             <el-button size="small" @click="opentwo(3)" type="primary">病历调用</el-button>
139 143
             <el-button size="small" @click="opentwo(4)" type="primary">存模板</el-button>
140 144
           </div>
145
+
146
+          <div class="mainCell fixedCellOne" style="float:right" v-if="titleType == '透析记录'">
147
+            <el-button size="small" ref="button_one" @click="printOrderOne" type="primary">打印上机单
148
+            </el-button>
149
+          </div>
141 150
         </div>
142 151
         <!--<desk-prescription ref="prescriptions"   :prescriptions="prescriptions" :patientInfo="patientInfo" :hisPatientInfo="hisPatientInfo"-->
143 152
         <!--v-if="titleType == '处方'" style="flex:1;"></desk-prescription>-->
@@ -168,7 +177,7 @@
168 177
         <!--<dialysis-index v-if="titleType == '透析记录'" :record_date="record_date" :patientid='patientid'></dialysis-index>-->
169 178
         <dialysis-index v-if="titleType == '透析记录'" :record_date="record_date" :patientid='patientid'
170 179
                         :dialysisShow="dialysisShow"></dialysis-index>
171
-
180
+       
172 181
       </div>
173 182
 
174 183
     </div>
@@ -310,7 +319,172 @@
310 319
       <recordPrint :patientid="patientid" ref="recordPrint">
311 320
     </recordPrint>
312 321
     </el-dialog>
322
+    
323
+    <el-dialog
324
+      :visible.sync="startVisibility"
325
+      :close-on-click-modal="false"
326
+      :close-on-press-escape="false"
327
+      :show-close="false"
328
+      width="30%"
329
+      >
330
+         <el-button
331
+            size="small"
332
+            icon="el-icon-printer"
333
+            type="primary"
334
+            @click="printAction"
335
+            style="float:right"
336
+            >打印</el-button
337
+          >
338
+       <div id="print_content">
339
+        <div class="print_main_content">
340
+          <div class="table_panel">
341
+             <div v-for="(main_collection,index) in printList" :key="index">
342
+              <div class="signPrint" style="width: 360px;font-size:16px;">
343
+                <div style="margin-left:50px;">姓名:
344
+                  <span>{{main_collection.patient.name}} </span>
345
+                  ({{ main_collection.patient.dialysis_no }},{{ main_collection.patient.age }}岁)
346
+                </div>
347
+                <div class="printCell" style="display:flex;justify-content: space-around;">
348
+                  <span style="display: block;width: 50%;">
349
+                    床号:{{ main_collection.number.number }}
350
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
351
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
352
+                    <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
353
+                  </span>
354
+                  <span style="display: block;width: 50%;">{{ printDate }}</span>
355
+                </div>
356
+                <div class="printCell" style="display:flex;justify-content: space-around;">
357
+                   <span style="display: block;width: 50%;">干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
358
+                    <span style="display: block;width: 50%;">抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
359
+
360
+                </div>
361
+                <div class="printCell" style="display:flex;justify-content: space-around;">
362
+                  <span style="display: block;width: 50%;">净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
363
+                  
364
+                  <span style="display: block;width: 50%;">
365
+                    首剂: <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
366
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">
367
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}mg
368
+                  </span>
369
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 3">
370
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
371
+                  </span>
372
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 4">
373
+                   {{main_collection.dialysissolution.anticoagulant_shouji}}mg
374
+                  </span>
375
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 5">
376
+                   {{main_collection.dialysissolution.anticoagulant_shouji}} mg
377
+                   </span>
378
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 6">
379
+                   {{main_collection.dialysissolution.anticoagulant_shouji}}iu
380
+                  </span>
381
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 7">
382
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
383
+                   </span>
384
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 8">
385
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
386
+                  </span>
387
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 9">
388
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
389
+                  </span>
390
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 10">
391
+                     {{main_collection.dialysissolution.anticoagulant_shouji}}iu
392
+                    </span>
393
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 11">
394
+                    {{main_collection.dialysissolution.anticoagulant_shouji}}iu
395
+                   </span>
396
+                    </span> 
397
+                 
398
+                </div>
399
+                <div class="printCell" style="display:flex;justify-content: space-around;">
400
+                  <span style="display: block;width: 50%;">体重增加:{{ (main_collection.assessmentbefor.weight_before - assessmentAfterDislysis.weight_after).toFixed(2) }}Kg</span>
401
+                 <span style="display: block;width: 50%;">
402
+                     维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
403
+                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">
404
+                    mg/h
405
+                  </span>
406
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">
407
+                    mg/h
408
+                  </span>
409
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 3">
410
+                   iu/h
411
+                  </span>
412
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 4">
413
+                    mg/h
414
+                  </span>
415
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 5">
416
+                    mg/h
417
+                   </span>
418
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 6">
419
+                   iu/h
420
+                  </span>
421
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 7">
422
+                   iu/h
423
+                   </span>
424
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 8">
425
+                    iu/h
426
+                  </span>
427
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 9">
428
+                    iu/h
429
+                  </span>
430
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 10">
431
+                    iu/h
432
+                    </span>
433
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 11">
434
+                    iu/h
435
+                   </span>
436
+                  </span>
437
+                
438
+                </div>
439
+                <div class="printCell" style="display:flex;justify-content: space-around;">
440
+                  <span style="display: block;width: 50%;">处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}L</span>
441
+                  <span style="display: block;width: 50%;">
442
+                    总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
443
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 1">
444
+                    mg
445
+                  </span>
446
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">
447
+                    mg
448
+                  </span>
449
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 3">
450
+                    iu
451
+                  </span>
452
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 4">
453
+                   mg
454
+                  </span>
455
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 5">
456
+                    mg
457
+                   </span>
458
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 6">
459
+                   iu
460
+                  </span>
461
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 7">
462
+                    iu
463
+                   </span>
464
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 8">
465
+                     iu
466
+                  </span>
467
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 9">
468
+                   iu
469
+                  </span>
470
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 10">
471
+                    iu
472
+                    </span>
473
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 11">
474
+                   iu
475
+                   </span>
476
+                  </span>
477
+                </div>
478
+              </div>
479
+            </div>
480
+          </div>
481
+        </div>
482
+      </div>
313 483
 
484
+      <span slot="footer" class="dialog-footer">
485
+        <el-button @click="startVisibility = false">取 消</el-button>
486
+      </span>
487
+    </el-dialog>
314 488
   </div>
315 489
 </template>
316 490
 
@@ -329,7 +503,7 @@ import treatPrint from './treatPrint'
329 503
 import recordPrint from './recordPrint'
330 504
 import checkPrint from './checkPrint'
331 505
 import dialysisIndex from './components/dialysisIndex'
332
-
506
+import {getInitPrintDataOne} from '@/api/dialysis_record'
333 507
 const moment = require('moment')
334 508
 
335 509
 export default {
@@ -423,7 +597,13 @@ export default {
423 597
       all_his_patients: [],
424 598
       checkVisible: false,
425 599
       current_tab: 'day',
426
-      org_id: 0
600
+      org_id: 0,
601
+      loading:false,
602
+      startVisibility:false,
603
+      assessmentAfterDislysis:{},
604
+      printList:[],
605
+      printDate:'',
606
+      anticoagulants_confit:null,
427 607
     }
428 608
   },
429 609
 
@@ -4990,11 +5170,53 @@ export default {
4990 5170
       })
4991 5171
 
4992 5172
     },
5173
+
4993 5174
     getInitDataOne(val){
4994 5175
       this.prescriptions = val
4995
-    }
5176
+    },
5177
+    printOrderOne(){
5178
+      this.getInitPrintData()
5179
+    },
5180
+    getInitPrintData(){
5181
+      const loading = this.$loading({
5182
+        lock: true,
5183
+        text: 'Loading',
5184
+        spinner: 'el-icon-loading',
5185
+        background: 'rgba(0, 0, 0, 0.7)'
5186
+       })
5187
+   
5188
+       var params = {
5189
+         patient_id:this.patientInfo.id,
5190
+         record_date:this.record_date,
5191
+       }
5192
+      console.log("param2332323233232222wode",params)
5193
+      getInitPrintDataOne(params).then(response=>{
5194
+        if(response.data.state == 1){
5195
+          var list = response.data.data.list
5196
+          var assessmentAfterDislysis =  response.data.data.assessmentAfterDislysis
5197
+          console.log("list2332322332",list)
5198
+          this.printList = list
5199
+          this.assessmentAfterDislysis = assessmentAfterDislysis
5200
+          this.startVisibility = true
5201
+          loading.close()
5202
+        }
5203
+      })
5204
+    },
5205
+    printAction: function() {
5206
+      const style = '@media print {.signPrint{margin-left:30px;} .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 180px;} @page {margin-top:10px;}}'
5207
+      const style1 = '@page {margin-top:10px;} @media print{}'
5208
+      printJS({
5209
+        printable: 'print_content',
5210
+        type: 'html',
5211
+        documentTitle: '',
5212
+        style: style1,
5213
+        scanStyles: false
5214
+      })
5215
+    },
4996 5216
   },
4997 5217
   created() {
5218
+    this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
5219
+    this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
4998 5220
     this.$nextTick(() => {
4999 5221
 
5000 5222
     })
@@ -5229,6 +5451,16 @@ p {
5229 5451
   display: flex;
5230 5452
   justify-content: space-between;
5231 5453
 }
5454
+
5455
+.fixedCellOne {
5456
+  position: fixed;
5457
+  z-index: 99;
5458
+  right: -180px;
5459
+  background: #fff;
5460
+  width: 300px;
5461
+  display: flex;
5462
+  justify-content: space-between;
5463
+}
5232 5464
 </style>
5233 5465
 
5234 5466
 <style lang="scss">