浏览代码

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 2 周前
父节点
当前提交
76b131841f
共有 35 个文件被更改,包括 1293 次插入318 次删除
  1. 2 2
      src/api/advice.js
  2. 9 0
      src/api/dialysis.js
  3. 129 0
      src/api/patient.js
  4. 42 42
      src/router/modules/charging.js
  5. 52 47
      src/xt_pages/Pharmacy/DrugDispensing.vue
  6. 50 27
      src/xt_pages/Pharmacy/PatientDispensing.vue
  7. 1 0
      src/xt_pages/Pharmacy/print/patientPrintTwo.vue
  8. 235 26
      src/xt_pages/charging/chargin_kf.vue
  9. 80 3
      src/xt_pages/charging/charging_collect.vue
  10. 134 16
      src/xt_pages/charging/charging_cz.vue
  11. 329 41
      src/xt_pages/charging/index.vue
  12. 4 1
      src/xt_pages/dialysis/batch_print/batch_print_order_eightyTwo.vue
  13. 8 7
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  14. 4 1
      src/xt_pages/dialysis/batch_print/batch_print_order_twentyEight.vue
  15. 21 4
      src/xt_pages/dialysis/bloodPresssWatch.vue
  16. 36 3
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  17. 7 7
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  18. 2 2
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  19. 31 33
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  20. 5 0
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue
  21. 11 3
      src/xt_pages/dialysis/template/DialysisPrintOrdereightytwo.vue
  22. 12 7
      src/xt_pages/outpatientCharges/allListPrint.vue
  23. 11 7
      src/xt_pages/outpatientCharges/allListTemplate/printOne.vue
  24. 2 2
      src/xt_pages/outpatientCharges/invoicePrint.vue
  25. 3 2
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue
  26. 6 5
      src/xt_pages/outpatientCharges/statementPrint.vue
  27. 5 0
      src/xt_pages/outpatientCharges/statementTemplate/printOne.vue
  28. 3 1
      src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue
  29. 3 17
      src/xt_pages/qcd/patientControlAnalysis.vue
  30. 4 2
      src/xt_pages/stock/detail/stockOutDetail.vue
  31. 2 2
      src/xt_pages/stock/drugs/drugBatchNumber.vue
  32. 17 7
      src/xt_pages/user/doctorAdvice.vue
  33. 28 0
      src/xt_pages/user/dryWeight.vue
  34. 2 0
      src/xt_pages/user/weight.vue
  35. 3 1
      src/xt_pages/workforce/printOne.vue

+ 2 - 2
src/api/advice.js 查看文件

@@ -336,12 +336,12 @@ export function PostInitAdviceTemplate(params) {
336 336
   })
337 337
 }
338 338
 
339
-export function getPrintInfo(data, advice_type, stop_type) {
339
+export function getPrintInfo(data, advice_type, stop_type,his_str) {
340 340
   console.log('data', data)
341 341
   console.log('advice_tuype23232', advice_type)
342 342
   console.log('stop_type', stop_type)
343 343
   return request({
344
-    url: '/api/advicetemplate/getprintinfo?advice_type=' + advice_type + '&stop_type=' + stop_type,
344
+    url: '/api/advicetemplate/getprintinfo?advice_type=' + advice_type + '&stop_type=' + stop_type+'&his_str='+his_str,
345 345
     method: 'post',
346 346
     data: data
347 347
   })

+ 9 - 0
src/api/dialysis.js 查看文件

@@ -575,4 +575,13 @@ export function getPatientBefor(params){
575 575
     method:"Get",
576 576
     params:params,
577 577
   })
578
+}
579
+
580
+export function getPatientDialysisSolutionByPatientId(params){
581
+ 
582
+  return request({
583
+    url:"/api/schedule/getpatientdialysissolutionbypatientid",
584
+    method:"Get",
585
+    params:params,
586
+  })
578 587
 }

+ 129 - 0
src/api/patient.js 查看文件

@@ -1495,4 +1495,133 @@ export function savePatentCount(params){
1495 1495
     method:"get",
1496 1496
     params:params
1497 1497
   })
1498
+}
1499
+
1500
+export function getPatientCountList(params){
1501
+ 
1502
+  return request({
1503
+    url:"/api/patient/getpatientcount",
1504
+    method:"Get",
1505
+    params:params
1506
+  })
1507
+}
1508
+
1509
+export function deletePatientCount(id,params){
1510
+
1511
+  return request({
1512
+    url:"/api/patient/deletepatientcount?id="+id,
1513
+    method:"get",
1514
+    params:params
1515
+  })
1516
+}
1517
+
1518
+export function checkPatientCount(id,params){
1519
+
1520
+  return request({
1521
+    url:"/api/patient/checkpatientcount?id="+id,
1522
+    method:"get",
1523
+    params:params,
1524
+    
1525
+  })
1526
+}
1527
+
1528
+export function toReturnCheck(id,params){
1529
+
1530
+  return request({
1531
+    url:"/api/patient/returncheck?id="+id,
1532
+    method:"get",
1533
+    params:params
1534
+  })
1535
+}
1536
+
1537
+export function savePatientOutCount(params){
1538
+
1539
+  return request({
1540
+    url:"/api/patient/savepatientoutcount",
1541
+    method:"Get",
1542
+    params:params,
1543
+  })
1544
+}
1545
+
1546
+export function getPatientOutCountList(params){
1547
+  
1548
+  return request({
1549
+    url:"/api/patient/getpatientoutcountlist",
1550
+    method:"get",
1551
+    params:params
1552
+  })
1553
+}
1554
+
1555
+
1556
+export function DeletePatientOutCount(id,params){
1557
+
1558
+  return request({
1559
+    url:"/api/patient/deletepatientoutcount?id="+id,
1560
+    method:"Get",
1561
+    params:params,
1562
+  })
1563
+}
1564
+
1565
+
1566
+export function checkPatientOutCount(id,params){
1567
+  
1568
+  return request({
1569
+    url:"/api/patient/checkpatientoutcount?id="+id,
1570
+    method:"get",
1571
+    params:params
1572
+  })
1573
+}
1574
+
1575
+export function returnPatientOutList(id,params){
1576
+  
1577
+  return request({
1578
+    url:"/api/patient/returnpatientoutlist?id="+id,
1579
+    method:"get",
1580
+    params:params
1581
+  })
1582
+}
1583
+
1584
+export function getPatientCountMapList(params){
1585
+  
1586
+  return request({
1587
+    url:"/api/patient/getpatientcountmaplist",
1588
+    method:"get",
1589
+    params:params,
1590
+  })
1591
+}
1592
+
1593
+export function getPatientCountFlow(params){
1594
+
1595
+  return request({
1596
+    url:"/api/patient/getpatientcountflow",
1597
+    method:"get",
1598
+    params:params,
1599
+  })
1600
+}
1601
+
1602
+export function getDialysisOrderSetting(params){
1603
+  
1604
+  return request({
1605
+    url:"/api/patient/getdialysisordersetting",
1606
+    method:"Get",
1607
+    params:params,
1608
+  })
1609
+}
1610
+
1611
+export function savePatientOrderSetting(params){
1612
+
1613
+  return request({
1614
+    url:"/api/patient/savepatientordersetting",
1615
+    method:"get",
1616
+    params:params
1617
+  })
1618
+}
1619
+
1620
+export function getPatientCountFlowList(params){
1621
+
1622
+  return request({
1623
+    url:"/api/patient/getpatientcountflowlist",
1624
+    method:"get",
1625
+    params:params
1626
+  })
1498 1627
 }

+ 42 - 42
src/router/modules/charging.js 查看文件

@@ -12,47 +12,47 @@ export default {
12 12
     title:'charging',
13 13
     icon: 'statistics'
14 14
   },
15
-  // children: [
16
-  //   {
17
-  //     path: '/dialysis/charging',
18
-  //     component: () => import('@/xt_pages/charging/index'),
19
-  //     name: '计费查询',
20
-  //     meta: {
21
-  //       title: '计费查询',
22
-  //       noCache: true
23
-  //     }
24
-  //   },
25
-  //   {
26
-  //     path: '/dialysis/charging_cz',
27
-  //     component: () => import('@/xt_pages/charging/charging_cz'),
28
-  //     name: '计费充值',
29
-  //     is_menu: false,
30
-  //     hidden: true,
31
-  //     meta: {
32
-  //       title: '计费充值',
33
-  //       noCache: true
34
-  //     }
35
-  //   },
36
-  //   {
37
-  //     path: '/dialysis/chargin_kf',
38
-  //     component: () => import('@/xt_pages/charging/chargin_kf'),
39
-  //     name: '计数扣费',
40
-  //     is_menu: false,
41
-  //     hidden: true,
42
-  //     meta: {
43
-  //       title: '计数扣费',
44
-  //       noCache: true
45
-  //     }
46
-  //   },
47
-  //   {
48
-  //     path: '/dialysis/charging_collect',
49
-  //     component: () => import('@/xt_pages/charging/charging_collect'),
50
-  //     name: '计费汇总',
51
-  //     meta: {
52
-  //       title: '计费汇总',
53
-  //       noCache: true
54
-  //     }
55
-  //   },
56
-  // ]
15
+  children: [
16
+    {
17
+      path: '/dialysis/charging',
18
+      component: () => import('@/xt_pages/charging/index'),
19
+      name: '计费查询',
20
+      meta: {
21
+        title: '计费查询',
22
+        noCache: true
23
+      }
24
+    },
25
+    {
26
+      path: '/dialysis/charging_cz',
27
+      component: () => import('@/xt_pages/charging/charging_cz'),
28
+      name: '计费充值',
29
+      is_menu: false,
30
+      hidden: true,
31
+      meta: {
32
+        title: '计费充值',
33
+        noCache: true
34
+      }
35
+    },
36
+    {
37
+      path: '/dialysis/chargin_kf',
38
+      component: () => import('@/xt_pages/charging/chargin_kf'),
39
+      name: '计数扣费',
40
+      is_menu: false,
41
+      hidden: true,
42
+      meta: {
43
+        title: '计数扣费',
44
+        noCache: true
45
+      }
46
+    },
47
+    {
48
+      path: '/dialysis/charging_collect',
49
+      component: () => import('@/xt_pages/charging/charging_collect'),
50
+      name: '计费汇总',
51
+      meta: {
52
+        title: '计费汇总',
53
+        noCache: true
54
+      }
55
+    },
56
+  ]
57 57
  
58 58
 }

+ 52 - 47
src/xt_pages/Pharmacy/DrugDispensing.vue 查看文件

@@ -554,7 +554,8 @@ export default {
554 554
       drug_id:0,
555 555
       newArrList:[],
556 556
       baseList:[],
557
-      textAreaList:[]
557
+      textAreaList:[],
558
+      scan_code:""
558 559
     };
559 560
   },
560 561
 
@@ -580,7 +581,7 @@ export default {
580 581
     // 追溯码
581 582
     getDrugCode(id,DataSources,DrugCode,index){
582 583
       
583
-      if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537){
584
+      if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id == 0){
584 585
         var params = {
585 586
             drug_id:this.drug_id,
586 587
             start_time:moment().subtract(15, 'days').format("YYYY-MM-DD")
@@ -591,6 +592,8 @@ export default {
591 592
             
592 593
             var adviceList = response.data.data.adviceList
593 594
 
595
+           this.scan_code = response.data.data.drug.scan_code
596
+              
594 597
             var str = ""
595 598
             if(adviceList!=null && adviceList.length>0){
596 599
               for(let i=0;i<adviceList.length;i++){
@@ -700,19 +703,14 @@ export default {
700 703
         textarea += this.textarea.replace(/^\s*[\r\n]|\r?\n\s*$/gm, '') + ","
701 704
 
702 705
       
703
-        if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537){
706
+        if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id == 0){
704 707
           
705 708
           var drugindentificaitoncode = this.getDrugIdentificationCode(this.drug_id)
706
-          // console.log("drugindentification===================",drugindentificaitoncode)
707
-
708
-          var scan_code = this.getDrugScanCode(this.drug_id)
709
-          
710
-          // console.log("scan_code============",scan_code)
711
-
709
+         
712 710
           var total_one = 0
713 711
           var total_two = 0
714 712
 
715
-          // console.log("newArr-------------",this.newArrList)
713
+          
716 714
 
717 715
           var arr= []
718 716
           arr = textarea.split(",")
@@ -785,14 +783,11 @@ export default {
785 783
              }
786 784
           }
787 785
 
788
-
789
-          // console.log("数量1--------------",total_one)
790
-          // console.log("数量2---------------",total_two)
791
-        
792
-          // console.log("scan_code=====",scan_code)
793
-          
794
-          if(scan_code>0){
795
-            if((total_one + total_two)>scan_code){
786
+          console.log("total_one-----------",total_one)
787
+          console.log("total_two-----------",total_two)
788
+   
789
+          if(this.scan_code>0){
790
+            if((total_one + total_two)>this.scan_code){
796 791
               this.$message.error("扫码次数已经超过限制!")
797 792
               arr.splice(i_index,1)
798 793
             }
@@ -800,45 +795,55 @@ export default {
800 795
          
801 796
          var is_arr = this.hasDuplicates(arr)
802 797
 
803
-        //  console.log("is_arr-=--------------",is_arr)
798
+       
804 799
 
805 800
         this.textarea = arr.join(",")
806 801
 
807 802
         }else{
808
-          // console.log("textarea22==============",textarea)
803
+          var arr = textarea.split(",");
804
+          
805
+          var lastElement = arr[arr.length - 2];
809 806
 
810
-          var newArr = []
811
-          var is_err_check = 0
812
-          var i_index = ""
813
-          var arr = textarea.split(",")
814
-          if(arr!=null && arr.length>0){
807
+          if(lastElement.length!=20){
808
+            this.$message.error("药品追溯码长度没有满足20位!")
809
+            arr.splice(arr.length-2,1)
810
+          }
811
+          console.log("arr-------------",arr)
812
+         
813
+          this.textarea = ""
814
+          this.textarea = arr.join(",")
815
+
816
+          // var newArr = []
817
+          // var is_err_check = 0
818
+          // var i_index = ""
819
+          // var arr = textarea.split(",")
820
+          // if(arr!=null && arr.length>0){
815 821
             
816
-            for(let i=0;i<arr.length;i++){
817
-              console.log("arrp[i].")
818
-              i_index = i
819
-              if(arr[i]!=""){
820
-                if(arr[i].length!=20){
821
-                 this.$message.error("药品追溯码长度没有满足20位!")
822
-                  is_err_check = 1
823
-                }else{
824
-                  newArr.push(arr[i])
825
-                }
822
+          //   for(let i=0;i<arr.length;i++){
823
+          //     console.log("arrp[i].")
824
+          //     i_index = i
825
+          //     if(arr[i]!=""){
826
+          //       if(arr[i].length!=20){
827
+          //        this.$message.error("药品追溯码长度没有满足20位!")
828
+          //         is_err_check = 1
829
+          //       }else{
830
+          //         newArr.push(arr[i])
831
+          //       }
826 832
                 
827
-              }
828
-            }
829
-          }
830
-          // console.log("is_err_check==============",is_err_check)
831
-          // console.log("i_index=====",i_index)
832
-          if(is_err_check == 1){
833
-             newArr.splice(i_index,1)
834
-          }
833
+          //     }
834
+          //   }
835
+          // }
836
+         
837
+          // if(is_err_check == 1){
838
+          //    newArr.splice(i_index,1)
839
+          // }
835 840
 
836 841
           
837
-          if(newArr!=null && newArr.length>0){
842
+          // if(newArr!=null && newArr.length>0){
838 843
            
839
-            this.textarea = newArr.join(",")
840
-          }
841
-          this.textarea = textarea
844
+          //   this.textarea = newArr.join(",")
845
+          // }
846
+          // this.textarea = textarea
842 847
         }
843 848
        
844 849
       }

+ 50 - 27
src/xt_pages/Pharmacy/PatientDispensing.vue 查看文件

@@ -423,7 +423,8 @@ export default {
423 423
       drug_id:0,
424 424
       total_count:0,
425 425
       newArrList:[],
426
-      textAreaList:[]
426
+      textAreaList:[],
427
+      scan_code:""
427 428
     };
428 429
   },
429 430
  
@@ -537,10 +538,15 @@ export default {
537 538
       console.log("state--",this.state)
538 539
       this.currentRow = val;
539 540
       console.log("this.currentRow", this.currentRow);
541
+    
540 542
       if (this.state == 1) {
543
+        this.tableData = []
544
+        this.patients = {}
541 545
         this.getpatientdetails(0);
542 546
       }
543 547
       if (this.state == 2) {
548
+        this.patients = {}
549
+        this.tableData = []
544 550
         this.getpatientdetails(1);
545 551
       }
546 552
     },
@@ -838,6 +844,12 @@ export default {
838 844
     },
839 845
     //获取患者信息详情
840 846
     getpatientdetails(val) {
847
+      // const loading = this.$loading({
848
+      //   lock: true,
849
+      //   text: "Loading",
850
+      //   spinner: "el-icon-loading",
851
+      //   background: "rgba(0, 0, 0, 0.7)",
852
+      // });
841 853
       console.log("val2332323223",this.currentRow)
842 854
       var params = {
843 855
         patient_id: this.currentRow.PatientID,
@@ -846,6 +858,7 @@ export default {
846 858
       };
847 859
       getpharmacycontent(params).then((res) => {
848 860
         if (res.data.state == 1) {
861
+          //  loading.close()
849 862
            var list = res.data.data.list;
850 863
            console.log("hhhhawoowowow",res.data.data)
851 864
            this.baseList =[]
@@ -859,6 +872,7 @@ export default {
859 872
             diagnose:res.data.data.patients.diagnose,
860 873
             zhixing:res.data.data.patients.created_time
861 874
           }
875
+          this.patients = {}
862 876
           this.patients =obj
863 877
           if(this.$store.getters.xt_user.org.id == 10188 || this.$store.getters.xt_user.org.id == 10217 || this.$store.getters.xt_user.org.id == 10387 ||  this.$store.getters.xt_user.org.id == 0  ||  this.$store.getters.xt_user.org.id == 10480  ){
864 878
             this.tableData = []
@@ -875,7 +889,8 @@ export default {
875 889
             this.tableData = []
876 890
             this.tableData = list
877 891
           }
878
-          console.log("tableDatawoowow",this.tableData)
892
+          // console.log("tableDatawoowow",this.tableData)
893
+          // loading.close()
879 894
         } else {
880 895
           this.$message.error(res.data.msg);
881 896
         }
@@ -1268,17 +1283,21 @@ export default {
1268 1283
     getDrugCode(id,DataSources,DrugCode,index,DrugId){
1269 1284
       
1270 1285
      // 针对百霖
1271
-       if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537){
1286
+       if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id==0){
1272 1287
           var params = {
1273 1288
             drug_id:DrugId,
1274 1289
             start_time:moment().subtract(15, 'days').format("YYYY-MM-DD")
1275 1290
           }
1276
-          console.log("params-------------",params)
1277 1291
          getDrugTocalCount(params).then(response=>{
1278 1292
            if(response.data.state == 1){
1279 1293
              
1280 1294
             var adviceList = response.data.data.adviceList
1281 1295
 
1296
+            var drug = response.data.data.drug
1297
+              
1298
+            this.scan_code = drug.scan_code
1299
+
1300
+
1282 1301
             var str = ""
1283 1302
             if(adviceList!=null && adviceList.length>0){
1284 1303
               for(let i=0;i<adviceList.length;i++){
@@ -1318,8 +1337,7 @@ export default {
1318 1337
                
1319 1338
                this.newArrList = []
1320 1339
                this.newArrList = arr
1321
-
1322
-
1340
+               console.log("newARRlIST----------",this.newArrList)
1323 1341
             }
1324 1342
               
1325 1343
             this.drug_id = DrugId
@@ -1367,6 +1385,7 @@ export default {
1367 1385
         drug_code:this.textarea,
1368 1386
        }
1369 1387
        console.log("paramss",params)
1388
+
1370 1389
       changeDrugCode(params).then(response=>{
1371 1390
          if(response.data.state == 1){
1372 1391
             this.$message.success("保存成功!")
@@ -1387,25 +1406,19 @@ export default {
1387 1406
        
1388 1407
         var textarea = ""
1389 1408
         textarea += this.textarea.replace(/^\s*[\r\n]|\r?\n\s*$/gm, '') + ","
1409
+        
1390 1410
 
1391
-      
1411
+        
1412
+
1413
+        
1392 1414
          
1393
-        if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id==0 || this.$store.getters.xt_user.org.id == 10278|| this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id == 10610){
1415
+        if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278|| this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id == 10610){
1394 1416
 
1395 1417
           var drugindentificaitoncode = this.getDrugIdentificationCode(this.drug_id)
1396
-          console.log("drugindentification===================",drugindentificaitoncode)
1397
-
1398
-          var scan_code = this.getDrugScanCode(this.drug_id)
1399
-          
1400
-          console.log("scan_code============",scan_code)
1401
-
1418
+             
1402 1419
           var total_one = 0
1403 1420
           var total_two = 0
1404 1421
 
1405
-          console.log("newArr-------------",this.newArrList)
1406
-
1407
-         
1408
-
1409 1422
           var arr= []
1410 1423
           arr = textarea.split(",")
1411 1424
           var arrList = []
@@ -1449,6 +1462,7 @@ export default {
1449 1462
                    this.$message.error("药品追溯码长度没有满足20位!")
1450 1463
                    is_err_check = true
1451 1464
                  }
1465
+
1452 1466
                  if(drugindentificaitoncode>0){
1453 1467
                   if(arr[i].substring(0,7)!= drugindentificaitoncode){
1454 1468
                     this.$message.error("药品标识码格式不正确,请重新扫码")
@@ -1481,26 +1495,35 @@ export default {
1481 1495
           console.log("数量1--------------",total_one)
1482 1496
           console.log("数量2---------------",total_two)
1483 1497
         
1484
-          console.log("scan_code=====",scan_code)
1498
+        
1485 1499
           
1486
-          if(scan_code>0){
1487
-            if((total_one + total_two)>scan_code){
1500
+          if(this.scan_code>0){
1501
+            if((total_one + total_two)>this.scan_code){
1488 1502
               this.$message.error("扫码次数已经超过限制!")
1489 1503
               arr.splice(i_index,1)
1490 1504
             }
1491 1505
           }
1492 1506
          
1493
-
1494
-
1495
-
1496 1507
          var is_arr = this.hasDuplicates(arr)
1497 1508
 
1498
-         console.log("is_arr-=--------------",is_arr)
1499
-
1500 1509
           this.textarea = arr.join(",")
1501 1510
         }else{
1511
+          // console.log("haaaaaaaaaaaaaaaaaaa",textarea)
1512
+          
1513
+          var arr = textarea.split(",");
1514
+          
1515
+          var lastElement = arr[arr.length - 2];
1516
+
1517
+          if(lastElement.length!=20){
1518
+            this.$message.error("药品追溯码长度没有满足20位!")
1519
+            arr.splice(arr.length-2,1)
1520
+          }
1521
+          console.log("arr-------------",arr)
1522
+         
1523
+          this.textarea = ""
1524
+          this.textarea = arr.join(",")
1502 1525
 
1503
-          this.textarea = textarea
1526
+          // this.textarea = textarea
1504 1527
         }
1505 1528
         
1506 1529
 

+ 1 - 0
src/xt_pages/Pharmacy/print/patientPrintTwo.vue 查看文件

@@ -147,6 +147,7 @@ export default {
147 147
       this.times = times
148 148
       this.visibility = true;
149 149
       console.log("val",val)
150
+      this.tableData = []
150 151
       this.tableData = val
151 152
       this.Doctor = val[0].Doctor
152 153
       this.name = data.Name

+ 235 - 26
src/xt_pages/charging/chargin_kf.vue 查看文件

@@ -6,18 +6,34 @@
6 6
     <div class="app-container">
7 7
       <div style="display: flex;">
8 8
         <div style="flex: 2;display: flex;justify-content: space-around;">
9
-          <div > <el-input v-model="input" placeholder="请输入内容"></el-input></div>
9
+         
10
+          <el-autocomplete
11
+              class="inline-input"
12
+               v-model.trim="smart_keyword"
13
+              :fetch-suggestions="querySearch"
14
+              placeholder="请输入内容"
15
+              @select="handleSelect"
16
+              
17
+            >
18
+           <i class="el-icon-search el-input__icon" slot="suffix"></i>
19
+          <template slot-scope="{ item }">
20
+            <div class="name">{{ item.name }}</div>
21
+          </template>
22
+          </el-autocomplete>
10 23
           <div>
11 24
             日期查询:
12 25
             <el-date-picker
26
+             @change="changeTime"
13 27
               v-model="value1"
14 28
               type="daterange"
29
+              format="yyyy-MM-dd"
30
+              value-format="yyyy-MM-dd"
15 31
               range-separator="至"
16 32
               start-placeholder="开始日期"
17 33
               end-placeholder="结束日期">
18 34
             </el-date-picker>
19 35
           </div>
20
-          <div><el-button type="primary">查询</el-button></div>
36
+          <div><el-button type="primary" @click="query">查询</el-button></div>
21 37
           <el-button type="primary" @click="newkf_show=true">新增</el-button>
22 38
         </div>
23 39
         <div style="flex: 1;text-align: right;">
@@ -27,30 +43,59 @@
27 43
       <div style="margin:10px 0;">
28 44
         <el-table border :data="tableData" style="width: 100%" :header-cell-style="{'text-align':'center'}" :cell-style="{'text-align':'center'}">
29 45
           <el-table-column prop="index" label="序号" width="50">
46
+            <template slot-scope="scope">
47
+              {{scope.$index + 1}}
48
+             </template>
30 49
           </el-table-column>
31 50
           <el-table-column prop="name" label="患者姓名" width="">
51
+            <template slot-scope="scope">
52
+                {{getPatientName(scope.row.patient_id)}}
53
+             </template>
32 54
           </el-table-column>
33 55
           <el-table-column prop="HD" label="扣费时间">
56
+            <template slot-scope="scope">
57
+                {{getTime(scope.row.record_date)}}
58
+             </template>
34 59
           </el-table-column>
35 60
           <el-table-column prop="HDF" label="扣费类型">
61
+            <template slot-scope="scope">
62
+               <span v-if="scope.row.mode_id ==1">HD</span>
63
+               <span v-if="scope.row.mode_id ==2">HDF</span>
64
+               <span v-if="scope.row.mode_id ==3">HD+HP</span>
65
+               <span v-if="scope.row.mode_id ==4">HP</span>
66
+               <span v-if="scope.row.mode_id ==5">其他</span>
67
+             </template>
36 68
           </el-table-column>
37 69
           <el-table-column prop="HD+HP" label="扣费次数">
70
+            <template slot-scope="scope">
71
+                 {{ scope.row.count }}
72
+            </template>
38 73
           </el-table-column>
39 74
           <el-table-column prop="HP" label="状态">
75
+            <template slot-scope="scope">
76
+                <span v-if="scope.row.is_check ==1">已审核</span>
77
+                <span v-if="scope.row.is_check ==2">未审核</span>
78
+            </template>
40 79
           </el-table-column>
41 80
           <el-table-column prop="qita" label="创建人">
81
+            <template slot-scope="scope">
82
+              {{ getAdminUser(scope.row.creater) }}
83
+            </template>
42 84
           </el-table-column>
43 85
           <el-table-column prop="qita" label="备注">
86
+           <template slot-scope="scope">
87
+              {{ scope.row.remark }}
88
+           </template>
44 89
           </el-table-column>
45 90
           <el-table-column prop="address" label="操作" width="300">
46 91
             <template slot-scope="scope">
47
-              <span v-if="scope.row.examine==false">
48
-                <el-button type="primary" @click="cz_click(scope.row)" >反审核</el-button>
92
+              <span v-if="scope.row.is_check == 1">
93
+                <el-button type="primary" @click="cz_click(scope.row.id)" >反审核</el-button>
94
+              </span>
95
+              <span v-if="scope.row.is_check==2">
96
+                <el-button type="primary" @click="checkPatientOutCount(scope.row.id)">审核</el-button>
49 97
               </span>
50
-              <div v-if="scope.row.examine==true">
51
-                <el-button type="primary">审核</el-button>
52
-                <el-button type="danger">删除</el-button>
53
-              </div>
98
+              <el-button type="danger" @click="DeletePatientOutCount(scope.row.id,scope.$index)">删除</el-button>
54 99
             </template>
55 100
           </el-table-column>
56 101
         </el-table>
@@ -60,10 +105,10 @@
60 105
           @size-change="handleSizeChange"
61 106
           @current-change="handleCurrentChange"
62 107
           :current-page="currentPage"
63
-          :page-sizes="[100, 200, 300, 400]"
64
-          :page-size="100"
108
+          :page-sizes="[10, 20, 30, 40,50,100,200]"
109
+          :page-size="10"
65 110
           layout="total, sizes, prev, pager, next, jumper"
66
-          :total="400">
111
+          :total="total">
67 112
         </el-pagination>
68 113
       </div>
69 114
     </div>
@@ -78,30 +123,36 @@
78 123
           <el-form-item label="患者姓名:">
79 124
             <el-autocomplete
80 125
               class="inline-input"
81
-              v-model="state1"
126
+               v-model.trim="smart_keyword"
82 127
               :fetch-suggestions="querySearch"
83 128
               placeholder="请输入内容"
84 129
               @select="handleSelect"
85
-            ></el-autocomplete>
130
+              
131
+            >
132
+           <i class="el-icon-search el-input__icon" slot="suffix"></i>
133
+          <template slot-scope="{ item }">
134
+            <div class="name">{{ item.name }}</div>
135
+          </template>
136
+          </el-autocomplete>
86 137
           </el-form-item>
87 138
           <el-form-item label="透析模式:">
88
-            <el-select v-model="value" placeholder="请选择">
139
+            <el-select v-model="mode_id" placeholder="请选择">
89 140
               <el-option
90 141
                 v-for="item in options"
91
-                :key="item.value"
92
-                :label="item.label"
93
-                :value="item.value">
142
+                :key="item.mode_id"
143
+                :label="item.mode_name"
144
+                :value="item.mode_id">
94 145
               </el-option>
95 146
             </el-select>
96 147
           </el-form-item>
97 148
           <el-form-item label="次数:">
98
-            <el-input v-model="formLabelAlign.type"></el-input>
149
+            <el-input v-model="formLabelAlign.count" type="number"></el-input>
99 150
           </el-form-item>
100 151
           <el-form-item label="备注:">
101
-            <el-input type="textarea" :rows="2" v-model="formLabelAlign.type"></el-input>
152
+            <el-input type="textarea" :rows="2" v-model="formLabelAlign.remark"></el-input>
102 153
           </el-form-item>
103 154
           <el-form-item>
104
-            <el-button type="primary" @click="newkf_show = false">确 定</el-button>
155
+            <el-button type="primary" @click="savePatientOutCount">确 定</el-button>
105 156
             <el-button @click="newkf_show = false">取 消</el-button>
106 157
           </el-form-item>
107 158
         </el-form>
@@ -110,6 +161,10 @@
110 161
   </div>
111 162
 </template>
112 163
 <script>
164
+
165
+import { uParseTime } from "@/utils/tools";
166
+import {getPatientMapList,savePatientOutCount,getPatientOutCountList,DeletePatientOutCount,checkPatientOutCount,returnPatientOutList} from "@/api/patient"
167
+import { resetOptions } from "showdown";
113 168
   export default{
114 169
     data(){
115 170
       return{
@@ -121,20 +176,94 @@
121 176
         newkf_show:false,
122 177
         labelPosition:'right',
123 178
         formLabelAlign:{
124
-
179
+          count:"1",
180
+          remark:""
125 181
         },
126 182
         currentPage:1,
127 183
         value:'',
128
-        options:[],
129
-        tableData: [{ index: 1, name: '小米', HD: 1, HDF: 1, 'HD+HP': 1, 'qita': 1 ,examine:false}],
184
+        options:[
185
+          {mode_id:1,mode_name:"HD"},
186
+          {mode_id:2,mode_name:"HDF"},
187
+          {mode_id:3,mode_name:"HD+HP"},
188
+          {mode_id:4,mode_name:"HP"},
189
+          {mode_id:5,mode_name:"其他"}
190
+        ],
191
+        tableData: [],
192
+        smart_keyword:"",
193
+        patient_id:"",
194
+        mode_id:"",
195
+        limit:10,
196
+        page:1,
197
+        total:0,
198
+        patientList:[],
199
+        userList:[]
200
+    
130 201
       }
131 202
     },
132 203
     methods:{
204
+      query(){
205
+        this.getlist()
206
+      },
207
+      getAdminUser(creater){
208
+        var user_name = ""
209
+        for(let i=0;i<this.userList.length;i++){
210
+           if(creater == this.userList[i].id){
211
+              user_name = this.userList[i].name
212
+           }
213
+        }
214
+        return user_name
215
+      },
216
+      getTime(val) {
217
+         if(val < 0){
218
+           return ""
219
+         }
220
+         if(val == ""){
221
+          return ""
222
+         }else {
223
+          return uParseTime(val, '{y}-{m}-{d}')
224
+         }
225
+      },
226
+      getPatientName(id){
227
+        var name = ""
228
+        for(let i=0;i<this.patientList.length;i++){
229
+          if(id == this.patientList[i].id){
230
+            name = this.patientList[i].name
231
+          }
232
+        }
233
+        return name
234
+     },
235
+      handleSelect(val){
236
+        this.smart_keyword = val.name;
237
+        this.patient_id = val.id
238
+      },
133 239
       querySearch(queryString, cb){
134
-
240
+        let key = ''
241
+        if (queryString != undefined) {
242
+          key = queryString
243
+        }
244
+        let searchArray = []
245
+         var  params = {
246
+          keyword:key
247
+         }
248
+        getPatientMapList(params).then(response => {
249
+          if (response.data.state == 1) {
250
+            searchArray = response.data.data.patient
251
+            cb(searchArray)
252
+          } else {
253
+            this.$message.error(response.data.msg)
254
+            cb([])
255
+          }
256
+        })
257
+        return searchArray
135 258
       },
136
-      cz_click(row){
137
-        row.examine=true
259
+      cz_click(id){
260
+        returnPatientOutList(id).then(response=>{
261
+           if(response.data.state == 1){
262
+             var msg =  response.data.data.msg
263
+             this.$message.success("保存成功!")
264
+             this.getlist()
265
+           }
266
+        })
138 267
       },
139 268
       handleSizeChange(){
140 269
 
@@ -142,6 +271,86 @@
142 271
       handleCurrentChange(){
143 272
 
144 273
       },
274
+      savePatientOutCount(){
275
+        if(this.patient_id == 0){
276
+           this.$message.error("请选择患者")
277
+           return false
278
+        }
279
+        if(this.formLabelAlign.count == 0){
280
+           this.$message.error("请输入次数")
281
+           return false
282
+        }
283
+        if(this.mode_id == 0){
284
+           this.$message.error("请选择模式")
285
+           return false
286
+        }
287
+          var params = {
288
+            patient_id:this.patient_id,
289
+            count:this.formLabelAlign.count,
290
+            remark:this.formLabelAlign.remark,
291
+            mode_id:this.mode_id,
292
+          }
293
+        savePatientOutCount(params).then(response=>{
294
+           if(response.data.state == 1){
295
+              var msg = response.data.data.msg
296
+              this.$message.success("保存成功!")
297
+              this.newkf_show = false
298
+              this.getlist()
299
+           }
300
+        })
301
+      },
302
+      changeTime(val){
303
+       
304
+        this.start_time = val[0]
305
+        this.end_time = val[1]
306
+        this.getlist()
307
+      },
308
+      getlist(){
309
+       
310
+         var params = {
311
+          page:this.page,
312
+          limit:this.limit,
313
+          patient_id:this.patient_id,
314
+          start_time:this.start_time,
315
+          end_time:this.end_time,
316
+         }
317
+        getPatientOutCountList(params).then(response=>{
318
+          if(response.data.state ==1){
319
+            var list = response.data.data.list
320
+            this.tableData =[]
321
+            this.tableData = list
322
+            var total = response.data.data.total
323
+            this.total = total
324
+
325
+            this.patientList = response.data.data.patient
326
+           
327
+            this.userList = response.data.data.userList
328
+          
329
+          }
330
+        })
331
+      },
332
+      DeletePatientOutCount(id,index){
333
+          
334
+        DeletePatientOutCount(id,index).then(response=>{
335
+           
336
+          if(response.data.state == 1){
337
+            var msg =  response.data.data.msg
338
+            this.$message.success("删除成功!")
339
+            this.tableData.splice(index,1)
340
+          }
341
+        })
342
+      },
343
+      checkPatientOutCount(id){
344
+        checkPatientOutCount(id).then(response=>{
345
+          if(response.data.state == 1){
346
+              this.$message.success("保存成功!")
347
+              this.getlist()
348
+          }
349
+        })
350
+      }
351
+    },
352
+    created(){
353
+      this.getlist()
145 354
     }
146 355
   }
147 356
 </script>

+ 80 - 3
src/xt_pages/charging/charging_collect.vue 查看文件

@@ -3,10 +3,25 @@
3 3
     <div class="position"></div>
4 4
     <div class="app-container">
5 5
       <div style="display: flex;justify-content: space-around;">
6
-        <div > <el-input v-model="input" placeholder="请输入内容"></el-input></div>
6
+        <div> 
7
+          <el-autocomplete
8
+              class="inline-input"
9
+               v-model.trim="smart_keyword"
10
+              :fetch-suggestions="querySearch"
11
+              placeholder="请输入内容"
12
+              @select="handleSelect"
13
+              
14
+            >
15
+           <i class="el-icon-search el-input__icon" slot="suffix"></i>
16
+          <template slot-scope="{ item }">
17
+            <div class="name">{{ item.name }}</div>
18
+          </template>
19
+          </el-autocomplete>
20
+        </div>
7 21
         <div>
8 22
           日期查询:
9 23
           <el-date-picker
24
+           @change="changeTime"
10 25
             v-model="value1"
11 26
             type="daterange"
12 27
             range-separator="至"
@@ -16,7 +31,7 @@
16 31
         </div>
17 32
         <div>
18 33
           费用类型:
19
-          <el-select v-model="value" placeholder="请选择">
34
+          <el-select v-model="is_type" placeholder="请选择">
20 35
             <el-option
21 36
               v-for="item in options"
22 37
               :key="item.value"
@@ -135,6 +150,7 @@
135 150
   </div>
136 151
 </template>
137 152
 <script>
153
+import {getPatientMapList,getPatientCountFlowList} from "@/api/patient"
138 154
   export default{
139 155
     data(){
140 156
       return{
@@ -145,10 +161,47 @@
145 161
         state1:'',
146 162
         collect_show:false,
147 163
         options:[{value:0,label:'全部'},{value:1,label:'充值'},{value:2,label:'扣费'}],
148
-        tableData: [{ index: 1, name: '小米', HD: 1, HDF: 1, 'HD+HP': 1, 'qita': 1 ,examine:false}],
164
+        tableData: [],
165
+        start_time:"",
166
+        end_time:"",
167
+        smart_keyword:"",
168
+        patient_id:0,
169
+        limit:10,
170
+        page:1,
171
+        is_type:0,
172
+        total:0,
149 173
       }
150 174
     },
151 175
     methods:{
176
+      handleSelect(val){
177
+        this.smart_keyword = val.name;
178
+        this.patient_id = val.id
179
+      },
180
+      querySearch(queryString, cb){
181
+        let key = ''
182
+        if (queryString != undefined) {
183
+          key = queryString
184
+        }
185
+        let searchArray = []
186
+         var  params = {
187
+          keyword:key
188
+         }
189
+        getPatientMapList(params).then(response => {
190
+          if (response.data.state == 1) {
191
+            searchArray = response.data.data.patient
192
+            cb(searchArray)
193
+          } else {
194
+            this.$message.error(response.data.msg)
195
+            cb([])
196
+          }
197
+        })
198
+        return searchArray
199
+      },
200
+      changeTime(val){
201
+       this.start_time = val[0]
202
+       this.end_time = val[1]
203
+       this.getlist()
204
+     },
152 205
       mingx_click(){
153 206
         this.collect_show = true
154 207
       },
@@ -164,6 +217,30 @@
164 217
       handleCurrentChange(){
165 218
 
166 219
       },
220
+      getlist(){
221
+        var params = {
222
+          start_time:this.start_time,
223
+          end_time:this.end_time,
224
+          patient_id:this.patient_id,
225
+          limit:this.limit,
226
+          page:this.page,
227
+          is_type:this.is_type,
228
+        }
229
+        getPatientCountFlowList(params).then(response=>{
230
+          if(response.data.state == 1){
231
+             var list = response.data.data.list
232
+             this.tableData =[]
233
+             this.tableData = list
234
+             var total = response.data.data.total
235
+
236
+             this.total = total
237
+          }
238
+        })
239
+      }
240
+    },
241
+    created(){
242
+      this.getlist()
167 243
     }
244
+    
168 245
   }
169 246
 </script>

+ 134 - 16
src/xt_pages/charging/charging_cz.vue 查看文件

@@ -10,46 +10,78 @@
10 10
           <div>
11 11
             日期查询:
12 12
             <el-date-picker
13
+              @change="changeTime"
13 14
               v-model="value1"
14 15
               type="daterange"
15 16
               range-separator="至"
17
+              format="yyyy-MM-dd"
18
+              value-format="yyyy-MM-dd"
16 19
               start-placeholder="开始日期"
17 20
               end-placeholder="结束日期">
18 21
             </el-date-picker>
19 22
           </div>
20
-          <div><el-button type="primary">查询</el-button></div>
23
+          <div><el-button type="primary" @click="query">查询</el-button></div>
21 24
           <el-button type="primary" @click="newcz_show=true">新增</el-button>
22 25
         </div>
23 26
         <div style="flex: 1;text-align: right;">
24
-          <!-- <el-button type="primary" @click="new_show=true">新增</el-button> -->
27
+          
25 28
         </div>
26 29
       </div>
27 30
       <div style="margin:10px 0;">
28 31
         <el-table border :data="tableData" style="width: 100%" :header-cell-style="{'text-align':'center'}" :cell-style="{'text-align':'center'}">
29 32
           <el-table-column prop="index" label="序号" width="50">
33
+            <template slot-scope="scope">
34
+                {{scope.$index + 1}}
35
+             </template>
30 36
           </el-table-column>
31 37
           <el-table-column prop="name" label="患者姓名" width="">
38
+            <template slot-scope="scope">
39
+                {{getPatientName(scope.row.patient_id)}}
40
+             </template>
32 41
           </el-table-column>
33 42
           <el-table-column prop="HD" label="充值时间">
43
+            <template slot-scope="scope">
44
+                {{scope.$index + 1}}
45
+             </template>
34 46
           </el-table-column>
35 47
           <el-table-column prop="HDF" label="充值类型">
48
+            <template slot-scope="scope">
49
+             <span v-if="scope.row.is_type==1">HD</span>
50
+             <span v-if="scope.row.is_type==2">HDF</span>
51
+             <span v-if="scope.row.is_type==3">HD+HP</span>
52
+             <span v-if="scope.row.is_type==4">HP</span>
53
+             <span v-if="scope.row.is_type==5">其他</span>
54
+            </template>
36 55
           </el-table-column>
37 56
           <el-table-column prop="HD+HP" label="充值次数">
57
+            <template slot-scope="scope">
58
+               {{ scope.row.count }}
59
+            </template>
38 60
           </el-table-column>
39 61
           <el-table-column prop="HP" label="状态">
62
+             <template slot-scope="scope">
63
+                <span v-if="scope.row.is_check == 1">已审核</span>
64
+                <span v-if="scope.row.is_check == 2">未审核</span>
65
+             </template>
40 66
           </el-table-column>
41 67
           <el-table-column prop="qita" label="创建人">
68
+            <template slot-scope="scope">
69
+                {{ getAdminUser(scope.row.creater) }}
70
+             </template>
42 71
           </el-table-column>
43 72
           <el-table-column prop="qita" label="备注">
73
+            <template slot-scope="scope">
74
+               {{ scope.row.remark }}
75
+             </template>
44 76
           </el-table-column>
45 77
           <el-table-column prop="address" label="操作" width="300">
46 78
             <template slot-scope="scope">
47
-              <span v-if="scope.row.examine==false">
48
-                <el-button type="primary" @click="cz_click(scope.row)" >反审核</el-button>
79
+              <span v-if="scope.row.is_check==1">
80
+                <el-button type="primary" @click="toReturnCheck(scope.row.id)" >反审核</el-button>
49 81
               </span>
50
-              <div v-if="scope.row.examine==true">
51
-                <el-button type="primary" >审核</el-button>
52
-                <el-button type="danger">删除</el-button>
82
+              <div v-if="scope.row.is_check==2">
83
+                <el-button type="primary" @click="toCheck(scope.row.id)">审核</el-button>
84
+                <el-button type="danger" @click="deletePatientCount(scope.row.id,scope.$index)">删除</el-button>
53 85
               </div>
54 86
             </template>
55 87
           </el-table-column>
@@ -60,10 +92,10 @@
60 92
           @size-change="handleSizeChange"
61 93
           @current-change="handleCurrentChange"
62 94
           :current-page="currentPage"
63
-          :page-sizes="[100, 200, 300, 400]"
64
-          :page-size="100"
95
+          :page-sizes="[10, 20, 30, 40,100]"
96
+          :page-size="10"
65 97
           layout="total, sizes, prev, pager, next, jumper"
66
-          :total="400">
98
+          :total="total">
67 99
         </el-pagination>
68 100
       </div>
69 101
     </div>
@@ -118,9 +150,10 @@
118 150
   </div>
119 151
 </template>
120 152
 <script>
121
-  import {getPatientMapList,savePatentCount } from "@/api/patient"
153
+  import {getPatientMapList,savePatentCount,getPatientCountList,deletePatientCount,checkPatientCount,toReturnCheck } from "@/api/patient"
122 154
   import BreadCrumb from "@/xt_pages/components/bread-crumb";
123 155
   export default{
156
+    components: { BreadCrumb },
124 157
     data(){
125 158
       return{
126 159
         input:'',
@@ -135,19 +168,42 @@
135 168
         },
136 169
         smart_keyword:"",
137 170
         currentPage:1,
138
-        tableData: [{ index: 1, name: '小米', HD: 1, HDF: 1, 'HD+HP': 1, 'qita': 1,examine:false }],
171
+        tableData: [],
139 172
         patient_id:0,
140 173
         hd_count:"1",
141 174
         hdf_count:"1",
142 175
         hdhp_count:"1",
143 176
         hp_count:"1",
144 177
         other_count:"0",
178
+        patientList:[],
179
+        limit:10,
180
+        page:1,
181
+        total:0,
182
+        userList:[]
145 183
       }
146 184
     },
147 185
     methods:{
186
+      changeTime(val){
187
+        this.start_time = val[0]
188
+        this.end_time = val[1]
189
+        this.getlist()
190
+      },
191
+      getPatientName(id){
192
+       var name = ""
193
+      for(let i=0;i<this.patientList.length;i++){
194
+        if(id == this.patientList[i].id){
195
+          name = this.patientList[i].name
196
+        }
197
+      }
198
+      return name
199
+     },
200
+      query(){
201
+        this.getlist()
202
+      },
148 203
       handleSelect(val){
149 204
         this.smart_keyword = val.name;
150 205
         this.patient_id = val.id
206
+        this.getlist()
151 207
       },
152 208
       querySearch(queryString, cb){
153 209
         let key = ''
@@ -174,10 +230,12 @@
174 230
         row.examine=true
175 231
       },
176 232
       handleSizeChange(){
177
-
233
+        this.limit = limit;
234
+        this.getList();
178 235
       },
179 236
       handleCurrentChange(){
180
-
237
+        this.page = page;
238
+        this.getList();
181 239
       },
182 240
       savePatentCount(){
183 241
         var params = {
@@ -191,15 +249,75 @@
191 249
         }
192 250
        savePatentCount(params).then(response=>{
193 251
           if(response.data.state == 1){
194
-             var patientInCount = response.data.data.patientInCount
252
+             var msg = response.data.data.msg
253
+             this.$message.success("保存成功")
195 254
              this.newcz_show = false
196 255
           }
197 256
        }) 
257
+      },
258
+      getlist(){
259
+          var params = {
260
+            limit:this.limit,
261
+            page:this.page,
262
+            patient_id:this.patient_id,
263
+            start_time:this.start_time,
264
+            end_time:this.end_time
265
+          }
266
+        getPatientCountList(params).then(response=>{
267
+          if(response.data.state == 1){
268
+             
269
+            this.tableData = []
270
+            this.tableData = response.data.data.list
271
+
272
+            this.total = response.data.data.total
273
+
274
+            this.patientList = []
275
+            this.patientList = response.data.data.patient
276
+            this.userList = []
277
+            this.userList = response.data.data.userList
278
+          }
279
+        })
280
+      },
281
+      getAdminUser(creater){
282
+        var user_name = ""
283
+        for(let i=0;i<this.userList.length;i++){
284
+           if(creater == this.userList[i].id){
285
+              user_name = this.userList[i].name
286
+           }
287
+        }
288
+        return user_name
289
+      },
290
+      deletePatientCount(id,index){
291
+        deletePatientCount(id,index).then(response=>{
292
+          if(response.data.state == 1){
293
+            var msg = response.data.data.msg
294
+            this.$message.error("删除成功!")
295
+            this.tableData.splice(index,1)
296
+          }
297
+        })
298
+      },
299
+      toCheck(id){
300
+         checkPatientCount(id).then(response=>{
301
+            if(response.data.state == 1){
302
+              var checkpatientcount =  response.data.data.checkpatientcount
303
+              this.$message.success("审核成功!")
304
+              this.getlist()
305
+            }
306
+         })
307
+      },
308
+      toReturnCheck(id){
309
+        toReturnCheck(id).then(response=>{
310
+          if(response.data.state == 1){
311
+             var checkPatientCount = response.data.data.checkpatientcount
312
+             this.$message.success("反审核成功!")
313
+             this.getlist()
314
+          }
315
+        })
198 316
       }
199 317
      
200 318
     },
201 319
     created(){
202
-     
320
+     this.getlist()
203 321
     }
204 322
   }
205 323
 </script>

+ 329 - 41
src/xt_pages/charging/index.vue 查看文件

@@ -6,37 +6,85 @@
6 6
     <div class="app-container">
7 7
       <div style="display: flex;margin-bottom: 10px;">
8 8
         <div style="flex: 1;">
9
-          <el-autocomplete class="inline-input" v-model="state1" :fetch-suggestions="querySearch" placeholder="请输入患者姓名"
10
-            @select="handleSelect"></el-autocomplete>
9
+         
10
+            <el-autocomplete
11
+              class="inline-input"
12
+               v-model.trim="smart_keyword"
13
+              :fetch-suggestions="querySearch"
14
+              placeholder="请输入内容"
15
+              @select="handleSelect"
16
+              
17
+            >
18
+           <i class="el-icon-search el-input__icon" slot="suffix"></i>
19
+          <template slot-scope="{ item }">
20
+            <div class="name">{{ item.name }}</div>
21
+          </template>
22
+          </el-autocomplete>
11 23
         </div>
12 24
         <div style="flex: 1;text-align: right;">
13
-          <el-button type="primary">扣减配置</el-button>
25
+          <el-button type="primary" @click="toSetting">扣减配置</el-button>
14 26
         </div>
15 27
       </div>
16 28
       <div>
17
-        <el-table border :data="tableData" style="width: 100%" 
29
+        <el-table border :data="tableList" style="width: 100%" 
18 30
           :header-cell-style="{'text-align':'center'}" 
19 31
           :cell-style="{'text-align':'center'}
20 32
         ">
21 33
           <el-table-column prop="index" label="序号" width="50">
34
+            <template slot-scope="scope">
35
+                {{scope.$index + 1}}
36
+             </template>
22 37
           </el-table-column>
23 38
           <el-table-column prop="name" label="患者姓名" width="">
39
+            <template slot-scope="scope">
40
+                {{getPatientName(scope.row.id)}}
41
+             </template>
24 42
           </el-table-column>
25 43
           <el-table-column prop="HD" label="HD">
44
+            <template slot-scope="scope">
45
+              <span v-if="scope.row.hd_count>0">
46
+                {{scope.row.hd_count}}
47
+              </span>
48
+               
49
+             </template>
26 50
           </el-table-column>
27 51
           <el-table-column prop="HDF" label="HDF">
52
+            <template slot-scope="scope">
53
+              <span v-if="scope.row.hdf_count>0">
54
+                {{scope.row.hdf_count}}
55
+              </span>
56
+               
57
+             </template>
28 58
           </el-table-column>
29 59
           <el-table-column prop="HD+HP" label="HD+HP">
60
+            <template slot-scope="scope">
61
+              <span v-if="scope.row.hdhp_count>0">
62
+                {{scope.row.hdhp_count}}
63
+              </span>
64
+              
65
+             </template>
30 66
           </el-table-column>
31 67
           <el-table-column prop="HP" label="HP">
68
+            <template slot-scope="scope">
69
+              <span v-if="scope.row.hp_count>0">
70
+                {{scope.row.hp_count}}
71
+              </span>
72
+               
73
+             </template>
32 74
           </el-table-column>
33 75
           <el-table-column prop="qita" label="其他">
76
+            <template slot-scope="scope">
77
+              <span v-if="scope.row.other_count>0">
78
+                {{scope.row.other_count}}
79
+              </span>
80
+              
81
+             </template>
34 82
           </el-table-column>
35 83
           <el-table-column prop="address" label="操作" width="300">
36 84
             <template slot-scope="scope">
37 85
               <el-button type="primary" @click="cz_click">充值</el-button>
38 86
               <el-button type="primary" @click="kf_click">扣费</el-button>
39
-              <el-button type="primary" @click="details_click(scope.row)">流水详情</el-button>
87
+              <el-button type="primary" @click="details_click(scope.row.id)">流水详情</el-button>
40 88
             </template>
41 89
           </el-table-column>
42 90
         </el-table>
@@ -46,10 +94,10 @@
46 94
           @size-change="handleSizeChange"
47 95
           @current-change="handleCurrentChange"
48 96
           :current-page="currentPage"
49
-          :page-sizes="[100, 200, 300, 400]"
50
-          :page-size="100"
97
+          :page-sizes="[10, 20, 30, 40,60,100,200,400,800,1000]"
98
+          :page-size="10"
51 99
           layout="total, sizes, prev, pager, next, jumper"
52
-          :total="400">
100
+          :total="total">
53 101
         </el-pagination>
54 102
       </div>
55 103
     </div>
@@ -61,19 +109,40 @@
61 109
       >
62 110
       <div>
63 111
         <div style="display: flex;justify-content: space-around;width: 60%;margin-bottom: 10px;">
64
-          <div>患者姓名:小米</div>
65
-          <div>HD次数:</div>
66
-          <div>HDF次数:</div>
67
-          <div>HD+HP次数:</div>
68
-          <div>HP次数:</div>
69
-          <div>其他次数:</div>
112
+          <div>患者姓名:{{ patient.name }}</div>
113
+          <div>HD次数:
114
+            <span v-if="patient.hd_count>0">
115
+              {{ patient.hd_count }}
116
+            </span> 
117
+          </div>
118
+          <div>HDF次数:
119
+            <span v-if="patient.hdf_count>0">{{ patient.hdf_count }}</span> 
120
+          </div>
121
+          <div>HD+HP次数:
122
+            <span v-if="patient.hdhp_count>0">
123
+              {{ patient.hdhp_count }}
124
+            </span> 
125
+          </div>
126
+          <div>HP次数: 
127
+            <span v-if="patient.hp_count>0">
128
+              {{ patient.hp_count }}
129
+            </span> 
130
+          </div>
131
+          <div>其他次数:
132
+            <span v-if="patient.other_count>0">
133
+              {{ patient.other_count }}
134
+            </span>
135
+          </div>
70 136
         </div>
71 137
         <div style="display: flex;justify-content: space-around;">
72 138
           <div>
73 139
             日期查询:
74 140
             <el-date-picker
141
+             @change="changeTime"
75 142
               v-model="value1"
76 143
               type="daterange"
144
+              format="yyyy-MM-dd"
145
+              value-format="yyyy-MM-dd"
77 146
               range-separator="至"
78 147
               start-placeholder="开始日期"
79 148
               end-placeholder="结束日期"
@@ -82,55 +151,112 @@
82 151
           </div>
83 152
           <div>
84 153
             费用类型:
85
-            <el-select v-model="value" placeholder="请选择" style="width: 100px;">
154
+            <el-select v-model="is_type" placeholder="请选择" style="width: 100px;">
86 155
               <el-option
87
-                v-for="item in options"
88
-                :key="item.value"
89
-                :label="item.label"
90
-                :value="item.value">
156
+                v-for="item in type_options"
157
+                :key="item.id"
158
+                :label="item.is_type"
159
+                :value="item.id">
91 160
               </el-option>
92 161
             </el-select>
93 162
           </div>
94 163
           <div>
95 164
             透析模式:
96
-            <el-select v-model="value" placeholder="请选择" style="width: 100px;">
165
+            <el-select v-model="mode_id" placeholder="请选择" style="width: 100px;">
97 166
               <el-option
98 167
                 v-for="item in options"
99
-                :key="item.value"
100
-                :label="item.label"
101
-                :value="item.value">
168
+                :key="item.mode_id"
169
+                :label="item.mode_name"
170
+                :value="item.mode_id">
102 171
               </el-option>
103 172
             </el-select>
104 173
           </div>
105
-          <div><el-button type="primary">查询</el-button></div>
174
+          <div><el-button type="primary" @click="queryList">查询</el-button></div>
106 175
         </div>
107 176
         <div style="margin: 10px 0;">
108 177
           <el-table border :data="tableData" style="width: 100%" :header-cell-style="{'text-align':'center'}" :cell-style="{'text-align':'center'}">
109 178
             <el-table-column prop="index" label="序号" width="">
179
+              <template slot-scope="scope">
180
+                {{scope.$index + 1}}
181
+              </template>
110 182
             </el-table-column>
111 183
             <el-table-column prop="name" label="患者姓名" width="">
184
+              <template slot-scope="scope">
185
+                {{getPatientName(scope.row.patient_id)}}
186
+              </template>
112 187
             </el-table-column>
113 188
             <el-table-column prop="HD" label="费用发生时间">
189
+              <template slot-scope="scope">
190
+                {{getTime(scope.row.ctime)}}
191
+              </template>
114 192
             </el-table-column>
115 193
             <el-table-column prop="HD" label="费用类别">
194
+              <template slot-scope="scope">
195
+                  <span v-if="scope.row.is_type==1">充值</span>
196
+                  <span v-if="scope.row.is_type==2">扣费</span>
197
+              </template>
116 198
             </el-table-column>
117 199
             <el-table-column prop="HDF" label="透析类型">
200
+              <template slot-scope="scope">
201
+                 <span v-if="scope.row.mode_id==1">HD</span>
202
+                 <span v-if="scope.row.mode_id==2">HDF</span>
203
+                 <span v-if="scope.row.mode_id==3">HD+HP</span>
204
+                 <span v-if="scope.row.mode_id==4">HP</span>
205
+                 <span v-if="scope.row.mode_id==5">其他</span>
206
+              </template>
118 207
             </el-table-column>
119 208
             <el-table-column prop="HD+HP" label="费用次数">
209
+              <template slot-scope="scope">
210
+                   {{ scope.row.count }}
211
+              </template>
120 212
             </el-table-column>
121 213
             <el-table-column prop="address" label="创建人">
214
+              <template slot-scope="scope">
215
+                {{ getAdminUser(scope.row.creater) }}
216
+              </template>
122 217
             </el-table-column>
123 218
             <el-table-column prop="address" label="备注">
219
+              <template slot-scope="scope">
220
+                  {{ scope.row.remark }}
221
+              </template>
124 222
             </el-table-column>
125 223
           </el-table>
126 224
         </div>
225
+        <div style="margin-top: 10px;text-align: right;">
226
+        <el-pagination
227
+          @size-change="handleSizeChangeOne"
228
+          @current-change="handleCurrentChangeOne"
229
+          :current-page="currentPage"
230
+          :page-sizes="[10, 20, 30, 40,60,100,200,400,800,1000]"
231
+          :page-size="10"
232
+          layout="total, sizes, prev, pager, next, jumper"
233
+          :total="total_one">
234
+        </el-pagination>
235
+      </div>
127 236
       </div>
128 237
     </el-dialog>
238
+
239
+    <el-dialog title="设置" :visible.sync="editDialogVisible" width="30%">
240
+        <span style="font-size: 17px">是否开启下机自动扣减</span>
241
+        <span style="display: block; padding: 18px 25px">
242
+          <el-radio v-model="is_open" label="1">是</el-radio>
243
+          <el-radio v-model="is_open" label="2">否</el-radio>
244
+        </span>
245
+        <span slot="footer" class="dialog-footer">
246
+          <el-button @click="editDialogVisible = false">取 消</el-button>
247
+          <el-button type="primary" @click="SaveSetting">保 存</el-button>
248
+        </span>
249
+      </el-dialog>
129 250
   </div>
130 251
 </template>
131 252
 
132 253
 <script>
254
+import {getPatientMapList,getPatientCountMapList,getPatientCountFlow,getDialysisOrderSetting,savePatientOrderSetting  } from "@/api/patient"
255
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
256
+import { uParseTime } from "@/utils/tools";
257
+import patient from "../../router/modules/patient";
133 258
 export default {
259
+  components: { BreadCrumb },
134 260
   data() {
135 261
     return {
136 262
       crumbs: [
@@ -140,43 +266,205 @@ export default {
140 266
       value:0,
141 267
       restaurants: [{value: '小米' }, { value: '小王' }],
142 268
       state1: '',
143
-      tableData: [{ index: 1, name: '小米', HD: 1, HDF: 1, 'HD+HP': 1, 'qita': 1 }],
144
-      options:[{value:0,label:'全部'},{value:1,label:'充值'},{value:2,label:'扣费'}],
269
+      tableData: [],
270
+      tableList:[],
271
+      type_options:[
272
+        {id:0,is_type:"全部"},
273
+        {id:1,is_type:"充值"},
274
+        {id:2,is_type:"扣费"},
275
+      ],
276
+      options:[
277
+       {mode_id:0,mode_name:"全部"},
278
+       {mode_id:1,mode_name:"HD"},
279
+       {mode_id:2,mode_name:"HDF"},
280
+       {mode_id:3,mode_name:"HD+HP"},
281
+       {mode_id:4,mode_name:"HP"},
282
+       {mode_id:5,mode_name:"其他"}
283
+      ],
145 284
       currentPage:1,
146 285
       details_show:false,
286
+      smart_keyword:"",
287
+      patient_id:"",
288
+      limit:10,
289
+      page:1,
290
+      total:0,
291
+      patientList:[],
292
+      page_one:1,
293
+      limit_one:10,
294
+      total_one:0,
295
+      start_time:"",
296
+      end_time:"",
297
+      is_type:0,
298
+      mode_id:0,
299
+      patient:{},
300
+      editDialogVisible:false,
301
+      is_open:"2",
147 302
     }
148 303
   },
149 304
   methods: {
150
-    handleSelect() {
151
-
305
+    toSetting(){
306
+      getDialysisOrderSetting().then(response=>{
307
+        if(response.data.state == 1){
308
+           var order =  response.data.data.order
309
+           if(order!=undefined && order.id>0){
310
+            this.is_open =order.is_open.toString()
311
+           }
312
+           
313
+        }
314
+      })
315
+      this.editDialogVisible = true
316
+    },
317
+    SaveSetting(){
318
+      var params = {
319
+        is_open:parseInt(this.is_open) 
320
+      }
321
+      savePatientOrderSetting(params).then(response=>{
322
+        if(response.data.state == 1){
323
+          var order = response.data.data.order
324
+          this.$message.success("保存成功!")
325
+          this.editDialogVisible = false
326
+          
327
+        }
328
+      })
329
+    },
330
+    getAdminUser(creater){
331
+        var user_name = ""
332
+        for(let i=0;i<this.userList.length;i++){
333
+           if(creater == this.userList[i].id){
334
+              user_name = this.userList[i].name
335
+           }
336
+        }
337
+        return user_name
338
+    },
339
+    getTime(val) {
340
+      if(val < 0){
341
+        return ""
342
+      }
343
+      if(val == ""){
344
+      return ""
345
+      }else {
346
+      return uParseTime(val, '{y}-{m}-{d}')
347
+      }
152 348
     },
153
-    querySearch(queryString, cb) {
154
-      console.log('vvvvv',queryString);
155
-      var restaurants = this.restaurants;
156
-      var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
157
-      // 调用 callback 返回建议列表的数据
158
-      cb(results);
349
+    changeTime(val){
350
+      this.start_time = val[0]
351
+      this.end_time = val[1]
352
+      this.getlist()
159 353
     },
354
+    handleSelect(val){
355
+        this.smart_keyword = val.name;
356
+        this.patient_id = val.id
357
+        this.getlist()
358
+      },
359
+      querySearch(queryString, cb){
360
+        let key = ''
361
+        if (queryString != undefined) {
362
+          key = queryString
363
+        }
364
+        let searchArray = []
365
+         var  params = {
366
+          keyword:key
367
+         }
368
+        getPatientMapList(params).then(response => {
369
+          if (response.data.state == 1) {
370
+            searchArray = response.data.data.patient
371
+            console.log("searchArray-------------",searchArray)
372
+            cb(searchArray)
373
+          } else {
374
+            this.$message.error(response.data.msg)
375
+            cb([])
376
+          }
377
+        })
378
+        return searchArray
379
+      },
380
+   
160 381
     createFilter(queryString) {
161 382
       return (restaurant) => {
162 383
         return (restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
163 384
       };
164 385
     },
165
-    handleSizeChange(){
166
-
386
+  handleSizeChange(limit){
387
+      this.limit = limit;
388
+      this.getlist();
389
+    },
390
+    handleCurrentChange(page){
391
+      this.page = page;
392
+      this.getlist();
393
+    },
394
+    handleSizeChangeOne(limit){
395
+      this.limit_one = limit;
396
+      this.getlist();
397
+    },
398
+    handleCurrentChangeOne(page){
399
+      this.page_one = page;
400
+      this.getlist();
167 401
     },
168
-    handleCurrentChange(){
169
-      
402
+    queryList(){
403
+      this.details_click(this.patient_id)
170 404
     },
171
-    details_click(row){
172
-      this.details_show=true
405
+    details_click(patient_id){
406
+        this.patient_id = 0
407
+        this.patient_id = patient_id
408
+         var params = {
409
+          patient_id:patient_id,
410
+          start_time:this.start_time,
411
+          end_time:this.end_time,
412
+          is_type:this.is_type,
413
+          mode_id:this.mode_id,
414
+         }
415
+      getPatientCountFlow(params).then(response=>{
416
+         if(response.data.state == 1){
417
+           this.details_show=true
418
+           var list = response.data.data.list
419
+           this.tableData = []
420
+           this.tableData = list
421
+           var total = response.data.data.total
422
+           this.total_one = total
423
+           var patient= response.data.data.patient
424
+           this.patient = patient
425
+           this.userList = []
426
+           this.userList =  response.data.data.userList
427
+         }
428
+      })
429
+     
173 430
     },
174 431
     cz_click(){
175 432
       this.$router.push({path:'/dialysis/charging_cz'})
176 433
     },
177 434
     kf_click(){
178 435
       this.$router.push({path:'/dialysis/chargin_kf'})
179
-    }
436
+    },
437
+    getlist(){
438
+      var params = {
439
+        limit:this.limit,
440
+        page:this.page,
441
+        patient_id:this.patient_id
442
+      }
443
+    getPatientCountMapList(params).then(response=>{
444
+      if(response.data.state == 1){
445
+        var list =  response.data.data.list
446
+       
447
+        this.tableList = []
448
+        this.tableList = list
449
+        this.total = response.data.data.total
450
+        this.patientList = []
451
+        this.patientList = response.data.data.patient
452
+
453
+      }
454
+    })
455
+   },
456
+   getPatientName(id){
457
+     var name = ""
458
+     for(let i=0;i<this.patientList.length;i++){
459
+      if(id == this.patientList[i].id){
460
+         name = this.patientList[i].name
461
+      }
462
+     }
463
+     return name
464
+   }
465
+  },
466
+ created(){
467
+    this.getlist()
180 468
   }
181 469
 }
182 470
 </script>

+ 4 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_eightyTwo.vue 查看文件

@@ -1013,14 +1013,17 @@ export default {
1013 1013
               if(this.records[x].his_advices.length>0){
1014 1014
                 console.log(this.records, "this.records");
1015 1015
                 const arr = this.records[x].his_advices
1016
-                for(let i in arr ){
1016
+                if(this.org_id!=10727){
1017
+                  for(let i in arr ){
1017 1018
                   if(arr[i].delivery_way == '口服' || 
1018 1019
                     arr[i].delivery_way == '中药口服' ||
1019 1020
                     arr[i].delivery_way == '舌下含服'
1020 1021
                   ){
1021 1022
                     arr.splice(i,1)
1022 1023
                   }
1024
+                 }
1023 1025
                 }
1026
+               
1024 1027
               }
1025 1028
               // this.records[x].his_advices =advice
1026 1029
             }

+ 8 - 7
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue 查看文件

@@ -829,7 +829,7 @@
829 829
                         </div>
830 830
                         kg
831 831
                       </div>
832
-                      <div class="inline_block" style="flex: 1" v-if="org_id != 10469">
832
+                      <div class="inline_block" style="flex: 1" v-if="org_id != 10469 && org_id!=10745">
833 833
                         <span v-if="org_id != 10683">计划超滤量:</span>
834 834
                         <span v-if="org_id == 10683">预脱:</span>
835 835
                         <div class="under_line" style="width: 100px; text-align: center">
@@ -846,9 +846,10 @@
846 846
                           v-if="org_id != 10395 && org_id != 9829 && org_id != 10440 && org_id != 10469 && org_id != 10460 && org_id != 10624 && org_id != 10644">L</span>
847 847
                       </div>
848 848
 
849
-                      <div class="inline_block" style="flex: 1" v-if="org_id == 10469 || org_id == 10598">
850
-                        <span v-if="org_id != 10683">计划超滤量:</span>
849
+                      <div class="inline_block" style="flex: 1" v-if="org_id == 10469 || org_id == 10598 || org_id == 10745">
850
+                        <span v-if="org_id != 10683 && org_id!=10745">计划超滤量:</span>
851 851
                         <span v-if="org_id == 10683">预脱:</span>
852
+                        <span v-if="org_id == 10745">处方脱水量</span>
852 853
                         <div class="under_line" style="width: 100px; text-align: center">
853 854
                           {{
854 855
                             record.prescription &&
@@ -857,8 +858,8 @@
857 858
                               : "/"
858 859
                           }}
859 860
                         </div>
860
-                        <span v-if="org_id != 10598 && org_id != 10471"> ml</span>
861
-                        <span v-if="org_id == 10598 || org_id == 10471"> L</span>
861
+                        <span v-if="org_id != 10598 && org_id != 10471 && org_id!=10745"> ml</span>
862
+                        <span v-if="org_id == 10598 || org_id == 10471 || org_id == 10745"> L</span>
862 863
                       </div>
863 864
                       <div class="inline_block" style="flex: 1">
864 865
                         干体重:
@@ -1471,14 +1472,14 @@
1471 1472
                             }}
1472 1473
                           </td>
1473 1474
                           <td v-if="org_id != 10683">
1474
-                            <span v-if="org_id == 9671 || org_id == 10440 || org_id == 10471">
1475
+                            <span v-if="org_id == 9671 || org_id == 10440 || org_id == 10471 || org_id == 10744 || org_id == 10726">
1475 1476
                               {{
1476 1477
                                 monitor_record.ultrafiltration_volume
1477 1478
                                   ? monitor_record.ultrafiltration_volume
1478 1479
                                   : "0"
1479 1480
                               }}
1480 1481
                             </span>
1481
-                            <span v-if="org_id != 9671 && org_id != 10440 && org_id != 10471">
1482
+                            <span v-if="org_id != 9671 && org_id != 10440 && org_id != 10471 && org_id!=10744 && org_id!=10726">
1482 1483
                               {{
1483 1484
                                 monitor_record.ultrafiltration_volume
1484 1485
                                   ? monitor_record.ultrafiltration_volume

+ 4 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_twentyEight.vue 查看文件

@@ -1400,6 +1400,7 @@
1400 1400
                     <td width="60" style="line-height: 20px">
1401 1401
                       电导度<br />mS/cm
1402 1402
                     </td>
1403
+                    <td width="60" style="line-height:20px" v-if="org_id == 10015">置换液流量<br />ml/h</td>
1403 1404
                     <td width="" style="line-height: 20px">病情变化及处理</td>
1404 1405
                   </tr>
1405 1406
 
@@ -1490,7 +1491,9 @@
1490 1491
                         monitor.conductivity ? monitor.conductivity : ""
1491 1492
                       }}
1492 1493
                     </td>
1493
-
1494
+                    <td>
1495
+                     &nbsp;{{ monitor.displacement_flow_quantity ? monitor.displacement_flow_quantity : "" }}
1496
+                    </td>
1494 1497
                     <td>
1495 1498
                       &nbsp;{{ monitor.symptom }} &nbsp;{{
1496 1499
                         monitor.dispose

+ 21 - 4
src/xt_pages/dialysis/bloodPresssWatch.vue 查看文件

@@ -719,6 +719,13 @@
719 719
           align="center"
720 720
           width="120"
721 721
         ></el-table-column>
722
+
723
+        <el-table-column
724
+          label="透析器/灌流器"
725
+          prop="dialysis_dialyszers_name"
726
+          align="center"
727
+          width="120"
728
+        ></el-table-column>
722 729
         <el-table-column
723 730
           prop="start_time"
724 731
           label="上机时间"
@@ -2070,7 +2077,17 @@ export default {
2070 2077
               SchedualPatientsTable["sch_time_int"] = response.data.data.schedule[i].schedule_date;
2071 2078
               SchedualPatientsTable["sch_time"] = parseTime(response.data.data.schedule[i].schedule_date,"{y}-{m}-{d}");
2072 2079
               SchedualPatientsTable["mode_id"] = response.data.data.schedule[i].mode_id
2080
+                
2081
+              if(response.data.data.schedule[i].prescription.dialyzer_perfusion_apparatus !=""){
2082
+                SchedualPatientsTable["dialysis_dialyszers_name"] = response.data.data.schedule[i].prescription.dialyzer_perfusion_apparatus 
2083
+              }
2084
+
2085
+              if(response.data.data.schedule[i].prescription.dialyzer_perfusion_apparatus ==""){
2086
+                SchedualPatientsTable["dialysis_dialyszers_name"] = response.data.data.schedule[i].prescription.dialysis_dialyszers + response.data.data.schedule[i].prescription.dialysis_irrigation 
2087
+              }
2088
+             
2073 2089
 
2090
+              
2074 2091
               if(response.data.data.schedule[i].patient!=null){
2075 2092
                  SchedualPatientsTable["dialysis_no"] = response.data.data.schedule[i].patient.dialysis_no;
2076 2093
                  SchedualPatientsTable["name"] =  response.data.data.schedule[i].patient.name;
@@ -3066,10 +3083,10 @@ export default {
3066 3083
          }
3067 3084
          console.log("监测统计",this.SchedualPatientsTableData)
3068 3085
 
3069
-         const multiHeader = [['序号','机号','排班日期','上机时间','透析号','姓名','透析模式','目标超滤量','透前血压','干体重','透前称重','透后称重','监测时间','','','','','','','透中血压','','','','','','','体温','','','','','','','呼吸','','','','','','','脉搏','','','','','','']]
3070
-         const header = ['','','','','','','','','','','','','第1次','第2次','第3次','第4次','第5次','第6次','第7次','第1次','第2次','第3次','第4次','第5次','第6次','第7次','第1次','第2次','第3次','第4次','第5次','第6次','第7次','第1次','第2次','第3次','第4次','第5次','第6次','第7次','第1次','第2次','第3次','第4次','第5次','第6次','第7次',]
3071
-         const merges = ['A1:A2', 'B1:B2', 'C1:C2', 'D1:D2', 'E1:E2','F1:F2','G1:G2','H1:H2', 'I1:I2','J1:J2','K1:K2','L1:L2','M1:S1','T1:Z1','AA1:AG1','AH1:AN1','AO1:AU1']
3072
-        const filterVal = ['index', 'number', 'sch_time', 'start_time', 'dialysis_no', 'name', 'mode_name', 'target_ultrafiltration', 'pressure_name', 'dry_weight', 'dialysis_before_weight', 'dialysis_after_weight','start_time_one','start_time_two','start_time_three','start_time_four','start_time_five','start_time_six','start_time_seven','blood_press_one','blood_press_two','blood_press_three','blood_press_four','blood_press_five','blood_press_six','blood_press_seven','temperature_one','temperature_two','temperature_three','temperature_four','temperature_five','temperature_six','temperature_seven','breathing_rate_one','breathing_rate_two','breathing_rate_three','breathing_rate_four','breathing_rate_five','breathing_rate_six','breathing_rate_seven','pulse_frequency_one','pulse_frequency_two','pulse_frequency_three','pulse_frequency_four','pulse_frequency_five','pulse_frequency_six','pulse_frequency_seven']
3086
+         const multiHeader = [['序号','机号','排班日期','上机时间','透析号','姓名','透析模式','目标超滤量','透前血压','干体重','透前称重','透后称重','监测时间','','','','','','','透中血压','','','','','','','体温','','','','','','','呼吸','','','','','','','脉搏','','','','','','','透析器/灌流器']]
3087
+         const header = ['','','','','','','','','','','','','第1次','第2次','第3次','第4次','第5次','第6次','第7次','第1次','第2次','第3次','第4次','第5次','第6次','第7次','第1次','第2次','第3次','第4次','第5次','第6次','第7次','第1次','第2次','第3次','第4次','第5次','第6次','第7次','第1次','第2次','第3次','第4次','第5次','第6次','第7次','']
3088
+         const merges = ['A1:A2', 'B1:B2', 'C1:C2', 'D1:D2', 'E1:E2','F1:F2','G1:G2','H1:H2', 'I1:I2','J1:J2','K1:K2','L1:L2','M1:S1','T1:Z1','AA1:AG1','AH1:AN1','AO1:AU1','AV1']
3089
+        const filterVal = ['index', 'number', 'sch_time', 'start_time', 'dialysis_no', 'name', 'mode_name', 'target_ultrafiltration', 'pressure_name', 'dry_weight', 'dialysis_before_weight', 'dialysis_after_weight','start_time_one','start_time_two','start_time_three','start_time_four','start_time_five','start_time_six','start_time_seven','blood_press_one','blood_press_two','blood_press_three','blood_press_four','blood_press_five','blood_press_six','blood_press_seven','temperature_one','temperature_two','temperature_three','temperature_four','temperature_five','temperature_six','temperature_seven','breathing_rate_one','breathing_rate_two','breathing_rate_three','breathing_rate_four','breathing_rate_five','breathing_rate_six','breathing_rate_seven','pulse_frequency_one','pulse_frequency_two','pulse_frequency_three','pulse_frequency_four','pulse_frequency_five','pulse_frequency_six','pulse_frequency_seven','dialysis_dialyszers_name']
3073 3090
 
3074 3091
          const data = this.formatJson(filterVal, this.SchedualPatientsTableData)
3075 3092
          const filename = '监测数据'

+ 36 - 3
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -1540,7 +1540,7 @@
1540 1540
 </template>
1541 1541
 
1542 1542
 <script>
1543
-  import { CreateGroupAdvice, GetSolution, postPrescription, postSoulution,saveInformation,getPatientRecordList,getPatientBefor } from '@/api/dialysis'
1543
+  import { CreateGroupAdvice, GetSolution, postPrescription, postSoulution,saveInformation,getPatientRecordList,getPatientBefor,getPatientDialysisSolutionByPatientId } from '@/api/dialysis'
1544 1544
   import { getDataConfig } from '@/utils/data'
1545 1545
   import { calculateAnticoagulantZL, uParseTime,replacementFlow } from '@/utils/tools'
1546 1546
   import store from '@/store'
@@ -3346,6 +3346,11 @@ mu
3346 3346
           this.getPatientBefor()
3347 3347
         }
3348 3348
 
3349
+        // if(this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id==10480){
3350
+            
3351
+        //   this.getPatientDialysisSolutionByPatientId()
3352
+        // } 
3353
+
3349 3354
        
3350 3355
 
3351 3356
 
@@ -4887,7 +4892,6 @@ mu
4887 4892
       }
4888 4893
     },
4889 4894
     changePrescription(id) {
4890
-      console.log("id233223232323232323",id)
4891 4895
       if(id != 2 && id!=5 && id!= 12&&id!=34 &&id!=35&&id!=35&&id!=36&&id!=37){
4892 4896
         this.dialysisPrescription.displace_liqui_value = ""
4893 4897
         this.dialysisPrescription.displace_liqui_part = ""
@@ -5237,6 +5241,15 @@ mu
5237 5241
          }
5238 5242
       })
5239 5243
     },
5244
+    getPatientDialysisSolution(){
5245
+        var params = {
5246
+          patient_id:patient_id,
5247
+          record_date:record_date
5248
+        }
5249
+      getPatientDialysisSolution(params).then(response=>{
5250
+
5251
+      })
5252
+    },
5240 5253
     unique(arr) {
5241 5254
       const res = new Map()
5242 5255
       return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1))
@@ -5273,7 +5286,27 @@ mu
5273 5286
             this.infoDialogVisible = false
5274 5287
           }
5275 5288
       })
5276
-     }
5289
+    },
5290
+    // getPatientDialysisSolutionByPatientId(){
5291
+    //    var patient_id = 0
5292
+    //    var record_date =""
5293
+    //    if(this.$route.query.patient_id!=undefined){
5294
+    //     patient_id =this.$route.query.patient_id
5295
+    //     record_date = uParseTime(this.$route.query.date, '{y}-{m}-{d}')
5296
+    //    }else{
5297
+    //     patient_id = this.patient.id
5298
+    //     record_date = this.record_date
5299
+    //    }
5300
+    //    var params = {
5301
+    //     patient_id:patient_id,
5302
+    //     record_date:record_date
5303
+    //    }
5304
+    //   getPatientDialysisSolutionByPatientId(params).then(response=>{
5305
+    //      if(response.data.state == 1){
5306
+    //        var dialysisSolution = response.data.data.dialysisSolution
5307
+    //      }
5308
+    //   })
5309
+    // }
5277 5310
   },
5278 5311
 
5279 5312
     watch: {

+ 7 - 7
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue 查看文件

@@ -207,7 +207,7 @@
207 207
           </el-table-column>
208 208
 
209 209
           <el-table-column
210
-            v-if="monitors[0] && monitors[0]['venous_pressure_type'] != 2&&org_id ==10693"
210
+            v-if="monitors[0] && monitors[0]['venous_pressure_type'] != 2 && org_id ==10693 && org_id == 10744"
211 211
             prop="venous_pressure"
212 212
             align="center"
213 213
             label="静脉压/动脉压(mmHg)"
@@ -784,7 +784,7 @@
784 784
                 org_id!=10558 &&
785 785
                 org_id!=10517 && 
786 786
                 org_id!=10414 && 
787
-                org_id!=10598 && org_id!=10694 && org_id!=10697 && org_id!=10567 && org_id!=10644 && org_id!=10721 && org_id!=10731) ||
787
+                org_id!=10598 && org_id!=10694 && org_id!=10697 && org_id!=10567 && org_id!=10644 && org_id!=10721 && org_id!=10731 && org_id!=10744) ||
788 788
                 org_id == 9779 ||
789 789
                 template_id == 11 ||
790 790
                 template_id == 20 ||
@@ -800,7 +800,7 @@
800 800
                 org_id == 10395 ||
801 801
                 org_id == 10206 ||
802 802
                 org_id == 10751 ||
803
-                org_id == 10752
803
+                org_id == 10752 
804 804
                 )
805 805
             "
806 806
           >
@@ -820,7 +820,7 @@
820 820
             width="100"
821 821
             v-if="
822 822
               isShow('置换量') &&
823
-              (template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478 || org_id == 10551 || org_id ==10558 || org_id ==10517 || org_id ==10598 || org_id ==10414 || org_id == 10694 || org_id == 10697 || org_id ==10567 || org_id == 10644 || org_id == 10721 || org_id == 10731 || org_id == 10731) &&
823
+              (template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478 || org_id == 10551 || org_id ==10558 || org_id ==10517 || org_id ==10598 || org_id ==10414 || org_id == 10694 || org_id == 10697 || org_id ==10567 || org_id == 10644 || org_id == 10721 || org_id == 10731 || org_id == 10731 || org_id == 10744) &&
824 824
               template_id != 9779 &&
825 825
               template_id != 11 &&
826 826
               template_id != 20 &&
@@ -2013,7 +2013,7 @@
2013 2013
             :span="8"
2014 2014
             v-if="
2015 2015
               isShow('置换量') &&
2016
-              (template_id != 6 || org_id == 9919 || org_id == 10191 || org_id ==10551 || org_id ==10558 || org_id ==10346 || org_id ==10598 || org_id == 10694 || org_id == 10697 || org_id ==10567 || org_id ==10644 || org_id == 10721 || org_id ==10727 || org_id ==10206 || org_id == 10731) &&
2016
+              (template_id != 6 || org_id == 9919 || org_id == 10191 || org_id ==10551 || org_id ==10558 || org_id ==10346 || org_id ==10598 || org_id == 10694 || org_id == 10697 || org_id ==10567 || org_id ==10644 || org_id == 10721 || org_id ==10727 || org_id ==10206 || org_id == 10731 || org_id == 10744) &&
2017 2017
               org_id != 9779 &&
2018 2018
               template_id != 11 &&
2019 2019
               template_id != 20 &&
@@ -2047,7 +2047,7 @@
2047 2047
                 org_id != 9919 &&
2048 2048
                 org_id != 10191 &&
2049 2049
                 org_id != 10551 &&
2050
-                template_id != 43 && org_id!=10558 && org_id!=10346 && org_id!=10598 && org_id!=10414 && org_id !=10694 && org_id != 10697&& org_id != 10567 && org_id!=10644 && org_id!=10206 && org_id!=10731) ||
2050
+                template_id != 43 && org_id!=10558 && org_id!=10346 && org_id!=10598 && org_id!=10414 && org_id !=10694 && org_id != 10697&& org_id != 10567 && org_id!=10644 && org_id!=10206 && org_id!=10731 && org_id!=10744) ||
2051 2051
                 org_id == 9779 ||
2052 2052
                 template_id == 11 ||
2053 2053
                 template_id == 20 ||
@@ -2062,7 +2062,7 @@
2062 2062
                 org_id ==10432 ||
2063 2063
                 org_id ==10445 ||
2064 2064
                 org_id == 10395 || org_id == 10751 || org_id == 10752) &&
2065
-                org_id!=10694 && org_id!=10697 && org_id!=10721 && org_id!=10727
2065
+                org_id!=10694 && org_id!=10697 && org_id!=10721 && org_id!=10727 && org_id!=10744
2066 2066
             "
2067 2067
           >
2068 2068
             <el-form-item label="置换量(ml):" :prop="isName('置换量')"

+ 2 - 2
src/xt_pages/dialysis/details/dialysisMonitoring.vue 查看文件

@@ -34,8 +34,8 @@
34 34
           <th v-if=" isShow('置换率') && (template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && org_id!=10432 && org_id!=10445 && org_id!=10410 && org_id!=10617  && org_id!=10677 && org_id !=10702 && org_id !=10721 && org_id !=10727 && org_id !=10206 && org_id!=10751&& org_id!=10752) || org_id == 10558 || org_id ==10598 || org_id ==10414 " width="92px" > 置换率(L/h)  </th>
35 35
           <th v-if=" isShow('置换率1')" width="92px" > 置换率(ml/min) </th>
36 36
           <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
37
-          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191 && org_id!=10478 && org_id!=10346 && org_id!=10517) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10432  || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10751|| this.$store.getters.xt_user.template_info.org_id == 10752 ) && org_id!=10558 && org_id!=10598  && org_id!=10414 && org_id!=10694 && org_id!=10697 && org_id!=10567 && org_id!=10644 && org_id!=10731" width="92px"  > 置换量(ml)  </th>
38
-          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478 || org_id ==10346 || org_id ==10517) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432  && this.$store.getters.xt_user.template_info.org_id != 10445  && this.$store.getters.xt_user.template_info.org_id != 10751&& this.$store.getters.xt_user.template_info.org_id != 10752) || org_id == 10558 || org_id ==10598 || org_id ==10414 || org_id == 10694 || org_id == 10697 || org_id == 10567 || org_id == 10644 || org_id == 10731" width="92px" > 置换量(L) </th>
37
+          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191 && org_id!=10478 && org_id!=10346 && org_id!=10517) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10432  || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10751|| this.$store.getters.xt_user.template_info.org_id == 10752 ) && org_id!=10558 && org_id!=10598  && org_id!=10414 && org_id!=10694 && org_id!=10697 && org_id!=10567 && org_id!=10644 && org_id!=10731 && org_id!=10744" width="92px"  > 置换量(ml)  </th>
38
+          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191 || org_id == 10478 || org_id ==10346 || org_id ==10517) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432  && this.$store.getters.xt_user.template_info.org_id != 10445  && this.$store.getters.xt_user.template_info.org_id != 10751&& this.$store.getters.xt_user.template_info.org_id != 10752) || org_id == 10558 || org_id ==10598 || org_id ==10414 || org_id == 10694 || org_id == 10697 || org_id == 10567 || org_id == 10644 || org_id == 10731 || org_id == 10744" width="92px" > 置换量(L) </th>
39 39
           <th v-if=" isShow('置换量1')" width="92px"  > 置换量(L)  </th>
40 40
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
41 41
           <th v-if=" isShow('SpO₂') && org_id == 9829" width="92px" > SpO₂(%) </th>

+ 31 - 33
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue 查看文件

@@ -685,22 +685,7 @@
685 685
                         style="margin-left: 10px; flex: 1">
686 686
                         置换量:
687 687
                         <div class="under_line" style="width: 70px; text-align: center">
688
-                          <!-- <span v-if="org_id ==10206 "> {{
689
-                            prescription.replacement_total
690
-                              ? prescription.replacement_total
691
-                              : "/"
692
-                          }}
693
-                          </span>
694
-
695
-                          <span v-if="org_id ==10510 ">
696
-                            <span v-if="prescription!=null &&( prescription.mode_id ==2 || prescription.mode_id ==5 || presciption.mode_id==12)">{{
697
-                              afterdialysis.displace_liqui_value
698
-                              ? afterdialysis.displace_liqui_value
699
-                              : "/"
700
-                            }}
701
-                          </span>
702
-                          <span v-else>/</span>
703
-                          </span> -->
688
+                         
704 689
                           <span v-if="org_id != 10206 && org_id != 10510"> {{
705 690
                             prescription.displace_liqui_value
706 691
                               ? prescription.displace_liqui_value
@@ -708,7 +693,8 @@
708 693
                           }}
709 694
                           </span>
710 695
                         </div>
711
-                        L
696
+                        <span v-if="org_id != 10726">L</span> 
697
+                        <span v-if="org_id == 10726">ml</span> 
712 698
                       </div>
713 699
 
714 700
                       <div v-if="org_id != 10598" class="inline_block" style="margin-left: 10px; flex: 1">
@@ -743,7 +729,8 @@
743 729
                           }}
744 730
                           </span>
745 731
                         </div>
746
-                        L
732
+                       <span v-if="org_id == 10726">ml</span>
733
+                       <span v-if="org_id != 10726">L</span>
747 734
                       </div>
748 735
                       <div class="inline_block" style="margin-left: 10px; flex: 1" v-if="org_id != 10683">
749 736
                         血流量:
@@ -932,7 +919,7 @@
932 919
                         </div>
933 920
                         kg
934 921
                       </div>
935
-                      <div class="inline_block" style="flex: 1" v-if="org_id != 10469">
922
+                      <div class="inline_block" style="flex: 1" v-if="org_id != 10469 && org_id!=10745">
936 923
                         <span v-if="org_id != 10683">计划超滤量:</span>
937 924
                         <span v-if="org_id == 10683">预脱:</span>
938 925
                         <div class="under_line" style="width: 100px; text-align: center">
@@ -949,7 +936,7 @@
949 936
                       </div>
950 937
 
951 938
 
952
-                      <div class="inline_block" style="flex: 1" v-if="org_id == 10469 || org_id == 10598">
939
+                      <div class="inline_block" style="flex: 1" v-if="org_id == 10469 || org_id == 10598 || org_id== 10745">
953 940
                         处方脱水量:
954 941
                         <div class="under_line" style="width: 100px; text-align: center">
955 942
                           {{
@@ -958,8 +945,8 @@
958 945
                               : "/"
959 946
                           }}
960 947
                         </div>
961
-                        <span v-if="org_id != 10598"> ml</span>
962
-                        <span v-if="org_id0 = 10598"> L</span>
948
+                        <span v-if="org_id != 10598 && org_id!=10745"> ml</span>
949
+                        <span v-if="org_id == 10598 || org_id == 10745"> L</span>
963 950
                       </div>
964 951
                       <div class="inline_block" style="flex: 1">
965 952
                         干体重:
@@ -1394,7 +1381,7 @@
1394 1381
                           <td width="50" v-if="org_id != 10489">呼吸<br />(次/分)</td>
1395 1382
                           <td width="50">血流量<br />(ml/min)</td>
1396 1383
                           <td width="50"
1397
-                            v-if="org_id == 10478 || org_id == 10598 || org_id == 10510 || org_id == 10735">
1384
+                            v-if="org_id == 10478 || org_id == 10598 || org_id == 10510 || org_id == 10735 || org_id == 10744">
1398 1385
                             动脉压<br />({{
1399 1386
                               monitors[0] &&
1400 1387
                                 monitors[0]["venous_pressure_type"] == 2
@@ -1453,12 +1440,11 @@
1453 1440
                             <span v-if="org_id != 10683">置换量</span>
1454 1441
                             <br />
1455 1442
                             <span
1456
-                              v-if="org_id != 10598 && org_id != 10567 && org_id != 10724 && org_id != 10644 && org_id != 10353 && org_id != 10414">
1443
+                              v-if="org_id != 10598 && org_id != 10567 && org_id != 10724 && org_id != 10644 && org_id != 10353 && org_id != 10414 && org_id!=10744">
1457 1444
                               <span v-if="org_id != 0 && org_id != 10683">(ml)</span>
1458 1445
                               <span v-if="org_id == 10683">(ml/h)</span>
1459 1446
                             </span>
1460
-                            <span
1461
-                              v-if="org_id == 10598 || org_id == 10567 || org_id == 10724 || org_id == 10644 || org_id == 10353 || org_id == 10414">(L)</span>
1447
+                            <span v-if="org_id == 10598 || org_id == 10567 || org_id == 10724 || org_id == 10644 || org_id == 10353 || org_id == 10414 || org_id == 10744">(L)</span>
1462 1448
                           </td>
1463 1449
                           <td width="50" v-if="org_id == 3877 || org_id == 10449">滤前压(mmHg)</td>
1464 1450
                           <td width="50"
@@ -1483,7 +1469,7 @@
1483 1469
                           <td>{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}</td>
1484 1470
                           <td v-if="org_id != 10489">{{ monitor.breathing_rate ? monitor.breathing_rate : "" }}</td>
1485 1471
                           <td>{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}</td>
1486
-                          <td v-if="org_id == 10478 || org_id == 10598 || org_id == 10510 || org_id == 10735">
1472
+                          <td v-if="org_id == 10478 || org_id == 10598 || org_id == 10510 || org_id == 10735 || org_id == 10744">
1487 1473
                             {{
1488 1474
                               monitor.arterial_pressure
1489 1475
                                 ? monitor.arterial_pressure
@@ -1578,10 +1564,11 @@
1578 1564
                           <td v-if="org_id == 10489 || org_id == 10735 || org_id == 10600"><br />
1579 1565
                             {{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : "" }}
1580 1566
                           </td>
1567
+
1581 1568
                           <td v-if="org_id != 10644 && org_id != 10683">
1582
-                            <span v-if="org_id != 9671 && org_id != 10440 && org_id != 10617">{{
1583
-                              monitor.ultrafiltration_volume ?
1584
-                                monitor.ultrafiltration_volume: ""}}</span>
1569
+                            <span v-if="org_id != 9671 && org_id != 10440 && org_id != 10617 && org_id!=10744&& org_id!=10726">
1570
+                              {{monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume: ""}}
1571
+                            </span>
1585 1572
                             <span v-if="org_id == 9671 || org_id == 10440 || org_id == 10617">
1586 1573
                               <span v-if="org_id == 10617 && monindex == 0">{{ monitor.ultrafiltration_volume ?
1587 1574
                                 monitor.ultrafiltration_volume : "/" }}</span>
@@ -1589,8 +1576,12 @@
1589 1576
                                 monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "/" }}</span>
1590 1577
                               <span v-if="org_id == 10617 && (monindex != monitors.length - 1 && monindex != 0)">{{
1591 1578
                                 monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "0" }}</span>
1592
-                              <span v-if="org_id != 10617">{{ monitor.ultrafiltration_volume ?
1593
-                                monitor.ultrafiltration_volume : "0" }}</span>
1579
+                              <span v-if="org_id != 10617">
1580
+                                {{ monitor.ultrafiltration_volume ?monitor.ultrafiltration_volume : "0" }}
1581
+                              </span>
1582
+                            </span>
1583
+                            <span v-if="org_id==10744 || org_id == 10726">
1584
+                              {{ monitor.ultrafiltration_volume ?monitor.ultrafiltration_volume : "0" }}
1594 1585
                             </span>
1595 1586
                           </td>
1596 1587
                           <td width="50"
@@ -4343,7 +4334,7 @@ export default {
4343 4334
         }
4344 4335
 
4345 4336
         //HIS客户显示临时医嘱的地方
4346
-        if (this.org_id == 10510 || this.org_id == 10567 || this.org_id == 10489 || this.org_id == 10644 || this.org_id == 0 || this.org_id == 10724) {
4337
+        if (this.org_id == 10510 || this.org_id == 10567 || this.org_id == 10489 || this.org_id == 10644|| this.org_id == 10724) {
4347 4338
           if (response.data.data.doctorAdevieInfo != null && response.data.data.doctorAdevieInfo.length > 0) {
4348 4339
 
4349 4340
             for (let i = 0; i < response.data.data.doctorAdevieInfo.length; i++) {
@@ -4506,6 +4497,8 @@ export default {
4506 4497
 
4507 4498
         console.log("新时间我哦我哦", this.doctor_advices)
4508 4499
 
4500
+       
4501
+
4509 4502
 
4510 4503
         //过滤口服药
4511 4504
         if (this.org_id == 10265) {
@@ -4560,6 +4553,11 @@ export default {
4560 4553
         }
4561 4554
         // console.log(this.advice_groups);
4562 4555
 
4556
+        if(this.org_id == 10744 || this.org_id == 0){
4557
+          
4558
+          this.doctor_advices.sort((a, b) => a.execution_time - b.execution_time)
4559
+        }
4560
+
4563 4561
         console.log("医嘱列表=--=----------------------------------------------", this.doctor_advices)
4564 4562
       } else {
4565 4563
         this.loading = false;

+ 5 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue 查看文件

@@ -878,6 +878,8 @@
878 878
               <td width="40" style="line-height:20px">机温<br />℃</td>
879 879
               <td width="60" style="line-height:20px">血流量<br />ml/min</td>
880 880
               <td width="60" style="line-height:20px">电导度<br />mS/cm</td>
881
+
882
+              <td width="60" style="line-height:20px" v-if="org_id == 10015">置换液流量<br />ml/h</td>
881 883
               <!-- <td width="60">钠浓度<br/>mmol/L</td>
882 884
           <td width="80">透析液温度<br/>℃</td>
883 885
           <td width="60">置换率<br/>ml/min</td> -->
@@ -934,6 +936,9 @@
934 936
               <td>
935 937
                 &nbsp;{{ monitor.conductivity ? monitor.conductivity : "" }}
936 938
               </td>
939
+              <td>
940
+                &nbsp;{{ monitor.displacement_flow_quantity ? monitor.displacement_flow_quantity : "" }}
941
+              </td>
937 942
               <!-- <td>&nbsp;{{monitor.sodium_concentration}}</td>
938 943
           <td>&nbsp;{{monitor.dialysate_temperature}}</td>
939 944
           <td>&nbsp;{{monitor.replacement_rate}}</td> -->

+ 11 - 3
src/xt_pages/dialysis/template/DialysisPrintOrdereightytwo.vue 查看文件

@@ -1164,13 +1164,21 @@ export default {
1164 1164
           var doctorAdevieInfo = response.data.data.advices
1165 1165
           console.log('var tableAdvice',tableAdvice);
1166 1166
           var tableAdvice = []
1167
-          for(let i in doctorAdevieInfo){
1167
+          if(this.org_id!=10727){
1168
+           for(let i in doctorAdevieInfo){
1168 1169
             if(doctorAdevieInfo[i].delivery_way != '口服' && 
1169
-            doctorAdevieInfo[i].delivery_way != '中药口服' &&
1170
-            doctorAdevieInfo[i].delivery_way != '舌下含服'){
1170
+              doctorAdevieInfo[i].delivery_way != '中药口服' &&
1171
+              doctorAdevieInfo[i].delivery_way != '舌下含服'){
1171 1172
               tableAdvice.push(doctorAdevieInfo[i]) 
1172 1173
             }
1174
+           }
1175
+          }else{
1176
+            for(let i in doctorAdevieInfo){
1177
+              tableAdvice.push(doctorAdevieInfo[i])
1178
+            }
1179
+           
1173 1180
           }
1181
+       
1174 1182
           
1175 1183
           if (tableAdvice.length === 0) {
1176 1184
             var obj = { advice_name: '', start_time: '' }

+ 12 - 7
src/xt_pages/outpatientCharges/allListPrint.vue 查看文件

@@ -13,10 +13,10 @@
13 13
     </template>
14 14
 <!--  -->
15 15
     <div class='dialysisPage' style="padding-top:40px;">
16
-      <printOne  v-if="org_id != 10215  && org_id !=9671&&org_id !=9675&& org_id !=10515 && org_id !=10489 && org_id !=10644 && org_id !=0" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printOne>
16
+      <printOne  v-if="org_id != 10215  && org_id !=9671&&org_id !=9675&& org_id !=10515 && org_id !=10489 && org_id !=10644" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printOne>
17 17
       <summary-print v-if="org_id == 10215|| org_id ==9671 ||org_id ==9675" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></summary-print>
18 18
       <printTwo v-if="org_id==10515 " :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printTwo>
19
-      <printthree  v-if="org_id == 10489 || org_id == 0" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printthree>
19
+      <printthree  v-if="org_id == 10489" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printthree>
20 20
       <printFour v-if="org_id == 10644 " :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printFour>
21 21
       <!--      <list-print-two :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></list-print-two>-->
22 22
     </div>
@@ -63,7 +63,7 @@
63 63
     methods: {
64 64
       getTimes(time) {
65 65
         return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
66
-      }, 
66
+      },
67 67
       getInfo(order_id) {
68 68
         let params = {
69 69
           id: order_id
@@ -147,7 +147,7 @@
147 147
                   }
148 148
                   advice.push(adv)
149 149
                 }
150
-               
150
+
151 151
                 if(order_info[i].project.good_info.good_name !=''){
152 152
                   const god={
153 153
                     // advice_name:order_info[i].advice.advice_name,
@@ -225,7 +225,7 @@
225 225
               }
226 226
 
227 227
               chrgitm_lvs = [...advice,...good,...project]
228
-              
228
+
229 229
               for(let i in this.list){
230 230
                 for(let j in chrgitm_lvs){
231 231
                   if(this.list[i].is_total ==2){
@@ -242,8 +242,8 @@
242 242
             }
243 243
           }
244 244
         })
245
-        
246
-      }, 
245
+
246
+      },
247 247
       getquchong(arr){
248 248
         for(let i=0;i<arr.length;i++){
249 249
           for(let j=i+1;j<arr.length;j++){
@@ -305,6 +305,8 @@
305 305
             for (let a = 0; a < details.length; a++) {
306 306
               if (new_drug_ids[i].id == details[a].advice.drug_id && new_drug_ids[i].price == details[a].advice.price) {
307 307
                 obj['name'] = details[a].advice.advice_name
308
+                obj['code'] = details[a].advice.drug.medical_insurance_number
309
+
308 310
                 // obj['spec'] = details[a].advice.drug.drug_spec
309 311
                 obj['spec'] =   details[a].advice.drug.dose +   details[a].advice.drug.dose_unit+"*" +  details[a].advice.drug.min_number +   details[a].advice.drug.min_unit+"/"+ details[a].advice.drug.max_unit
310 312
                 obj['unit'] = details[a].advice.prescribing_number_unit
@@ -329,6 +331,8 @@
329 331
                if( details[a].project.type == 2){
330 332
                  obj['name'] = details[a].project.project.project_name
331 333
                  obj['spec'] = ''
334
+                 obj['code'] = details[a].project.project.medical_code
335
+
332 336
                   // obj['spec'] = details[a].project.project.project_name
333 337
                  obj['unit'] = details[a].project.project.unit
334 338
 
@@ -336,6 +340,7 @@
336 340
                }else if(details[a].project.type == 3){
337 341
                  obj['name'] = details[a].project.good_info.good_name
338 342
                 //  obj['spec'] = ''
343
+                 obj['code'] = details[a].project.good_info.medical_insurance_number
339 344
                  obj['spec'] = details[a].project.good_info.specification_name
340 345
                  obj['unit'] = details[a].project.good_info.packing_unit
341 346
 

+ 11 - 7
src/xt_pages/outpatientCharges/allListTemplate/printOne.vue 查看文件

@@ -7,7 +7,7 @@
7 7
         <div>透析号:{{ patient.dialysis_no }}</div>
8 8
         <div>性别:{{ patient.gender == 1 ? '男' : '女' }}</div>
9 9
         <div>年龄:{{ patient.age }} 岁</div>
10
-        <div v-if="$store.getters.xt_user.org_id  == 10644 || 
10
+        <div v-if="$store.getters.xt_user.org_id  == 10644 ||
11 11
               $store.getters.xt_user.org_id  == 0">开方日期:{{ getTimes(order.settle_accounts_date) }}
12 12
           <!-- {{ hospital.in_hosptial_time }} 至
13 13
           {{ hospital.out_hosptial_time }} -->
@@ -16,28 +16,32 @@
16 16
       </div>
17 17
       <table class="allListTable" border="1">
18 18
         <tr>
19
+          <td style="width:10%">医保编码</td>
19 20
           <td style="width:10%">类别</td>
20
-          <td style="width:40%">项目名称</td>
21
+          <td style="width:30%">项目名称</td>
21 22
           <td style="width:10%">规格</td>
23
+          <td style="width:5%">单位</td>
22 24
           <td style="width:10%">单价(元)</td>
23 25
           <td style="width:10%">数量</td>
24 26
           <td style="width:10%">金额(元)</td>
27
+          <td style="width:40%">医保类型</td>
28
+
25 29
           <!-- <td style="width:10%" v-if="org_id==10489 ||org_id==0">报销等级</td> -->
26 30
         </tr>
27 31
         <template v-for='item in list.slice(index * 13,(index * 13) + pageArr[index])'>
28 32
           <tr v-if="item.is_total == 2">
33
+            <td style="width:10%">{{ item.code }}</td>
29 34
             <td style="width:10%">{{ item.med_chrgitm_type }}</td>
30
-            <td style="width:40%">{{ item.name }}</td>
35
+            <td style="width:30%">{{ item.name }}</td>
31 36
             <td style="width:10%">{{ item.spec }}</td>
37
+            <td style="width:5%">{{ item.unit }}</td>
32 38
             <td style="width:10%">{{ (item.price).toFixed(2) }}</td>
33 39
             <td style="width:10%">{{ item.count }}{{ item.unit }}</td>
34 40
             <td style="width:10%">{{ (item.price * item.count).toFixed(2) }}</td>
35
-            <!-- <td style="width:10%" v-if="org_id==10489 ||org_id==0">
36
-              {{item.chrgitm_lv!=''?getMedicineInsuranceType(item.chrgitm_lv): '丙类' }}
37
-            </td> -->
41
+            <td style="width:10%">{{item.medicine_insurance_kind}}</td>
38 42
           </tr>
39 43
           <tr>
40
-            <td colspan="6" style="text-align:right;" v-if="item.is_total == 1">合计:{{ item.total }}元</td>
44
+            <td colspan="9" style="text-align:right;" v-if="item.is_total == 1">合计:{{ item.total }}元</td>
41 45
           </tr>
42 46
         </template>
43 47
       </table>

+ 2 - 2
src/xt_pages/outpatientCharges/invoicePrint.vue 查看文件

@@ -15,7 +15,7 @@
15 15
       size="small" type="success"
16 16
       @click="showclick = !showclick">{{ showclick==false ? '白纸' : '发票' }}</el-button>
17 17
     </template>
18
-    <div class="app-container" style="padding-top:40px;" v-if="org_id != 10217 && org_id != 10485 && org_id != 10375 && org_id != 10567 && org_id != 10188 && org_id != 10633"><!--&& org_id != 10188 && org_id != 0-->
18
+    <div class="app-container" style="padding-top:40px;" v-if="org_id != 10217 && org_id != 10485 && org_id != 10375 && org_id != 10567  && org_id != 10724 && org_id != 10188 && org_id != 10633"><!--&& org_id != 10188 && org_id != 0-->
19 19
         <div class='dialysisPage'>
20 20
           <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 10217 && org_id != 10387&& org_id != 10210 && org_id != 10387 && org_id != 10480 && org_id != 0" >
21 21
             <printOne v-if="org_id != 10088 && org_id != 10510 && org_id != 0" :paramsObj="invoiceParams"></printOne>
@@ -51,7 +51,7 @@
51 51
       </div>
52 52
     </div>
53 53
 
54
-    <div class="app-container" v-if="org_id == 10567 ">
54
+    <div class="app-container" v-if="org_id == 10567  || org_id == 10724">
55 55
       <div class='dialysisPage'>
56 56
         <printfourteen :paramsObj="invoiceParams"></printfourteen>
57 57
       </div>

+ 3 - 2
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

@@ -119,7 +119,7 @@
119 119
 
120 120
             <el-button v-loading="loadingone" size="small"
121 121
                        @click="open(40)"
122
-                       v-if="org_id == 10191 || org_id == 10318 || org_id == 10567  || org_id == 10375 || org_id == 10480 || org_id == 10721 || org_id == 10724"
122
+                       v-if="org_id == 10191 || org_id == 10318 || org_id == 10567  || org_id == 10375 || org_id == 10480 || org_id == 10721 || org_id == 10724 || org_id == 9478"
123 123
                        type="primary">登陆
124 124
             </el-button>
125 125
 
@@ -3582,7 +3582,7 @@ export default {
3582 3582
         }
3583 3583
 
3584 3584
         if (this.hisPatientInfo.id_card_type == 1) {
3585
-          if (this.hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10510 && this.$store.getters.xt_user.org_id != 10088 && this.$store.getters.xt_user.org_id != 10106 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 && this.$store.getters.xt_user.org_id != 10191 && this.$store.getters.xt_user.org_id !=  10318 && this.$store.getters.xt_user.org_id !=  10210 && this.$store.getters.xt_user.org_id !=  10375 &&  this.$store.getters.xt_user.org_id !=  10480 &&  this.$store.getters.xt_user.org_id !=  10387  &&  this.$store.getters.xt_user.org_id !=  10598 &&  this.$store.getters.xt_user.org_id !=  10721 &&   this.$store.getters.xt_user.org_id !=  10726 &&   this.$store.getters.xt_user.org_id !=  10567 &&  this.$store.getters.xt_user.org_id !=  10697 &&   this.$store.getters.xt_user.org_id !=  10724 &&   this.$store.getters.xt_user.org_id !=  10571 &&   this.$store.getters.xt_user.org_id !=  10633) {
3585
+          if (this.hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10510 && this.$store.getters.xt_user.org_id != 10088 && this.$store.getters.xt_user.org_id != 10106 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 && this.$store.getters.xt_user.org_id != 10191 && this.$store.getters.xt_user.org_id !=  10318 && this.$store.getters.xt_user.org_id !=  10210 && this.$store.getters.xt_user.org_id !=  10375 &&  this.$store.getters.xt_user.org_id !=  10480 &&  this.$store.getters.xt_user.org_id !=  10387  &&  this.$store.getters.xt_user.org_id !=  10598 &&  this.$store.getters.xt_user.org_id !=  10721 &&   this.$store.getters.xt_user.org_id !=  10726 &&   this.$store.getters.xt_user.org_id !=  10567 &&  this.$store.getters.xt_user.org_id !=  10697 &&   this.$store.getters.xt_user.org_id !=  10724 &&   this.$store.getters.xt_user.org_id !=  10571 &&   this.$store.getters.xt_user.org_id !=  10633 && this.$store.getters.xt_user.org_id !=  9478) {
3586 3586
             this.pwdFormVisible = true
3587 3587
             this.pwd = ''
3588 3588
           } else {
@@ -3761,6 +3761,7 @@ export default {
3761 3761
         this.newLoading = true
3762 3762
         var that = this
3763 3763
         let form = {}
3764
+        form['acct_used_flag'] = this.form.acct_used_flag
3764 3765
         form['id'] = this.patientInfo.id
3765 3766
         form['his_patient_id'] = this.hisPatientInfo.id
3766 3767
         form['record_time'] = this.record_date

+ 6 - 5
src/xt_pages/outpatientCharges/statementPrint.vue 查看文件

@@ -20,6 +20,7 @@
20 20
           org_id == 10138 ||
21 21
           org_id == 9504 ||
22 22
           org_id == 10028 ||
23
+          org_id == 10744 ||
23 24
           org_id == 10278 ||
24 25
           org_id == 10610 ||
25 26
           org_id==10537
@@ -33,7 +34,7 @@
33 34
           v-if="org_id == 10138 || org_id == 10278 || org_id ==10610 || org_id==10537"
34 35
         ></printThree>
35 36
         <printFour
36
-          v-if="org_id == 9504 || org_id == 10028 || org_id == 10088 "
37
+          v-if="org_id == 9504 || org_id == 10028 || org_id == 10088  || org_id == 10744"
37 38
           :info="info"
38 39
           :paramsObj="paramsObj"
39 40
           :balanceAccounts="balanceAccounts"
@@ -73,14 +74,14 @@
73 74
       <printSeventheen  :info="info" v-if=" org_id == 10721"></printSeventheen>
74 75
       <printeighteen :info="info" v-if=" org_id == 10726"></printeighteen>
75 76
       <printOne :info="info" v-if=" org_id != 9990 && org_id !=0 &&
76
-            org_id != 10138 && org_id != 9504 && org_id != 10028 &&
77
+            org_id != 10138 && org_id != 9504 && org_id != 10028  && org_id != 10744 &&
77 78
             org_id != 10610 && org_id !=10537 && org_id !=10697 &&
78 79
             org_id != 10278 && org_id != 10387 && org_id != 10191 &&
79 80
             org_id != 10210 &&org_id != 10485 &&org_id != 10480 &&
80 81
             org_id != 10510 &&org_id != 10088 && org_id != 10721 &&org_id != 10633 &&org_id != 10731 && org_id != 10726 && this.paramsObj.balance_accounts_type == 1">
81 82
       </printOne>
82 83
       <privateChargePrint :info="info" v-if="org_id != 9990 && org_id !=0 &&
83
-            org_id != 10138 && org_id != 9504 &&  org_id != 10028 && org_id !=10697 &&
84
+            org_id != 10138 && org_id != 9504 &&  org_id != 10028 && org_id != 10744  && org_id !=10697 &&
84 85
             org_id != 10278 && org_id != 10610 && org_id !=10537 && org_id != 10387 &&
85 86
             org_id != 10191 &&org_id != 10210 &&org_id != 10485  &&org_id != 10480 &&
86 87
             org_id != 10510 &&org_id != 10633 && org_id != 10721 && org_id != 10726  && this.paramsObj.balance_accounts_type == 2">
@@ -442,7 +443,7 @@ export default {
442 443
         }, 500)
443 444
       } else if (
444 445
         this.$store.getters.xt_user.org_id == 9504 ||
445
-        this.$store.getters.xt_user.org_id == 10028
446
+        this.$store.getters.xt_user.org_id == 10028 ||   this.$store.getters.xt_user.org_id == 10744
446 447
       ) {
447 448
         const style =
448 449
           '@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}'
@@ -840,7 +841,7 @@ export default {
840 841
               // console.log('this.num', this.num)
841 842
             }
842 843
           })
843
-        } else if (this.org_id == 10028  || this.org_id == 9504) {
844
+        } else if (this.org_id == 10028  || this.org_id == 9504 || this.org_id == 10744) {
844 845
           getPrivateExpenses(params).then((response) => {
845 846
             if (response.data.state == 0) {
846 847
               // this.$message.error(response.data.msg)

+ 5 - 0
src/xt_pages/outpatientCharges/statementTemplate/printOne.vue 查看文件

@@ -301,6 +301,11 @@
301 301
         <td colspan="3" style="text-align:left;padding-left:10px;">个人账户支付</td>
302 302
         <td colspan="3">{{info.acct_pay}}</td>
303 303
       </tr>
304
+      <tr>
305
+        <td colspan="3" style="text-align:left;padding-left:10px;">个人共济支付</td>
306
+        <td colspan="3">{{info.acct_mulaid_pay}}</td>
307
+
308
+      </tr>
304 309
       <tr>
305 310
         <td>收款人:</td>
306 311
         <td colspan="2">{{info.charge_admin.user_name}}</td>

+ 3 - 1
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue 查看文件

@@ -541,7 +541,9 @@
541 541
             if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
542 542
               console.log('123',scope.row.drug.dose,scope.row.execution_frequency,scope.row.drug.min_unit)
543 543
               // 单次用量single_dose,用量单位single_dose_unit,用法delivery_way,频率execution_frequency 总量prescribing_number,规格drug.dose
544
-              scope.row.prescribing_number = Math.ceil((parseInt(scope.row.single_dose) * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / parseInt(this.getdrugdose(scope.row.drug.dose)) ) //  / scope.row.drug.dose
544
+              scope.row.prescribing_number = Math.ceil((parseFloat(scope.row.single_dose) * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / parseFloat(this.getdrugdose(scope.row.drug.dose)) ) //  / scope.row.drug.dose
545
+              console.log("prescribing_number=====",scope.row.prescribing_number)
546
+             
545 547
             } else {
546 548
               console.log(1234,scope.row.drug.dose)
547 549
               scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / (scope.row.drug.dose*1) / (scope.row.drug.min_number*1))//

+ 3 - 17
src/xt_pages/qcd/patientControlAnalysis.vue 查看文件

@@ -332,7 +332,8 @@ export default {
332 332
   methods: {
333 333
     handleStartTimeChange(){
334 334
       this.getlist()
335
-    },  handleEndTimeChange(){
335
+    }, 
336
+     handleEndTimeChange(){
336 337
       this.getlist()
337 338
     },
338 339
     handleSizeChange(limit) {
@@ -558,24 +559,9 @@ export default {
558 559
         if (response.data.state == 1) {
559 560
           this.isLoadingTwo = false
560 561
           var patients = response.data.data.patients
561
-
562
+          console.log("patients----------------",patients)
562 563
           this.tablePatients = patients
563 564
 
564
-          //  let dataInfothree = {}
565
-          //   patients.forEach((item, index) => {
566
-          //     let { inspect_date } = item
567
-          //     if (!dataInfothree[inspect_date]) {
568
-          //       dataInfothree[inspect_date] = {
569
-          //         inspect_date,
570
-          //         name: item.name,
571
-          //         child: [],
572
-          //         patient_id: item.patient_id,
573
-          //       }
574
-          //     }
575
-          //   })
576
-          // let patientlist = Object.values(dataInfothree)
577
-          // console.log("patientlist",patientlist)
578
-
579 565
           var total = response.data.data.total
580 566
           this.total = total
581 567
           var control = response.data.data.control

+ 4 - 2
src/xt_pages/stock/detail/stockOutDetail.vue 查看文件

@@ -1032,6 +1032,8 @@ export default {
1032 1032
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
1033 1033
         }else if(this.orgId==10537){
1034 1034
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
1035
+        }else if(this.orgId==10571){
1036
+          this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
1035 1037
         }else if(this.orgId==10445){
1036 1038
           this.tableOut[i].total_price = (this.getStockCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
1037 1039
         }else if(this.orgId==10635){
@@ -1043,13 +1045,13 @@ export default {
1043 1045
         if(this.orgId  == 10265 || this.orgId ==10215 || this.orgId == 9919 || this.orgId == 9671 || this.orgId == 10402 || this.orgId==10138 || this.orgId==10278||this.orgId==10537||this.orgId==10610){
1044 1046
             this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
1045 1047
         }
1046
-        if(this.orgId == 10210 || this.orgId == 9675  || this.orgId == 9956 || this.orgId == 10217 || this.orgId == 10188 || this.orgId == 10191 || this.orgId ==10489 || this.orgId == 10375 || this.orgId == 10485 || this.orgId ==10635 || this.orgId ==10726 || this.orgId == 10724 || this.orgId ==10635 || this.orgId ==10724 || this.orgId ==10726 || this.orgId ==10721 || this.orgId == 10633 || this.orgId == 0  || this.orgId == 10387){
1048
+        if(this.orgId == 10210 || this.orgId == 9675  || this.orgId == 9956 || this.orgId == 10217 || this.orgId == 10188 || this.orgId == 10191 || this.orgId ==10489 || this.orgId == 10375 || this.orgId == 10485 || this.orgId ==10635 || this.orgId ==10726 || this.orgId == 10724 || this.orgId ==10635 || this.orgId ==10724 || this.orgId ==10726 || this.orgId ==10721 || this.orgId == 10633 || this.orgId == 0  || this.orgId == 10387 || this.orgId == 10571){
1047 1049
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
1048 1050
         }
1049 1051
         if(this.orgId ==10445){
1050 1052
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
1051 1053
         }
1052
-        if(this.orgId!=10265 && this.orgId !=10215  && this.orgId != 9671 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191 && this.orgId!=9919 && this.orgId!=0&& this.orgId!=10402 && this.orgId != 10489 && this.orgId!=10375 && this.orgId!=10485&&this.orgId!=0&&this.orgId!=10138&&this.orgId!=10278&&this.orgId!=10537&&this.orgId!=10610 &&this.orgId!=10445 &&  this.orgId !=10635  &&  this.orgId !=10724 &&  this.orgId !=10726  &&  this.orgId !=10721 && this.orgId!=10633 && this.orgId!=0&& this.orgId!=10387){
1054
+        if(this.orgId!=10265 && this.orgId !=10215  && this.orgId != 9671 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191 && this.orgId!=9919 && this.orgId!=0&& this.orgId!=10402 && this.orgId != 10489 && this.orgId!=10375 && this.orgId!=10485&&this.orgId!=0&&this.orgId!=10138&&this.orgId!=10278&&this.orgId!=10537&&this.orgId!=10610 &&this.orgId!=10445 &&  this.orgId !=10635  &&  this.orgId !=10724 &&  this.orgId !=10726  &&  this.orgId !=10721 && this.orgId!=10633 && this.orgId!=0&& this.orgId!=10387&& this.orgId!=10571){
1053 1055
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
1054 1056
         }
1055 1057
         this.tableOut[i].manufacturer_name = this.getManufacturerNameOne(this.tableOut[i].manufacturer)

+ 2 - 2
src/xt_pages/stock/drugs/drugBatchNumber.vue 查看文件

@@ -134,8 +134,8 @@
134 134
         </el-table-column>
135 135
         <el-table-column prop="drug_name" label="该批次剩余库存" align="center">
136 136
           <template slot-scope="scope">
137
-           <span v-if="scope.row.stock_max_number >0">{{ scope.row.stock_max_number }}{{drug.max_unit}}</span> 
138
-           <span v-if="scope.row.stock_min_number >0">{{scope.row.stock_min_number}}{{drug.min_unit}}</span>
137
+           <span v-if="scope.row.stock_max_number >0">{{ scope.row.stock_max_number }}{{scope.row.max_unit}}</span> 
138
+           <span v-if="scope.row.stock_min_number >0">{{scope.row.stock_min_number}}{{scope.row.min_unit}}</span>
139 139
           </template>
140 140
         </el-table-column>
141 141
          <el-table-column prop="remake" label="备注" align="center">

+ 17 - 7
src/xt_pages/user/doctorAdvice.vue 查看文件

@@ -3651,6 +3651,7 @@ export default {
3651 3651
 
3652 3652
     selectAdvice(selection, row) {
3653 3653
       console.log("row322232322323",this.adviceType)
3654
+      console.log("adviceTableData",this.adviceTableData)
3654 3655
       if (this.adviceType != 3) {
3655 3656
         this.lstableData = [];
3656 3657
       } else if (this.adviceType != 1) {
@@ -4553,19 +4554,26 @@ export default {
4553 4554
       });
4554 4555
     },
4555 4556
     // 获取勾选中的行
4556
-    getPrintInfo(ids) {
4557
-      console.log("ids",ids)
4558
-      console.log("23332332323232",this.adviceType,"33333333",this.stopType)
4559
-
4560
-      getPrintInfo({ids:ids},this.adviceType,this.stopType).then(response => {
4557
+    getPrintInfo(ids,his) {
4558
+      // console.log("ids",ids)
4559
+      // console.log("23332332323232",this.adviceType,"33333333",this.stopType)
4560
+      console.log("his================",his)
4561
+      var his_str =his.join(",")
4562
+      getPrintInfo({ids:ids},this.adviceType,this.stopType,his_str).then(response => {
4561 4563
         if (response.data.state === 1) {
4562 4564
           var doctoradvice = response.data.data.doctoradvice;
4563 4565
           console.log("doctoradvice", doctoradvice);
4566
+          this.lstableData = []
4567
+          var hisdoctoradvice = response.data.data.hisdoctoradvice
4568
+
4569
+          this.lstableData.push(...hisdoctoradvice)
4570
+
4571
+          console.log("hahahahah",hisdoctoradvice)
4564 4572
 
4565 4573
           this.dataAdvice = doctoradvice;
4566 4574
           if (this.adviceType === 3 || this.adviceType === 2 || this.adviceType == 4) {
4567 4575
 
4568
-            this.lstableData = this.dataAdvice;
4576
+            this.lstableData.push(...this.dataAdvice);
4569 4577
 
4570 4578
           } else if (this.adviceType === 1) {
4571 4579
             this.cqtableData = doctoradvice;
@@ -4918,13 +4926,15 @@ export default {
4918 4926
       for (const i in this.multipleSelection) {
4919 4927
         arr.push(this.multipleSelection[i]);
4920 4928
         group.push(this.multipleSelection[i].groupno);
4929
+        ids.push(this.multipleSelection[i].id)
4921 4930
        
4922 4931
       }
4923 4932
       grouptwo.push(this.getdata(group));
4924 4933
       // console.log('组号', group)
4925 4934
       // console.log('组号2', grouptwo)
4926 4935
       // console.log('ids', ids)
4927
-      this.getPrintInfo(group);
4936
+     
4937
+      this.getPrintInfo(group,ids);
4928 4938
     }
4929 4939
   },
4930 4940
   components: {

+ 28 - 0
src/xt_pages/user/dryWeight.vue 查看文件

@@ -7,6 +7,7 @@
7 7
         干体重:<el-input style="width:100px" v-model="dryweight" :disabled="true"></el-input>&nbsp;
8 8
          <el-button size="medium" type="primary" @click="dialogVisible =true" v-show="addShow">新增</el-button>
9 9
          <el-button size="medium" type="primary" @click="dialogVisible =true" v-show="adjustShow">调整</el-button>
10
+         <el-button type="primary" size="medium" @click="exportList">导出</el-button>
10 11
       </div>
11 12
       <el-table  :data="tableData" border style="width:100%">
12 13
       <el-table-column     prop="date"    label="时间"      align="center">
@@ -125,6 +126,33 @@
125 126
       }
126 127
     },
127 128
     methods: {
129
+      exportList(){
130
+      import('@/vendor/Export2Excel').then(excel => {
131
+      
132
+      
133
+          if(this.tableData!=null && this.tableData.length > 0){
134
+            for(let i=0;i<this.tableData.length;i++){
135
+              this.tableData[i].index = i+1
136
+              this.tableData[i].record_date =  this.CreateTime(this.tableData[i].ctime)
137
+            }
138
+         }
139
+         
140
+
141
+         const tHeader = ['序号','时间','调整值','干体重','医生','备注']
142
+         const filterVal = ['index','record_date', 'adjusted_value', 'dry_weight','user_name','remarks']
143
+        
144
+         const data = this.formatJson(filterVal, this.tableData)
145
+         
146
+         excel.export_json_to_excel({
147
+           header: tHeader,
148
+           data,
149
+           filename: '干体重'
150
+         })
151
+       })
152
+      },
153
+      formatJson(filterVal, jsonData) {
154
+        return jsonData.map(v => filterVal.map(j => v[j]));
155
+      },
128 156
       clickuseradvicecell(row, column, cell, event) {
129 157
       },
130 158
       onTranPatient: function(tranPatient) {

+ 2 - 0
src/xt_pages/user/weight.vue 查看文件

@@ -7,6 +7,8 @@
7 7
             <span>当前时间 : <el-input  style="width:180px" v-model="current_date" disabled></el-input></span>
8 8
             <span class="weight">干体重 : <el-input  v-model="current_weight" style="width:180px;" disabled></el-input></span>
9 9
             <el-button class="Adjust" type="primary" icon="el-icon-refresh" size="medium" @click="dialogFormVisible = true">调整</el-button>
10
+
11
+           
10 12
         </div> 
11 13
       <el-table
12 14
       :data="weightList"

+ 3 - 1
src/xt_pages/workforce/printOne.vue 查看文件

@@ -691,11 +691,13 @@ export default {
691 691
     getZoneName(id) {
692 692
       var name = ''
693 693
       for (let i = 0; i < this.partitionArr.length; i++) {
694
+
694 695
         if (id == this.partitionArr[i].id) {
695 696
           name = this.partitionArr[i].name
696 697
         }
697 698
       }
698
-
699
+      console.log("id=-========",id)
700
+      console.log("name-=----",name)
699 701
       return name
700 702
     },
701 703
     getBloodAccess(id) {