Browse Source

11月14日 库存扣减更新

XMLWAN 3 years ago
parent
commit
22402da233

+ 0 - 1
src/xt_pages/dialysis/PatientBox.vue View File

@@ -617,7 +617,6 @@ export default {
617 617
     },
618 618
     open(schedual){
619 619
      
620
-     
621 620
       this.date = schedual.schedule_date
622 621
       this.patient_id = schedual.patient_id
623 622
       this.modedata = 1

+ 1 - 2
src/xt_pages/dialysis/details/NavIgation.vue View File

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

+ 2 - 1
src/xt_pages/dialysis/details/acceptsAssessment.vue View File

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

+ 12 - 38
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -980,12 +980,12 @@
980 980
       schedual: {
981 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 989
       waitUploadAdvices: {
990 990
         type: Array,
991 991
         default: () => {
@@ -1923,8 +1923,7 @@
1923 1923
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1924 1924
       },
1925 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 1927
         if (pre != undefined) {
1929 1928
           if (pre.oxygen_uptake == 1) {
1930 1929
             this.oxygenShow = true
@@ -2037,10 +2036,9 @@
2037 2036
         this.dialysisPrescription.mode_id = this.$route.query.mode_id ? this.$route.query.mode_id : this.mode_id
2038 2037
         if (pre.id > 0) {
2039 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 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 2043
           this.zhiShow = true
2046 2044
           this.huShow = true
@@ -2075,10 +2073,10 @@
2075 2073
         } else {
2076 2074
           last_weight_after = this.last_record.weight_after
2077 2075
         }
2078
-
2076
+        console.log("last2323232323232332",last)
2079 2077
         if (this.predialysis == null || this.predialysis.id == 0) {
2080 2078
           if (last != null) {
2081
-
2079
+            
2082 2080
             this.dialysisPrescription.niprocart = last.niprocart
2083 2081
             this.dialysisPrescription.jms = last.jms
2084 2082
             this.dialysisPrescription.fistula_needle_set = last.fistula_needle_set
@@ -2103,31 +2101,6 @@
2103 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 2105
         if (weight_before > 0 && last_weight_after > 0) {
2133 2106
           this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(
@@ -2183,6 +2156,7 @@
2183 2156
 
2184 2157
       },
2185 2158
       handleCommit: function() {
2159
+        console.log("触发了么2323323233223")
2186 2160
         if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
2187 2161
           this.dialysisPrescription.anticoagulant = 3
2188 2162
         }

+ 4 - 7
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue View File

@@ -235,17 +235,14 @@
235 235
           if(this.doubleReview.modifier == 0){
236 236
             this.doubleReview.modifier = ""
237 237
           }
238
-          console.log( this.first_check_time )
239
-          console.log( this.check_time )
240
-
241
-
238
+       
242 239
         } else {
243 240
           var nowDate = new Date()
244 241
           var nowHours = nowDate.getHours()
245 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 246
           this.first_check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
250 247
           console.log( this.first_check_time )
251 248
           console.log( this.check_time )

+ 18 - 13
src/xt_pages/dialysis/details/index.vue View File

@@ -981,7 +981,7 @@ export default {
981 981
           var schedual = resp.data.schedual // 患者排班信息
982 982
           console.log("排班22222222222",schedual)
983 983
           var prescription = resp.data.prescription // 透析处方
984
-          console.log("中华人民共和过2332233232323223",prescription)
984
+        
985 985
           if (prescription != null) {
986 986
             if (prescription.body_fluid == -2) {
987 987
               prescription.body_fluid = 0
@@ -1205,13 +1205,14 @@ export default {
1205 1205
         } else {
1206 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 1216
         if(this.predialysis_evaluation.id > 0){
1216 1217
           this.newTime = parseTime(this.predialysis_evaluation.created_time, '{h}:{i}')
1217 1218
         }
@@ -1335,17 +1336,21 @@ export default {
1335 1336
     },
1336 1337
     requestDialysisSchedules: function() {
1337 1338
       var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
1339
+      console.log("ymd233223232",ymd)
1340
+      console.log("prescription",this.prescription)
1338 1341
       getDialysisSchedules(ymd).then(rs => {
1339 1342
         var resp = rs.data
1340 1343
         if (resp.state == 1) {
1341 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 1354
           this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1350 1355
           const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
1351 1356
           if (this.activeName == 'first') {