Browse Source

bug修复

csx 4 years ago
parent
commit
9f45c46fca
2 changed files with 26 additions and 11 deletions
  1. 10 11
      src/xt_pages/user/components/PatientForm.vue
  2. 16 0
      src/xt_pages/user/inspection.vue

+ 10 - 11
src/xt_pages/user/components/PatientForm.vue View File

615
     contact_name:'',
615
     contact_name:'',
616
 
616
 
617
 
617
 
618
-
619
     formItem:[
618
     formItem:[
620
       { id: 0,
619
       { id: 0,
621
         item: "",
620
         item: "",
622
         item_id: 104,
621
         item_id: 104,
623
-        item_name: "甲型肝抗体测定(Anti-HAV:各种免疫方法)",
622
+        item_name: "丙型肝炎病毒核心抗体(AntiHCV)",
624
         project_id: 14,
623
         project_id: 14,
625
-        project_name: "甲肝乙肝丙肝梅毒HIV",
624
+        project_name: "传染病检查",
626
         range_type: 2,
625
         range_type: 2,
627
         select_options: ["阴性", "阳性", "弱阳性"],
626
         select_options: ["阴性", "阳性", "弱阳性"],
628
         unit: "",
627
         unit: "",
631
       { id: 0,
630
       { id: 0,
632
         item: "",
631
         item: "",
633
         item_id: 105,
632
         item_id: 105,
634
-        item_name: "乙型肝炎表面抗原测定(HBsAg:酶标法)",
633
+        item_name: "乙型肝炎病毒表面抗原(HBsAg)",
635
         project_id: 14,
634
         project_id: 14,
636
-        project_name: "甲肝乙肝丙肝梅毒HIV",
635
+        project_name: "传染病检查",
637
         range_type: 2,
636
         range_type: 2,
638
         select_options: ["阴性", "阳性", "弱阳性"],
637
         select_options: ["阴性", "阳性", "弱阳性"],
639
         unit: "",
638
         unit: "",
644
         item_id: 106,
643
         item_id: 106,
645
         item_name: "乙型肝炎表面抗体测定(Anti-HBs:酶标法)",
644
         item_name: "乙型肝炎表面抗体测定(Anti-HBs:酶标法)",
646
         project_id: 14,
645
         project_id: 14,
647
-        project_name: "甲肝乙肝丙肝梅毒HIV",
646
+        project_name: "传染病检查",
648
         range_type: 2,
647
         range_type: 2,
649
         select_options: ["阴性", "阳性", "弱阳性"],
648
         select_options: ["阴性", "阳性", "弱阳性"],
650
         unit: "",
649
         unit: "",
655
         item_id: 107,
654
         item_id: 107,
656
         item_name: "乙型肝炎e抗原测定(HBeAg:酶标法)",
655
         item_name: "乙型肝炎e抗原测定(HBeAg:酶标法)",
657
         project_id: 14,
656
         project_id: 14,
658
-        project_name: "甲肝乙肝丙肝梅毒HIV",
657
+        project_name: "传染病检查",
659
         range_type: 2,
658
         range_type: 2,
660
         select_options: ["阴性", "阳性", "弱阳性"],
659
         select_options: ["阴性", "阳性", "弱阳性"],
661
         unit: "",
660
         unit: "",
665
         item_id: 108,
664
         item_id: 108,
666
         item_name: "乙型肝炎e抗体测定(Anti-Hbe:酶标法)",
665
         item_name: "乙型肝炎e抗体测定(Anti-Hbe:酶标法)",
667
         project_id: 14,
666
         project_id: 14,
668
-        project_name: "甲肝乙肝丙肝梅毒HIV",
667
+        project_name: "传染病检查",
669
         range_type: 2,
668
         range_type: 2,
670
         select_options: ["阴性", "阳性", "弱阳性"],
669
         select_options: ["阴性", "阳性", "弱阳性"],
671
         unit: "",
670
         unit: "",
675
         item_id: 109,
674
         item_id: 109,
676
         item_name: "乙型肝炎核心抗体测定(Anti-HBc)",
675
         item_name: "乙型肝炎核心抗体测定(Anti-HBc)",
677
         project_id: 14,
676
         project_id: 14,
678
-        project_name: "甲肝乙肝丙肝梅毒HIV",
677
+        project_name: "传染病检查",
679
         range_type: 2,
678
         range_type: 2,
680
         select_options: ["阴性", "阳性", "弱阳性"],
679
         select_options: ["阴性", "阳性", "弱阳性"],
681
         unit: "",
680
         unit: "",
685
         item_id: 110,
684
         item_id: 110,
686
         item_name: "丙型肝炎抗体测定(Anti-HCV:定性)",
685
         item_name: "丙型肝炎抗体测定(Anti-HCV:定性)",
687
         project_id: 14,
686
         project_id: 14,
688
-        project_name: "甲肝乙肝丙肝梅毒HIV",
687
+        project_name: "传染病检查",
689
         range_type: 2,
688
         range_type: 2,
690
         select_options: ["阴性", "阳性", "弱阳性"],
689
         select_options: ["阴性", "阳性", "弱阳性"],
691
         unit: "",
690
         unit: "",
695
         item_id: 111,
694
         item_id: 111,
696
         item_name: "人类免疫缺陷病毒抗体测定(Anti-HIV)",
695
         item_name: "人类免疫缺陷病毒抗体测定(Anti-HIV)",
697
         project_id: 14,
696
         project_id: 14,
698
-        project_name: "甲肝乙肝丙肝梅毒HIV",
697
+        project_name: "传染病检查",
699
         range_type: 2,
698
         range_type: 2,
700
         select_options: ["阴性", "阳性", "弱阳性"],
699
         select_options: ["阴性", "阳性", "弱阳性"],
701
         unit: "",
700
         unit: "",

+ 16 - 0
src/xt_pages/user/inspection.vue View File

290
         });
290
         });
291
       }
291
       }
292
 
292
 
293
+      console.log( this.form.formItem)
294
+
293
       this.dialogFormVisible = true;
295
       this.dialogFormVisible = true;
294
 
296
 
295
     },
297
     },
339
           for( var index in this.form.formItem) {
341
           for( var index in this.form.formItem) {
340
             this.form.formItem[index].value = '' + this.form.formItem[index].value;
342
             this.form.formItem[index].value = '' + this.form.formItem[index].value;
341
           }
343
           }
344
+
345
+
346
+
347
+
342
           EditPatientInspection(this.patientID, this.form,this.form.remind_cycle).then(response=>{
348
           EditPatientInspection(this.patientID, this.form,this.form.remind_cycle).then(response=>{
343
             if (response.data.state==1) {
349
             if (response.data.state==1) {
344
               this.$notify({
350
               this.$notify({
473
               this.resetForm(formName);
479
               this.resetForm(formName);
474
               this.dialogFormVisible = false;
480
               this.dialogFormVisible = false;
475
 
481
 
482
+
483
+              this.queryParams.patient = this.patientID;
484
+              this.queryParams.project_id = this.project.project_id;
485
+              this.queryParams.page = 1;
486
+              this.total = 0;
487
+              this.fetchPatientInspections(this.queryParams);
488
+
489
+
476
             }else {
490
             }else {
477
               this.$message.error(response.data.msg);
491
               this.$message.error(response.data.msg);
478
               return false;
492
               return false;
577
               this.items.push(item);
591
               this.items.push(item);
578
             }
592
             }
579
           }
593
           }
594
+          console.log(this.items)
595
+
580
         }
596
         }
581
       }).catch(v=>{});
597
       }).catch(v=>{});
582
       setTimeout(() => {
598
       setTimeout(() => {