Преглед изворни кода

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

XMLWAN пре 3 година
родитељ
комит
be02ccb1e5

+ 69 - 57
src/xt_pages/dialysis/batch_print/batch_print_order_fortyOne.vue Прегледај датотеку

18
           :key="record.id"
18
           :key="record.id"
19
           class="print_page_main_content"
19
           class="print_page_main_content"
20
         >
20
         >
21
-          <div id="dialysis-print-box">
21
+          <div id="dialysis-print-box"  style="page-break-after:always">
22
               <div class="dialysis-print-order print-template-two print_page_main_content">
22
               <div class="dialysis-print-order print-template-two print_page_main_content">
23
                 <div style="display:inline-block;width:100%;text-align:center;">
23
                 <div style="display:inline-block;width:100%;text-align:center;">
24
                     <div
24
                     <div
588
 
588
 
589
                                 <tr v-for="(advice, advice_index) in record.advices" :key="advice_index">
589
                                 <tr v-for="(advice, advice_index) in record.advices" :key="advice_index">
590
                                 <td height="30px" style="padding:4px 5px;">
590
                                 <td height="30px" style="padding:4px 5px;">
591
-                                    <span v-if="advice.start_time">
592
-                                    {{ getTime(advice.start_time, "{h}:{i}") }}
591
+                                    <span v-if="advice[0].start_time">
592
+                                        {{ getTime(advice[0].start_time, "{h}:{i}") }}
593
                                     </span>
593
                                     </span>
594
                                 </td>
594
                                 </td>
595
                                 <td height="30px" colspan="2" class="advice-name" style="padding:4px 5px;">
595
                                 <td height="30px" colspan="2" class="advice-name" style="padding:4px 5px;">
596
-                                    <span v-if="advice.parent_id > 0">---></span>
597
-                                    <span>{{ advice.advice_name }}</span>
598
-                                    <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
599
-                                    <span v-if="advice.prescribing_number"> &nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
600
-                                    <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
601
-                                    <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
602
-                                    <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
603
-                                    <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
596
+                                    <span v-for="(item,index) in advice" :key="index">
597
+                                      <!-- <span v-if="item.children.length > 0"> -->
598
+                                          <span v-if="item.parent_id > 0">---></span>
599
+                                          <span v-if="item.advice_name">&nbsp;&nbsp;&nbsp;&nbsp;{{ item.advice_name }}</span>
600
+                                          <span v-if="item && item.advice_desc">({{ item.advice_desc }}{{ item.drug_spec_unit }})</span>
601
+                                          <span v-if="item.prescribing_number">&nbsp;&nbsp; {{ item.prescribing_number }}{{ item.prescribing_number_unit }}</span>
602
+                                          <span v-if="item.single_dose != 0">{{ item.single_dose }}{{ item.single_dose_unit }}</span>
603
+                                          <span v-if="item.parent_id == 0">{{ item.delivery_way }}</span>
604
+                                          <span v-if="item.parent_id == 0">{{ item.execution_frequency }}</span>
605
+                                          <span v-if="item.parent_id == 0 && item.remark.length > 0">({{ item.remark }})</span>
606
+                                          <span v-if="item.children && !Array.isArray(item)" style="display:block;border-top: 1px solid #000;" v-for="(child, childindex) in item.children" :key="childindex" class="advice-children">
607
+                                              <span style="padding-left: 20px !important;">---></span>
608
+                                              <span>
609
+                                              <span>{{ child.advice_name }}</span>
610
+                                              <span v-if="child.advice_desc">{{ child.advice_desc }}{{ child.drug_spec_unit }}</span>
611
+                                              <span v-if="child.prescribing_number">* {{ child.prescribing_number }}{{ child.prescribing_number_unit }}</span>
612
+                                              <span v-if="child.single_dose != 0">单次用量 {{ child.single_dose }}{{ child.single_dose_unit }}</span>
613
+                                              </span>
614
+                                          </span>
615
+                                      <!-- </span> -->
616
+                                  </span>
604
                                 </td>
617
                                 </td>
605
                                 
618
                                 
606
                                 <td height="30px" style="padding:4px 5px;">
619
                                 <td height="30px" style="padding:4px 5px;">
607
-                                    <span v-if="setAdminUserES(advice, 'advice_doctor') == ''">
608
-                                        {{getAdminUser(advice, 'advice_doctor')}}
620
+                                    <span v-if="setAdminUserES(advice[0], 'advice_doctor') == ''">
621
+                                        {{getAdminUser(advice[0], 'advice_doctor')}}
609
                                     </span>
622
                                     </span>
610
                                     <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
623
                                     <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
611
-                                        <img style="height:30px;" :src="setAdminUserES(advice, 'advice_doctor')" alt srcset />
624
+                                        <img style="height:30px;" :src="setAdminUserES(advice[0], 'advice_doctor')" alt srcset />
612
                                     </span>
625
                                     </span>
613
                                 </td>
626
                                 </td>
614
                                 
627
                                 
615
                                 <td height="30px" style="padding:4px 5px;">
628
                                 <td height="30px" style="padding:4px 5px;">
616
-                                    <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
629
+                                    <span v-if="advice[0].execution_time">{{ getTime(advice[0].execution_time, "{h}:{i}") }}</span>
617
                                 </td>
630
                                 </td>
618
                                 <td height="30px" style="padding:4px 5px;">
631
                                 <td height="30px" style="padding:4px 5px;">
619
-                                    <span v-if="setAdminUserES(advice, 'execution_staff') == ''">
620
-                                        {{getAdminUser(advice, 'execution_staff')}}
632
+                                    <span v-if="setAdminUserES(advice[0], 'execution_staff') == ''">
633
+                                        {{getAdminUser(advice[0], 'execution_staff')}}
621
                                     </span>
634
                                     </span>
622
                                     <span v-else>
635
                                     <span v-else>
623
-                                        <img style="height:30px;" :src="setAdminUserES(advice, 'execution_staff')" alt srcset />
636
+                                        <img style="height:30px;" :src="setAdminUserES(advice[0], 'execution_staff')" alt srcset />
624
                                     </span>
637
                                     </span>
625
                                 </td>
638
                                 </td>
626
                                 <td height="30px" style="padding:4px 5px;">
639
                                 <td height="30px" style="padding:4px 5px;">
627
-                                    <span v-if="setAdminUserES(advice, 'checker') == ''">{{ getAdminUser(advice, "checker") }}</span>
640
+                                    <span v-if="setAdminUserES(advice[0], 'checker') == ''">{{ getAdminUser(advice[0], "checker") }}</span>
628
                                     <span v-else>
641
                                     <span v-else>
629
-                                        <img class="es-img" :src="setAdminUserES(advice, 'checker')" alt="" srcset="" style="height: 30px;" />
642
+                                      <img class="es-img" :src="setAdminUserES(advice[0], 'checker')" alt="" srcset="" style="height: 30px;" />
630
                                     </span>
643
                                     </span>
631
                                 </td>
644
                                 </td>
632
                                 </tr>
645
                                 </tr>
789
                 </div>
802
                 </div>
790
                 </div>
803
                 </div>
791
           </div>
804
           </div>
792
-          <div style="page-break-after:always"></div>
805
+          <!-- <div style="page-break-after:always"></div> -->
793
         </div>
806
         </div>
794
       </div>
807
       </div>
795
     </div>
808
     </div>
991
             }
1004
             }
992
 
1005
 
993
             var delghTwo = 0
1006
             var delghTwo = 0
994
-            if (this.records[recordIndex].advices && this.records[recordIndex].advices.length < 6) {
995
-              delghTwo = 6 - this.records[recordIndex].advices.length
1007
+            if (this.records[recordIndex].advices && this.records[recordIndex].advices.length < 12) {
1008
+              delghTwo = 12 - this.records[recordIndex].advices.length
996
             } else {
1009
             } else {
997
               delghTwo = 0
1010
               delghTwo = 0
998
             }
1011
             }
1006
               }
1019
               }
1007
             }
1020
             }
1008
 
1021
 
1009
-            // var childMap = {}
1010
-            // for (const index in this.records[recordIndex].advices) {
1011
-            //   if (this.records[recordIndex].advices[index].parent_id == 0) {
1012
-            //     continue
1013
-            //   }
1014
-            //   if (
1015
-            //     !(
1016
-            //       this.records[recordIndex].advices[index].parent_id in childMap
1017
-            //     )
1018
-            //   ) {
1019
-            //     childMap[
1020
-            //       this.records[recordIndex].advices[index].parent_id
1021
-            //     ] = []
1022
-            //   }
1023
-            //   childMap[this.records[recordIndex].advices[index].parent_id].push(
1024
-            //     this.records[recordIndex].advices[index]
1025
-            //   )
1026
-            // }
1027
-
1028
-            // var advices = []
1029
-            // for (const index in this.records[recordIndex].advices) {
1030
-            //   if (this.records[recordIndex].advices[index].parent_id > 0) {
1031
-            //     continue
1032
-            //   }
1033
-            //   var item = this.records[recordIndex].advices[index]
1034
-            //   if (item.id in childMap) {
1035
-            //     item.children = childMap[item.id]
1036
-            //   } else {
1037
-            //     item.children = []
1038
-            //   }
1039
-            //   advices.push(item)
1040
-            // }
1022
+            var childMap = {}
1023
+            for (const index in this.records[recordIndex].advices) {
1024
+              if (this.records[recordIndex].advices[index].parent_id == 0) {
1025
+                continue
1026
+              }
1027
+              if (
1028
+                !(
1029
+                  this.records[recordIndex].advices[index].parent_id in childMap
1030
+                )
1031
+              ) {
1032
+                childMap[
1033
+                  this.records[recordIndex].advices[index].parent_id
1034
+                ] = []
1035
+              }
1036
+              childMap[this.records[recordIndex].advices[index].parent_id].push(
1037
+                this.records[recordIndex].advices[index]
1038
+              )
1039
+            }
1040
+
1041
+            var advices = []
1042
+            for (const index in this.records[recordIndex].advices) {
1043
+              if (this.records[recordIndex].advices[index].parent_id > 0) {
1044
+                continue
1045
+              }
1046
+              var item = this.records[recordIndex].advices[index]
1047
+              if (item.id in childMap) {
1048
+                item.children = childMap[item.id]
1049
+              } else {
1050
+                item.children = []
1051
+              }
1052
+              advices.push(item)
1053
+            }
1041
 
1054
 
1042
             var leftAdvice = []
1055
             var leftAdvice = []
1043
             var rightAdvice = []
1056
             var rightAdvice = []
1044
-            var adlen = this.records[recordIndex].advices.length
1057
+            var adlen = advices.length
1045
 
1058
 
1046
             var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
1059
             var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
1047
             for (var i = 0; i < halfLen; i++) {
1060
             for (var i = 0; i < halfLen; i++) {
1142
     QueryPartById: function(val) {
1155
     QueryPartById: function(val) {
1143
       let vascular_access_part_name = '/'
1156
       let vascular_access_part_name = '/'
1144
       const vascular_access = getDataConfig('hemodialysis', 'vascular_access_desc')
1157
       const vascular_access = getDataConfig('hemodialysis', 'vascular_access_desc')
1145
-        console.log('哈哈哈哈哈哈',vascular_access)
1146
       for (let i = 0; i < vascular_access.length; i++) {
1158
       for (let i = 0; i < vascular_access.length; i++) {
1147
         if (vascular_access[i].id == val) {
1159
         if (vascular_access[i].id == val) {
1148
           vascular_access_part_name = vascular_access[i].name
1160
           vascular_access_part_name = vascular_access[i].name

+ 4 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue Прегледај датотеку

816
           <td width="60" style="line-height:20px">血流量<br />ml/min</td>
816
           <td width="60" style="line-height:20px">血流量<br />ml/min</td>
817
           <td width="60" style="line-height:20px">电导度<br />mS/cm</td>
817
           <td width="60" style="line-height:20px">电导度<br />mS/cm</td>
818
           <td width="60" style="line-height:20px">超滤量<br />ml</td>
818
           <td width="60" style="line-height:20px">超滤量<br />ml</td>
819
+          <td width="40" style="line-height:20px">Kt/V</td>
819
           <!-- <td width="60">钠浓度<br/>mmol/L</td>
820
           <!-- <td width="60">钠浓度<br/>mmol/L</td>
820
         <td width="80">透析液温度<br/>℃</td>
821
         <td width="80">透析液温度<br/>℃</td>
821
         <td width="60">置换率<br/>ml/min</td> -->
822
         <td width="60">置换率<br/>ml/min</td> -->
876
           <td>
877
           <td>
877
             &nbsp;{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}
878
             &nbsp;{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}
878
           </td>
879
           </td>
880
+          <td>
881
+            &nbsp;{{ monitor.ktv ? monitor.ktv : "" }}
882
+          </td>
879
           <!-- <td>&nbsp;{{monitor.sodium_concentration}}</td>
883
           <!-- <td>&nbsp;{{monitor.sodium_concentration}}</td>
880
         <td>&nbsp;{{monitor.dialysate_temperature}}</td>
884
         <td>&nbsp;{{monitor.dialysate_temperature}}</td>
881
         <td>&nbsp;{{monitor.replacement_rate}}</td> -->
885
         <td>&nbsp;{{monitor.replacement_rate}}</td> -->

+ 6 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderFortyTwo.vue Прегледај датотеку

187
           <td style="text-align:left;" colspan="1">
187
           <td style="text-align:left;" colspan="1">
188
             <span style="display:inline-block;margin-left:15px; display: flex;align-items: center;">
188
             <span style="display:inline-block;margin-left:15px; display: flex;align-items: center;">
189
                 医生签名:
189
                 医生签名:
190
-                <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(prescription.creater) == ''">
190
+                <span style="height: 30px;display: flex;align-items: center;" v-if="setAdminUserES(prescription.creater) == ''">
191
                 {{ getAdminUser(prescription.creater) }}
191
                 {{ getAdminUser(prescription.creater) }}
192
                 </span>
192
                 </span>
193
                 <img style="height:30px;" :src="setAdminUserES(prescription.creater)" alt="" srcset="" v-else />
193
                 <img style="height:30px;" :src="setAdminUserES(prescription.creater)" alt="" srcset="" v-else />
385
             <td style="text-align:left;" colspan="4">
385
             <td style="text-align:left;" colspan="4">
386
                 <span style="margin-left:15px;align-items: center;display: flex;">
386
                 <span style="margin-left:15px;align-items: center;display: flex;">
387
                     责任护士:
387
                     责任护士:
388
-                    <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse) == ''">
388
+                    <span style="height: 30px;display: flex;align-items: center;" v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse) == ''">
389
                         {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.start_nurse) }}</span>
389
                         {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.start_nurse) }}</span>
390
                     <img style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse)" alt="" srcset="" v-else />
390
                     <img style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse)" alt="" srcset="" v-else />
391
                 </span>
391
                 </span>
394
                 <span style="margin-left:15px;align-items: center;display: flex;">
394
                 <span style="margin-left:15px;align-items: center;display: flex;">
395
                     核对护士:
395
                     核对护士:
396
                     <span style="width: 80px;text-align: center;display: flex;align-items: center;" v-if="dialysisOrder == null">
396
                     <span style="width: 80px;text-align: center;display: flex;align-items: center;" v-if="dialysisOrder == null">
397
-                      <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
397
+                      <span style="height: 30px;display: flex;align-items: center;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
398
                         {{ getAdminUser(check == null ? 0 : check.creater) }}
398
                         {{ getAdminUser(check == null ? 0 : check.creater) }}
399
                       </span>
399
                       </span>
400
                       <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
400
                       <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
401
                     </span>
401
                     </span>
402
                     <span style="width: 80px;text-align: center;display: flex;align-items: center;" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.modifier">
402
                     <span style="width: 80px;text-align: center;display: flex;align-items: center;" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.modifier">
403
-                      <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
403
+                      <span style="height: 30px;display: flex;align-items: center;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
404
                         {{ getAdminUser(check == null ? 0 : check.creater) }}
404
                         {{ getAdminUser(check == null ? 0 : check.creater) }}
405
                       </span>
405
                       </span>
406
                       <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
406
                       <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
407
                     </span>
407
                     </span>
408
                     <span style="width: 80px;text-align: center;display: flex;align-items: center;" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.creater">
408
                     <span style="width: 80px;text-align: center;display: flex;align-items: center;" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.creater">
409
-                      <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
409
+                      <span style="height: 30px;display: flex;align-items: center;" v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
410
                         {{ getAdminUser(check == null ? 0 : check.modifier) }}
410
                         {{ getAdminUser(check == null ? 0 : check.modifier) }}
411
                       </span>
411
                       </span>
412
                       <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt="" srcset="" v-else />
412
                       <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt="" srcset="" v-else />
413
                     </span>
413
                     </span>
414
                     <span style="width: 80px;text-align: center;display: flex;align-items: center;" v-if="dialysisOrder != null && dialysisOrder.start_nurse != check.creater && dialysisOrder.start_nurse != check.modifier">
414
                     <span style="width: 80px;text-align: center;display: flex;align-items: center;" v-if="dialysisOrder != null && dialysisOrder.start_nurse != check.creater && dialysisOrder.start_nurse != check.modifier">
415
-                      <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
415
+                      <span style="height: 30px;display: flex;align-items: center;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
416
                         {{ getAdminUser(check == null ? 0 : check.creater) }}
416
                         {{ getAdminUser(check == null ? 0 : check.creater) }}
417
                       </span>
417
                       </span>
418
                       <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
418
                       <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue Прегледај датотеку

397
             <tr style="line-height:20px;">
397
             <tr style="line-height:20px;">
398
               <td width="60">时间</td>
398
               <td width="60">时间</td>
399
               <td width="60">BP</td>
399
               <td width="60">BP</td>
400
-              <td width="40">心率</td>
400
+              <td width="40">脉搏</td>
401
               <td width="40">血流速</td>
401
               <td width="40">血流速</td>
402
               <td width="100">静脉压/动脉压</td>
402
               <td width="100">静脉压/动脉压</td>
403
               <td width="40">超滤量</td>
403
               <td width="40">超滤量</td>

+ 8 - 1
src/xt_pages/outpatientDoctorStation/checkTemplate/printOne.vue Прегледај датотеку

30
                     <div>检验项目:</div>
30
                     <div>检验项目:</div>
31
                     <div>
31
                     <div>
32
                         <div v-for="item in projectPrint" style="margin-bottom:10px;">{{ item.team.project_team }}</div>
32
                         <div v-for="item in projectPrint" style="margin-bottom:10px;">{{ item.team.project_team }}</div>
33
+                        <div v-for="item in singleProjectPrint" style="margin-bottom:10px;">{{ item.project.project_name }}</div>
33
                     </div>
34
                     </div>
34
                 </div>
35
                 </div>
35
                 <div style="display:flex;justify-content: space-between;border-top:1px solid #000;line-height:40px;padding:0 10px;">
36
                 <div style="display:flex;justify-content: space-between;border-top:1px solid #000;line-height:40px;padding:0 10px;">
75
         projectPrint:[],
76
         projectPrint:[],
76
         time:'',
77
         time:'',
77
         doctor:'',
78
         doctor:'',
78
-        org_id:''
79
+        org_id:'',
80
+        singleProjectPrint:[]
79
       }
81
       }
80
     },
82
     },
81
    methods:{
83
    methods:{
153
               }
155
               }
154
             })
156
             })
155
             let data = []
157
             let data = []
158
+            let data2 = []
156
             projectPrint.map(item => {
159
             projectPrint.map(item => {
157
               if(item.team.id != 0){
160
               if(item.team.id != 0){
158
                 let status = data.some(it => (it.team.id == item.team.id))
161
                 let status = data.some(it => (it.team.id == item.team.id))
160
                   data.push(item)
163
                   data.push(item)
161
                 }
164
                 }
162
               }
165
               }
166
+              if(item.team.id == 0){
167
+                data2.push(item)
168
+              }
163
               
169
               
164
             })
170
             })
165
           
171
           
167
             this.pre_time = this.advicePrint[0].pre_time
173
             this.pre_time = this.advicePrint[0].pre_time
168
             this.doctor = this.advicePrint[0].doctor
174
             this.doctor = this.advicePrint[0].doctor
169
             this.projectPrint = data
175
             this.projectPrint = data
176
+            this.singleProjectPrint = data2
170
             console.log('99999999999999999',projectPrint)
177
             console.log('99999999999999999',projectPrint)
171
             var projectlist =  response.data.data.projectlist
178
             var projectlist =  response.data.data.projectlist
172
 
179
 

+ 69 - 17
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue Прегледај датотеку

1267
       },
1267
       },
1268
 
1268
 
1269
       comfirm() {
1269
       comfirm() {
1270
-        console.log('222222222222', this.curPrescriptions)
1270
+        console.log('222222222222', this.teamList)
1271
 
1271
 
1272
         // if (this.curPrescriptions.order_status == 2) {
1272
         // if (this.curPrescriptions.order_status == 2) {
1273
         //   this.$message.error('该处方已经结算,无法继续添加药品或者项目')
1273
         //   this.$message.error('该处方已经结算,无法继续添加药品或者项目')
1279
         //   this.$refs.multipleTable.clearSelection()
1279
         //   this.$refs.multipleTable.clearSelection()
1280
         //   return
1280
         //   return
1281
         // }
1281
         // }
1282
-       if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
1283
-            for (let i = 0; i < this.curDrugs.length; i++) {
1284
-              if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1285
-                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1286
-                return
1287
-              }
1282
+      //  if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
1283
+      //     if (this.$store.getters.xt_user.org_id == 10138) {
1284
+      //       for (let i = 0; i < this.curDrugs.length; i++) {
1285
+      //         if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1286
+      //           this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1287
+      //           return
1288
+      //         }
1289
+
1290
+      //       }
1291
+      //     }
1292
+      //   }
1293
+
1294
+      //   if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
1295
+      //     if (this.$store.getters.xt_user.org_id == 10138) {
1296
+      //       for (let i = 0; i < this.curDrugs.length; i++) {
1297
+      //         if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1298
+      //           this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1299
+      //           return
1300
+      //         }
1301
+
1302
+      //       }
1303
+      //     }
1304
+      //   }
1305
+      if (this.curDrugs.length > 0) {
1306
+          for (let i = 0; i < this.curDrugs.length; i++) {
1307
+            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1308
+              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1309
+              return
1310
+            }
1311
+
1312
+          }
1313
+        }
1314
+        if (this.teamList.length > 0) {
1315
+          for (let i = 0; i < this.teamList.length; i++) {
1316
+            if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
1317
+              setTimeout(() => {
1318
+                this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
1319
+              }, 100)
1320
+              // return
1321
+            }
1322
+
1323
+          }
1288
 
1324
 
1325
+          let arr = this.teamList
1326
+          let newArr = []
1327
+          arr.map(item => {
1328
+            if(this.curPrescriptions.med_type != 14){
1329
+              newArr.push(item)
1289
             }
1330
             }
1331
+            if(this.curPrescriptions.med_type == 14 && item.is_special_diseases == 1){
1332
+              newArr.push(item)
1333
+            }
1334
+          })
1335
+          this.teamList = newArr
1290
         }
1336
         }
1291
 
1337
 
1292
-        if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
1293
-            for (let i = 0; i < this.curDrugs.length; i++) {
1294
-              if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1295
-                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1296
-                return
1297
-              }
1298
 
1338
 
1339
+
1340
+        if (this.curDrugs.length == 0) {
1341
+          for (let i = 0; i < this.curDrugs.length; i++) {
1342
+            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1343
+              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1344
+              return
1299
             }
1345
             }
1346
+
1347
+          }
1300
         }
1348
         }
1301
         if (this.curStatus == 1 && this.rightTab == 2) {
1349
         if (this.curStatus == 1 && this.rightTab == 2) {
1302
           this.$message.error('改处方是药品,无法添加项目')
1350
           this.$message.error('改处方是药品,无法添加项目')
1616
                 price: project[i].price,
1664
                 price: project[i].price,
1617
                 medical_code: project[i].medical_code,
1665
                 medical_code: project[i].medical_code,
1618
                 unit: project[i].unit,
1666
                 unit: project[i].unit,
1619
-                type: 2
1667
+                type: 2,
1668
+                is_special_diseases: project[i].disease_directory
1620
               }
1669
               }
1621
 
1670
 
1622
               this.tabProject.push(obj)
1671
               this.tabProject.push(obj)
1636
                 price: good_info[i].retail_price,
1685
                 price: good_info[i].retail_price,
1637
                 medical_code: good_info[i].medical_insurance_number,
1686
                 medical_code: good_info[i].medical_insurance_number,
1638
                 unit: this.getGoodUnit(good_info[i].good_unit),
1687
                 unit: this.getGoodUnit(good_info[i].good_unit),
1639
-                type: 3
1688
+                type: 3,
1689
+                is_special_diseases: good_info[i].is_special_diseases
1640
               }
1690
               }
1641
               this.tabProject.push(obj)
1691
               this.tabProject.push(obj)
1642
             }
1692
             }
1728
                   remark: '',
1778
                   remark: '',
1729
                   medical_code: project[i].project.medical_code,
1779
                   medical_code: project[i].project.medical_code,
1730
                   unit: project[i].project.unit,
1780
                   unit: project[i].project.unit,
1731
-                  type: project[i].type
1781
+                  type: project[i].type,
1782
+                  is_special_diseases: project[i].project.disease_directory,
1732
                 }
1783
                 }
1733
                 if (obj.total == 0 || obj.total == undefined) {
1784
                 if (obj.total == 0 || obj.total == undefined) {
1734
                   obj.total = 1
1785
                   obj.total = 1
1749
                   remark: '',
1800
                   remark: '',
1750
                   medical_code: project[i].good_info.medical_insurance_number,
1801
                   medical_code: project[i].good_info.medical_insurance_number,
1751
                   unit: project[i].good_info.unit,
1802
                   unit: project[i].good_info.unit,
1752
-                  type: project[i].type
1803
+                  type: project[i].type,
1804
+                  is_special_diseases: project[i].good_info.is_special_diseases,
1753
                 }
1805
                 }
1754
                 if (obj.total == 0 || obj.total == undefined) {
1806
                 if (obj.total == 0 || obj.total == undefined) {
1755
                   obj.total = 1
1807
                   obj.total = 1