Browse Source

新分支

28169 8 months ago
parent
commit
573e45db76

+ 9 - 0
src/api/drug/drug.js View File

@@ -871,4 +871,13 @@ export function getSelfDrugBatchNumberList(params){
871 871
     method:"Get",
872 872
     params:params
873 873
   })
874
+}
875
+
876
+export function getAllSelfDrugWarehouse(params){
877
+  
878
+  return request({
879
+    url:"/api/drug/getallselfdrugwarehouse",
880
+    method:"get",
881
+    params:params,
882
+  })
874 883
 }

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

@@ -760,7 +760,7 @@
760 760
             const params = {
761 761
               stockIn: this.recordInfo.recordData,
762 762
             };
763
-            console.log("params=---------------",params)
763
+          
764 764
             postSelfDrugWarehouse(
765 765
               params,
766 766
               this.patient_id,

+ 448 - 0
src/xt_pages/stock/selfPreparedMedicine/newDrugQuery.vue View File

@@ -0,0 +1,448 @@
1
+<template>
2
+    <div class="main-contain">
3
+       <div class="app-container" style="padding-left:0px;margin: 0px;"
4
+          v-loading="loading"
5
+          element-loading-text="拼命加载中">
6
+          <el-input v-model="keyword" style="width:200px" placeholder="请输入药品名称" ></el-input>
7
+          <el-button  type="primary" icon="el-icon-search" @click="seach">搜索</el-button>
8
+             <el-table
9
+              :row-style="{ color: '#303133' }"
10
+              :header-cell-style="{
11
+                backgroundColor: 'rgb(245, 247, 250)',
12
+                color: '#606266'
13
+              }"
14
+              :data="tableList"
15
+              :class="signAndWeighBoxPatients"
16
+              border
17
+             :cell-class-name="cellStyle"
18
+            >
19
+            <el-table-column label="药品名称" align="center">
20
+                <template slot-scope="scope">
21
+                  {{ scope.row.drug.drug_name }}
22
+                </template>
23
+              </el-table-column>
24
+              <el-table-column label="规格&单位" align="center">
25
+                <template slot-scope="scope">
26
+                  {{ scope.row.drug.dose}}{{ scope.row.drug.dose_unit }} * {{ scope.row.drug.min_number }}{{ scope.row.drug.min_unit }} /{{ scope.row.drug.max_unit }}
27
+                </template>
28
+              </el-table-column>
29
+              <el-table-column label="生产厂家" align="center">
30
+                <template slot-scope="scope">
31
+                   {{ getManufacturName(scope.row.drug.manufacturer) }}
32
+                </template>
33
+              </el-table-column>
34
+      
35
+              <el-table-column label="入库数量" align="center">
36
+                <template slot-scope="scope">
37
+                  {{scope.row.sum_in_count}} {{scope.row.drug.min_unit }}
38
+                 </template>
39
+              </el-table-column>
40
+            
41
+              <el-table-column label="出库数量" align="center">
42
+                <template slot-scope="scope">
43
+                  {{scope.row.sum_act_out_count}} {{scope.row.drug.min_unit }}
44
+               </template>
45
+              </el-table-column>
46
+  
47
+              <el-table-column label="退库数量" align="center">
48
+                <template slot-scope="scope">
49
+                    {{scope.row.sum_cancel_count}} {{scope.row.drug.min_unit }}
50
+                </template>
51
+              </el-table-column>
52
+  
53
+               <el-table-column label="实际出库" align="center">
54
+                <template slot-scope="scope">
55
+                  <span>
56
+                    {{scope.row.sum_out_count}} {{scope.row.drug.min_unit }}
57
+                 </span>
58
+               </template>
59
+              </el-table-column>
60
+  
61
+              <el-table-column label="剩余库存" align="center">
62
+                <template slot-scope="scope">
63
+                  <span>
64
+                    {{ scope.row.flush_count }} {{scope.row.drug.min_unit }}
65
+                  </span>
66
+                </template>
67
+              </el-table-column>
68
+  
69
+          
70
+             
71
+              <el-table-column label="操作" align="center" width="200px">
72
+               
73
+                <template slot-scope="scope">
74
+                  <el-button
75
+                    size="small"
76
+                    type="primary"
77
+                    @click="toClick(scope.row)"
78
+                  >库存流水
79
+                  </el-button>
80
+                  <el-button
81
+                    size="small"
82
+                    type="primary"
83
+                    @click="toClickOne(scope.row)"
84
+                  >批次
85
+                  </el-button>
86
+  
87
+                
88
+                 </template>
89
+              </el-table-column>
90
+            </el-table>
91
+             <el-pagination
92
+              @size-change="handleSizeChange"
93
+              @current-change="handleCurrentChange"
94
+              :page-sizes="[10, 50, 100,200,300,400,500,1000]"
95
+              :page-size="10"
96
+              background
97
+              align="right"
98
+              style="margin-top:20px;"
99
+              layout="total, sizes, prev, pager, next, jumper"
100
+              :total="total"
101
+            >
102
+              </el-pagination>
103
+       </div>
104
+  
105
+  
106
+  
107
+   
108
+  
109
+  
110
+   
111
+  
112
+    </div>
113
+  </template>
114
+  <script>
115
+  import { getSelfDrugQuery,getGoodWarehouseOutInfoById,toSendGoodInfomation,getCheckGoodBatchList } from "@/api/drug/drug"
116
+  import {
117
+    getStockDrugCount
118
+  } from "@/api/stock";
119
+  import { uParseTime } from '@/utils/tools'
120
+  const moment = require('moment')
121
+  export default {
122
+  
123
+    data(){
124
+      return{
125
+       tableList:[],
126
+       goodList:[
127
+        {id:1,name:"全部耗材"},
128
+        {id:2,name:"库存预警"},
129
+        {id:3,name:"库存为零"},
130
+        {id:4,name:"库存不为零"},
131
+       ],
132
+       houseList:[],
133
+       storehouse_id:0,
134
+       good_type:1,
135
+       multipleSelection: [],
136
+       signAndWeighBoxPatients: "sign-and-weigh-box-patients",
137
+       manufacturerList:[],
138
+       page:1,
139
+       total:0,
140
+       limit:10,
141
+       pageone:1,
142
+       totalone:0,
143
+       keyword:"",
144
+       goodTypeList:[],
145
+       start_time:"",
146
+       end_time:"",
147
+       countList:[],
148
+       outCountList:[],
149
+       autoCountList:[],
150
+       cancelCountList:[],
151
+       org_id:this.$store.getters.xt_user.org_id,
152
+       dialogVisible:false,
153
+       start_first_time:moment().startOf('month').format("YYYY-MM-DD"),
154
+       end_first_time:moment().endOf('month').format("YYYY-MM-DD"),
155
+       tableData:[],
156
+       good_id:0,
157
+       patientList:[],
158
+       good_name:"",
159
+       specification_name:"",
160
+       loading:false,
161
+       warehouseInfoByList:[],
162
+       cancelStockInfoByList:[],
163
+       warehouseOutByList:[],
164
+       flushList:[],
165
+       type_name:0,
166
+       storehouseId:0,
167
+       dealerList:[],
168
+       checkdialogVisible:false,
169
+       checkData:[],
170
+       outData:[],
171
+       total:0,
172
+       manufacturerList:[],
173
+       dealerList:[],
174
+      }
175
+    
176
+    },
177
+    methods:{
178
+    
179
+      changeGoodName(){
180
+        this.getlist()
181
+      },
182
+      toClick(val){
183
+       
184
+         var manufacturer_name = ""
185
+         var specification_name = ""
186
+         for(let i=0;i<this.manufacturerList.length;i++){
187
+            if(val.drug.manufacturer == this.manufacturerList[i].id){
188
+              manufacturer_name = this.manufacturerList[i].manufacturer_name
189
+            }
190
+         }
191
+        specification_name = val.drug.specification_name + "/" + val.drug.packing_unit
192
+       
193
+        this.$router.push({path:"/stock/selfwarehouse/selfdrugflow?drug_id="+val.drug_id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.drug.packing_unit+"&overCount="+val.flush_count})
194
+      },
195
+      toClickOne(val){
196
+        var manufacturer_name = ""
197
+         var specification_name = ""
198
+         for(let i=0;i<this.manufacturerList.length;i++){
199
+            if(val.drug.manufacturer == this.manufacturerList[i].id){
200
+              manufacturer_name = this.manufacturerList[i].manufacturer_name
201
+            }
202
+         }
203
+        specification_name = val.drug.specification_name + "/" + val.drug.packing_unit
204
+
205
+        this.$router.push({path:"/stock/selfwarehouse/selfdrugbatchnumber?drug_id="+val.drug_id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.drug.packing_unit+"&overCount="+val.flush_count})
206
+      },
207
+    
208
+      open(){
209
+       
210
+        this.getlist()
211
+      },
212
+      getlist(){
213
+          var params = {
214
+             limit:this.limit,
215
+             page:this.page,
216
+             keyword :this.keyword,
217
+          }
218
+        getSelfDrugQuery(params).then(response=>{
219
+           if(response.data.state == 1){
220
+              var list = response.data.data.list
221
+              
222
+              this.tableList =list
223
+              var total =  response.data.data.total
224
+              this.total = total
225
+              this.manufacturerList = response.data.data.manufacturerList
226
+              this.dealerList =response.data.data.dealerList
227
+              this.total = response.data.data.total
228
+              this.loading = false
229
+             
230
+             
231
+           }
232
+        })
233
+      },
234
+      getManufacturName(id){
235
+        var manufacturer_name = ""
236
+        for(let i=0;i<this.manufacturerList.length;i++){
237
+          if(id == this.manufacturerList[i].id){
238
+             manufacturer_name = this.manufacturerList[i].manufacturer_name
239
+          }
240
+        }
241
+        return manufacturer_name
242
+      },
243
+      getDearName(id){
244
+        var dear_name = ""
245
+        for(let i=0;i<this.dealerList.length;i++){
246
+          if(id == this.dealerList[i].id){
247
+            dear_name = this.dealerList[i].dealer_name
248
+          }
249
+        }
250
+        return dear_name
251
+      },
252
+      handleSizeChange(val) {
253
+        this.limit = val;
254
+        this.getlist()
255
+      },
256
+      handleCurrentChange(val) {
257
+        this.page = val;
258
+        this.getlist()
259
+      },
260
+      handleSizeChangeOne(val) {
261
+        this.limitone = val;
262
+        this.toDialogClick(this.good_id,this.good_name,this.specification_name,this.storehouseId)
263
+      },
264
+      handleCurrentChangeOne(val) {
265
+        this.pageone = val;
266
+        this.toDialogClick(this.good_id,this.good_name,this.specification_name,this.storehouseId)
267
+      },
268
+     seach(){
269
+      this.getlist()
270
+     },
271
+     startFirstTimeChange(){
272
+      this.toDialogClick(this.good_id,this.good_name,this.specification_name,this.storehouseId)
273
+     },
274
+     endEndTimeChange(){
275
+      this.toDialogClick(this.good_id,this.good_name,this.specification_name,this.storehouseId)
276
+     },
277
+    getTime(val) {
278
+      if(val < 0){
279
+        return ""
280
+      }
281
+     if(val == ""){
282
+       return ""
283
+     }else {
284
+      return uParseTime(val, '{y}-{m}-{d}')
285
+     }
286
+     },
287
+     getTimeOne(val) {
288
+      if(val < 0){
289
+        return ""
290
+      }
291
+     if(val == ""){
292
+       return ""
293
+     }else {
294
+      return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
295
+     }
296
+     },
297
+    getName(id){
298
+      var name = ""
299
+      for(let i=0;i<this.patientList.length;i++){
300
+        if(id == this.patientList[i].id){
301
+          name = this.patientList[i].name
302
+        }
303
+      }
304
+      return name
305
+    },
306
+
307
+     // 合并单元格样式
308
+    cellStyle({ row, column, rowIndex, columnIndex }) {
309
+      let arr = [5,6, 7, 8, 9,10,11];
310
+      if (arr.indexOf(columnIndex) > -1) {
311
+        return "spanClass";
312
+      }
313
+     },
314
+     exportList(){
315
+        import('@/vendor/Export2Excel').then(excel => {
316
+        
317
+          if(this.org_id!=0 && this.org_id!=9956){
318
+            if(this.tableList!=null && this.tableList.length > 0){
319
+            for(let i=0;i<this.tableList.length;i++){
320
+              this.tableList[i].index = i+1
321
+              this.tableList[i].type_name =  this.getGoodTypeName(this.tableList[i].good_type_id)
322
+              this.tableList[i].spec = this.tableList[i].specification_name +"/"+ this.tableList[i].packing_unit
323
+              this.tableList[i].manufacturer_name = this.getManufacturName(this.tableList[i].manufacturer)
324
+              this.tableList[i].dealer_name = this.getDearName(this.tableList[i].dealer)
325
+              this.tableList[i].stock_in_count = this.GetExportStockInCount(this.tableList[i].xt_good_stock,this.tableList[i].id)
326
+              this.tableList[i].stock_out_count =this.getExportStockOutCount(this.tableList[i].xt_good_stock,this.tableList[i].id) 
327
+              this.tableList[i].stock_cancel_count = this.getExportCancelStockInfo(this.tableList[i].xt_good_stock,this.tableList[i].id)
328
+              this.tableList[i].act_out_count  = this.getExportActStockOutCount(this.tableList[i].xt_good_stock,this.tableList[i].id) 
329
+              this.tableList[i].over_count = this.getExportOverCount(this.tableList[i].xt_good_stock,this.tableList[i].id) 
330
+              this.tableList[i].sum_count =  this.getOverCount(this.tableList[i].xt_warehouse_info) 
331
+  
332
+            }
333
+           }
334
+           
335
+  
336
+           const tHeader = ['序号','耗材类型', '耗材名称', '规格&单位','生产厂商','经销商','批准文号','国家编码','入库数量','出库数量','退库数量','实际出库','剩余库存','总库存']
337
+           const filterVal = ['index','type_name', 'good_name', 'spec','manufacturer_name','dealer_name','number','social_security_directory_code','stock_in_count','act_out_count','stock_cancel_count','stock_out_count','over_count','sum_count']
338
+          
339
+           const data = this.formatJson(filterVal, this.tableList)
340
+           
341
+           excel.export_json_to_excel({
342
+             header: tHeader,
343
+             data,
344
+             filename: '库存查询'
345
+           })
346
+            this.downloadLoading = false
347
+          }
348
+  
349
+          if(this.org_id == 0 || this.org_id == 9956){
350
+           
351
+            if(this.tableList!=null && this.tableList.length > 0){
352
+            for(let i=0;i<this.tableList.length;i++){
353
+              this.tableList[i].index = i+1
354
+              this.tableList[i].type_name =  this.getGoodTypeName(this.tableList[i].good_type_id)
355
+              this.tableList[i].spec = this.tableList[i].specification_name +"/"+ this.tableList[i].packing_unit
356
+              this.tableList[i].manufacturer_name = this.getManufacturName(this.tableList[i].manufacturer)
357
+              this.tableList[i].dealer_name = this.getDearName(this.tableList[i].dealer)
358
+              this.tableList[i].stock_in_count = this.GetExportStockInCount(this.tableList[i].xt_good_stock,this.tableList[i].id)
359
+              this.tableList[i].stock_out_count =this.getExportStockOutCount(this.tableList[i].xt_good_stock,this.tableList[i].id) 
360
+              this.tableList[i].stock_cancel_count = this.getExportCancelStockInfo(this.tableList[i].xt_good_stock,this.tableList[i].id)
361
+              this.tableList[i].act_out_count  = this.getExportActStockOutCount(this.tableList[i].xt_good_stock,this.tableList[i].id) 
362
+              this.tableList[i].over_count = this.getExportOverCount(this.tableList[i].xt_good_stock,this.tableList[i].id) 
363
+              this.tableList[i].sum_count =  this.getOverCount(this.tableList[i].xt_warehouse_info) 
364
+  
365
+            }
366
+           }
367
+           
368
+  
369
+           const tHeader = ['序号','耗材编码','耗材类型', '耗材名称', '规格&单位','生产厂商','经销商','批准文号','国家编码','入库数量','出库数量','退库数量','实际出库','剩余库存','总库存']
370
+           const filterVal = ['index','good_number','type_name', 'good_name', 'spec','manufacturer_name','dealer_name','number','social_security_directory_code','stock_in_count','act_out_count','stock_cancel_count','stock_out_count','over_count','sum_count']
371
+          
372
+           const data = this.formatJson(filterVal, this.tableList)
373
+           
374
+           excel.export_json_to_excel({
375
+             header: tHeader,
376
+             data,
377
+             filename: '库存查询'
378
+           })
379
+            this.downloadLoading = false
380
+          }
381
+     
382
+         })
383
+        },
384
+        formatJson(filterVal, jsonData) {
385
+          return jsonData.map(v => filterVal.map(j => v[j]));
386
+        },
387
+        toPrint(){
388
+          this.$router.push("/good/new/query/print?start_time="+this.start_time+"&end_time="+this.end_time+"&keyword="+this.keyword+"&storehouse_id="+this.storehouse_id+"&page="+this.page+"&limit="+this.limit+"&good_type="+this.good_type)
389
+        },
390
+    },
391
+    created(){
392
+      this.getlist()
393
+    
394
+   
395
+    }
396
+  }
397
+  </script>
398
+  
399
+  <style>
400
+  .app-container{
401
+    /* padding-left: 0;
402
+    margin-left: 0; */
403
+  }
404
+  .sign-and-weigh-box .sign-and-weigh-box-patients .cell {
405
+    font-size: 12px;
406
+  }
407
+  
408
+  .sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
409
+    background: #6fb5fa;
410
+  }
411
+  
412
+  .count {
413
+    color: #bd2c00;
414
+  }
415
+  
416
+  .el-table td,
417
+  .el-table th.is-leaf,
418
+  .el-table--border,
419
+  .el-table--group {
420
+    border-color: #d0d3da;
421
+  }
422
+  
423
+  .el-table--border::after,
424
+  .el-table--group::after,
425
+  .el-table::before {
426
+    background-color: #d0d3da;
427
+  }
428
+  
429
+  /* 合并表格线样式 */
430
+  .spanClass .cell {
431
+    padding: 0 !important;
432
+  }
433
+  
434
+  .spanClass .cell tr {
435
+    display: inline-block;
436
+    width: 100%;
437
+  }
438
+  
439
+  .spanClass .cell tr td {
440
+    padding: 10px 0;
441
+    border-bottom: 1px solid #ebeef5;
442
+    display: block;
443
+    width: 100%;
444
+  }
445
+  .spanClass .cell tr:last-of-type td {
446
+    border-bottom: none;
447
+  }
448
+  </style>

+ 0 - 0
src/xt_pages/stock/selfPreparedMedicine/patientDrugQuery.vue View File


+ 301 - 0
src/xt_pages/stock/selfPreparedMedicine/selfDrugBatchNumber.vue View File

@@ -0,0 +1,301 @@
1
+<template>
2
+    <div class="main-contain">
3
+      <div class="position">
4
+        <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      </div>
6
+      <div class="app-container ">
7
+        <div class="cell clearfix">
8
+         药品名称:<span>{{getName(this.$route.query.drug_id)}}</span>&nbsp;
9
+         库存: {{this.$route.query.over_plus}}
10
+         规格:<span>{{drug.dose}}{{drug.dose_unit}}*{{drug.min_number}}{{drug.min_unit}}/{{drug.max_unit}}</span>&nbsp;
11
+         厂家:<span>{{this.$route.query.manufacturer}}</span>&nbsp;
12
+        </div>
13
+        <div class="cell clearfix">
14
+          <span>日期查询:</span>
15
+          <el-date-picker
16
+              size="small"
17
+              v-model="start_time"
18
+              prefix-icon="el-icon-date"
19
+              :editable="false"
20
+              style="width: 196px;"
21
+              type="date"
22
+              placeholder="选择日期时间"
23
+              align="right"
24
+              format="yyyy-MM-dd"
25
+              value-format="yyyy-MM-dd"
26
+              @change="startTimeChange"
27
+             ></el-date-picker>-
28
+              <el-date-picker
29
+                size="small"
30
+                v-model="end_time"
31
+                prefix-icon="el-icon-date"
32
+                :editable="false"
33
+                style="width: 196px;margin-right:10px;"
34
+                type="date"
35
+                placeholder="选择日期时间"
36
+                align="right"
37
+                format="yyyy-MM-dd"
38
+                value-format="yyyy-MM-dd"
39
+                @change="endTimeChange"
40
+            ></el-date-picker>
41
+  
42
+          <span>出入库方式:</span>
43
+          <el-select v-model="stock_type" style="width:160px;margin-right:10px;" placeholder="请选择" @change="changeDrug">
44
+              <el-option
45
+                v-for="(item,index) in stockType"
46
+                :key="index"
47
+                :label="item.name"
48
+                :value="item.id">
49
+              </el-option>
50
+          </el-select>
51
+          
52
+          <!-- <span>
53
+            <el-button type="primary" size="small" @click="toExprot">导出</el-button>
54
+  
55
+            <el-button type="primary" size="small" @click="toTongBu">同步</el-button>
56
+          </span> -->
57
+          
58
+        </div>
59
+        
60
+         <el-table
61
+          :data="tableList"
62
+          border
63
+          style="width: 100%">
64
+          <el-table-column prop="date" label="序号" width="180" align="center">
65
+             <template  slot-scope="scope">
66
+                {{scope.$index + 1}}
67
+             </template>
68
+          </el-table-column>
69
+          <el-table-column prop="drug_type" label="出入库方式" width="180" align="center">
70
+             <template slot-scope="scope">
71
+               <span v-if="scope.row.consumable_type == 1">手动入库</span>
72
+               <span v-if="scope.row.consumable_type == 2">手动出库</span>
73
+               <span v-if="scope.row.consumable_type == 3">自动出库</span>
74
+               <span v-if="scope.row.consumable_type == 4">手动退库</span>
75
+               <span v-if="scope.row.consumable_type == 7">自动退库</span>
76
+               <span v-if="scope.row.consumable_type == 5">报损数量</span>
77
+               <span v-if="scope.row.consumable_type == 10">盘盈</span>
78
+               <span v-if="scope.row.consumable_type == 11">盘亏</span>
79
+               <span v-if="scope.row.consumable_type == 12">调拨出库</span>
80
+               <span v-if="scope.row.consumable_type == 13">调拨入库</span>
81
+               <span v-if="scope.row.consumable_type == 15">结算出库</span>
82
+             </template>
83
+          </el-table-column>
84
+          <el-table-column prop="drug_name" label="入库单据编码" align="center">
85
+             <template slot-scope="scope">
86
+               <span v-if="scope.row.consumable_type == 1">{{scope.row.warehousing_order}}</span>
87
+                <span v-if="scope.row.consumable_type == 2 || scope.row.consumable_type == 3 || scope.row.consumable_type == 12 || scope.row.consumable_type == 15">{{scope.row.warehouse_out_order_number}}</span>
88
+                <span v-if="scope.row.consumable_type == 4 || scope.row.consumable_type == 7">{{scope.row.cancel_order_number}}</span>
89
+                <span v-if="scope.row.consumable_type == 5">{{scope.row.warehouse_out_order_number}}</span>
90
+                <span v-if="scope.row.consumable_type == 10 || scope.row.consumable_type == 11 || scope.row.consumable_type == 13">{{scope.row.warehousing_order}}</span>
91
+             </template>
92
+          </el-table-column>
93
+          <el-table-column prop="drug_name" label="入库日期" align="center">
94
+             <template slot-scope="scope">
95
+               {{getTime(scope.row.ctime,"{y}-{h}-{d}")}}
96
+             </template>
97
+          </el-table-column>
98
+          <el-table-column prop="drug_name" label="操作日期" align="center">
99
+             <template slot-scope="scope">
100
+               {{getTime(scope.row.operate_time,"{y}-{h}-{d}")}}
101
+             </template>
102
+          </el-table-column>
103
+        
104
+          <el-table-column prop="drug_name" label="入库数量&单位" align="center">
105
+             <template slot-scope="scope">
106
+                <span v-if="scope.row.consumable_type != 2 &&  scope.row.consumable_type != 3 && scope.row.consumable_type != 5 && scope.row.consumable_type != 7">{{scope.row.count}}{{scope.row.max_unit}}</span>
107
+                <span v-if="(scope.row.consumable_type == 2 || scope.row.consumable_type == 3 || scope.row.consumable_type == 5 || scope.row.consumable_type == 7) && parseInt(scope.row.count/scope.row.BaseDrugLib.min_number) >0">{{parseInt(scope.row.count/scope.row.BaseDrugLib.min_number)}}{{scope.row.BaseDrugLib.max_unit}}</span>
108
+                <span v-if="(scope.row.consumable_type == 2 || scope.row.consumable_type == 3 || scope.row.consumable_type == 5 || scope.row.consumable_type == 7) && scope.row.count%scope.row.BaseDrugLib.min_number >0">{{scope.row.count%scope.row.BaseDrugLib.min_number}}{{scope.row.BaseDrugLib.min_unit}}</span>
109
+             </template>
110
+          </el-table-column>
111
+  
112
+       
113
+        
114
+           <el-table-column prop="drug_name" label="有效期" align="center">
115
+             <template slot-scope="scope">
116
+                {{getTime(scope.row.expire_date,"{y}-{h}-{d}")}}
117
+              
118
+             </template>
119
+          </el-table-column>
120
+         
121
+   
122
+          <el-table-column prop="drug_name" label="剩余库存" align="center">
123
+             <template slot-scope="scope">
124
+           
125
+                 {{ scope.row.over_count }} {{ drug.min_unit }}
126
+             </template>
127
+          </el-table-column>
128
+          <el-table-column prop="remark" label="备注" align="center">
129
+             <template slot-scope="scope">
130
+               <span > {{scope.row.remark}}</span>
131
+             </template>
132
+          </el-table-column>
133
+         </el-table>
134
+         
135
+        <el-pagination
136
+          @size-change="handleSizeChange"
137
+          @current-change="handleCurrentChange"
138
+          :page-sizes="[10, 50, 100,500,1000]"
139
+          :page-size="10"
140
+          background
141
+          align="right"
142
+          style="margin-top:20px;"
143
+          layout="total, sizes, prev, pager, next, jumper"
144
+          :total="total"
145
+        >
146
+        </el-pagination>
147
+      </div>
148
+  
149
+      <setting-dialog
150
+        ref="dialog"
151
+      ></setting-dialog>
152
+  
153
+    </div>
154
+  </template>
155
+
156
+  <script>
157
+
158
+  import { uParseTime } from '@/utils/tools'
159
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
160
+  import { getSelfDrugBatchNumberList }  from '@/api/drug/drug'
161
+  export default {
162
+    components: {
163
+      BreadCrumb
164
+    },
165
+    data(){
166
+      return{
167
+        crumbs: [
168
+          { path: false, name: '库存管理' },
169
+          { path: '/stock/drugs/stock/query', name: '药品库存查询' },
170
+          { path:'/drugstock/in/drugstockflow',name:'库存流水'}
171
+        ],
172
+        keywords: '',
173
+        total: 0,
174
+        multipleSelection: [],
175
+        signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
176
+        start_time: '',
177
+        end_time: '',
178
+        page: 1,
179
+        limit: 10,
180
+        goodType: [],
181
+        goodInfo: [],
182
+        tempArr: [],
183
+        sameRowArr: [],
184
+        WarehouseInfo: {
185
+          loading: false,
186
+          warehouseInfoDate: []
187
+        },
188
+        tableData:[],
189
+        drug_category:0,
190
+        stock_type:0,
191
+        drugCategory:[
192
+          {id:0,name:"全部"}
193
+        ],
194
+        drugTypeList:[],
195
+        tableList:[],
196
+        manufacturerList:[],
197
+        list:[],
198
+        stockType:[
199
+          {id:0,name:"全部"},
200
+          {id:1,name:"手动入库"},
201
+          {id:2,name:"手动出库"},
202
+          {id:3,name:"自动出库"},
203
+          {id:4,name:"手动退库"},
204
+          {id:10,name:"盘盈"},
205
+          {id:11,name:"盘亏"},
206
+          {id:12,name:"调拨出库"},
207
+          {id:13,name:"调拨入库"},
208
+          {id:15,name:"结算出库"}
209
+        ],
210
+        outList:[],
211
+        countList:[],
212
+        outCountList:[],
213
+        autoCountList:[],
214
+        drugOutList:[],
215
+        total:0,
216
+        houseList:[],
217
+        patientList:[],
218
+        drug:{},
219
+        patients:[]
220
+      }
221
+    },
222
+    created(){
223
+      this.getlist()
224
+    },
225
+    methods:{
226
+      startTimeChange: function(val) {
227
+      this.tableList = []
228
+      var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
229
+      
230
+      if (time > 0) {
231
+        this.$message.error("开始时间不能大于结束时间");
232
+        this.start_time = "";
233
+      } else {
234
+         
235
+         this.getlist()
236
+     
237
+      }
238
+    },
239
+    endTimeChange: function(val) {
240
+      this.tableList = []
241
+      var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
242
+      if (time < 0) {
243
+        this.$message.error("结束时间不能小于开始时间");
244
+        this.end_time = "";
245
+      } else {
246
+        this.getlist()
247
+      }
248
+     },
249
+     changeDrug(val){
250
+       this.tableList= []
251
+       this.stock_type = val
252
+       this.getlist()
253
+      },
254
+      handleSizeChange(val) {
255
+        this.limit = val
256
+        this.getlist()
257
+      },
258
+      handleCurrentChange(val) {
259
+        this.page = val
260
+        this.getlist()
261
+      },
262
+      getlist(){
263
+        var params = {
264
+             drug_id:this.$route.query.drug_id,
265
+             start_time:this.start_time,
266
+             end_time:this.end_time,
267
+             page:this.page,
268
+             limit:this.limit,
269
+         }
270
+        getSelfDrugBatchNumberList(params).then(response=>{
271
+           if(response.data.state ==1){
272
+              var list = response.data.data.list
273
+              this.tableList =list
274
+              var total =  response.data.data.total
275
+              this.total = total
276
+              this.drug =response.data.data.drug
277
+            
278
+           }
279
+        })
280
+      },
281
+      getName(drug_id){
282
+        var name = ""
283
+        if(drug_id == this.drug.id){
284
+           name = this.drug.drug_name
285
+        }
286
+        return name
287
+     },
288
+     getTime(val) {
289
+      if(val < 0){
290
+          return ""
291
+      }
292
+      if(val == ""){
293
+        return ""
294
+      }else {
295
+        return uParseTime(val, '{y}-{m}-{d}')
296
+      }
297
+     },
298
+    
299
+    }
300
+  }
301
+</script>

+ 313 - 0
src/xt_pages/stock/selfPreparedMedicine/selfDrugFlow.vue View File

@@ -0,0 +1,313 @@
1
+<template>
2
+    <div class="main-contain">
3
+      <div class="position">
4
+        <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      </div>
6
+      <div class="app-container ">
7
+        <div class="cell clearfix">
8
+         药品名称:<span>{{getName(this.$route.query.drug_id)}}</span>&nbsp;
9
+         库存: {{this.$route.query.over_plus}}
10
+         规格:<span>{{drug.dose}}{{drug.dose_unit}}*{{drug.min_number}}{{drug.min_unit}}/{{drug.max_unit}}</span>&nbsp;
11
+         厂家:<span>{{this.$route.query.manufacturer}}</span>&nbsp;
12
+        </div>
13
+        <div class="cell clearfix">
14
+          <span>日期查询:</span>
15
+          <el-date-picker
16
+              size="small"
17
+              v-model="start_time"
18
+              prefix-icon="el-icon-date"
19
+              :editable="false"
20
+              style="width: 196px;"
21
+              type="date"
22
+              placeholder="选择日期时间"
23
+              align="right"
24
+              format="yyyy-MM-dd"
25
+              value-format="yyyy-MM-dd"
26
+              @change="startTimeChange"
27
+             ></el-date-picker>-
28
+              <el-date-picker
29
+                size="small"
30
+                v-model="end_time"
31
+                prefix-icon="el-icon-date"
32
+                :editable="false"
33
+                style="width: 196px;margin-right:10px;"
34
+                type="date"
35
+                placeholder="选择日期时间"
36
+                align="right"
37
+                format="yyyy-MM-dd"
38
+                value-format="yyyy-MM-dd"
39
+                @change="endTimeChange"
40
+            ></el-date-picker>
41
+  
42
+          <span>出入库方式:</span>
43
+          <el-select v-model="stock_type" style="width:160px;margin-right:10px;" placeholder="请选择" @change="changeDrug">
44
+              <el-option
45
+                v-for="(item,index) in stockType"
46
+                :key="index"
47
+                :label="item.name"
48
+                :value="item.id">
49
+              </el-option>
50
+          </el-select>
51
+          
52
+          <!-- <span>
53
+            <el-button type="primary" size="small" @click="toExprot">导出</el-button>
54
+  
55
+            <el-button type="primary" size="small" @click="toTongBu">同步</el-button>
56
+          </span> -->
57
+          
58
+        </div>
59
+        
60
+         <el-table
61
+          :data="tableList"
62
+          border
63
+          style="width: 100%">
64
+          <el-table-column prop="date" label="序号" width="180" align="center">
65
+             <template  slot-scope="scope">
66
+                {{scope.$index + 1}}
67
+             </template>
68
+          </el-table-column>
69
+          <el-table-column prop="drug_type" label="出入库方式" width="180" align="center">
70
+             <template slot-scope="scope">
71
+               <span v-if="scope.row.consumable_type == 1">手动入库</span>
72
+               <span v-if="scope.row.consumable_type == 2">手动出库</span>
73
+               <span v-if="scope.row.consumable_type == 3">自动出库</span>
74
+               <span v-if="scope.row.consumable_type == 4">手动退库</span>
75
+               <span v-if="scope.row.consumable_type == 7">自动退库</span>
76
+               <span v-if="scope.row.consumable_type == 5">报损数量</span>
77
+               <span v-if="scope.row.consumable_type == 10">盘盈</span>
78
+               <span v-if="scope.row.consumable_type == 11">盘亏</span>
79
+               <span v-if="scope.row.consumable_type == 12">调拨出库</span>
80
+               <span v-if="scope.row.consumable_type == 13">调拨入库</span>
81
+               <span v-if="scope.row.consumable_type == 15">结算出库</span>
82
+             </template>
83
+          </el-table-column>
84
+          <el-table-column prop="drug_name" label="出/入库单据编码" align="center">
85
+             <template slot-scope="scope">
86
+               <span v-if="scope.row.consumable_type == 1">{{scope.row.warehousing_order}}</span>
87
+                <span v-if="scope.row.consumable_type == 2 || scope.row.consumable_type == 3 || scope.row.consumable_type == 12 || scope.row.consumable_type == 15">{{scope.row.warehouse_out_order_number}}</span>
88
+                <span v-if="scope.row.consumable_type == 4 || scope.row.consumable_type == 7">{{scope.row.cancel_order_number}}</span>
89
+                <span v-if="scope.row.consumable_type == 5">{{scope.row.warehouse_out_order_number}}</span>
90
+                <span v-if="scope.row.consumable_type == 10 || scope.row.consumable_type == 11 || scope.row.consumable_type == 13">{{scope.row.warehousing_order}}</span>
91
+             </template>
92
+          </el-table-column>
93
+          <el-table-column prop="drug_name" label="出库日期" align="center">
94
+             <template slot-scope="scope">
95
+               {{getTime(scope.row.ctime,"{y}-{h}-{d}")}}
96
+             </template>
97
+          </el-table-column>
98
+          <el-table-column prop="drug_name" label="操作日期" align="center">
99
+             <template slot-scope="scope">
100
+               {{getTime(scope.row.operate_time,"{y}-{h}-{d}")}}
101
+             </template>
102
+          </el-table-column>
103
+        
104
+          <el-table-column prop="drug_name" label="数量&单位" align="center">
105
+             <template slot-scope="scope">
106
+                <span v-if="scope.row.consumable_type != 2 &&  scope.row.consumable_type != 3 && scope.row.consumable_type != 5 && scope.row.consumable_type != 7">{{scope.row.count}}{{scope.row.max_unit}}</span>
107
+                <span v-if="(scope.row.consumable_type == 2 || scope.row.consumable_type == 3 || scope.row.consumable_type == 5 || scope.row.consumable_type == 7) && parseInt(scope.row.count/scope.row.BaseDrugLib.min_number) >0">{{parseInt(scope.row.count/scope.row.BaseDrugLib.min_number)}}{{scope.row.BaseDrugLib.max_unit}}</span>
108
+                <span v-if="(scope.row.consumable_type == 2 || scope.row.consumable_type == 3 || scope.row.consumable_type == 5 || scope.row.consumable_type == 7) && scope.row.count%scope.row.BaseDrugLib.min_number >0">{{scope.row.count%scope.row.BaseDrugLib.min_number}}{{scope.row.BaseDrugLib.min_unit}}</span>
109
+             </template>
110
+          </el-table-column>
111
+  
112
+       
113
+        
114
+           <el-table-column prop="drug_name" label="有效期" align="center">
115
+             <template slot-scope="scope">
116
+                {{getTime(scope.row.expire_date,"{y}-{h}-{d}")}}
117
+              
118
+             </template>
119
+          </el-table-column>
120
+         
121
+          <el-table-column prop="drug_name" label="使用人" align="center">
122
+             <template slot-scope="scope">
123
+               <span > {{getPatientName(scope.row.patient_id)}}</span>
124
+             </template>
125
+          </el-table-column>
126
+          <el-table-column prop="drug_name" label="剩余库存" align="center">
127
+             <template slot-scope="scope">
128
+               <!-- <span > {{getDrugCount(scope.row.over_count,scope.row.BaseDrugLib.max_unit,scope.row.BaseDrugLib.min_unit,scope.row.BaseDrugLib.min_number)}}</span> -->
129
+                 {{ scope.row.over_count }} {{ drug.min_unit }}
130
+             </template>
131
+          </el-table-column>
132
+          <el-table-column prop="remark" label="备注" align="center">
133
+             <template slot-scope="scope">
134
+               <span > {{scope.row.remark}}</span>
135
+             </template>
136
+          </el-table-column>
137
+         </el-table>
138
+         
139
+        <el-pagination
140
+          @size-change="handleSizeChange"
141
+          @current-change="handleCurrentChange"
142
+          :page-sizes="[10, 50, 100,500,1000]"
143
+          :page-size="10"
144
+          background
145
+          align="right"
146
+          style="margin-top:20px;"
147
+          layout="total, sizes, prev, pager, next, jumper"
148
+          :total="total"
149
+        >
150
+        </el-pagination>
151
+      </div>
152
+  
153
+      <setting-dialog
154
+        ref="dialog"
155
+      ></setting-dialog>
156
+  
157
+    </div>
158
+  </template>
159
+
160
+  <script>
161
+
162
+  import { uParseTime } from '@/utils/tools'
163
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
164
+  import { getSelfDrugFlow }  from '@/api/drug/drug'
165
+  export default {
166
+    components: {
167
+      BreadCrumb
168
+    },
169
+    data(){
170
+      return{
171
+        crumbs: [
172
+          { path: false, name: '库存管理' },
173
+          { path: '/stock/drugs/stock/query', name: '药品库存查询' },
174
+          { path:'/drugstock/in/drugstockflow',name:'库存流水'}
175
+        ],
176
+        keywords: '',
177
+        total: 0,
178
+        multipleSelection: [],
179
+        signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
180
+        start_time: '',
181
+        end_time: '',
182
+        page: 1,
183
+        limit: 10,
184
+        goodType: [],
185
+        goodInfo: [],
186
+        tempArr: [],
187
+        sameRowArr: [],
188
+        WarehouseInfo: {
189
+          loading: false,
190
+          warehouseInfoDate: []
191
+        },
192
+        tableData:[],
193
+        drug_category:0,
194
+        stock_type:0,
195
+        drugCategory:[
196
+          {id:0,name:"全部"}
197
+        ],
198
+        drugTypeList:[],
199
+        tableList:[],
200
+        manufacturerList:[],
201
+        list:[],
202
+        stockType:[
203
+          {id:0,name:"全部"},
204
+          {id:1,name:"手动入库"},
205
+          {id:2,name:"手动出库"},
206
+          {id:3,name:"自动出库"},
207
+          {id:4,name:"手动退库"},
208
+          {id:10,name:"盘盈"},
209
+          {id:11,name:"盘亏"},
210
+          {id:12,name:"调拨出库"},
211
+          {id:13,name:"调拨入库"},
212
+          {id:15,name:"结算出库"}
213
+        ],
214
+        outList:[],
215
+        countList:[],
216
+        outCountList:[],
217
+        autoCountList:[],
218
+        drugOutList:[],
219
+        total:0,
220
+        houseList:[],
221
+        patientList:[],
222
+        drug:{},
223
+        patients:[]
224
+      }
225
+    },
226
+    created(){
227
+      this.getlist()
228
+    },
229
+    methods:{
230
+      startTimeChange: function(val) {
231
+      this.tableList = []
232
+      var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
233
+      
234
+      if (time > 0) {
235
+        this.$message.error("开始时间不能大于结束时间");
236
+        this.start_time = "";
237
+      } else {
238
+         
239
+         this.getlist()
240
+     
241
+      }
242
+    },
243
+    endTimeChange: function(val) {
244
+      this.tableList = []
245
+      var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
246
+      if (time < 0) {
247
+        this.$message.error("结束时间不能小于开始时间");
248
+        this.end_time = "";
249
+      } else {
250
+        this.getlist()
251
+      }
252
+     },
253
+     changeDrug(val){
254
+       this.tableList= []
255
+       this.stock_type = val
256
+       this.getlist()
257
+      },
258
+      handleSizeChange(val) {
259
+        this.limit = val
260
+        this.getlist()
261
+      },
262
+      handleCurrentChange(val) {
263
+        this.page = val
264
+        this.getlist()
265
+      },
266
+      getlist(){
267
+        var params = {
268
+             drug_id:this.$route.query.drug_id,
269
+             start_time:this.start_time,
270
+             end_time:this.end_time,
271
+             page:this.page,
272
+             limit:this.limit,
273
+         }
274
+        getSelfDrugFlow(params).then(response=>{
275
+           if(response.data.state ==1){
276
+              var list = response.data.data.list
277
+              this.tableList =list
278
+              var total =  response.data.data.total
279
+              this.total = total
280
+              this.drug =response.data.data.drug
281
+              this.patients= response.data.data.patients
282
+           }
283
+        })
284
+      },
285
+      getName(drug_id){
286
+        var name = ""
287
+        if(drug_id == this.drug.id){
288
+           name = this.drug.drug_name
289
+        }
290
+        return name
291
+     },
292
+     getTime(val) {
293
+      if(val < 0){
294
+          return ""
295
+      }
296
+      if(val == ""){
297
+        return ""
298
+      }else {
299
+        return uParseTime(val, '{y}-{m}-{d}')
300
+      }
301
+     },
302
+     getPatientName(id){
303
+       var name = ""
304
+       for(let i=0;i<this.patientList.length;i++){
305
+          if(id == this.patientList[i].id){
306
+              name = this.patientList[i].name
307
+          }
308
+       }
309
+       return name
310
+     },
311
+    }
312
+  }
313
+</script>

+ 141 - 0
src/xt_pages/stock/selfPreparedMedicine/selfDrugQuery.vue View File

@@ -0,0 +1,141 @@
1
+<template>
2
+    <div class="main-contain">
3
+      <div class="position">
4
+        <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+       
6
+      </div>
7
+       <div class="app-container ">
8
+          <el-tabs v-model="activeName" @tab-click="handleClick">
9
+              <el-tab-pane label="库存查询" name="first">
10
+                <new-drug-query></new-drug-query>
11
+              </el-tab-pane>
12
+            
13
+              <el-tab-pane label="患者查询" name="sencode">
14
+                  <patient-drug-query ref="mychildtwo"></patient-drug-query>
15
+              </el-tab-pane>
16
+          </el-tabs>
17
+       </div>
18
+    </div>
19
+  </template>
20
+  
21
+  <script>
22
+  import BreadCrumb from "@/xt_pages/components/bread-crumb";
23
+  import newDrugQuery from "@/xt_pages/stock/selfPreparedMedicine/newDrugQuery"
24
+  import patientDrugQuery from  "@/xt_pages/stock/selfPreparedMedicine/patientDrugQuery"
25
+  export default {
26
+    name: "stockNewQuery",
27
+    
28
+    components: {
29
+      BreadCrumb,
30
+      newDrugQuery,
31
+      patientDrugQuery
32
+    },
33
+    data() {
34
+      return {
35
+        crumbs: [
36
+          { path: false, name: "库存管理" },
37
+          { path: "/stock/query", name: "库存查询" }
38
+        ],
39
+        multipleSelection: [],
40
+        signAndWeighBoxPatients: "sign-and-weigh-box-patients",
41
+        activeName: 'first',
42
+        org_id:0,
43
+      };
44
+    },
45
+    methods:{
46
+      handleClick(val){
47
+        if(val.name == "first"){
48
+          this.$refs.mychild.open()
49
+        }
50
+        if(val.name == "second"){
51
+         this.$refs.mychildtwo.open()
52
+        }   
53
+       
54
+      }
55
+    },
56
+    created(){
57
+      this.org_id = this.$store.getters.xt_user.template_info.org_id
58
+    }
59
+  };
60
+  </script>
61
+  
62
+  <style rel="stylesheet/css" lang="scss" scoped>
63
+  .information {
64
+    border: 1px #dcdfe6 solid;
65
+    padding: 30px 20px 30px 20px;
66
+  
67
+    .border {
68
+      border-bottom: 1px #dcdfe6 solid;
69
+      margin: 0px 0 20px 0;
70
+    }
71
+  }
72
+  
73
+  /deep/ .el-tabs .el-tabs__header{
74
+    margin: 0;
75
+  }
76
+  
77
+  .title {
78
+    background: #409eff;
79
+    height: 44px;
80
+    line-height: 44px;
81
+    padding: 0 0 0 10px;
82
+    color: #fff;
83
+    margin: 0 0 10px 0;
84
+  }
85
+  
86
+  .edit_separater {
87
+    border-top: 1px solid rgb(233, 233, 233);
88
+    margin-top: 15px;
89
+    margin-bottom: 15px;
90
+  }
91
+  </style>
92
+  
93
+  <style>
94
+  .sign-and-weigh-box .sign-and-weigh-box-patients .cell {
95
+    font-size: 12px;
96
+  }
97
+  
98
+  .sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
99
+    background: #6fb5fa;
100
+  }
101
+  
102
+  .count {
103
+    color: #bd2c00;
104
+  }
105
+  .el-table td,
106
+  .el-table th.is-leaf,
107
+  .el-table--border,
108
+  .el-table--group {
109
+    border-color: #d0d3da;
110
+  }
111
+  .el-table--border::after,
112
+  .el-table--group::after,
113
+  .el-table::before {
114
+    background-color: #d0d3da;
115
+  }
116
+  
117
+  /* 合并表格线样式 */
118
+  
119
+  .spanClass .cell {
120
+    padding: 0 !important;
121
+  }
122
+  
123
+  .spanClass .cell tr {
124
+    display: inline-block;
125
+    width: 100%;
126
+    /* height: 44px; */
127
+  }
128
+  
129
+  .spanClass .cell tr td {
130
+    padding: 10px 0;
131
+    border-bottom: 1px solid #ebeef5;
132
+    display: block;
133
+    width: 100%;
134
+    min-height: 44px;
135
+  }
136
+  .spanClass .cell tr:last-of-type td{
137
+    border-bottom: none;
138
+  }
139
+  
140
+  </style>
141
+  

+ 19 - 6
src/xt_pages/stock/selfPreparedMedicine/warehouseInfo.vue View File

@@ -15,7 +15,7 @@
15 15
 
16 16
     <div class="app-container">
17 17
       <div class="cell clearfix">
18
-        <label class="title"><span class="name">患者</span> :</label>
18
+        <!-- <label class="title"><span class="name">患者</span> :</label>
19 19
         <el-select
20 20
           size="small"
21 21
           v-model="patient_id"
@@ -31,13 +31,13 @@
31 31
             :value="option.id"
32 32
           >
33 33
           </el-option>
34
-        </el-select>
34
+        </el-select> -->
35 35
         <el-input
36 36
           size="small"
37 37
           style="width: 200px"
38 38
           v-model.trim="searchKey"
39 39
           class="filter-item"
40
-          placeholder="药品名称"
40
+          placeholder="入库单号"
41 41
         />
42 42
         <el-button
43 43
           size="small"
@@ -117,7 +117,7 @@
117 117
             size="small"
118 118
             v-model="check_type"
119 119
             filterable
120
-            placeholder="请选择仓库"
120
+            placeholder="请选择"
121 121
             style="width: 200px"
122 122
             @change="changeCheckType"
123 123
           >
@@ -284,7 +284,7 @@ import {
284 284
 } from "@/api/drug/drug_stock";
285 285
 import { getDictionaryDataConfig } from "@/utils/data";
286 286
 import BreadCrumb from "../../components/bread-crumb";
287
-  import { getallPatientList,getAllSelfDrugWarehouseInfoList,deleteSelfWarehouseInfo} from "@/api/drug/drug"
287
+import { getallPatientList,getAllSelfDrugWarehouseInfoList,deleteSelfWarehouseInfo,getAllSelfDrugWarehouse} from "@/api/drug/drug"
288 288
 export default {
289 289
   name: "drugStockInOrder",
290 290
   components: { BreadCrumb },
@@ -318,6 +318,7 @@ export default {
318 318
       "-" +
319 319
       (nowDay < 10 ? "0" + nowDay : nowDay);
320 320
 
321
+    this.getAllSelfDrugWarehouse()  
321 322
     this.getallPatientList() 
322 323
 
323 324
     this.getAllSelfDrugWarehouseInfoList()
@@ -381,7 +382,19 @@ export default {
381 382
   },
382 383
 
383 384
   methods: {
384
-    
385
+    getAllSelfDrugWarehouse(){
386
+      var params = {
387
+          keyword:this.searchKey,
388
+          start_time:this.start_time,
389
+          end_time:this.end_time,
390
+          check_type:this.check_type,
391
+          limit:this.limit,
392
+          page:this.page,
393
+        }
394
+      getAllSelfDrugWarehouse(params).then(response=>{
395
+
396
+      })
397
+    },
385 398
     getAllSelfDrugWarehouseInfoList(){
386 399
         var params = {
387 400
           keyword:this.searchKey,