Преглед на файлове

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

陈少旭 преди 1 седмица
родител
ревизия
f810aead22

+ 53 - 53
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Целия файл

@@ -3,57 +3,55 @@
3 3
         <el-dialog
4 4
                 title="透析处方"
5 5
                 :visible.sync="isVisibility"
6
-                width="72%"
6
+                width="80%"
7 7
                 :modal = 'false'
8 8
                 :modal-append-to-body="false"
9 9
                 :close-on-click-modal="false"
10 10
                 class="newDialog"
11 11
         >
12 12
             <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo(patient.id)">{{ patient.name }}</el-button>
13
-
14
-            <span style="position: absolute;left: 20%;top: 3%" v-if="this.$store.getters.xt_user.template_info.org_id!=0&&this.$store.getters.xt_user.template_info.org_id!=10702">
15
-              透前称重:{{predialysis&&predialysis.weight_before?predialysis.weight_before:"" }} kg
16
-            </span>
17
-
18
-            <span style="position: absolute;left: 20%;top: 3%" v-if="this.$store.getters.xt_user.template_info.org_id ==0||this.$store.getters.xt_user.template_info.org_id==10702">
19
-              透前体重:{{predialysis&&(predialysis.weight_before-predialysis.additional_weight).toFixed(2)?(predialysis.weight_before-predialysis.additional_weight).toFixed(2):"" }} kg
20
-            </span>
21
-
13
+            <div style="position: absolute;left: 20%;top: 3%;width: 70%;">
14
+              <span  v-if="this.$store.getters.xt_user.template_info.org_id!=0&&this.$store.getters.xt_user.template_info.org_id!=10702">
15
+                透前称重:{{predialysis&&predialysis.weight_before?predialysis.weight_before:"" }} kg
16
+              </span>&nbsp;&nbsp;
17
+
18
+              <span style="" v-if="this.$store.getters.xt_user.template_info.org_id ==0||this.$store.getters.xt_user.template_info.org_id==10702">
19
+                透前体重:{{predialysis&&(predialysis.weight_before-predialysis.additional_weight).toFixed(2)?(predialysis.weight_before-predialysis.additional_weight).toFixed(2):"" }} kg
20
+              </span>&nbsp;&nbsp;
21
+              <!-- style="position: absolute;left: 20%;top: 3%"  position: absolute;left:38%;top: 3%-->
22
+              <span style="">
23
+                干体重:{{predialysis&&predialysis.dry_weight?predialysis.dry_weight:""}}kg
24
+              </span>&nbsp;&nbsp;
25
+              <span style="">
26
+                上次透后体重:
27
+                <span v-if="this.$store.getters.xt_user.template_info.org_id!=0 && this.$store.getters.xt_user.template_info.org_id!=10702">{{last_record&&last_record.weight_after?last_record.weight_after:""}}kg</span>
28
+                <span v-if="this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id==10702">{{last_record&&(last_record.weight_after-last_record.additional_weight).toFixed(2)?(last_record.weight_after-last_record.additional_weight).toFixed(2):""}}kg</span>
29
+              </span>&nbsp;&nbsp;
30
+            </div>
31
+            <div style="position: absolute;left: 20%;top: 10%;width: 70%;">
32
+              <span style="display: inline-block;" v-if="this.$store.getters.xt_user.template_info.org_id==0||this.$store.getters.xt_user.template_info.org_id==10702 || this.$store.getters.xt_user.template_info.org_id ==10721">
33
+                衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:"" }} kg
34
+              </span>&nbsp;&nbsp;
35
+              <div v-if="org_id == 0 ||org_id ==10702 || org_id ==10598 || org_id ==10721" style="display: inline-block;">
36
+                体重增长:
37
+                <span v-if="predialysis!=null && last_record!=null">
38
+                  {{predialysis&&last_record&&((predialysis.weight_before - predialysis.additional_weight)-(last_record.weight_after-last_record.additional_weight)).toFixed(2)?((predialysis.weight_before - predialysis.additional_weight)-(last_record.weight_after-last_record.additional_weight)).toFixed(2):"" }} kg
39
+                </span>&nbsp;&nbsp;
40
+                <span style="">
41
+                  4小时超滤量上限(5%):
42
+                  <span v-if="predialysis!=null && ((predialysis.dry_weight)*0.05) >0 "></span> {{(predialysis.dry_weight*0.05).toFixed(2)}}
43
+                  kg
44
+                </span>&nbsp;&nbsp;
45
+              </div>
46
+              <span style="display: inline-block;" v-if="this.$store.getters.xt_user.template_info.org_id!=10702">
47
+                透前血压:  {{predialysis&&predialysis.systolic_blood_pressure?predialysis.systolic_blood_pressure:""  }} / {{ predialysis&&predialysis.diastolic_blood_pressure?predialysis.diastolic_blood_pressure:"" }} mmHg
48
+              </span>
49
+            </div>
22 50
 
23 51
 
24
-            <span style="position: absolute;left: 30%;top: 3%">
25
-              干体重:{{predialysis&&predialysis.dry_weight?predialysis.dry_weight:""}}kg
26
-            </span>
27 52
             <!-- <span style="position: absolute;left: 48%;top: 3%"  :modal = 'false'>
28 53
               衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:""}}kg
29 54
             </span> -->
30
-            <span style="position: absolute;left:38%;top: 3%">
31
-              上次透后体重:
32
-               <span v-if="this.$store.getters.xt_user.template_info.org_id!=0 && this.$store.getters.xt_user.template_info.org_id!=10702">{{last_record&&last_record.weight_after?last_record.weight_after:""}}kg</span>
33
-               <span v-if="this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id==10702">{{last_record&&(last_record.weight_after-last_record.additional_weight).toFixed(2)?(last_record.weight_after-last_record.additional_weight).toFixed(2):""}}kg</span>
34
-            </span>
35
-
36
-            <span style="position: absolute;left:51%;top: 3%">
37
-              4小时超滤量上限(5%):
38
-              <span v-if="predialysis!=null && ((predialysis.dry_weight)*0.05) >0 "></span> {{(predialysis.dry_weight*0.05).toFixed(2)}}
39
-              kg
40
-            </span>
41
-            <span style="position: absolute;left: 70%;top: 3%" v-if="this.$store.getters.xt_user.template_info.org_id!=0&&this.$store.getters.xt_user.template_info.org_id!=10702 &&this.$store.getters.xt_user.template_info.org_id!=10721">
42
-              透前血压:  {{predialysis&&predialysis.systolic_blood_pressure?predialysis.systolic_blood_pressure:""  }} / {{ predialysis&&predialysis.diastolic_blood_pressure?predialysis.diastolic_blood_pressure:"" }} mmHg
43
-            </span>
44
-
45
-            <span style="position: absolute;left: 70%;top: 3%" v-if="this.$store.getters.xt_user.template_info.org_id==0||this.$store.getters.xt_user.template_info.org_id==10702">
46
-             衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:"" }} kg
47
-            </span>
48
-
49
-            <span style="position: absolute;left: 80%;top: 3%" v-if="this.$store.getters.xt_user.template_info.org_id == 0 || this.$store.getters.xt_user.template_info.org_id ==10702 || this.$store.getters.xt_user.template_info.org_id ==10598 || this.$store.getters.xt_user.template_info.org_id ==10721">
50
-              体重增长:
51
-              <span v-if="predialysis!=null && last_record!=null">
52
-                {{predialysis&&last_record&&((predialysis.weight_before - predialysis.additional_weight)-(last_record.weight_after-last_record.additional_weight)).toFixed(2)?((predialysis.weight_before - predialysis.additional_weight)-(last_record.weight_after-last_record.additional_weight)).toFixed(2):"" }} kg
53
-              </span>
54
-
55
-
56
-            </span>
57 55
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
58 56
             <el-form
59 57
                     ref="dialysisPrescription"
@@ -953,7 +951,7 @@
953 951
                     </el-col>
954 952
 
955 953
                     <el-col :span="8">
956
-                       
954
+
957 955
                     </el-col>
958 956
 
959 957
                     <el-col :span="8" v-if="isShows('置换液总量')" v-show="totalShow">
@@ -1932,6 +1930,7 @@
1932 1930
         tableData:[],
1933 1931
         afterList:[],
1934 1932
         monitorList:[],
1933
+        org_id:'',
1935 1934
       }
1936 1935
 
1937 1936
     },
@@ -2637,7 +2636,7 @@ mu
2637 2636
       },
2638 2637
       show(pre, schedual, last, his_is_open,is_advice_open,admins) {
2639 2638
         console.log("除非=======================")
2640
-      
2639
+
2641 2640
         if(this.$store.getters.xt_user.template_info.org_id==10702 || this.$store.getters.xt_user.template_info.org_id==10635  || this.$store.getters.xt_user.template_info.org_id==0   || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10726){
2642 2641
           if(this.predialysis!=undefined){
2643 2642
             if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
@@ -3106,7 +3105,7 @@ mu
3106 3105
         if(this.$store.getters.xt_user.template_info.org_id==10164 || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id == 10726){
3107 3106
           this.getPatientBefor()
3108 3107
         }
3109
-      
3108
+
3110 3109
 
3111 3110
         let last_weight_after = 0
3112 3111
         let weight_before = 0
@@ -3242,14 +3241,14 @@ mu
3242 3241
         }
3243 3242
 
3244 3243
         if(this.$store.getters.xt_user.template_info.org_id ==10635 || this.$store.getters.xt_user.template_info.org_id ==0 || this.$store.getters.xt_user.template_info.org_id ==10702 ||  this.$store.getters.xt_user.template_info.org_id == 10727 ||  this.$store.getters.xt_user.template_info.org_id == 10721){
3245
-         
3244
+
3246 3245
           if(this.dialysisPrescription.target_ultrafiltration == 0 || this.dialysisPrescription.target_ultrafiltration=="" || this.dialysisPrescription.target_ultrafiltration == "undefined" || this.dialysisPrescription.target_ultrafiltration == undefined){
3247
-          
3246
+
3248 3247
              this.dialysisPrescription.target_ultrafiltration = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(2)
3249
-          
3248
+
3250 3249
           }
3251 3250
         }
3252
-      
3251
+
3253 3252
       },
3254 3253
       hide() {
3255 3254
         this.isVisibility = false
@@ -3365,7 +3364,7 @@ mu
3365 3364
                 ParamsQuery['mode'] = '1'
3366 3365
                 ParamsQuery['patient_id'] = this.patient.id
3367 3366
                 console.log('第一', ParamsQuery)
3368
-             
3367
+
3369 3368
 
3370 3369
                 postPrescription(ParamsQuery).then(response => {
3371 3370
                   if (response.data.state == 0) {
@@ -4894,7 +4893,7 @@ mu
4894 4893
         })
4895 4894
     },
4896 4895
     getPatientBefor(){
4897
-     
4896
+
4898 4897
        var patient_id = 0
4899 4898
        var record_date =""
4900 4899
        if(this.$route.query.patient_id!=undefined){
@@ -4932,13 +4931,13 @@ mu
4932 4931
             // }
4933 4932
           }
4934 4933
           if(prescription!=undefined){
4935
-           
4934
+
4936 4935
             this.dialysisPrescription.target_ultrafiltration = prescription.target_ultrafiltration
4937 4936
             this.dialysisPrescription.prescription_water = prescription.prescription_water
4938 4937
           }
4939 4938
 
4940 4939
          }
4941
-      }) 
4940
+      })
4942 4941
     },
4943 4942
     unique(arr) {
4944 4943
       const res = new Map()
@@ -5562,7 +5561,7 @@ mu
5562 5561
 
5563 5562
         }
5564 5563
 
5565
-      
5564
+
5566 5565
 
5567 5566
       },
5568 5567
       stockType: function() {
@@ -5630,7 +5629,8 @@ mu
5630 5629
 
5631 5630
       this.educationList = getDataConfig('dialysis_remark', 'dialysis_remark')
5632 5631
 
5633
-
5632
+      this.org_id = this.$store.getters.xt_user.org.id
5633
+      console.log('this.org_id',this.org_id);
5634 5634
 
5635 5635
     }
5636 5636
   }

+ 17 - 8
src/xt_pages/outpatientCharges/listPrint.vue Целия файл

@@ -41,6 +41,7 @@
41 41
   import PrintTwo10265 from "./listTemplate/printTwo10265";
42 42
   import ListPrintThree from "./listTemplate/listPrintThree";
43 43
   import listPrintforu from "./listTemplate/listPrintforu"
44
+import { watch } from 'vue';
44 45
   export default {
45 46
     name: 'listPrint',
46 47
     components: {
@@ -53,7 +54,8 @@
53 54
       printTwo,
54 55
     },
55 56
     props: {
56
-      paramsObj: Object
57
+      paramsObj: Object,
58
+      // paramsObj3:Object
57 59
     },
58 60
     data() {
59 61
       return {
@@ -67,11 +69,17 @@
67 69
         charge_admin:{},
68 70
         org_id:'',
69 71
 
70
-        hospital_record:{}
72
+        hospital_record:{},
73
+        paramsobjid:0,
71 74
       }
72 75
     },
73 76
     created() {
74
-      this.getInfo(this.paramsObj.id)
77
+      this.paramsobjid = this.paramsObj.id
78
+      console.log('1111111222222',this.paramsObj.id);
79
+      
80
+      // this.getInfo(this.paramsObj.id)
81
+      this.getInfo(this.paramsobjid)
82
+      console.log('333333333',this.paramsObj.id);
75 83
       this.org_id = this.$store.getters.xt_user.org_id
76 84
       if(this.org_id == 10106){
77 85
         if(this.paramsObj.balance_accounts_type == 2){
@@ -80,13 +88,14 @@
80 88
 
81 89
         }else{
82 90
           this.getInfo10106(this.paramsObj.id)
83
-
84
-
85
-
86 91
         }
87 92
       }
88 93
       // this.getinfos(this.paramsObj.id)
89 94
     },
95
+    beforeUpdate(){
96
+      console.log('444444',this.paramsObj.id);
97
+      
98
+    },
90 99
 
91 100
     methods: {
92 101
       getTimes(time) {
@@ -828,8 +837,8 @@
828 837
       //     }
829 838
       //   })
830 839
       // }
831
-    }
832
-
840
+    },
841
+    
833 842
   }
834 843
 </script>
835 844
 

+ 14 - 14
src/xt_pages/outpatientCharges/summary.vue Целия файл

@@ -445,7 +445,7 @@
445 445
       title="打印"
446 446
       :visible.sync="listVisible"
447 447
     >
448
-      <listPrint :paramsObj='paramsObj'></listPrint>
448
+      <listPrint ref="checklists" :paramsObj='paramsObj' :key="jgFileTimer"></listPrint>
449 449
     </el-dialog>
450 450
     
451 451
     <el-dialog
@@ -625,7 +625,6 @@ import BreadCrumb from '@/xt_pages/components/bread-crumb'
625 625
 import { getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund } from '@/api/his/his'
626 626
 import { ModifyFapiaoCode } from '@/api/his/his_tools'
627 627
 
628
-
629 628
 // import NewStatementPrint from './newStatementPrint'
630 629
 import { adminMainView} from "@/api/role/admin";
631 630
 import NewStatementPrint from './statementPrint.vue'
@@ -667,7 +666,7 @@ export default {
667 666
     listPrint,
668 667
     allListPrint,
669 668
     invoicePrint,
670
-    settlementPrint
669
+    settlementPrint,
671 670
   },
672 671
   data() {
673 672
     return {
@@ -729,9 +728,7 @@ export default {
729 728
       patienttypeArr:[{value:1,label:'血透患者'},{value:2,label:'慢病患者'},{value:3,label:'会员患者'},
730 729
                         {value:4,label:'腹透患者'},{value:5,label:'CKD患者'},{value:6,label:'其他患者'}
731 730
       ],
732
-      // paramsObj3:{
733
-      //   id:''
734
-      // }
731
+      jgFileTimer:''
735 732
     }
736 733
   },
737 734
 
@@ -4042,6 +4039,7 @@ export default {
4042 4039
     getTimes(time) {
4043 4040
       return uParseTime(time, '{y}-{m}-{d}')
4044 4041
     },
4042
+    
4045 4043
     toDetail(row) {
4046 4044
       this.$router.push(
4047 4045
         '/outpatientCharges/summaryDetail?patient_id=' +
@@ -4095,13 +4093,14 @@ export default {
4095 4093
       })
4096 4094
     },
4097 4095
     open(row) {
4098
-      console.log('row',row);
4099
-      this.paramsObj.id = row.id
4100
-      // if (index == 1) {
4101
-        this.listVisible = true
4102
-      // } else if (index == 2) {
4103
-      //   this.allListVisible = true
4104
-      // }
4096
+      this.paramsObj.id =''
4097
+      console.log('row',(row.id).toString());
4098
+      const id = (row.id).toString()
4099
+      this.paramsObj.id = id
4100
+      this.jgFileTimer = new Date().getTime()
4101
+      console.log('this.paramsObj.id',this.paramsObj.id);
4102
+      this.listVisible = true
4103
+
4105 4104
     }, unique(array) {
4106 4105
       // res用来存储结果
4107 4106
       var res = []
@@ -4190,7 +4189,8 @@ export default {
4190 4189
 
4191 4190
 
4192 4191
     }
4193
-  }
4192
+  },
4193
+  
4194 4194
 }
4195 4195
 </script>
4196 4196
 <style lang="scss">