ソースを参照

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

See999 4 年 前
コミット
177ef11126

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_seven.vue ファイルの表示

@@ -1301,7 +1301,7 @@
1301 1301
 
1302 1302
             this.records = this.records.concat(resp.data.schedules)
1303 1303
 
1304
-             // console.log('记录', this.records)
1304
+              console.log('记录', this.records)
1305 1305
 
1306 1306
             for (const recordIndex in this.records) {
1307 1307
               var dlegh = 0

+ 1 - 1
src/xt_pages/dialysis/bloodPresssWatch.vue ファイルの表示

@@ -601,7 +601,7 @@ export default {
601 601
                     a
602 602
                   ].diastolic_blood_pressure.toString();
603 603
 
604
-                SchedualPatientsTable.bp.unshift(bp);
604
+                SchedualPatientsTable.bp.push(bp);
605 605
               }
606 606
 
607 607
               this.SchedualPatientsTableData.push(SchedualPatientsTable);

+ 1 - 1
src/xt_pages/dialysis/details/NavIgation.vue ファイルの表示

@@ -584,7 +584,7 @@ export default {
584 584
       this.$refs.finish_dialog.show(this.dialysis_order);
585 585
     },
586 586
     showPrescription: function() {
587
-      this.$refs.prescription.show(this.prescription,this.schedual);
587
+      this.$refs.prescription.show(this.prescription,this.schedual,this.last_dialysis_prescribe);
588 588
     },
589 589
     showAccepts: function() {
590 590
       this.$refs.accepts.show(this.receiver_treatment_access);

+ 31 - 6
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue ファイルの表示

@@ -1670,7 +1670,10 @@
1670 1670
       getTime(val) {
1671 1671
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1672 1672
       },
1673
-      show(pre,schedual) {
1673
+      show(pre,schedual,last) {
1674
+        console.log(last)
1675
+        console.log(pre)
1676
+
1674 1677
         if(schedual.schedule_type == 1){
1675 1678
           this.start_time = new Date(2016, 9, 10, 7, 0,0)
1676 1679
           this.advice_start_time = "07:00"
@@ -1726,6 +1729,20 @@
1726 1729
         }
1727 1730
 
1728 1731
         if (this.predialysis == null || this.predialysis.id == 0) {
1732
+          this.dialysisPrescription.niprocart = last.niprocart
1733
+          this.dialysisPrescription.jms = last.jms
1734
+          this.dialysisPrescription.fistula_needle_set = last.fistula_needle_set
1735
+          this.dialysisPrescription.fistula_needle_set_16 = last.fistula_needle_set_16
1736
+          this.dialysisPrescription.hemoperfusion = last.hemoperfusion
1737
+          this.dialysisPrescription.dialyser_sterilised = last.dialyser_sterilised
1738
+          this.dialysisPrescription.filtryzer = last.filtryzer
1739
+          this.dialysisPrescription.target_ktv = last.target_ktv
1740
+          this.dialysisPrescription.dialyzers = last.dialyzers
1741
+          this.dialysisPrescription.injector = last.injector
1742
+          this.dialysisPrescription.bloodlines = last.bloodlines
1743
+          this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
1744
+          this.dialysisPrescription.package = last.package
1745
+          this.dialysisPrescription.a_liquid = last.a_liquid
1729 1746
           weight_before = 0
1730 1747
         } else {
1731 1748
           weight_before = this.predialysis.weight_before
@@ -2867,7 +2884,9 @@
2867 2884
             if (response.data.data.solution != null) {
2868 2885
               for (const key in response.data.data.solution) {
2869 2886
                 // 长期处方不为空
2870
-                if (key != 'target_ultrafiltration') {
2887
+                if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms'&& key != 'fistula_needle_set'&& key != 'fistula_needle_set_16'
2888
+                  && key != 'hemoperfusion'&& key != 'dialyser_sterilised'&& key != 'filtryzer'&& key != 'target_ktv'&& key != 'dialyzers'
2889
+                  && key != 'injector'&& key != 'bloodlines'&& key != 'tubing_hemodialysis'&& key != 'package'&& key != 'a_liquid') {
2871 2890
                   this.dialysisPrescription[key] =
2872 2891
                     response.data.data.solution[key]
2873 2892
                 }
@@ -2876,15 +2895,19 @@
2876 2895
               if (response.data.data.prescription != null) {
2877 2896
                 // 临时处方不为空
2878 2897
                 for (const key in response.data.data.prescription) {
2879
-                  if (key != 'target_ultrafiltration') {
2898
+                  if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms'&& key != 'fistula_needle_set'&& key != 'fistula_needle_set_16'
2899
+                    && key != 'hemoperfusion'&& key != 'dialyser_sterilised'&& key != 'filtryzer'&& key != 'target_ktv'&& key != 'dialyzers'
2900
+                    && key != 'injector'&& key != 'bloodlines'&& key != 'tubing_hemodialysis'&& key != 'package'&& key != 'a_liquid') {
2880 2901
                     this.dialysisPrescription[key] =
2881 2902
                       response.data.data.prescription[key]
2882 2903
                   }
2883 2904
                 }
2884 2905
               } else if (response.data.data.system_prescription != null) {
2885
-                // 临时处方不为空
2906
+                // 系统处方不为空
2886 2907
                 for (const key in response.data.data.system_prescription) {
2887
-                  if (key != 'target_ultrafiltration') {
2908
+                  if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms'&& key != 'fistula_needle_set'&& key != 'fistula_needle_set_16'
2909
+                    && key != 'hemoperfusion'&& key != 'dialyser_sterilised'&& key != 'filtryzer'&& key != 'target_ktv'&& key != 'dialyzers'
2910
+                    && key != 'injector'&& key != 'bloodlines'&& key != 'tubing_hemodialysis'&& key != 'package'&& key != 'a_liquid') {
2888 2911
                     this.dialysisPrescription[key] =
2889 2912
                       response.data.data.system_prescription[key]
2890 2913
                   }
@@ -2892,7 +2915,9 @@
2892 2915
               } else {
2893 2916
                 for (const key in this.dialysisPrescription) {
2894 2917
                   // 临时处方为空
2895
-                  if (key != 'target_ultrafiltration') {
2918
+                  if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms'&& key != 'fistula_needle_set'&& key != 'fistula_needle_set_16'
2919
+                    && key != 'hemoperfusion'&& key != 'dialyser_sterilised'&& key != 'filtryzer'&& key != 'target_ktv'&& key != 'dialyzers'
2920
+                    && key != 'injector'&& key != 'bloodlines'&& key != 'tubing_hemodialysis'&& key != 'package'&& key != 'a_liquid') {
2896 2921
                     this.dialysisPrescription[key] = ''
2897 2922
                   }
2898 2923
                 }

+ 33 - 6
src/xt_pages/qcd/indicatorControlAnalysis/patientInspectionDetail.vue ファイルの表示

@@ -28,7 +28,6 @@
28 28
             </el-autocomplete>
29 29
           </el-form-item>
30 30
         </el-form>
31
-
32 31
       </div>
33 32
 
34 33
       <div class="cell clearfix">
@@ -80,7 +79,7 @@
80 79
       <el-container>
81 80
         <div style="width:160px">
82 81
           <div class="tableTitle">患者列表</div>
83
-          
82
+
84 83
 
85 84
           <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500"
86 85
                     :row-style="{ color: '#303133' }"
@@ -98,6 +97,9 @@
98 97
         </div>
99 98
         <div style="padding-left:10px;flex:1">
100 99
           <div class="tableTitle">统计图<span style="font-weight:normal">&nbsp;&nbsp;(当前患者: {{patient_name}})</span></div>
100
+
101
+          <div class="tableTitle"><span style="font-weight:normal">{{item_name}} {{range_value}}</span></div>
102
+
101 103
           <div>
102 104
             <!--<line-chart :options="options2"></line-chart>-->
103 105
             <line-chart v-if="this.$route.query.range_type == 1" :options="options"></line-chart>
@@ -142,6 +144,8 @@
142 144
     },
143 145
     data() {
144 146
       return {
147
+        item_name:"",
148
+        range_value:"",
145 149
         custom_chart_data_color: [],
146 150
         patient_name: '',
147 151
         options2: {
@@ -627,9 +631,6 @@
627 631
               }else{
628 632
                 this.getArrLength(this.options2.xAxis.data,this.$route.query.range_type)
629 633
               }
630
-              console.log(this.options.xAxis.data)
631
-
632
-              console.log(this.options.series[0].data)
633 634
 
634 635
               //获取无法确定选项的颜色
635 636
               if (this.query.range_type == 2) {
@@ -686,7 +687,32 @@
686 687
           }
687 688
         }
688 689
 
689
-      }
690
+      },GetInspectionIndexInit() {
691
+        GetInspectionIndexInit()
692
+          .then(rs => {
693
+            var resp = rs.data
694
+            if (resp.state == 1) {
695
+              this.all_inspection_reference = resp.data.references
696
+              for (let i = 0; i < this.all_inspection_reference.length; i++){
697
+                  if(this.all_inspection_reference[i].id == this.query.item_id){
698
+                    if(this.all_inspection_reference[i].range_type == 1) {
699
+                      this.item_name = this.all_inspection_reference[i].item_name
700
+                      this.range_value = "(" + this.all_inspection_reference[i].range_min + "~" + this.all_inspection_reference[i].range_max +")"
701
+                    }else{
702
+                      this.item_name = this.all_inspection_reference[i].item_name
703
+                      this.range_value = ""
704
+                    }
705
+                  }
706
+              }
707
+
708
+            } else {
709
+              this.$message.error(resp.msg)
710
+            }
711
+          })
712
+          .catch(error => {
713
+          })
714
+      },
715
+
690 716
 
691 717
     },
692 718
     created() {
@@ -698,6 +724,7 @@
698 724
       this.query.project_id = this.$route.query.project_id
699 725
       this.query.item_id = this.$route.query.item_id
700 726
       this.query.range_type = this.$route.query.range_type
727
+      this.GetInspectionIndexInit()
701 728
       this.GetPatientInspectionIndexChart(this.query)
702 729
     }
703 730
   }

+ 2 - 2
src/xt_pages/workforce/schedule_print.vue ファイルの表示

@@ -78,7 +78,7 @@
78 78
 </template>
79 79
 
80 80
 <script>
81
-  import { GetWeekSchedulePrintInitData } from '@/api/schedule'
81
+  import { GetWeekSchedulePrintInitData,initDate } from '@/api/schedule'
82 82
   import { parseTime } from '@/utils'
83 83
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
84 84
   import print from 'print-js'
@@ -270,7 +270,7 @@
270 270
           var begin_day = parseInt(parseTime(resp.data.monday * 1000, '{d}'))
271 271
           for (let index = 0; index < this.schedules.length; index++) {
272 272
             const collection = this.schedules[index]
273
-            collection.day = begin_day + index
273
+            collection.day = resp.data.days[index].split("-")[1]+"-"+resp.data.days[index].split("-")[2]
274 274
           }
275 275
 
276 276
           var schedules = resp.data.schedules