|
@@ -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,7 +31,7 @@
|
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"
|
|
@@ -77,23 +77,7 @@
|
77
|
77
|
@change="endTimeChange"
|
78
|
78
|
></el-date-picker>
|
79
|
79
|
</div>
|
80
|
|
- <!-- <div style="margin-left: 10px">
|
81
|
|
- <span>审核状态:</span>
|
82
|
|
- <el-select
|
83
|
|
- v-model="check_id"
|
84
|
|
- style="width: 140px; margin-right: 10px"
|
85
|
|
- placeholder="请选择"
|
86
|
|
- @change="changeTypeName"
|
87
|
|
- >
|
88
|
|
- <el-option
|
89
|
|
- v-for="item in checkList"
|
90
|
|
- :key="item.id"
|
91
|
|
- :label="item.name"
|
92
|
|
- :value="item.id"
|
93
|
|
- >
|
94
|
|
- </el-option>
|
95
|
|
- </el-select>
|
96
|
|
- </div> -->
|
|
80
|
+
|
97
|
81
|
</div>
|
98
|
82
|
|
99
|
83
|
<div class="cell clearfix">
|
|
@@ -151,6 +135,113 @@
|
151
|
135
|
<el-table-column align="center" type="selection" width="55">
|
152
|
136
|
</el-table-column>
|
153
|
137
|
|
|
138
|
+ <el-table-column label="单据日期" align="center">
|
|
139
|
+ <template slot-scope="scope">
|
|
140
|
+ {{ getTime(scope.row.warehousing_time)}}
|
|
141
|
+ </template>
|
|
142
|
+ </el-table-column>
|
|
143
|
+
|
|
144
|
+ <el-table-column label="单据编号" align="center">
|
|
145
|
+ <template slot-scope="scope">
|
|
146
|
+ {{scope.row.warehousing_order}}
|
|
147
|
+ </template>
|
|
148
|
+ </el-table-column>
|
|
149
|
+
|
|
150
|
+ <el-table-column label="患者名称" align="center">
|
|
151
|
+ <template slot-scope="scope">
|
|
152
|
+ {{scope.row.patient_id}}
|
|
153
|
+ </template>
|
|
154
|
+ </el-table-column>
|
|
155
|
+
|
|
156
|
+ <el-table-column label="制单人" align="center">
|
|
157
|
+ <template slot-scope="scope">
|
|
158
|
+ {{scope.row.creater}}
|
|
159
|
+ </template>
|
|
160
|
+ </el-table-column>
|
|
161
|
+
|
|
162
|
+ <el-table-column label="入库方式" align="center">
|
|
163
|
+ <template slot-scope="scope">
|
|
164
|
+ <span v-if="scope.row.is_sys ==1">处方入库</span>
|
|
165
|
+ <span v-if="scope.row.is_sys ==0">手动入库</span>
|
|
166
|
+ </template>
|
|
167
|
+ </el-table-column>
|
|
168
|
+
|
|
169
|
+ <el-table-column label="审核状态" align="center">
|
|
170
|
+ <template slot-scope="scope">
|
|
171
|
+ <span v-if="scope.row.is_check ==1">已审核</span>
|
|
172
|
+ <span v-if="scope.row.is_check ==2">未审核</span>
|
|
173
|
+ </template>
|
|
174
|
+ </el-table-column>
|
|
175
|
+ <el-table-column label="操作" align="center" width="240">
|
|
176
|
+ <template slot-scope="scope">
|
|
177
|
+ <el-tooltip
|
|
178
|
+ class="item"
|
|
179
|
+ effect="dark"
|
|
180
|
+ content="编辑"
|
|
181
|
+ placement="top"
|
|
182
|
+ >
|
|
183
|
+ <el-button
|
|
184
|
+ size="small"
|
|
185
|
+ type="primary"
|
|
186
|
+ icon="el-icon-edit-outline"
|
|
187
|
+ @click="handleEdit(scope.$index, scope.row)"
|
|
188
|
+ >
|
|
189
|
+ </el-button>
|
|
190
|
+ </el-tooltip>
|
|
191
|
+ <el-tooltip
|
|
192
|
+ class="item"
|
|
193
|
+ effect="dark"
|
|
194
|
+ content="删除"
|
|
195
|
+ placement="top"
|
|
196
|
+ >
|
|
197
|
+ <el-button
|
|
198
|
+ size="small"
|
|
199
|
+ type="danger"
|
|
200
|
+ icon="el-icon-delete"
|
|
201
|
+ @click="handleDelete(scope.$index, scope.row)"
|
|
202
|
+ >
|
|
203
|
+ </el-button>
|
|
204
|
+ </el-tooltip>
|
|
205
|
+ </template>
|
|
206
|
+ </el-table-column>
|
|
207
|
+ </el-table>
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+ <el-pagination
|
|
213
|
+ @size-change="handleSizeChange"
|
|
214
|
+ @current-change="handleCurrentChange"
|
|
215
|
+ :page-sizes="[5, 10, 50, 100]"
|
|
216
|
+ :page-size="5"
|
|
217
|
+ background
|
|
218
|
+ style="margin-top: 20px; text-align: right"
|
|
219
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
220
|
+ :total="total"
|
|
221
|
+ >
|
|
222
|
+ </el-pagination>
|
|
223
|
+
|
|
224
|
+ <div v-if="isShow">
|
|
225
|
+
|
|
226
|
+ <el-table
|
|
227
|
+ :data="tableList"
|
|
228
|
+ :class="signAndWeighBoxPatients"
|
|
229
|
+ style="width: 100%"
|
|
230
|
+ border
|
|
231
|
+ highlight-current-row
|
|
232
|
+ v-loading="Warehouse.loading"
|
|
233
|
+ ref="multipleTable"
|
|
234
|
+ @selection-change="select"
|
|
235
|
+ :row-style="{ color: '#303133' }"
|
|
236
|
+ :header-cell-style="{
|
|
237
|
+ backgroundColor: 'rgb(245, 247, 250)',
|
|
238
|
+ color: '#606266',
|
|
239
|
+ }"
|
|
240
|
+ @current-change="handleCurrentChangeOne"
|
|
241
|
+ >
|
|
242
|
+ <el-table-column align="center" type="selection" width="55">
|
|
243
|
+ </el-table-column>
|
|
244
|
+
|
154
|
245
|
<el-table-column label="入库时间" align="center">
|
155
|
246
|
<template slot-scope="scope">
|
156
|
247
|
{{ getTime(scope.row.record_date)}}
|
|
@@ -253,19 +344,8 @@
|
253
|
344
|
</el-tooltip>
|
254
|
345
|
</template>
|
255
|
346
|
</el-table-column>
|
256
|
|
- </el-table>
|
257
|
|
-
|
258
|
|
- <el-pagination
|
259
|
|
- @size-change="handleSizeChange"
|
260
|
|
- @current-change="handleCurrentChange"
|
261
|
|
- :page-sizes="[5, 10, 50, 100]"
|
262
|
|
- :page-size="5"
|
263
|
|
- background
|
264
|
|
- style="margin-top: 20px; text-align: right"
|
265
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
266
|
|
- :total="total"
|
267
|
|
- >
|
268
|
|
- </el-pagination>
|
|
347
|
+ </el-table>
|
|
348
|
+ </div>
|
269
|
349
|
|
270
|
350
|
</div>
|
271
|
351
|
|
|
@@ -317,11 +397,11 @@ export default {
|
317
|
397
|
(nowMonth < 10 ? "0" + nowMonth : nowMonth) +
|
318
|
398
|
"-" +
|
319
|
399
|
(nowDay < 10 ? "0" + nowDay : nowDay);
|
320
|
|
-
|
321
|
|
- this.getAllSelfDrugWarehouse()
|
322
|
400
|
this.getallPatientList()
|
|
401
|
+ this.getAllSelfDrugWarehouse()
|
|
402
|
+
|
323
|
403
|
|
324
|
|
- this.getAllSelfDrugWarehouseInfoList()
|
|
404
|
+
|
325
|
405
|
},
|
326
|
406
|
data() {
|
327
|
407
|
return {
|
|
@@ -378,6 +458,7 @@ export default {
|
378
|
458
|
tableList:[],
|
379
|
459
|
dealerList:[],
|
380
|
460
|
drugTypeList:[],
|
|
461
|
+ isShow:false,
|
381
|
462
|
};
|
382
|
463
|
},
|
383
|
464
|
|
|
@@ -390,9 +471,17 @@ export default {
|
390
|
471
|
check_type:this.check_type,
|
391
|
472
|
limit:this.limit,
|
392
|
473
|
page:this.page,
|
|
474
|
+ patient_id:this.patient_id,
|
393
|
475
|
}
|
394
|
476
|
getAllSelfDrugWarehouse(params).then(response=>{
|
395
|
|
-
|
|
477
|
+ if(response.data.state == 1){
|
|
478
|
+ var list = response.data.data.list
|
|
479
|
+ this.tableList = list
|
|
480
|
+ console.log("list",list)
|
|
481
|
+ var total = response.data.data.total
|
|
482
|
+ this.total = total
|
|
483
|
+ console.log("total",total)
|
|
484
|
+ }
|
396
|
485
|
})
|
397
|
486
|
},
|
398
|
487
|
getAllSelfDrugWarehouseInfoList(){
|
|
@@ -402,12 +491,12 @@ export default {
|
402
|
491
|
}
|
403
|
492
|
getAllSelfDrugWarehouseInfoList(params).then(response=>{
|
404
|
493
|
if(response.data.state ==1){
|
405
|
|
- var infoList = response.data.data.infoList
|
406
|
|
- this.tableList = infoList
|
407
|
|
- this.manufacturerList = response.data.data.manufacturerList
|
408
|
|
- console.log("infolist22222222222222",this.manufacturerList)
|
409
|
|
- this.dealerList = response.data.data.dealerList
|
410
|
|
- this.drugTypeList = response.data.data.drugTypeList
|
|
494
|
+ // var infoList = response.data.data.infoList
|
|
495
|
+ // this.tableList = infoList
|
|
496
|
+ // this.manufacturerList = response.data.data.manufacturerList
|
|
497
|
+ // console.log("infolist22222222222222",this.manufacturerList)
|
|
498
|
+ // this.dealerList = response.data.data.dealerList
|
|
499
|
+ // this.drugTypeList = response.data.data.drugTypeList
|
411
|
500
|
|
412
|
501
|
}
|
413
|
502
|
})
|
|
@@ -832,10 +921,10 @@ export default {
|
832
|
921
|
return storehouse_name;
|
833
|
922
|
},
|
834
|
923
|
changeStoreHouse() {
|
835
|
|
- this.GetWarehouse();
|
|
924
|
+ this.getAllSelfDrugWarehouse();
|
836
|
925
|
},
|
837
|
926
|
changeCheckType() {
|
838
|
|
- this.GetWarehouse();
|
|
927
|
+ this.getAllSelfDrugWarehouse();
|
839
|
928
|
},
|
840
|
929
|
|
841
|
930
|
getallPatientList(){
|