Explorar el Código

Merge branch '20230223_pad_vue_new_branch' of http://git.shengws.com/csx/Pad_New into 20230223_pad_vue_new_branch

28169 hace 3 meses
padre
commit
793d3af2ae

+ 300 - 183
src/pages/main/template/DialysisPrintOrderThirtyOne.vue Ver fichero

@@ -1,9 +1,8 @@
1 1
 <template>
2 2
   <div>
3 3
     <el-button type="primary" @click="checkData">一键核对</el-button>
4
-    <div id="dialysis-print-box-1">
5
-      <div
6
-        id="dialysis-print-box-1-1"
4
+    <div id="dialysis-print-box-1" >
5
+      <div id="dialysis-print-box-1-1" style="margin-left: 10px;"
7 6
         class="dialysis-print-order print-template-two print_page_main_content"
8 7
       >
9 8
       <!-- <div style="width:100%;text-align:center;">
@@ -29,7 +28,7 @@
29 28
               <div class="inline_block under_line" style="width:50px">{{ queryParams.xtdate.slice(8,11) }}</div>日
30 29
           </div>
31 30
           <div class="inline_block" style="margin-right:10px;">
32
-            姓名 
31
+            姓名
33 32
             <div class="inline_block under_line" style="width:80px;text-align: center;">
34 33
                 {{ patientInfo.name ? patientInfo.name : "" }}
35 34
             </div>
@@ -47,7 +46,7 @@
47 46
48 47
           </div>
49 48
           <div class="inline_block" style="margin-right:10px;">
50
-              机器编号 
49
+              机器编号
51 50
               <div class="inline_block under_line" style="width:80px;">
52 51
               {{ getNumber() }}
53 52
               </div>
@@ -59,7 +58,7 @@
59 58
         <div style="border-bottom: 2px solid #000;width:100%;"></div>
60 59
         <div class="row">
61 60
             <div class="inline_block" style="margin-right:30px;">
62
-              血液净化方式 
61
+              血液净化方式
63 62
               <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="!prescription.mode_id">
64 63
                 /
65 64
               </div>
@@ -125,22 +124,29 @@
125 124
               </div>
126 125
             </div>
127 126
             <div class="inline_block" style="margin-right:30px;">
128
-              血液净化器类型 
127
+              血液净化器类型
129 128
               <div class="inline_block under_line" style="width:150px;text-align: center;">
130 129
                   {{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : ''}}
131 130
               </div>
132 131
             </div>
133 132
             <div class="inline_block" style="margin-right:30px;">
134
-              透析液配方 
133
+              透析液配方
135 134
               <div class="inline_block under_line" style="width:150px;text-align: center;">
136 135
                   {{ prescription.dialysate_formulation_name ? prescription.dialysate_formulation_name : ''}}
137 136
               </div>
138 137
             </div>
139 138
         </div>
140 139
         <div class="row">
141
-          血管通路 
142
-          <div class="inline_block under_line" style="width:92%;text-align: left;">
143
-            <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('内瘘-右') > -1 ? true : false" showValue="内瘘"></label-box>
140
+          血管通路部位
141
+          <div class="inline_block under_line" style="width:200px;text-align: left;">
142
+            {{ predialysis.blood_access_part_id }}
143
+          </div>
144
+
145
+          血管通路
146
+          <div class="inline_block under_line" style="width:200px;text-align: left;">
147
+
148
+            {{ predialysis.blood_access_part_opera_name?predialysis.blood_access_part_opera_name:"/" }}
149
+            <!-- <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('内瘘-右') > -1 ? true : false" showValue="内瘘"></label-box>
144 150
             (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : false" showValue="左"></label-box>
145 151
                 <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-右') > -1 ? true : false" showValue="右"></label-box>)
146 152
             &nbsp;
@@ -154,6 +160,13 @@
154 160
             &nbsp;
155 161
             <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-股')>-1?true:predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-股')>-1?true:false" showValue="股"></label-box>
156 162
             &nbsp;
163
+
164
+            <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股静脉-左')>-1?true:predialysis.blood_access_part_opera_name.indexOf('股静脉-右')>-1?true:false" showValue="股静脉"></label-box>
165
+            (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股静脉-左') > -1 ? true : false" showValue="左"></label-box>
166
+                <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股静脉-右') > -1 ? true : false" showValue="右"></label-box>)
167
+            &nbsp;
168
+            <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-股')>-1?true:predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-股')>-1?true:false" showValue="股"></label-box>
169
+            &nbsp; -->
157 170
           </div>
158 171
         </div>
159 172
         <div class="row">
@@ -167,11 +180,14 @@
167 180
           </div>
168 181
         </div>
169 182
         <div class="row">
170
-          抗凝药物 
183
+          抗凝药物
171 184
           <div class="inline_block under_line" style="width:92%;text-align: left;">
172 185
             <label-box :isChecked="prescription.anticoagulant == '普通肝素' ? true : false" showValue="普通肝素"></label-box>&nbsp;
173 186
             <label-box :isChecked="prescription.anticoagulant == '甲磺酸萘莫司他' ? true : false" showValue="甲磺酸萘莫司他"></label-box>&nbsp;
174
-            <label-box :isChecked="prescription.anticoagulant == '低分子肝素钙' ? true : prescription.anticoagulant == '低分子肝素钠' ? true : false" showValue="低分子肝素"></label-box>
187
+            <label-box :isChecked="(prescription.anticoagulant == '低分子肝素钙'||
188
+                  prescription.anticoagulant == '低分子肝素钠'||
189
+                  prescription.anticoagulant == '低分子肝素') ? true : false" showValue="低分子肝素">
190
+            </label-box>&nbsp;
175 191
             (<label-box :isChecked="prescription.anticoagulant == '低分子肝素钙' ? true : false" showValue="钙"></label-box>
176 192
               <label-box :isChecked="prescription.anticoagulant == '低分子肝素钠' ? true : false" showValue="钠"></label-box>)
177 193
             <div class="inline_block">
@@ -185,7 +201,7 @@
185 201
               <span v-if="prescription.anticoagulant == '普通肝素'">mg</span>
186 202
               <span v-if="prescription.anticoagulant == '无肝素'">mg</span>
187 203
               <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu</span>
188
-              <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>&nbsp; 
204
+              <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>&nbsp;
189 205
             </div>
190 206
             <div class="inline_block">
191 207
               追加
@@ -198,7 +214,7 @@
198 214
               <span v-if="prescription.anticoagulant == '普通肝素'">mg/h</span>
199 215
               <span v-if="prescription.anticoagulant == '无肝素'">mg/h</span>
200 216
               <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu/h</span>
201
-              <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu/h</span>&nbsp; 
217
+              <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu/h</span>&nbsp;
202 218
             </div>
203 219
             <div class="inline_block">
204 220
               总量
@@ -265,7 +281,7 @@
265 281
             </div>
266 282
         </div>
267 283
         <div class="row">
268
-          透前评估 
284
+          透前评估
269 285
           <div class="inline_block under_line" style="width:50%;text-align: left;margin-right:30px;">
270 286
             <div class="inline_block" style="margin-right:30px;">
271 287
               体温
@@ -319,8 +335,10 @@
319 335
         <div class="row">
320 336
           上机医生
321 337
           <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
322
-            <span v-if="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) == ''"> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) }} </span>
323
-            <img style="height:30px;" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:''))" alt="" srcset="" v-else />
338
+            <span v-if="setAdminUserES(prescription==null?0:(prescription.creater?prescription.creater:'')) == ''">
339
+              {{ getAdminUser(prescription==null?0:(prescription.creater?prescription.creater:'')) }}
340
+            </span>
341
+            <img style="height:30px;" :src="setAdminUserES(prescription==null?0:(prescription.creater?prescription.creater:''))" alt="" srcset="" v-else />
324 342
           </div>
325 343
           冲管护士
326 344
           <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
@@ -461,10 +479,9 @@
461 479
                           </span>℃
462 480
                         </div>
463 481
                       </td>
464
-                      <!-- <td width="10" style="border:none;"></td> -->
465 482
 
466 483
                       <td width="50" style="border:none;padding-left:5px;">血压:</td>
467
-                      <td width="120" style="text-align:left;border:none;line-height: 30px;">
484
+                      <td width="150" style="text-align:left;border:none;line-height: 30px;">
468 485
                         <div>
469 486
                           <span class="under_line" style="width:100px;display:inline-block">
470 487
                             {{ afterdialysis.systolic_blood_pressure ? afterdialysis.systolic_blood_pressure : "" }}/
@@ -473,7 +490,7 @@
473 490
                         </div>
474 491
                       </td>
475 492
                       <td width="50" style="border:none;padding-left:5px">脉搏:</td>
476
-                      <td width="70" style="text-align:left;border:none;">
493
+                      <td width="120" style="text-align:left;border:none;">
477 494
                         <div>
478 495
                           <span class="under_line" style="width:50px;display:inline-block">
479 496
                             {{ afterdialysis.pulse_frequency ? afterdialysis.pulse_frequency : "" }}
@@ -481,7 +498,7 @@
481 498
                         </div>
482 499
                       </td>
483 500
                       <td width="70" style="border:none;padding-left:5px">透后症状:</td>
484
-                      <td width="100" style="text-align:left;border:none;">
501
+                      <td width="120" style="text-align:left;border:none;">
485 502
                         <div>
486 503
                           <span class="under_line" style="width:100px;display:inline-block">
487 504
                             {{ afterdialysis.symptom_after_dialysis ? afterdialysis.symptom_after_dialysis : "" }}
@@ -502,8 +519,8 @@
502 519
                           </span>L
503 520
                         </div>
504 521
                       </td>
505
-                      
506
-                      
522
+
523
+
507 524
                       <!-- <td width="50" style="text-align:left;border:none;"></td> -->
508 525
                       <!-- <td width="110" style="text-align:left;border:none;"></td> -->
509 526
                       <td width="120" style="border:none;padding-left:5px">透析期间进食:</td>
@@ -535,24 +552,29 @@
535 552
                     <tr>
536 553
                       <td width="90" style="border:none;padding-left:5px">透析器凝血:</td>
537 554
                       <td width="220" style="text-align:left;border:none;">
538
-                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器0') > -1 ? true : false) :false" showValue="0"></label-box>
539
-                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器+') > -1 ? true : false) :false" showValue="+"></label-box>
540
-                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器++') > -1 ? true : false) :false" showValue="+ +"></label-box>
541
-                        <label-box :isChecked="afterdialysis.cruor ? (afterdialysis.cruor.indexOf('透析器+++') > -1 ? true : false) :false" showValue="+ + +"></label-box>
555
+                        <span class="under_line" style="width:100px;display:inline-block">
556
+                          {{ afterdialysis.cruor ? afterdialysis.cruor : "/" }}
557
+                        </span>
542 558
                       </td>
543 559
                       <td width="90" style="border:none;padding-left:5px">静脉管道:</td>
544 560
                       <td width="220" style="text-align:left;border:none;">
545
-                        <label-box :isChecked="afterdialysis.intravenous_tube == 1 ? true : false" showValue="无"></label-box>&nbsp;
561
+                        <span class="under_line" style="width:100px;display:inline-block">
562
+                          {{  getintravenous(afterdialysis.intravenous_tube) }}
563
+                        </span>
564
+                        <!-- <label-box :isChecked="afterdialysis.intravenous_tube == 1 ? true : false" showValue="无"></label-box>&nbsp;
546 565
                         <label-box :isChecked="afterdialysis.intravenous_tube == 2 ? true : false" showValue="+"></label-box>&nbsp;
547 566
                         <label-box :isChecked="afterdialysis.intravenous_tube == 3 ? true : false" showValue="+ +"></label-box>&nbsp;
548
-                        <label-box :isChecked="afterdialysis.intravenous_tube == 4 ? true : false" showValue="+ + +"></label-box>&nbsp;
567
+                        <label-box :isChecked="afterdialysis.intravenous_tube == 4 ? true : false" showValue="+ + +"></label-box>&nbsp; -->
549 568
                       </td>
550 569
                       <td width="90" style="border:none;padding-left:5px">动脉管道:</td>
551 570
                       <td width="220" style="text-align:left;border:none;">
552
-                        <label-box :isChecked="afterdialysis.arterial_tube == 1 ? true : false" showValue="无"></label-box>&nbsp;
571
+                        <span class="under_line" style="width:100px;display:inline-block">
572
+                          {{ getarterial(afterdialysis.arterial_tube) }}
573
+                        </span>
574
+                        <!-- <label-box :isChecked="afterdialysis.arterial_tube == 1 ? true : false" showValue="无"></label-box>&nbsp;
553 575
                         <label-box :isChecked="afterdialysis.arterial_tube == 2 ? true : false" showValue="+"></label-box>&nbsp;
554 576
                         <label-box :isChecked="afterdialysis.arterial_tube == 3 ? true : false" showValue="+ +"></label-box>&nbsp;
555
-                        <label-box :isChecked="afterdialysis.arterial_tube == 4 ? true : false" showValue="+ + +"></label-box>&nbsp;
577
+                        <label-box :isChecked="afterdialysis.arterial_tube == 4 ? true : false" showValue="+ + +"></label-box>&nbsp; -->
556 578
                       </td>
557 579
                       <td></td>
558 580
                       <!-- <td width="10" style="text-align:left;border:none;"></td>
@@ -564,9 +586,9 @@
564 586
                   <tbody>
565 587
                     <tr style="height:30px;line-height:30px;">
566 588
                       <td width="50" style="border:none;padding-left:5px;">内瘘:</td>
567
-                      <td width="150" colspan="3" style="text-align:left;border:none;">
589
+                      <td width="400" colspan="3" style="text-align:left;border:none;">
568 590
                         <div>
569
-                          <span class="under_line" style="width:150px;display:inline-block;">
591
+                          <span class="under_line" style="width:300px;display:inline-block;">
570 592
                             {{ afterdialysis.internal_fistula ? afterdialysis.internal_fistula : "" }}
571 593
                           </span>
572 594
                         </div>
@@ -581,7 +603,7 @@
581 603
                           </span>
582 604
                         </div>
583 605
                       </td>
584
-                      <td></td>
606
+                      <!-- <td></td> -->
585 607
                       <!-- <td width="10" style="text-align:left;border:none;"></td>
586 608
                       <td width="110" style="text-align:left;border:none;"></td> -->
587 609
                       <!-- <td width="110" style="text-align:left;border:none;"></td> -->
@@ -590,13 +612,7 @@
590 612
                   </tbody>
591 613
                 </table>
592 614
               </td>
593
-              
594
-              
595 615
             </tr>
596
-              
597
-            
598
-            
599
-            
600 616
           </tbody>
601 617
         </table>
602 618
 
@@ -617,12 +633,10 @@
617 633
           </tr>
618 634
           <tr style="height:40px">
619 635
             <td rowspan="11" style="border:none;text-align:right;height:40px">
620
-              护士签名
636
+              护士签名:
621 637
               <span style="display: inline-block;width:100px;text-align: left;">
622
-                  <span v-if="orderForm.url === ''" style="display:flex;align-items:center;">{{ orderForm.start_nurse }}</span>
623
-                  <span v-if="orderForm.url !== ''" style="display:flex;align-items:center;height:36px;">
624
-                      <img :src="orderForm.url" style="height:30px;" />
625
-                  </span>
638
+                <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
639
+                <img class="es-img" style="height:30px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)" alt="" srcset="" v-else>
626 640
               </span>
627 641
               <!-- 二核护士
628 642
               <span style="display: inline-block;width:100px;text-align: left;">
@@ -639,25 +653,25 @@
639 653
                 </span>
640 654
                 <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt srcset v-else />
641 655
               </span> -->
642
-              </span>
643
-              医生签名
656
+              <!-- </span> -->
657
+              医生签名:
644 658
               <span style="display: inline-block;width:100px;text-align: left;">
645 659
                 &nbsp;
646
-                <span v-if="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) == ''"> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) }} </span>
647
-                <img style="height:30px;" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:''))" alt="" srcset="" v-else />
660
+                <span v-if="setAdminUserES(prescription==null?0:(prescription.creater?prescription.creater:'')) == ''">
661
+                  {{ getAdminUser(prescription==null?0:(prescription.creater?prescription.creater:'')) }}
662
+                </span>
663
+                <img style="height:30px;" :src="setAdminUserES(prescription==null?0:(prescription.creater?prescription.creater:''))" alt="" srcset="" v-else />
648 664
                 <!-- <span v-if="doctorForm.url === ''">{{ doctorForm.doctor }}</span>
649 665
                 <span v-if="doctorForm.url !== ''">
650 666
                   <img class="es-img" style="height:30px;" :src="doctorForm.url" />
651 667
                 </span> -->
652 668
               </span>
653
-              
654
-              
655 669
             </td>
656 670
           </tr>
657 671
         </table>
658 672
       </div>
659 673
     </div>
660
-  </div>  
674
+  </div>
661 675
 </template>
662 676
 
663 677
 <script>
@@ -799,141 +813,204 @@ export default {
799 813
         finish_nurse: '',
800 814
         url: ''
801 815
       },
802
-      displaceLiquiPartOptions: []
816
+      displaceLiquiPartOptions: [],
817
+      arterial_tube:[],
818
+      intravenous_tube:[],
803 819
     }
804 820
   },
805 821
   methods: {
806 822
     checkData(){
807
-      if(this.prescription.mode_id == ""){
808
-        this.$message.error('血液净化方式未填')
809
-      }else if(this.prescription.dialyzer_perfusion_apparatus == ""){
810
-        this.$message.error('血液净化器类型未填')
811
-      }else if(this.prescription.dialysate_formulation_name == ""){
812
-        this.$message.error('透析液配方未填')
813
-      }else if(this.predialysis.blood_access_part_opera_name == ''){
814
-        this.$message.error('血管通路未填')
815
-      }else if(this.predialysis.catheter == ''){
816
-        this.$message.error('透前导管未填')
817
-      }else if(this.predialysis.internal_fistula == ''){
818
-        this.$message.error('透前内瘘未填')
819
-      }else if(this.prescription.anticoagulant == 0){
820
-        this.$message.error('抗凝药物未填')
821
-      }else if(this.predialysis.dry_weight == 0){
822
-        this.$message.error('干体重未填')
823
-      }else if(this.predialysis.weight_before == 0){
824
-        this.$message.error('净化前体重未填')
825
-      }else if(this.prescription.target_ultrafiltration == 0){
826
-        this.$message.error('预设脱水未填')
827
-      }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
828
-        this.$message.error('净化时间未填')
829
-      }else if(this.afterdialysis.weight_after == 0){
830
-        this.$message.error('净化后体重未填')
831
-      }else if(this.afterdialysis.actual_ultrafiltration == 0){
832
-        this.$message.error('实际脱水未填')
833
-      }else if(this.prescription.conductivity == 0){
834
-        this.$message.error('电导度未填')
835
-      }else if(this.predialysis.temperature == ""){
836
-        this.$message.error('透前体温未填')
837
-      }else if(this.predialysis.pulse_frequency == ""){
838
-        this.$message.error('透前脉搏未填')
839
-      }else if(this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0){
840
-        this.$message.error('透前血压未填完整')
841
-      }else if(this.receiverTreatmentAccess.way == 0){
842
-        this.$message.error('入室方式未填')
843
-      }else if(this.predialysis.dialysis_count == 0){
844
-        this.$message.error('透析频次未填')
845
-      }else if(this.predialysis.symptom_before_dialysis == ""){
846
-        this.$message.error('透析前症状未填')
847
-      }else if(this.predialysis.edema == ""){
848
-        this.$message.error('水肿未填')
849
-      }else if(this.predialysis.is_hemorrhage == 1 && (this.predialysis.hemorrhage == "" && this.predialysis.hemorrhage_other == "")){
850
-        this.$message.error('出血未填')
851
-      }else if(this.receiverTreatmentAccess.precaution == ''){
852
-        this.$message.error('跌倒风险预防措施未填')
853
-      }else if(this.prescription.prescription_doctor == 0){
854
-        this.$message.error('上机医生未填')
855
-      }else if(this.dialysisOrder == null || this.dialysisOrder.washpipe_nurse == 0){
856
-        this.$message.error('冲管护士未填')
857
-      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
858
-        this.$message.error('穿刺者未填')
859
-      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
860
-        this.$message.error('上机护士未填')
861
-      }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
862
-        this.$message.error('下机护士未填')
863
-      }else if(this.afterdialysis.temperature == 0){
864
-        this.$message.error('透后体温未填')
865
-      }else if(this.afterdialysis.pulse_frequency == 0){
866
-        this.$message.error('透后脉搏未填')
867
-      }else if(this.afterdialysis.systolic_blood_pressure == 0 || this.afterdialysis.diastolic_blood_pressure == 0){
868
-        this.$message.error('透后血压未填完整')
869
-      }else if(this.afterdialysis.symptom_after_dialysis == ""){
870
-        this.$message.error('透后症状未填')
871
-      }else if(this.afterdialysis.actual_displacement == 0){
872
-        this.$message.error('实际置换量未填')
873
-      }else if(this.afterdialysis.is_eat == 0){
874
-        this.$message.error('透析期间进食未填')
875
-      }else if(this.predialysis.is_eat == 1 && this.predialysis.dialysis_during == 0){
876
-        this.$message.error('透析进食未填')
877
-      }else if(this.afterdialysis.cruor == ""){
878
-        this.$message.error('透析器凝血未填')
879
-      }else if(this.afterdialysis.arterial_tube == 0){
880
-        this.$message.error('动脉管道未填')
881
-      }else if(this.afterdialysis.intravenous_tube == 0){
882
-        this.$message.error('静脉管道未填')
883
-      }else if(this.afterdialysis.internal_fistula == ''){
884
-        this.$message.error('透后内瘘未填')
885
-      }else if(this.summary.dialysis_summary == ""){
886
-        this.$message.error('透析小结未填')
887
-      }else if(this.summary.special_record == ""){
888
-        this.$message.error('病情记录未填')
889
-      }else if(this.tableAdvice.length > 0){
890
-        let num = 0
891
-        if(this.tableAdvice.length > 0){
892
-          this.tableAdvice.map(item => {
893
-            if(item.id > 0 && (item.created_time || item.start_time)){
894
-              this.users.map(it => {
895
-                if(it.id == item.advice_doctor){
896
-                  if(it.user_type == 3){
897
-                    num++
898
-                    this.$message.closeAll()
899
-                    this.$message.error('存在不是医生保存的医嘱')
900
-                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
901
-                    if(it.user_type == 2){
902
-                      num++
903
-                      this.$message.closeAll()
904
-                      this.$message.error('存在不是护士执行的医嘱')
905
-                    }
906
-                  }else if(it.id == item.checker && item.checker > 0){
907
-                    if(it.user_type == 2){
908
-                      num++
909
-                      this.$message.closeAll()
910
-                      this.$message.error('存在不是护士核对的医嘱')
911
-                    }
912
-                  }
913
-                }else if(it.id == item.execution_staff && item.execution_staff > 0){
914
-                  if(it.user_type == 2){
915
-                    num++
916
-                    this.$message.closeAll()
917
-                    this.$message.error('存在不是护士执行的医嘱')
918
-                  }
919
-                }else if(it.id == item.checker && item.checker > 0){
920
-                  if(it.user_type == 2){
921
-                    num++
922
-                    this.$message.closeAll()
923
-                    this.$message.error('存在不是护士核对的医嘱')
924
-                  }
925
-                }
926
-              })
823
+      var checkDate =[]
824
+      var monearr = []
825
+      if(this.prescription.mode_id ==0){
826
+        const obj0 = '血液净化方式'
827
+        checkDate.push(obj0)
828
+      }
829
+      if(this.prescription.dialyzer_perfusion_apparatus ==''){
830
+        const obj = '血液净化器类型'
831
+        checkDate.push(obj)
832
+      } if(this.prescription.dialysate_formulation_name ==''){
833
+        const obj1 = '透析液配方'
834
+        checkDate.push(obj1)
835
+      } if(this.predialysis.blood_access_part_id ==''){
836
+        const obj2 = '血管通路部位'
837
+        checkDate.push(obj2)
838
+      } if(this.predialysis.blood_access_part_opera_name ==''){
839
+        const obj3 = '血管通路'
840
+        checkDate.push(obj3)
841
+      } if(this.predialysis.catheter == ''){
842
+        const obj4 = '透前导管'
843
+        checkDate.push(obj4)
844
+      } if(this.predialysis.internal_fistula ==''){
845
+        const obj5 = '透前内瘘'
846
+        checkDate.push(obj5)
847
+      } if(this.prescription.anticoagulant == 0){
848
+        const obj6 = '抗凝药物'
849
+        checkDate.push(obj6)
850
+      } if(this.prescription.anticoagulant_shouji ==''){
851
+        const obj7 = '首剂'
852
+        checkDate.push(obj7)
853
+      } if(this.prescription.anticoagulant_zongliang ==''){
854
+        const obj8 = '总量'
855
+        checkDate.push(obj8)
856
+      } if(this.predialysis.dry_weight ==''){
857
+        const obj9 = '干体重'
858
+        checkDate.push(obj9)
859
+      } if(this.predialysis.weight_before ==0){
860
+        const obj10 = '净化前体重'
861
+        checkDate.push(obj10)
862
+      } if(this.prescription.target_ultrafiltration == 0){
863
+        const obj11 = '预设脱水'
864
+        checkDate.push(obj11)
865
+      } if(this.afterdialysis.actual_treatment_hour == 0 &&
866
+           this.afterdialysis.actual_treatment_minute == 0
867
+      ){
868
+        const obj12 = '净化时间'
869
+        checkDate.push(obj12)
870
+      } if(this.afterdialysis.weight_after == 0){
871
+        const obj13 = '净化后体重'
872
+        checkDate.push(obj13)
873
+      } if(this.afterdialysis.actual_ultrafiltration == 0){
874
+        const obj14 = '实际脱水'
875
+        checkDate.push(obj14)
876
+      } if(this.prescription.conductivity == 0){
877
+        const obj15 = '电导度'
878
+        checkDate.push(obj15)
879
+      } if(this.predialysis.temperature == ""){
880
+        const obj16 = '透前体温'
881
+        checkDate.push(obj16)
882
+      } if(this.predialysis.pulse_frequency == ""){
883
+        const obj17 = '透前脉搏'
884
+        checkDate.push(obj17)
885
+      } if(this.predialysis.systolic_blood_pressure == 0 ||
886
+            this.predialysis.diastolic_blood_pressure == 0
887
+      ){
888
+        const obj18 = '透前血压'
889
+        checkDate.push(obj18)
890
+      } if(this.receiverTreatmentAccess.way == 0){
891
+        const obj19 = '入室方式'
892
+        checkDate.push(obj19)
893
+      } if(this.predialysis.dialysis_count == 0){
894
+        const obj20 = '透析频次'
895
+        checkDate.push(obj20)
896
+      } if(this.predialysis.symptom_before_dialysis == ""){
897
+        const obj21 = '透析前症状'
898
+        checkDate.push(obj21)
899
+      } if(this.predialysis.edema == ""){
900
+        const obj22 = '水肿'
901
+        checkDate.push(obj22)
902
+      } if(this.predialysis.is_hemorrhage == 1 &&
903
+          (this.predialysis.hemorrhage == "" && this.predialysis.hemorrhage_other == "")
904
+      ){
905
+        const obj23 = '出血'
906
+        checkDate.push(obj23)
907
+      } if(this.receiverTreatmentAccess.precaution == ''){
908
+        const obj24 = '跌倒风险预防措施'
909
+        checkDate.push(obj24)
910
+      } if(this.prescription.prescription_doctor == 0){
911
+        const obj25 = '上机医生'
912
+        checkDate.push(obj25)
913
+      } if(this.dialysisOrder == null || this.dialysisOrder.washpipe_nurse == 0){
914
+        const obj26 = '冲管护士'
915
+        checkDate.push(obj26)
916
+      } if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
917
+        const obj27 = '穿刺者'
918
+        checkDate.push(obj27)
919
+      } if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
920
+        const obj28 = '上机护士'
921
+        checkDate.push(obj28)
922
+      } if(this.afterdialysis.temperature == 0){
923
+        const obj29 = '透后体温'
924
+        checkDate.push(obj29)
925
+      } if(this.afterdialysis.pulse_frequency == 0){
926
+        const obj30 = '透后脉搏'
927
+        checkDate.push(obj30)
928
+      } if(this.afterdialysis.systolic_blood_pressure == 0 ||
929
+            this.afterdialysis.diastolic_blood_pressure == 0
930
+      ){
931
+        const obj31 = '透后血压'
932
+        checkDate.push(obj31)
933
+      } if(this.afterdialysis.symptom_after_dialysis == ""){
934
+        const obj32 = '透后症状'
935
+        checkDate.push(obj32)
936
+      } if(this.afterdialysis.actual_displacement == 0){
937
+        const obj33 = '实际置换量'
938
+        checkDate.push(obj33)
939
+      } if(this.afterdialysis.is_eat == 0){
940
+        const obj34 = '透析期间进食'
941
+        checkDate.push(obj34)
942
+      } if(this.predialysis.is_eat == 1 && this.predialysis.dialysis_during == 0){
943
+        const obj35 = '透析进食'
944
+        checkDate.push(obj35)
945
+      } if(this.afterdialysis.cruor == ""){
946
+        const obj36 = '透析器凝血'
947
+        checkDate.push(obj36)
948
+      } if(this.afterdialysis.arterial_tube == 0){
949
+        const obj37 = '动脉管道'
950
+        checkDate.push(obj37)
951
+      } if(this.afterdialysis.intravenous_tube == 0){
952
+        const obj38 = '静脉管道'
953
+        checkDate.push(obj38)
954
+      } if(this.afterdialysis.internal_fistula == ''){
955
+        const obj39 = '透后内瘘'
956
+        checkDate.push(obj39)
957
+      } if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
958
+        const obj40 = '下机护士'
959
+        checkDate.push(obj40)
960
+      } if(this.summary.dialysis_summary == ""){
961
+        const obj41 = '透析小结'
962
+        checkDate.push(obj41)
963
+      } if(this.summary.special_record == ""){
964
+        const obj42 = '病情记录'
965
+        checkDate.push(obj42)
966
+      } if(this.tableAdvice.length > 0){
967
+        this.tableAdvice.map((item) =>{
968
+          if(item.id > 0 && (item.created_time || item.start_time)){
969
+            if(item.execution_staff ==0 || item.advice_doctor ==0){
970
+              const obj43 = '执行人员,医生签名'
971
+              checkDate.push(obj43)
927 972
             }
973
+          }
928 974
         })
975
+      } if(this.monitors.length >0){
976
+        for(let i in this.monitors){
977
+          if(this.monitors[i].systolic_blood_pressure ==0 ||
978
+                this.monitors.diastolic_blood_pressure==0){
979
+            const obj62 = '监测第'+((i*1)+1)+'行血压'
980
+            monearr.push(obj62)
981
+          } if(this.monitors[i].pulse_frequency ==0){
982
+            const obj60 = '监测第'+((i*1)+1)+'行脉搏'
983
+            monearr.push(obj60)
984
+          }
985
+          if(this.monitors[i].blood_flow_volume ==0){
986
+            const obj44 = '监测第'+((i*1)+1)+'行血流速'
987
+            monearr.push(obj44)
988
+          } if(this.monitors[i].venous_pressure ==0 &&this.monitors[i].arterial_pressure ==0){
989
+            const obj45 = '监测第'+((i*1)+1)+'行静脉压/动脉压'
990
+            monearr.push(obj45)
991
+          } if(this.monitors[i].ultrafiltration_volume == 0 && i !=0){
992
+            const obj47= '监测第'+((i*1)+1)+'行超滤量'
993
+            monearr.push(obj47)
994
+          } if(this.monitors[i].transmembrane_pressure ==0){
995
+            const obj46 = '监测第'+((i*1)+1)+'行TMP'
996
+            monearr.push(obj46)
997
+          } if(this.monitors[i].conductivity == 0){
998
+            const obj47= '监测第'+((i*1)+1)+'行电导率'
999
+            monearr.push(obj47)
1000
+          } if(this.monitors[i].dialysate_temperature == 0){
1001
+            const obj51 = '监测第'+((i*1)+1)+'行温度'
1002
+            monearr.push(obj51)
1003
+          } if(this.monitors[i].ultrafiltration_rate ==0 ){
1004
+            const obj48 = '监测第'+((i*1)+1)+'行UF'
1005
+            monearr.push(obj48)
1006
+          }
929 1007
         }
930
-        
931
-        if(num == 0){
932
-          this.$message.success('核对完成')
933
-        }
934
-      }else{
935
-        this.$message.success('核对完成')
936 1008
       }
1009
+      if(monearr.length>0){
1010
+       checkDate =checkDate.concat(monearr)
1011
+        console.log('1111',checkDate.concat(monearr));
1012
+      }
1013
+      this.getcheckData(checkDate)
937 1014
     },
938 1015
     getNewAge (UUserCard) {
939 1016
       if (UUserCard != null && UUserCard != '') {
@@ -1069,6 +1146,7 @@ export default {
1069 1146
           var dialysisorder = response.data.data.dialysisOrder
1070 1147
           this.dialysisorder = dialysisorder
1071 1148
           console.log('上机', dialysisorder)
1149
+          console.log('response.data.data', response.data.data)
1072 1150
           var check = response.data.data.check
1073 1151
           this.check = check
1074 1152
           console.log('核对这', check)
@@ -1265,6 +1343,9 @@ export default {
1265 1343
 
1266 1344
           this.monitors = response.data.data.monitors
1267 1345
           this.summary = response.data.data.summary
1346
+          var start_nurse = response.data.data.startNuse
1347
+          this.orderForm.start_nurse = start_nurse.user_name
1348
+          this.orderForm.url = start_nurse.url
1268 1349
           this.org_template_info = response.data.data.org_template_info
1269 1350
           // 配置超滤量和置换量是否要显示0还是空
1270 1351
           if (this.org_template_info.org_id == 9535) {
@@ -1490,7 +1571,41 @@ export default {
1490 1571
           return this.vascularAccess[i].name
1491 1572
         }
1492 1573
       }
1493
-    }
1574
+    },
1575
+    getcheckData(val){
1576
+      if(val.length >0){
1577
+        const a = val.join(',')
1578
+        console.log('a',a);
1579
+        this.$toast(a +" 未填");
1580
+        return a
1581
+      }else{
1582
+        this.$toast('核对完成');
1583
+      }
1584
+    },
1585
+    getarterial(val){
1586
+      const options = this.arterial_tube
1587
+      if(val !=''){
1588
+        for(let i in options){
1589
+          if(val == options[i].id){
1590
+            return options[i].name
1591
+          }
1592
+        }
1593
+      }else{
1594
+        return ''
1595
+      }
1596
+    },
1597
+    getintravenous(val){
1598
+      const options = this.intravenous_tube
1599
+      if(val !=''){
1600
+        for(let i in options){
1601
+          if(val == options[i].id){
1602
+            return options[i].name
1603
+          }
1604
+        }
1605
+      }else{
1606
+        return ''
1607
+      }
1608
+    },
1494 1609
   },
1495 1610
   watch: {
1496 1611
     'patientInfo.gender': function () {
@@ -1526,6 +1641,8 @@ export default {
1526 1641
     this.replacementWays = this.$store.getters.replacement_ways
1527 1642
     this.perfusionApparatus = this.$store.getters.perfusion_apparatus
1528 1643
     this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1644
+    this.arterial_tube =  this.$store.getters.arterial_tube
1645
+    this.intravenous_tube = this.$store.getters.intravenous_tube
1529 1646
 
1530 1647
     this.way_arr = getDataConfig('hemodialysis', 'way')
1531 1648
     this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
@@ -1648,13 +1765,13 @@ export default {
1648 1765
   width: 50%;
1649 1766
 }
1650 1767
 
1651
-.under_line::before {
1768
+/* .under_line::before {
1652 1769
   content: "\00A0";
1653 1770
 }
1654 1771
 
1655 1772
 .under_line::after {
1656 1773
   content: "\00A0";
1657
-}
1774
+} */
1658 1775
 
1659 1776
 .flex {
1660 1777
   display: -webkit-box;

+ 23 - 22
src/pages/main/template/DialysisPrintOrdereightyone.vue Ver fichero

@@ -277,15 +277,7 @@
277 277
                     </div>
278 278
                     ml/min
279 279
                   </div>
280
-                  <div class="inline_block" style="flex: 1;">
281
-                    预透时间:
282
-                    <div class="under_line"
283
-                      style=" width: 50%; text-align: center; white-space: normal; "
284
-                    >
285
-                      {{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : "0"}}h
286
-                      {{ prescription.dialysis_duration_minute ? prescription.dialysis_duration_minute : "0"}}min
287
-                    </div>
288
-                  </div>
280
+                  
289 281
                 </div>
290 282
                 <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
291 283
                   <div class="inline_block" style="flex: 1">
@@ -316,8 +308,25 @@
316 308
                       }}
317 309
                     </div>
318 310
                   </div>
319
-
320
-                  <div class="inline_block" style="flex: 1.3">
311
+                  <div class="inline_block" style="flex: 1;">
312
+                    预透时间:
313
+                    <div class="under_line"
314
+                      style=" width: 50%; text-align: center; white-space: normal; "
315
+                    >
316
+                      {{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : "0"}}h
317
+                      {{ prescription.dialysis_duration_minute ? prescription.dialysis_duration_minute : "0"}}min
318
+                    </div>
319
+                  </div>
320
+                  <div class="inline_block" style="flex: 1">
321
+                    干体重:
322
+                    <div class="under_line" style="width: 100px; text-align: center">
323
+                      {{
324
+                        predialysis.dry_weight ? predialysis.dry_weight : "/"
325
+                      }}
326
+                    </div>
327
+                    kg
328
+                  </div>
329
+                  <!-- <div class="inline_block" style="flex: 1.3">
321 330
                     可复用透析器使用次数:
322 331
                     <div class="under_line"
323 332
                       style="width: 20%;text-align: center;white-space: normal;"
@@ -342,18 +351,10 @@
342 351
                       <span> 
343 352
                       </span>
344 353
                     </div>
345
-                  </div>
354
+                  </div> -->
346 355
                 </div>
347 356
                 <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
348
-                  <div class="inline_block" style="flex: 1">
349
-                    干体重:
350
-                    <div class="under_line" style="width: 100px; text-align: center">
351
-                      {{
352
-                        predialysis.dry_weight ? predialysis.dry_weight : "/"
353
-                      }}
354
-                    </div>
355
-                    kg
356
-                  </div>
357
+                  
357 358
                   <div class="inline_block" style="flex: 1">
358 359
                     上次透后体重:
359 360
                     <div class="under_line" style="width: 50px; text-align: center">
@@ -394,7 +395,7 @@
394 395
                           : "/"
395 396
                       }}
396 397
                     </div>
397
-                    ml
398
+                    L
398 399
                   </div>
399 400
                 </div>
400 401
                 <div class="row" style="padding: 2px 0; line-height: 23px;display: flex;" >