|
@@ -757,40 +757,51 @@
|
757
|
757
|
that.$message.error(response.data.msg)
|
758
|
758
|
return false
|
759
|
759
|
} else {
|
760
|
|
- var patient = response.data.data.patient
|
761
|
|
-
|
762
|
|
- if (that.form.id_card_type == 1) {
|
763
|
|
- that.form.id = patient.id
|
764
|
|
- that.form.name = patient.name
|
765
|
|
- that.form.gender = patient.gender
|
766
|
|
- that.form.age = patient.age
|
767
|
|
- that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
|
768
|
|
- that.form.phone = patient.phone
|
769
|
|
- that.form.id_card = patient.id_card_no
|
770
|
|
- that.form.medical_insurance_card = response.data.data.number
|
771
|
|
- that.form.social_type = parseInt(response.data.data.insutype)
|
|
760
|
+ if (response.data.data.failed_code == -10) {
|
|
761
|
+ // that.$message.error(response.data.data.msg)
|
|
762
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
763
|
+ confirmButtonText: '确 定',
|
|
764
|
+ type: 'warning'
|
|
765
|
+ }).then(() => {
|
772
|
766
|
|
|
767
|
+ }).catch(() => {
|
|
768
|
+ })
|
773
|
769
|
|
774
|
|
- } else if (that.form.id_card_type == 2) {
|
775
|
|
- that.form.id = patient.id
|
776
|
|
- that.form.name = patient.name
|
777
|
|
- that.form.gender = patient.gender
|
778
|
|
- that.form.age = patient.age
|
779
|
|
- that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
|
780
|
|
- that.form.phone = patient.phone
|
781
|
|
- that.form.id_card = patient.id_card_no
|
782
|
|
- } else {
|
783
|
|
- that.form.id = patient.id
|
784
|
|
- that.form.name = patient.name
|
785
|
|
- that.form.gender = patient.gender
|
786
|
|
- that.form.age = patient.age
|
787
|
|
- that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
|
788
|
|
- that.form.phone = patient.phone
|
789
|
|
- that.form.id_card = patient.id_card_no
|
790
|
|
- that.form.social_type = parseInt(response.data.data.insutype)
|
|
770
|
+ }else {
|
|
771
|
+ var patient = response.data.data.patient
|
|
772
|
+
|
|
773
|
+ if (that.form.id_card_type == 1) {
|
|
774
|
+ that.form.id = patient.id
|
|
775
|
+ that.form.name = patient.name
|
|
776
|
+ that.form.gender = patient.gender
|
|
777
|
+ that.form.age = patient.age
|
|
778
|
+ that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
|
|
779
|
+ that.form.phone = patient.phone
|
|
780
|
+ that.form.id_card = patient.id_card_no
|
|
781
|
+ that.form.medical_insurance_card = response.data.data.number
|
|
782
|
+ that.form.social_type = parseInt(response.data.data.insutype)
|
|
783
|
+
|
|
784
|
+ } else if (that.form.id_card_type == 2) {
|
|
785
|
+ that.form.id = patient.id
|
|
786
|
+ that.form.name = patient.name
|
|
787
|
+ that.form.gender = patient.gender
|
|
788
|
+ that.form.age = patient.age
|
|
789
|
+ that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
|
|
790
|
+ that.form.phone = patient.phone
|
|
791
|
+ that.form.id_card = patient.id_card_no
|
|
792
|
+ } else {
|
|
793
|
+ that.form.id = patient.id
|
|
794
|
+ that.form.name = patient.name
|
|
795
|
+ that.form.gender = patient.gender
|
|
796
|
+ that.form.age = patient.age
|
|
797
|
+ that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
|
|
798
|
+ that.form.phone = patient.phone
|
|
799
|
+ that.form.id_card = patient.id_card_no
|
|
800
|
+ that.form.social_type = parseInt(response.data.data.insutype)
|
791
|
801
|
|
|
802
|
+ }
|
|
803
|
+ that.$message({ message: '读卡成功', type: 'success' })
|
792
|
804
|
}
|
793
|
|
- that.$message({ message: '读卡成功', type: 'success' })
|
794
|
805
|
}
|
795
|
806
|
})
|
796
|
807
|
.catch(function(error) {
|