Browse Source

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

csx 4 years ago
parent
commit
4122c9b473

+ 2 - 2
src/api/schedule.js View File

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

+ 21 - 21
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

305
                 <el-option v-for="item in this.$store.getters.skin" :label="item.name" :value="item.id"
305
                 <el-option v-for="item in this.$store.getters.skin" :label="item.name" :value="item.id"
306
                            :key="item.id"></el-option>
306
                            :key="item.id"></el-option>
307
               </el-select> -->
307
               </el-select> -->
308
-             
308
+
309
               <el-input v-model="assessmentBeforeDislysis.skin" readonly
309
               <el-input v-model="assessmentBeforeDislysis.skin" readonly
310
                       @focus="showInnerDialog('12')">
310
                       @focus="showInnerDialog('12')">
311
               </el-input>
311
               </el-input>
682
       },
682
       },
683
       show(assessment, lastDryWeightDislysis,last_predialysis_evaluation) {
683
       show(assessment, lastDryWeightDislysis,last_predialysis_evaluation) {
684
         this.lastPredialysisEvaluation = last_predialysis_evaluation
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
             this.lastPredialysisEvaluation.catheter_bend = "2"
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
         this.assessment = assessment
707
         this.assessment = assessment
707
         this.getPermission()
708
         this.getPermission()
708
         this.isVisibility = true
709
         this.isVisibility = true
721
 
722
 
722
         if (this.predialysis_evaluation.id == 0) {
723
         if (this.predialysis_evaluation.id == 0) {
723
 
724
 
724
-
725
           if (lastDryWeightDislysis != null) {
725
           if (lastDryWeightDislysis != null) {
726
             this.weight_adjust.weight = lastDryWeightDislysis.dry_weight
726
             this.weight_adjust.weight = lastDryWeightDislysis.dry_weight
727
             this.$set(
727
             this.$set(
930
       innerDialogCancle: function() {
930
       innerDialogCancle: function() {
931
         this.InnerDialogProps.visibility = false
931
         this.InnerDialogProps.visibility = false
932
       }, handleComfirm: function() {
932
       }, handleComfirm: function() {
933
-        
933
+
934
         var arr = this.assessmentBeforeDislysis
934
         var arr = this.assessmentBeforeDislysis
935
         console.log("arr是多少----------",arr)
935
         console.log("arr是多少----------",arr)
936
         for (let i = 0; i < this.machineType.length; i++) {
936
         for (let i = 0; i < this.machineType.length; i++) {

+ 23 - 20
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

1191
             for(let i=0;i<newArr.length;i++){
1191
             for(let i=0;i<newArr.length;i++){
1192
               for(let j=0;j<this.dialyzerPerfusionApparatus.length;j++){
1192
               for(let j=0;j<this.dialyzerPerfusionApparatus.length;j++){
1193
                  var newarr = newArr[i].toUpperCase()
1193
                  var newarr = newArr[i].toUpperCase()
1194
-              
1194
+
1195
                  var dialy = this.dialyzerPerfusionApparatus[j].name.toUpperCase()
1195
                  var dialy = this.dialyzerPerfusionApparatus[j].name.toUpperCase()
1196
-            
1196
+
1197
                  if(newarr == dialy){
1197
                  if(newarr == dialy){
1198
                     Arr.push(this.dialyzerPerfusionApparatus[j].name)
1198
                     Arr.push(this.dialyzerPerfusionApparatus[j].name)
1199
                  }
1199
                  }
1322
           'hemodialysis',
1322
           'hemodialysis',
1323
           'dialyzer_perfusion_apparatus'
1323
           'dialyzer_perfusion_apparatus'
1324
         )
1324
         )
1325
-       
1325
+
1326
       //  dialyzerPerfusionApparatus.map(item => {
1326
       //  dialyzerPerfusionApparatus.map(item => {
1327
       //    item.name = item.name.toUpperCase()
1327
       //    item.name = item.name.toUpperCase()
1328
       //  })
1328
       //  })
1695
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1695
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1696
       },
1696
       },
1697
       show(pre,schedual,last) {
1697
       show(pre,schedual,last) {
1698
-        console.log(last)
1699
-        console.log(pre)
1700
 
1698
 
1701
         if(schedual.schedule_type == 1){
1699
         if(schedual.schedule_type == 1){
1702
           this.start_time = new Date(2016, 9, 10, 7, 0,0)
1700
           this.start_time = new Date(2016, 9, 10, 7, 0,0)
1753
         }
1751
         }
1754
 
1752
 
1755
         if (this.predialysis == null || this.predialysis.id == 0) {
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
         } else {
1772
         } else {
1772
           weight_before = this.predialysis.weight_before
1773
           weight_before = this.predialysis.weight_before
1773
         }
1774
         }
1774
 
1775
 
1776
+
1777
+
1775
         if (weight_before > 0 && last_weight_after > 0) {
1778
         if (weight_before > 0 && last_weight_after > 0) {
1776
           this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(
1779
           this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(
1777
             2
1780
             2

+ 0 - 1
src/xt_pages/workforce/schedule_print.vue View File

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