Kaynağa Gözat

518合并代码

XMLWAN 2 yıl önce
ebeveyn
işleme
49723999c6

+ 8 - 64
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue Dosyayı Görüntüle

@@ -13,8 +13,8 @@
13 13
 
14 14
           <div style="float: left;margin-bottom: 1px;">单据编号:{{it.warehouse_out_order_number}}</div>
15 15
           <div style="float: right;margin-bottom: 1px;">{{getDateTwo()}}</div>
16
-         
17
-           <table class="print-table" border="1" v-if = "orgId != 10210">
16
+
17
+          <table class="print-table" border="1">
18 18
             <tbody>
19 19
             <tr>
20 20
               <td style="line-height: 50px" width="230">药品名称</td>
@@ -58,50 +58,6 @@
58 58
              </tr>
59 59
             </tbody>
60 60
           </table>
61
-          <table class="print-table" border="1" v-if = "orgId ==10210">
62
-            <tbody>
63
-            <tr>
64
-              <td style="line-height: 50px" width="230">药品名称</td>
65
-              <td style="line-height: 50px" width="230">规格型号</td>
66
-              <td style="line-height: 50px" width="80">出货数量</td>
67
-              <td style="line-height: 50px" width="50">单位</td>
68
-              <td style="line-height:50px" width="80">出库价格</td>
69
-              <td style="line-height: 50px" width="80">总价</td>
70
-              <td style="line-height: 50px" width="80">批号</td>
71
-              <td style="line-height: 50px" width="80">生产日期</td>
72
-              <td style="line-height: 50px" width="80">有效日期</td>
73
-            </tr>
74
-
75
-            <tr v-for="(item,i) in tableData" :key="i">
76
-              <td style="line-height: 50px">
77
-                <span>{{item.drug.drug_name}}</span>
78
-              </td>
79
-              <td style="line-height: 50px">
80
-                <span>{{item.drug.dose}}{{item.drug.dose_unit}}*{{item.drug.min_number}}{{item.drug.min_unit}}/{{item.drug.max_unit}}</span>
81
-              </td>
82
-              <td style="line-height: 50px">
83
-                  {{item.count}}
84
-              </td>
85
-              <td style="line-height: 50px">
86
-                <span>{{item.count_unit}}</span>
87
-              </td>
88
-              <td style="line-height:50px">
89
-                  {{item.price}}
90
-              </td>
91
-             <td  style="line-height:50px">
92
-                {{(item.count * item.price).toFixed(2)}}
93
-             </td>
94
-             <td>{{item.batch_number}}</td>
95
-             <td>{{(getTime(item.product_date))}}</td>
96
-             <td>{{(getTime(item.expire_date))}}</td>
97
-            </tr>
98
-             <tr>
99
-               <td style="line-height:50px">合计</td>
100
-               <td colspan="7"></td>
101
-               <td>{{getTotalPrice()}} </td>
102
-             </tr>
103
-            </tbody>
104
-          </table>
105 61
 
106 62
 
107 63
           <div v-if="orgId != 10024" style="display:flex;margin-top:1px;float:right;">
@@ -177,9 +133,7 @@
177 133
         manufactureList:[],
178 134
         tableList:[],
179 135
         loading:false,
180
-        warehouseList:[],
181
-        orgId:0,
182
-        tableData:[],
136
+        warehouseList:[]
183 137
       }
184 138
     },
185 139
     methods: {
@@ -361,7 +315,9 @@
361 315
         getDrugOutOrderDetailPrint(params).then(response=>{
362 316
           if(response.data.state ==1){
363 317
              var info = response.data.data.info
318
+             console.log("info",info)
364 319
             var warehousing = response.data.data.warehousing
320
+            console.log("ware2232",warehousing)
365 321
             this.warehouseList = warehousing
366 322
           
367 323
             for(let i=0;i<info.length;i++){
@@ -374,18 +330,15 @@
374 330
             }
375 331
             
376 332
             var manufacturerList = response.data.data.manufacturerList
333
+            console.log("manufacturelist",manufacturerList)
377 334
             this.manufactureList = manufacturerList
335
+            console.log("列表",info)
378 336
             this.tableList = info
379
-
380
-            var drug_warhouse_out = response.data.data.drug_warhouse_out
381
-            this.tableData = drug_warhouse_out
382 337
             this.loading = false
383
-
384
-           
385 338
           }
386 339
         })
387 340
       },
388
-      getAllPrince(){
341
+      getAllPrince(id){
389 342
         var count = 0
390 343
         for(let i=0;i<this.warehouseList.length;i++){
391 344
           if(id == this.warehouseList[i].warehouse_out_id){
@@ -393,15 +346,6 @@
393 346
           }
394 347
         }
395 348
         return count
396
-      },
397
-      getTotalPrice(){
398
-         var count = 0
399
-        for(let i=0;i<this.tableList.length;i++){
400
-          if(id == this.tableList[i].warehouse_out_id){
401
-             count +=this.tableList[i].count * this.tableList[i].price
402
-          }
403
-        }
404
-        return count.toFixed(2)
405 349
       }
406 350
     },
407 351
     created() {