Commit 05c37dd1 authored by 任鸿志's avatar 任鸿志

refactor(components): 优化读卡组件中的社保卡信息读取逻辑

- 在 Readcards 和 ReadcardsSFC 组件中,将社保卡号赋值给 physicalCard 字段
- 在 outpatientCharging 组件中,添加日志输出以调试社保卡相关信息
- 注释掉 Readcards 和 ReadcardsSFC 中的重复赋值语句
parent 5c47e26b
...@@ -282,7 +282,7 @@ export default { ...@@ -282,7 +282,7 @@ export default {
this.form.xm = data.RespData.xm this.form.xm = data.RespData.xm
this.form.sfzh = data.RespData.sfzh this.form.sfzh = data.RespData.sfzh
this.form.kh=data.RespData.CardNo this.form.kh=data.RespData.CardNo
this.form.physicalCard = data.RespData.kh // this.form.physicalCard = data.RespData.kh
} }
} }
} }
......
...@@ -281,6 +281,7 @@ export default { ...@@ -281,6 +281,7 @@ export default {
this.jiezhiLoading=true this.jiezhiLoading=true
this.PatientInfo = data.RespData this.PatientInfo = data.RespData
this.form.physicalCardType = 'SOCIAL_CARD' this.form.physicalCardType = 'SOCIAL_CARD'
console.log(data.RespData.CardNo,'this.PatientInfo')
if (data.RespData?.CardNo) { if (data.RespData?.CardNo) {
this.form.physicalCard = data.RespData.CardNo this.form.physicalCard = data.RespData.CardNo
// 社保卡多回传[识别码&姓名]字段---刘春 2023年4月23日15:58:00 // 社保卡多回传[识别码&姓名]字段---刘春 2023年4月23日15:58:00
...@@ -288,10 +289,11 @@ export default { ...@@ -288,10 +289,11 @@ export default {
this.form.xm = data.RespData.xm this.form.xm = data.RespData.xm
this.form.sfzh = data.RespData.sfzh this.form.sfzh = data.RespData.sfzh
this.form.kh=data.RespData.CardNo this.form.kh=data.RespData.CardNo
this.form.physicalCard = data.RespData.kh // this.form.physicalCard = data.RespData.kh
} }
} }
} }
console.log(this.form,'this.form.physicalCard')
this.$emit('getyibaoinfo', this.form) this.$emit('getyibaoinfo', this.form)
if (this.form.physicalCard) { if (this.form.physicalCard) {
clearInterval(this.interval) clearInterval(this.interval)
......
...@@ -1175,6 +1175,7 @@ export default { ...@@ -1175,6 +1175,7 @@ export default {
this.carddialogFormVisible = false this.carddialogFormVisible = false
this.cardNo = e.physicalCard this.cardNo = e.physicalCard
this.cardType = e.physicalCardType this.cardType = e.physicalCardType
console.log(e,e.physicalCard, 'e')
if (e.physicalCardType == 'SOCIAL_CARD') { if (e.physicalCardType == 'SOCIAL_CARD') {
this.selectCardYiboInfo(e) this.selectCardYiboInfo(e)
} else { } else {
...@@ -1425,6 +1426,7 @@ export default { ...@@ -1425,6 +1426,7 @@ export default {
this.yibaoshowNew = true this.yibaoshowNew = true
this.yujiesuanload = false this.yujiesuanload = false
}else{ }else{
console.log('this.preSettlement',this.preSettlement,this.YBData,this.MBList.MBList_x,this.MBList.MBList_y)
selectCardYiboPreselect( this.YBData,this.MBList.MBList_x,this.MBList.MBList_y) selectCardYiboPreselect( this.YBData,this.MBList.MBList_x,this.MBList.MBList_y)
} }
// this.yibaoshow = true // this.yibaoshow = true
......
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