Commit 0496b17e authored by 任鸿志's avatar 任鸿志

refactor(settle): 优化医保结算逻辑

- 扩展医保结算条件,支持 man_name 为 4 的情况
- 调整 is_mt 参数的赋值逻辑,优先处理 man_name 为 4 的情况
- 修复了 man_name 为 4 时未正确设置 is_mt 参数的问题
parent b0133953
......@@ -1827,7 +1827,7 @@ export default {
this.carddialogFormVisible = true
},
ybjs() {
if ((this.checktipes() && this.man_name != '1') || this.man_name == '2' || this.man_name == '3') {
if ((this.checktipes() && this.man_name != '1') || this.man_name == '2' || this.man_name == '3' || this.man_name == '4') {
if (this.channel == '5') {
this.$message({
message: '药房药库禁止医保结算,请转为自费结算!',
......@@ -2106,7 +2106,7 @@ export default {
cash_pay: this.bxxxinfo.his_deduct_amount,
pre_key: this.bxxxinfo.pre_key,
cache_key: this.form.cache_key,
is_mt: this.man_name == '3' ? false : this.man_name == '2' ? true : this.selectTableArr[0] ? this.selectTableArr[0].settle_type.is_mt : '',
is_mt: this.man_name == '4' ? true : this.man_name == '3' ? false : this.man_name == '2' ? true : this.selectTableArr[0] ? this.selectTableArr[0].settle_type.is_mt : '',
settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '',
}
......@@ -2502,7 +2502,7 @@ export default {
patient_id: this.patientData.patient_id,
cache_key: data.cache_key,
prescription_nos: this.cost_id,
is_mt: this.man_name == '3' ? false : this.man_name == '2' ? true : this.selectTableArr[0] ? this.selectTableArr[0].settle_type.is_mt : '',
is_mt: this.man_name == '4' ? true : this.man_name == '3' ? false : this.man_name == '2' ? true : this.selectTableArr[0] ? this.selectTableArr[0].settle_type.is_mt : '',
family_pay: false,
settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '',
})
......
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