28169 6 miesięcy temu
rodzic
commit
267fca85ce
1 zmienionych plików z 45 dodań i 11 usunięć
  1. 45 11
      src/xt_pages/stock/drugs/drugInventoryModePrint.vue

+ 45 - 11
src/xt_pages/stock/drugs/drugInventoryModePrint.vue Wyświetl plik

18
                     </thead>
18
                     </thead>
19
                     <tbody class="print_body">
19
                     <tbody class="print_body">
20
                     <tr>
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
                     </tr>
40
                     </tr>
33
 
41
 
34
                     <tr v-for="(item,index) in tableList" :key="index">
42
                     <tr v-for="(item,index) in tableList" :key="index">
43
+                        <td align="center" style="width: 50px;">序号</td>
35
                         <td align="center">{{ item.drug_name }}</td>
44
                         <td align="center">{{ item.drug_name }}</td>
36
                         <td align="center">{{ item.specification_name }}</td>
45
                         <td align="center">{{ item.specification_name }}</td>
46
+                        <td align="center" style="width: 200px;">上期结余数量</td>
37
                         <td align="center">{{ getInCount(item.drug_id,item.min_number,item.min_unit,item.max_unit) }}</td>
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
                         <td align="center">{{ getOutCount(item.drug_id,item.min_number,item.min_unit,item.max_unit) }}</td> 
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
                         <td align="center">{{ getSumCount(item.sum_count,item.min_number,item.min_unit,item.max_unit) }}</td>
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
                         <td align="center">
56
                         <td align="center">
41
                             <table
57
                             <table
42
                                 class="ware_table"
58
                                 class="ware_table"
226
           manufacturerList:[],
242
           manufacturerList:[],
227
           infoList:[],
243
           infoList:[],
228
           drugList:[],
244
           drugList:[],
229
-          outList:[]
245
+          outList:[],
246
+          warehouseInfoFlow:[],
247
+          warehouseOutFlow:[],
248
+          cancelFlow:[],
249
+
230
        }
250
        }
231
      },
251
      },
232
      methods:{
252
      methods:{
282
                       min_unit:item.min_unit,
302
                       min_unit:item.min_unit,
283
                       max_unit:item.max_unit,
303
                       max_unit:item.max_unit,
284
                       sum_count:item.sum_count,
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
 
337
 
308
               
338
               
309
                  this.drugList = response.data.data.drugList
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
         },