|
@@ -18,25 +18,41 @@
|
18
|
18
|
</thead>
|
19
|
19
|
<tbody class="print_body">
|
20
|
20
|
<tr>
|
21
|
|
- <td align="center">药品名称</td>
|
22
|
|
- <td align="center">规格</td>
|
23
|
|
- <td align="center">本月入库数量</td>
|
24
|
|
- <td align="center">本月出库数量</td>
|
25
|
|
- <td align="center">本月剩余库存</td>
|
26
|
|
- <td align="center">批号</td>
|
27
|
|
- <td align="center">生产日期</td>
|
28
|
|
- <td align="center">有效日期</td>
|
29
|
|
- <td align="center">生产厂商</td>
|
30
|
|
- <td align="center">盘点数量</td>
|
|
21
|
+ <td align="center" style="width: 50px;">序号</td>
|
|
22
|
+ <td align="center" style="width: 200px;">药品名称</td>
|
|
23
|
+ <td align="center" style="width: 200px;">规格</td>
|
|
24
|
+ <td align="center" style="width: 200px;">上期结余数量</td>
|
|
25
|
+ <td align="center" style="width: 200px;">本月入库数量</td>
|
|
26
|
+ <td align="center" style="width: 200px;">进货金额</td>
|
|
27
|
+ <td align="center" style="width: 200px;">本月入库总金额</td>
|
|
28
|
+ <td align="center" style="width: 200px;">本月出库数量</td>
|
|
29
|
+ <td align="center" style="width: 200px;">销售价</td>
|
|
30
|
+ <td align="center" style="width: 200px;">本月销售总金额</td>
|
|
31
|
+ <td align="center" style="width: 200px;">本月剩余库存</td>
|
|
32
|
+ <td align="center" style="width: 200px;">进货价</td>
|
|
33
|
+ <td align="center" style="width: 200px;">本月剩余总金额</td>
|
|
34
|
+ <td align="center" style="width: 200px;">批号</td>
|
|
35
|
+ <td align="center" style="width: 200px;">生产日期</td>
|
|
36
|
+ <td align="center" style="width: 200px;">有效日期</td>
|
|
37
|
+ <td align="center" style="width: 200px;">生产厂商</td>
|
|
38
|
+ <td align="center" style="width: 200px;">盘点数量</td>
|
31
|
39
|
|
32
|
40
|
</tr>
|
33
|
41
|
|
34
|
42
|
<tr v-for="(item,index) in tableList" :key="index">
|
|
43
|
+ <td align="center" style="width: 50px;">序号</td>
|
35
|
44
|
<td align="center">{{ item.drug_name }}</td>
|
36
|
45
|
<td align="center">{{ item.specification_name }}</td>
|
|
46
|
+ <td align="center" style="width: 200px;">上期结余数量</td>
|
37
|
47
|
<td align="center">{{ getInCount(item.drug_id,item.min_number,item.min_unit,item.max_unit) }}</td>
|
|
48
|
+ <td align="center" style="width: 200px;">进货金额</td>
|
|
49
|
+ <td align="center" style="width: 200px;">本月入库总金额</td>
|
38
|
50
|
<td align="center">{{ getOutCount(item.drug_id,item.min_number,item.min_unit,item.max_unit) }}</td>
|
|
51
|
+ <td align="center" style="width: 200px;">销售价</td>
|
|
52
|
+ <td align="center" style="width: 200px;">本月销售总金额</td>
|
39
|
53
|
<td align="center">{{ getSumCount(item.sum_count,item.min_number,item.min_unit,item.max_unit) }}</td>
|
|
54
|
+ <td align="center" style="width: 200px;">进货价</td>
|
|
55
|
+ <td align="center" style="width: 200px;">本月剩余总金额</td>
|
40
|
56
|
<td align="center">
|
41
|
57
|
<table
|
42
|
58
|
class="ware_table"
|
|
@@ -226,7 +242,11 @@ import { getDrugInventroyModePrintList } from "@/api/stock"
|
226
|
242
|
manufacturerList:[],
|
227
|
243
|
infoList:[],
|
228
|
244
|
drugList:[],
|
229
|
|
- outList:[]
|
|
245
|
+ outList:[],
|
|
246
|
+ warehouseInfoFlow:[],
|
|
247
|
+ warehouseOutFlow:[],
|
|
248
|
+ cancelFlow:[],
|
|
249
|
+
|
230
|
250
|
}
|
231
|
251
|
},
|
232
|
252
|
methods:{
|
|
@@ -282,6 +302,16 @@ import { getDrugInventroyModePrintList } from "@/api/stock"
|
282
|
302
|
min_unit:item.min_unit,
|
283
|
303
|
max_unit:item.max_unit,
|
284
|
304
|
sum_count:item.sum_count,
|
|
305
|
+ last_over:0, //上期结余数量
|
|
306
|
+ month_in_total:0,//本月入库数量
|
|
307
|
+ buy_price:0,//进货金额
|
|
308
|
+ month_in_total_price:0,//本月入库总金额
|
|
309
|
+ month_out_total:0,//本月出库数量,
|
|
310
|
+ packing_price:0,//销售价,
|
|
311
|
+ month_out_total_price:0,//本月销售总金额,
|
|
312
|
+ month_over_total:0,//本月剩余库存
|
|
313
|
+ month_over_total_price:0,
|
|
314
|
+ is_total:0,
|
285
|
315
|
}
|
286
|
316
|
}
|
287
|
317
|
})
|
|
@@ -307,6 +337,10 @@ import { getDrugInventroyModePrintList } from "@/api/stock"
|
307
|
337
|
|
308
|
338
|
|
309
|
339
|
this.drugList = response.data.data.drugList
|
|
340
|
+
|
|
341
|
+ this.warehouseInfoFlow = response.data.data.warehouseInfoFlow
|
|
342
|
+ this.warehouseOutFlow = response.data.data.warehouseOutFlow
|
|
343
|
+ this.cancelFlow = response.data.data.cancelFlow
|
310
|
344
|
}
|
311
|
345
|
})
|
312
|
346
|
},
|