see999 3 anos atrás
pai
commit
8e1536571f

+ 48 - 17
src/xt_pages/stock/drugs/drugStockInOrderDetailPrint.vue Ver arquivo

@@ -15,42 +15,52 @@
15 15
           <table class="print-table" border="1">
16 16
             <tbody>
17 17
             <tr>
18
-              <td style="line-height: 50px" width="50">序号</td>
19
-              <td style="line-height: 50px" width="250">药品名称</td>
20
-              <td style="line-height: 50px" width="250">规格型号</td>
21
-              <td style="line-height: 50px" width="50">单位</td>
22
-              <td style="line-height: 50px" width="80">数量</td>
23
-              <td style="line-height:50px" width="80">单价</td>
24
-              <td style="line-height:50px" width="80">总价</td>
18
+              <td width="80">药品名称</td>
19
+              <td width="80">注册证号/批准文号/备案凭证号</td>
20
+              <td width="80">规格型号</td>
21
+              <td width="80">生产厂商</td>
22
+              <td width="80">单位</td>
23
+              <td width="80">进货价</td>
24
+              <td width="80">入库数量</td> 
25
+              <td width="80">总价</td>
26
+              <td width="80">批号</td>
27
+              <td width="80">生产日期</td>
28
+              <td width="80">有效日期</td>
29
+              <td width="80">质检意见</td>
30
+              <td width="80">验收结论</td>
25 31
             </tr>
26 32
 
27 33
             <tr v-for="(item,index) in WarehouseInfo.warehouseInfoDate" :key="item.id">
28
-              <td style="line-height: 50px">&nbsp;
29
-                {{index+1}}
30
-              </td>
31 34
               <td style="line-height: 50px">
32 35
                  <span v-if="item.drug_id != 0">{{item.drug.drug_name}}</span>
33 36
               </td>
37
+              <td>{{ item.remark }}</td>
34 38
               <td style="line-height: 50px">
35 39
                  <span v-if="item.drug_id != 0">{{item.drug?item.drug.drug_spec:''}}</span>
36 40
               </td>
41
+              <td>{{ getManufacturer(item.manufacturer) }}</td>
37 42
               <td style="line-height: 50px">
38 43
                 <span>{{getUnit(item.drug_id)}}</span>
39 44
               </td>
40
-            
45
+              <td style="line-height:50px">
46
+                  {{item.price}}
47
+              </td>
41 48
               <td style="line-height: 50px">
42 49
                    <span>{{ item.warehousing_count }}</span>
43 50
               </td>
51
+              
44 52
               <td style="line-height:50px">
45
-                  {{item.price}}
53
+                  <span>{{(item.warehousing_count * item.price).toFixed(2)}}</span>
46 54
               </td>
47
-             <td style="line-height:50px">
48
-                <span>{{(item.warehousing_count * item.price).toFixed(2)}}</span>
49
-             </td>
55
+              <td>{{ item.number }}</td>
56
+              <td>{{ item.product_date | parseTime("{y}-{m}-{d}") }}</td>
57
+              <td>{{ item.expiry_date | parseTime("{y}-{m}-{d}") }}</td>
58
+              <td>正常入库</td>
59
+              <td>合格</td>
50 60
             </tr>
51 61
             <tr>
52 62
               <td>合计</td>
53
-              <td colspan="5"></td>
63
+              <td colspan="11"></td>
54 64
               <td>{{allPrice.toFixed(2)}}</td>
55 65
             </tr>
56 66
             </tbody>
@@ -74,7 +84,7 @@
74 84
 </template>
75 85
 
76 86
 <script>
77
-  import { getPrintStockGood } from '@/api/stock'
87
+  import { GetAllConfig,getPrintStockGood } from '@/api/stock'
78 88
   import { getDataConfig } from '@/utils/data'
79 89
   import { jsGetAge, uParseTime } from '@/utils/tools'
80 90
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
@@ -217,11 +227,32 @@
217 227
         }
218 228
         return name
219 229
       },
230
+      getManufacturer(id){
231
+        let name = ''
232
+        this.manufacturer.map(item => {
233
+          if(item.id == id){
234
+            name = item.manufacturer_name
235
+          }
236
+        })
237
+        return name
238
+      },
239
+      GetConfigInfo: function() {
240
+        GetAllConfig().then(response => {
241
+            if (response.data.state == 0) {
242
+            this.$message.error(response.data.msg);
243
+            return false;
244
+            } else {
245
+            this.manufacturer = response.data.data.manufacturer;
246
+            }
247
+        });
248
+      },
220 249
     },
221 250
     created() {
251
+      this.GetConfigInfo()
222 252
       const order_id = this.$route.query.id;
223 253
       this.GetOrderDetail(order_id);
224 254
       this.getList()
255
+      
225 256
     }
226 257
 
227 258
   }

+ 4 - 4
src/xt_pages/stock/stockInOrderDetailPrint.vue Ver arquivo

@@ -26,7 +26,7 @@
26 26
                                     <td width="80">规格型号</td>
27 27
                                     <td width="80">生产厂商</td>
28 28
                                     <td width="80">单位</td>
29
-                                     <td width="80">进货价</td>
29
+                                    <td width="80">进货价</td>
30 30
                                     <td width="80">入库数量</td> 
31 31
                                     <td width="80">总价</td>
32 32
                                     <td width="80">批号</td>
@@ -39,7 +39,7 @@
39 39
                             <tbody>
40 40
                                 <tr v-for='(item,index) in WarehouseInfo.warehouseInfoDate' :key="index">
41 41
                                     <td><span v-if="item.good_id != 0">{{getTypeNameOne(item.good_id)}}</span></td>
42
-                                    <td></td>
42
+                                    <td>{{ item.remark }}</td>
43 43
                                     <td><span v-if="item.good_id != 0">{{getSpecificationName(item.good_id)}}</span></td>
44 44
                                     <td>{{ getManufacturer(item.manufacturer) }}</td>
45 45
                                     <td><span v-if="item.good_id!=0">{{getUnit(item.good_id)}}</span></td>
@@ -49,8 +49,8 @@
49 49
                                     <td>{{ item.number }}</td>
50 50
                                     <td>{{ item.product_date | parseTime("{y}-{m}-{d}") }}</td>
51 51
                                     <td>{{ item.expiry_date | parseTime("{y}-{m}-{d}") }}</td>
52
-                                    <td></td>
53
-                                    <td></td>
52
+                                    <td>正常入库</td>
53
+                                    <td>合格</td>
54 54
                                 </tr>
55 55
                                 <tr>
56 56
                                   <td>合计</td>