XMLWAN 4 lat temu
rodzic
commit
f044989cbf

+ 11 - 2
src/api/drug/drug.js Wyświetl plik

268
 }
268
 }
269
 
269
 
270
 export function getPatientDetail(id,params){
270
 export function getPatientDetail(id,params){
271
-   console.log("id------",id)
271
+
272
    return request({
272
    return request({
273
       url:"/api/drug/getpatientdetail?id="+id,
273
       url:"/api/drug/getpatientdetail?id="+id,
274
       methods:"Get",
274
       methods:"Get",
275
       params:params
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 Wyświetl plik

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

+ 1 - 1
src/xt_pages/stock/selfPreparedMedicine/query.vue Wyświetl plik

93
                     <template slot-scope="scope">{{ scope.row.Count }}</template>
93
                     <template slot-scope="scope">{{ scope.row.Count }}</template>
94
                 </el-table-column>
94
                 </el-table-column>
95
                 <el-table-column align="center" prop="name" label="剩余" width="80">
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
                 </el-table-column>
97
                 </el-table-column>
98
             </el-table>
98
             </el-table>
99
         </div>
99
         </div>