XMLWAN před 4 roky
rodič
revize
fec1678edb

+ 9 - 0
src/api/drug/drug.js Zobrazit soubor

@@ -0,0 +1,9 @@
1
+import request from "@/utils/request";
2
+
3
+export function getCurrentPatient(params){
4
+   return request({
5
+      url:"/api/drug/getcurrentpatient",
6
+      methods:"get",
7
+      params:params  
8
+   })
9
+}

+ 11 - 0
src/xt_pages/stock/selfPreparedMedicine/index.vue Zobrazit soubor

@@ -123,6 +123,7 @@ import addMedicine from "./components/addMedicine"
123 123
 import medicineDetail from "./components/medicineDetail"
124 124
 import warehousing from "./components/warehousing"
125 125
 import warehouseOut from "./components/warehouseOut"
126
+import {getCurrentPatient} from "@/api/drug/drug"
126 127
 export default {
127 128
     components:{
128 129
         BreadCrumb,
@@ -186,7 +187,17 @@ export default {
186 187
         },
187 188
         toDetail(){
188 189
             this.$refs.medicineDetail.show();
190
+        },
191
+
192
+        getCurrentPatient(){
193
+          getCurrentPatient().then(response=>{
194
+
195
+          })
189 196
         }
197
+    },
198
+    created(){
199
+      //获取当前机构下的所有患者
200
+      this.getCurrentPatient()
190 201
     }
191 202
 }
192 203
 </script>