see999 3 jaren geleden
bovenliggende
commit
8e1536571f

+ 48 - 17
src/xt_pages/stock/drugs/drugStockInOrderDetailPrint.vue Bestand weergeven

15
           <table class="print-table" border="1">
15
           <table class="print-table" border="1">
16
             <tbody>
16
             <tbody>
17
             <tr>
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
             </tr>
31
             </tr>
26
 
32
 
27
             <tr v-for="(item,index) in WarehouseInfo.warehouseInfoDate" :key="item.id">
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
               <td style="line-height: 50px">
34
               <td style="line-height: 50px">
32
                  <span v-if="item.drug_id != 0">{{item.drug.drug_name}}</span>
35
                  <span v-if="item.drug_id != 0">{{item.drug.drug_name}}</span>
33
               </td>
36
               </td>
37
+              <td>{{ item.remark }}</td>
34
               <td style="line-height: 50px">
38
               <td style="line-height: 50px">
35
                  <span v-if="item.drug_id != 0">{{item.drug?item.drug.drug_spec:''}}</span>
39
                  <span v-if="item.drug_id != 0">{{item.drug?item.drug.drug_spec:''}}</span>
36
               </td>
40
               </td>
41
+              <td>{{ getManufacturer(item.manufacturer) }}</td>
37
               <td style="line-height: 50px">
42
               <td style="line-height: 50px">
38
                 <span>{{getUnit(item.drug_id)}}</span>
43
                 <span>{{getUnit(item.drug_id)}}</span>
39
               </td>
44
               </td>
40
-            
45
+              <td style="line-height:50px">
46
+                  {{item.price}}
47
+              </td>
41
               <td style="line-height: 50px">
48
               <td style="line-height: 50px">
42
                    <span>{{ item.warehousing_count }}</span>
49
                    <span>{{ item.warehousing_count }}</span>
43
               </td>
50
               </td>
51
+              
44
               <td style="line-height:50px">
52
               <td style="line-height:50px">
45
-                  {{item.price}}
53
+                  <span>{{(item.warehousing_count * item.price).toFixed(2)}}</span>
46
               </td>
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
             </tr>
60
             </tr>
51
             <tr>
61
             <tr>
52
               <td>合计</td>
62
               <td>合计</td>
53
-              <td colspan="5"></td>
63
+              <td colspan="11"></td>
54
               <td>{{allPrice.toFixed(2)}}</td>
64
               <td>{{allPrice.toFixed(2)}}</td>
55
             </tr>
65
             </tr>
56
             </tbody>
66
             </tbody>
74
 </template>
84
 </template>
75
 
85
 
76
 <script>
86
 <script>
77
-  import { getPrintStockGood } from '@/api/stock'
87
+  import { GetAllConfig,getPrintStockGood } from '@/api/stock'
78
   import { getDataConfig } from '@/utils/data'
88
   import { getDataConfig } from '@/utils/data'
79
   import { jsGetAge, uParseTime } from '@/utils/tools'
89
   import { jsGetAge, uParseTime } from '@/utils/tools'
80
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
90
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
217
         }
227
         }
218
         return name
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
     created() {
250
     created() {
251
+      this.GetConfigInfo()
222
       const order_id = this.$route.query.id;
252
       const order_id = this.$route.query.id;
223
       this.GetOrderDetail(order_id);
253
       this.GetOrderDetail(order_id);
224
       this.getList()
254
       this.getList()
255
+      
225
     }
256
     }
226
 
257
 
227
   }
258
   }

+ 4 - 4
src/xt_pages/stock/stockInOrderDetailPrint.vue Bestand weergeven

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