소스 검색

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

see999 3 년 전
부모
커밋
f4ff496803

+ 0 - 1
src/xt_pages/dialysis/PatientBox.vue 파일 보기

617
     },
617
     },
618
     open(schedual){
618
     open(schedual){
619
      
619
      
620
-     
621
       this.date = schedual.schedule_date
620
       this.date = schedual.schedule_date
622
       this.patient_id = schedual.patient_id
621
       this.patient_id = schedual.patient_id
623
       this.modedata = 1
622
       this.modedata = 1

+ 1 - 2
src/xt_pages/dialysis/details/NavIgation.vue 파일 보기

623
       this.$refs.finish_dialog.show(this.dialysis_order);
623
       this.$refs.finish_dialog.show(this.dialysis_order);
624
     },
624
     },
625
     showPrescription: function() {
625
     showPrescription: function() {
626
-      console.log("粗32323232",this.prescription)
627
       this.$refs.prescription.show(this.prescription,this.schedual,this.last_dialysis_prescribe,this.his_is_open);
626
       this.$refs.prescription.show(this.prescription,this.schedual,this.last_dialysis_prescribe,this.his_is_open);
628
     },
627
     },
629
     showAccepts: function() {
628
     showAccepts: function() {
635
       this.$refs.assessmentBefore.show(this.predialysis_evaluation,this.last_dryWeight_dislysis,this.last_predialysis_evaluation,this.lastAssessment);
634
       this.$refs.assessmentBefore.show(this.predialysis_evaluation,this.last_dryWeight_dislysis,this.last_predialysis_evaluation,this.lastAssessment);
636
     },
635
     },
637
     showDoubleCheck: function() {
636
     showDoubleCheck: function() {
638
-      console.log("h322323232323232332",this.prescription)
637
+      
639
       this.$refs.doubleCheck.show();
638
       this.$refs.doubleCheck.show();
640
     },
639
     },
641
     showrTeatmentSummary: function() {
640
     showrTeatmentSummary: function() {

+ 2 - 1
src/xt_pages/dialysis/details/acceptsAssessment.vue 파일 보기

137
         conditions: {
137
         conditions: {
138
           '1': '住院',
138
           '1': '住院',
139
           '2': '门诊',
139
           '2': '门诊',
140
-          '3': '手术期'
140
+          '3': '手术期',
141
+          '4': '急诊'
141
         },
142
         },
142
         consciousnesses:[],
143
         consciousnesses:[],
143
         appetites: [],
144
         appetites: [],

+ 12 - 38
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 파일 보기

980
       schedual: {
980
       schedual: {
981
         type: Object
981
         type: Object
982
       },
982
       },
983
-      // is_open: {
984
-      //   type: Number,
985
-      //   default: () => {
986
-      //     return 0
987
-      //   }
988
-      // },
983
+      is_open: {
984
+        type: Number,
985
+        default: () => {
986
+          return 0
987
+        }
988
+      },
989
       waitUploadAdvices: {
989
       waitUploadAdvices: {
990
         type: Array,
990
         type: Array,
991
         default: () => {
991
         default: () => {
1923
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1923
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1924
       },
1924
       },
1925
       show(pre, schedual, last, his_is_open) {
1925
       show(pre, schedual, last, his_is_open) {
1926
-        console.log('pre222222', this.predialysis)
1927
-        console.log("his_is_opne",his_is_open)
1926
+        
1928
         if (pre != undefined) {
1927
         if (pre != undefined) {
1929
           if (pre.oxygen_uptake == 1) {
1928
           if (pre.oxygen_uptake == 1) {
1930
             this.oxygenShow = true
1929
             this.oxygenShow = true
2037
         this.dialysisPrescription.mode_id = this.$route.query.mode_id ? this.$route.query.mode_id : this.mode_id
2036
         this.dialysisPrescription.mode_id = this.$route.query.mode_id ? this.$route.query.mode_id : this.mode_id
2038
         if (pre.id > 0) {
2037
         if (pre.id > 0) {
2039
           this.dialysisPrescription.mode_id = pre.mode_id
2038
           this.dialysisPrescription.mode_id = pre.mode_id
2040
-          
2041
         }
2039
         }
2042
-        console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
2043
-        console.log('this.schedual', schedual.mode_id)
2040
+        // console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
2041
+        // console.log('this.schedual', schedual.mode_id)
2044
         if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12 || schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12) {
2042
         if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12 || schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12) {
2045
           this.zhiShow = true
2043
           this.zhiShow = true
2046
           this.huShow = true
2044
           this.huShow = true
2075
         } else {
2073
         } else {
2076
           last_weight_after = this.last_record.weight_after
2074
           last_weight_after = this.last_record.weight_after
2077
         }
2075
         }
2078
-
2076
+        console.log("last2323232323232332",last)
2079
         if (this.predialysis == null || this.predialysis.id == 0) {
2077
         if (this.predialysis == null || this.predialysis.id == 0) {
2080
           if (last != null) {
2078
           if (last != null) {
2081
-
2079
+            
2082
             this.dialysisPrescription.niprocart = last.niprocart
2080
             this.dialysisPrescription.niprocart = last.niprocart
2083
             this.dialysisPrescription.jms = last.jms
2081
             this.dialysisPrescription.jms = last.jms
2084
             this.dialysisPrescription.fistula_needle_set = last.fistula_needle_set
2082
             this.dialysisPrescription.fistula_needle_set = last.fistula_needle_set
2103
           weight_before = this.predialysis.weight_before
2101
           weight_before = this.predialysis.weight_before
2104
         }
2102
         }
2105
 
2103
 
2106
-        //获取最后一次血管通路
2107
-        //   console.log("最后一次血管通路",this.predialysis)
2108
-        //  if(this.predialysis!=null){
2109
-        //     if(this.lastAssessment!=null){
2110
-        //       var blood_id = 0
2111
-        //       for(let i= 0;i<this.blood_access_option.length;i++){
2112
-        //           if(this.lastAssessment.blood_access_part_opera_id == this.blood_access_option[i].name){
2113
-        //             blood_id = this.blood_access_option[i].id
2114
-        //           }
2115
-        //       }
2116
-        //        console.log("中国人名职员",this.lastAssessment)
2117
-        //        this.dialysisPrescription.blood_access = blood_id
2118
-        //     }else{
2119
-        //       if(this.last_prescription!=null){
2120
-        //           var blood_id = 0
2121
-        //           for(let i= 0;i<this.blood_access_option.length;i++){
2122
-        //               if(this.last_prescription.blood_access_part_opera_id == this.blood_access_option[i].name){
2123
-        //                 blood_id = this.blood_access_option[i].id
2124
-        //               }
2125
-        //           }
2126
-        //            this.dialysisPrescription.blood_access = blood_id
2127
-        //       }
2128
-        //     }
2129
-
2130
-        //  }
2131
 
2104
 
2132
         if (weight_before > 0 && last_weight_after > 0) {
2105
         if (weight_before > 0 && last_weight_after > 0) {
2133
           this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(
2106
           this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(
2183
 
2156
 
2184
       },
2157
       },
2185
       handleCommit: function() {
2158
       handleCommit: function() {
2159
+        console.log("触发了么2323323233223")
2186
         if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
2160
         if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
2187
           this.dialysisPrescription.anticoagulant = 3
2161
           this.dialysisPrescription.anticoagulant = 3
2188
         }
2162
         }

+ 4 - 7
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue 파일 보기

235
           if(this.doubleReview.modifier == 0){
235
           if(this.doubleReview.modifier == 0){
236
             this.doubleReview.modifier = ""
236
             this.doubleReview.modifier = ""
237
           }
237
           }
238
-          console.log( this.first_check_time )
239
-          console.log( this.check_time )
240
-
241
-
238
+       
242
         } else {
239
         } else {
243
           var nowDate = new Date()
240
           var nowDate = new Date()
244
           var nowHours = nowDate.getHours()
241
           var nowHours = nowDate.getHours()
245
           var nowMinutes = nowDate.getMinutes()
242
           var nowMinutes = nowDate.getMinutes()
246
-          if(this.$store.getters.xt_user.user.id != this.double_check.creater && this.double_check.modifier == 0){
247
-            this.check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
248
-          }
243
+          // if(this.$store.getters.xt_user.user.id != this.double_check.creater && this.double_check.modifier == 0){
244
+          //   this.check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
245
+          // }
249
           this.first_check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
246
           this.first_check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
250
           console.log( this.first_check_time )
247
           console.log( this.first_check_time )
251
           console.log( this.check_time )
248
           console.log( this.check_time )

+ 18 - 13
src/xt_pages/dialysis/details/index.vue 파일 보기

981
           var schedual = resp.data.schedual // 患者排班信息
981
           var schedual = resp.data.schedual // 患者排班信息
982
           console.log("排班22222222222",schedual)
982
           console.log("排班22222222222",schedual)
983
           var prescription = resp.data.prescription // 透析处方
983
           var prescription = resp.data.prescription // 透析处方
984
-          console.log("中华人民共和过2332233232323223",prescription)
984
+        
985
           if (prescription != null) {
985
           if (prescription != null) {
986
             if (prescription.body_fluid == -2) {
986
             if (prescription.body_fluid == -2) {
987
               prescription.body_fluid = 0
987
               prescription.body_fluid = 0
1205
         } else {
1205
         } else {
1206
           this.$message.error(resp.msg)
1206
           this.$message.error(resp.msg)
1207
         }
1207
         }
1208
-
1209
-        if (this.lastDialysisPrescribe != null) {
1210
-          delete this.lastDialysisPrescribe.target_ultrafiltration
1211
-        }
1212
-        if (this.solution != null) {
1213
-          delete this.solution.target_ultrafiltration
1214
-        }
1208
+       
1209
+       // 目标超滤量是否默认上次数据
1210
+        // if (this.lastDialysisPrescribe != null) {
1211
+        //   delete this.lastDialysisPrescribe.target_ultrafiltration
1212
+        // }
1213
+        // if (this.solution != null) {
1214
+        //   delete this.solution.target_ultrafiltration
1215
+        // }
1215
         if(this.predialysis_evaluation.id > 0){
1216
         if(this.predialysis_evaluation.id > 0){
1216
           this.newTime = parseTime(this.predialysis_evaluation.created_time, '{h}:{i}')
1217
           this.newTime = parseTime(this.predialysis_evaluation.created_time, '{h}:{i}')
1217
         }
1218
         }
1335
     },
1336
     },
1336
     requestDialysisSchedules: function() {
1337
     requestDialysisSchedules: function() {
1337
       var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
1338
       var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
1339
+      console.log("ymd233223232",ymd)
1340
+      console.log("prescription",this.prescription)
1338
       getDialysisSchedules(ymd).then(rs => {
1341
       getDialysisSchedules(ymd).then(rs => {
1339
         var resp = rs.data
1342
         var resp = rs.data
1340
         if (resp.state == 1) {
1343
         if (resp.state == 1) {
1341
           var schedules = resp.data.schedules
1344
           var schedules = resp.data.schedules
1342
-         
1343
-          // for(let i=0;i<schedules.length;i++){
1344
-          //   if(this.prescription.patient_id == schedules[i].patient_id){
1345
-          //      this.prescription = schedules[i].prescription
1345
+          // if(this.prescription!=null){
1346
+          //   for(let i=0;i<schedules.length;i++){
1347
+          //     if(this.prescription.patient_id == schedules[i].patient_id){
1348
+          //       this.prescription = schedules[i].prescription
1349
+          //     }
1346
           //   }
1350
           //   }
1347
           // }
1351
           // }
1348
-          // console.log("hh2332223323232",this.prescription)
1352
+         
1353
+          console.log("hh2332223323232",schedules)
1349
           this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1354
           this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1350
           const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
1355
           const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
1351
           if (this.activeName == 'first') {
1356
           if (this.activeName == 'first') {