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 {
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)
}
......
......@@ -108,7 +108,19 @@ export default {
},
// 输入框回车事件
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) {
this.loadingapplyList=true
// 电子医保码
......
......@@ -1615,7 +1615,7 @@ export default {
this.gz_name = false
var obj = {
date:true,
channel: '3',
channel: '5',
patient_id: this.patientData.patient_id,
}
pdxq(obj)
......@@ -1925,7 +1925,7 @@ export default {
this.sureshow = true
let y = {
is_gz: this.gz_name,
channel: '3',
channel: '5',
xj_amount: this.xj_amount,
source_pay_amount: this.source_pay_amount,
tradeNo: this.payData.tradeNo,
......@@ -1962,7 +1962,7 @@ export default {
//刷新列表
var obj = {
date:true,
channel: '3',
channel: '5',
patient_id: this.patientData.patient_id, //this.cardNo,
}
pdxq(obj)
......@@ -2558,7 +2558,7 @@ export default {
return false
}
let y = {
channel: '3',
channel: '5',
xj_amount: this.xj_amount,
source_pay_amount: this.source_pay_amount,
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