Browse Source

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

陈少旭 1 week ago
parent
commit
f810aead22

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

3
         <el-dialog
3
         <el-dialog
4
                 title="透析处方"
4
                 title="透析处方"
5
                 :visible.sync="isVisibility"
5
                 :visible.sync="isVisibility"
6
-                width="72%"
6
+                width="80%"
7
                 :modal = 'false'
7
                 :modal = 'false'
8
                 :modal-append-to-body="false"
8
                 :modal-append-to-body="false"
9
                 :close-on-click-modal="false"
9
                 :close-on-click-modal="false"
10
                 class="newDialog"
10
                 class="newDialog"
11
         >
11
         >
12
             <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo(patient.id)">{{ patient.name }}</el-button>
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
             <!-- <span style="position: absolute;left: 48%;top: 3%"  :modal = 'false'>
52
             <!-- <span style="position: absolute;left: 48%;top: 3%"  :modal = 'false'>
28
               衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:""}}kg
53
               衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:""}}kg
29
             </span> -->
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
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
55
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
58
             <el-form
56
             <el-form
59
                     ref="dialysisPrescription"
57
                     ref="dialysisPrescription"
953
                     </el-col>
951
                     </el-col>
954
 
952
 
955
                     <el-col :span="8">
953
                     <el-col :span="8">
956
-                       
954
+
957
                     </el-col>
955
                     </el-col>
958
 
956
 
959
                     <el-col :span="8" v-if="isShows('置换液总量')" v-show="totalShow">
957
                     <el-col :span="8" v-if="isShows('置换液总量')" v-show="totalShow">
1932
         tableData:[],
1930
         tableData:[],
1933
         afterList:[],
1931
         afterList:[],
1934
         monitorList:[],
1932
         monitorList:[],
1933
+        org_id:'',
1935
       }
1934
       }
1936
 
1935
 
1937
     },
1936
     },
2637
       },
2636
       },
2638
       show(pre, schedual, last, his_is_open,is_advice_open,admins) {
2637
       show(pre, schedual, last, his_is_open,is_advice_open,admins) {
2639
         console.log("除非=======================")
2638
         console.log("除非=======================")
2640
-      
2639
+
2641
         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){
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
           if(this.predialysis!=undefined){
2641
           if(this.predialysis!=undefined){
2643
             if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
2642
             if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
3106
         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){
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
           this.getPatientBefor()
3106
           this.getPatientBefor()
3108
         }
3107
         }
3109
-      
3108
+
3110
 
3109
 
3111
         let last_weight_after = 0
3110
         let last_weight_after = 0
3112
         let weight_before = 0
3111
         let weight_before = 0
3242
         }
3241
         }
3243
 
3242
 
3244
         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){
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
           if(this.dialysisPrescription.target_ultrafiltration == 0 || this.dialysisPrescription.target_ultrafiltration=="" || this.dialysisPrescription.target_ultrafiltration == "undefined" || this.dialysisPrescription.target_ultrafiltration == undefined){
3245
           if(this.dialysisPrescription.target_ultrafiltration == 0 || this.dialysisPrescription.target_ultrafiltration=="" || this.dialysisPrescription.target_ultrafiltration == "undefined" || this.dialysisPrescription.target_ultrafiltration == undefined){
3247
-          
3246
+
3248
              this.dialysisPrescription.target_ultrafiltration = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(2)
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
       hide() {
3253
       hide() {
3255
         this.isVisibility = false
3254
         this.isVisibility = false
3365
                 ParamsQuery['mode'] = '1'
3364
                 ParamsQuery['mode'] = '1'
3366
                 ParamsQuery['patient_id'] = this.patient.id
3365
                 ParamsQuery['patient_id'] = this.patient.id
3367
                 console.log('第一', ParamsQuery)
3366
                 console.log('第一', ParamsQuery)
3368
-             
3367
+
3369
 
3368
 
3370
                 postPrescription(ParamsQuery).then(response => {
3369
                 postPrescription(ParamsQuery).then(response => {
3371
                   if (response.data.state == 0) {
3370
                   if (response.data.state == 0) {
4894
         })
4893
         })
4895
     },
4894
     },
4896
     getPatientBefor(){
4895
     getPatientBefor(){
4897
-     
4896
+
4898
        var patient_id = 0
4897
        var patient_id = 0
4899
        var record_date =""
4898
        var record_date =""
4900
        if(this.$route.query.patient_id!=undefined){
4899
        if(this.$route.query.patient_id!=undefined){
4932
             // }
4931
             // }
4933
           }
4932
           }
4934
           if(prescription!=undefined){
4933
           if(prescription!=undefined){
4935
-           
4934
+
4936
             this.dialysisPrescription.target_ultrafiltration = prescription.target_ultrafiltration
4935
             this.dialysisPrescription.target_ultrafiltration = prescription.target_ultrafiltration
4937
             this.dialysisPrescription.prescription_water = prescription.prescription_water
4936
             this.dialysisPrescription.prescription_water = prescription.prescription_water
4938
           }
4937
           }
4939
 
4938
 
4940
          }
4939
          }
4941
-      }) 
4940
+      })
4942
     },
4941
     },
4943
     unique(arr) {
4942
     unique(arr) {
4944
       const res = new Map()
4943
       const res = new Map()
5562
 
5561
 
5563
         }
5562
         }
5564
 
5563
 
5565
-      
5564
+
5566
 
5565
 
5567
       },
5566
       },
5568
       stockType: function() {
5567
       stockType: function() {
5630
 
5629
 
5631
       this.educationList = getDataConfig('dialysis_remark', 'dialysis_remark')
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 View File

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

+ 14 - 14
src/xt_pages/outpatientCharges/summary.vue View File

445
       title="打印"
445
       title="打印"
446
       :visible.sync="listVisible"
446
       :visible.sync="listVisible"
447
     >
447
     >
448
-      <listPrint :paramsObj='paramsObj'></listPrint>
448
+      <listPrint ref="checklists" :paramsObj='paramsObj' :key="jgFileTimer"></listPrint>
449
     </el-dialog>
449
     </el-dialog>
450
     
450
     
451
     <el-dialog
451
     <el-dialog
625
 import { getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund } from '@/api/his/his'
625
 import { getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund } from '@/api/his/his'
626
 import { ModifyFapiaoCode } from '@/api/his/his_tools'
626
 import { ModifyFapiaoCode } from '@/api/his/his_tools'
627
 
627
 
628
-
629
 // import NewStatementPrint from './newStatementPrint'
628
 // import NewStatementPrint from './newStatementPrint'
630
 import { adminMainView} from "@/api/role/admin";
629
 import { adminMainView} from "@/api/role/admin";
631
 import NewStatementPrint from './statementPrint.vue'
630
 import NewStatementPrint from './statementPrint.vue'
667
     listPrint,
666
     listPrint,
668
     allListPrint,
667
     allListPrint,
669
     invoicePrint,
668
     invoicePrint,
670
-    settlementPrint
669
+    settlementPrint,
671
   },
670
   },
672
   data() {
671
   data() {
673
     return {
672
     return {
729
       patienttypeArr:[{value:1,label:'血透患者'},{value:2,label:'慢病患者'},{value:3,label:'会员患者'},
728
       patienttypeArr:[{value:1,label:'血透患者'},{value:2,label:'慢病患者'},{value:3,label:'会员患者'},
730
                         {value:4,label:'腹透患者'},{value:5,label:'CKD患者'},{value:6,label:'其他患者'}
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
     getTimes(time) {
4039
     getTimes(time) {
4043
       return uParseTime(time, '{y}-{m}-{d}')
4040
       return uParseTime(time, '{y}-{m}-{d}')
4044
     },
4041
     },
4042
+    
4045
     toDetail(row) {
4043
     toDetail(row) {
4046
       this.$router.push(
4044
       this.$router.push(
4047
         '/outpatientCharges/summaryDetail?patient_id=' +
4045
         '/outpatientCharges/summaryDetail?patient_id=' +
4095
       })
4093
       })
4096
     },
4094
     },
4097
     open(row) {
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
     }, unique(array) {
4104
     }, unique(array) {
4106
       // res用来存储结果
4105
       // res用来存储结果
4107
       var res = []
4106
       var res = []
4190
 
4189
 
4191
 
4190
 
4192
     }
4191
     }
4193
-  }
4192
+  },
4193
+  
4194
 }
4194
 }
4195
 </script>
4195
 </script>
4196
 <style lang="scss">
4196
 <style lang="scss">