Kaynağa Gözat

11月18 打印单

yq1 4 gün önce
ebeveyn
işleme
18eeaf9ea2

+ 21 - 19
src/xt_pages/dialysis/batch_print/batch_print_order_seventyeight.vue Dosyayı Görüntüle

@@ -648,9 +648,9 @@
648 648
                     </div>
649 649
 
650 650
                     <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
651
-                      <div class="inline_block" style=" flex: 2">
651
+                      <div class="inline_block" style=" flex: 1">
652 652
                         血管通路:
653
-                        <div class="under_line" style="width: 70%; text-align: center" >
653
+                        <div class="under_line" style="width: 60%; text-align: center" >
654 654
                           {{
655 655
                             record.assessment_before_dislysis &&
656 656
                             record.assessment_before_dislysis.blood_access_part_id
@@ -667,10 +667,7 @@
667 667
                           }}
668 668
                         </div> ml/min
669 669
                       </div>
670
-                    </div>
671
-
672
-                    <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
673
-                      <div class="inline_block" style="flex: 2">
670
+                      <div class="inline_block" style="flex: 1">
674 671
                        透析器:
675 672
                         <div class="under_line" style="width: 50%; text-align: center">
676 673
                         {{ record.prescription &&
@@ -690,6 +687,20 @@
690 687
                         </div>
691 688
                       </div>
692 689
                       <div class="inline_block" style="flex: 1">
690
+                        机号:
691
+                        <div class="under_line" style="width: 70px; text-align: center">
692
+                          {{record.dialysis_order && record.dialysis_order.device_number &&
693
+                            record.dialysis_order.device_number.number.length >0
694
+                              ? record.dialysis_order.device_number.number : record.device_number.number
695
+                          }}
696
+                        </div>
697
+                        
698
+                      </div>
699
+                    </div>
700
+
701
+                    <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
702
+                      
703
+                      <!-- <div class="inline_block" style="flex: 1">
693 704
                         膜面积:
694 705
                         <div class="under_line" style="width: 50px; text-align: center">
695 706
                         
@@ -700,23 +711,14 @@
700 711
                         <div class="under_line" style="width: 80px; text-align: center">
701 712
                           
702 713
                         </div>
703
-                      </div>
704
-                      <div class="inline_block" style="flex: 1">
714
+                      </div> -->
715
+                      <!-- <div class="inline_block" style="flex: 1">
705 716
                         透析机型:
706 717
                         <div class="under_line" style="width: 80px; text-align: center">
707 718
                           {{ record.assessment_before_dislysis.machine_type ? record.assessment_before_dislysis.machine_type : '/' }}
708 719
                         </div>
709
-                      </div>
710
-                      <div class="inline_block" style="flex: 1">
711
-                        机号:
712
-                        <div class="under_line" style="width: 70px; text-align: center">
713
-                          {{record.dialysis_order && record.dialysis_order.device_number &&
714
-                            record.dialysis_order.device_number.number.length >0
715
-                              ? record.dialysis_order.device_number.number : record.device_number.number
716
-                          }}
717
-                        </div>
718
-                        
719
-                      </div>
720
+                      </div> -->
721
+                      
720 722
                     </div>
721 723
                     <div class="row" style="padding: 2px 0; line-height: 23px">
722 724
                       <div class="inline_block">

+ 59 - 63
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyTwo.vue Dosyayı Görüntüle

@@ -216,52 +216,16 @@
216 216
                    </td>
217 217
                    <td style="text-align: left" colspan="3">
218 218
               <span style="display: inline-block; margin-left: 15px">
219
-                <span v-if="record.prescription.anticoagulant == 2">普通肝素首剂:</span>
220
-                <span v-if="record.prescription.anticoagulant == 3"
221
-                  >低分子肝素首剂:</span
222
-                >
223
-                <span v-if="record.prescription.anticoagulant == 4"
224
-                  >阿加曲班肝素首剂:</span
225
-                >
226
-                <span v-if="record.prescription.anticoagulant == 5"
227
-                  >枸橼酸钠肝素首剂:</span
228
-                >
229
-                <span v-if="record.prescription.anticoagulant == 6"
230
-                  >低分子肝素钙首剂:</span
231
-                >
232
-                <span v-if="record.prescription.anticoagulant == 7"
233
-                  >低分子肝素钠首剂:</span
234
-                >
235
-                <span v-if="record.prescription.anticoagulant == 8"
236
-                  >依诺肝素首剂:</span
237
-                >
238
-                <span v-if="record.prescription.anticoagulant == 9">达肝素首剂:</span>
239
-                <span v-if="record.prescription.anticoagulant == 10"
240
-                  >体外抗凝肝素首剂:</span
241
-                >
242
-                <span v-if="record.prescription.anticoagulant == 11"
243
-                  >那屈肝素首剂:</span
244
-                >
245
-                 <span v-if="record.prescription.anticoagulant == 13"
246
-                  >那屈肝素钙首剂:</span
247
-                >
248
-
219
+                {{ getkangning(record.prescription.anticoagulant) }}:
249 220
                 {{
250 221
                   record.prescription.anticoagulant_shouji
251 222
                     ? record.prescription.anticoagulant_shouji
252 223
                     : "/"
253 224
                 }}
254 225
               </span>
255
-              <span v-if="record.prescription.anticoagulant == 5">iu</span>
256
-              <span v-if="record.prescription.anticoagulant == 13">iu</span>
257
-              <span v-if="record.prescription.anticoagulant == 11">iu</span>
258
-              <span v-if="record.prescription.anticoagulant == 8">iu</span>
259
-              <span v-if="record.prescription.anticoagulant == 7">iu</span>
260
-              <span v-if="record.prescription.anticoagulant == 6">iu</span>
261
-              <span v-if="record.prescription.anticoagulant == 4">mg</span>
262
-              <span v-if="record.prescription.anticoagulant == 3">iu</span>
263
-              <span v-if="record.prescription.anticoagulant == 2">mg</span>
264
-              <span v-if="record.prescription.anticoagulant == 1">mg</span>
226
+              <span v-if="record.prescription.anticoagulant != 0">
227
+                {{ getshoujiunit(record.prescription.anticoagulant) }}
228
+              </span>
265 229
             </td>
266 230
             <td style="text-align: left" colspan="1">
267 231
               <span style="display: inline-block; margin-left: 15px">
@@ -272,16 +236,9 @@
272 236
                     : "/"
273 237
                 }}
274 238
               </span>
275
-              <span v-if="record.prescription.anticoagulant == 13">iu/h</span>
276
-              <span v-if="record.prescription.anticoagulant == 11">iu/h</span>
277
-              <span v-if="record.prescription.anticoagulant == 8">iu/h</span>
278
-              <span v-if="record.prescription.anticoagulant == 7">iu/h</span>
279
-              <span v-if="record.prescription.anticoagulant == 6">iu/h</span>
280
-              <span v-if="record.prescription.anticoagulant == 5">ml/h</span>
281
-              <span v-if="record.prescription.anticoagulant == 4">mg/h</span>
282
-              <span v-if="record.prescription.anticoagulant == 3">iu/h</span>
283
-              <span v-if="record.prescription.anticoagulant == 2">mg/h</span>
284
-              <span v-if="record.prescription.anticoagulant == 1">mg/h</span>
239
+              <span v-if="record.prescription.anticoagulant != 0">
240
+                {{ getweichiunit(record.prescription.anticoagulant) }}
241
+              </span>
285 242
             </td>
286 243
             <td style="text-align: left" colspan="2">
287 244
               <span style="display: inline-block; ">
@@ -292,16 +249,9 @@
292 249
                     : "/"
293 250
                 }}
294 251
               </span>
295
-              <span v-if="record.prescription.anticoagulant == 13">iu</span>
296
-              <span v-if="record.prescription.anticoagulant == 11">iu</span>
297
-              <span v-if="record.prescription.anticoagulant == 5">iu</span>
298
-              <span v-if="record.prescription.anticoagulant == 8">iu</span>
299
-              <span v-if="record.prescription.anticoagulant == 7">iu</span>
300
-              <span v-if="record.prescription.anticoagulant == 6">iu</span>
301
-              <span v-if="record.prescription.anticoagulant == 4">mg</span>
302
-              <span v-if="record.prescription.anticoagulant == 3">iu</span>
303
-              <span v-if="record.prescription.anticoagulant == 2">mg</span>
304
-              <span v-if="record.prescription.anticoagulant == 1">mg</span>
252
+              <span v-if="record.prescription.anticoagulant != 0">
253
+                {{ getzongliangunit(record.prescription.anticoagulant) }}
254
+              </span>
305 255
             </td>
306 256
            
307 257
             </tr>
@@ -1621,9 +1571,7 @@ export default {
1621 1571
           this.org_template_info = resp.data.templateInfo
1622 1572
 
1623 1573
           this.records = this.records.concat(resp.data.schedules)
1624
-
1625 1574
           console.log('记录', this.records)
1626
-
1627 1575
           for (const recordIndex in this.records) {
1628 1576
             var dlegh = 0
1629 1577
             if (
@@ -2024,7 +1972,55 @@ export default {
2024 1972
           return this.bloodAccess[i].name;
2025 1973
         }
2026 1974
       }
2027
-    }
1975
+    },
1976
+    getkangning(val){
1977
+      const options = this.anticoagulantsConfit
1978
+      if(val != ''){
1979
+        for(let i in options){
1980
+          if(val == options[i].id){
1981
+            return options[i].name
1982
+          }
1983
+        }
1984
+      }else{
1985
+        return ''
1986
+      }
1987
+    },
1988
+    getshoujiunit(val){
1989
+      const options = this.anticoagulantsConfit
1990
+      if(val != ''){
1991
+        for(let i in options){
1992
+          if(val == options[i].id){
1993
+            return options[i].shouji_unit
1994
+          }
1995
+        }
1996
+      }else{
1997
+        return ''
1998
+      }
1999
+    },
2000
+    getweichiunit(val){
2001
+      const options = this.anticoagulantsConfit
2002
+      if(val != ''){
2003
+        for(let i in options){
2004
+          if(val == options[i].id){
2005
+            return options[i].weichi_unit
2006
+          }
2007
+        }
2008
+      }else{
2009
+        return ''
2010
+      }
2011
+    },
2012
+    getzongliangunit(val){
2013
+      const options = this.anticoagulantsConfit
2014
+      if(val != ''){
2015
+        for(let i in options){
2016
+          if(val == options[i].id){
2017
+            return options[i].zongliang_unit
2018
+          }
2019
+        }
2020
+      }else{
2021
+        return ''
2022
+      }
2023
+    },
2028 2024
   }
2029 2025
 }
2030 2026
 </script>

+ 24 - 15
src/xt_pages/dialysis/template/DialysisPrintOrderSeventyeight.vue Dosyayı Görüntüle

@@ -743,12 +743,12 @@
743 743
                       <span v-if="prescription.anticoagulant == 13">iu</span>
744 744
 
745 745
                     </div>
746
-                    <div class="inline_block" style="flex: 1">
746
+                    <!-- <div class="inline_block" style="flex: 1">
747 747
                       透析机型:
748 748
                       <div class="under_line" style="width: 80px; text-align: center">
749 749
                         {{ predialysis.machine_type ? predialysis.machine_type : '' }}
750 750
                       </div>
751
-                    </div>
751
+                    </div> -->
752 752
                   </div>
753 753
 
754 754
                   <div class="row" style="">
@@ -1913,10 +1913,12 @@ export default {
1913 1913
       ){
1914 1914
         const obj30 = "透析器"
1915 1915
         checkDate.push(obj30)
1916
-      } if (this.predialysis.machine_type == 0) {
1917
-        const obj31 = "透析机型"
1918
-        checkDate.push(obj31)
1919
-      } if (this.dialysisOrder.DeviceNumber.number == 0) {
1916
+      } 
1917
+      // if (this.predialysis.machine_type == 0) {
1918
+      //   const obj31 = "透析机型"
1919
+      //   checkDate.push(obj31)
1920
+      // } 
1921
+      if ( this.dialysisOrder !=undefined && this.dialysisOrder.DeviceNumber.number == 0) {
1920 1922
         const obj32 = "机号"
1921 1923
         checkDate.push(obj32)
1922 1924
       } if (this.prescription.anticoagulant_name == 0) {
@@ -1930,7 +1932,7 @@ export default {
1930 1932
       }
1931 1933
 
1932 1934
       if (this.prescription.anticoagulant_zongliang == 0 &&
1933
-        this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !='' && prescription.anticoagulant != 5
1935
+        this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !='' && this.prescription.anticoagulant != 5
1934 1936
       ) {
1935 1937
         const obj36 = "总量"
1936 1938
         checkDate.push(obj36)
@@ -2797,15 +2799,22 @@ export default {
2797 2799
     },
2798 2800
     getcheckData(val){
2799 2801
       if(val.length >0){
2800
-        let message = `记录单未填数据:<br/><br/>&nbsp;&nbsp;${val.join("<br/><br/>&nbsp;&nbsp;")}`;
2801
-        this.$message({
2802
+        let message = `记录单未填数据:<br/>&nbsp;&nbsp;${val.join("<br/>&nbsp;&nbsp;")}`;
2803
+        this.$confirm(message, '提示', {
2804
+          confirmButtonText: '确定',
2805
+          cancelButtonText: '取消',
2806
+          type: 'warning',
2802 2807
           dangerouslyUseHTMLString: true,
2803
-          message:message,
2804
-          duration:0,
2805
-          showClose:true,
2806
-          type:'error'
2807
-        })
2808
-        return message
2808
+        })       
2809
+        
2810
+        // this.$message({
2811
+        //   dangerouslyUseHTMLString: true,
2812
+        //   message:message,
2813
+        //   duration:0,
2814
+        //   showClose:true,
2815
+        //   type:'error'
2816
+        // })
2817
+        // return message
2809 2818
       }else{
2810 2819
         this.$message.success('核对完成')
2811 2820
       }

+ 50 - 60
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyTwo.vue Dosyayı Görüntüle

@@ -223,35 +223,7 @@
223 223
             </td>
224 224
             <td style="text-align: left" colspan="3">
225 225
               <span style="display: inline-block; margin-left: 15px">
226
-                <span v-if="prescription.anticoagulant == 2">普通肝素首剂:</span>
227
-                <span v-if="prescription.anticoagulant == 3"
228
-                  >低分子肝素首剂:</span
229
-                >
230
-                <span v-if="prescription.anticoagulant == 4"
231
-                  >阿加曲班肝素首剂:</span
232
-                >
233
-                <span v-if="prescription.anticoagulant == 5"
234
-                  >枸橼酸钠肝素首剂:</span
235
-                >
236
-                <span v-if="prescription.anticoagulant == 6"
237
-                  >低分子肝素钙首剂:</span
238
-                >
239
-                <span v-if="prescription.anticoagulant == 7"
240
-                  >低分子肝素钠首剂:</span
241
-                >
242
-                <span v-if="prescription.anticoagulant == 8"
243
-                  >依诺肝素首剂:</span
244
-                >
245
-                <span v-if="prescription.anticoagulant == 9">达肝素首剂:</span>
246
-                <span v-if="prescription.anticoagulant == 10"
247
-                  >体外抗凝肝素首剂:</span
248
-                >
249
-                <span v-if="prescription.anticoagulant == 11"
250
-                  >那屈肝素首剂:</span
251
-                >
252
-                 <span v-if="prescription.anticoagulant == 13"
253
-                  >那屈肝素钙首剂:</span
254
-                >
226
+                {{ prescription.anticoagulant_name?prescription.anticoagulant_name:'' }}:
255 227
 
256 228
                 {{
257 229
                   prescription.anticoagulant_shouji
@@ -259,16 +231,9 @@
259 231
                     : "/"
260 232
                 }}
261 233
               </span>
262
-              <span v-if="prescription.anticoagulant == 5">iu</span>
263
-              <span v-if="prescription.anticoagulant == 13">iu</span>
264
-              <span v-if="prescription.anticoagulant == 11">iu</span>
265
-              <span v-if="prescription.anticoagulant == 8">iu</span>
266
-              <span v-if="prescription.anticoagulant == 7">iu</span>
267
-              <span v-if="prescription.anticoagulant == 6">iu</span>
268
-              <span v-if="prescription.anticoagulant == 4">mg</span>
269
-              <span v-if="prescription.anticoagulant == 3">iu</span>
270
-              <span v-if="prescription.anticoagulant == 2">mg</span>
271
-              <span v-if="prescription.anticoagulant == 1">mg</span>
234
+              <span v-if="prescription.anticoagulant !=0">
235
+                {{ getshoujiunit(prescription.anticoagulant) }}
236
+              </span>
272 237
             </td>
273 238
             <td style="text-align: left" colspan="1">
274 239
               <span style="display: inline-block; margin-left: 15px">
@@ -279,16 +244,10 @@
279 244
                     : "/"
280 245
                 }}
281 246
               </span>
282
-              <span v-if="prescription.anticoagulant == 13">iu/h</span>
283
-              <span v-if="prescription.anticoagulant == 11">iu/h</span>
284
-              <span v-if="prescription.anticoagulant == 8">iu/h</span>
285
-              <span v-if="prescription.anticoagulant == 7">iu/h</span>
286
-              <span v-if="prescription.anticoagulant == 6">iu/h</span>
287
-              <span v-if="prescription.anticoagulant == 5">ml/h</span>
288
-              <span v-if="prescription.anticoagulant == 4">mg/h</span>
289
-              <span v-if="prescription.anticoagulant == 3">iu/h</span>
290
-              <span v-if="prescription.anticoagulant == 2">mg/h</span>
291
-              <span v-if="prescription.anticoagulant == 1">mg/h</span>
247
+              <span v-if="prescription.anticoagulant !=0">
248
+                {{ getweichiunit(prescription.anticoagulant) }}
249
+              </span>
250
+             
292 251
             </td>
293 252
             <td style="text-align: left" colspan="1">
294 253
               <span style="display: inline-block; ">
@@ -299,16 +258,9 @@
299 258
                     : "/"
300 259
                 }}
301 260
               </span>
302
-              <span v-if="prescription.anticoagulant == 13">iu</span>
303
-              <span v-if="prescription.anticoagulant == 11">iu</span>
304
-              <span v-if="prescription.anticoagulant == 5">iu</span>
305
-              <span v-if="prescription.anticoagulant == 8">iu</span>
306
-              <span v-if="prescription.anticoagulant == 7">iu</span>
307
-              <span v-if="prescription.anticoagulant == 6">iu</span>
308
-              <span v-if="prescription.anticoagulant == 4">mg</span>
309
-              <span v-if="prescription.anticoagulant == 3">iu</span>
310
-              <span v-if="prescription.anticoagulant == 2">mg</span>
311
-              <span v-if="prescription.anticoagulant == 1">mg</span>
261
+              <span v-if="prescription.anticoagulant !=0">
262
+                {{ getzongliangunit(prescription.anticoagulant) }}
263
+              </span>
312 264
             </td>
313 265
           </tr>
314 266
           <tr>
@@ -1921,7 +1873,6 @@ export default {
1921 1873
           }
1922 1874
           this.patientInfo = response.data.data.patientInfo;
1923 1875
           // console.log("透析记录", this.patientInfo);
1924
-
1925 1876
           this.patientInfo.birth = uParseTime(
1926 1877
             this.patientInfo.birthday,
1927 1878
             "{y}-{m}-{d}"
@@ -1937,6 +1888,7 @@ export default {
1937 1888
           }
1938 1889
           this.check = response.data.data.check;
1939 1890
           var predialysis = response.data.data.PredialysisEvaluation;
1891
+          console.log('response.data.daata',response.data.data);
1940 1892
           console.log("透前评估", predialysis);
1941 1893
           var predialysName = response.data.data.predialysName;
1942 1894
           this.blood_access_part_opera_id = predialysName.name;
@@ -2497,6 +2449,42 @@ export default {
2497 2449
         }
2498 2450
       }
2499 2451
     },
2452
+    getshoujiunit(val){
2453
+      const options = this.anticoagulantsConfit
2454
+      if(val != ''){
2455
+        for(let i in options){
2456
+          if(val == options[i].id){
2457
+            return options[i].shouji_unit
2458
+          }
2459
+        }
2460
+      }else{
2461
+        return ''
2462
+      }
2463
+    },
2464
+    getweichiunit(val){
2465
+      const options = this.anticoagulantsConfit
2466
+      if(val != ''){
2467
+        for(let i in options){
2468
+          if(val == options[i].id){
2469
+            return options[i].weichi_unit
2470
+          }
2471
+        }
2472
+      }else{
2473
+        return ''
2474
+      }
2475
+    },
2476
+    getzongliangunit(val){
2477
+      const options = this.anticoagulantsConfit
2478
+      if(val != ''){
2479
+        for(let i in options){
2480
+          if(val == options[i].id){
2481
+            return options[i].zongliang_unit
2482
+          }
2483
+        }
2484
+      }else{
2485
+        return ''
2486
+      }
2487
+    },
2500 2488
   },
2501 2489
   watch: {
2502 2490
     "patientInfo.gender": function () {
@@ -2532,6 +2520,8 @@ export default {
2532 2520
     this.replacementWays = this.$store.getters.replacement_ways;
2533 2521
     this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
2534 2522
     this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
2523
+    console.log('anticoagulantsConfit1111',this.anticoagulantsConfit);
2524
+    
2535 2525
     var vascularAccess = getDataConfig("hemodialysis", "vascular_access");
2536 2526
     this.vascularAccess = vascularAccess;
2537 2527
     // console.log("hhe", vascularAccess);