Преглед на файлове

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

XMLWAN преди 4 години
родител
ревизия
025b1fed20

+ 2 - 2
src/api/schedule.js Целия файл

@@ -53,12 +53,12 @@ export function GetPatientSchedules(id) {
53 53
   })
54 54
 }
55 55
 
56
-export function GetWeekSchedulePrintInitData(date) {
56
+export function GetWeekSchedulePrintInitData(date,type) {
57 57
   return request({
58 58
     url: '/api/schedule/print/initdata',
59 59
     method: 'get',
60 60
     params: {
61
-      date: date
61
+      date: date,
62 62
     }
63 63
   })
64 64
 }

+ 21 - 21
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Целия файл

@@ -305,7 +305,7 @@
305 305
                 <el-option v-for="item in this.$store.getters.skin" :label="item.name" :value="item.id"
306 306
                            :key="item.id"></el-option>
307 307
               </el-select> -->
308
-             
308
+
309 309
               <el-input v-model="assessmentBeforeDislysis.skin" readonly
310 310
                       @focus="showInnerDialog('12')">
311 311
               </el-input>
@@ -682,27 +682,28 @@
682 682
       },
683 683
       show(assessment, lastDryWeightDislysis,last_predialysis_evaluation) {
684 684
         this.lastPredialysisEvaluation = last_predialysis_evaluation
685
-        if(this.lastPredialysisEvaluation.is_hemorrhage == 1){
686
-           this.lastPredialysisEvaluation.is_hemorrhage = "1"
687
-        }
688
-        if(this.lastPredialysisEvaluation.is_hemorrhage == 2){
689
-          this.lastPredialysisEvaluation.is_hemorrhage = "2"
690
-        }
691
-        if(this.lastPredialysisEvaluation.catheter_bend == 1){
692
-          this.lastPredialysisEvaluation.catheter_bend = "1"
693
-        }
694
-        if(this.lastPredialysisEvaluation.catheter_bend == 2){
685
+        if(this.lastPredialysisEvaluation != null) {
686
+          if (this.lastPredialysisEvaluation.is_hemorrhage == 1) {
687
+            this.lastPredialysisEvaluation.is_hemorrhage = "1"
688
+          }
689
+          if (this.lastPredialysisEvaluation.is_hemorrhage == 2) {
690
+            this.lastPredialysisEvaluation.is_hemorrhage = "2"
691
+          }
692
+          if (this.lastPredialysisEvaluation.catheter_bend == 1) {
693
+            this.lastPredialysisEvaluation.catheter_bend = "1"
694
+          }
695
+          if (this.lastPredialysisEvaluation.catheter_bend == 2) {
695 696
             this.lastPredialysisEvaluation.catheter_bend = "2"
696
-        }
697
-        if(this.lastPredialysisEvaluation.is_infect == 1){
698
-          this.lastPredialysisEvaluation.is_infect ="1"
699
-        }
700
-        if(this.lastPredialysisEvaluation.is_infect == 2){
701
-         this.lastPredialysisEvaluation.is_infect = "2"
697
+          }
698
+          if (this.lastPredialysisEvaluation.is_infect == 1) {
699
+            this.lastPredialysisEvaluation.is_infect = "1"
700
+          }
701
+          if (this.lastPredialysisEvaluation.is_infect == 2) {
702
+            this.lastPredialysisEvaluation.is_infect = "2"
703
+          }
702 704
         }
703 705
 
704
-         console.log("22222222",this.lastPredialysisEvaluation)
705
-        // console.log("乐行",typeof(this.lastPredialysisEvaluation.is_hemorrhage))
706
+
706 707
         this.assessment = assessment
707 708
         this.getPermission()
708 709
         this.isVisibility = true
@@ -721,7 +722,6 @@
721 722
 
722 723
         if (this.predialysis_evaluation.id == 0) {
723 724
 
724
-
725 725
           if (lastDryWeightDislysis != null) {
726 726
             this.weight_adjust.weight = lastDryWeightDislysis.dry_weight
727 727
             this.$set(
@@ -930,7 +930,7 @@
930 930
       innerDialogCancle: function() {
931 931
         this.InnerDialogProps.visibility = false
932 932
       }, handleComfirm: function() {
933
-        
933
+
934 934
         var arr = this.assessmentBeforeDislysis
935 935
         console.log("arr是多少----------",arr)
936 936
         for (let i = 0; i < this.machineType.length; i++) {

+ 23 - 20
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Целия файл

@@ -1191,9 +1191,9 @@
1191 1191
             for(let i=0;i<newArr.length;i++){
1192 1192
               for(let j=0;j<this.dialyzerPerfusionApparatus.length;j++){
1193 1193
                  var newarr = newArr[i].toUpperCase()
1194
-              
1194
+
1195 1195
                  var dialy = this.dialyzerPerfusionApparatus[j].name.toUpperCase()
1196
-            
1196
+
1197 1197
                  if(newarr == dialy){
1198 1198
                     Arr.push(this.dialyzerPerfusionApparatus[j].name)
1199 1199
                  }
@@ -1322,7 +1322,7 @@
1322 1322
           'hemodialysis',
1323 1323
           'dialyzer_perfusion_apparatus'
1324 1324
         )
1325
-       
1325
+
1326 1326
       //  dialyzerPerfusionApparatus.map(item => {
1327 1327
       //    item.name = item.name.toUpperCase()
1328 1328
       //  })
@@ -1695,8 +1695,6 @@
1695 1695
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1696 1696
       },
1697 1697
       show(pre,schedual,last) {
1698
-        console.log(last)
1699
-        console.log(pre)
1700 1698
 
1701 1699
         if(schedual.schedule_type == 1){
1702 1700
           this.start_time = new Date(2016, 9, 10, 7, 0,0)
@@ -1753,25 +1751,30 @@
1753 1751
         }
1754 1752
 
1755 1753
         if (this.predialysis == null || this.predialysis.id == 0) {
1756
-          this.dialysisPrescription.niprocart = last.niprocart
1757
-          this.dialysisPrescription.jms = last.jms
1758
-          this.dialysisPrescription.fistula_needle_set = last.fistula_needle_set
1759
-          this.dialysisPrescription.fistula_needle_set_16 = last.fistula_needle_set_16
1760
-          this.dialysisPrescription.hemoperfusion = last.hemoperfusion
1761
-          this.dialysisPrescription.dialyser_sterilised = last.dialyser_sterilised
1762
-          this.dialysisPrescription.filtryzer = last.filtryzer
1763
-          this.dialysisPrescription.target_ktv = last.target_ktv
1764
-          this.dialysisPrescription.dialyzers = last.dialyzers
1765
-          this.dialysisPrescription.injector = last.injector
1766
-          this.dialysisPrescription.bloodlines = last.bloodlines
1767
-          this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
1768
-          this.dialysisPrescription.package = last.package
1769
-          this.dialysisPrescription.a_liquid = last.a_liquid
1770
-          weight_before = 0
1754
+          if(last != null) {
1755
+            this.dialysisPrescription.niprocart = last.niprocart
1756
+            this.dialysisPrescription.jms = last.jms
1757
+            this.dialysisPrescription.fistula_needle_set = last.fistula_needle_set
1758
+            this.dialysisPrescription.fistula_needle_set_16 = last.fistula_needle_set_16
1759
+            this.dialysisPrescription.hemoperfusion = last.hemoperfusion
1760
+            this.dialysisPrescription.dialyser_sterilised = last.dialyser_sterilised
1761
+            this.dialysisPrescription.filtryzer = last.filtryzer
1762
+            this.dialysisPrescription.target_ktv = last.target_ktv
1763
+            this.dialysisPrescription.dialyzers = last.dialyzers
1764
+            this.dialysisPrescription.injector = last.injector
1765
+            this.dialysisPrescription.bloodlines = last.bloodlines
1766
+            this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
1767
+            this.dialysisPrescription.package = last.package
1768
+            this.dialysisPrescription.a_liquid = last.a_liquid
1769
+            weight_before = 0
1770
+          }
1771
+
1771 1772
         } else {
1772 1773
           weight_before = this.predialysis.weight_before
1773 1774
         }
1774 1775
 
1776
+
1777
+
1775 1778
         if (weight_before > 0 && last_weight_after > 0) {
1776 1779
           this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(
1777 1780
             2

+ 10 - 10
src/xt_pages/dialysis/details/index.vue Целия файл

@@ -192,16 +192,16 @@
192 192
           </div>
193 193
         </el-tab-pane>
194 194
       </el-tabs>
195
-      
196
-      
197
-      
195
+
196
+
197
+
198 198
 
199 199
     </div>
200 200
     <div style="width:75%">
201 201
       <div style="margin-left:60px;color:#34495e">
202 202
         <span>{{ patient.name }}({{ patient.dialysis_no }})</span>
203 203
         <span v-if="newTime != ''">&nbsp;&nbsp;|&nbsp;&nbsp;</span>
204
-        <span v-if="newTime != ''">签到时间:{{ newTime }}</span> 
204
+        <span v-if="newTime != ''">签到时间:{{ newTime }}</span>
205 205
       </div>
206 206
       <nav-igation
207 207
         ref="nav"
@@ -266,8 +266,8 @@
266 266
         :device_map="device_map"
267 267
         title="透析处方"
268 268
       ></dialysis-prescription>
269
-      
270
-    
269
+
270
+
271 271
 
272 272
     <!-- <past-data class="往期数据"></past-data> -->
273 273
       <div style="height: 20px;background-color: #f6f8f9"></div>
@@ -889,7 +889,7 @@ export default {
889 889
           console.log('receiver_treatment_access', receiver_treatment_access)
890 890
           var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
891 891
           console.log('透前评估', predialysis_evaluation)
892
-          
892
+
893 893
           if (predialysis_evaluation != null) {
894 894
             if (predialysis_evaluation.blood_access_part_id == -2) {
895 895
               predialysis_evaluation.blood_access_part_id = 0
@@ -1031,7 +1031,7 @@ export default {
1031 1031
         if(this.predialysis_evaluation.id > 0){
1032 1032
           this.newTime = parseTime(this.predialysis_evaluation.created_time, '{h}:{i}')
1033 1033
         }
1034
-        
1034
+
1035 1035
         this.loading = false
1036 1036
       })
1037 1037
     },
@@ -1209,7 +1209,7 @@ export default {
1209 1209
     },
1210 1210
     handleClick(type) {
1211 1211
       console.log(99999999999,type)
1212
-      sessionStorage.setItem('nameActive', type.name); 
1212
+      sessionStorage.setItem('nameActive', type.name);
1213 1213
       this.getData()
1214 1214
     },
1215 1215
     getData() {
@@ -1487,7 +1487,7 @@ export default {
1487 1487
       var h = (date.getHours() < 10 ? '0'+date.getHours() : date.getHours());
1488 1488
       var m = (date.getMinutes() < 10 ? '0'+date.getMinutes() : date.getMinutes());
1489 1489
       var s = (date.getSeconds() < 10 ? '0'+date.getSeconds() : date.getSeconds());
1490
-      
1490
+
1491 1491
       let strDate = h  + ':' + m;
1492 1492
       return strDate;
1493 1493
     },

+ 0 - 1
src/xt_pages/workforce/schedule_print.vue Целия файл

@@ -267,7 +267,6 @@
267 267
       GetWeekSchedulePrintInitData(date_str).then(rs => {
268 268
         var resp = rs.data
269 269
         if (resp.state == 1) {
270
-          var begin_day = parseInt(parseTime(resp.data.monday * 1000, '{d}'))
271 270
           for (let index = 0; index < this.schedules.length; index++) {
272 271
             const collection = this.schedules[index]
273 272
             collection.day = resp.data.days[index].split("-")[1]+"-"+resp.data.days[index].split("-")[2]