Преглед изворни кода

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx пре 3 година
родитељ
комит
a0ed9eaf87

+ 2 - 2
config/dev.env.js Прегледај датотеку

@@ -7,8 +7,8 @@ module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9 9
   // BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-  BASE_API: '"http://api.xt.test.sgjyun.com"',
11
-  // BASE_API: '"http://localhost:9531"',
10
+  // BASE_API: '"http://api.xt.test.sgjyun.com"',
11
+  BASE_API: '"http://localhost:9529"',
12 12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13 13
   SRCM_HOST: '"http://test1.sgjyun.com"',
14 14
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Прегледај датотеку

@@ -2687,7 +2687,7 @@
2687 2687
             this.current_index = 0
2688 2688
 
2689 2689
             this.$refs.tab.setCurrentRow(this.patientTableData[0])
2690
-            this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].order_number, this.patientTableData[0].his_patient_id, this.patientTableData[0].order_id)
2690
+            // this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].order_number, this.patientTableData[0].his_patient_id, this.patientTableData[0].order_id)
2691 2691
 
2692 2692
           }
2693 2693
 

+ 39 - 6
src/xt_pages/workforce/components/tableWeeks.vue Прегледај датотеку

@@ -457,8 +457,14 @@
457 457
           }
458 458
         }
459 459
 
460
+
460 461
         return ''
461 462
 
463
+      },getAnticoagulantName(id) {
464
+
465
+        return this.$store.getters.anticoagulants_confit[id] != undefined ? this.$store.getters.anticoagulants_confit[id].name: ""
466
+
467
+
462 468
       },
463 469
       getModeDesc(list) {
464 470
         let modes = []
@@ -638,10 +644,7 @@
638 644
           modes.push(obj)
639 645
 
640 646
         }
641
-        let dialysate_formulation_options = getDataConfig(
642
-          'hemodialysis',
643
-          'dialysate_formulation'
644
-        )
647
+
645 648
         modes = this.uniqueDialysisFormulation(modes)
646 649
         for (let i = 0; i < list.length; i++) {
647 650
           for (let c = 0; c < modes.length; c++) {
@@ -758,9 +761,35 @@
758 761
       }
759 762
       ,
760 763
       getAnticoagulantDesc(list) {
764
+        let modes = []
765
+        for (let b = 0; b < list.length; b++) {
766
+          let obj = {
767
+            id: list[b].dialysissolution.anticoagulant,
768
+            name: this.getAnticoagulantName(list[b].dialysissolution.anticoagulant),
769
+            count: 0
761 770
 
762
-      }
763
-      ,
771
+          }
772
+          modes.push(obj)
773
+
774
+        }
775
+        modes = this.uniqueAnticoagulant(modes)
776
+        for (let i = 0; i < list.length; i++) {
777
+          for (let c = 0; c < modes.length; c++) {
778
+            if (modes[c].id == list[i].dialysissolution.anticoagulant) {
779
+              modes[c].count = modes[c].count + 1
780
+            }
781
+          }
782
+        }
783
+        let desc = ''
784
+        for (let b = 0; b < modes.length; b++) {
785
+          if (desc.length == 0) {
786
+            desc = modes[b].name + ': ' + modes[b].count + '次'
787
+          } else {
788
+            desc = desc + ' \n\r ' + modes[b].name + ': ' + modes[b].count + '次'
789
+          }
790
+        }
791
+        return desc
792
+      },
764 793
       getEPODesc(list) {
765 794
         let EPO = []
766 795
         for (let b = 0; b < list.length; b++) {
@@ -870,6 +899,10 @@
870 899
         const res = new Map()
871 900
         return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1))
872 901
       }
902
+      , uniqueAnticoagulant(arr) {
903
+        const res = new Map()
904
+        return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1))
905
+      }
873 906
       ,
874 907
 
875 908
       getScheduleList() {

+ 13 - 13
src/xt_permission.js Прегледај датотеку

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //       store.dispatch('VerifyConfigList', []).then(() => {
17
-  //         next()
18
-  //       })
19
-  //     }
20
-  //     if (store.getters.permission_routers === undefined) {
21
-  //       store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //         next()
23
-  //       })
24
-  //     } else {
25
-  //       next()
26
-  //     }
27
-  //   return
15
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+        store.dispatch('VerifyConfigList', []).then(() => {
17
+          next()
18
+        })
19
+      }
20
+      if (store.getters.permission_routers === undefined) {
21
+        store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+          next()
23
+        })
24
+      } else {
25
+        next()
26
+      }
27
+    return
28 28
   // 线上注释
29 29
 
30 30
   NProgress.start()