|
@@ -355,20 +355,43 @@ export default {
|
355
|
355
|
|
356
|
356
|
list[i].over_count_one = this.GetInitStartFlowOne(list[i].new_drug_in_flow_info,list[i].new_drug_profit_flow_info,list[i].new_drug_out_flow_info,list[i].new_drug_no_profit_flow_info,list[i].new_drug_cancel_flow_info,list[i].min_number,list[i].min_unit,list[i].max_unit)
|
357
|
357
|
|
358
|
|
- list[i].drugInMoney = "/"
|
359
|
|
- list[i].drugSaleMoney = "/"
|
|
358
|
+ // list[i].drugInMoney = "/"
|
|
359
|
+ // list[i].drugSaleMoney = "/"
|
|
360
|
+
|
|
361
|
+ list[i].drugInMoney = list[i].last_price
|
|
362
|
+ if(this.org_id == 0 || this.org_id == 10697){
|
|
363
|
+ list[i].drugSaleMoney = (list[i].over_count_one * list[i].last_price).toFixed(2)
|
|
364
|
+ }else{
|
|
365
|
+ list[i].drugSaleMoney = "/"
|
|
366
|
+ }
|
360
|
367
|
|
361
|
368
|
list[i].drugAdd = this.drugAddInfo(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
|
362
|
369
|
list[i].drugAddOne= this.drugAddInfoOne(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
|
363
|
370
|
|
|
371
|
+ // list[i].drugAddPrice = "/"
|
|
372
|
+ // list[i].drugAddSalePrice = "/"
|
|
373
|
+
|
|
374
|
+ if(this.org_id == 0 || this.org_id == 10697){
|
|
375
|
+ list[i].drugAddPrice = list[i].last_price
|
|
376
|
+ list[i].drugAddSalePrice = (list[i].last_price *list[i].drugAddOne).toFixed(2)
|
|
377
|
+ }else{
|
364
|
378
|
list[i].drugAddPrice = "/"
|
365
|
379
|
list[i].drugAddSalePrice = "/"
|
|
380
|
+ }
|
366
|
381
|
|
367
|
382
|
list[i].drugOut= this.getDrugOut(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
|
368
|
383
|
list[i].drugOutOne = this.getDrugOutOne(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
|
369
|
384
|
|
370
|
|
- list[i].drugOutPrice = "/"
|
371
|
|
- list[i].drugOutSalePrice = "/"
|
|
385
|
+ // list[i].drugOutPrice = "/"
|
|
386
|
+ // list[i].drugOutSalePrice = "/"
|
|
387
|
+
|
|
388
|
+ if(this.org_id == 0 || this.org_id == 10697){
|
|
389
|
+ list[i].drugOutPrice = list[i].retail_price
|
|
390
|
+ list[i].drugOutSalePrice = (list[i].drugOutOne * list[i].retail_price).toFixed(2)
|
|
391
|
+ }else{
|
|
392
|
+ list[i].drugOutPrice = "/"
|
|
393
|
+ list[i].drugOutSalePrice = "/"
|
|
394
|
+ }
|
372
|
395
|
|
373
|
396
|
|
374
|
397
|
if(this.org_id ==10265 || this.org_id ==10210 || this.org_id ==10402 || this.org_id ==10215){
|
|
@@ -376,8 +399,16 @@ export default {
|
376
|
399
|
}else{
|
377
|
400
|
list[i].overDrug = this.GetDrugOver(list[i].over_count_one,list[i].drugAddOne,list[i].drugOutOne,list[i].min_number,list[i].min_unit,list[i].max_unit)
|
378
|
401
|
}
|
379
|
|
- list[i].overDrugPrice = "/"
|
380
|
|
- list[i].oveDrugSaleMoney = "/"
|
|
402
|
+ // list[i].overDrugPrice = "/"
|
|
403
|
+ // list[i].oveDrugSaleMoney = "/"
|
|
404
|
+ list[i].overDrugOne = this.GetDrugOverOne(list[i].over_count_one,list[i].drugAddOne,list[i].drugOutOne,list[i].min_number,list[i].min_unit,list[i].max_unit)
|
|
405
|
+ if(this.org_id == 0 || this.org_id == 10697){
|
|
406
|
+ list[i].overDrugPrice = list[i].retail_price
|
|
407
|
+ list[i].oveDrugSaleMoney = (list[i].overDrugOne * list[i].retail_price).toFixed(2)
|
|
408
|
+ }else{
|
|
409
|
+ list[i].overDrugPrice = "/"
|
|
410
|
+ list[i].oveDrugSaleMoney = "/"
|
|
411
|
+ }
|
381
|
412
|
}
|
382
|
413
|
this.tableList = list;
|
383
|
414
|
this.total = response.data.data.total
|
|
@@ -1300,7 +1331,14 @@ export default {
|
1300
|
1331
|
return max_str + min_str;
|
1301
|
1332
|
}
|
1302
|
1333
|
},
|
1303
|
|
-
|
|
1334
|
+ GetDrugOverOne(totalone,totaltwo,totalthree,min_number,min_unit,max_unit){
|
|
1335
|
+ var total = 0
|
|
1336
|
+
|
|
1337
|
+ total = totalone + totaltwo - totalthree
|
|
1338
|
+
|
|
1339
|
+ return total
|
|
1340
|
+
|
|
1341
|
+ },
|
1304
|
1342
|
GetInitStartFlow(val1,val2,val3,val4,val5,min_number,min_unit,max_unit){
|
1305
|
1343
|
var total_one =0
|
1306
|
1344
|
var total_two = 0
|