Browse Source

升级依赖版本

lighter 1 year ago
parent
commit
d1bcbf0a4d

File diff suppressed because it is too large
+ 2426 - 331
package-lock.json


+ 45 - 45
package.json

@@ -3,58 +3,58 @@
   "version": "0.0.0",
   "scripts": {
     "dev": "vite",
-    "update:element": "npm install element-plus ./deps/element-plus.2.0.4.1.tar.gz",
+    "update:element": "npm install element-plus ./deps/element-plus.2.7.1.1.tar.gz",
     "build": "vite build --mode=production",
     "build:show": "vite build --mode=show"
   },
   "dependencies": {
-    "@babel/standalone": "7.14.8",
-    "@element-plus/icons-vue": "^2.0.6",
-    "@kjgl77/datav-vue3": "^1.3.3",
-    "@vitejs/plugin-legacy": "^1.8.2",
-    "@vueuse/core": "^10.7.1",
-    "axios": "^0.27.2",
-    "clipboard": "^2.0.11",
+    "@babel/standalone": "7.24.5",
+    "@element-plus/icons-vue": "2.3.1",
+    "@kjgl77/datav-vue3": "1.7.2",
+    "@vitejs/plugin-legacy": "5.4.0",
+    "@vueuse/core": "10.9.0",
+    "axios": "1.6.0",
+    "clipboard": "2.0.11",
     "crypto-js": "4.2.0",
-    "d3": "^5.16.0",
-    "dayjs": "^1.11.7",
-    "dom-zindex": "^1.0.1",
-    "driver.js": "^1.3.0",
-    "echarts": "^5.2.0",
+    "d3": "7.9.0",
+    "dayjs": "1.11.11",
+    "dom-zindex": "1.0.2",
+    "driver.js": "1.3.1",
+    "echarts": "5.5.0",
     "element-plus": "file:deps/element-plus.2.7.1.1.tar.gz",
-    "exceljs": "^4.4.0",
-    "file-saver": "^2.0.5",
-    "iconv-lite": "^0.6.3",
-    "jquery": "^3.6.0",
-    "js-cookie": "^3.0.0",
-    "jsbarcode": "^3.11.4",
-    "moment": "^2.29.1",
-    "monaco-editor": "^0.40.0",
-    "normalize.css": "^8.0.1",
-    "nprogress": "^0.2.0",
-    "pinia": "^2.1.7",
-    "qrcanvas": "^3.1.2",
-    "sortablejs": "^1.14.0",
-    "vue": "^3.2.37",
-    "vue-router": "^4.0.16",
-    "vue3-json-viewer": "^2.2.2",
-    "vue3-print-nb": "^0.1.4",
-    "vxe-table": "^4.3.14",
-    "vxe-table-plugin-export-xlsx": "^4.0.1",
-    "xe-utils": "^3.5.7",
-    "xlsx": "^0.17.0"
+    "exceljs": "4.4.0",
+    "file-saver": "2.0.5",
+    "iconv-lite": "0.6.3",
+    "jquery": "3.7.1",
+    "js-cookie": "3.0.5",
+    "jsbarcode": "3.11.6",
+    "moment": "2.29.4",
+    "monaco-editor": "0.48.0",
+    "normalize.css": "8.0.1",
+    "nprogress": "0.2.0",
+    "pinia": "2.1.7",
+    "qrcanvas": "3.1.2",
+    "sortablejs": "1.15.2",
+    "vue": "3.4.27",
+    "vue-router": "4.0.16",
+    "vue3-json-viewer": "2.2.2",
+    "vue3-print-nb": "0.1.4",
+    "vxe-table": "4.5.0",
+    "vxe-table-plugin-export-xlsx": "4.0.1",
+    "xe-utils": "3.5.26",
+    "xlsx": "0.17.0"
   },
   "devDependencies": {
-    "@types/node": "^15.0.3",
-    "@vitejs/plugin-vue": "^1.2.2",
-    "@vue/cli-service": "^5.0.6",
-    "@vue/compiler-sfc": "^3.2.37",
-    "sass": "^1.32.12",
-    "unplugin-auto-import": "^0.9.2",
-    "unplugin-icons": "^0.14.6",
-    "vite": "2.9.13",
-    "vite-plugin-mock": "2.9.6",
-    "vite-plugin-vue-setup-extend": "^0.4.0",
-    "vue-tsc": "^0.38.2"
+    "@types/node": "20.11.0",
+    "@vitejs/plugin-vue": "5.0.4",
+    "@vue/cli-service": "5.0.8",
+    "@vue/compiler-sfc": "3.4.27",
+    "sass": "1.77.1",
+    "unplugin-auto-import": "0.17.6",
+    "unplugin-icons": "0.19.0",
+    "vite": "5.2.11",
+    "vite-plugin-mock": "3.0.2",
+    "vite-plugin-vue-setup-extend": "0.4.0",
+    "vue-tsc": "2.0.17"
   }
 }

+ 12 - 1
src/auto-imports.d.ts

@@ -1,4 +1,8 @@
-// Generated by 'unplugin-auto-import'
+/* eslint-disable */
+/* prettier-ignore */
+// @ts-nocheck
+// noinspection JSUnusedGlobalSymbols
+// Generated by unplugin-auto-import
 export {}
 declare global {
   const EffectScope: typeof import('vue')['EffectScope']
@@ -42,6 +46,7 @@ declare global {
   const toRaw: typeof import('vue')['toRaw']
   const toRef: typeof import('vue')['toRef']
   const toRefs: typeof import('vue')['toRefs']
+  const toValue: typeof import('vue')['toValue']
   const triggerRef: typeof import('vue')['triggerRef']
   const unref: typeof import('vue')['unref']
   const useAttrs: typeof import('vue')['useAttrs']
@@ -53,3 +58,9 @@ declare global {
   const watchPostEffect: typeof import('vue')['watchPostEffect']
   const watchSyncEffect: typeof import('vue')['watchSyncEffect']
 }
+// for type re-export
+declare global {
+  // @ts-ignore
+  export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
+  import('vue')
+}

+ 0 - 1
src/components/zhu-yuan-yi-sheng/emr/auxiliary-tools/BloodSugar.vue

@@ -104,7 +104,6 @@ const columnsBP = [
     dataKey: 'createdName',
     width: '220px'
   }
-
 ]
 
 

+ 2 - 1
src/data/inpatient.js

@@ -1,6 +1,7 @@
 import { ref } from 'vue'
 
-let info = ref({})
+let info = ref({
+})
 
 export function baseinfo() {
   return info.value

+ 2 - 2
src/main.js

@@ -23,6 +23,8 @@ import initVxeConfig from "@/utils/vxe-formatter";
 import VXETablePluginExportXLSX from 'vxe-table-plugin-export-xlsx'
 import ExcelJS from 'exceljs'
 
+const pinia = createPinia()
+
 DomZIndex.getNext = () => {
     return useZIndex().nextZIndex()
 }
@@ -31,10 +33,8 @@ DomZIndex.getCurrent = () => {
     return useZIndex().currentZIndex.value
 }
 
-
 initVxeConfig()
 
-const pinia = createPinia()
 export const app = createApp(App)
 for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
     app.component(key, component)

+ 4 - 1
src/utils/window-size.js

@@ -1,7 +1,10 @@
 import {ref} from "vue"
 
 export const getWindowSize = computed(() => {
-    return {}
+    return {
+        h: window.innerHeight - 80,
+        w: window.innerWidth,
+    }
 })
 
 export const visibleWindowSize = ref({

+ 2 - 1
src/views/medical-insurance/inpatient/Home.vue

@@ -15,7 +15,7 @@
       <el-button type="primary" icon="Tickets" @click="beforeGetTreatinfo">待遇检查</el-button>
       <el-button icon="Document" @click="openEmr">电子病历</el-button>
       <el-button @click="printWristStrap">打印腕带</el-button>
-      <bloodSugar :pat-no="patient.inpatientNo" :times="patient.admissTimes" :old-button="false"/>
+      <BloodSugar :pat-no="patient.inpatientNo" :times="patient.admissTimes" :old-button="false"/>
     </template>
     <template #aside>
       <Overview ref="overview" :showSelection="isUploadPage"/>
@@ -58,6 +58,7 @@ import {ElMessage} from "element-plus";
 import {getDatetime} from "@/utils/date";
 import {getLodop, initLodop} from "@/utils/c-lodop";
 import {useMedinsStore} from "@/pinia/medins-store";
+import BloodSugar from "@/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/components/BloodSugar.vue";
 
 const search = initSearchParam()
 const permission = getGreatestRole()

Some files were not shown because too many files changed in this diff