Ver código fonte

11月14日 库存扣减更新

XMLWAN 3 anos atrás
pai
commit
6855149d18

+ 2 - 2
src/xt_pages/dialysis/PatientBox.vue Ver arquivo

55
       <div class="dislysisInfo">
55
       <div class="dislysisInfo">
56
         <p>体重(前/后kg):
56
         <p>体重(前/后kg):
57
           {{ schedule.assessment_before_dislysis ? schedule.assessment_before_dislysis.weight_before : '' }}
57
           {{ schedule.assessment_before_dislysis ? schedule.assessment_before_dislysis.weight_before : '' }}
58
-          <span v-if="schedule.assessment_after_dislysis>0">/{{ schedule.assessment_after_dislysis ? schedule.assessment_after_dislysis.weight_after : '' }}</span> </p>
58
+          <span v-if="schedule.assessment_after_dislysis && schedule.assessment_after_dislysis.weight_after>0">/{{ schedule.assessment_after_dislysis ? schedule.assessment_after_dislysis.weight_after : '' }}</span> </p>
59
         <p>目标超滤量:
59
         <p>目标超滤量:
60
-          <span v-if="schedule.prescription>0">{{ schedule.prescription ? schedule.prescription.target_ultrafiltration : '' }}</span>
60
+          <span v-if="schedule.prescription && schedule.prescription.target_ultrafiltration>0">{{ schedule.prescription ? schedule.prescription.target_ultrafiltration : '' }}</span>
61
        
61
        
62
         </p>
62
         </p>
63
         <p :title="schedule.prescription ? schedule.prescription.dialyzer_perfusion_apparatus : ''">
63
         <p :title="schedule.prescription ? schedule.prescription.dialyzer_perfusion_apparatus : ''">

+ 9 - 6
src/xt_pages/dialysis/details/DialysisPrescription.vue Ver arquivo

109
       <ul>
109
       <ul>
110
         <li v-if="isShow('目标超滤量')">
110
         <li v-if="isShow('目标超滤量')">
111
           <label>目标超滤量 : </label>
111
           <label>目标超滤量 : </label>
112
-          <span class="content">{{
113
-            target_ultrafiltration != "0" ? target_ultrafiltration : ""
114
-          }}</span>
115
-          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 36 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.org_id != 9555" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
116
-          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id != 40 || this.$store.getters.xt_user.template_info.template_id != 43 || this.$store.getters.xt_user.template_info.template_id != 45 || this.$store.getters.xt_user.template_info.org_id == 9555" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
112
+          <span class="content">{{ target_ultrafiltration != "0" ? target_ultrafiltration : ""}}</span>
113
+          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 36 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.org_id != 9555 && this.$store.getters.xt_user.template_info.org_id != 9671"  class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
114
+          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id != 40 || this.$store.getters.xt_user.template_info.template_id != 43 || this.$store.getters.xt_user.template_info.template_id != 45 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 9671" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
117
         </li>
115
         </li>
118
         <li v-if="isShow('葡萄糖')">
116
         <li v-if="isShow('葡萄糖')">
119
           <label>葡萄糖 : </label>
117
           <label>葡萄糖 : </label>
712
     displace_speed:function(){
710
     displace_speed:function(){
713
       return this.getValueStr('displace_speed','displace_speed')
711
       return this.getValueStr('displace_speed','displace_speed')
714
     },
712
     },
715
-
713
+  
716
   },
714
   },
717
   created() {
715
   created() {
718
     console.log("中国出口233232323233223",this.prescription)
716
     console.log("中国出口233232323233223",this.prescription)
778
        }
776
        }
779
        return name
777
        return name
780
     }
778
     }
779
+  },
780
+  watch:{
781
+     prescription:function(){
782
+     console.log("中国出口233232323233223",this.prescription)
783
+   }
781
   }
784
   }
782
 }
785
 }
783
 </script>
786
 </script>

+ 1 - 1
src/xt_pages/dialysis/details/NavIgation.vue Ver arquivo

635
       this.$refs.assessmentBefore.show(this.predialysis_evaluation,this.last_dryWeight_dislysis,this.last_predialysis_evaluation,this.lastAssessment);
635
       this.$refs.assessmentBefore.show(this.predialysis_evaluation,this.last_dryWeight_dislysis,this.last_predialysis_evaluation,this.lastAssessment);
636
     },
636
     },
637
     showDoubleCheck: function() {
637
     showDoubleCheck: function() {
638
-       
638
+      console.log("h322323232323232332",this.prescription)
639
       this.$refs.doubleCheck.show();
639
       this.$refs.doubleCheck.show();
640
     },
640
     },
641
     showrTeatmentSummary: function() {
641
     showrTeatmentSummary: function() {

+ 1 - 1
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue Ver arquivo

1750
   created(){
1750
   created(){
1751
     //获取自备药
1751
     //获取自备药
1752
     this.getSelfMedicalList()
1752
     this.getSelfMedicalList()
1753
-    console.log("模板数据",this.adviceTemplates)
1753
+    
1754
   }
1754
   }
1755
 };
1755
 };
1756
 </script>
1756
 </script>

+ 1 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Ver arquivo

1296
       this.record_date = date ? uParseTime(date, "{y}-{m}-{d}") : parseTime(new Date(), '{y}-{m}-{d}')
1296
       this.record_date = date ? uParseTime(date, "{y}-{m}-{d}") : parseTime(new Date(), '{y}-{m}-{d}')
1297
       //获取皮肤
1297
       //获取皮肤
1298
       this.skins = getDataConfig('hemodialysis','skin')
1298
       this.skins = getDataConfig('hemodialysis','skin')
1299
-      console.log("皮肤",this.skins)
1299
+      
1300
       this.pinholings = getDataConfig('hemodialysis','pinholing')
1300
       this.pinholings = getDataConfig('hemodialysis','pinholing')
1301
       console.log("针眼",this.pinholings)
1301
       console.log("针眼",this.pinholings)
1302
       this.catheter_maintenancelist = getDataConfig('hemodialysis','catheter_maintenance')
1302
       this.catheter_maintenancelist = getDataConfig('hemodialysis','catheter_maintenance')

+ 17 - 9
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Ver arquivo

2257
             ParamsQuery['patient'] = this.patient.id
2257
             ParamsQuery['patient'] = this.patient.id
2258
             ParamsQuery['record_date'] = this.record_date
2258
             ParamsQuery['record_date'] = this.record_date
2259
             ParamsQuery['mode'] = '1'
2259
             ParamsQuery['mode'] = '1'
2260
-
2260
+            ParamsQuery['patient_id'] = this.patient.id
2261
             console.log('第一', ParamsQuery)
2261
             console.log('第一', ParamsQuery)
2262
             postPrescription(ParamsQuery).then(response => {
2262
             postPrescription(ParamsQuery).then(response => {
2263
               if (response.data.state == 0) {
2263
               if (response.data.state == 0) {
2300
               ParamsQuery['patient'] = this.patient.id
2300
               ParamsQuery['patient'] = this.patient.id
2301
               ParamsQuery['record_date'] = this.record_date
2301
               ParamsQuery['record_date'] = this.record_date
2302
               ParamsQuery['mode'] = '1'
2302
               ParamsQuery['mode'] = '1'
2303
+              ParamsQuery['patient_id'] = this.patient.id
2303
                console.log('第二')
2304
                console.log('第二')
2304
               postPrescription(ParamsQuery).then(response => {
2305
               postPrescription(ParamsQuery).then(response => {
2305
                 if (response.data.state == 0) {
2306
                 if (response.data.state == 0) {
2347
               ParamsQuery['patient'] = this.patient.id
2348
               ParamsQuery['patient'] = this.patient.id
2348
               ParamsQuery['record_date'] = this.record_date
2349
               ParamsQuery['record_date'] = this.record_date
2349
               ParamsQuery['mode'] = '1'
2350
               ParamsQuery['mode'] = '1'
2351
+              ParamsQuery['patient_id'] = this.patient.id
2350
               console.log('第三')
2352
               console.log('第三')
2351
-
2353
+            
2352
               postPrescription(ParamsQuery).then(response => {
2354
               postPrescription(ParamsQuery).then(response => {
2353
                 if (response.data.state == 0) {
2355
                 if (response.data.state == 0) {
2354
                   this.$message.error(response.data.msg)
2356
                   this.$message.error(response.data.msg)
2420
               ParamsQuery['record_date'] = this.record_date
2422
               ParamsQuery['record_date'] = this.record_date
2421
               // console.log(this.prescription);
2423
               // console.log(this.prescription);
2422
               console.log('第四')
2424
               console.log('第四')
2425
+              ParamsQuery['patient_id'] = this.patient.id
2423
               postPrescription(ParamsQuery).then(response => {
2426
               postPrescription(ParamsQuery).then(response => {
2424
                 if (response.data.state == 0) {
2427
                 if (response.data.state == 0) {
2425
                   this.$message.error(response.data.msg)
2428
                   this.$message.error(response.data.msg)
2461
               ParamsQuery['patient'] = this.patient.id
2464
               ParamsQuery['patient'] = this.patient.id
2462
               ParamsQuery['record_date'] = this.record_date
2465
               ParamsQuery['record_date'] = this.record_date
2463
               ParamsQuery['mode'] = '1'
2466
               ParamsQuery['mode'] = '1'
2467
+              ParamsQuery['patient_id'] = this.patient.id
2464
               console.log('第五')
2468
               console.log('第五')
2465
               postPrescription(ParamsQuery).then(response => {
2469
               postPrescription(ParamsQuery).then(response => {
2466
                 if (response.data.state == 0) {
2470
                 if (response.data.state == 0) {
2504
                 ParamsQuery['record_date'] = this.record_date
2508
                 ParamsQuery['record_date'] = this.record_date
2505
                 ParamsQuery['mode'] = '1'
2509
                 ParamsQuery['mode'] = '1'
2506
                 console.log('第6')
2510
                 console.log('第6')
2511
+                ParamsQuery['patient_id'] = this.patient.id
2507
                 postPrescription(ParamsQuery).then(response => {
2512
                 postPrescription(ParamsQuery).then(response => {
2508
                   if (response.data.state == 0) {
2513
                   if (response.data.state == 0) {
2509
                     this.$message.error(response.data.msg)
2514
                     this.$message.error(response.data.msg)
2552
                 ParamsQuery['record_date'] = this.record_date
2557
                 ParamsQuery['record_date'] = this.record_date
2553
                 ParamsQuery['mode'] = '1'
2558
                 ParamsQuery['mode'] = '1'
2554
                 console.log('第七')
2559
                 console.log('第七')
2560
+                ParamsQuery['patient_id'] = this.patient.id
2555
                 postPrescription(ParamsQuery).then(response => {
2561
                 postPrescription(ParamsQuery).then(response => {
2556
                   if (response.data.state == 0) {
2562
                   if (response.data.state == 0) {
2557
                     this.$message.error(response.data.msg)
2563
                     this.$message.error(response.data.msg)
2621
                 ParamsQuery['patient'] = this.patient.id
2627
                 ParamsQuery['patient'] = this.patient.id
2622
                 ParamsQuery['record_date'] = this.record_date
2628
                 ParamsQuery['record_date'] = this.record_date
2623
                 ParamsQuery['mode'] = '1'
2629
                 ParamsQuery['mode'] = '1'
2630
+                ParamsQuery['patient_id'] = this.patient.id
2624
                 console.log('第八')
2631
                 console.log('第八')
2632
+                
2625
                 postPrescription(ParamsQuery).then(response => {
2633
                 postPrescription(ParamsQuery).then(response => {
2626
                   if (response.data.state == 0) {
2634
                   if (response.data.state == 0) {
2627
                     this.$message.error(response.data.msg)
2635
                     this.$message.error(response.data.msg)
2660
             ParamsQuery['patient'] = this.patient.id
2668
             ParamsQuery['patient'] = this.patient.id
2661
             ParamsQuery['record_date'] = this.record_date
2669
             ParamsQuery['record_date'] = this.record_date
2662
             ParamsQuery['mode'] = '2'
2670
             ParamsQuery['mode'] = '2'
2663
-
2671
+            ParamsQuery['patient_id'] = this.patient.id
2672
+          
2664
             if (
2673
             if (
2665
               this.$store.getters.xt_user.user.id !=
2674
               this.$store.getters.xt_user.user.id !=
2666
               this.dialysisPrescription.creater
2675
               this.dialysisPrescription.creater
2667
             ) {
2676
             ) {
2668
               ParamsQuery['mode'] = '3'
2677
               ParamsQuery['mode'] = '3'
2669
             }
2678
             }
2670
-            console.log('第九')
2679
+            console.log('第九',ParamsQuery)
2671
             postPrescription(ParamsQuery).then(response => {
2680
             postPrescription(ParamsQuery).then(response => {
2672
               if (response.data.state == 0) {
2681
               if (response.data.state == 0) {
2673
                 this.$message.error(response.data.msg)
2682
                 this.$message.error(response.data.msg)
3221
       isShows(name) {
3230
       isShows(name) {
3222
         var filedList = store.getters.xt_user.fileds
3231
         var filedList = store.getters.xt_user.fileds
3223
         for (let i = 0; i < filedList.length; i++) {
3232
         for (let i = 0; i < filedList.length; i++) {
3224
-          if (
3225
-            filedList[i].module == 1 &&
3226
-            filedList[i].filed_name_cn == name &&
3227
-            filedList[i].is_show == 1
3228
-          ) {
3233
+         
3234
+          if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
3235
+
3229
             return true
3236
             return true
3230
           }
3237
           }
3238
+
3231
         }
3239
         }
3232
         return false
3240
         return false
3233
       },
3241
       },

+ 89 - 34
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue Ver arquivo

222
                   '{y}-{m}-{d} {h}:{i}'
222
                   '{y}-{m}-{d} {h}:{i}'
223
                 ).split(' ')[1]
223
                 ).split(' ')[1]
224
 
224
 
225
-                console.log('真性感')
225
+                
226
             }
226
             }
227
 
227
 
228
           }else if(this.$store.getters.xt_user.user.id != this.double_check.creater && this.double_check.modifier == 0){
228
           }else if(this.$store.getters.xt_user.user.id != this.double_check.creater && this.double_check.modifier == 0){
326
            
326
            
327
 
327
 
328
             let doublecheck_resp = response.data.data.doubleCheck
328
             let doublecheck_resp = response.data.data.doubleCheck
329
-            console.log("双核2332322323",doublecheck_resp)
329
+            console.log("处方233232323232232332",this.prescription)
330
             var doubleCheck = this.double_check
330
             var doubleCheck = this.double_check
331
             for (var index in doublecheck_resp) {        
331
             for (var index in doublecheck_resp) {        
332
               this.$set(doubleCheck, index, doublecheck_resp[index])
332
               this.$set(doubleCheck, index, doublecheck_resp[index])
920
     },
920
     },
921
     watch: {
921
     watch: {
922
       isVisibility(val) {
922
       isVisibility(val) {
923
-        
923
+         
924
         if(this.prescription!=null && this.prescription.id!=0){
924
         if(this.prescription!=null && this.prescription.id!=0){
925
+          if(this.prescription.dialyzer_perfusion_apparatus !="" || this.prescription.dialysis_dialyszers!="" || this.prescription.dialysis_irrigation!=""){
926
+            this.diazes = ""
927
+            this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus
928
+            this.diazes = this.diazes + this.prescription.dialysis_dialyszers+this.prescription.dialysis_irrigation
929
+          }else{
930
+            this.diazes = ""
931
+            this.diazes = this.diazes 
932
+          }
933
+          
934
+          if(this.prescription.dialysate_formulation!=""){
935
+             this.dialysate_formulation = this.dialysate_formulation + this.GetDialysateFormulationById(this.prescription.dialysate_formulation)
936
+          }else{
937
+            this.dialysate_formulation = this.dialysate_formulation 
938
+          }
939
+          
940
+          if(this.prescription.kalium!=""){
941
+           this.kalium = this.kalium + (this.prescription.kalium?this.prescription.kalium:"")
942
+          }else{
943
+            this.kalium = this.kalium 
944
+          }
945
+       
946
+          if(this.prescription.calcium!=""){
947
+           this.calcium = this.calcium + (this.prescription.calcium?this.prescription.calcium:"")
948
+          }else{
949
+            this.calcium = this.calcium
950
+          }
951
+         
952
+          if(this.prescription.mode_id > 0){
953
+            this.dialys_mode = this.dialys_mode + this.getMode(this.prescription.mode_id) 
954
+          }else{
955
+             this.dialys_mode = this.dialys_mode
956
+          }
957
+          
958
+          if(this.prescription.dialysis_duration_hour !="" || this.prescription.dialysis_duration_minute!=""){
959
+            this.long_time = this.long_time + (this.prescription.dialysis_duration_hour?this.prescription.dialysis_duration_hour:"") +"小时" +(this.prescription.dialysis_duration_minute?this.prescription.dialysis_duration_minute:"") +"分"
960
+          }else{
961
+             this.long_time = this.long_time
962
+          }
963
+          
964
+          if(this.prescription.target_ultrafiltration!=""){
965
+           this.target_ultrafiltration = this.target_ultrafiltration + (this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:"")
966
+          }else{
967
+            this.target_ultrafiltration = this.target_ultrafiltration
968
+          }
925
           
969
           
926
-          this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus
927
-          this.diazes = this.diazes + this.prescription.dialysis_dialyszers+this.prescription.dialysis_irrigation
928
-          this.prescription.dialyzer_perfusion_apparatus = ""
929
-          this.prescription.dialysis_dialyszers = ""
930
-          this.prescription.dialysis_irrigation = ""
931
-          this.dialysate_formulation = this.dialysate_formulation + this.GetDialysateFormulationById(this.prescription.dialysate_formulation)
932
-          // this.prescription.dialysate_formulation = ""
933
-          this.kalium = this.kalium + (this.prescription.kalium?this.prescription.kalium:"")
934
-          this.prescription.kalium = ""
935
-          this.calcium = this.calcium + (this.prescription.calcium?this.prescription.calcium:"")
936
-          this.prescription.calcium = ""
937
-          this.dialys_mode = this.dialys_mode + this.getMode(this.prescription.mode_id)
938
-          this.prescription.mode_id= ""
939
-          this.long_time = this.long_time + (this.prescription.dialysis_duration_hour?this.prescription.dialysis_duration_hour:"") +"小时" +this.prescription.dialysis_duration_minute +"分"
940
-          this.prescription.dialysis_duration_hour=""
941
-          this.target_ultrafiltration = this.target_ultrafiltration + (this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:"")
942
-          this.prescription.target_ultrafiltration = ""
943
-          this.anticoagulant = this.anticoagulant + this.getAnticoagulant(this.prescription.anticoagulant)
944
-          this.prescription.anticoagulant=""
945
-          this.anticoagulant_shouji = this.anticoagulant_shouji + (this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:"")
946
-          this.prescription.anticoagulant_shouji = ""
947
-          this.anticoagulant_weichi = this.anticoagulant_weichi + (this.prescription.anticoagulant_weichi?this.prescription.anticoagulant_weichi:"")
948
-         this.prescription.anticoagulant_weichi=""
949
-         this.anticoagulant_zongliang = this.anticoagulant_zongliang+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:"")
950
-         this.prescription.anticoagulant_zongliang = ""
951
-         this.displace_liqui_part = this.displace_liqui_part + (this.prescription.displace_liqui_part?this.prescription.displace_liqui_part:"")
952
-          this.prescription.displace_liqui_part
953
-          this.replacement_total = this.replacement_total + (this.prescription.replacement_total?this.prescription.replacement_total:"")
954
-          this.prescription.replacement_total= ""
955
-          this.dialysate_flow = this.dialysate_flow + (this.prescription.dialysate_flow?this.prescription.dialysate_flow:"")
956
-          this.prescription.dialysate_flow= ""
970
+          if(this.prescription.anticoagulant!=""){
971
+            this.anticoagulant = this.anticoagulant + this.getAnticoagulant(this.prescription.anticoagulant)
972
+          }else{
973
+            this.anticoagulant = this.anticoagulant 
974
+          }
975
+         
976
+          if(this.prescription.anticoagulant_shouji!=""){
977
+            this.anticoagulant_shouji = this.anticoagulant_shouji + (this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:"")
978
+          }else{
979
+             this.anticoagulant_shouji = this.anticoagulant_shouji
980
+          }
981
+          
982
+          if(this.prescription.anticoagulant_weichi!=""){
983
+             this.anticoagulant_weichi = this.anticoagulant_weichi + (this.prescription.anticoagulant_weichi?this.prescription.anticoagulant_weichi:"")
984
+          }else{
985
+           this.anticoagulant_weichi = this.anticoagulant_weichi 
986
+          }
987
+          
988
+          if(this.prescription.anticoagulant_zongliang!=""){
989
+             this.anticoagulant_zongliang = this.anticoagulant_zongliang+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:"")
990
+          }else{
991
+             this.anticoagulant_zongliang = this.anticoagulant_zongliang
992
+          }
993
+       
994
+          if(this.prescription.displace_liqui_part!=""){
995
+            this.displace_liqui_part = this.displace_liqui_part + (this.prescription.displace_liqui_part?this.prescription.displace_liqui_part:"")
996
+          }else{
997
+             this.displace_liqui_part = this.displace_liqui_part
998
+          }
999
+          
1000
+          if(this.prescription.replacement_total!=""){
1001
+             this.replacement_total = this.replacement_total + (this.prescription.replacement_total?this.prescription.replacement_total:"")
1002
+          }else{
1003
+             this.replacement_total = this.replacement_total
1004
+          }
1005
+        
1006
+          if(this.prescription.dialysate_flow!=""){
1007
+             this.dialysate_flow = this.dialysate_flow + (this.prescription.dialysate_flow?this.prescription.dialysate_flow:"")
1008
+          }else{
1009
+             this.dialysate_flow = this.dialysate_flow
1010
+          }
1011
+
957
         }
1012
         }
958
         if(this.predialysis_evaluation!=null && this.predialysis_evaluation.id!=0){
1013
         if(this.predialysis_evaluation!=null && this.predialysis_evaluation.id!=0){
959
           this.puncture_needle = this.puncture_needle + this.predialysis_evaluation.puncture_needle
1014
           this.puncture_needle = this.puncture_needle + this.predialysis_evaluation.puncture_needle

+ 8 - 1
src/xt_pages/dialysis/details/index.vue Ver arquivo

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
           if (prescription != null) {
985
           if (prescription != null) {
985
             if (prescription.body_fluid == -2) {
986
             if (prescription.body_fluid == -2) {
986
               prescription.body_fluid = 0
987
               prescription.body_fluid = 0
1338
         var resp = rs.data
1339
         var resp = rs.data
1339
         if (resp.state == 1) {
1340
         if (resp.state == 1) {
1340
           var schedules = resp.data.schedules
1341
           var schedules = resp.data.schedules
1341
-          console.log("当前排班信息4444444444444444",schedules)
1342
+          console.log("恭喜发慈爱2323232323323323223322332",schedules,this.prescription.patient_id)
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
1346
+            }
1347
+          }
1348
+          console.log("hh2332223323232",this.prescription)
1342
           this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1349
           this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1343
           const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
1350
           const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
1344
           if (this.activeName == 'first') {
1351
           if (this.activeName == 'first') {

+ 1 - 4
src/xt_pages/hospitalStation/components/deskPrescription.vue Ver arquivo

3232
           }, 400)
3232
           }, 400)
3233
         }
3233
         }
3234
       }
3234
       }
3235
-    },
3236
-    created(){
3237
-      console.log("中华任命工商过多水分我333323232",this.org_id)
3238
-      console.log("jjjjjjjjjjjjjjjjjjjjjjjjjjjj",this.drugs)
3239
     }
3235
     }
3236
+  
3240
 
3237
 
3241
   }
3238
   }
3242
 </script>
3239
 </script>