浏览代码

修复科室收入统计的cookie

lighter 3 年之前
父节点
当前提交
112b392bac
共有 2 个文件被更改,包括 13 次插入4 次删除
  1. 10 0
      src/router/modules/dashboard.js
  2. 3 4
      src/views/reports/KeShiShouRuTongJi.vue

+ 10 - 0
src/router/modules/dashboard.js

@@ -242,6 +242,11 @@ const route = [
         component: createNameComponent(() => import('@/views/reports/DrugInquiry.vue')),
         meta: { title: '查询药品', icon: 'iconfont icon-chaxunyaopin' },
       },
+      {
+        path: 'keShiShouRuTongJi',
+        component: createNameComponent(() => import('@/views/reports/KeShiShouRuTongJi.vue')),
+        meta: { title: '科室收入统计', icon: 'iconfont icon-keShiShouRuTongJi' },
+      },
     ],
   },
   {
@@ -359,6 +364,11 @@ const route = [
         component: createNameComponent(() => import('@/views/clinic/DoctorInfoManagement.vue')),
         meta: { title: '医生信息管理', icon: 'iconfont icon-renyuanxinxiguanli' },
       },
+      {
+        path: 'transferInOfExpenses',
+        component: createNameComponent(() => import('@/views/clinic/TransferInOfExpenses.vue')),
+        meta: { title: '急诊费用转入', icon: 'iconfont icon-feiyongzhuanru' },
+      },
       {
         path: 'wxPayRefund',
         component: createNameComponent(() => import('@/views/clinic/WxPayRefund.vue')),

+ 3 - 4
src/views/reports/KeShiShouRuTongJi.vue

@@ -97,7 +97,6 @@
 import { clockinShortcuts } from '@/data/shortcuts'
 import { ref, onMounted } from 'vue'
 import { getKeShouFei } from '../../api/querydata/keshishourutongji.js'
-import jsCookie from 'js-cookie'
 import { getChargeCode, getDept, getRenYuan } from '../../api/public-api.js'
 import { getDateRangeFormatDate } from '../../utils/date.js'
 import store from '@/store'
@@ -109,7 +108,7 @@ export default {
     const windowSize = store.state.app.windowSize
     const windowHeigth = windowSize.h
 
-    const quanXian = jsCookie.get('roles')
+    const quanXian = store.state.user.info.roles
 
     const queryTerm = ref({
       dateRange: clockinShortcuts[0].value,
@@ -117,7 +116,7 @@ export default {
       opId: '',
       chargeCodeMx: null,
       reqDeptCode: '',
-      execUnitList: [jsCookie.get('dept')],
+      execUnitList: [store.state.user.info.deptCode],
       fenLei: 3,
       currentPage: 1,
       pageSize: 40,
@@ -217,7 +216,7 @@ export default {
         deptList.value = res
       })
       if (!(quanXian.indexOf(1) > -1 || quanXian.indexOf(34) > -1)) {
-        queryTerm.value.opId = jsCookie.get('code')
+        queryTerm.value.opId = store.state.user.info.code
       }
     })