Browse Source

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

XMLWAN 2 years ago
parent
commit
a3157ac120

+ 13 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_fiftyOne.vue View File

@@ -192,6 +192,14 @@
192 192
                             }}
193 193
                           </div>
194 194
                         </div>
195
+                       
196
+                      </div>
197
+
198
+                      <div
199
+                        class="row"
200
+                        style="padding: 2px 0; line-height: 23px; display: flex"
201
+                      >
202
+                       
195 203
                         <div class="inline_block" style="flex: 1">
196 204
                           透前症状:
197 205
                           <div
@@ -1275,8 +1283,9 @@
1275 1283
                                     advice[0].advice_desc != undefined
1276 1284
                                   "
1277 1285
                                 >
1278
-                                  ({{ advice[0].advice_desc
1279
-                                  }}{{ advice[0].drug_spec_unit }} )
1286
+                                 <span v-if="advice[0].advice_desc!=''"> (</span>{{ advice[0].advice_desc
1287
+                                  }}{{ advice[0].drug_spec_unit }} 
1288
+                                  <span v-if="advice[0].advice_desc!=''">)</span>
1280 1289
                                 </span>
1281 1290
   
1282 1291
                                 <span v-if="advice[0].prescribing_number"
@@ -2621,9 +2630,9 @@
2621 2630
               var delghTwo = 0;
2622 2631
               if (
2623 2632
                 this.records[recordIndex].advices &&
2624
-                this.records[recordIndex].advices.length < 12
2633
+                this.records[recordIndex].advices.length < 48
2625 2634
               ) {
2626
-                delghTwo = 12 - this.records[recordIndex].advices.length;
2635
+                delghTwo = this.records[recordIndex].advices.length;
2627 2636
               } else {
2628 2637
                 delghTwo = 0;
2629 2638
               }

+ 8 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -609,7 +609,7 @@
609 609
                           type="number"
610 610
                           v-model="dialysisPrescription.glucose"
611 611
                         ></el-input>
612
-                      </el-form-item>
612
+                      </el-form-item>28
613 613
                     </el-col> -->
614 614
                     <el-col :span="8" v-if="isShows('透析液流量')">
615 615
                         <el-form-item label="透析液流量(ml/min):">
@@ -3973,9 +3973,13 @@ mu
3973 3973
     },
3974 3974
 
3975 3975
     watch: {
3976
-      'dialysisPrescription.blood_flow_volume': function () {
3977
-        this.dialysisPrescription.replacement_flow = replacementFlow(this.dialysisPrescription.blood_flow_volume)
3978
-      },
3976
+      // 'dialysisPrescription.blood_flow_volume': function () {
3977
+      //   this.dialysisPrescription.blood_flow_volume = replacementFlow(this.dialysisPrescription.blood_flow_volume)
3978
+      // },
3979
+      // 'dialysisPrescription.replacement_flow': function () {
3980
+      //   console.log("血流量",this.dialysisPrescription.replacement_flow)
3981
+      //   this.dialysisPrescription.replacement_flow = this.dialysisPrescription.replacement_flow
3982
+      // },
3979 3983
       'dialysisPrescription.dialysis_duration_hour': function() {
3980 3984
         let dialysis_duration_minute = 0
3981 3985
         let dialysis_duration_hour = 0

+ 14 - 12
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

@@ -14,8 +14,8 @@
14 14
       </template>
15 15
       <template
16 16
         v-if="
17
-          org_template_info.template_id == 2 ||
18
-          org_template_info.template_id == 0
17
+          org_template_info.template_id == 2
18
+       
19 19
         "
20 20
       >
21 21
         <div>
@@ -110,7 +110,8 @@
110 110
           org_template_info.template_id == 11 ||
111 111
           org_template_info.template_id == 50 ||
112 112
           org_template_info.template_id == 52 ||
113
-          org_template_info.template_id == 53
113
+          org_template_info.template_id == 53  ||
114
+          $store.getters.xt_user.org.id == 0
114 115
         "
115 116
       >
116 117
         <el-button
@@ -186,8 +187,8 @@
186 187
       </template>
187 188
       <template
188 189
         v-if="
189
-          org_template_info.template_id == 14 ||
190
-          org_template_info.template_id == 0
190
+          org_template_info.template_id == 14
191
+         
191 192
         "
192 193
       >
193 194
         <div>
@@ -289,8 +290,8 @@
289 290
       </template> -->
290 291
       <template
291 292
         v-if="
292
-          org_template_info.template_id == 21 ||
293
-          org_template_info.template_id == 0
293
+          org_template_info.template_id == 21 
294
+         
294 295
         "
295 296
       >
296 297
         <div>
@@ -1577,8 +1578,8 @@ export default {
1577 1578
           scanStyles: false,
1578 1579
         });
1579 1580
       } else if (
1580
-        this.org_template_info.template_id == 2 ||
1581
-        this.org_template_info.template_id == 0
1581
+        this.org_template_info.template_id == 2
1582
+       
1582 1583
       ) {
1583 1584
         printJS({
1584 1585
           printable: "dialysis-print-box-1",
@@ -1616,7 +1617,8 @@ export default {
1616 1617
         // this.org_template_info.template_id == 51 ||
1617 1618
         this.org_template_info.template_id == 58 ||
1618 1619
         this.org_template_info.template_id == 60 ||
1619
-        this.org_template_info.template_id == 61
1620
+        this.org_template_info.template_id == 61  ||
1621
+        this.org_template_info.template_id ==0
1620 1622
       ) {
1621 1623
         printJS({
1622 1624
           printable: "dialysis-print-box-1",
@@ -1978,7 +1980,6 @@ export default {
1978 1980
         });
1979 1981
       } else if (
1980 1982
         this.org_template_info.template_id == 2 ||
1981
-        this.org_template_info.template_id == 0 ||
1982 1983
         this.org_template_info.template_id == 5 ||
1983 1984
         this.org_template_info.template_id == 22 ||
1984 1985
         this.org_template_info.template_id == 33
@@ -2037,7 +2038,6 @@ export default {
2037 2038
         });
2038 2039
       } else if (
2039 2040
         this.org_template_info.template_id == 2 ||
2040
-        this.org_template_info.template_id == 0 ||
2041 2041
         this.org_template_info.template_id == 5 ||
2042 2042
         this.org_template_info.template_id == 22 ||
2043 2043
         this.org_template_info.template_id == 33
@@ -2782,6 +2782,8 @@ export default {
2782 2782
     },
2783 2783
   },
2784 2784
   created() {
2785
+    console.log("hhahahhahahahah=======",this.org_template_info.template_id)
2786
+    console.log("this.$store.getters.xt_user.org.id",this.$store.getters.xt_user.org.id)
2785 2787
     var schedule_type_selected = this.$store.getters.schedule_type_selected;
2786 2788
     var zone_selected = this.$store.getters.zone_selected;
2787 2789
     var patient_state_selected = this.$store.getters.patient_state_selected;

+ 23 - 2
src/xt_pages/dialysis/signPrint.vue View File

@@ -19,8 +19,12 @@
19 19
                             {{it.prescribing_number}}{{ it.prescribing_number_unit }}
20 20
                           </span> 
21 21
                         </div>  
22
+                        <div v-if="org_id ==0 || org_id == 10138 || org_id == 10278">
23
+                          规格:{{getSpecialName(it.drug_id)}} 
24
+                         
25
+                        </div>  
22 26
                         <div v-if=" org_id ==0 || org_id==10440">单次用量:{{it.single_dose}}{{it.single_dose_unit }}</div>  
23
-                        <div>执行频率:{{it.execution_frequency}}</div>  
27
+                        <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{it.execution_frequency}}</div>  
24 28
                         <div>给药途径:{{it.delivery_way}}</div>  
25 29
                         <div>打印时间:{{time}}</div>   
26 30
                     </div>  
@@ -37,9 +41,13 @@
37 41
                         <div>医嘱内容:{{getAdvice(item.doctor_advice)}} 
38 42
                            <span v-if="it.prescribing_number >0&& org_id !=0 && org_id!=10440"> {{it.prescribing_number}}{{ it.prescribing_number_unit }}</span>
39 43
                         </div>  
44
+                        <div v-if="org_id ==0 || org_id == 10138 || org_id == 10278">
45
+                          规格:{{getSpecialName(it.drug_id)}} 
46
+                         
47
+                        </div>  
40 48
                         <div v-if=" org_id ==0 || org_id==10440">单次用量:{{it.single_dose}}&nbsp;{{it.single_dose_unit }}</div>
41 49
                         <div>给药途径:{{item.doctor_advice[0].execution_frequency}}</div>  
42
-                        <div>执行频率:{{item.doctor_advice[0].delivery_way}}</div>  
50
+                        <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{item.doctor_advice[0].delivery_way}}</div>  
43 51
                         <div>打印时间:{{time}}</div>   
44 52
                     </div>  
45 53
                   
@@ -79,6 +87,7 @@ export default {
79 87
             list:[],
80 88
             execution_frequency:"",
81 89
             org_id:0,
90
+            drugList:[],
82 91
         }
83 92
     },
84 93
     methods:{
@@ -266,6 +275,7 @@ export default {
266 275
                
267 276
                  if(config.is_open == 1){
268 277
                    var schedulesArr = resp.data.hisAdvices
278
+                   this.drugList = resp.data.drug
269 279
                    let schedules = []
270 280
                    var ids = this.$store.getters.temp_params.advice_ids
271 281
                    console.log('ids',ids)
@@ -528,6 +538,15 @@ export default {
528 538
         return ""
529 539
       }
530 540
     },
541
+    getSpecialName(drug_id){
542
+        var name = ""
543
+        for(let i=0;i<this.drugList.length;i++){
544
+            if(drug_id == this.drugList[i].id){
545
+            name = this.drugList[i].dose + this.drugList[i].dose_unit + "*" + this.drugList[i].min_number + this.drugList[i].min_unit +"/"+this.drugList[i].max_unit
546
+            }
547
+        }
548
+        return name
549
+     }
531 550
     },
532 551
     computed: {
533 552
     filtedScheduals: function () {
@@ -640,6 +659,8 @@ export default {
640 659
         console.log("222222",scheduleMap)
641 660
         return scheduleMap
642 661
         },
662
+
663
+      
643 664
     
644 665
     },
645 666
     created(){

+ 14 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue View File

@@ -289,6 +289,18 @@
289 289
                                 }}
290 290
                               </div>
291 291
                             </div>
292
+                          
293
+                          </div>
294
+
295
+                          <div
296
+                            class="row"
297
+                            style="
298
+                              padding: 2px 0;
299
+                              line-height: 23px;
300
+                              display: flex;
301
+                            "
302
+                          >
303
+                          
292 304
                             <div class="inline_block" style="flex: 1">
293 305
                               透前症状:
294 306
                               <div
@@ -3496,8 +3508,8 @@ export default {
3496 3508
         }
3497 3509
 
3498 3510
         this.totollength = this.doctor_advices.length + this.monitors.length;
3499
-        if (this.totollength > 18) {
3500
-          var temp_advice_length = 17 - this.monitors.length;
3511
+        if (this.totollength > 32) {
3512
+          var temp_advice_length = 31 - this.monitors.length;
3501 3513
           var doctor_advices_1 = [];
3502 3514
           var doctor_advices_2 = [];
3503 3515
           for (let index = 0; index < this.doctor_advices.length; index++) {

+ 4 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue View File

@@ -819,9 +819,9 @@
819 819
                   >
820 820
                     <p style="height: 20px; line-height: 20px">执行时间</p>
821 821
                   </td>
822
-                  <td style="height: 20px" width="90" v-if="org_id == 10249  || org_id == 0">
822
+                  <!-- <td style="height: 20px" width="90" v-if="org_id == 10249  || org_id == 0">
823 823
                     <p style="height: 20px; line-height: 20px">开嘱医生</p>
824
-                  </td>
824
+                  </td> -->
825 825
                   <td style="height: 20px" width="90">
826 826
                     <p style="height: 20px; line-height: 20px">执行</p>
827 827
                   </td>
@@ -903,7 +903,7 @@
903 903
                       getTime(advice.execution_time, "{h}:{i}")
904 904
                     }}</span>
905 905
                   </td>
906
-                  <td
906
+                  <!-- <td
907 907
                     style="line-height: 30px"
908 908
                     width="90"
909 909
                     v-if="org_id == 10249 || org_id == 0"
@@ -917,7 +917,7 @@
917 917
                       alt=""
918 918
                       srcset=""
919 919
                     />
920
-                  </td>
920
+                  </td> -->
921 921
                   <td style="line-height: 10px" width="90">
922 922
                     <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
923 923
                       getAdminUser(advice.execution_staff)

+ 2 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -3699,7 +3699,7 @@ export default {
3699 3699
         for (let index = 0; index < this.doctor_advices.length; index++) {
3700 3700
           this.doctor_advices[index]["isShow"] = 2;
3701 3701
         }
3702
-
3702
+       console.log("total--------------------------",this.doctor_advices)
3703 3703
         // if (this.doctor_advices.length > 0) {
3704 3704
         //   var group = this.newAdviceGroupObject()
3705 3705
         //   var initGroupBlock = function(group, advice) {
@@ -3795,6 +3795,7 @@ export default {
3795 3795
         }
3796 3796
 
3797 3797
         this.totollength = this.doctor_advices.length + this.monitors.length;
3798
+        console.log("this.totollength",this.totollength)
3798 3799
         if (this.totollength > 18) {
3799 3800
           var temp_advice_length = 17 - this.monitors.length;
3800 3801
           var doctor_advices_1 = [];

+ 3 - 3
src/xt_pages/workforce/remind_print_setting.vue View File

@@ -19,7 +19,7 @@
19 19
         <div class="print_main_content">
20 20
           <div class="table_panel">
21 21
             <div v-for="(main_collection,index) in scheduleData" :key="index" style="page-break-after: always;">
22
-              <div class="signPrint" v-if="org_id != 10188 && org_id!=10217  && org_id!=10340 && org_id!=9671 && org_id!=9675">
22
+              <div class="signPrint" v-if="org_id != 10188  && org_id!=10340 && org_id!=9671 && org_id!=9675">
23 23
                 <div>
24 24
                   <span v-if="printObj.mode == 1">透析模式:
25 25
                     <span v-if="main_collection.mode_id ==1">HD</span>
@@ -75,7 +75,7 @@
75 75
                   <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
76 76
                 </div>
77 77
                 <div v-if="printObj.anticoagulant == 1">抗凝剂:
78
-                  <span v-if="org_id == 10138 ">{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name + ' 5000iu/瓶' : ''}}</span>
78
+                  <span v-if="org_id == 10138 || org_id == 0 || org_id == 10278">{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name + ' 5000iu/瓶' : ''}}</span>
79 79
                   <span v-else >
80 80
                    <span>{{getAnticoagulant(main_collection.dialysissolution.anticoagulant)}}</span>
81 81
                   </span>
@@ -382,7 +382,7 @@
382 382
                 days = '星期日';
383 383
                 break;
384 384
           }
385
-          var str = year + "年" + month + "月" + day + "日  " + days;
385
+          var str = year + "年" + month + "月" + day + "日  ";
386 386
           this.currentDate = str
387 387
           }
388 388
        })