|
@@ -685,39 +685,50 @@
|
685
|
685
|
that.$message.error(response.data.msg)
|
686
|
686
|
return false
|
687
|
687
|
} else {
|
688
|
|
- var patient = response.data.data.patient
|
689
|
|
-
|
690
|
|
- if (that.form.id_card_type == 1) {
|
691
|
|
- that.form.id = patient.id
|
692
|
|
- that.form.name = patient.name
|
693
|
|
- that.form.gender = patient.gender
|
694
|
|
- that.form.age = patient.age
|
695
|
|
- that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
|
696
|
|
- that.form.phone = patient.phone
|
697
|
|
- that.form.id_card = patient.id_card_no
|
698
|
|
- that.form.medical_insurance_card = response.data.data.number
|
699
|
|
- that.form.social_type = parseInt(response.data.data.insutype)
|
700
|
|
-
|
701
|
|
-
|
702
|
|
- } else if (that.form.id_card_type == 2) {
|
703
|
|
- that.form.id = patient.id
|
704
|
|
- that.form.name = patient.name
|
705
|
|
- that.form.gender = patient.gender
|
706
|
|
- that.form.age = patient.age
|
707
|
|
- that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
|
708
|
|
- that.form.phone = patient.phone
|
709
|
|
- that.form.id_card = patient.id_card_no
|
|
688
|
+
|
|
689
|
+ if (response.data.data.failed_code == -10) {
|
|
690
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
691
|
+ confirmButtonText: '确 定',
|
|
692
|
+ type: 'warning'
|
|
693
|
+ }).then(() => {
|
|
694
|
+
|
|
695
|
+ }).catch(() => {
|
|
696
|
+ })
|
710
|
697
|
} else {
|
711
|
|
- that.form.id = patient.id
|
712
|
|
- that.form.name = patient.name
|
713
|
|
- that.form.gender = patient.gender
|
714
|
|
- that.form.age = patient.age
|
715
|
|
- that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
|
716
|
|
- that.form.phone = patient.phone
|
717
|
|
- that.form.id_card = patient.id_card_no
|
718
|
|
- that.form.social_type = parseInt(response.data.data.insutype)
|
|
698
|
+
|
|
699
|
+ var patient = response.data.data.patient
|
|
700
|
+
|
|
701
|
+ if (that.form.id_card_type == 1) {
|
|
702
|
+ that.form.id = patient.id
|
|
703
|
+ that.form.name = patient.name
|
|
704
|
+ that.form.gender = patient.gender
|
|
705
|
+ that.form.age = patient.age
|
|
706
|
+ that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
|
|
707
|
+ that.form.phone = patient.phone
|
|
708
|
+ that.form.id_card = patient.id_card_no
|
|
709
|
+ that.form.medical_insurance_card = response.data.data.number
|
|
710
|
+ that.form.social_type = parseInt(response.data.data.insutype)
|
|
711
|
+
|
|
712
|
+ } else if (that.form.id_card_type == 2) {
|
|
713
|
+ that.form.id = patient.id
|
|
714
|
+ that.form.name = patient.name
|
|
715
|
+ that.form.gender = patient.gender
|
|
716
|
+ that.form.age = patient.age
|
|
717
|
+ that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
|
|
718
|
+ that.form.phone = patient.phone
|
|
719
|
+ that.form.id_card = patient.id_card_no
|
|
720
|
+ } else {
|
|
721
|
+ that.form.id = patient.id
|
|
722
|
+ that.form.name = patient.name
|
|
723
|
+ that.form.gender = patient.gender
|
|
724
|
+ that.form.age = patient.age
|
|
725
|
+ that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
|
|
726
|
+ that.form.phone = patient.phone
|
|
727
|
+ that.form.id_card = patient.id_card_no
|
|
728
|
+ that.form.social_type = parseInt(response.data.data.insutype)
|
|
729
|
+ }
|
|
730
|
+ that.$message({ message: '读卡成功', type: 'success' })
|
719
|
731
|
}
|
720
|
|
- that.$message({ message: '读卡成功', type: 'success' })
|
721
|
732
|
}
|
722
|
733
|
})
|
723
|
734
|
.catch(function(error) {
|