Browse Source

提交代码

陈少旭 1 year ago
parent
commit
2f5caf65e3

+ 0 - 4
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

501
       <save-template ref='saveTemplate' v-on:save_template="saveTemplate"></save-template>
501
       <save-template ref='saveTemplate' v-on:save_template="saveTemplate"></save-template>
502
       <next-or-last-prescription ref='next_or_last_prescription' v-on:save="setValue"
502
       <next-or-last-prescription ref='next_or_last_prescription' v-on:save="setValue"
503
                                  v-on:cancel="cancel"></next-or-last-prescription>
503
                                  v-on:cancel="cancel"></next-or-last-prescription>
504
-
505
-
506
       <!--<next-or-last-prescription ref='next_or_last_prescription' v-on:save="setValue" v-on:cancel="cancel"></next-or-last-prescription>-->
504
       <!--<next-or-last-prescription ref='next_or_last_prescription' v-on:save="setValue" v-on:cancel="cancel"></next-or-last-prescription>-->
507
       <call-prescription ref='call_prescription' v-on:call="call" v-on:call-cancel="callCancel"></call-prescription>
505
       <call-prescription ref='call_prescription' v-on:call="call" v-on:call-cancel="callCancel"></call-prescription>
508
-
509
-
510
   </div>
506
   </div>
511
 </template>
507
 </template>
512
 
508
 

+ 18 - 4
src/xt_pages/outpatientTool/detailPrint.vue View File

39
           </tr>
39
           </tr>
40
           <tr>
40
           <tr>
41
             <td>总费用:{{ getAllPice() }}</td>
41
             <td>总费用:{{ getAllPice() }}</td>
42
-            <td>个人支付:
43
-             {{getActPay()}}
42
+            <td>个人支付金额
43
+             {{getPsnCashPay()}}
44
             <!-- <span v-if="his_record_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>
44
             <!-- <span v-if="his_record_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>
45
             <span v-if="his_record_patient.balance_accounts_type != 2">{{ getActPay() }}</span> -->
45
             <span v-if="his_record_patient.balance_accounts_type != 2">{{ getActPay() }}</span> -->
46
             </td>
46
             </td>
47
+
48
+            <td>个人账户支付金额:
49
+              {{getActPay()}}
50
+              <!-- <span v-if="his_record_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>
51
+              <span v-if="his_record_patient.balance_accounts_type != 2">{{ getActPay() }}</span> -->
52
+            </td>
47
             <td>基金支付记账:{{ getFundPaySumamt() }}</td>
53
             <td>基金支付记账:{{ getFundPaySumamt() }}</td>
48
             <td>补充医疗支付记账:{{ getHifesPay() }}</td>
54
             <td>补充医疗支付记账:{{ getHifesPay() }}</td>
49
           </tr>
55
           </tr>
414
       }
420
       }
415
       return total_price;
421
       return total_price;
416
     },
422
     },
417
-    getActPay() {
423
+    getPsnCashPay() {
418
       var act_pay = 0;
424
       var act_pay = 0;
419
       for (let i = 0; i < this.list.length; i++) {
425
       for (let i = 0; i < this.list.length; i++) {
420
         for (let j = 0; j < this.list[i].orders.length; j++) {
426
         for (let j = 0; j < this.list[i].orders.length; j++) {
428
       }
434
       }
429
 
435
 
430
       return act_pay.toFixed(2);
436
       return act_pay.toFixed(2);
437
+    },getActPay() {
438
+      var act_pay = 0;
439
+      for (let i = 0; i < this.list.length; i++) {
440
+        for (let j = 0; j < this.list[i].orders.length; j++) {
441
+            act_pay = act_pay + this.list[i].orders[j].acct_pay
442
+          }
443
+        }
444
+      return act_pay.toFixed(2);
431
     },
445
     },
432
     getFundPaySumamt() {
446
     getFundPaySumamt() {
433
       var fund_pay_sumamt = 0;
447
       var fund_pay_sumamt = 0;
436
           fund_pay_sumamt += this.list[i].orders[j].fund_pay_sumamt;
450
           fund_pay_sumamt += this.list[i].orders[j].fund_pay_sumamt;
437
         }
451
         }
438
       }
452
       }
439
-      return fund_pay_sumamt;
453
+      return fund_pay_sumamt.toFixed(2);
440
     },
454
     },
441
     getHifesPay() {
455
     getHifesPay() {
442
       var hifes_pay = 0;
456
       var hifes_pay = 0;