浏览代码

用store取代Cookie

lighter 3 年之前
父节点
当前提交
0109b6ee49

+ 1 - 2
src/components/med-tec-mod/HuanZheFeiYong.vue

@@ -53,7 +53,6 @@ import { costState } from '@/utils/computed'
 import store from '@/store'
 import { getChargeCode, xiangMuTuiFei } from '@/api/yibao/xiang-mu-lu-ru'
 import { ElMessage, ElMessageBox } from 'element-plus'
-import jsCookie from 'js-cookie'
 export default {
   name: 'huanZheFeiYong',
   props: {
@@ -114,7 +113,7 @@ export default {
     }
 
     const xiangMuTuiFeiClick = () => {
-      props.patient.deptCode = jsCookie.get('dept')
+      props.patient.deptCode = store.state.user.info.deptCode
       try {
         let chargeFee = 0
         let chargeAmount = 0

+ 2 - 3
src/components/med-tec-mod/HuoQuMuBan.vue

@@ -60,7 +60,6 @@
 import { onMounted, ref } from 'vue'
 import { getMuBanXinXi, shanChuMuBan, getMuBan } from '@/api/yibao/xiang-mu-lu-ru'
 import store from '@/store'
-import Cookie from 'js-cookie'
 import { ElMessageBox } from 'element-plus'
 export default {
   setup(props, ctx) {
@@ -92,7 +91,7 @@ export default {
     }
 
     const shanChuMuBanClick = (index, data) => {
-      if (data.opIdCode !== Cookie.get('code')) {
+      if (data.opIdCode !== store.state.user.info.code) {
         ElMessageBox.confirm('该模板非本人创建是否强制删除', '提示', {
           type: 'error',
         })
@@ -110,7 +109,7 @@ export default {
     }
 
     onMounted(() => {
-      getMuBan(Cookie.get('dept')).then((res) => {
+      getMuBan(store.state.user.info.deptCode).then((res) => {
         muBanData.value = res
       })
     })

+ 6 - 7
src/components/med-tec-mod/YiJiXiangMuLuRu.vue

@@ -171,7 +171,6 @@
 <script>
 import { computed, onMounted, ref, watch } from 'vue'
 import { getMuBan, getMuBanXinXi, xiangMuFeiYongShangChuan, getDept, queryDanGeXiangMu, shanChuMuBan, getPyCode, shangChuanMuBan } from '@/api/yibao/xiang-mu-lu-ru'
-import Cookie from 'js-cookie'
 import store from '@/store'
 import { getDatetime } from '@/utils/date'
 import { ElMessage, ElMessageBox } from 'element-plus'
@@ -226,7 +225,7 @@ export default {
       for (let i = 0; i < val.length; i++) {
         if (chargeCode.value.indexOf(val[i].chargeCodeMx) === -1) {
           chargeCode.value.push(val[i].chargeCodeMx)
-          val[i].deptCode = Cookie.get('dept')
+          val[i].deptCode = store.state.user.info.deptCode
           feiYongShuJu.value.push(val[i])
         }
       }
@@ -236,7 +235,7 @@ export default {
 
     onMounted(() => {
       // 获取模板信息
-      getMuBan(Cookie.get('dept')).then((res) => {
+      getMuBan(store.state.user.info.deptCode).then((res) => {
         muBanData.value = res
       })
       // 获取科室
@@ -308,7 +307,7 @@ export default {
     const getDanGeXiangMu = () => {
       xiangMuHuoYaoPinShuJu.value.filter((item) => {
         if (item.chargeCodeMx === chargeCodePy.value) {
-          item.deptCode = Cookie.get('dept')
+          item.deptCode = store.state.user.info.deptCode
           danGeFeiYong.value = []
           danGeFeiYong.value.push(item)
         }
@@ -364,7 +363,7 @@ export default {
       name: '',
       paiXu: '',
       dept: '',
-      deptCode: Cookie.get('dept'),
+      deptCode: store.state.user.info.deptCode,
       list: [],
     })
 
@@ -407,7 +406,7 @@ export default {
         queryDept.value = ''
       })
     }
-    const zhiXingKeShi = ref(Cookie.get('dept'))
+    const zhiXingKeShi = ref(store.state.user.info.deptCode)
 
     const xieGaiZhiXingKeShi = () => {
       for (let i = 0; i < feiYongShuJu.value.length; i++) {
@@ -456,7 +455,7 @@ export default {
 }
 
 function panDuanSFWeiShouShuShi() {
-  let dept = Cookie.get('dept')
+  let dept = store.state.user.info.deptCode
   if (dept === '1300000' || dept === '3100000' || dept === '1300010') {
     return true
   }

+ 148 - 3
src/router/modules/dashboard.js

@@ -54,7 +54,6 @@ const route = [
           },
         ],
       },
-
       {
         path: 'outpatient',
         component: MenuBox,
@@ -72,7 +71,6 @@ const route = [
           },
         ],
       },
-
       {
         path: 'qryManage',
         component: MenuBox,
@@ -134,7 +132,6 @@ const route = [
       },
     ],
   },
-
   {
     path: '/dictionary',
     component: Layout,
@@ -157,6 +154,154 @@ const route = [
       },
     ],
   },
+  {
+    path: '/reports',
+    component: Layout,
+    meta: { title: '报表模块', icon: 'iconfont icon-baobiaomokuai' },
+    children: [
+      {
+        path: 'deptPriodRprt',
+        component: createNameComponent(() => import('@/views/reports/DeptPeriodReport.vue')),
+        meta: { title: '科室时段报表', icon: 'iconfont icon-shiduanfenxi' },
+      },
+      {
+        path: 'infntChrgRprt',
+        component: createNameComponent(() => import('@/views/reports/InfantFeeReport.vue')),
+        meta: { title: '婴儿收费统计', icon: 'iconfont icon-yinger' },
+      },
+      {
+        path: 'mdcnStckCnt',
+        component: createNameComponent(() => import('@/views/reports/MedicineStockCount.vue')),
+        meta: { title: '药品盘点', icon: 'iconfont icon-yaopin' },
+      },
+      {
+        path: 'clockinStatistics',
+        component: createNameComponent(() => import('@/views/reports/ClockinData.vue')),
+        meta: { title: '打卡数据', icon: 'iconfont icon-dakashuju' },
+      },
+      {
+        path: 'covidVaccinateAppointment',
+        component: createNameComponent(() => import('@/views/reports/CovidVaccinateAppointment.vue')),
+        meta: { title: '新冠接种预约', icon: 'iconfont icon-xinguanjiezhong' },
+      },
+      {
+        path: 'inquiryOfConsultationFee',
+        component: createNameComponent(() => import('@/views/reports/InquiryOfConsultationFee.vue')),
+        meta: { title: '查询会诊费用', icon: 'iconfont icon-feiyongshenqing' },
+      },
+      {
+        path: 'consumablesStatistics',
+        component: createNameComponent(() => import('@/views/reports/ConsumablesStatistics.vue')),
+        meta: { title: '耗材使用统计', icon: 'iconfont icon-haocaitongji' },
+      },
+      {
+        path: 'illegalChargesAnalysis',
+        component: createNameComponent(() => import('@/views/reports/IllegalChargesAnalysis.vue')),
+        meta: { title: '违规收费分析', icon: 'iconfont icon-weiguishoufeifenxi' },
+      },
+      {
+        path: 'queryPayService',
+        component: createNameComponent(() => import('@/views/reports/QueryPayService.vue')),
+        meta: { title: '收费项目', icon: 'iconfont icon-shoufeixiangmu' },
+      },
+      {
+        path: 'drugInquiry',
+        component: createNameComponent(() => import('@/views/reports/DrugInquiry.vue')),
+        meta: { title: '查询药品', icon: 'iconfont icon-chaxunyaopin' },
+      },
+    ],
+  },
+
+  {
+    path: '/dataModify',
+    component: Layout,
+    meta: { title: '数据修改', icon: 'iconfont icon-shujuxiugai' },
+    children: [
+      {
+        path: 'yzActOrderModify',
+        component: createNameComponent(() => import('@/views/dataModify/YzActOrderModify.vue')),
+        meta: { title: '医嘱修改申请', icon: 'iconfont icon-yizhu' },
+      },
+      {
+        path: 'zyChargeFeeModify',
+        component: createNameComponent(() => import('@/views/dataModify/ZyChargeFeeModify.vue')),
+        meta: { title: '住院费用修改', icon: 'iconfont icon-zhuyuanfeiyongfenxi' },
+      },
+      {
+        path: 'yzActOrderModifyVerify',
+        component: createNameComponent(() => import('@/views/dataModify/YzActOrderModifyVerify.vue')),
+        meta: { title: '医嘱修改审核', icon: 'iconfont icon-yizhuxiugaishenhe' },
+      },
+      {
+        path: 'yzTemperatureModify',
+        component: createNameComponent(() => import('@/views/dataModify/YzTemperatureModify.vue')),
+        meta: { title: '护理记录单修改', icon: 'iconfont icon-hulijiludan' },
+      },
+      {
+        path: 'secondFefund',
+        component: createNameComponent(() => import('@/views/dataModify/SecondFefund.vue')),
+        meta: { title: '二次退费', icon: 'iconfont icon-ercituifei' },
+      },
+      {
+        path: 'queryOfReceiptDetails',
+        component: createNameComponent(() => import('@/views/dataModify/QueryOfReceiptDetails.vue')),
+        meta: { title: '入库明细查询', icon: 'iconfont icon-rukuguanli' },
+      },
+      {
+        path: 'deliveryDetailsQuery',
+        component: createNameComponent(() => import('@/views/dataModify/DeliveryDetailsQuery.vue')),
+        meta: { title: '出库明细查询', icon: 'iconfont icon-chukuguanli' },
+      },
+    ],
+  },
+
+  {
+    path: '/inpatient',
+    component: Layout,
+    meta: { title: '检验检查', icon: 'iconfont icon-jiancha' },
+    children: [
+      {
+        path: 'inspectionReportIndex',
+        component: createNameComponent(() => import('@/views/hospitalization/InspectionReportIndex.vue')),
+        meta: { title: '检验报告', icon: 'iconfont icon-jianyanbaogao' },
+      },
+      {
+        path: 'covidExamResult',
+        component: createNameComponent(() => import('@/views/hospitalization/CovidExamResult.vue')),
+        meta: { title: '新冠核酸检测报告', icon: 'iconfont icon-xinguan' },
+      },
+      {
+        path: 'healthCrdUpld',
+        component: createNameComponent(() => import('@/views/hospitalization/UploadToHealthCard.vue')),
+        meta: { title: '健康证对接', icon: 'iconfont icon-jiankangzheng' },
+      },
+      {
+        path: 'bookableManagement',
+        component: createNameComponent(() => import('@/views/hospitalization/BookableManagement.vue')),
+        meta: { title: '检验检查预约维护', icon: 'iconfont icon-yuyuedingdan' },
+      },
+      {
+        path: 'inspectionReportIndex',
+        component: createNameComponent(() => import('@/views/hospitalization/InspectionReportIndex.vue')),
+        meta: { title: '检验报告', icon: 'iconfont icon-jianyanbaogao' },
+      },
+      {
+        path: 'covidExamResult',
+        component: createNameComponent(() => import('@/views/hospitalization/CovidExamResult.vue')),
+        meta: { title: '新冠核酸检测报告', icon: 'iconfont icon-xinguan' },
+      },
+      {
+        path: 'healthCrdUpld',
+        component: createNameComponent(() => import('@/views/hospitalization/UploadToHealthCard.vue')),
+        meta: { title: '健康证对接', icon: 'iconfont icon-jiankangzheng' },
+      },
+      {
+        path: 'bookableManagement',
+        component: createNameComponent(() => import('@/views/hospitalization/BookableManagement.vue')),
+        meta: { title: '检验检查预约维护', icon: 'iconfont icon-yuyuedingdan' },
+      },
+    ],
+  },
 ]
 
 export default route

+ 1 - 2
src/views/clinic/WxPayRefund.vue

@@ -64,7 +64,6 @@
 import { reactive, ref } from 'vue'
 import { shortcuts } from '@/data/shortcuts'
 import { selectOrdersByConditions, refundOrder } from '@/api/wxpay-refund'
-import Cookies from 'js-cookie'
 import { ElMessage, ElMessageBox } from 'element-plus'
 import { formatDate, getDatetime } from '@/utils/date'
 import store from '@/store'
@@ -173,7 +172,7 @@ export default {
             tradeNo: row.tradeNo,
             refundReason: value,
             refundOpDatetime: getDatetime(),
-            refundOpCode: Cookies.get('code'),
+            refundOpCode: store.state.user.info.code,
           }
           refundOrder(param).then(() => {
             ElMessage({

+ 4 - 5
src/views/data-modify/YzActOrderModify.vue

@@ -216,7 +216,6 @@ import { yZauditStatus } from '@/utils/computed'
 import { yzModifyApply, yzQuery, chaKanZhuangTai, danGeShenQing } from '@/api/yz-data-mod/yz-xiugaiy'
 import { formatDatetime } from '@/utils/date'
 import { computed } from 'vue'
-import Cookies from 'js-cookie'
 
 export default {
   name: 'YzActOrderModify',
@@ -285,7 +284,7 @@ export default {
             } else {
               tianJiaShenHe.value.startTime = formatDatetime(tianJiaShenHe.value.startTime)
               tianJiaShenHe.value.endTime = formatDatetime(tianJiaShenHe.value.endTime)
-              tianJiaShenHe.value.proposer = Cookies.get('code')
+              tianJiaShenHe.value.proposer = store.state.user.info.code
               yzModifyApply(tianJiaShenHe.value).then((res) => {
                 actOrderNos.value = []
                 tianJiaShenHe.value = {}
@@ -310,7 +309,7 @@ export default {
     //审核信息点击分页
     const shenHeXinXiCurrentChange = (val) => {
       shenHeXinXiCurrentPage.value = val
-      chaKanZhuangTai(Cookies.get('code'), resShenHeActOrderNo, resShenHeInpatientNo, shenHeXinXiCurrentPage.value, shenHeXinXiPageSize.value).then((res) => {
+      chaKanZhuangTai(store.state.user.info.code, resShenHeActOrderNo, resShenHeInpatientNo, shenHeXinXiCurrentPage.value, shenHeXinXiPageSize.value).then((res) => {
         resShenHeInpatientNo = shenHeInpatientNo.value
         resShenHeActOrderNo = shenHeActOrderNo.value
         dialogFormVisible.value = true
@@ -334,7 +333,7 @@ export default {
      * 点击查看 申请的状态
      */
     const chakan = () => {
-      chaKanZhuangTai(Cookies.get('code'), resShenHeActOrderNo, resShenHeInpatientNo, shenHeXinXiCurrentPage.value, shenHeXinXiPageSize.value).then((res) => {
+      chaKanZhuangTai(store.state.user.info.code, resShenHeActOrderNo, resShenHeInpatientNo, shenHeXinXiCurrentPage.value, shenHeXinXiPageSize.value).then((res) => {
         dialogFormVisible.value = true
         shenHeXinxiTotal.value = res.total
         dialogTable.value = res.data
@@ -342,7 +341,7 @@ export default {
     }
     //根据条件查询
     const queryZhuangTaiClick = () => {
-      chaKanZhuangTai(Cookies.get('code'), shenHeActOrderNo.value, shenHeInpatientNo.value, shenHeXinXiCurrentPage.value, shenHeXinXiPageSize.value).then((res) => {
+      chaKanZhuangTai(store.state.user.info.code, shenHeActOrderNo.value, shenHeInpatientNo.value, shenHeXinXiCurrentPage.value, shenHeXinXiPageSize.value).then((res) => {
         resShenHeInpatientNo = shenHeInpatientNo.value
         resShenHeActOrderNo = shenHeActOrderNo.value
         dialogFormVisible.value = true

+ 2 - 3
src/views/dictionary/XmYpMatch.vue

@@ -167,7 +167,6 @@
 
 <script>
 import store from '@/store'
-import Cookies from 'js-cookie'
 import { computed, reactive, ref } from 'vue'
 import { ElMessage, ElMessageBox } from 'element-plus'
 import { deleteMatchInfo, doMatch, fixWhitespaces, getDict, getGongShangMuLu, shanChuGongShangMuLu, synchronizeHnsybMatch } from '@/api/dictionary/index'
@@ -241,7 +240,7 @@ export default {
           const p = {
             type: param.type,
             responce: param.responceType,
-            operMan: Cookies.get('name'),
+            operMan: store.state.user.info.name,
             list: matchList.value,
           }
           deleteMatchInfo(p).then((res) => {
@@ -325,7 +324,7 @@ export default {
           const p = {
             type: param.type,
             responce: param.responceType,
-            operMan: Cookies.get('name'),
+            operMan: store.state.user.info.name,
             list: matchList.value,
           }
           doMatch(p).then((res) => {

+ 1 - 2
src/views/hospitalization/TransferInOfExpenses.vue

@@ -205,7 +205,6 @@ import { cptSex } from '@/utils/computed'
 import store from '@/store'
 import { computed } from 'vue'
 import { ElMessage, ElMessageBox } from 'element-plus'
-import jsCookie from 'js-cookie'
 export default {
   name: 'TransferInOfExpenses',
   setup() {
@@ -371,7 +370,7 @@ export default {
             message: '门诊病人姓名【' + mzXinXiList.value[i].patientName + '】住院病人姓名【' + huanZheXinXi.value.name + '】不一致,是否继续?',
           })
             .then(() => {
-              huanZheXinXi.value.reqExecUnit = jsCookie.get('dept')
+              huanZheXinXi.value.reqExecUnit = store.state.user.info.deptCode
               baoCunHuanZheZhuYuanFeiYong(huanZheXinXi.value).then((res) => {
                 zyXinXiList.value = []
                 mzXinXiList.value = []

+ 1 - 2
src/views/hospitalization/adverse-event/AdverseEventPrintPage.vue

@@ -97,14 +97,13 @@
 </template>
 
 <script>
-import Cookies from 'js-cookie'
 import { computed, onMounted, ref } from 'vue'
 import router from '@/router'
 import { getReportDetail, updatePrinted } from '@/api/adverse-event'
 import { ElMessage, ElMessageBox } from 'element-plus'
 export default {
   setup() {
-    const roles = JSON.parse(Cookies.get('roles'))
+    const roles = store.state.user.info.roles
     const disableConfirmPrint = computed(() => {
       return roles.indexOf(24) === -1 && roles.indexOf(1) === -1 && roles.indexOf(2) === -1
     })

+ 1 - 2
src/views/hospitalization/adverse-event/AllAdverseEvent.vue

@@ -74,7 +74,6 @@
 </template>
 
 <script>
-import Cookies from 'js-cookie'
 import store from '@/store'
 import { shortcuts } from '@/data/shortcuts'
 import { computed, onMounted, reactive, ref } from 'vue'
@@ -131,7 +130,7 @@ export default {
       })
     }
 
-    const roles = JSON.parse(Cookies.get('roles'))
+    const roles = store.state.user.info.roles
     const isNotHlb = computed(() => {
       return roles.indexOf(24) === -1 && roles.indexOf(1) === -1 && roles.indexOf(2) === -1
     })

+ 2 - 3
src/views/hospitalization/adverse-event/FillAderverseEvent.vue

@@ -179,7 +179,6 @@
 <script>
 import { computed, onMounted, ref } from 'vue'
 import { dict } from '@/data/adverse-event'
-import Cookies from 'js-cookie'
 import { ElMessage, ElMessageBox } from 'element-plus'
 import { getHistories, getReportDetail, submitNewReport } from '@/api/adverse-event'
 import store from '@/store'
@@ -266,8 +265,8 @@ export default {
 
 function initReport() {
   return ref({
-    deptCode: Cookies.get('dept'),
-    userName: Cookies.get('name'),
+    deptCode: store.state.user.info.deptCode,
+    userName: store.state.user.info.name,
     category: null,
     occurDatetime: null,
     userLevel: '护士',

+ 1 - 2
src/views/hospitalization/case-front-sheet/AllCaseFrontSheet.vue

@@ -715,7 +715,6 @@ import { caseFrontsheetPrintCss } from '@/data/css-for-print'
 import maleIcon from '@/assets/male-icon.png'
 import femaleIcon from '@/assets/female-icon.png'
 import { ElMessage, ElMessageBox } from 'element-plus'
-import Cookies from 'js-cookie'
 import { shortcuts } from '@/data/shortcuts'
 import { formatDate, getOneMonthOffset } from '@/utils/date'
 import router from '@/router'
@@ -1029,7 +1028,7 @@ export default {
         sheet.value.disdiagList[no].name = item.name
         sheet.value.disdiagList[no].no = no
         sheet.value.disdiagList[no].admissStatus = sheet.value.disdiagList[no].dismissStatus = '1'
-        sheet.value.disdiagList[no].opIdCode = Cookies.get('code')
+        sheet.value.disdiagList[no].opIdCode = store.state.user.info.code
       } else if (searchTargetCode.value === 'advanceSearch') {
         switch (searchTargetName.value) {
           case 'doctor':

+ 3 - 4
src/views/hospitalization/case-front-sheet/FillCaseFrontSheet.vue

@@ -838,7 +838,6 @@ import { caseFrontsheetPrintCss } from '@/data/css-for-print'
 import maleIcon from '@/assets/male-icon.png'
 import femaleIcon from '@/assets/female-icon.png'
 import { ElMessage, ElMessageBox } from 'element-plus'
-import Cookies from 'js-cookie'
 import { shortcuts } from '@/data/shortcuts'
 import { formatDate, formatDatetime, getDatetime, getOneMonthOffset } from '@/utils/date'
 import { cptSex } from '@/utils/computed'
@@ -1156,7 +1155,7 @@ export default {
         patient.value.disdiagList[no].name = item.name
         patient.value.disdiagList[no].no = no
         patient.value.disdiagList[no].admissStatus = patient.value.disdiagList[no].dismissStatus = '1'
-        patient.value.disdiagList[no].opIdCode = Cookies.get('code')
+        patient.value.disdiagList[no].opIdCode = store.state.user.info.code
       } else if (searchTargetCode.value === 'ybDiagCode') {
         ybDiag.code = item.code
         ybDiag.name = item.name
@@ -1181,7 +1180,7 @@ export default {
     const addToYbDiags = () => {
       const temp = clone(ybDiag)
       temp.diagType = 13
-      temp.operId = Cookies.get('code')
+      temp.operId = store.state.user.info.code
       temp.opDate = getDatetime()
       temp.bzfx = '普通'
       ybDiags.value.push(temp)
@@ -1413,7 +1412,7 @@ export default {
       if (patient.value.disdiagList[0].no !== null) {
         huiZhenShenQing.value.hzZd += 1 + '、' + patient.value.disdiagList[0].name + ' '
       }
-      huiZhenShenQing.value.name = Cookies.get('name')
+      huiZhenShenQing.value.name = store.state.user.info.name
       huiZhenShenQing.value.inputDate = formatDatetime(new Date())
     }
 

+ 6 - 5
src/views/hospitalization/case-front-sheet/JieShouHuiZhen.vue

@@ -89,7 +89,7 @@
               </div>
               <div class="qingQiuHuiZhenXinXi">
                 <div class="div1">会诊科室:{{ deptName }}</div>
-                <div class="div2">医师:{{ Cookie.get('name') }}</div>
+                <div class="div2">医师:{{ doctorName }}</div>
                 <div>会诊时间:{{ shiShidate }}</div>
               </div>
             </div>
@@ -102,7 +102,6 @@
 
 <script>
 import { ref } from '@vue/reactivity'
-import Cookie from 'js-cookie'
 import { getDeptName, getHuanZheXinXi, getHuiZhenData, wanChenHuiZhen } from '@/api/case-front-sheet/jie-shou-hui-zhen'
 import { cptSex } from '@/utils/computed'
 import store from '@/store'
@@ -122,6 +121,8 @@ export default {
 
     const deptName = ref('')
 
+    const doctorName = store.state.user.info.name
+
     const shiShidate = ref('')
 
     onMounted(() => {
@@ -131,7 +132,7 @@ export default {
       dateRange.value[1] = MoRenRiQi
       getHuiZhenDataClick()
 
-      getDeptName(Cookie.get('dept')).then((res) => {
+      getDeptName(store.state.user.info.deptCode).then((res) => {
         deptName.value = res
       })
     })
@@ -166,7 +167,7 @@ export default {
 
     const getHuiZhenDataClick = () => {
       let riQi = getDateRangeFormatDate(dateRange.value)
-      getHuiZhenData(Cookie.get('dept'), currentPage.value, pageSize.value, riQi.stratTime, riQi.endTime).then((res) => {
+      getHuiZhenData(store.state.user.info.deptCode, currentPage.value, pageSize.value, riQi.stratTime, riQi.endTime).then((res) => {
         huanZeData.value = res.records
         total.value = res.total
       })
@@ -260,6 +261,7 @@ export default {
     }
 
     return {
+      doctorName,
       tableHeight,
       huanZeData,
       currentPage,
@@ -275,7 +277,6 @@ export default {
       mainInfo,
       daYingClick,
       hzLeiBie,
-      Cookie,
       getDatetime,
       deptName,
       shiShidate,

+ 4 - 5
src/views/med-tec-mod/MenZhenXiangMu.vue

@@ -112,7 +112,6 @@ import { cptSex } from '@/utils/computed'
 import { getMzPatient, getFeiYongXinXi, getMingXi, menZhenXiangMuQuXiaoHuoQueRen } from '@/api/zhu-yuan-yi-ji/men-zhen-xiang-mu.js'
 import { getDateRangeFormatDate } from '@/utils/date'
 import store from '@/store'
-import jsCookie from 'js-cookie'
 import { clone } from '@/utils/clone.js'
 import { ElMessageBox } from 'element-plus'
 
@@ -125,7 +124,7 @@ export default {
     const xiangMuZhuangTai = ref(0)
     const chargeDate = ref('')
 
-    const rolesList = jsCookie.get('roles')
+    const rolesList = store.state.user.info.roles
 
     const patient = ref({})
 
@@ -141,7 +140,7 @@ export default {
       feiYongData.value = []
       danGeXingXi.value = []
       let dateR = getDateRangeFormatDate(dateRange.value)
-      getMzPatient(patientId.value, xiangMuZhuangTai.value, dateR.stratTime, dateR.endTime, jsCookie.get('dept'))
+      getMzPatient(patientId.value, xiangMuZhuangTai.value, dateR.stratTime, dateR.endTime, store.state.user.info.deptCode)
         .then((res) => {
           patientId.value = res.patientId
           patient.value = res
@@ -169,7 +168,7 @@ export default {
         keQueRenData.value = []
         feiYongData.value = res
         lingShiBaoCunJiaoFeiMingXi.value = clone(val)
-        let dept = jsCookie.get('dept')
+        let dept = store.state.user.info.deptCode
         if (rolesList.indexOf(1) > -1) {
           for (let i = 0; i < feiYongData.value.length; i++) {
             keQueRenData.value.push(clone(feiYongData.value[i]))
@@ -220,7 +219,7 @@ export default {
             list: keQueRenData.value,
             xiangMuZhuangTai: xiangMuZhuangTai.value,
             name: patient.value.name,
-            execDept: jsCookie.get('dept'),
+            execDept: store.state.user.info.deptCode,
             chargeDateString: chargeDate.value,
           }
 

+ 1 - 1
src/views/medical-insurance/inpatient/AdmRegistration.vue

@@ -668,7 +668,7 @@ export default {
             ybType: patient.value.ybType,
             treatType: patient.value.treatType,
             remark: value,
-            inputName: Cookies.get('name'),
+            inputName: store.state.user.info.name,
             requestType: 1,
           }
           submitCancelRegisterRequest(indata).then(() => {

+ 1 - 1
src/views/medical-insurance/outpatient/MzRegister.vue

@@ -411,7 +411,7 @@ export default {
 
     const mzPreSetl = () => {
       const param = {
-        staffId: Cookies.get('code'),
+        staffId: store.state.user.info.code,
         patNo: patientId.value,
         times: times.value,
       }