浏览代码

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
   NODE_ENV: '"development"',
7
   NODE_ENV: '"development"',
8
   ENV_CONFIG: '"dev"',
8
   ENV_CONFIG: '"dev"',
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"',
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
   SSO_HOST: '"http://testsso.sgjyun.com"',
12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13
   SRCM_HOST: '"http://test1.sgjyun.com"',
13
   SRCM_HOST: '"http://test1.sgjyun.com"',
14
   XT_HOST: '"http://xt.test.sgjyun.com"',
14
   XT_HOST: '"http://xt.test.sgjyun.com"',

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

2687
             this.current_index = 0
2687
             this.current_index = 0
2688
 
2688
 
2689
             this.$refs.tab.setCurrentRow(this.patientTableData[0])
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
           }
457
           }
458
         }
458
         }
459
 
459
 
460
+
460
         return ''
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
       getModeDesc(list) {
469
       getModeDesc(list) {
464
         let modes = []
470
         let modes = []
638
           modes.push(obj)
644
           modes.push(obj)
639
 
645
 
640
         }
646
         }
641
-        let dialysate_formulation_options = getDataConfig(
642
-          'hemodialysis',
643
-          'dialysate_formulation'
644
-        )
647
+
645
         modes = this.uniqueDialysisFormulation(modes)
648
         modes = this.uniqueDialysisFormulation(modes)
646
         for (let i = 0; i < list.length; i++) {
649
         for (let i = 0; i < list.length; i++) {
647
           for (let c = 0; c < modes.length; c++) {
650
           for (let c = 0; c < modes.length; c++) {
758
       }
761
       }
759
       ,
762
       ,
760
       getAnticoagulantDesc(list) {
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
       getEPODesc(list) {
793
       getEPODesc(list) {
765
         let EPO = []
794
         let EPO = []
766
         for (let b = 0; b < list.length; b++) {
795
         for (let b = 0; b < list.length; b++) {
870
         const res = new Map()
899
         const res = new Map()
871
         return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1))
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
       getScheduleList() {
908
       getScheduleList() {

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

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