XMLWAN 3 år sedan
förälder
incheckning
db6fb61fc2

+ 2 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Visa fil

611
                     </el-col>
611
                     </el-col>
612
 
612
 
613
                     <el-col :span="8"
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
                             v-show="totalShow">
615
                             v-show="totalShow">
616
                         <el-form-item label="置换液总量(ml)">
616
                         <el-form-item label="置换液总量(ml)">
617
                             <el-input
617
                             <el-input
620
                         </el-form-item>
620
                         </el-form-item>
621
                     </el-col>
621
                     </el-col>
622
                     <el-col :span="8"
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
                             v-show="totalShow">
624
                             v-show="totalShow">
625
                         <el-form-item label="置换液总量(L)">
625
                         <el-form-item label="置换液总量(L)">
626
                             <el-input
626
                             <el-input

+ 2 - 1
src/xt_pages/outpatientTool/components/detailStatistics.vue Visa fil

168
       <div>总费用:{{ getAllPice() }}</div>
168
       <div>总费用:{{ getAllPice() }}</div>
169
       <div>
169
       <div>
170
         个人支付: 
170
         个人支付: 
171
+       
171
         <span v-if="his_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>  
172
         <span v-if="his_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>  
172
         <span v-if="his_patient.balance_accounts_type != 2">{{ getActPay() }}</span>
173
         <span v-if="his_patient.balance_accounts_type != 2">{{ getActPay() }}</span>
173
       
174
       
446
       var act_pay = 0;
447
       var act_pay = 0;
447
       for (let i = 0; i < this.list.length; i++) {
448
       for (let i = 0; i < this.list.length; i++) {
448
         for (let j = 0; j < this.list[i].orders.length; j++) {
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
       return act_pay.toFixed(2);
453
       return act_pay.toFixed(2);

+ 58 - 4
src/xt_pages/outpatientTool/gatherPrint.vue Visa fil

10
         </div>
10
         </div>
11
         <div class="listInfo">
11
         <div class="listInfo">
12
             <div>科别:
12
             <div>科别:
13
-              <!-- {{getDepartment(his_patient.departments)}} -->
13
+              <span v-if="org_id!=10215"> {{getDepartment(his_patient.departments)}}</span> 
14
               {{getDepartment(his_record_patient.departments)}}
14
               {{getDepartment(his_record_patient.departments)}}
15
             </div>
15
             </div>
16
             <div>床号:<span v-if="schedule.length > 0">{{getBedName(schedule[0].bed_id)}}</span></div>
16
             <div>床号:<span v-if="schedule.length > 0">{{getBedName(schedule[0].bed_id)}}</span></div>
17
             <div>门诊号:
17
             <div>门诊号:
18
-               <!-- {{his_patient.number}} -->
18
+               <span v-if="org_id!=10215">{{his_patient.number}}</span> 
19
                {{his_record_patient.ipt_otp_no}}
19
                {{his_record_patient.ipt_otp_no}}
20
             </div>
20
             </div>
21
             <div>姓名:{{patient.name}}</div>
21
             <div>姓名:{{patient.name}}</div>
50
             <div>材料费:{{getMaterialCostTotal()}}</div>
50
             <div>材料费:{{getMaterialCostTotal()}}</div>
51
             <div>其他:{{getOtherCostTotal()}}</div>
51
             <div>其他:{{getOtherCostTotal()}}</div>
52
         </div>
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
         <table class="listTable" border="1">
58
         <table class="listTable" border="1">
54
             <tr>
59
             <tr>
55
                 <td style="text-align:center" >序号</td>
60
                 <td style="text-align:center" >序号</td>
129
           medicalInsuranceLevelList:[],
134
           medicalInsuranceLevelList:[],
130
           schedule:[],
135
           schedule:[],
131
           bedNumber:[],
136
           bedNumber:[],
132
-          tableList:[],
133
           order_info_list:[],
137
           order_info_list:[],
134
           balanceAccountsType:0,
138
           balanceAccountsType:0,
135
           medicalInsuranceLevelList:[],
139
           medicalInsuranceLevelList:[],
139
           start_time:"",
143
           start_time:"",
140
           end_time:"",
144
           end_time:"",
141
           his_record_patient:{},
145
           his_record_patient:{},
146
+          orderList:[],
147
+          org_id:0,
142
         }
148
         }
143
     },
149
     },
144
     methods:{
150
     methods:{
189
           this.drugTypeList =response.data.data.drugTypeList
195
           this.drugTypeList =response.data.data.drugTypeList
190
           this.costClassifyList = response.data.data.costClassifyList 
196
           this.costClassifyList = response.data.data.costClassifyList 
191
           var list = response.data.data.list
197
           var list = response.data.data.list
192
-          
198
+          this.orderList = response.data.data.orderList
193
 
199
 
194
           var new_arr = []
200
           var new_arr = []
195
 
201
 
1059
         }
1065
         }
1060
       }
1066
       }
1061
       return number
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
     created(){
1117
     created(){
1118
+      this.org_id = this.$store.getters.xt_user.org.id;
1119
+      console.log("org_id3223232332",org_id)
1066
       this.getGatherDetailList()   
1120
       this.getGatherDetailList()   
1067
     }
1121
     }
1068
 
1122