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

fix(outpatientCharging): 修复共济账户支付相关问题

- 修改共济账户支付输入框的绑定值
- 添加对共济账户支付金额的实时监控和默认值设置
- 优化共济账户支付金额的计算逻辑
- 移除不必要的获取共济余额方法
parent 526d2da6
......@@ -416,7 +416,7 @@
<el-form-item style="visibility: hidden">
<div class="form_item">
<el-tag class="label" color="#E7EEFF" style="color: #1a5bfd; font-weight: 600">共济账户支付</el-tag>
<el-input v-model="bxxxinfo.family_ba222lance" type="number" @input="gjzhifu()"></el-input>
<el-input v-model="bxxxinfo.gjzhzf" type="number" @input="gjzhifu()"></el-input>
</div>
</el-form-item>
</div>
......@@ -929,15 +929,15 @@ export default {
}, 1000)
},
watch: {
// gjzhzfje: {
// handler: function (nv, ov) {
// if (nv) {
// this.getFamilyBalance()
// }
// },
// immediate: true,
// deep: true,
// },
bxxxinfo: {
handler: function (nv, ov) {
if (this.bxxxinfo.gjzhzf == '' || this.bxxxinfo.gjzhzf == null || this.bxxxinfo.gjzhzf == undefined || this.bxxxinfo.gjzhzf == 'undefined' || this.bxxxinfo.gjzhzf == 'null') {
this.bxxxinfo.gjzhzf = 0
}
},
immediate: true,
deep: true,
},
},
methods: {
invoicepostSuccess() {
......@@ -1987,7 +1987,7 @@ export default {
}).then(async res2 => {
this.familyType = res2.data.family_type
if (res2.data.family_type == '1') {
this.bxxxinfo.gjzhzf = res2.data.gjzhxfje
this.bxxxinfo.gjzhzf = res2.data.gjzhxfje * 1
this.bxxxinfo.grzhzf = this.round(res2.data.grzhzf - res2.data.gjzhxfje, 2)
}
// else if(res2.data.family_type == '2'){
......@@ -2025,7 +2025,7 @@ export default {
if (res2.data.gjzhye > this.round(djf - this.bxxxinfo.grzhzf, 2)) {
this.bxxxinfo.gjzhzf = this.round(djf - this.bxxxinfo.grzhzf, 2)
} else {
this.bxxxinfo.gjzhzf = res2.data.gjzhye
this.bxxxinfo.gjzhzf = res2.data.gjzhye * 1
if (this.bxxxinfo.cash_balance <= this.round(this.round(djf - this.bxxxinfo.grzhzf, 2) - res2.data.gjzhye, 2)) {
this.bxxxinfo.his_deduct_amount = this.bxxxinfo.cash_balance
} else {
......@@ -2330,24 +2330,7 @@ if (this.bxxxinfo.gjzhzf == '' || this.bxxxinfo.gjzhzf == null || this.bxxxinfo.
this.jeizhishow = false
})
},
// 获取共济余额
getFamilyBalance() {
this.contenttime = 0
this.loadingapplyList = true
familyBalance({
pre_key: this.bxxxinfo.pre_key,
cache_key: this.form.cache_key,
})
.then(res => {
this.bxxxinfo.gjzhzf = res.data
})
.catch(err => {
this.gjzhzfje = false
})
.finally(() => {
this.loadingapplyList = false
})
},
},
}
</script>
......
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