소스 검색

hah阿凡达

28169 3 일 전
부모
커밋
9c005a3f81

+ 5 - 5
src/xt_pages/stock/drugs/components/purchaseNewDrugQuery.vue 파일 보기

626
            
626
            
627
               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) 
627
               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) 
628
              
628
              
629
-              if(this.org_id == 0 || this.org_id == 10644){
629
+              if(this.org_id == 0 || this.org_id == 10644 || this.org_id == 10752){
630
                 list[i].drugInMoney = ""
630
                 list[i].drugInMoney = ""
631
               }else{
631
               }else{
632
                 list[i].drugInMoney = list[i].last_price
632
                 list[i].drugInMoney = list[i].last_price
633
               }
633
               }
634
               if(this.org_id == 10697){
634
               if(this.org_id == 10697){
635
                 list[i].drugSaleMoney =  (list[i].over_count_one * list[i].last_price).toFixed(2)
635
                 list[i].drugSaleMoney =  (list[i].over_count_one * list[i].last_price).toFixed(2)
636
-              }else if(this.org_id == 0 || this.org_id == 10644){
636
+              }else if(this.org_id == 0 || this.org_id == 10644 || this.org_id == 10752){
637
               
637
               
638
                 list[i].drugSaleMoney =  this.GetInitStartFlowPice(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)
638
                 list[i].drugSaleMoney =  this.GetInitStartFlowPice(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)
639
               } else{
639
               } else{
647
               if( this.org_id == 10697){
647
               if( this.org_id == 10697){
648
                  list[i].drugAddPrice = list[i].last_price
648
                  list[i].drugAddPrice = list[i].last_price
649
                  list[i].drugAddSalePrice = (list[i].last_price *list[i].drugAddOne).toFixed(2)
649
                  list[i].drugAddSalePrice = (list[i].last_price *list[i].drugAddOne).toFixed(2)
650
-              }else if(this.org_id == 0 || this.org_id == 10644){
650
+              }else if(this.org_id == 0 || this.org_id == 10644 || this.org_id == 10752){
651
                 list[i].drugAddPrice = "/"
651
                 list[i].drugAddPrice = "/"
652
                 list[i].drugAddSalePrice = this.drugAddInfoOnePirce(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
652
                 list[i].drugAddSalePrice = this.drugAddInfoOnePirce(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
653
                 console.log("本期增加加淀粉",list[i].drugAddSalePrice)
653
                 console.log("本期增加加淀粉",list[i].drugAddSalePrice)
663
               if( this.org_id == 10697){
663
               if( this.org_id == 10697){
664
                 list[i].drugOutPrice = list[i].retail_price
664
                 list[i].drugOutPrice = list[i].retail_price
665
                 list[i].drugOutSalePrice = (list[i].drugOutOne * list[i].retail_price).toFixed(2)
665
                 list[i].drugOutSalePrice = (list[i].drugOutOne * list[i].retail_price).toFixed(2)
666
-              }else if(this.org_id == 0 || this.org_id == 10644){
666
+              }else if(this.org_id == 0 || this.org_id == 10644 || this.org_id == 10752){
667
                 list[i].drugOutPrice = "/"
667
                 list[i].drugOutPrice = "/"
668
                 list[i].drugOutSalePrice= this.getDrugOutPriceOne(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
668
                 list[i].drugOutSalePrice= this.getDrugOutPriceOne(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
669
               } else{
669
               } else{
683
             if(this.org_id == 10697){
683
             if(this.org_id == 10697){
684
                 list[i].overDrugPrice = list[i].retail_price
684
                 list[i].overDrugPrice = list[i].retail_price
685
                 list[i].oveDrugSaleMoney = (list[i].overDrugOne * list[i].retail_price).toFixed(2)
685
                 list[i].oveDrugSaleMoney = (list[i].overDrugOne * list[i].retail_price).toFixed(2)
686
-            }else if(this.org_id == 0 || this.org_id ==10644){
686
+            }else if(this.org_id == 0 || this.org_id ==10644 || this.org_id == 10752){
687
               console.log("加个2323323",list[i].drugAddSalePrice)
687
               console.log("加个2323323",list[i].drugAddSalePrice)
688
                 list[i].overDrugPrice = ""
688
                 list[i].overDrugPrice = ""
689
                 list[i].oveDrugSaleMoney = this.GetDrugOverOnePrice(list[i].drugSaleMoney,list[i].drugAddSalePrice,list[i].drugOutSalePrice,list[i].min_number,list[i].min_unit,list[i].max_unit)
689
                 list[i].oveDrugSaleMoney = this.GetDrugOverOnePrice(list[i].drugSaleMoney,list[i].drugAddSalePrice,list[i].drugOutSalePrice,list[i].min_number,list[i].min_unit,list[i].max_unit)

+ 5 - 5
src/xt_pages/stock/drugs/components/purchaseNewDrugQueryPrint.vue 파일 보기

357
               
357
               
358
                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) 
358
                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) 
359
                
359
                
360
-               if(this.org_id == 0 || this.org_id == 10644){
360
+               if(this.org_id == 0 || this.org_id == 10644 || this.org_id == 10752){
361
                 list[i].drugInMoney = ""
361
                 list[i].drugInMoney = ""
362
               }else{
362
               }else{
363
                 list[i].drugInMoney = list[i].last_price
363
                 list[i].drugInMoney = list[i].last_price
365
 
365
 
366
                 if( this.org_id == 10697){
366
                 if( this.org_id == 10697){
367
                   list[i].drugSaleMoney =  (list[i].over_count_one * list[i].last_price).toFixed(2)
367
                   list[i].drugSaleMoney =  (list[i].over_count_one * list[i].last_price).toFixed(2)
368
-                }else if(this.org_id == 0 || this.org_id == 10644){
368
+                }else if(this.org_id == 0 || this.org_id == 10644 || this.org_id == 10752){
369
                   list[i].drugAddPrice = ""
369
                   list[i].drugAddPrice = ""
370
                   list[i].drugSaleMoney =  this.GetInitStartFlowPice(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)
370
                   list[i].drugSaleMoney =  this.GetInitStartFlowPice(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)
371
                 }else{
371
                 }else{
379
                 if(this.org_id == 10697){
379
                 if(this.org_id == 10697){
380
                  list[i].drugAddPrice = list[i].last_price
380
                  list[i].drugAddPrice = list[i].last_price
381
                  list[i].drugAddSalePrice = (list[i].last_price *list[i].drugAddOne).toFixed(2)
381
                  list[i].drugAddSalePrice = (list[i].last_price *list[i].drugAddOne).toFixed(2)
382
-                }else if(this.org_id == 0 || this.org_id ==10644){
382
+                }else if(this.org_id == 0 || this.org_id ==10644 || this.org_id == 10752){
383
                   list[i].drugAddPrice = "/"
383
                   list[i].drugAddPrice = "/"
384
                   list[i].drugAddSalePrice = this.drugAddInfoOnePirce(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
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
                   console.log("本期增加加淀粉",list[i].drugAddSalePrice)
396
                 if( this.org_id == 10697){
396
                 if( this.org_id == 10697){
397
                   list[i].drugOutPrice = list[i].retail_price
397
                   list[i].drugOutPrice = list[i].retail_price
398
                   list[i].drugOutSalePrice = (list[i].drugOutOne * list[i].retail_price).toFixed(2)
398
                   list[i].drugOutSalePrice = (list[i].drugOutOne * list[i].retail_price).toFixed(2)
399
-                }else if(this.org_id == 0 || this.org_id == 10644){
399
+                }else if(this.org_id == 0 || this.org_id == 10644 || this.org_id == 10752){
400
                   list[i].drugOutPrice = "/"
400
                   list[i].drugOutPrice = "/"
401
                   list[i].drugOutSalePrice= this.getDrugOutPriceOne(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
401
                   list[i].drugOutSalePrice= this.getDrugOutPriceOne(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
402
                 } else{
402
                 } else{
415
                 if(this.org_id == 10697){
415
                 if(this.org_id == 10697){
416
                   list[i].overDrugPrice = list[i].retail_price
416
                   list[i].overDrugPrice = list[i].retail_price
417
                   list[i].oveDrugSaleMoney = (list[i].overDrugOne * list[i].retail_price).toFixed(2)
417
                   list[i].oveDrugSaleMoney = (list[i].overDrugOne * list[i].retail_price).toFixed(2)
418
-                }else if(this.org_id == 0 || this.org_id ==10644){
418
+                }else if(this.org_id == 0 || this.org_id ==10644 || this.org_id == 10752){
419
                   list[i].overDrugPrice = ""
419
                   list[i].overDrugPrice = ""
420
                   list[i].oveDrugSaleMoney = this.GetDrugOverOnePrice(list[i].drugSaleMoney,list[i].drugAddSalePrice,list[i].drugOutSalePrice,list[i].min_number,list[i].min_unit,list[i].max_unit)
420
                   list[i].oveDrugSaleMoney = this.GetDrugOverOnePrice(list[i].drugSaleMoney,list[i].drugAddSalePrice,list[i].drugOutSalePrice,list[i].min_number,list[i].min_unit,list[i].max_unit)
421
                 } else{
421
                 } else{

+ 4 - 4
src/xt_pages/stock/query/purchaseNewStockQuery.vue 파일 보기

292
                if(this.org_id ==10697){
292
                if(this.org_id ==10697){
293
                   list[i].stock_in_price = list[i].buy_price
293
                   list[i].stock_in_price = list[i].buy_price
294
                   list[i].stockMoney = (list[i].buy_price * list[i].stockIn).toFixed(2)
294
                   list[i].stockMoney = (list[i].buy_price * list[i].stockIn).toFixed(2)
295
-               }else if(this.org_id == 0 || this.org_id == 10644){
295
+               }else if(this.org_id == 0 || this.org_id == 10644 || this.org_id == 10752){
296
                  list[i].stock_in_price = "/"
296
                  list[i].stock_in_price = "/"
297
                  console.log("val1",this.getAllStockInPrice(list[i].StWarehousingInfoTwo))
297
                  console.log("val1",this.getAllStockInPrice(list[i].StWarehousingInfoTwo))
298
                  console.log("val2",this.getAllStockInFlowPrice(list[i].WareStartInStockFlow))
298
                  console.log("val2",this.getAllStockInFlowPrice(list[i].WareStartInStockFlow))
317
               if(this.org_id ==10697){
317
               if(this.org_id ==10697){
318
                list[i].addStockMoney = list[i].buy_price 
318
                list[i].addStockMoney = list[i].buy_price 
319
                 list[i].saleStockMoney = (list[i].buy_price *list[i].stockAdd).toFixed(2)
319
                 list[i].saleStockMoney = (list[i].buy_price *list[i].stockAdd).toFixed(2)
320
-              }else if(this.org_id == 0 || this.org_id == 10644){
320
+              }else if(this.org_id == 0 || this.org_id == 10644 || this.org_id == 10752){
321
                 list[i].addStockMoney = "/"
321
                 list[i].addStockMoney = "/"
322
                 list[i].saleStockMoney = this.getWarehouseInfoOnePrice(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit)
322
                 list[i].saleStockMoney = this.getWarehouseInfoOnePrice(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit)
323
               } else{
323
               } else{
330
               if(this.org_id == 10697){
330
               if(this.org_id == 10697){
331
                 list[i].stockOutprice = list[i].packing_price
331
                 list[i].stockOutprice = list[i].packing_price
332
                 list[i].saleOutMoney = (list[i].packing_price * list[i].outStock).toFixed(2)
332
                 list[i].saleOutMoney = (list[i].packing_price * list[i].outStock).toFixed(2)
333
-              }else if(this.org_id == 0 || this.org_id == 10644){
333
+              }else if(this.org_id == 0 || this.org_id == 10644 || this.org_id == 10752){
334
                 list[i].stockOutprice = "/"
334
                 list[i].stockOutprice = "/"
335
                 list[i].saleOutMoney = this.getWarehosueOutInfoPrice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
335
                 list[i].saleOutMoney = this.getWarehosueOutInfoPrice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
336
                 if(list[i].saleOutMoney == "NaN"){
336
                 if(list[i].saleOutMoney == "NaN"){
358
               if(this.org_id ==10697){
358
               if(this.org_id ==10697){
359
                 list[i].overPrice = list[i].packing_price
359
                 list[i].overPrice = list[i].packing_price
360
                 list[i].overMoney = (list[i].packing_price*list[i].overStock).toFixed(2)
360
                 list[i].overMoney = (list[i].packing_price*list[i].overStock).toFixed(2)
361
-              }else if(this.org_id == 0 || this.org_id ==10644){
361
+              }else if(this.org_id == 0 || this.org_id ==10644 || this.org_id == 10752){
362
                 list[i].overPrice = "/"
362
                 list[i].overPrice = "/"
363
                 // console.log("stockMoney-00000000000000",list[i].stockMoney)
363
                 // console.log("stockMoney-00000000000000",list[i].stockMoney)
364
                 // console.log("saleStockMoney-00000000000000",list[i].saleStockMoney)
364
                 // console.log("saleStockMoney-00000000000000",list[i].saleStockMoney)

+ 4 - 4
src/xt_pages/stock/query/purchaseNewStockQueryPrint.vue 파일 보기

187
                     if(this.org_id == 0 || this.org_id ==10697){
187
                     if(this.org_id == 0 || this.org_id ==10697){
188
                       list[i].stock_in_price = list[i].buy_price
188
                       list[i].stock_in_price = list[i].buy_price
189
                       list[i].stockMoney = (list[i].buy_price * list[i].stockIn).toFixed(2)
189
                       list[i].stockMoney = (list[i].buy_price * list[i].stockIn).toFixed(2)
190
-                    }else if(this.org_id == 0 || this.org_id == 10644){
190
+                    }else if(this.org_id == 0 || this.org_id == 10644 || this.org_id == 10752){
191
                       list[i].stock_in_price = "/"
191
                       list[i].stock_in_price = "/"
192
                       list[i].stockMoney = parseFloat(this.getAllStockInPrice(list[i].StWarehousingInfoTwo))  +parseFloat(this.getAllStockInFlowPrice(list[i].WareStartInStockFlow))  - parseFloat(this.getAllOutStockInPrice(list[i].WarehouseOutInfoTenty))  - parseFloat(this.getAllStockOutFlowPrice(list[i].WareStartOutStockFlow)) 
192
                       list[i].stockMoney = parseFloat(this.getAllStockInPrice(list[i].StWarehousingInfoTwo))  +parseFloat(this.getAllStockInFlowPrice(list[i].WareStartInStockFlow))  - parseFloat(this.getAllOutStockInPrice(list[i].WarehouseOutInfoTenty))  - parseFloat(this.getAllStockOutFlowPrice(list[i].WareStartOutStockFlow)) 
193
                       if(list[i].stockMoney>0){
193
                       if(list[i].stockMoney>0){
204
                     if(this.org_id == 0 || this.org_id ==10697){
204
                     if(this.org_id == 0 || this.org_id ==10697){
205
                         list[i].addStockMoney = list[i].buy_price 
205
                         list[i].addStockMoney = list[i].buy_price 
206
                         list[i].saleStockMoney = (list[i].buy_price *list[i].stockAdd).toFixed(2)
206
                         list[i].saleStockMoney = (list[i].buy_price *list[i].stockAdd).toFixed(2)
207
-                    }else if(this.org_id == 0 || this.org_id == 10644){
207
+                    }else if(this.org_id == 0 || this.org_id == 10644 || this.org_id == 10752){
208
                       list[i].addStockMoney = "/"
208
                       list[i].addStockMoney = "/"
209
                       list[i].saleStockMoney = this.getWarehouseInfoOnePrice(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit)
209
                       list[i].saleStockMoney = this.getWarehouseInfoOnePrice(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit)
210
                      
210
                      
220
                     if(this.org_id == 0 || this.org_id == 10697){
220
                     if(this.org_id == 0 || this.org_id == 10697){
221
                       list[i].stockOutprice = list[i].packing_price
221
                       list[i].stockOutprice = list[i].packing_price
222
                       list[i].saleOutMoney = (list[i].packing_price * list[i].outStock).toFixed(2)
222
                       list[i].saleOutMoney = (list[i].packing_price * list[i].outStock).toFixed(2)
223
-                    }else if(this.org_id == 0 || this.org_id == 10644){
223
+                    }else if(this.org_id == 0 || this.org_id == 10644 || this.org_id == 10752){
224
                       list[i].stockOutprice = "/"
224
                       list[i].stockOutprice = "/"
225
                       list[i].saleOutMoney = this.getWarehosueOutInfoPrice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
225
                       list[i].saleOutMoney = this.getWarehosueOutInfoPrice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
226
                       if(list[i].saleOutMoney == "NaN"){
226
                       if(list[i].saleOutMoney == "NaN"){
241
                     if(this.org_id == 0 || this.org_id ==10697){
241
                     if(this.org_id == 0 || this.org_id ==10697){
242
                       list[i].overPrice = list[i].packing_price
242
                       list[i].overPrice = list[i].packing_price
243
                       list[i].overMoney = (list[i].packing_price*list[i].overStock).toFixed(2)
243
                       list[i].overMoney = (list[i].packing_price*list[i].overStock).toFixed(2)
244
-                     }else if(this.org_id == 0 || this.org_id == 10644){
244
+                     }else if(this.org_id == 0 || this.org_id == 10644 || this.org_id == 10752){
245
                       list[i].overPrice = "/"
245
                       list[i].overPrice = "/"
246
                       console.log("stockMoney-00000000000000",list[i].stockMoney)
246
                       console.log("stockMoney-00000000000000",list[i].stockMoney)
247
                       console.log("saleStockMoney-00000000000000",list[i].saleStockMoney)
247
                       console.log("saleStockMoney-00000000000000",list[i].saleStockMoney)