see999 3 лет назад
Родитель
Сommit
20d0f5d833

+ 41 - 41
src/xt_pages/dialysis/batch_print/batch_print_order_fortyOne.vue Просмотреть файл

@@ -591,7 +591,7 @@
591 591
                                 </tr>
592 592
                                 <!-- <template v-for="group in doctor_advices" > -->
593 593
 
594
-                                <tr v-for="(advice, advice_index) in record.his_advices.length > 0 ? record.his_advices : record.advices" :key="advice_index">
594
+                                <tr v-for="(advice, advice_index) in record.advices" :key="advice_index">
595 595
                                 <td height="30px" style="padding:4px 5px;">
596 596
                                     <span v-if="advice.start_time">
597 597
                                     {{ getTime(advice.start_time, "{h}:{i}") }}
@@ -602,7 +602,7 @@
602 602
                                     <span v-if="advice.parent_id > 0">---></span>
603 603
                                     <span>{{ advice.advice_name }}</span>
604 604
                                     <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
605
-                                    <span v-if="advice.prescribing_number">&nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
605
+                                    <span v-if="advice.prescribing_number"> &nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
606 606
                                     <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
607 607
                                     <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
608 608
                                     <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
@@ -754,7 +754,7 @@
754 754
                             <div class="inline_block" style="flex:1;display: flex;align-items: center;">
755 755
                                 上机护士:
756 756
                                 <div class="under_line" style="width: 80px;text-align: center">
757
-                                    <span v-if="setAdminUserES(record.dialysis_order, 'start_nurse') == ''">{{getAdminUser(record.dialysis_order, 'start_nurse')}}</span>
757
+                                    <span style="display: inline-block;height: 36px;line-height: 36px;" v-if="setAdminUserES(record.dialysis_order, 'start_nurse') == ''">{{getAdminUser(record.dialysis_order, 'start_nurse')}}</span>
758 758
                                     <span v-else>
759 759
                                         <img class="es-img" style="height:30px;" :src="setAdminUserES(record.dialysis_order, 'start_nurse')" />
760 760
                                     </span>
@@ -764,13 +764,13 @@
764 764
                                 核对人员:
765 765
                                 <div class="under_line" style="width: 80px;text-align: center">
766 766
                                     <span v-if="record.check != null ? record.dialysis_order.start_nurse != record.check.modifier : false">
767
-                                        <span v-if="setAdminUserES(record.check, record.check == null ? 0 : 'modifier') == ''">
767
+                                        <span style="display: inline-block;height: 36px;line-height: 36px;" v-if="setAdminUserES(record.check, record.check == null ? 0 : 'modifier') == ''">
768 768
                                         {{ getAdminUser(record.check, record.check == null ? 0 : 'modifier') }}
769 769
                                         </span>
770 770
                                         <img style="height:30px;" :src="setAdminUserES(record.check, record.check == null ? 0 : 'modifier')" alt srcset v-else />
771 771
                                     </span>
772 772
                                     <span v-else>
773
-                                        <span v-if="setAdminUserES(record.check, record.check == null ? 0 : 'creater') == ''">
773
+                                        <span style="display: inline-block;height: 36px;line-height: 36px;" v-if="setAdminUserES(record.check, record.check == null ? 0 : 'creater') == ''">
774 774
                                         {{ getAdminUser(record.check, "creater") }}
775 775
                                         </span>
776 776
                                         <img style="height:30px;" :src="setAdminUserES(record.check, record.check == null ? 0 : 'creater')" alt srcset v-else />
@@ -780,7 +780,7 @@
780 780
                             <div class="inline_block" style="flex:1;display: flex;align-items: center;">
781 781
                                 下机护士:
782 782
                                 <div class="under_line" style="width: 80px;text-align: center">
783
-                                    <span v-if="setAdminUserES(record.dialysis_order, 'finish_nurse') == ''">{{getAdminUser(record.dialysis_order, 'finish_nurse')}}</span>
783
+                                    <span style="display: inline-block;height: 36px;line-height: 36px;" v-if="setAdminUserES(record.dialysis_order, 'finish_nurse') == ''">{{getAdminUser(record.dialysis_order, 'finish_nurse')}}</span>
784 784
                                     <span v-else>
785 785
                                         <img class="es-img" style="height:30px;" :src="setAdminUserES(record.dialysis_order, 'finish_nurse')" />
786 786
                                     </span>
@@ -789,7 +789,7 @@
789 789
                             <div class="inline_block" style="flex:1;display: flex;align-items: center;">
790 790
                                 治疗医生:
791 791
                                 <div class="under_line" style="width: 80px;text-align: center">
792
-                                    <span v-if="setAdminUserES(record.prescription, 'creater') == ''">{{getAdminUser(record.prescription, 'creater')}}</span>
792
+                                    <span style="display: inline-block;height: 36px;line-height: 36px;" v-if="setAdminUserES(record.prescription, 'creater') == ''">{{getAdminUser(record.prescription, 'creater')}}</span>
793 793
                                     <img class="es-img" :src="setAdminUserES(record.prescription, 'creater')" alt="" srcset="" v-else style="height: 30px;">
794 794
                                 </div>
795 795
                             </div>
@@ -1003,8 +1003,8 @@ export default {
1003 1003
             }
1004 1004
 
1005 1005
             var delghTwo = 0
1006
-            if (this.records[recordIndex].advices && this.records[recordIndex].advices.length < 12) {
1007
-              delghTwo = 12 - this.records[recordIndex].advices.length
1006
+            if (this.records[recordIndex].advices && this.records[recordIndex].advices.length < 6) {
1007
+              delghTwo = 6 - this.records[recordIndex].advices.length
1008 1008
             } else {
1009 1009
               delghTwo = 0
1010 1010
             }
@@ -1018,38 +1018,38 @@ export default {
1018 1018
               }
1019 1019
             }
1020 1020
 
1021
-            var childMap = {}
1022
-            for (const index in this.records[recordIndex].advices) {
1023
-              if (this.records[recordIndex].advices[index].parent_id == 0) {
1024
-                continue
1025
-              }
1026
-              if (
1027
-                !(
1028
-                  this.records[recordIndex].advices[index].parent_id in childMap
1029
-                )
1030
-              ) {
1031
-                childMap[
1032
-                  this.records[recordIndex].advices[index].parent_id
1033
-                ] = []
1034
-              }
1035
-              childMap[this.records[recordIndex].advices[index].parent_id].push(
1036
-                this.records[recordIndex].advices[index]
1037
-              )
1038
-            }
1039
-
1040
-            var advices = []
1041
-            for (const index in this.records[recordIndex].advices) {
1042
-              if (this.records[recordIndex].advices[index].parent_id > 0) {
1043
-                continue
1044
-              }
1045
-              var item = this.records[recordIndex].advices[index]
1046
-              if (item.id in childMap) {
1047
-                item.children = childMap[item.id]
1048
-              } else {
1049
-                item.children = []
1050
-              }
1051
-              advices.push(item)
1052
-            }
1021
+            // var childMap = {}
1022
+            // for (const index in this.records[recordIndex].advices) {
1023
+            //   if (this.records[recordIndex].advices[index].parent_id == 0) {
1024
+            //     continue
1025
+            //   }
1026
+            //   if (
1027
+            //     !(
1028
+            //       this.records[recordIndex].advices[index].parent_id in childMap
1029
+            //     )
1030
+            //   ) {
1031
+            //     childMap[
1032
+            //       this.records[recordIndex].advices[index].parent_id
1033
+            //     ] = []
1034
+            //   }
1035
+            //   childMap[this.records[recordIndex].advices[index].parent_id].push(
1036
+            //     this.records[recordIndex].advices[index]
1037
+            //   )
1038
+            // }
1039
+
1040
+            // var advices = []
1041
+            // for (const index in this.records[recordIndex].advices) {
1042
+            //   if (this.records[recordIndex].advices[index].parent_id > 0) {
1043
+            //     continue
1044
+            //   }
1045
+            //   var item = this.records[recordIndex].advices[index]
1046
+            //   if (item.id in childMap) {
1047
+            //     item.children = childMap[item.id]
1048
+            //   } else {
1049
+            //     item.children = []
1050
+            //   }
1051
+            //   advices.push(item)
1052
+            // }
1053 1053
 
1054 1054
             var leftAdvice = []
1055 1055
             var rightAdvice = []

+ 34 - 6
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Просмотреть файл

@@ -2655,7 +2655,7 @@
2655 2655
 
2656 2656
       comfirm() {
2657 2657
 
2658
-        if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
2658
+        if (this.curDrugs.length > 0) {
2659 2659
           if (this.$store.getters.xt_user.org_id == 10138) {
2660 2660
             for (let i = 0; i < this.curDrugs.length; i++) {
2661 2661
               if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
@@ -2666,8 +2666,32 @@
2666 2666
             }
2667 2667
           }
2668 2668
         }
2669
+        if (this.teamList.length > 0) {
2670
+          if (this.$store.getters.xt_user.org_id == 0) {
2671
+            for (let i = 0; i < this.teamList.length; i++) {
2672
+              if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
2673
+                this.$message.error('该处方属于特病类型处方,开非特病类型的项目')
2674
+                // return
2675
+              }
2669 2676
 
2670
-        if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
2677
+            }
2678
+          }
2679
+          
2680
+          if(this.$store.getters.xt_user.org_id == 0){
2681
+            let arr = this.teamList
2682
+            let newArr = []
2683
+            arr.map(item => {
2684
+              if(item.is_special_diseases == 1){
2685
+                newArr.push(item)
2686
+              }
2687
+            })
2688
+            this.teamList = newArr
2689
+          }
2690
+        }
2691
+        
2692
+        
2693
+
2694
+        if (this.curDrugs.length == 0) {
2671 2695
           if (this.$store.getters.xt_user.org_id == 10138) {
2672 2696
             for (let i = 0; i < this.curDrugs.length; i++) {
2673 2697
               if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
@@ -2911,7 +2935,8 @@
2911 2935
                 cus_total: 1,
2912 2936
                 unit: project[i].unit,
2913 2937
                 type: 2,
2914
-                total: project[i].total
2938
+                total: project[i].total,
2939
+                is_special_diseases: project[i].disease_directory
2915 2940
               }
2916 2941
 
2917 2942
               this.tabProject.push(obj)
@@ -2933,7 +2958,8 @@
2933 2958
                 medical_code: good_info[i].medical_insurance_number,
2934 2959
                 unit: this.getGoodUnit(good_info[i].good_unit),
2935 2960
                 type: 3,
2936
-                total: good_info[i].total
2961
+                total: good_info[i].total,
2962
+                is_special_diseases: good_info[i].is_special_diseases
2937 2963
               }
2938 2964
               this.tabProject.push(obj)
2939 2965
             }
@@ -3027,7 +3053,8 @@
3027 3053
                   remark: '',
3028 3054
                   medical_code: project[i].project.medical_code,
3029 3055
                   unit: project[i].project.unit,
3030
-                  type: project[i].type
3056
+                  type: project[i].type,
3057
+                  is_special_diseases: project[i].project.disease_directory
3031 3058
                 }
3032 3059
                 if (obj.cus_total == 0 || obj.cus_total == undefined) {
3033 3060
                   obj.cus_total = 1
@@ -3056,7 +3083,8 @@
3056 3083
                   remark: '',
3057 3084
                   medical_code: project[i].good_info.medical_insurance_number,
3058 3085
                   unit: project[i].good_info.unit,
3059
-                  type: project[i].type
3086
+                  type: project[i].type,
3087
+                  is_special_diseases: project[i].good_info.is_special_diseases
3060 3088
                 }
3061 3089
                 if (obj.cus_total == 0 || obj.cus_total == undefined) {
3062 3090
                   obj.cus_total = 1