Commit 3b6130bf authored by 任鸿志's avatar 任鸿志

refactor(outpatientCharging): 修复普通就诊结算时选择病人后自动选中对应医保类型

- 将过滤条件从 e 改为 this.patientInfo.yblx,以正确匹配病人医保类型
- 添加日志输出,便于调试
parent a42e0f69
...@@ -1168,16 +1168,17 @@ export default { ...@@ -1168,16 +1168,17 @@ export default {
//选中左边处方,展示右边方法 //选中左边处方,展示右边方法
seletei(e) { seletei(e) {
this.man_name = '' this.man_name = ''
let searchByFind = this.tableData.cost.filter(item => item.settle_type.name === e) let searchByFind = this.tableData.cost.filter(item => item.settle_type.name === this.patientInfo.yblx)
let arr = [] let arr = []
for (let index = 0; index < searchByFind.length; index++) { for (let index = 0; index < searchByFind.length; index++) {
if (searchByFind[index].settle_type.name == e) { if (searchByFind[index].settle_type.name ==this.patientInfo.yblx) {
arr.push(searchByFind[index]) arr.push(searchByFind[index])
} }
} }
console.log(this.patientInfo.yblx,'ooooooooooooooooooooo')
this.tableDataList = arr this.tableDataList = arr
this.typeList.forEach(element => { this.typeList.forEach(element => {
if (element.settle_type.name == e) { if (element.settle_type.name == this.patientInfo.yblx) {
this.typelistno = element.settle_type.value this.typelistno = element.settle_type.value
this.ztvalue = element.settle_type this.ztvalue = element.settle_type
} }
......
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