|
@@ -7,6 +7,7 @@
|
7
|
7
|
</div>
|
8
|
8
|
<div class="app-container ">
|
9
|
9
|
<div id="dialysis-print-box">
|
|
10
|
+ <div v-if="org_id!=9671">
|
10
|
11
|
<div class="dialysis-print-order" v-for="(it,index) in tableList" :key="index">
|
11
|
12
|
<div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
|
12
|
13
|
<div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
|
|
@@ -58,8 +59,77 @@
|
58
|
59
|
</tr>
|
59
|
60
|
</tbody>
|
60
|
61
|
</table>
|
|
62
|
+ <div v-if="orgId != 10024" style="display:flex;margin-top:1px;float:right;">
|
|
63
|
+ <div style="width:50px;">审批:</div><div style="width:100px;"></div>
|
|
64
|
+ <div style="width:80px;">药材主任:</div><div style="width:100px;"></div>
|
|
65
|
+ <div style="width:50px;">会计:</div><div style="width:100px;"></div>
|
|
66
|
+ <div style="width:50px;">审核:</div><div style="width:100px;"></div>
|
|
67
|
+ <div style="width:70px;">制单人:</div><div style="width:100px;"></div>
|
|
68
|
+ </div>
|
|
69
|
+ <div v-if="orgId == 10024" style="display:flex;margin-top:1px;float:right;">
|
|
70
|
+ <div style="width:50px;">科室:</div><div style="width:60px;"></div>
|
|
71
|
+ <div style="width:70px;">领料人:</div><div style="width:60px;"></div>
|
|
72
|
+ <div style="width:80px;">审批:</div><div style="width:100px;">肖庆娥</div>
|
|
73
|
+ <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
|
|
74
|
+ <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>
|
|
75
|
+ <div style="width:70px;">制单人:</div><div style="width:100px;">徐立琼</div>
|
|
76
|
+ </div>
|
|
77
|
+ </div>
|
|
78
|
+ </div>
|
|
79
|
+
|
61
|
80
|
|
|
81
|
+ <div v-if="org_id == 9671">
|
|
82
|
+ <div class="dialysis-print-order" v-for="(it,index) in tableData" :key="index" >
|
|
83
|
+ <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
|
|
84
|
+ <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
|
62
|
85
|
|
|
86
|
+ <div style="float: left;margin-bottom: 1px;">单据编号:{{it.warehouse_out_order_number}}</div>
|
|
87
|
+ <div style="float: right;margin-bottom: 1px;">{{getDateTwo()}}</div>
|
|
88
|
+
|
|
89
|
+ <table class="print-table" border="1">
|
|
90
|
+ <tbody>
|
|
91
|
+ <tr>
|
|
92
|
+ <td style="line-height: 50px" width="230">药品名称</td>
|
|
93
|
+ <td style="line-height: 50px" width="230">规格型号</td>
|
|
94
|
+ <td style="line-height: 50px" width="80">出货数量</td>
|
|
95
|
+ <td style="line-height: 50px" width="50">单位</td>
|
|
96
|
+ <td style="line-height:50px" width="80">出库价格</td>
|
|
97
|
+ <td style="line-height: 50px" width="80">总价</td>
|
|
98
|
+ <td style="line-height: 50px" width="80">批号</td>
|
|
99
|
+ <td style="line-height: 50px" width="80">生产日期</td>
|
|
100
|
+ <td style="line-height: 50px" width="80">有效日期</td>
|
|
101
|
+ </tr>
|
|
102
|
+
|
|
103
|
+ <tr v-for="(item,i) in it.xt_drug_warehouse_out_info" :key="i">
|
|
104
|
+ <td style="line-height: 50px">
|
|
105
|
+ <span>{{item.drug.drug_name}}</span>
|
|
106
|
+ </td>
|
|
107
|
+ <td style="line-height: 50px">
|
|
108
|
+ <span>{{item.drug.dose}}{{item.dose_unit}}*{{item.drug.min_number}}{{item.drug.min_unit}}/{{item.drug.max_unit}}</span>
|
|
109
|
+ </td>
|
|
110
|
+ <td style="line-height: 50px">
|
|
111
|
+ {{item.count}}
|
|
112
|
+ </td>
|
|
113
|
+ <td style="line-height: 50px">
|
|
114
|
+ <span>{{item.count_unit}}</span>
|
|
115
|
+ </td>
|
|
116
|
+ <td style="line-height:50px">
|
|
117
|
+ {{item.price}}
|
|
118
|
+ </td>
|
|
119
|
+ <td style="line-height:50px">
|
|
120
|
+ {{(item.count * item.price).toFixed(2)}}
|
|
121
|
+ </td>
|
|
122
|
+ <td>{{item.batch_number}}</td>
|
|
123
|
+ <td>{{(getTime(item.product_date))}}</td>
|
|
124
|
+ <td>{{(getTime(item.expire_date))}}</td>
|
|
125
|
+ </tr>
|
|
126
|
+ <tr>
|
|
127
|
+ <td style="line-height:50px">合计</td>
|
|
128
|
+ <td colspan="7"></td>
|
|
129
|
+ <td>{{getTotalPrince(it.xt_drug_warehouse_out_info).toFixed(2)}}</td>
|
|
130
|
+ </tr>
|
|
131
|
+ </tbody>
|
|
132
|
+ </table>
|
63
|
133
|
<div v-if="orgId != 10024" style="display:flex;margin-top:1px;float:right;">
|
64
|
134
|
<div style="width:50px;">审批:</div><div style="width:100px;"></div>
|
65
|
135
|
<div style="width:80px;">药材主任:</div><div style="width:100px;"></div>
|
|
@@ -77,6 +147,7 @@
|
77
|
147
|
</div>
|
78
|
148
|
</div>
|
79
|
149
|
|
|
150
|
+ </div>
|
80
|
151
|
</div>
|
81
|
152
|
|
82
|
153
|
</div>
|
|
@@ -133,7 +204,8 @@
|
133
|
204
|
manufactureList:[],
|
134
|
205
|
tableList:[],
|
135
|
206
|
loading:false,
|
136
|
|
- warehouseList:[]
|
|
207
|
+ warehouseList:[],
|
|
208
|
+ tableData:[],
|
137
|
209
|
}
|
138
|
210
|
},
|
139
|
211
|
methods: {
|
|
@@ -175,25 +247,25 @@
|
175
|
247
|
const params = {
|
176
|
248
|
'id': order_id
|
177
|
249
|
};
|
178
|
|
- getDrugWarehouseOutInfo(params).then(response => {
|
179
|
|
- if (response.data.state == 0) {
|
|
250
|
+ getDrugWarehouseOutInfo(params).then(response => {
|
|
251
|
+ if (response.data.state == 0) {
|
180
|
252
|
|
181
|
|
- this.$message.error(response.data.msg);
|
182
|
|
- return false
|
183
|
|
- } else {
|
184
|
|
- for (let i = 0; i < response.data.data.list.length; i++) {
|
185
|
|
- this.warehousingOutInfo.warehousingOutData.push(response.data.data.list[i])
|
186
|
|
- }
|
187
|
|
- var total_price = 0;
|
188
|
|
- for(let i=0;i<this.warehousingOutInfo.warehousingOutData.length;i++){
|
189
|
|
- total_price += this.warehousingOutInfo.warehousingOutData[i].count * this.warehousingOutInfo.warehousingOutData[i].price
|
190
|
|
- }
|
191
|
|
- this.allPrice = total_price;
|
192
|
|
- this.warehousingOutInfo.info = response.data.data.info;
|
193
|
|
- this.handleSpanTempArr()
|
|
253
|
+ this.$message.error(response.data.msg);
|
|
254
|
+ return false
|
|
255
|
+ } else {
|
|
256
|
+ for (let i = 0; i < response.data.data.list.length; i++) {
|
|
257
|
+ this.warehousingOutInfo.warehousingOutData.push(response.data.data.list[i])
|
194
|
258
|
}
|
195
|
|
- })
|
196
|
|
- },
|
|
259
|
+ var total_price = 0;
|
|
260
|
+ for(let i=0;i<this.warehousingOutInfo.warehousingOutData.length;i++){
|
|
261
|
+ total_price += this.warehousingOutInfo.warehousingOutData[i].count * this.warehousingOutInfo.warehousingOutData[i].price
|
|
262
|
+ }
|
|
263
|
+ this.allPrice = total_price;
|
|
264
|
+ this.warehousingOutInfo.info = response.data.data.info;
|
|
265
|
+ this.handleSpanTempArr()
|
|
266
|
+ }
|
|
267
|
+ })
|
|
268
|
+ },
|
197
|
269
|
getList() {
|
198
|
270
|
let params = {
|
199
|
271
|
page: this.page,
|
|
@@ -213,7 +285,7 @@
|
213
|
285
|
for (let i = 0; i < response.data.data.list.length; i++) {
|
214
|
286
|
this.list.push(response.data.data.list[i])
|
215
|
287
|
}
|
216
|
|
- console.log("list222222",this.list)
|
|
288
|
+
|
217
|
289
|
}
|
218
|
290
|
})
|
219
|
291
|
},
|
|
@@ -265,7 +337,6 @@
|
265
|
337
|
getDrugWarehouseOrderInfo().then(response=>{
|
266
|
338
|
if(response.data.state == 1){
|
267
|
339
|
var list = response.data.data.list
|
268
|
|
- console.log("入库单详情",list)
|
269
|
340
|
this.drugOrderList = list
|
270
|
341
|
}
|
271
|
342
|
})
|
|
@@ -315,9 +386,7 @@
|
315
|
386
|
getDrugOutOrderDetailPrint(params).then(response=>{
|
316
|
387
|
if(response.data.state ==1){
|
317
|
388
|
var info = response.data.data.info
|
318
|
|
- console.log("info",info)
|
319
|
389
|
var warehousing = response.data.data.warehousing
|
320
|
|
- console.log("ware2232",warehousing)
|
321
|
390
|
this.warehouseList = warehousing
|
322
|
391
|
|
323
|
392
|
for(let i=0;i<info.length;i++){
|
|
@@ -330,10 +399,11 @@
|
330
|
399
|
}
|
331
|
400
|
|
332
|
401
|
var manufacturerList = response.data.data.manufacturerList
|
333
|
|
- console.log("manufacturelist",manufacturerList)
|
|
402
|
+
|
334
|
403
|
this.manufactureList = manufacturerList
|
335
|
|
- console.log("列表",info)
|
|
404
|
+
|
336
|
405
|
this.tableList = info
|
|
406
|
+ this.tableData = response.data.data.drug_warhouse_out
|
337
|
407
|
this.loading = false
|
338
|
408
|
}
|
339
|
409
|
})
|
|
@@ -346,7 +416,14 @@
|
346
|
416
|
}
|
347
|
417
|
}
|
348
|
418
|
return count
|
349
|
|
- }
|
|
419
|
+ },
|
|
420
|
+ getTotalPrice(val){
|
|
421
|
+ var count = 0
|
|
422
|
+ for(let i=0;i<val.length;i++){
|
|
423
|
+ count +=val[i].count * val[i].price
|
|
424
|
+ }
|
|
425
|
+ return count.toFixed(2)
|
|
426
|
+ }
|
350
|
427
|
},
|
351
|
428
|
created() {
|
352
|
429
|
this.orgName = this.$store.getters.xt_user.org.org_name;
|