|
@@ -10,7 +10,7 @@
|
10
|
10
|
<div class="dialysis-print-order">
|
11
|
11
|
<div class="order-yy-name">{{orgname}}</div>
|
12
|
12
|
<div class="order-title" v-if="type == 1">入库单</div>
|
13
|
|
-
|
|
13
|
+
|
14
|
14
|
<div class="order-title" v-if="type == 2">出库单</div>
|
15
|
15
|
<div class="order-title" v-if="type == 4">退库单</div>
|
16
|
16
|
|
|
@@ -27,11 +27,11 @@
|
27
|
27
|
<td style="line-height: 50px" width="200">规格型号</td>
|
28
|
28
|
<td style="line-height: 50px" width="80">数量</td>
|
29
|
29
|
<td style="line-height: 50px" width="50">单位</td>
|
30
|
|
-
|
|
30
|
+
|
31
|
31
|
<td style="line-height:50px" width="80">
|
32
|
|
- <span v-if="type == 1">进货价</span>
|
33
|
|
- <span v-if="type == 2">出货价</span>
|
34
|
|
- <span v-if="type == 4">退库价</span>
|
|
32
|
+ <span v-if="type == 1">进货价</span>
|
|
33
|
+ <span v-if="type == 2">出货价</span>
|
|
34
|
+ <span v-if="type == 4">退库价</span>
|
35
|
35
|
</td>
|
36
|
36
|
<td style="line-height: 50px" width="80">总价</td>
|
37
|
37
|
<td style="line-height: 50px" width="80">备 注</td>
|
|
@@ -47,15 +47,16 @@
|
47
|
47
|
<td style="line-height: 50px">
|
48
|
48
|
{{item.specification_name}}
|
49
|
49
|
</td>
|
50
|
|
-
|
|
50
|
+
|
51
|
51
|
<td style="line-height: 50px">
|
52
|
52
|
<span v-if="type == 1"> {{ item.warehousing_count }}</span>
|
53
|
|
- <span v-if="type == 2">
|
54
|
|
- <span v-if="org_id == 3907 || org_id == 9919 || org_id == 9583">{{getStockCount(item.good_id) }}</span>
|
55
|
|
- <span v-if="org_id == 10265 || org_id == 10215">{{getMySelfCount(item.good_id) }}</span>
|
56
|
|
- <span v-if="org_id!=3907&&org_id!=10265&&org_id!=10285&&org_id!=9583&&org_id!=10215">{{getStockCount(item.good_id) }}</span>
|
|
53
|
+ <span v-if="type == 2">
|
|
54
|
+ <span v-if="org_id == 3907 || org_id == 9919 || org_id == 9583">{{getStockCount(item.good_id) }}</span>
|
|
55
|
+ <span v-if="org_id == 10265 || org_id == 10215">{{getMySelfCount(item.good_id) }}</span>
|
|
56
|
+ <span v-if="org_id == 10210 || org_id == 9671">{{getWarehouseOut(item.good_id)}}</span>
|
|
57
|
+ <span v-if="org_id!=3907&&org_id!=10265&&org_id!=10285&&org_id!=9583&&org_id!=10215&&org_id!=10210&&org_id!=9671">{{getStockCount(item.good_id) }}</span>
|
57
|
58
|
</span>
|
58
|
|
-
|
|
59
|
+
|
59
|
60
|
<span v-if="type == 4"> {{ item.count }}</span>
|
60
|
61
|
</td>
|
61
|
62
|
<td style="line-height: 50px">
|
|
@@ -63,11 +64,11 @@
|
63
|
64
|
</td>
|
64
|
65
|
<td style="line-height:50px">
|
65
|
66
|
<span v-if="type == 1"> {{ item.price }}</span>
|
66
|
|
- <span v-if="type == 2">
|
67
|
|
- <span v-if="org_id == 9919">{{ item.buy_price }}</span>
|
|
67
|
+ <span v-if="type == 2">
|
|
68
|
+ <span v-if="org_id == 9919">{{ item.buy_price }}</span>
|
68
|
69
|
<span v-else>
|
69
|
|
- {{ item.packing_price }}
|
70
|
|
- </span>
|
|
70
|
+ {{ item.packing_price }}
|
|
71
|
+ </span>
|
71
|
72
|
</span>
|
72
|
73
|
<span v-if="type == 4"> {{ item.price }}</span>
|
73
|
74
|
</td>
|
|
@@ -77,8 +78,9 @@
|
77
|
78
|
<span v-if="org_id == 3907 || org_id ==9919">
|
78
|
79
|
{{(getStockCount(item.good_id) * item.buy_price).toFixed(2)}}
|
79
|
80
|
</span>
|
80
|
|
- <span v-if="org_id == 10265 || org_id == 10215">{{(getMySelfCount(item.good_id)*item.packing_price).toFixed(2)}}</span>
|
81
|
|
- <span v-if="org_id!=3907&&org_id!=10265&&org_id!=9919&&org_id!=10215">{{(getStockCount(item.good_id) * item.packing_price).toFixed(2)}}</span>
|
|
81
|
+ <span v-if="org_id == 10265 || org_id == 10215 || org_id == 10188 || org_id == 10217 || org_id == 9956 || org_id == 10191 ">{{(getMySelfCount(item.good_id)*item.packing_price).toFixed(2)}}</span>
|
|
82
|
+ <span v-if="org_id == 10210 || org_id == 9671 ">{{(getWarehouseOut(item.good_id)*item.packing_price).toFixed(2)}}</span>
|
|
83
|
+ <span v-if="org_id!=3907&&org_id!=10265&&org_id!=9919&&org_id!=10215&&org_id!=9671 && org_id!=10188 && org_id!=10217 && org_id!= 9956 && org_id!=10191">{{(getStockCount(item.good_id) * item.packing_price).toFixed(2)}}</span>
|
82
|
84
|
</span>
|
83
|
85
|
<span v-if="type == 4">{{(item.count * item.price).toFixed(2)}}</span>
|
84
|
86
|
</td>
|
|
@@ -97,19 +99,19 @@
|
97
|
99
|
<td style="line-height: 50px" width="50"></td>
|
98
|
100
|
<td style="line-height: 50px" width="80"></td>
|
99
|
101
|
<td style="line-height: 50px" width="80">
|
100
|
|
- <span v-if="type == 1">{{getWareInfoTotal().toFixed(2)}}</span>
|
|
102
|
+ <span v-if="type == 1">{{getWareInfoTotal().toFixed(2)}}</span>
|
101
|
103
|
<span v-if="type == 2">
|
102
|
104
|
<span v-if="org_id == 3907 || org_id == 9919">{{getWareOutTotalOne().toFixed(2)}}</span>
|
103
|
105
|
<span v-if="org_id == 10265 || org_id == 10215">{{getWareOutTotalSix().toFixed(2)}}</span>
|
104
|
106
|
<span v-if="org_id!=3907 && org_id!=9919 && org_id!=10265 && org_id!=10215"> {{getWareOutTotal().toFixed(2)}}</span>
|
105
|
|
- </span>
|
106
|
|
- <span v-if="type == 4">{{getWareOutTotal().toFixed(2)}}</span>
|
|
107
|
+ </span>
|
|
108
|
+ <span v-if="type == 4">{{getWareOutTotal().toFixed(2)}}</span>
|
107
|
109
|
</td>
|
108
|
110
|
<td style="line-height: 50px" width="80">
|
109
|
|
-
|
|
111
|
+
|
110
|
112
|
</td>
|
111
|
113
|
</tr>
|
112
|
|
- </table>
|
|
114
|
+ </table>
|
113
|
115
|
|
114
|
116
|
<div style="display:flex;margin-top:20px;float:right;">
|
115
|
117
|
<div style="width:50px;">审批:</div><div style="width:100px;"></div>
|
|
@@ -165,7 +167,8 @@
|
165
|
167
|
stockTotal:[],
|
166
|
168
|
wareOutInfo:[],
|
167
|
169
|
org_id:this.$store.getters.xt_user.org.id,
|
168
|
|
- informationList:[]
|
|
170
|
+ informationList:[],
|
|
171
|
+ wareOutList:[],
|
169
|
172
|
}
|
170
|
173
|
},
|
171
|
174
|
methods: {
|
|
@@ -206,7 +209,7 @@
|
206
|
209
|
})
|
207
|
210
|
},
|
208
|
211
|
calCount(stock) {
|
209
|
|
-
|
|
212
|
+
|
210
|
213
|
let total = 0
|
211
|
214
|
var array = []
|
212
|
215
|
if (this.type == 1) {
|
|
@@ -306,7 +309,7 @@
|
306
|
309
|
},
|
307
|
310
|
|
308
|
311
|
getStockCount(id){
|
309
|
|
-
|
|
312
|
+
|
310
|
313
|
var count = ""
|
311
|
314
|
for(let i=0;i<this.stockTotal.length;i++){
|
312
|
315
|
if(id == this.stockTotal[i].good_id){
|
|
@@ -329,19 +332,19 @@
|
329
|
332
|
for(let i=0;i<this.informationList.length;i++){
|
330
|
333
|
for(let j=0;j<this.wareOutInfo.length;j++){
|
331
|
334
|
if(this.informationList[i].id == this.wareOutInfo[j].good_id){
|
332
|
|
- this.wareOutInfo[j].buy_price = this.informationList[i].buy_price
|
|
335
|
+ this.wareOutInfo[j].buy_price = this.informationList[i].buy_price
|
333
|
336
|
}
|
334
|
337
|
}
|
335
|
338
|
}
|
336
|
|
-
|
|
339
|
+
|
337
|
340
|
for(let j=0;j<this.wareOutInfo.length;j++){
|
338
|
341
|
if(id == this.wareOutInfo[j].good_id){
|
339
|
342
|
sum += (this.wareOutInfo[j].buy_price * this.wareOutInfo[j].count).toFixed(2)
|
340
|
343
|
}
|
341
|
344
|
}
|
342
|
|
-
|
|
345
|
+
|
343
|
346
|
return sum
|
344
|
|
-
|
|
347
|
+
|
345
|
348
|
},
|
346
|
349
|
getReailPrice(id){
|
347
|
350
|
var price = 0
|
|
@@ -379,8 +382,8 @@
|
379
|
382
|
this.stockDatas = list
|
380
|
383
|
var stockTotal = response.data.data.stockTotal
|
381
|
384
|
this.stockTotal = stockTotal
|
382
|
|
-
|
383
|
|
-
|
|
385
|
+
|
|
386
|
+
|
384
|
387
|
}
|
385
|
388
|
})
|
386
|
389
|
},
|
|
@@ -390,7 +393,7 @@
|
390
|
393
|
if(response.data.state == 1){
|
391
|
394
|
var total = response.data.data.total
|
392
|
395
|
var list = response.data.data.list
|
393
|
|
- this.stockDatas = list
|
|
396
|
+ this.wareOutList = list
|
394
|
397
|
}
|
395
|
398
|
})
|
396
|
399
|
},
|
|
@@ -431,12 +434,33 @@
|
431
|
434
|
}
|
432
|
435
|
return total
|
433
|
436
|
},
|
|
437
|
+ // getPrintStockGood(){
|
|
438
|
+
|
|
439
|
+ // getPrintStockGood(this.queryParams).then(response=>{
|
|
440
|
+ // if(response.data.state == 1){
|
|
441
|
+ // var list = response.data.data.list
|
|
442
|
+ // console.log("list23323232323232",list)
|
|
443
|
+ // this.stockDatas = list
|
|
444
|
+
|
|
445
|
+ // }
|
|
446
|
+ // })
|
|
447
|
+ // },
|
|
448
|
+ getWarehouseOut(good_id){
|
|
449
|
+ var total = 0
|
|
450
|
+ for(let i=0;i<this.wareOutList.length;i++){
|
|
451
|
+ if(this.wareOutList[i].good_id == good_id){
|
|
452
|
+ total += this.wareOutList[i].count
|
|
453
|
+ }
|
|
454
|
+ }
|
|
455
|
+ return total
|
|
456
|
+ }
|
434
|
457
|
},
|
435
|
458
|
created() {
|
436
|
459
|
var xtuser = this.$store.getters.xt_user
|
437
|
460
|
this.orgname = xtuser.org.org_name
|
438
|
461
|
this.goodUnit = this.$store.getters.good_unit
|
439
|
462
|
this.getGoodDetailPrintList()
|
|
463
|
+ this.getStockDetail()
|
440
|
464
|
}
|
441
|
465
|
|
442
|
466
|
}
|