Commit bd44cbcf authored by 任鸿志's avatar 任鸿志

fix(outpatientCharging): 修复个人账户支付逻辑

- 当个人余额大于等于当次费用时,优先使用个人余额支付
- 当个人余额小于当次费用时,使用个人余额的剩余部分支付
- 移除了不必要的将个人支付设置为 0 的逻辑
parent 5f0bee8c
...@@ -2538,14 +2538,14 @@ export default { ...@@ -2538,14 +2538,14 @@ export default {
if (this.bxxxinfo.personal_balance >= djf) { if (this.bxxxinfo.personal_balance >= djf) {
this.bxxxinfo.grzhzf = djf this.bxxxinfo.grzhzf = djf
if (this.bxxxinfo.personal_pay_syd * 1 != 0) { if (this.bxxxinfo.personal_pay_syd * 1 != 0) {
this.bxxxinfo.grzhzf = 0 this.bxxxinfo.grzhzf = this.bxxxinfo.personal_pay_syd
} }
} }
if (this.bxxxinfo.personal_balance < djf) { if (this.bxxxinfo.personal_balance < djf) {
this.bxxxinfo.grzhzf = this.bxxxinfo.personal_balance this.bxxxinfo.grzhzf = this.bxxxinfo.personal_balance
if (this.bxxxinfo.personal_pay_syd * 1 != 0) { if (this.bxxxinfo.personal_pay_syd * 1 != 0) {
this.bxxxinfo.grzhzf = 0 this.bxxxinfo.grzhzf = this.bxxxinfo.personal_pay_syd
} }
// if (this.form.insurance_type == 'LONGDISTANCE') { // if (this.form.insurance_type == 'LONGDISTANCE') {
// this.bxxxinfo.grzhzf = 0 // this.bxxxinfo.grzhzf = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment