瀏覽代碼

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 3 年之前
父節點
當前提交
69202e2c6f
共有 1 個文件被更改,包括 8 次插入8 次删除
  1. 8 8
      src/xt_pages/outpatientCharges/components/registerDialog.vue

+ 8 - 8
src/xt_pages/outpatientCharges/components/registerDialog.vue 查看文件

@@ -470,23 +470,23 @@
470 470
               var patient = response.data.data.patient
471 471
 
472 472
               if (that.form.id_card_type == 1) {
473
-                this.form.id = patient.id
473
+                that.form.id = patient.id
474 474
                 that.form.name = patient.name
475
-                that.form.sex = patient.gender
475
+                that.form.gender = patient.gender
476 476
                 that.form.age = patient.age
477 477
                 that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
478 478
                 that.form.phone = patient.phone
479
-                that.form.idCard = patient.id_card_no
480
-                that.form.medicalInsuranceCard = response.data.data.number
479
+                that.form.id_card = patient.id_card_no
480
+                that.form.medical_insurance_card = response.data.data.number
481 481
 
482 482
               } else if (that.form.id_card_type == 2) {
483
-                this.form.id = patient.id
483
+                that.form.id = patient.id
484 484
                 that.form.name = patient.name
485
-                that.form.sex = patient.gender
485
+                that.form.gender = patient.gender
486 486
                 that.form.age = patient.age
487 487
                 that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
488 488
                 that.form.phone = patient.phone
489
-                that.form.idCard = patient.id_card_no
489
+                that.form.id_card = patient.id_card_no
490 490
               }
491 491
               that.$message({ message: '读卡成功', type: 'success' })
492 492
             }
@@ -494,7 +494,6 @@
494 494
           .catch(function(error) {
495 495
 
496 496
           })
497
-
498 497
       },
499 498
       getDictionaryDataConfig(module, filed_name) {
500 499
         return getDictionaryDataConfig(module, filed_name)
@@ -526,6 +525,7 @@
526 525
         this.form.id_card_type = 2
527 526
         this.form.certificates = 1
528 527
 
528
+
529 529
         if (departments.length > 0) {
530 530
           this.form.department = departments[0].id
531 531
         }