XMLWAN 2 years ago
parent
commit
db6fb61fc2

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

@@ -611,7 +611,7 @@
611 611
                     </el-col>
612 612
 
613 613
                     <el-col :span="8"
614
-                            v-if="isShows('置换液总量') && (this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id ==24 || this.$store.getters.xt_user.template_info.template_id ==53)"
614
+                            v-if="isShows('置换液总量') && ((this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id ==24 || this.$store.getters.xt_user.template_info.template_id ==53) && this.$store.getters.xt_user.template_info.org_id != 10345)"
615 615
                             v-show="totalShow">
616 616
                         <el-form-item label="置换液总量(ml)">
617 617
                             <el-input
@@ -620,7 +620,7 @@
620 620
                         </el-form-item>
621 621
                     </el-col>
622 622
                     <el-col :span="8"
623
-                            v-if="isShows('置换液总量') && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id !=24 && this.$store.getters.xt_user.template_info.template_id !=53"
623
+                            v-if="isShows('置换液总量') && (this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id !=24 && this.$store.getters.xt_user.template_info.template_id !=53) || this.$store.getters.xt_user.template_info.org_id  == 10345"
624 624
                             v-show="totalShow">
625 625
                         <el-form-item label="置换液总量(L)">
626 626
                             <el-input

+ 2 - 1
src/xt_pages/outpatientTool/components/detailStatistics.vue View File

@@ -168,6 +168,7 @@
168 168
       <div>总费用:{{ getAllPice() }}</div>
169 169
       <div>
170 170
         个人支付: 
171
+       
171 172
         <span v-if="his_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>  
172 173
         <span v-if="his_patient.balance_accounts_type != 2">{{ getActPay() }}</span>
173 174
       
@@ -446,7 +447,7 @@ export default {
446 447
       var act_pay = 0;
447 448
       for (let i = 0; i < this.list.length; i++) {
448 449
         for (let j = 0; j < this.list[i].orders.length; j++) {
449
-          act_pay += this.list[i].orders[j].acct_pay;
450
+          act_pay += this.list[i].orders[j].psn_cash_pay;
450 451
         }
451 452
       }
452 453
       return act_pay.toFixed(2);

+ 58 - 4
src/xt_pages/outpatientTool/gatherPrint.vue View File

@@ -10,12 +10,12 @@
10 10
         </div>
11 11
         <div class="listInfo">
12 12
             <div>科别:
13
-              <!-- {{getDepartment(his_patient.departments)}} -->
13
+              <span v-if="org_id!=10215"> {{getDepartment(his_patient.departments)}}</span> 
14 14
               {{getDepartment(his_record_patient.departments)}}
15 15
             </div>
16 16
             <div>床号:<span v-if="schedule.length > 0">{{getBedName(schedule[0].bed_id)}}</span></div>
17 17
             <div>门诊号:
18
-               <!-- {{his_patient.number}} -->
18
+               <span v-if="org_id!=10215">{{his_patient.number}}</span> 
19 19
                {{his_record_patient.ipt_otp_no}}
20 20
             </div>
21 21
             <div>姓名:{{patient.name}}</div>
@@ -50,6 +50,11 @@
50 50
             <div>材料费:{{getMaterialCostTotal()}}</div>
51 51
             <div>其他:{{getOtherCostTotal()}}</div>
52 52
         </div>
53
+        <div class="listInfo" style="margin-bottom: 20px;">
54
+            <div>记账支付:{{getFundPaySumamt()}}</div>
55
+            <div>个人账号:{{getAcctPay()}}</div>
56
+            <div>现金支付:{{getPsnCashPay()}}</div>
57
+        </div>
53 58
         <table class="listTable" border="1">
54 59
             <tr>
55 60
                 <td style="text-align:center" >序号</td>
@@ -129,7 +134,6 @@
129 134
           medicalInsuranceLevelList:[],
130 135
           schedule:[],
131 136
           bedNumber:[],
132
-          tableList:[],
133 137
           order_info_list:[],
134 138
           balanceAccountsType:0,
135 139
           medicalInsuranceLevelList:[],
@@ -139,6 +143,8 @@
139 143
           start_time:"",
140 144
           end_time:"",
141 145
           his_record_patient:{},
146
+          orderList:[],
147
+          org_id:0,
142 148
         }
143 149
     },
144 150
     methods:{
@@ -189,7 +195,7 @@
189 195
           this.drugTypeList =response.data.data.drugTypeList
190 196
           this.costClassifyList = response.data.data.costClassifyList 
191 197
           var list = response.data.data.list
192
-          
198
+          this.orderList = response.data.data.orderList
193 199
 
194 200
           var new_arr = []
195 201
 
@@ -1059,10 +1065,58 @@
1059 1065
         }
1060 1066
       }
1061 1067
       return number
1068
+    },
1069
+    getTotalCountPrice(){
1070
+      var total_price = 0
1071
+      for(let i=0;i<this.tableList.length;i++){
1072
+         if(this.tableList[i].is_total == 2){
1073
+           total_price += this.tableList[i].pric * this.tableList[i].count_number
1074
+         }
1075
+      }
1076
+      if(total_price > 0){
1077
+        return total_price.toFixed(2)
1078
+      }else{
1079
+        return ""
1080
+      }
1081
+    },
1082
+    getPsnCashPay(){
1083
+      var psn_cash_pay = 0
1084
+      for(let i=0;i<this.orderList.length;i++){
1085
+        psn_cash_pay += this.orderList[i].psn_cash_pay
1086
+      }
1087
+      if(psn_cash_pay > 0){
1088
+         return psn_cash_pay.toFixed(2)
1089
+      }else{
1090
+        return 0.00
1091
+      }
1092
+    },
1093
+    getAcctPay(){
1094
+      var acct_pay = 0
1095
+      for(let i=0;i<this.orderList.length;i++){
1096
+         acct_pay +=this.orderList[i].acct_pay
1097
+      }
1098
+      if(acct_pay > 0){
1099
+        return acct_pay.toFixed(2)
1100
+      }else{
1101
+        return 0.00
1102
+      }
1103
+    },
1104
+    getFundPaySumamt(){
1105
+      var fund_pay_sumamt = 0
1106
+      for(let i=0;i<this.orderList.length;i++){
1107
+        fund_pay_sumamt +=this.orderList[i].fund_pay_sumamt
1108
+      }
1109
+      if(fund_pay_sumamt >0){
1110
+        return fund_pay_sumamt.toFixed(2)
1111
+      }else{
1112
+        return 0.00
1113
+      }
1062 1114
     }
1063 1115
 
1064 1116
     },
1065 1117
     created(){
1118
+      this.org_id = this.$store.getters.xt_user.org.id;
1119
+      console.log("org_id3223232332",org_id)
1066 1120
       this.getGatherDetailList()   
1067 1121
     }
1068 1122