Browse Source

自备药

XMLWAN 4 years ago
parent
commit
f044989cbf

+ 11 - 2
src/api/drug/drug.js View File

@@ -268,10 +268,19 @@ export function DeleteDrugNameById(params){
268 268
 }
269 269
 
270 270
 export function getPatientDetail(id,params){
271
-   console.log("id------",id)
271
+
272 272
    return request({
273 273
       url:"/api/drug/getpatientdetail?id="+id,
274 274
       methods:"Get",
275 275
       params:params
276 276
    })
277
-}
277
+}
278
+
279
+// export function toSeachPatient(params){
280
+   
281
+//    return request({
282
+//       url:"/api/drug/toseachpatient",
283
+//       methods:"Get",
284
+//       params:params
285
+//    })
286
+// }

+ 5 - 2
src/xt_pages/stock/selfPreparedMedicine/index.vue View File

@@ -40,7 +40,7 @@
40 40
                     <div class="name">{{ item.name }}</div>
41 41
                   </template>
42 42
                 </el-autocomplete>
43
-
43
+                <el-button type="primary" @click="toSeachPatient">搜索</el-button>
44 44
             </div>
45 45
             <el-container>
46 46
                 <div style="width:160px;">
@@ -137,7 +137,7 @@ import warehousing from "./components/warehousing"
137 137
 import warehouseOut from "./components/warehouseOut"
138 138
 const moment = require('moment')
139 139
 import { PostSearch } from '@/api/patient'
140
-import { getCurrentPatient,saveRadio,getStockList,DeleteDrugNameById,getDrugSet,getPatientDetail } from "@/api/drug/drug"
140
+import { getCurrentPatient,saveRadio,getStockList,DeleteDrugNameById,getDrugSet,getPatientDetail} from "@/api/drug/drug"
141 141
 export default {
142 142
     components:{
143 143
         BreadCrumb,
@@ -380,6 +380,9 @@ export default {
380 380
                this.tablePatient = arr
381 381
              }
382 382
           })
383
+        },
384
+        toSeachPatient(){
385
+          this.getCurrentPatient()
383 386
         }
384 387
     },
385 388
     created(){

+ 1 - 1
src/xt_pages/stock/selfPreparedMedicine/query.vue View File

@@ -93,7 +93,7 @@
93 93
                     <template slot-scope="scope">{{ scope.row.Count }}</template>
94 94
                 </el-table-column>
95 95
                 <el-table-column align="center" prop="name" label="剩余" width="80">
96
-                    <template slot-scope="scope">{{ scope.row.Total?scope.row.Total:0 - scope.row.Count }}</template>
96
+                    <template slot-scope="scope">{{ (scope.row.Total?scope.row.Total:0) - scope.row.Count }}</template>
97 97
                 </el-table-column>
98 98
             </el-table>
99 99
         </div>