Commit 1df49ef0 authored by 任鸿志's avatar 任鸿志

fix(settlement): 修复异地医保结算问题

- 新增个人支付剩余金额的判断逻辑
- 针对异地医保类型,增加特殊处理规则
- 修复国家账户支付金额为空或无效值时的处理
parent 06d15683
...@@ -2499,15 +2499,27 @@ export default { ...@@ -2499,15 +2499,27 @@ export default {
let djf = this.round(this.round(this.round(this.bxxxinfo.patient_burden - this.bxxxinfo.gjzhzf, 2) - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.grzhzf, 2) let djf = this.round(this.round(this.round(this.bxxxinfo.patient_burden - this.bxxxinfo.gjzhzf, 2) - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.grzhzf, 2)
if (this.bxxxinfo.personal_balance >= djf) { if (this.bxxxinfo.personal_balance >= djf) {
this.bxxxinfo.grzhzf = djf this.bxxxinfo.grzhzf = djf
if (this.form.insurance_type == 'LONGDISTANCE') { if (this.bxxxinfo.personal_pay_syd * 1 != 0) {
this.bxxxinfo.grzhzf = this.bxxxinfo.personal_pay_syd
}
if (this.form.insurance_type == 'LONGDISTANCE' && this.bxxxinfo.personal_pay_syd * 1 == 0) {
this.bxxxinfo.grzhzf = 0 this.bxxxinfo.grzhzf = 0
} }
// if (this.form.insurance_type == 'LONGDISTANCE') {
// this.bxxxinfo.grzhzf = 0
// }
} }
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.form.insurance_type == 'LONGDISTANCE') { if (this.bxxxinfo.personal_pay_syd * 1 != 0) {
this.bxxxinfo.grzhzf = this.bxxxinfo.personal_pay_syd
}
if (this.form.insurance_type == 'LONGDISTANCE' && this.bxxxinfo.personal_pay_syd * 1 == 0) {
this.bxxxinfo.grzhzf = 0 this.bxxxinfo.grzhzf = 0
} }
// if (this.form.insurance_type == 'LONGDISTANCE') {
// this.bxxxinfo.grzhzf = 0
// }
if (res2.data.family_type != '1') { if (res2.data.family_type != '1') {
if (res2.data.gjzhye > this.round(djf - this.bxxxinfo.grzhzf, 2)) { if (res2.data.gjzhye > this.round(djf - this.bxxxinfo.grzhzf, 2)) {
this.bxxxinfo.gjzhzf = this.round(djf - this.bxxxinfo.grzhzf, 2) this.bxxxinfo.gjzhzf = this.round(djf - this.bxxxinfo.grzhzf, 2)
...@@ -2526,6 +2538,9 @@ export default { ...@@ -2526,6 +2538,9 @@ export default {
this.bxxxinfo.his_deduct_amount = this.round(djf - this.bxxxinfo.grzhzf, 2) this.bxxxinfo.his_deduct_amount = this.round(djf - this.bxxxinfo.grzhzf, 2)
} }
} }
}
if (this.bxxxinfo.gjzhzf == '' || this.bxxxinfo.gjzhzf == null || this.bxxxinfo.gjzhzf == undefined || this.bxxxinfo.gjzhzf == 'undefined' || this.bxxxinfo.gjzhzf == 'null') {
this.bxxxinfo.gjzhzf = 0
} }
this.form.djf = this.round(this.round(this.round(this.bxxxinfo.patient_burden - this.bxxxinfo.gjzhzf, 2) - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.grzhzf, 2) this.form.djf = this.round(this.round(this.round(this.bxxxinfo.patient_burden - this.bxxxinfo.gjzhzf, 2) - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.grzhzf, 2)
//this.round(this.round(this.round(this.round(this.bxxxinfo.patient_burden - this.bxxxinfo.gjzhzf, 2) - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.grzhzf, 2)- this.bxxxinfo.his_deduct_amount,2) //this.round(this.round(this.round(this.round(this.bxxxinfo.patient_burden - this.bxxxinfo.gjzhzf, 2) - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.grzhzf, 2)- this.bxxxinfo.his_deduct_amount,2)
......
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