Explorar el Código

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

csx hace 4 años
padre
commit
b17c55af14

+ 1 - 1
src/xt_pages/dialysis/bloodPresssWatch.vue Ver fichero

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

+ 1 - 1
src/xt_pages/dialysis/details/NavIgation.vue Ver fichero

584
       this.$refs.finish_dialog.show(this.dialysis_order);
584
       this.$refs.finish_dialog.show(this.dialysis_order);
585
     },
585
     },
586
     showPrescription: function() {
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
     showAccepts: function() {
589
     showAccepts: function() {
590
       this.$refs.accepts.show(this.receiver_treatment_access);
590
       this.$refs.accepts.show(this.receiver_treatment_access);

+ 31 - 6
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Ver fichero

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

+ 33 - 6
src/xt_pages/qcd/indicatorControlAnalysis/patientInspectionDetail.vue Ver fichero

28
             </el-autocomplete>
28
             </el-autocomplete>
29
           </el-form-item>
29
           </el-form-item>
30
         </el-form>
30
         </el-form>
31
-
32
       </div>
31
       </div>
33
 
32
 
34
       <div class="cell clearfix">
33
       <div class="cell clearfix">
80
       <el-container>
79
       <el-container>
81
         <div style="width:160px">
80
         <div style="width:160px">
82
           <div class="tableTitle">患者列表</div>
81
           <div class="tableTitle">患者列表</div>
83
-          
82
+
84
 
83
 
85
           <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500"
84
           <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500"
86
                     :row-style="{ color: '#303133' }"
85
                     :row-style="{ color: '#303133' }"
98
         </div>
97
         </div>
99
         <div style="padding-left:10px;flex:1">
98
         <div style="padding-left:10px;flex:1">
100
           <div class="tableTitle">统计图<span style="font-weight:normal">&nbsp;&nbsp;(当前患者: {{patient_name}})</span></div>
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
           <div>
103
           <div>
102
             <!--<line-chart :options="options2"></line-chart>-->
104
             <!--<line-chart :options="options2"></line-chart>-->
103
             <line-chart v-if="this.$route.query.range_type == 1" :options="options"></line-chart>
105
             <line-chart v-if="this.$route.query.range_type == 1" :options="options"></line-chart>
142
     },
144
     },
143
     data() {
145
     data() {
144
       return {
146
       return {
147
+        item_name:"",
148
+        range_value:"",
145
         custom_chart_data_color: [],
149
         custom_chart_data_color: [],
146
         patient_name: '',
150
         patient_name: '',
147
         options2: {
151
         options2: {
627
               }else{
631
               }else{
628
                 this.getArrLength(this.options2.xAxis.data,this.$route.query.range_type)
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
               if (this.query.range_type == 2) {
636
               if (this.query.range_type == 2) {
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
     created() {
718
     created() {
698
       this.query.project_id = this.$route.query.project_id
724
       this.query.project_id = this.$route.query.project_id
699
       this.query.item_id = this.$route.query.item_id
725
       this.query.item_id = this.$route.query.item_id
700
       this.query.range_type = this.$route.query.range_type
726
       this.query.range_type = this.$route.query.range_type
727
+      this.GetInspectionIndexInit()
701
       this.GetPatientInspectionIndexChart(this.query)
728
       this.GetPatientInspectionIndexChart(this.query)
702
     }
729
     }
703
   }
730
   }

+ 2 - 2
src/xt_pages/workforce/schedule_print.vue Ver fichero

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