Commit 92e5bc98 authored by 任鸿志's avatar 任鸿志

feat(Readcards): 增加身份证和患者ID的识别功能

- 在 Readcards 组件中添加了对 21 位身份证号码的处理逻辑
- 在 ReadcardsSFC 组件中增加了对 11 位患者 ID 和 21 位身份证号码的处理逻辑
- 修改了 outpatientYfang 组件中的 channel 参数,从 '3' 修改为 '5'
parent a9f76729
...@@ -117,6 +117,7 @@ export default { ...@@ -117,6 +117,7 @@ export default {
if(this.form.physicalCard.toString().length === 21){ if(this.form.physicalCard.toString().length === 21){
this.form.physicalCard= this.form.physicalCard.substring(3) this.form.physicalCard= this.form.physicalCard.substring(3)
this.form.physicalCardType = 'ID_CARD' this.form.physicalCardType = 'ID_CARD'
console.log(this.form.physicalCard,'身份证')
this.$emit('getyibaoinfo', this.form) this.$emit('getyibaoinfo', this.form)
} }
......
...@@ -108,7 +108,19 @@ export default { ...@@ -108,7 +108,19 @@ export default {
}, },
// 输入框回车事件 // 输入框回车事件
handleEnterModal() { handleEnterModal() {
if(this.form.physicalCard.toString().length === 11){
this.form.physicalCard= this.form.physicalCard.substring(3)
this.form.physicalCardType = 'PATIENT_ID'
this.$emit('getyibaoinfo', this.form)
}
if(this.form.physicalCard.toString().length === 21){
this.form.physicalCard= this.form.physicalCard.substring(3)
this.form.physicalCardType = 'ID_CARD'
console.log(this.form.physicalCard,'身份证')
this.$emit('getyibaoinfo', this.form)
}
if (this.form.physicalCard.toString().length === 28) { if (this.form.physicalCard.toString().length === 28) {
this.loadingapplyList=true this.loadingapplyList=true
// 电子医保码 // 电子医保码
......
...@@ -1615,7 +1615,7 @@ export default { ...@@ -1615,7 +1615,7 @@ export default {
this.gz_name = false this.gz_name = false
var obj = { var obj = {
date:true, date:true,
channel: '3', channel: '5',
patient_id: this.patientData.patient_id, patient_id: this.patientData.patient_id,
} }
pdxq(obj) pdxq(obj)
...@@ -1925,7 +1925,7 @@ export default { ...@@ -1925,7 +1925,7 @@ export default {
this.sureshow = true this.sureshow = true
let y = { let y = {
is_gz: this.gz_name, is_gz: this.gz_name,
channel: '3', channel: '5',
xj_amount: this.xj_amount, xj_amount: this.xj_amount,
source_pay_amount: this.source_pay_amount, source_pay_amount: this.source_pay_amount,
tradeNo: this.payData.tradeNo, tradeNo: this.payData.tradeNo,
...@@ -1962,7 +1962,7 @@ export default { ...@@ -1962,7 +1962,7 @@ export default {
//刷新列表 //刷新列表
var obj = { var obj = {
date:true, date:true,
channel: '3', channel: '5',
patient_id: this.patientData.patient_id, //this.cardNo, patient_id: this.patientData.patient_id, //this.cardNo,
} }
pdxq(obj) pdxq(obj)
...@@ -2558,7 +2558,7 @@ export default { ...@@ -2558,7 +2558,7 @@ export default {
return false return false
} }
let y = { let y = {
channel: '3', channel: '5',
xj_amount: this.xj_amount, xj_amount: this.xj_amount,
source_pay_amount: this.source_pay_amount, source_pay_amount: this.source_pay_amount,
tradeNo: this.payData.tradeNo, tradeNo: this.payData.tradeNo,
......
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