瀏覽代碼

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

see999 3 年之前
父節點
當前提交
d3dc8eb44e

+ 5 - 2
src/xt_pages/dialysis/PatientBox.vue 查看文件

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

+ 9 - 6
src/xt_pages/dialysis/details/DialysisPrescription.vue 查看文件

@@ -109,11 +109,9 @@
109 109
       <ul>
110 110
         <li v-if="isShow('目标超滤量')">
111 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 115
         </li>
118 116
         <li v-if="isShow('葡萄糖')">
119 117
           <label>葡萄糖 : </label>
@@ -712,7 +710,7 @@ export default {
712 710
     displace_speed:function(){
713 711
       return this.getValueStr('displace_speed','displace_speed')
714 712
     },
715
-
713
+  
716 714
   },
717 715
   created() {
718 716
     console.log("中国出口233232323233223",this.prescription)
@@ -778,6 +776,11 @@ export default {
778 776
        }
779 777
        return name
780 778
     }
779
+  },
780
+  watch:{
781
+     prescription:function(){
782
+     console.log("中国出口233232323233223",this.prescription)
783
+   }
781 784
   }
782 785
 }
783 786
 </script>

+ 1 - 1
src/xt_pages/dialysis/details/NavIgation.vue 查看文件

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

+ 1 - 1
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue 查看文件

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

+ 1 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue 查看文件

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

+ 17 - 9
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

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

+ 89 - 34
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue 查看文件

@@ -222,7 +222,7 @@
222 222
                   '{y}-{m}-{d} {h}:{i}'
223 223
                 ).split(' ')[1]
224 224
 
225
-                console.log('真性感')
225
+                
226 226
             }
227 227
 
228 228
           }else if(this.$store.getters.xt_user.user.id != this.double_check.creater && this.double_check.modifier == 0){
@@ -326,7 +326,7 @@
326 326
            
327 327
 
328 328
             let doublecheck_resp = response.data.data.doubleCheck
329
-            console.log("双核2332322323",doublecheck_resp)
329
+            console.log("处方233232323232232332",this.prescription)
330 330
             var doubleCheck = this.double_check
331 331
             for (var index in doublecheck_resp) {        
332 332
               this.$set(doubleCheck, index, doublecheck_resp[index])
@@ -920,40 +920,95 @@
920 920
     },
921 921
     watch: {
922 922
       isVisibility(val) {
923
-        
923
+         
924 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 1013
         if(this.predialysis_evaluation!=null && this.predialysis_evaluation.id!=0){
959 1014
           this.puncture_needle = this.puncture_needle + this.predialysis_evaluation.puncture_needle

+ 8 - 1
src/xt_pages/dialysis/details/index.vue 查看文件

@@ -981,6 +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
           if (prescription != null) {
985 986
             if (prescription.body_fluid == -2) {
986 987
               prescription.body_fluid = 0
@@ -1338,7 +1339,13 @@ export default {
1338 1339
         var resp = rs.data
1339 1340
         if (resp.state == 1) {
1340 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 1349
           this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1343 1350
           const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
1344 1351
           if (this.activeName == 'first') {

+ 1 - 4
src/xt_pages/hospitalStation/components/deskPrescription.vue 查看文件

@@ -3232,11 +3232,8 @@
3232 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 3239
 </script>

+ 71 - 4
src/xt_pages/outpatientTool/components/detail.vue 查看文件

@@ -6,10 +6,10 @@
6 6
     <div>
7 7
         <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8 8
             <div>
9
-                <!--<el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"-->
10
-                <!--@click="Action">-->
11
-                <!--导出-->
12
-                <!--</el-button>-->
9
+                <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"
10
+                @click="Action">
11
+                导出
12
+                </el-button>
13 13
                 <el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction"
14 14
                           @keyup.enter.native='searchAction'
15 15
                           placeholder="请输入患者姓名"
@@ -104,6 +104,8 @@
104 104
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
105 105
   import { GetSummaryDetail } from '@/api/his/his'
106 106
   import { uParseTime } from '@/utils/tools'
107
+  import axios from 'axios'
108
+
107 109
   // import NewStatementPrint from './newStatementPrint'
108 110
   const moment = require('moment')
109 111
   export default {
@@ -132,6 +134,71 @@
132 134
       }
133 135
     },
134 136
     methods: {
137
+      Action(){
138
+        var that = this
139
+        axios.get('http://127.0.0.1:9531/handelExcel', {
140
+          params: {}
141
+        })
142
+          .then(function(response) {
143
+            if (response.data.state == 0) {
144
+              that.$message.error(response.data.msg)
145
+
146
+
147
+              return false
148
+            } else {
149
+
150
+              var list = []
151
+              for(let i = 0; i < response.data.data.list.length; i++){
152
+                let team =  response.data.data.list[i]
153
+                for(let b = 0; b < team.list.length; b++){
154
+                  let name = ""
155
+                  if(team.list[b].type == 2){
156
+                    name = team.list[b].project.project_name
157
+                  }else{
158
+
159
+                    name = team.list[b].good_info.good_name
160
+
161
+                  }
162
+
163
+                  let obj = {
164
+                    '客户组合编码': team.id,
165
+                    '客户组合名称': team.project_team,
166
+                    '客户单项编码': team.list[b].id,
167
+                    '客户单项名称': name,
168
+                    '中心组合编码': '',
169
+                    '中心组合名称': '',
170
+                    '中心单项编码': '',
171
+                    '中心单项名称': '',
172
+                  }
173
+
174
+                  list.push(obj)
175
+                }
176
+              }
177
+
178
+              import('@/vendor/Export2Excel').then(excel => {
179
+                const tHeader = [ '客户组合编码', '客户组合名称', '客户单项编码', '客户单项名称', '中心组合编码', '中心组合名称', '中心单项编码', '中心单项名称']
180
+                const filterVal = [ '客户组合编码', '客户组合名称', '客户单项编码', '客户单项名称', '中心组合编码', '中心组合名称', '中心单项编码', '中心单项名称']
181
+                const data = that.formatJson(filterVal, list)
182
+                excel.export_json_to_excel({
183
+                  header: tHeader,
184
+                  data,
185
+                  filename: "消费明细"
186
+                })
187
+              })
188
+
189
+
190
+            }
191
+          })
192
+          .catch(function(error) {
193
+
194
+          })
195
+
196
+
197
+
198
+
199
+      },formatJson(filterVal, jsonData) {
200
+        return jsonData.map(v => filterVal.map(j => v[j]))
201
+      },
135 202
       objectSpanMethod({ row, column, rowIndex, columnIndex }) {
136 203
         if (columnIndex === 0) {
137 204
           if (rowIndex % 2 === 0) {

+ 24 - 3
src/xt_pages/outpatientTool/components/settle.vue 查看文件

@@ -91,6 +91,16 @@
91 91
           <el-table-column align="center" prop="item_name" label="个人支付金额">
92 92
               <template slot-scope="scope">{{scope.row.psn_cash_pay.toFixed(2)}}</template>
93 93
           </el-table-column>
94
+
95
+          <el-table-column align="center" prop="item_name" label="企业补充医疗保险基金支出">
96
+              <template slot-scope="scope">{{scope.row.hifes_pay.toFixed(2)}}</template>
97
+          </el-table-column>
98
+
99
+
100
+          <el-table-column align="center" prop="item_name" label="居民大病保险资金支出">
101
+              <template slot-scope="scope">{{scope.row.hifmi_pay.toFixed(2)}}</template>
102
+          </el-table-column>
103
+
94 104
           <el-table-column align="center" prop="total" label="费用总额">
95 105
               <template slot-scope="scope">
96 106
                   <div>{{scope.row.total.toFixed(2)}}</div>
@@ -126,7 +136,10 @@
126 136
           { id: 1, name: '医保' },
127 137
           { id: 2, name: '自费' },
128 138
           { id: 3, name: '门诊特殊病' },
129
-          { id: 4, name: '普通门诊' }
139
+          { id: 4, name: '普通门诊' },
140
+          { id: 5, name: '城乡居民基本医疗保险' },
141
+          { id: 6, name: '职工基本医疗保险' }
142
+
130 143
 
131 144
         ]
132 145
 
@@ -332,7 +345,10 @@
332 345
           let fund_pay_sumamt = ""
333 346
           let acct_pay = ""
334 347
           let psn_cash_pay = ""
348
+          let hifes_pay = ""
349
+          let hifmi_pay = ""
335 350
           let total = ""
351
+
336 352
           if(order.setl_time.length == 0){
337 353
 
338 354
             time = this.getTimes(order.settle_accounts_date)
@@ -363,6 +379,8 @@
363 379
           fund_pay_sumamt = order.fund_pay_sumamt
364 380
           acct_pay = order.acct_pay
365 381
           psn_cash_pay = order.psn_cash_pay
382
+          hifes_pay = order.hifes_pay
383
+          hifmi_pay = order.hifmi_pay
366 384
           total = order.total
367 385
 
368 386
 
@@ -375,13 +393,16 @@
375 393
             '基金支付金额': fund_pay_sumamt,
376 394
             '个人账户支付金额': acct_pay,
377 395
             '个人支付基金': psn_cash_pay,
396
+            '企业补充医疗保险基金支出': hifes_pay,
397
+            '居民大病保险资金支出': hifmi_pay,
378 398
             '费用总额':total,
399
+
379 400
           }
380 401
           list.push(obj)
381 402
         }
382 403
         import('@/vendor/Export2Excel').then(excel => {
383
-          const tHeader = [ '患者姓名', '结算日期', '结算类型', '处方类型', '医疗费总额', '基金支付金额', '个人账户支付金额', '个人支付基金', '费用总额']
384
-          const filterVal = [ '患者姓名', '结算日期', '结算类型', '处方类型', '医疗费总额', '基金支付金额', '个人账户支付金额', '个人支付基金', '费用总额']
404
+          const tHeader = [ '患者姓名', '结算日期', '结算类型', '处方类型', '医疗费总额', '基金支付金额', '个人账户支付金额', '个人支付基金','企业补充医疗保险基金支出','居民大病保险资金支出', '费用总额']
405
+          const filterVal = [ '患者姓名', '结算日期', '结算类型', '处方类型', '医疗费总额', '基金支付金额', '个人账户支付金额', '个人支付基金','企业补充医疗保险基金支出','居民大病保险资金支出',  '费用总额']
385 406
           const data = this.formatJson(filterVal, list)
386 407
           excel.export_json_to_excel1({
387 408
             header: tHeader,

+ 6 - 14
src/xt_pages/outpatientTool/fapiao.vue 查看文件

@@ -216,7 +216,6 @@
216 216
           .catch(() => {
217 217
           })
218 218
       },
219
-
220 219
       handleIsUse: function(index, row) {
221 220
         this.$confirm('是否开启?', '开启', {
222 221
           confirmButtonText: '确定',
@@ -244,7 +243,6 @@
244 243
           })
245 244
 
246 245
       },
247
-
248 246
       showDetails: function(index, row) {
249 247
         let params = {
250 248
           id: row.id
@@ -272,7 +270,6 @@
272 270
             fapiao_code: val.fapiao_code,
273 271
             fapiao_number: val.fapiao_number,
274 272
             id: this.editId
275
-
276 273
           }
277 274
           modifyFaPiao(params).then(response => {
278 275
             if (response.data.state == 0) {
@@ -290,6 +287,7 @@
290 287
             }
291 288
           })
292 289
         } else if (val.isCreated == 1) {
290
+
293 291
           //新增
294 292
           createFaPiao(val).then(response => {
295 293
             if (response.data.state == 0) {
@@ -301,27 +299,22 @@
301 299
             }
302 300
           })
303 301
         }
304
-      },
305
-      dialogCancle: function() {
302
+      }, dialogCancle: function() {
306 303
         this.$refs.dialog.hide()
307
-      },
308
-      showDialog: function() {
304
+      }, showDialog: function() {
309 305
         this.Dialog.formValue = Object.assign(
310 306
           {},
311 307
           this.Dialog.resetForm
312 308
         )
313 309
         this.$refs.dialog.show()
314 310
         this.Dialog.isCreated = 1
315
-      },
316
-      handleSizeChange(val) {
311
+      }, handleSizeChange(val) {
317 312
         this.limit = val
318 313
         this.getList()
319
-      },
320
-      handleCurrentChange(val) {
314
+      }, handleCurrentChange(val) {
321 315
         this.page = val
322 316
         this.getList()
323
-      },
324
-      getList() {
317
+      }, getList() {
325 318
         let params = {
326 319
           page: this.page,
327 320
           limit: this.limit
@@ -356,7 +349,6 @@
356 349
     .el-table--group {
357 350
         border-color: #d0d3da;
358 351
     }
359
-
360 352
     .el-table--border::after,
361 353
     .el-table--group::after,
362 354
     .el-table::before {