Commit 700b7047 authored by 任鸿志's avatar 任鸿志

患者信息查询、自费转医保异地预结算优化

parent 50f319d0
...@@ -345,7 +345,7 @@ ...@@ -345,7 +345,7 @@
:max="bxxxinfo.personal_balance" :max="bxxxinfo.personal_balance"
min="0" min="0"
type="number" type="number"
:disabled="form.insurance_type == 'LONGDISTANCE' || bxxxinfo.personal_pay_syd * 1 != 0"
></el-input> ></el-input>
</div> </div>
</el-form-item> </el-form-item>
...@@ -2079,7 +2079,6 @@ export default { ...@@ -2079,7 +2079,6 @@ export default {
cache_key: this.form.cache_key, cache_key: this.form.cache_key,
}).then(res2 => { }).then(res2 => {
this.familyType = res2.data.family_type this.familyType = res2.data.family_type
this.dialogVisible = true
this.bxxxinfo.family_balance = res2.data.gjzhye this.bxxxinfo.family_balance = res2.data.gjzhye
if (res2.data.family_type == '1') { if (res2.data.family_type == '1') {
this.bxxxinfo.gjzhzf = res2.data.gjzhxfje this.bxxxinfo.gjzhzf = res2.data.gjzhxfje
...@@ -2089,7 +2088,7 @@ export default { ...@@ -2089,7 +2088,7 @@ export default {
} }
this.bxxxinfo.family_balance = res2.data.gjzhye this.bxxxinfo.family_balance = res2.data.gjzhye
this.dialogVisible = true
this.bxxxinfo.his_deduct_amount = 0 this.bxxxinfo.his_deduct_amount = 0
this.bxxxinfo.grzhzf = 0 this.bxxxinfo.grzhzf = 0
...@@ -2097,10 +2096,22 @@ export default { ...@@ -2097,10 +2096,22 @@ 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) {
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
}
} }
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) {
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
}
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)
...@@ -2120,8 +2131,11 @@ export default { ...@@ -2120,8 +2131,11 @@ export default {
} }
} }
} }
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.dialogVisible = true
}) })
}) })
......
This diff is collapsed.
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