Sfoglia il codice sorgente

Merge branch '20230223_pad_vue_new_branch' of http://git.shengws.com/csx/Pad_New into 20230223_pad_vue_new_branch

28169 5 giorni fa
parent
commit
ce33057f56

+ 17 - 8
src/pages/main/PrintIndex.vue Vedi File

@@ -383,7 +383,7 @@
383 383
         v-bind:childResponse="childResponse"
384 384
         v-if="org_template_info.template_id == 73"
385 385
       ></DialysisPrintOrderSeventythree>
386
-      
386
+
387 387
       <DialysisPrintOrderServentyFour
388 388
         ref="childOne"
389 389
         style="margin-top: 60px"
@@ -409,7 +409,7 @@
409 409
         ref="childOne"
410 410
         style="margin-top: 60px"
411 411
         v-bind:childResponse="childResponse"
412
-        v-if="org_template_info.template_id == 78" 
412
+        v-if="org_template_info.template_id == 78"
413 413
       >
414 414
       </DialysisPrintOrderSeventyeight>
415 415
       <DialysisPrintOrderServentynine
@@ -431,8 +431,14 @@
431 431
         v-bind:childResponse="childResponse"
432 432
         v-if="org_template_info.template_id == 81">
433 433
       </DialysisPrintOrdereightyone>
434
+      <DialysisPrintOrdereightytwo ref="childOne"
435
+        style="margin-top: 60px"
436
+        v-bind:childResponse="childResponse"
437
+        v-if="org_template_info.template_id == 82">
438
+
439
+      </DialysisPrintOrdereightytwo>
434 440
     </div>
435
-    
441
+
436 442
     <!--<side-bar :active_index="0" v-if="isShow == true"></side-bar>-->
437 443
   </div>
438 444
 </template>
@@ -504,6 +510,7 @@ import DialysisPrintOrderSeventyeight from './template/DialysisPrintOrderSeventy
504 510
 import DialysisPrintOrderServentynine from './template/DialysisPrintOrderServentynine'
505 511
 import DialysisPrintOrdereighty from './template/DialysisPrintOrdereighty'
506 512
 import DialysisPrintOrdereightyone from './template/DialysisPrintOrdereightyone'
513
+import DialysisPrintOrdereightytwo from './template/DialysisPrintOrdereightytwo'
507 514
 export default {
508 515
   name: "PrintIndex",
509 516
   components: {
@@ -568,7 +575,8 @@ export default {
568 575
     DialysisPrintOrderSeventyeight,
569 576
     DialysisPrintOrderServentynine,
570 577
     DialysisPrintOrdereighty,
571
-    DialysisPrintOrdereightyone
578
+    DialysisPrintOrdereightyone,
579
+    DialysisPrintOrdereightytwo
572 580
   },
573 581
   data() {
574 582
     return {
@@ -726,13 +734,14 @@ export default {
726 734
         this.loading = false;
727 735
         if (response.data.state == 1) {
728 736
             this.childResponse = response;
729
-            
730
-          if(this.org_id != 10206){
737
+
738
+          if(this.org_id != 10727&&this.org_id !=0){
731 739
             this.org_template_info = response.data.data.org_template_info;
732 740
           }else{
733
-            this.org_template_info.template_id = 80
741
+            this.org_template_info.template_id = 82
734 742
           }
735
-          console.log('this.org_template_info',this.org_template_info);
743
+          console.log('responsevvvvvv',response.data.data);
744
+          
736 745
         } else {
737 746
           this.$message.error("请求数据失败");
738 747
           return false;

+ 7 - 28
src/pages/main/template/DialysisPrintOrderSeventeen.vue Vedi File

@@ -76,34 +76,13 @@
76 76
             </tr>
77 77
               <tr>
78 78
               <td style="text-align:left;" colspan="3">
79
-                  <span style="display:inline-block;margin-left:15px;"
80
-                  >治疗方式:</span
81
-                  >
82
-                  <label-box
83
-                  :isChecked="prescription.mode_id == 1 ? true : false"
84
-                  showValue="HD"
85
-                  ></label-box
86
-                  >&nbsp;
87
-                  <label-box
88
-                  :isChecked="prescription.mode_id == 2 ? true : false"
89
-                  showValue="HDF"
90
-                  ></label-box
91
-                  >&nbsp;
92
-                  <label-box
93
-                  :isChecked="prescription.mode_id == 4 ? true : false"
94
-                  showValue="HP"
95
-                  ></label-box
96
-                  >&nbsp;
97
-                  <label-box
98
-                  :isChecked="prescription.mode_id == 7 ? true : false"
99
-                  showValue="IUF"
100
-                  ></label-box
101
-                  >&nbsp;
102
-                  <label-box
103
-                  :isChecked="prescription.mode_id == 5 ? true : false"
104
-                  showValue="HF"
105
-                  ></label-box
106
-                  >&nbsp;
79
+                  <span style="display:inline-block;margin-left:2px;">治疗方式:</span>
80
+                  <label-box :isChecked="prescription.mode_id == 1 ? true : false" showValue="HD"></label-box>
81
+                  <label-box :isChecked="prescription.mode_id == 2 ? true : false" showValue="HDF"></label-box>
82
+                  <label-box :isChecked="prescription.mode_id == 4 ? true : false" showValue="HP"></label-box>
83
+                  <label-box :isChecked="prescription.mode_id == 7 ? true : false" showValue="IUF"></label-box>
84
+                  <label-box :isChecked="prescription.mode_id == 5 ? true : false" showValue="HF"></label-box>
85
+                  <label-box :isChecked="prescription.mode_id == 3 ? true : false" showValue="HD+HP"></label-box>
107 86
               </td>
108 87
               <td style="text-align:left;" colspan="4">
109 88
                   <span style="display:inline-block;margin-left:15px;"

+ 66 - 100
src/pages/main/template/DialysisPrintOrderSeventyeight.vue Vedi File

@@ -416,11 +416,15 @@
416 416
                       style=" width: 50%; text-align: center; white-space: normal;
417 417
                       "
418 418
                     >
419
-                      {{
420
-                        afterdialysis.weight_loss
421
-                          ? afterdialysis.weight_loss
422
-                          : "/"
423
-                      }}
419
+                      <span v-if="predialysis.weight_before && afterdialysis.weight_after &&
420
+                          parseFloat( predialysis.weight_before - predialysis.additional_weight ).toFixed(1) - 
421
+                          parseFloat( afterdialysis.weight_after - afterdialysis.additional_weight).toFixed(1)==0
422
+                      ">
423
+                          0
424
+                      </span>
425
+                      <span v-else>
426
+                        {{ afterdialysis.weight_loss ? afterdialysis.weight_loss : "/"}}
427
+                      </span>
424 428
                     </div>kg
425 429
                   </div>
426 430
                   <div class="inline_block" style="flex:1;">
@@ -1317,7 +1321,10 @@ export default {
1317 1321
         } if (this.afterdialysis.weight_after == 0) {
1318 1322
           const obj20 = "透后体重"
1319 1323
           checkDate.push(obj20)
1320
-        } if (this.afterdialysis.weight_loss == 0) {
1324
+        } if (this.afterdialysis.weight_loss == 0&& 
1325
+            this.predialysis.weight_before =='' && 
1326
+            this.afterdialysis.weight_after == ''
1327
+        ) {
1321 1328
           const obj21 = "体重减少"
1322 1329
           checkDate.push(obj21)
1323 1330
         } if (this.prescription.target_ultrafiltration == 0) {
@@ -1477,102 +1484,61 @@ export default {
1477 1484
             }
1478 1485
           })
1479 1486
         }
1480
-        if(this.monitors.length >0){
1481
-          for(let i in this.monitors){
1482
-            if(this.monitors[i].blood_flow_volume ==0 && this.dialysisOrder.end_time > this.monitors[i].operate_time){
1483
-              const obj55 = '监测第'+((i*1)+1)+'行血流量'
1484
-              monearr.push(obj55)
1485
-            } if((this.monitors[i].venous_pressure ==0 ||
1486
-                this.monitors[i].transmembrane_pressure ==0 ) && this.dialysisOrder.end_time > this.monitors[i].operate_time
1487
-            ){
1488
-              const obj56 = '监测第'+((i*1)+1)+'行静脉压/跨膜压'
1489
-              monearr.push(obj56)
1490
-            } if(this.monitors[i].ultrafiltration_rate ==0 && this.dialysisOrder.end_time > this.monitors[i].operate_time){
1491
-              const obj57 = '监测第'+((i*1)+1)+'行超滤率'
1492
-              monearr.push(obj57)
1493
-            } if(this.monitors[i].ultrafiltration_volume == 0 && i !=0 && 
1494
-                this.dialysisOrder.end_time > this.monitors[i].operate_time
1495
-            ){
1496
-              const obj53 = '监测第'+((i*1)+1)+'行超滤量'
1497
-              monearr.push(obj53)
1498
-            } if(this.monitors[i].replacement_rate ==0 && this.prescription.mode =='HDF'&& 
1499
-                this.dialysisOrder.end_time > this.monitors[i].operate_time
1500
-            ){
1501
-              const obj58 = '监测第'+((i*1)+1)+'行置换率'
1502
-              monearr.push(obj58)
1503
-            } if(this.monitors[i].displacement_quantity == 0 && this.prescription.mode =='HDF'&& i !=0
1504
-                && this.dialysisOrder.end_time > this.monitors[i].operate_time
1505
-            ){
1506
-              const obj54 = '监测第'+((i*1)+1)+'行置换量'
1507
-              monearr.push(obj54)
1508
-            } if(this.monitors[i].sodium_concentration ==0 && 
1509
-                this.dialysisOrder.end_time > this.monitors[i].operate_time
1510
-            ){
1511
-              // this.monitors[i].temperature == 0
1512
-              const obj59 = '监测第'+((i*1)+1)+'行钠浓度/温度'
1513
-              monearr.push(obj59)
1514
-            } if(this.monitors[i].pulse_frequency ==0  && 
1515
-                this.dialysisOrder.end_time > this.monitors[i].operate_time
1516
-            ){
1517
-              const obj60 = '监测第'+((i*1)+1)+'行脉搏'
1518
-              monearr.push(obj60)
1519
-            } if(this.monitors[i].breathing_rate ==0 && 
1520
-              this.dialysisOrder.end_time > this.monitors[i].operate_time
1521
-            ){
1522
-              const obj61 = '监测第'+((i*1)+1)+'行呼吸'
1523
-              monearr.push(obj61)
1524
-            } if((this.monitors[i].systolic_blood_pressure ==0 ||
1525
-                  this.monitors.diastolic_blood_pressure==0) && 
1526
-                  this.dialysisOrder.end_time > this.monitors[i].operate_time
1527
-            ){
1528
-              const obj62 = '监测第'+((i*1)+1)+'行血压'
1529
-              monearr.push(obj62)
1530
-            }
1487
+        if(this.dialysisOrder != undefined && this.dialysisOrder.end_time !=0){
1488
+          if(this.monitors.length >0){
1489
+            for(let i in this.monitors){
1490
+              if(this.monitors[i].blood_flow_volume ==0 && this.dialysisOrder.end_time >= this.monitors[i].operate_time){
1491
+                const obj55 = '监测第'+((i*1)+1)+'行血流量'
1492
+                checkDate.push(obj55)
1493
+              } if((this.monitors[i].venous_pressure ==0 ||
1494
+                  this.monitors[i].transmembrane_pressure ==0 ) && this.dialysisOrder.end_time >= this.monitors[i].operate_time
1495
+              ){
1496
+                const obj56 = '监测第'+((i*1)+1)+'行静脉压/跨膜压'
1497
+                checkDate.push(obj56)
1498
+              } if(this.monitors[i].ultrafiltration_rate ==0 && this.dialysisOrder.end_time >= this.monitors[i].operate_time){
1499
+                const obj57 = '监测第'+((i*1)+1)+'行超滤率'
1500
+                checkDate.push(obj57)
1501
+              } if(this.monitors[i].ultrafiltration_volume == 0 && i !=0 && 
1502
+                  this.dialysisOrder.end_time >= this.monitors[i].operate_time
1503
+              ){
1504
+                const obj53 = '监测第'+((i*1)+1)+'行超滤量'
1505
+                checkDate.push(obj53)
1506
+              } if(this.monitors[i].replacement_rate ==0 && this.prescription.mode =='HDF'&& 
1507
+                  this.dialysisOrder.end_time >= this.monitors[i].operate_time
1508
+              ){
1509
+                const obj58 = '监测第'+((i*1)+1)+'行置换率'
1510
+                checkDate.push(obj58)
1511
+              } if(this.monitors[i].displacement_quantity == 0 && this.prescription.mode =='HDF'&& i !=0
1512
+                  && this.dialysisOrder.end_time >= this.monitors[i].operate_time
1513
+              ){
1514
+                const obj54 = '监测第'+((i*1)+1)+'行置换量'
1515
+                checkDate.push(obj54)
1516
+              } if(this.monitors[i].sodium_concentration ==0 && 
1517
+                  this.dialysisOrder.end_time >= this.monitors[i].operate_time
1518
+              ){
1519
+                // this.monitors[i].temperature == 0
1520
+                const obj59 = '监测第'+((i*1)+1)+'行钠浓度/温度'
1521
+                checkDate.push(obj59)
1522
+              } if(this.monitors[i].pulse_frequency ==0  && 
1523
+                  this.dialysisOrder.end_time >= this.monitors[i].operate_time
1524
+              ){
1525
+                const obj60 = '监测第'+((i*1)+1)+'行脉搏'
1526
+                checkDate.push(obj60)
1527
+              } if(this.monitors[i].breathing_rate ==0 && 
1528
+                this.dialysisOrder.end_time >= this.monitors[i].operate_time
1529
+              ){
1530
+                const obj61 = '监测第'+((i*1)+1)+'行呼吸'
1531
+                checkDate.push(obj61)
1532
+              } if((this.monitors[i].systolic_blood_pressure ==0 ||
1533
+                    this.monitors.diastolic_blood_pressure==0) && 
1534
+                    this.dialysisOrder.end_time > this.monitors[i].operate_time
1535
+              ){
1536
+                const obj62 = '监测第'+((i*1)+1)+'行血压'
1537
+                checkDate.push(obj62)
1538
+              }
1531 1539
 
1540
+            }
1532 1541
           }
1533
-          // for(let i in this.monitors){
1534
-          // if(this.monitors[i].blood_flow_volume ==0){
1535
-          // const obj55 = '监测第'+((i*1)+1)+'行血流量'
1536
-          // monearr.push(obj55)
1537
-          // } if(this.monitors[i].venous_pressure ==0 ||
1538
-          // this.monitors[i].transmembrane_pressure ==0
1539
-          // ){
1540
-          // const obj56 = '监测第'+((i*1)+1)+'行静脉压/跨膜压'
1541
-          // monearr.push(obj56)
1542
-          // } if(this.monitors[i].ultrafiltration_rate ==0){
1543
-          // const obj57 = '监测第'+((i*1)+1)+'行超滤率'
1544
-          // monearr.push(obj57)
1545
-          // } if(this.monitors[i].ultrafiltration_volume == 0 && i !=0){
1546
-          // const obj53 = '监测第'+((i*1)+1)+'行超滤量'
1547
-          // monearr.push(obj53)
1548
-          // } if(this.monitors[i].replacement_rate ==0 && this.prescription.mode =='HDF'
1549
-          // ){
1550
-          // const obj58 = '监测第'+((i*1)+1)+'行置换率'
1551
-          // monearr.push(obj58)
1552
-          // } if(this.monitors[i].displacement_quantity == 0 && this.prescription.mode =='HDF'&& i !=0){
1553
-          // const obj54 = '监测第'+((i*1)+1)+'行置换量'
1554
-          // monearr.push(obj54)
1555
-          // }  if(this.monitors[i].sodium_concentration ==0 ){
1556
-          // // this.monitors[i].temperature == 0
1557
-          // const obj59 = '监测第'+((i*1)+1)+'行钠浓度/温度'
1558
-          // monearr.push(obj59)
1559
-          // } if(this.monitors[i].pulse_frequency ==0){
1560
-          // const obj60 = '监测第'+((i*1)+1)+'行脉搏'
1561
-          // monearr.push(obj60)
1562
-          // } if(this.monitors[i].breathing_rate ==0){
1563
-          // const obj61 = '监测第'+((i*1)+1)+'行呼吸'
1564
-          // monearr.push(obj61)
1565
-          // } if(this.monitors[i].systolic_blood_pressure ==0 ||
1566
-          // this.monitors.diastolic_blood_pressure==0){
1567
-          // const obj62 = '监测第'+((i*1)+1)+'行血压'
1568
-          // monearr.push(obj62)
1569
-          // }
1570
-
1571
-          // }
1572
-        }
1573
-        if(monearr.length>0){
1574
-          checkDate =checkDate.concat(monearr)
1575
-          console.log('1111',checkDate.concat(monearr));
1576 1542
         }
1577 1543
 
1578 1544
         this.getcheckData(checkDate)

+ 118 - 3
src/pages/main/template/DialysisPrintOrderSixtyeight.vue Vedi File

@@ -828,14 +828,68 @@
828 828
                           <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
829 829
                         </td>
830 830
                         <td height="35px" colspan="2" class="advice-name" style="padding-left:7px;" >
831
-                          <span v-if="advice.parent_id > 0">---></span>
831
+                          <div v-if="org_id==10551 || org_id==0">
832
+                            <div :rowspan="advice.prescriptionChild.length"  v-for="(it,key)  in advice.prescriptionChild" style="border: none;">
833
+                              <div style="border: none;">
834
+                                <span>{{ it.advice_name }}</span>
835
+                                      <span v-if="it && it.advice_desc"
836
+                                        >({{ it.advice_desc
837
+                                        }}{{ it.drug_spec_unit }})</span
838
+                                      >
839
+                                      <span v-if="it.prescribing_number"
840
+                                        >&nbsp;&nbsp; {{ it.prescribing_number
841
+                                        }}{{ it.prescribing_number_unit }}</span
842
+                                      >
843
+                                       <span v-if="it.single_dose != 0"
844
+                                        >{{ it.single_dose
845
+                                        }}{{ it.single_dose_unit }}</span
846
+                                      >
847
+                                      <span>{{ it.delivery_way}}</span>
848
+                                      <span>{{
849
+                                        it.execution_frequency
850
+                                      }}</span>
851
+                                      <!-- {{ it.remark }} -->
852
+                                     <span v-if="it.remark!=''">{{ it.remark }}</span>
853
+                              </div> 
854
+                            </div>
855
+                          </div>
856
+                          <div v-else>
857
+                            <span v-if="advice.parent_id > 0">---></span>
858
+                            <span>{{ advice.advice_name }}</span>
859
+                            <span v-if="advice && advice.advice_desc"
860
+                              >({{ advice.advice_desc
861
+                              }}{{ advice.drug_spec_unit }})</span
862
+                            >
863
+                            <span v-if="advice.prescribing_number"
864
+                              >&nbsp;&nbsp; {{ advice.prescribing_number
865
+                              }}{{ advice.prescribing_number_unit }}</span
866
+                            >
867
+                            <span v-if="advice.single_dose != 0">
868
+                              <span v-if="advice.advice_name!='血液透析滤过'&&advice.advice_name!='血液透析'&&advice.advice_name!='电脑血糖监测'">
869
+                                {{ advice.single_dose}}{{ advice.single_dose_unit }}
870
+                              </span>
871
+                              </span>
872
+                            <span v-if="advice.parent_id == 0">{{
873
+                              advice.delivery_way
874
+                            }}</span>
875
+                            <span v-if="advice.parent_id == 0">{{
876
+                              advice.execution_frequency
877
+                            }}</span>
878
+                            <span
879
+                              v-if="
880
+                                advice.parent_id == 0 && advice.remark.length > 0
881
+                              "
882
+                              >({{ advice.remark }})</span
883
+                            >
884
+                          </div>
885
+                          <!-- <span v-if="advice.parent_id > 0"></span>
832 886
                           <span >{{advice.advice_name }}</span>
833 887
                           <span v-if="advice&&advice.advice_desc">({{advice.advice_desc}}{{advice.drug_spec_unit}})</span>
834 888
                           <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
835 889
                           <span  v-if="advice.single_dose != 0"> {{advice.single_dose}}{{advice.single_dose_unit}}</span>
836 890
                           <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
837 891
                           <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
838
-                          <span v-if="advice.parent_id == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
892
+                          <span v-if="advice.parent_id == 0 && advice.remark.length > 0" >({{advice.remark}})</span> -->
839 893
                         </td>
840 894
                         <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
841 895
                           <span>{{advice.delivery_way}}</span>
@@ -1864,7 +1918,68 @@ export default {
1864 1918
         }
1865 1919
         this.totollength = this.doctor_advices.length + this.monitors.length
1866 1920
         console.log(this.advice_groups)
1867
-       
1921
+        if(this.org_id ==10551 ||this.org_id ==0){
1922
+          var docArr = []
1923
+          if(this.doctor_advices!=null && this.doctor_advices.length>0){
1924
+            for(let i=0;i<this.doctor_advices.length;i++){
1925
+              if(this.doctor_advices[i].delivery_way!='口服'){
1926
+                  docArr.push(this.doctor_advices[i])
1927
+              }
1928
+            }
1929
+          }
1930
+          this.doctor_advices = []
1931
+          this.doctor_advices = docArr
1932
+
1933
+          if(this.doctor_advices!=null && this.doctor_advices.length>0 ){
1934
+
1935
+            for(let i=0;i<this.doctor_advices.length;i++){
1936
+              this.doctor_advices[i].groupPrescriptionId = this.doctor_advices[i].prescription_id + "_"  + this.doctor_advices[i].groupno
1937
+            }
1938
+            console.log("医嘱内容我我哦我我哦doctor_advices",this.doctor_advices)
1939
+
1940
+            let dataInfo = {}
1941
+            this.doctor_advices.forEach((item, index) => {
1942
+
1943
+            let { groupPrescriptionId } = item
1944
+            if (!dataInfo[groupPrescriptionId]) {
1945
+              dataInfo[groupPrescriptionId] = {
1946
+                groupPrescriptionId:item.groupPrescriptionId,
1947
+                start_time:item.start_time,
1948
+                advice_name:item.advice_name,
1949
+                advice_desc:item.advice_desc,
1950
+                parent_id:item.parent_id,
1951
+                drug_spec_unit:item.drug_spec_unit,
1952
+                prescribing_number:item.prescribing_number,
1953
+                prescribing_number_unit:item.prescribing_number_unit,
1954
+                single_dose:item.single_dose,
1955
+                single_dose_unit:item.single_dose_unit,
1956
+                delivery_way:item.delivery_way,
1957
+                execution_frequency:item.execution_frequency,
1958
+                remark:item.remark,
1959
+                execution_time:item.execution_time,
1960
+                execution_staff:item.execution_staff,
1961
+                prescriptionChild:[],
1962
+                advice_doctor:item.advice_doctor,
1963
+              }
1964
+            }
1965
+            })
1966
+            let newArr = Object.values(dataInfo)
1967
+
1968
+            if(newArr!=null && newArr.length >0){
1969
+            for(let i=0;i<newArr.length;i++){
1970
+              for(let j=0;j<this.doctor_advices.length;j++){
1971
+                if(newArr[i].groupPrescriptionId == this.doctor_advices[j].groupPrescriptionId){
1972
+                    newArr[i].prescriptionChild.push(this.doctor_advices[j])
1973
+                }
1974
+              }
1975
+            }
1976
+            }
1977
+            
1978
+            this.doctor_advices = []
1979
+            this.doctor_advices = newArr
1980
+            console.log("newArr",this.doctor_advices)
1981
+          }
1982
+        }
1868 1983
       } else {
1869 1984
         this.loading = false
1870 1985
         this.$message.error('请求数据失败')

File diff suppressed because it is too large
+ 1891 - 0
src/pages/main/template/DialysisPrintOrdereightytwo.vue