Browse Source

11月14日 库存扣减更新

XMLWAN 3 years ago
parent
commit
0440f5b065

+ 5 - 6
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

@@ -7,7 +7,7 @@
7 7
       <ul>
8 8
         <li v-if="isShow('透析模式')">
9 9
           <label>透析模式 : </label>
10
-          <span class="content">{{ dialysis_mode }}</span>
10
+          <span class="content">{{ dialysis_mode }} </span>
11 11
         </li>
12 12
 
13 13
         <li v-if="isShow('置换量') && (dialysis_mode == 'HDF' || dialysis_mode == 'HF' || dialysis_mode =='HDF+HP')">
@@ -444,6 +444,7 @@ export default {
444 444
     },
445 445
     dialysis_mode: function() {
446 446
       var mode = this.getValueStr('mode_id', 'mode_id')
447
+
447 448
       if (mode.length == 0) {
448 449
         return ''
449 450
       }
@@ -714,7 +715,7 @@ export default {
714 715
 
715 716
   },
716 717
   created() {
717
-
718
+    console.log("中国出口233232323233223",this.prescription)
718 719
     var perfusion_apparatus = this.$store.getters.perfusion_apparatus
719 720
     var map = {}
720 721
     for (let index = 0; index < perfusion_apparatus.length; index++) {
@@ -741,10 +742,8 @@ export default {
741 742
       ) {
742 743
         return ''
743 744
       } else if (this.prescription != null && this.prescription.id != '') {
744
-        if (
745
-          this.prescription[pkey] == null ||
746
-          this.prescription[pkey] == undefined
747
-        ) {
745
+     
746
+        if (this.prescription[pkey] == null || this.prescription[pkey] == undefined) {
748 747
           return ''
749 748
         }
750 749
         return this.prescription[pkey] + ''

+ 5 - 0
src/xt_pages/dialysis/details/NavIgation.vue View File

@@ -268,6 +268,9 @@ export default {
268 268
         return { id: 0 };
269 269
       }
270 270
     },
271
+    dialysis_prescription:{
272
+      type: Object,
273
+    },
271 274
     solution: {
272 275
       // 透析方案
273 276
       type: Object,
@@ -620,6 +623,7 @@ export default {
620 623
       this.$refs.finish_dialog.show(this.dialysis_order);
621 624
     },
622 625
     showPrescription: function() {
626
+      console.log("粗32323232",this.prescription)
623 627
       this.$refs.prescription.show(this.prescription,this.schedual,this.last_dialysis_prescribe,this.his_is_open);
624 628
     },
625 629
     showAccepts: function() {
@@ -631,6 +635,7 @@ export default {
631 635
       this.$refs.assessmentBefore.show(this.predialysis_evaluation,this.last_dryWeight_dislysis,this.last_predialysis_evaluation,this.lastAssessment);
632 636
     },
633 637
     showDoubleCheck: function() {
638
+       
634 639
       this.$refs.doubleCheck.show();
635 640
     },
636 641
     showrTeatmentSummary: function() {

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

@@ -882,7 +882,8 @@
882 882
           }
883 883
 
884 884
         } else {
885
-         
885
+          console.log("为首务2322323",this.assessmentBeforeDislysis.period)
886
+          this.assessmentBeforeDislysis.period = this.assessmentBeforeDislysis.period.toString()
886 887
      
887 888
           this.assessmentBeforeDislysis.dry_weight = this.predialysis_evaluation['dry_weight']
888 889
           this.weight_adjust.weight = this.predialysis_evaluation['dry_weight']

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

@@ -1328,7 +1328,8 @@
1328 1328
           max_ultrafiltration_rate:'',
1329 1329
           hemodialysisPipelinesOptions: [],
1330 1330
           punctureNeedleOptions: [],
1331
-          epoOptions: []
1331
+          epoOptions: [],
1332
+          impulse:0,
1332 1333
         },
1333 1334
 
1334 1335
         anticoagulant: {
@@ -1879,7 +1880,7 @@
1879 1880
               mode = 2
1880 1881
             }
1881 1882
             ParamsQuery['mode'] = mode
1882
-            //  console.log("paramsquery",ParamsQuery)
1883
+           console.log("paramsquery",ParamsQuery)
1883 1884
             postPrescription(ParamsQuery).then(response => {
1884 1885
               if (response.data.state == 0) {
1885 1886
                 this.$message.error(response.data.msg)
@@ -2695,6 +2696,7 @@
2695 2696
         this.hide()
2696 2697
       },
2697 2698
       handleSolution: function() {
2699
+       
2698 2700
         if (this.dialysisPrescription.anticoagulant == 1) {
2699 2701
           this.dialysisPrescription.anticoagulant_weichi = '0'
2700 2702
           this.dialysisPrescription.anticoagulant_shouji = '0'
@@ -2723,15 +2725,17 @@
2723 2725
               this.loading = false
2724 2726
               return
2725 2727
             }
2728
+             console.log("预充了2",this.dialysisPrescription.pre_impulse)
2729
+             this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
2726 2730
             var arr = this.dialysisPrescription
2727
-            // console.log('arr', arr)
2731
+             console.log('arr2', arr)
2728 2732
 
2729 2733
             const ParamsQuery = arr
2730 2734
             // console.log('长期处方1', ParamsQuery)
2731 2735
             ParamsQuery['patient'] = this.patient.id
2732 2736
             ParamsQuery['record_date'] = this.record_date
2733 2737
             ParamsQuery['mode'] = '1'
2734
-
2738
+          
2735 2739
             postSoulution(ParamsQuery).then(response => {
2736 2740
               if (response.data.state == 0) {
2737 2741
                 this.$message.error(response.data.msg)
@@ -2770,16 +2774,18 @@
2770 2774
                 this.loading = false
2771 2775
                 return
2772 2776
               }
2777
+              console.log("预充了3",this.dialysisPrescription.pre_impulse)
2778
+               this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
2773 2779
               var arr = this.dialysisPrescription
2774
-              // console.log('arr', arr)
2775
-
2780
+              console.log('arr3', arr)
2781
+               
2776 2782
               const ParamsQuery = arr
2777 2783
               // console.log('长期处方2', ParamsQuery)
2778 2784
 
2779 2785
               ParamsQuery['patient'] = this.patient.id
2780 2786
               ParamsQuery['record_date'] = this.record_date
2781 2787
               ParamsQuery['mode'] = '1'
2782
-
2788
+       
2783 2789
               postSoulution(ParamsQuery).then(response => {
2784 2790
                 if (response.data.state == 0) {
2785 2791
                   this.$message.error(response.data.msg)
@@ -2824,10 +2830,11 @@
2824 2830
                 this.loading = false
2825 2831
                 return
2826 2832
               }
2827
-
2833
+              console.log("预充了4",this.dialysisPrescription.pre_impulse)
2834
+             this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse 
2828 2835
               var arr = this.dialysisPrescription
2829
-              // console.log('arr', arr)
2830
-
2836
+              console.log('arr4', arr)
2837
+             
2831 2838
               const ParamsQuery = arr
2832 2839
               // console.log('长期处方3', ParamsQuery)
2833 2840
 
@@ -2893,9 +2900,11 @@
2893 2900
                 this.loading = false
2894 2901
                 return
2895 2902
               }
2903
+              console.log("预充了5",this.dialysisPrescription.pre_impulse)
2904
+               this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
2896 2905
               var arr = this.dialysisPrescription
2897
-              // console.log('arr', arr)
2898
-
2906
+             console.log('arr5', arr)
2907
+         
2899 2908
               const ParamsQuery = arr
2900 2909
               // console.log('长期处方5', ParamsQuery)
2901 2910
 
@@ -2940,8 +2949,10 @@
2940 2949
                 this.loading = false
2941 2950
                 return
2942 2951
               }
2952
+              console.log("预充了6",this.dialysisPrescription.pre_impulse)
2953
+              this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
2943 2954
               var arr = this.dialysisPrescription
2944
-              // console.log('arr', arr)
2955
+              console.log('arr', arr)
2945 2956
 
2946 2957
               const ParamsQuery = arr
2947 2958
               // console.log('长期处方6', ParamsQuery)
@@ -2987,11 +2998,13 @@
2987 2998
                   this.loading = false
2988 2999
                   return
2989 3000
                 }
3001
+                console.log("预充了7",this.dialysisPrescription.pre_impulse)
3002
+               this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
2990 3003
                 var arr = this.dialysisPrescription
2991 3004
                 // console.log('arr', arr)
2992 3005
 
2993 3006
                 const ParamsQuery = arr
2994
-                // console.log('长期处方7', ParamsQuery)
3007
+                console.log('长期处方7', ParamsQuery)
2995 3008
                 ParamsQuery['patient'] = this.patient.id
2996 3009
                 ParamsQuery['record_date'] = this.record_date
2997 3010
                 ParamsQuery['mode'] = '1'
@@ -3040,9 +3053,11 @@
3040 3053
                   this.loading = false
3041 3054
                   return
3042 3055
                 }
3056
+                console.log("预充了w233323223",this.dialysisPrescription.pre_impulse)
3057
+               this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
3043 3058
                 var arr = this.dialysisPrescription
3044
-                // console.log('arr', arr)
3045
-
3059
+                console.log('arr', arr)
3060
+   
3046 3061
                 const ParamsQuery = arr
3047 3062
                 // console.log('长期处方8', ParamsQuery)
3048 3063
                 ParamsQuery['patient'] = this.patient.id
@@ -3114,8 +3129,11 @@
3114 3129
                   this.loading = false
3115 3130
                   return
3116 3131
                 }
3132
+                
3133
+                console.log("预充了99999",this.dialysisPrescription.pre_impulse)
3134
+               this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
3117 3135
                 var arr = this.dialysisPrescription
3118
-                // console.log('arr', arr)
3136
+                console.log('arr', arr)
3119 3137
 
3120 3138
                 const ParamsQuery = arr
3121 3139
                 // console.log('长期处方9', ParamsQuery)
@@ -3158,16 +3176,18 @@
3158 3176
               this.loading = false
3159 3177
               return
3160 3178
             }
3179
+            console.log("预充了1",this.dialysisPrescription.pre_impulse)
3180
+           this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
3161 3181
             var arr = this.dialysisPrescription
3162
-            // console.log('arr', arr)
3182
+            console.log('arr12333223', arr)
3163 3183
 
3164 3184
             const ParamsQuery = arr
3165
-            // console.log('长期处方10', ParamsQuery)
3185
+          
3166 3186
 
3167 3187
             ParamsQuery['patient'] = this.patient.id
3168 3188
             ParamsQuery['record_date'] = this.record_date
3169 3189
             ParamsQuery['mode'] = '1'
3170
-
3190
+            console.log('长期处方10', ParamsQuery)
3171 3191
             postSoulution(ParamsQuery).then(response => {
3172 3192
               if (response.data.state == 0) {
3173 3193
                 this.$message.error(response.data.msg)

+ 5 - 13
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue View File

@@ -314,10 +314,8 @@
314 314
             })
315 315
 
316 316
             this.doubleReview.creater = response.data.data.doubleCheck.creater
317
-            this.doubleReview.check_time =
318
-              response.data.data.doubleCheck.check_time
319
-            this.doubleReview.first_check_time =
320
-              response.data.data.doubleCheck.first_check_time
317
+            this.doubleReview.check_time = response.data.data.doubleCheck.check_time
318
+            this.doubleReview.first_check_time = response.data.data.doubleCheck.first_check_time
321 319
             this.doubleReview.modifier = response.data.data.doubleCheck.modifier
322 320
 
323 321
             this.first_check_time = uParseTime(
@@ -325,18 +323,12 @@
325 323
               '{y}-{m}-{d}  {h}:{i}'
326 324
             ).split(' ')[1]
327 325
 
328
-            // if(this.$store.getters.xt_user.user.id != this.double_check.creater && this.double_check.modifier == 0){
329
-            //   this.check_time = uParseTime(
330
-            //     this.doubleReview.check_time,
331
-            //     '{y}-{m}-{d}  {h}:{i}'
332
-            //   ).split(' ')[1]
333
-            // }
326
+           
334 327
 
335 328
             let doublecheck_resp = response.data.data.doubleCheck
336
-         
329
+            console.log("双核2332322323",doublecheck_resp)
337 330
             var doubleCheck = this.double_check
338
-            for (var index in doublecheck_resp) {
339
-              // doubleCheck[index] = doublecheck_resp[index];
331
+            for (var index in doublecheck_resp) {        
340 332
               this.$set(doubleCheck, index, doublecheck_resp[index])
341 333
             }
342 334
             this.hide()

+ 19 - 28
src/xt_pages/dialysis/details/index.vue View File

@@ -268,6 +268,7 @@
268 268
         :his_is_open="his_is_open"
269 269
         :lastAssessment="lastAssessment"
270 270
         :stockType="stockType"
271
+        :dialysis_prescription="dialysis_prescription"
271 272
       >
272 273
       </nav-igation>
273 274
 
@@ -597,6 +598,7 @@ export default {
597 598
       patient: { id: 0 }, // 患者信息
598 599
       schedual: { id: 0 }, // 患者排班信息
599 600
       prescription: { id: 0 }, // 透析处方
601
+      dialysis_prescription:{id:0},
600 602
       solution: { id: 0 }, // 透析方案
601 603
       system_prescribe: { id: 0 },
602 604
       receiver_treatment_access: { id: 0 }, // 接诊评估
@@ -790,25 +792,17 @@ export default {
790 792
         { title: '透后评估', finish: false },
791 793
         { title: '治疗小结', finish: false }
792 794
       ]
793
-
795
+     
794 796
       steps[0].finish = this.prescription.id && this.prescription.creater > 0
795 797
       steps[1].finish = this.receiver_treatment_access.id > 0
796
-      steps[2].finish =
797
-        this.predialysis_evaluation.id > 0 &&
798
-        this.predialysis_evaluation.creater > 0
798
+      steps[2].finish = this.predialysis_evaluation.id > 0 && this.predialysis_evaluation.creater > 0
799 799
       steps[3].finish = this.doctor_advices.length > 0
800 800
       steps[5].finish = this.dialysis_order.id > 0
801
-      steps[7].finish =
802
-        this.dialysis_order.id > 0 && this.dialysis_order.stage == 2
803
-
804
-      steps[4].finish =
805
-        this.double_check.id > 0 &&
806
-        this.double_check.creater > 0 &&
807
-        this.double_check.modifier > 0
801
+      steps[4].finish = this.double_check.id > 0 && this.double_check.creater > 0 &&this.double_check.modifier > 0
802
+      steps[7].finish = this.dialysis_order.id > 0 && this.dialysis_order.stage == 2
803
+      
808 804
       steps[6].finish = this.monitor_records.length > 0
809
-      steps[8].finish =
810
-        this.assessment_after_dislysis.id > 0 &&
811
-        this.assessment_after_dislysis.creater > 0
805
+      steps[8].finish = this.assessment_after_dislysis.id > 0 &&this.assessment_after_dislysis.creater > 0
812 806
       steps[9].finish = this.treatment_summary.id > 0
813 807
 
814 808
       return steps
@@ -974,13 +968,13 @@ export default {
974 968
 
975 969
       this.doctor_advices = []
976 970
       getDialysisScheduleDetail(this.patient_id, dateStr).then(rs => {
977
-
978 971
         var resp = rs.data
979 972
         if (resp.state == 1) {
980 973
           var patient = resp.data.patient // 患者信息
981 974
           var schedual = resp.data.schedual // 患者排班信息
982 975
           console.log("排班22222222222",schedual)
983 976
           var prescription = resp.data.prescription // 透析处方
977
+        
984 978
           if (prescription != null) {
985 979
             if (prescription.body_fluid == -2) {
986 980
               prescription.body_fluid = 0
@@ -993,13 +987,17 @@ export default {
993 987
                prescription.plasma_separator  = ""
994 988
             }
995 989
           }
996
-
990
+         this.prescription = prescription == null ? { id: 0 } : prescription
991
+         
992
+         this.dialysis_prescription = prescription
993
+         this.dialysis_prescription.mode_id = schedual.mode_id
994
+         console.log("巴以建军2323223233232323232323332",prescription)
997 995
           var solution = resp.data.solution // 透析方案
998
-          console.log("透析方案22223333333333",solution)
996
+          // console.log("透析方案22223333333333",solution)
999 997
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
1000 998
 
1001 999
           var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
1002
-           console.log("透器评估",predialysis_evaluation)
1000
+          //  console.log("透器评估",predialysis_evaluation)
1003 1001
           if (predialysis_evaluation != null) {
1004 1002
             if (predialysis_evaluation.blood_access_part_id == -2) {
1005 1003
               predialysis_evaluation.blood_access_part_id = 0
@@ -1040,12 +1038,7 @@ export default {
1040 1038
           }
1041 1039
           var lastMonitorRecord = resp.data.lastMonitorRecord
1042 1040
           var lastAssessmentAfterDislysis = resp.data.lastAssessmentAfterDislysis
1043
-          // if(lastAssessmentAfterDislysis.hypertenison!=""){
1044
-          //   lastAssessmentAfterDislysis.hypertenison = lastAssessmentAfterDislysis.hypertenison.toString()
1045
-          // }
1046
-          //  if(lastAssessmentAfterDislysis.hypopiesia!=""){
1047
-          //   lastAssessmentAfterDislysis.hypopiesia = lastAssessmentAfterDislysis.hypopiesia.toString()
1048
-          // }
1041
+       
1049 1042
           var lastDialysisPrescribe = resp.data.lastDialysisPrescribe
1050 1043
           var lastDryWeightDislysis = resp.data.lastDryWeightDislysis
1051 1044
 
@@ -1076,8 +1069,6 @@ export default {
1076 1069
           this.headNurses = headNurses
1077 1070
           this.system_prescribe = system_prescribe
1078 1071
 
1079
-
1080
-
1081 1072
           this.niprocart_info = []
1082 1073
           this.jms_info = []
1083 1074
           this.fistula_needle_set_info = []
@@ -1115,7 +1106,7 @@ export default {
1115 1106
 
1116 1107
           this.patient = patient
1117 1108
           this.schedual = schedual == null ? { id: 0 } : schedual
1118
-          this.prescription = prescription == null ? { id: 0 } : prescription
1109
+          
1119 1110
           this.solution = solution == null ? { id: 0 } : solution
1120 1111
           this.receiver_treatment_access =
1121 1112
             receiver_treatment_access == null
@@ -1338,7 +1329,7 @@ export default {
1338 1329
         var resp = rs.data
1339 1330
         if (resp.state == 1) {
1340 1331
           var schedules = resp.data.schedules
1341
-          console.log("当前排班信息4444444444444444",schedules)
1332
+        
1342 1333
           this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1343 1334
           const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
1344 1335
           if (this.activeName == 'first') {

+ 1 - 8
src/xt_pages/hospitalStation/components/dialysisIndex.vue View File

@@ -574,15 +574,7 @@ export default {
574 574
       }
575 575
     },
576 576
     getScheduleDetail: function() {
577
-      
578 577
       this.loading = true
579
-    //   var dateStr = parseTime(this.date, '{y}-{m}-{d}')
580
-      // if(this.$route.query.showView == true){
581
-      //   this.loading = false
582
-      //   return
583
-      // }
584
-        console.log('this.patient_id',this.patient_id)
585
-        console.log('this.date',this.date)
586 578
       this.doctor_advices = []
587 579
       getDialysisScheduleDetail(this.patient_id, this.date).then(rs => {
588 580
 
@@ -592,6 +584,7 @@ export default {
592 584
           var schedual = resp.data.schedual // 患者排班信息
593 585
          
594 586
           var prescription = resp.data.prescription // 透析处方
587
+          console.log("投产出大发大发233232323232233232",prescription)
595 588
           if (prescription != null) {
596 589
             if (prescription.body_fluid == -2) {
597 590
               prescription.body_fluid = 0