yuwandanmian hace 2 años
padre
commit
9e57b235f8

+ 20 - 3
src/router/index.js

@@ -196,8 +196,7 @@ export const constantRoutes = [
         path: '/caseIndexAnalysisList',
         name: 'CaseIndexAnalysisList',
         component: () => import('@/views/allcase/caseIndexAnalysisList'),
-        hidden: true,
-        meta: { title: '指标分析-科室详情' },
+        meta: { title: '指标分析-科室病案' },
       },
       {
         path: '/searchSystem',
@@ -252,8 +251,26 @@ export const constantRoutes = [
         path: '/embedIndex-home',
         name: 'EmbedIndexHome',
         component: () => import('@/views/embedIndex/index'),
-        meta: { keepAlive:true },
+        meta: { keepAlive: true },
+        hidden: true
+      },
+      {
+        path: '/embedIndex-caseIndexAnalysisList',
+        name: 'EmbedIndexCaseIndexAnalysisList',
+        component: () => import('@/views/allcase/caseIndexAnalysisList'),
+        hidden: true
+      },
+      {
+        path: '/embedIndex-caseViews',
+        name: 'EmbedIndexCaseViews',
+        component: () => import('@/views/allcase/caseViews'),
         hidden: true
+      },
+      {
+        path: '/embedIndex-chargeDetails',
+        name: 'EmbedIndexChargeDetails',
+        hidden: true,
+        component: () => import('@/views/data/query/ChargeDetails')
       }
     ]
   },

+ 8 - 1
src/views/allcase/caseIndex.vue

@@ -629,7 +629,14 @@ export default {
       if ( source === '人工录入') {
         return
       }
-      this.$router.push({ path: '/caseIndexList', query: { year: this.formInline.year, time, ruleId: Number(`${this.ruleId}`.slice(0, 2)), type: this.judgeNum } });
+      
+      let path
+      if (this.$route.path === '/embedIndex-home') {
+        path = '/embedIndex-caseViews'
+      } else {
+        path = '/caseIndexList'
+      }
+      this.$router.push({ path, query: { year: this.formInline.year, time, ruleId: Number(`${this.ruleId}`.slice(0, 2)), type: this.judgeNum } });
     },
     // 菜单筛选
     filterNode(value, data) {

+ 10 - 3
src/views/allcase/caseIndexAnalysis.vue

@@ -299,8 +299,8 @@ export default {
         type: this.ruleId,
         page: 1,
         page_size: 10,
-        start_time,
-        end_time,
+        start_time: start_time ? dateFormat(start_time, 'YYYYMMDD') : '',
+        end_time: end_time ? dateFormat(end_time, 'YYYYMMDD') : ''
       };
       this.$axios2.post('/dep_statistics', params).then(res => {
         console.log(res.data.data);
@@ -407,7 +407,14 @@ export default {
     // 跳转列表页
     toPage(row, status) {
       const { time } = this.formInline;
-      this.$router.push({ path: '/caseIndexAnalysisList', query: { ruleId: this.ruleId, ruleName: this.ruleName, start: time[0], end: time[1], dep_name: row.dep_name, status } });
+      let path
+      if (this.$route.path === '/embedIndex-home') {
+        path = 'embedIndex-caseIndexAnalysisList'
+      } else {
+        path = '/caseIndexAnalysisList'
+      }
+      
+      this.$router.push({ path, query: { ruleId: this.ruleId, ruleName: this.ruleName, start: time[0], end: time[1], dep_name: row.dep_name, status } });
     },
   },
 };

+ 2 - 2
src/views/allcase/contFile/mainHomePage.vue

@@ -1369,12 +1369,12 @@ export default {
   },
   methods: {
     jump() {
-      // this.$router.push(`/ChargeDetails?MED_REC_ID=${this.data.MED_REC_ID}`);
-      
       const { path } = this.$route
       let toPath
       if (['/hospital-caseViews', '/hospital-details'].includes(path)) {
         toPath = '/hospital-chargeDetails'
+      } else if (path === '/embedIndex-caseViews') {
+        toPath = '/embedIndex-chargeDetails'
       } else {
         toPath = '/ChargeDetails'
       }