yq1 1 year ago
parent
commit
926b12290e
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/xt_pages/hospitalStation/components/deskPrescription.vue

+ 4 - 3
src/xt_pages/hospitalStation/components/deskPrescription.vue View File

@@ -1574,8 +1574,8 @@ export default {
1574 1574
       } else {
1575 1575
         let arr = []
1576 1576
         for (let i = 0; i < this.allProject.length; i++) {
1577
-          
1578
-            if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1) {
1577
+            if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1 ||
1578
+              this.allProject[i].first_letter.indexOf(this.search_project_keyword) != -1 ) {
1579 1579
                 arr = arr.concat(this.allProject[i])
1580 1580
             }
1581 1581
           
@@ -1607,7 +1607,8 @@ export default {
1607 1607
         for (let i = 0; i < this.drugs.length; i++) {
1608 1608
           if (this.drugs[i].drug_name.indexOf(this.search_keyword) != -1 || 
1609 1609
           this.drugs[i].wubi.indexOf(this.search_keyword) != -1 || 
1610
-          this.drugs[i].pinyin.indexOf(this.search_keyword) != -1) {
1610
+          this.drugs[i].pinyin.indexOf(this.search_keyword) != -1 ||
1611
+          this.drugs[i].first_letter.indexOf(this.search_keyword) != -1) {
1611 1612
             arr = arr.concat(this.drugs[i])
1612 1613
           }
1613 1614
         }