浏览代码

hah阿凡达

28169 4 个月前
父节点
当前提交
2f0dfab364

+ 34 - 17
src/xt_pages/stock/drugs/components/purchaseNewDrugQuery.vue 查看文件

@@ -255,10 +255,15 @@ export default {
255 255
       }  
256 256
      
257 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 265
     drugAddInfoOnePirce(arr,min_number,min_unit,max_unit,arr2){
266
+      
262 267
         var total = 0
263 268
         var totalone_price = 0
264 269
         var total_two_price = 0
@@ -268,14 +273,18 @@ export default {
268 273
           }
269 274
         }
270 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 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 289
     getDrugOutPriceOne(arr,min_number,min_unit,max_unit,arr2,arr3){
281 290
     var total = 0
@@ -290,29 +299,35 @@ export default {
290 299
     }
291 300
     if(arr2!=null && arr2.length>0){
292 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 305
     if(arr3!=null && arr3.length>0){
297 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 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 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 333
     changeStorehouseName(){
@@ -540,7 +555,7 @@ export default {
540 555
            
541 556
             }
542 557
 
543
-            console.log("list23323223322332232323322323wode",list)
558
+           
544 559
             for(let i=0;i<list.length;i++){
545 560
               list[i].last_price_in = 0
546 561
               list[i].drugAddOne= 0
@@ -580,6 +595,7 @@ export default {
580 595
               }else if(this.org_id == 0 || this.org_id == 10644){
581 596
                 list[i].drugAddPrice = "/"
582 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 599
               } else{
584 600
                 list[i].drugAddPrice = "/"
585 601
                 list[i].drugAddSalePrice = "/"
@@ -613,6 +629,7 @@ export default {
613 629
                 list[i].overDrugPrice = list[i].retail_price
614 630
                 list[i].oveDrugSaleMoney = (list[i].overDrugOne * list[i].retail_price).toFixed(2)
615 631
             }else if(this.org_id == 0 || this.org_id ==10644){
632
+              console.log("加个2323323",list[i].drugAddSalePrice)
616 633
                 list[i].overDrugPrice = ""
617 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 635
             } else{

+ 63 - 43
src/xt_pages/stock/drugs/components/purchaseNewDrugQueryPrint.vue 查看文件

@@ -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(){

+ 4 - 4
src/xt_pages/user/components/PatientSidebar.vue 查看文件

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

+ 4 - 4
src/xt_pages/user/courseOfDisease_new.vue 查看文件

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

文件差异内容过多而无法显示
+ 39 - 937
src/xt_pages/user/text_content.vue


+ 13 - 13
src/xt_permission.js 查看文件

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 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 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))