28169 il y a 4 mois
Parent
révision
2f0dfab364

+ 34 - 17
src/xt_pages/stock/drugs/components/purchaseNewDrugQuery.vue Voir le fichier

255
       }  
255
       }  
256
      
256
      
257
       var total = (total_one_price + total_two_price -total_three_price-total_four_price + total_five_price).toFixed(2)
257
       var total = (total_one_price + total_two_price -total_three_price-total_four_price + total_five_price).toFixed(2)
258
+      if(total >0){
259
+        return ""
260
+      }else{
261
+        return total
262
+      }
258
        
263
        
259
-       return total
260
     },
264
     },
261
     drugAddInfoOnePirce(arr,min_number,min_unit,max_unit,arr2){
265
     drugAddInfoOnePirce(arr,min_number,min_unit,max_unit,arr2){
266
+      
262
         var total = 0
267
         var total = 0
263
         var totalone_price = 0
268
         var totalone_price = 0
264
         var total_two_price = 0
269
         var total_two_price = 0
268
           }
273
           }
269
         }
274
         }
270
         if(arr2!=null && arr2.length >0){
275
         if(arr2!=null && arr2.length >0){
271
-          for(let i=0;i<arr2.length;i++){
272
-            total_two_price += arr2[i].count * arr[i].price
276
+          for(let i=0;i<arr2.length;i++){ 
277
+            total_two_price += arr2[i].count * arr2[i].price
273
           }
278
           }
274
         }
279
         }
275
         total = totalone_price + total_two_price
280
         total = totalone_price + total_two_price
276
 
281
 
282
+        if(total>0){
283
+          return total.toFixed(2)
284
+        }else{
285
+          return ""
286
+        }
277
         
287
         
278
-        return total
279
     },
288
     },
280
     getDrugOutPriceOne(arr,min_number,min_unit,max_unit,arr2,arr3){
289
     getDrugOutPriceOne(arr,min_number,min_unit,max_unit,arr2,arr3){
281
     var total = 0
290
     var total = 0
290
     }
299
     }
291
     if(arr2!=null && arr2.length>0){
300
     if(arr2!=null && arr2.length>0){
292
       for(let i=0;i<arr2.length;i++){
301
       for(let i=0;i<arr2.length;i++){
293
-        total_two_price +=arr2[i].count * arr[i].price
302
+        total_two_price +=arr2[i].count * arr2[i].price
294
       }
303
       }
295
     }
304
     }
296
     if(arr3!=null && arr3.length>0){
305
     if(arr3!=null && arr3.length>0){
297
       for(let i=0;i<arr3.length;i++){
306
       for(let i=0;i<arr3.length;i++){
298
-        total_three_price +=arr3[i].count * arr[i].price
307
+        total_three_price +=arr3[i].count * arr3[i].price
299
       }
308
       }
300
     }
309
     }
301
  
310
  
302
     total = (totalone_price + total_two_price - total_three_price).toFixed(2)
311
     total = (totalone_price + total_two_price - total_three_price).toFixed(2)
303
-
304
-    return total
312
+    if(total >0){
313
+      return total
314
+    }else{
315
+      return ""
316
+    }
317
+    
305
    },
318
    },
306
    GetDrugOverOnePrice(totalone,totaltwo,totalthree,min_number,min_unit,max_unit){
319
    GetDrugOverOnePrice(totalone,totaltwo,totalthree,min_number,min_unit,max_unit){
307
 
320
 
308
-    console.log("hahhahha",totalone)
309
-    console.log("totaltwo",totaltwo)
310
-    console.log("totalthree",totalthree)
311
-      var total = 0
312
-      
313
-      total = (totalone + totaltwo - totalthree).toFixed(2)
314
-       
315
-      return total
321
+   
322
+     var total = 0
323
+      total = (parseFloat(totalone)  + parseFloat(totaltwo)  - parseFloat(totalthree))
324
+      console.log("total-=---------------",total)
325
+      if(total >0){
326
+        return total.toFixed(2)
327
+      }else{
328
+        return ""
329
+      }
330
+     
316
        
331
        
317
     },
332
     },
318
     changeStorehouseName(){
333
     changeStorehouseName(){
540
            
555
            
541
             }
556
             }
542
 
557
 
543
-            console.log("list23323223322332232323322323wode",list)
558
+           
544
             for(let i=0;i<list.length;i++){
559
             for(let i=0;i<list.length;i++){
545
               list[i].last_price_in = 0
560
               list[i].last_price_in = 0
546
               list[i].drugAddOne= 0
561
               list[i].drugAddOne= 0
580
               }else if(this.org_id == 0 || this.org_id == 10644){
595
               }else if(this.org_id == 0 || this.org_id == 10644){
581
                 list[i].drugAddPrice = "/"
596
                 list[i].drugAddPrice = "/"
582
                 list[i].drugAddSalePrice = this.drugAddInfoOnePirce(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
597
                 list[i].drugAddSalePrice = this.drugAddInfoOnePirce(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
598
+                console.log("本期增加加淀粉",list[i].drugAddSalePrice)
583
               } else{
599
               } else{
584
                 list[i].drugAddPrice = "/"
600
                 list[i].drugAddPrice = "/"
585
                 list[i].drugAddSalePrice = "/"
601
                 list[i].drugAddSalePrice = "/"
613
                 list[i].overDrugPrice = list[i].retail_price
629
                 list[i].overDrugPrice = list[i].retail_price
614
                 list[i].oveDrugSaleMoney = (list[i].overDrugOne * list[i].retail_price).toFixed(2)
630
                 list[i].oveDrugSaleMoney = (list[i].overDrugOne * list[i].retail_price).toFixed(2)
615
             }else if(this.org_id == 0 || this.org_id ==10644){
631
             }else if(this.org_id == 0 || this.org_id ==10644){
632
+              console.log("加个2323323",list[i].drugAddSalePrice)
616
                 list[i].overDrugPrice = ""
633
                 list[i].overDrugPrice = ""
617
                 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)
634
                 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)
618
             } else{
635
             } else{

+ 63 - 43
src/xt_pages/stock/drugs/components/purchaseNewDrugQueryPrint.vue Voir le fichier

382
                 }else if(this.org_id == 0 || this.org_id ==10644){
382
                 }else if(this.org_id == 0 || this.org_id ==10644){
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
                 } else{
386
                 } else{
386
                   list[i].drugAddPrice = "/"
387
                   list[i].drugAddPrice = "/"
387
                   list[i].drugAddSalePrice = "/"
388
                   list[i].drugAddSalePrice = "/"
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
     drugAddInfoOnePirce(arr,min_number,min_unit,max_unit,arr2){
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
     getDrugOutPriceOne(arr,min_number,min_unit,max_unit,arr2,arr3){
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
    GetDrugOverOnePrice(totalone,totaltwo,totalthree,min_number,min_unit,max_unit){
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
       var total = 0
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
     created(){
1606
     created(){

+ 4 - 4
src/xt_pages/user/components/PatientSidebar.vue Voir le fichier

167
               name: '3-1',
167
               name: '3-1',
168
               label: '病史'
168
               label: '病史'
169
             },
169
             },
170
-            // {
171
-            //   name: '3-4',
172
-            //   label: '病史新'
173
-            // },
170
+            {
171
+              name: '3-4',
172
+              label: '病史新'
173
+            },
174
             {
174
             {
175
               name: '3-2',
175
               name: '3-2',
176
               label: '体格检查'
176
               label: '体格检查'

+ 4 - 4
src/xt_pages/user/courseOfDisease_new.vue Voir le fichier

351
         dialysisOrderList:[],
351
         dialysisOrderList:[],
352
         patient:{},
352
         patient:{},
353
         AuToShow:false,
353
         AuToShow:false,
354
-
355
         num:"",
354
         num:"",
356
-        longAdvice:[]
355
+        longAdvice:[],
357
       //   name:"",
356
       //   name:"",
358
       //  gander:"",
357
       //  gander:"",
359
       //  age:0,
358
       //  age:0,
1245
 
1244
 
1246
             this.inpectionList = inpectionList
1245
             this.inpectionList = inpectionList
1247
             
1246
             
1248
-            this.patient = {}
1247
+           
1249
             var patient = response.data.data.patient
1248
             var patient = response.data.data.patient
1250
            
1249
            
1251
             if(patient.gender == 1){
1250
             if(patient.gender == 1){
1404
             
1403
             
1405
            
1404
            
1406
            var longAdvice = response.data.data.longAdvice
1405
            var longAdvice = response.data.data.longAdvice
1407
-           console.log("longAdvice-------------------------",longAdvice)
1406
+        
1407
+           this.longAdvice = []
1408
            this.longAdvice = longAdvice
1408
            this.longAdvice = longAdvice
1409
 
1409
 
1410
             this.auto_dialog  =  true
1410
             this.auto_dialog  =  true

Fichier diff supprimé car celui-ci est trop grand
+ 39 - 937
src/xt_pages/user/text_content.vue


+ 13 - 13
src/xt_permission.js Voir le fichier

12
 
12
 
13
 router.beforeEach((to, from, next) => {
13
 router.beforeEach((to, from, next) => {
14
   // 线上注释
14
   // 线上注释
15
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-    store.dispatch('VerifyConfigList', []).then(() => {
17
-      next()
18
-    })
19
-  }
20
-  if (store.getters.permission_routers === undefined) {
21
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-      next()
23
-    })
24
-  } else {
25
-    next()
26
-  }
27
-  return
15
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28
   // 线上注释
28
   // 线上注释
29
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))