Browse Source

新分支

28169 2 years ago
parent
commit
fde6f7eba1

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

192
                             }}
192
                             }}
193
                           </div>
193
                           </div>
194
                         </div>
194
                         </div>
195
+                       
196
+                      </div>
197
+
198
+                      <div
199
+                        class="row"
200
+                        style="padding: 2px 0; line-height: 23px; display: flex"
201
+                      >
202
+                       
195
                         <div class="inline_block" style="flex: 1">
203
                         <div class="inline_block" style="flex: 1">
196
                           透前症状:
204
                           透前症状:
197
                           <div
205
                           <div
1275
                                     advice[0].advice_desc != undefined
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
                                 </span>
1289
                                 </span>
1281
   
1290
   
1282
                                 <span v-if="advice[0].prescribing_number"
1291
                                 <span v-if="advice[0].prescribing_number"
2621
               var delghTwo = 0;
2630
               var delghTwo = 0;
2622
               if (
2631
               if (
2623
                 this.records[recordIndex].advices &&
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
               } else {
2636
               } else {
2628
                 delghTwo = 0;
2637
                 delghTwo = 0;
2629
               }
2638
               }

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

609
                           type="number"
609
                           type="number"
610
                           v-model="dialysisPrescription.glucose"
610
                           v-model="dialysisPrescription.glucose"
611
                         ></el-input>
611
                         ></el-input>
612
-                      </el-form-item>
612
+                      </el-form-item>28
613
                     </el-col> -->
613
                     </el-col> -->
614
                     <el-col :span="8" v-if="isShows('透析液流量')">
614
                     <el-col :span="8" v-if="isShows('透析液流量')">
615
                         <el-form-item label="透析液流量(ml/min):">
615
                         <el-form-item label="透析液流量(ml/min):">
3973
     },
3973
     },
3974
 
3974
 
3975
     watch: {
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
       'dialysisPrescription.dialysis_duration_hour': function() {
3983
       'dialysisPrescription.dialysis_duration_hour': function() {
3980
         let dialysis_duration_minute = 0
3984
         let dialysis_duration_minute = 0
3981
         let dialysis_duration_hour = 0
3985
         let dialysis_duration_hour = 0

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

14
       </template>
14
       </template>
15
       <template
15
       <template
16
         v-if="
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
         <div>
21
         <div>
110
           org_template_info.template_id == 11 ||
110
           org_template_info.template_id == 11 ||
111
           org_template_info.template_id == 50 ||
111
           org_template_info.template_id == 50 ||
112
           org_template_info.template_id == 52 ||
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
         <el-button
117
         <el-button
186
       </template>
187
       </template>
187
       <template
188
       <template
188
         v-if="
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
         <div>
194
         <div>
289
       </template> -->
290
       </template> -->
290
       <template
291
       <template
291
         v-if="
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
         <div>
297
         <div>
1577
           scanStyles: false,
1578
           scanStyles: false,
1578
         });
1579
         });
1579
       } else if (
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
         printJS({
1584
         printJS({
1584
           printable: "dialysis-print-box-1",
1585
           printable: "dialysis-print-box-1",
1616
         // this.org_template_info.template_id == 51 ||
1617
         // this.org_template_info.template_id == 51 ||
1617
         this.org_template_info.template_id == 58 ||
1618
         this.org_template_info.template_id == 58 ||
1618
         this.org_template_info.template_id == 60 ||
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
         printJS({
1623
         printJS({
1622
           printable: "dialysis-print-box-1",
1624
           printable: "dialysis-print-box-1",
1978
         });
1980
         });
1979
       } else if (
1981
       } else if (
1980
         this.org_template_info.template_id == 2 ||
1982
         this.org_template_info.template_id == 2 ||
1981
-        this.org_template_info.template_id == 0 ||
1982
         this.org_template_info.template_id == 5 ||
1983
         this.org_template_info.template_id == 5 ||
1983
         this.org_template_info.template_id == 22 ||
1984
         this.org_template_info.template_id == 22 ||
1984
         this.org_template_info.template_id == 33
1985
         this.org_template_info.template_id == 33
2037
         });
2038
         });
2038
       } else if (
2039
       } else if (
2039
         this.org_template_info.template_id == 2 ||
2040
         this.org_template_info.template_id == 2 ||
2040
-        this.org_template_info.template_id == 0 ||
2041
         this.org_template_info.template_id == 5 ||
2041
         this.org_template_info.template_id == 5 ||
2042
         this.org_template_info.template_id == 22 ||
2042
         this.org_template_info.template_id == 22 ||
2043
         this.org_template_info.template_id == 33
2043
         this.org_template_info.template_id == 33
2782
     },
2782
     },
2783
   },
2783
   },
2784
   created() {
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
     var schedule_type_selected = this.$store.getters.schedule_type_selected;
2787
     var schedule_type_selected = this.$store.getters.schedule_type_selected;
2786
     var zone_selected = this.$store.getters.zone_selected;
2788
     var zone_selected = this.$store.getters.zone_selected;
2787
     var patient_state_selected = this.$store.getters.patient_state_selected;
2789
     var patient_state_selected = this.$store.getters.patient_state_selected;

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

19
                             {{it.prescribing_number}}{{ it.prescribing_number_unit }}
19
                             {{it.prescribing_number}}{{ it.prescribing_number_unit }}
20
                           </span> 
20
                           </span> 
21
                         </div>  
21
                         </div>  
22
+                        <div v-if="org_id ==0 || org_id == 10138 || org_id == 10278">
23
+                          规格:{{getSpecialName(it.drug_id)}} 
24
+                         
25
+                        </div>  
22
                         <div v-if=" org_id ==0 || org_id==10440">单次用量:{{it.single_dose}}{{it.single_dose_unit }}</div>  
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
                         <div>给药途径:{{it.delivery_way}}</div>  
28
                         <div>给药途径:{{it.delivery_way}}</div>  
25
                         <div>打印时间:{{time}}</div>   
29
                         <div>打印时间:{{time}}</div>   
26
                     </div>  
30
                     </div>  
37
                         <div>医嘱内容:{{getAdvice(item.doctor_advice)}} 
41
                         <div>医嘱内容:{{getAdvice(item.doctor_advice)}} 
38
                            <span v-if="it.prescribing_number >0&& org_id !=0 && org_id!=10440"> {{it.prescribing_number}}{{ it.prescribing_number_unit }}</span>
42
                            <span v-if="it.prescribing_number >0&& org_id !=0 && org_id!=10440"> {{it.prescribing_number}}{{ it.prescribing_number_unit }}</span>
39
                         </div>  
43
                         </div>  
44
+                        <div v-if="org_id ==0 || org_id == 10138 || org_id == 10278">
45
+                          规格:{{getSpecialName(it.drug_id)}} 
46
+                         
47
+                        </div>  
40
                         <div v-if=" org_id ==0 || org_id==10440">单次用量:{{it.single_dose}}&nbsp;{{it.single_dose_unit }}</div>
48
                         <div v-if=" org_id ==0 || org_id==10440">单次用量:{{it.single_dose}}&nbsp;{{it.single_dose_unit }}</div>
41
                         <div>给药途径:{{item.doctor_advice[0].execution_frequency}}</div>  
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
                         <div>打印时间:{{time}}</div>   
51
                         <div>打印时间:{{time}}</div>   
44
                     </div>  
52
                     </div>  
45
                   
53
                   
79
             list:[],
87
             list:[],
80
             execution_frequency:"",
88
             execution_frequency:"",
81
             org_id:0,
89
             org_id:0,
90
+            drugList:[],
82
         }
91
         }
83
     },
92
     },
84
     methods:{
93
     methods:{
266
                
275
                
267
                  if(config.is_open == 1){
276
                  if(config.is_open == 1){
268
                    var schedulesArr = resp.data.hisAdvices
277
                    var schedulesArr = resp.data.hisAdvices
278
+                   this.drugList = resp.data.drug
269
                    let schedules = []
279
                    let schedules = []
270
                    var ids = this.$store.getters.temp_params.advice_ids
280
                    var ids = this.$store.getters.temp_params.advice_ids
271
                    console.log('ids',ids)
281
                    console.log('ids',ids)
528
         return ""
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
     computed: {
551
     computed: {
533
     filtedScheduals: function () {
552
     filtedScheduals: function () {
640
         console.log("222222",scheduleMap)
659
         console.log("222222",scheduleMap)
641
         return scheduleMap
660
         return scheduleMap
642
         },
661
         },
662
+
663
+      
643
     
664
     
644
     },
665
     },
645
     created(){
666
     created(){

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

289
                                 }}
289
                                 }}
290
                               </div>
290
                               </div>
291
                             </div>
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
                             <div class="inline_block" style="flex: 1">
304
                             <div class="inline_block" style="flex: 1">
293
                               透前症状:
305
                               透前症状:
294
                               <div
306
                               <div
3496
         }
3508
         }
3497
 
3509
 
3498
         this.totollength = this.doctor_advices.length + this.monitors.length;
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
           var doctor_advices_1 = [];
3513
           var doctor_advices_1 = [];
3502
           var doctor_advices_2 = [];
3514
           var doctor_advices_2 = [];
3503
           for (let index = 0; index < this.doctor_advices.length; index++) {
3515
           for (let index = 0; index < this.doctor_advices.length; index++) {

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

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

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

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

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

19
         <div class="print_main_content">
19
         <div class="print_main_content">
20
           <div class="table_panel">
20
           <div class="table_panel">
21
             <div v-for="(main_collection,index) in scheduleData" :key="index" style="page-break-after: always;">
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
                 <div>
23
                 <div>
24
                   <span v-if="printObj.mode == 1">透析模式:
24
                   <span v-if="printObj.mode == 1">透析模式:
25
                     <span v-if="main_collection.mode_id ==1">HD</span>
25
                     <span v-if="main_collection.mode_id ==1">HD</span>
75
                   <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
75
                   <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
76
                 </div>
76
                 </div>
77
                 <div v-if="printObj.anticoagulant == 1">抗凝剂:
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
                   <span v-else >
79
                   <span v-else >
80
                    <span>{{getAnticoagulant(main_collection.dialysissolution.anticoagulant)}}</span>
80
                    <span>{{getAnticoagulant(main_collection.dialysissolution.anticoagulant)}}</span>
81
                   </span>
81
                   </span>
382
                 days = '星期日';
382
                 days = '星期日';
383
                 break;
383
                 break;
384
           }
384
           }
385
-          var str = year + "年" + month + "月" + day + "日  " + days;
385
+          var str = year + "年" + month + "月" + day + "日  ";
386
           this.currentDate = str
386
           this.currentDate = str
387
           }
387
           }
388
        })
388
        })