|
@@ -382,6 +382,7 @@ export default {
|
382
|
382
|
}else if(this.org_id == 0 || this.org_id ==10644){
|
383
|
383
|
list[i].drugAddPrice = "/"
|
384
|
384
|
list[i].drugAddSalePrice = this.drugAddInfoOnePirce(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
|
|
385
|
+ console.log("本期增加加淀粉",list[i].drugAddSalePrice)
|
385
|
386
|
} else{
|
386
|
387
|
list[i].drugAddPrice = "/"
|
387
|
388
|
list[i].drugAddSalePrice = "/"
|
|
@@ -1525,62 +1526,81 @@ export default {
|
1525
|
1526
|
}
|
1526
|
1527
|
}
|
1527
|
1528
|
|
1528
|
|
- var total = (total_one_price + total_two_price -total_three_price-total_four_price + total_five_price).toFixed(2)
|
|
1529
|
+ var total = (total_one_price + total_two_price -total_three_price-total_four_price + total_five_price)
|
|
1530
|
+
|
|
1531
|
+ if(total >0){
|
|
1532
|
+ return total.toFixed(2)
|
|
1533
|
+ }else{
|
|
1534
|
+ return ""
|
|
1535
|
+ }
|
1529
|
1536
|
|
1530
|
|
- return total
|
1531
|
1537
|
},
|
1532
|
1538
|
drugAddInfoOnePirce(arr,min_number,min_unit,max_unit,arr2){
|
1533
|
|
- var total = 0
|
1534
|
|
- var totalone_price = 0
|
1535
|
|
- var total_two_price = 0
|
1536
|
|
- if(arr!=null && arr.length > 0){
|
1537
|
|
- for(let i=0;i<arr.length;i++){
|
1538
|
|
- totalone_price += arr[i].count * arr[i].price
|
1539
|
|
- }
|
|
1539
|
+
|
|
1540
|
+ var total = 0
|
|
1541
|
+ var totalone_price = 0
|
|
1542
|
+ var total_two_price = 0
|
|
1543
|
+ if(arr!=null && arr.length > 0){
|
|
1544
|
+ for(let i=0;i<arr.length;i++){
|
|
1545
|
+ totalone_price += arr[i].count * arr[i].price
|
1540
|
1546
|
}
|
1541
|
|
- if(arr2!=null && arr2.length >0){
|
1542
|
|
- for(let i=0;i<arr2.length;i++){
|
1543
|
|
- total_two_price += arr2[i].count * arr[i].price
|
1544
|
|
- }
|
|
1547
|
+ }
|
|
1548
|
+ if(arr2!=null && arr2.length >0){
|
|
1549
|
+ for(let i=0;i<arr2.length;i++){
|
|
1550
|
+ total_two_price += arr2[i].count * arr2[i].price
|
1545
|
1551
|
}
|
1546
|
|
- total = totalone_price + total_two_price
|
|
1552
|
+ }
|
|
1553
|
+ total = totalone_price + total_two_price
|
1547
|
1554
|
|
1548
|
|
-
|
1549
|
|
- return total
|
1550
|
|
- },
|
|
1555
|
+ if(total>0){
|
|
1556
|
+ return total.toFixed(2)
|
|
1557
|
+ }else{
|
|
1558
|
+ return ""
|
|
1559
|
+ }
|
|
1560
|
+
|
|
1561
|
+ },
|
1551
|
1562
|
getDrugOutPriceOne(arr,min_number,min_unit,max_unit,arr2,arr3){
|
1552
|
|
- var total = 0
|
1553
|
|
- var totalone_price = 0
|
1554
|
|
- var total_two_price = 0
|
1555
|
|
- var total_three_price = 0
|
1556
|
|
-
|
1557
|
|
- if(arr!=null&&arr.length > 0){
|
1558
|
|
- for(let i=0;i<arr.length;i++){
|
1559
|
|
- totalone_price +=arr[i].count * arr[i].price
|
|
1563
|
+ var total = 0
|
|
1564
|
+ var totalone_price = 0
|
|
1565
|
+ var total_two_price = 0
|
|
1566
|
+ var total_three_price = 0
|
|
1567
|
+
|
|
1568
|
+ if(arr!=null&&arr.length > 0){
|
|
1569
|
+ for(let i=0;i<arr.length;i++){
|
|
1570
|
+ totalone_price +=arr[i].count * arr[i].price
|
|
1571
|
+ }
|
1560
|
1572
|
}
|
1561
|
|
- }
|
1562
|
|
- if(arr2!=null && arr2.length>0){
|
1563
|
|
- for(let i=0;i<arr2.length;i++){
|
1564
|
|
- total_two_price +=arr2[i].count * arr[i].price
|
|
1573
|
+ if(arr2!=null && arr2.length>0){
|
|
1574
|
+ for(let i=0;i<arr2.length;i++){
|
|
1575
|
+ total_two_price +=arr2[i].count * arr2[i].price
|
|
1576
|
+ }
|
1565
|
1577
|
}
|
1566
|
|
- }
|
1567
|
|
- if(arr3!=null && arr3.length>0){
|
1568
|
|
- for(let i=0;i<arr3.length;i++){
|
1569
|
|
- total_three_price +=arr3[i].count * arr[i].price
|
|
1578
|
+ if(arr3!=null && arr3.length>0){
|
|
1579
|
+ for(let i=0;i<arr3.length;i++){
|
|
1580
|
+ total_three_price +=arr3[i].count * arr3[i].price
|
|
1581
|
+ }
|
1570
|
1582
|
}
|
1571
|
|
- }
|
1572
|
|
-
|
1573
|
|
- total = (totalone_price + total_two_price - total_three_price).toFixed(2)
|
1574
|
|
-
|
1575
|
|
- return total
|
|
1583
|
+
|
|
1584
|
+ total = (totalone_price + total_two_price - total_three_price)
|
|
1585
|
+ if(total >0){
|
|
1586
|
+ return total.toFixed(2)
|
|
1587
|
+ }else{
|
|
1588
|
+ return ""
|
|
1589
|
+ }
|
|
1590
|
+
|
1576
|
1591
|
},
|
1577
|
1592
|
GetDrugOverOnePrice(totalone,totaltwo,totalthree,min_number,min_unit,max_unit){
|
|
1593
|
+ console.log("totalone----------------",totalone)
|
|
1594
|
+ console.log("totaltwo----------------",totalone)
|
|
1595
|
+ console.log("totalthree----------------",totalthree)
|
1578
|
1596
|
var total = 0
|
1579
|
|
-
|
1580
|
|
- total = (totalone + totaltwo - totalthree).toFixed(2)
|
1581
|
|
-
|
1582
|
|
- return total
|
1583
|
|
-
|
|
1597
|
+ total = totalone + totaltwo - totalthree
|
|
1598
|
+ if(total >0 || total!="NaN"){
|
|
1599
|
+ console.log("haaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
|
|
1600
|
+ return total.toFixed(2)
|
|
1601
|
+ }else{
|
|
1602
|
+ return ""
|
|
1603
|
+ }
|
1584
|
1604
|
},
|
1585
|
1605
|
},
|
1586
|
1606
|
created(){
|