|
@@ -293,7 +293,7 @@
|
293
|
293
|
<tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
|
294
|
294
|
<td style="border-right: none; border-inline-end:none;text-align: center">
|
295
|
295
|
<span v-if="is_sys==1 || is_sys == 5">{{getOutCountSix(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)}}</span>
|
296
|
|
- <!-- <span v-if="is_sys == 1"> {{getOutCount(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span> -->
|
|
296
|
+ <span v-if="is_sys == 12">{{getOutCountSeven(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)}}</span>
|
297
|
297
|
<span v-if="is_sys == 0"> {{getOutCountOne(item.batch_number,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}} </span>
|
298
|
298
|
</td>
|
299
|
299
|
</tr>
|
|
@@ -303,7 +303,7 @@
|
303
|
303
|
<template slot-scope="scope">
|
304
|
304
|
<tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
|
305
|
305
|
<td style="border-right: none; border-inline-end:none;text-align: center">
|
306
|
|
- <span v-if="is_sys == 1 || is_sys == 5">{{getBatchNumber(item.warehousing_detail_id)}}</span>
|
|
306
|
+ <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getBatchNumber(item.warehousing_detail_id)}}</span>
|
307
|
307
|
<span v-if="is_sys == 0">{{getBatchNumberOne(item.batch_number)}}</span>
|
308
|
308
|
</td>
|
309
|
309
|
</tr>
|
|
@@ -322,7 +322,7 @@
|
322
|
322
|
<template slot-scope="scope">
|
323
|
323
|
<tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
|
324
|
324
|
<td style="border-right: none; border-inline-end: none;text-align: center">
|
325
|
|
- <span v-if="is_sys == 1 || is_sys == 5">{{getPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
|
|
325
|
+ <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
|
326
|
326
|
<span v-if="is_sys == 0">
|
327
|
327
|
<span v-if="scope.row.child.length == 1">
|
328
|
328
|
{{getPriceTwo(item.warehouse_out_id,item.drug_id)}}
|
|
@@ -341,7 +341,7 @@
|
341
|
341
|
<template slot-scope="scope">
|
342
|
342
|
<tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
|
343
|
343
|
<td style="border-right: none; border-inline-end: none;text-align: center">
|
344
|
|
- <span v-if="is_sys == 1 || is_sys == 5">{{getTotalPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
|
|
344
|
+ <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getTotalPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
|
345
|
345
|
<span v-if="is_sys == 0">
|
346
|
346
|
<span v-if="scope.row.child.length == 1">{{item.retail_price}}</span>
|
347
|
347
|
<span v-if="scope.row.child.length > 1">{{item.count * item.price}}</span>
|
|
@@ -355,7 +355,7 @@
|
355
|
355
|
<template slot-scope="scope">
|
356
|
356
|
<tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
|
357
|
357
|
<td style="border-right: none; border-inline-end: none;text-align: center">
|
358
|
|
- <span v-if="is_sys == 1 || is_sys == 5"> {{getAllManufacturerName(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
|
|
358
|
+ <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12"> {{getAllManufacturerName(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
|
359
|
359
|
<span v-if="is_sys == 0"> {{getManufacturerName(scope.row.manufacturer)}}</span>
|
360
|
360
|
</td>
|
361
|
361
|
</tr>
|
|
@@ -365,7 +365,7 @@
|
365
|
365
|
<template slot-scope="scope">
|
366
|
366
|
<tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
|
367
|
367
|
<td style="border-right: none; border-inline-end: none;text-align: center">
|
368
|
|
- <span v-if="is_sys == 1 || is_sys == 5"> {{getProductDate(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
|
|
368
|
+ <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12"> {{getProductDate(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
|
369
|
369
|
<span v-if="is_sys == 0"> {{getTime(scope.row.product_date)}}</span>
|
370
|
370
|
</td>
|
371
|
371
|
</tr>
|
|
@@ -375,7 +375,7 @@
|
375
|
375
|
<template slot-scope="scope">
|
376
|
376
|
<tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
|
377
|
377
|
<td style="border-right: none; border-inline-end: none;text-align: center">
|
378
|
|
- <span v-if="is_sys == 1 || is_sys == 5"> {{getExpiryDate(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
|
|
378
|
+ <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12"> {{getExpiryDate(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
|
379
|
379
|
<span v-if="is_sys == 0"> {{getTime(scope.row.expiry_date)}}</span>
|
380
|
380
|
</td>
|
381
|
381
|
</tr>
|
|
@@ -385,7 +385,7 @@
|
385
|
385
|
<template slot-scope="scope">
|
386
|
386
|
<tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
|
387
|
387
|
<td style="border-right: none; border-inline-end: none;text-align: center">
|
388
|
|
- <span v-if="is_sys ==1 || is_sys ==5">{{getDealer(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
|
|
388
|
+ <span v-if="is_sys ==1 || is_sys ==5 || is_sys ==12">{{getDealer(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
|
389
|
389
|
<span v-if="is_sys ==0">{{getDealerName(scope.row.dealer)}}</span>
|
390
|
390
|
</td>
|
391
|
391
|
</tr>
|
|
@@ -395,7 +395,7 @@
|
395
|
395
|
<template slot-scope="scope">
|
396
|
396
|
<tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
|
397
|
397
|
<td style="border-right: none; border-inline-end: none;text-align: center">
|
398
|
|
- <span v-if="is_sys == 1 || is_sys == 5">{{getNumber(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
|
|
398
|
+ <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getNumber(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
|
399
|
399
|
<span v-if="is_sys == 0">{{scope.row.number}}</span>
|
400
|
400
|
</td>
|
401
|
401
|
</tr>
|
|
@@ -405,7 +405,7 @@
|
405
|
405
|
<template slot-scope="scope">
|
406
|
406
|
<tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
|
407
|
407
|
<td style="border-right: none; border-inline-end: none;text-align: center">
|
408
|
|
- <span v-if="is_sys == 1 || is_sys == 5">{{getRemark(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
|
|
408
|
+ <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getRemark(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
|
409
|
409
|
<span v-if="is_sys == 0">{{scope.row.remark}}</span>
|
410
|
410
|
</td>
|
411
|
411
|
</tr>
|
|
@@ -1277,14 +1277,14 @@ export default {
|
1277
|
1277
|
list[i].number = "";
|
1278
|
1278
|
}
|
1279
|
1279
|
list[i].child = []
|
1280
|
|
- if(list[i].is_sys == 1){
|
|
1280
|
+ if(list[i].is_sys == 1 ){
|
1281
|
1281
|
for(let j=0;j<drugListOne.length;j++){
|
1282
|
1282
|
if(list[i].drug_id == drugListOne[j].drug_id){
|
1283
|
1283
|
list[i].child.push(drugListOne[j])
|
1284
|
1284
|
}
|
1285
|
1285
|
}
|
1286
|
1286
|
}
|
1287
|
|
- if(list[i].is_sys == 0){
|
|
1287
|
+ if(list[i].is_sys == 0 || list[i].is_sys == 5 || list[i].is_sys == 12){
|
1288
|
1288
|
for(let j=0;j<drugListTwo.length;j++){
|
1289
|
1289
|
if(list[i].drug_id == drugListTwo[j].drug_id){
|
1290
|
1290
|
list[i].child.push(drugListTwo[j])
|
|
@@ -1656,12 +1656,14 @@ export default {
|
1656
|
1656
|
var total = 0
|
1657
|
1657
|
var max_str = ""
|
1658
|
1658
|
var min_str = ""
|
|
1659
|
+ console.log("outlist",this.outList)
|
|
1660
|
+ console.log("warehouse_info_id",warehouse_info_id)
|
1659
|
1661
|
for(let j=0;j<this.outList.length;j++){
|
1660
|
1662
|
if(warehouse_info_id == this.outList[j].warehouse_info_id && drug_id == this.outList[j].drug_id){
|
1661
|
1663
|
arr.push(this.outList[j])
|
1662
|
1664
|
}
|
1663
|
1665
|
}
|
1664
|
|
-
|
|
1666
|
+ console.log("arr23322332",arr)
|
1665
|
1667
|
if(arr.length > 0){
|
1666
|
1668
|
for(let i=0;i<arr.length;i++){
|
1667
|
1669
|
total +=arr[i].count
|
|
@@ -1685,6 +1687,46 @@ export default {
|
1685
|
1687
|
}
|
1686
|
1688
|
return max_str + min_str;
|
1687
|
1689
|
},
|
|
1690
|
+ getOutCountSeven(warehouse_info_id,max_unit,min_unit,min_number,drug_id){
|
|
1691
|
+ var arr = []
|
|
1692
|
+ var total = 0
|
|
1693
|
+ var max_str = ""
|
|
1694
|
+ var min_str = ""
|
|
1695
|
+ console.log("outlist",this.outList)
|
|
1696
|
+ console.log("warehouse_info_id",warehouse_info_id)
|
|
1697
|
+ for(let j=0;j<this.outList.length;j++){
|
|
1698
|
+ if(this.outList[i].count_unit == max_unit){
|
|
1699
|
+ this.outList[i].count = this.outList[i].count * min_number
|
|
1700
|
+ }
|
|
1701
|
+ if(warehouse_info_id == this.outList[j].warehouse_info_id && drug_id == this.outList[j].drug_id){
|
|
1702
|
+ arr.push(this.outList[j])
|
|
1703
|
+ }
|
|
1704
|
+ }
|
|
1705
|
+ console.log("arr23322332",arr)
|
|
1706
|
+ if(arr.length > 0){
|
|
1707
|
+ for(let i=0;i<arr.length;i++){
|
|
1708
|
+
|
|
1709
|
+ total +=arr[i].count
|
|
1710
|
+ }
|
|
1711
|
+ }
|
|
1712
|
+
|
|
1713
|
+ if (total < min_number) {
|
|
1714
|
+ min_str = total + min_unit;
|
|
1715
|
+ }
|
|
1716
|
+ if (total == 0) {
|
|
1717
|
+ min_str = "";
|
|
1718
|
+ max_str = "";
|
|
1719
|
+ }
|
|
1720
|
+ if (total >= min_number) {
|
|
1721
|
+ if (parseInt(total / min_number) != 0) {
|
|
1722
|
+ max_str = parseInt(total / min_number) + max_unit;
|
|
1723
|
+ }
|
|
1724
|
+ if (total % min_number != 0) {
|
|
1725
|
+ min_str = (total % min_number) + min_unit;
|
|
1726
|
+ }
|
|
1727
|
+ }
|
|
1728
|
+ return max_str + min_str;
|
|
1729
|
+ },
|
1688
|
1730
|
getOutCount(warehouse_info_id,max_unit,min_unit,min_number){
|
1689
|
1731
|
var arr = []
|
1690
|
1732
|
var total = 0
|