diff --git a/package.json b/package.json index 00c114e..466dd6e 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "js-cookie": "3.0.5", "jsbarcode": "^3.12.1", "jsencrypt": "3.3.2", + "lodash": "^4.17.21", "mitt": "^3.0.1", "nprogress": "0.2.0", "pinia": "2.1.7", @@ -50,6 +51,7 @@ }, "devDependencies": { "@eslint/js": "^9.27.0", + "@types/lodash": "^4.17.21", "@types/vue": "^2.0.0", "@typescript-eslint/eslint-plugin": "^8.46.2", "@typescript-eslint/parser": "^8.46.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9b06f24..7d36d8c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -56,6 +56,9 @@ importers: jsencrypt: specifier: 3.3.2 version: 3.3.2 + lodash: + specifier: ^4.17.21 + version: 4.17.21 mitt: specifier: ^3.0.1 version: 3.0.1 @@ -77,6 +80,9 @@ importers: sortablejs: specifier: ^1.14.0 version: 1.14.0 + three: + specifier: ^0.181.2 + version: 0.181.2 vue: specifier: 3.5.23 version: 3.5.23(typescript@5.9.3) @@ -111,6 +117,9 @@ importers: '@eslint/js': specifier: ^9.27.0 version: 9.27.0 + '@types/lodash': + specifier: ^4.17.21 + version: 4.17.21 '@types/vue': specifier: ^2.0.0 version: 2.0.0(typescript@5.9.3) @@ -599,8 +608,8 @@ packages: '@types/lodash-es@4.17.12': resolution: {integrity: sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==} - '@types/lodash@4.17.20': - resolution: {integrity: sha512-H3MHACvFUEiujabxhaI/ImO6gUrd8oOurg7LQtS7mbwIXA/cUqWrvBsaeJ23aZEPk1TAYkurjfMbSELfoCXlGA==} + '@types/lodash@4.17.21': + resolution: {integrity: sha512-FOvQ0YPD5NOfPgMzJihoT+Za5pdkDJWcbpuj1DjaKZIr/gxodQjY/uWEFlTNqW2ugXHUiL8lRQgw63dzKHZdeQ==} '@types/minimatch@3.0.5': resolution: {integrity: sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==} @@ -2503,6 +2512,9 @@ packages: text-segmentation@1.0.3: resolution: {integrity: sha512-iOiPUo/BGnZ6+54OsWxZidGCsdU8YbE4PSpdPinp7DeMtUJNJBoJ/ouUSTJjHkh1KntHaltHl/gDs2FC4i5+Nw==} + three@0.181.2: + resolution: {integrity: sha512-k/CjiZ80bYss6Qs7/ex1TBlPD11whT9oKfT8oTGiHa34W4JRd1NiH/Tr1DbHWQ2/vMUypxksLnF2CfmlmM5XFQ==} + tiny-emitter@2.1.0: resolution: {integrity: sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==} @@ -3113,9 +3125,9 @@ snapshots: '@types/lodash-es@4.17.12': dependencies: - '@types/lodash': 4.17.20 + '@types/lodash': 4.17.21 - '@types/lodash@4.17.20': {} + '@types/lodash@4.17.21': {} '@types/minimatch@3.0.5': {} @@ -3817,7 +3829,7 @@ snapshots: '@element-plus/icons-vue': 2.3.2(vue@3.5.23(typescript@5.9.3)) '@floating-ui/dom': 1.6.13 '@popperjs/core': '@sxzz/popperjs-es@2.11.7' - '@types/lodash': 4.17.20 + '@types/lodash': 4.17.21 '@types/lodash-es': 4.17.12 '@vueuse/core': 9.13.0(vue@3.5.23(typescript@5.9.3)) async-validator: 4.2.5 @@ -5355,6 +5367,8 @@ snapshots: dependencies: utrie: 1.0.2 + three@0.181.2: {} + tiny-emitter@2.1.0: {} to-object-path@0.3.0: diff --git a/src/App.vue b/src/App.vue index c7d0432..99d1f87 100644 --- a/src/App.vue +++ b/src/App.vue @@ -10,24 +10,19 @@ import { useFingerprint } from '@/utils/useFingerprint'; import { useCommonStore } from '@/store/modules/commonStore' const mbStore = useCommonStore(); // 使用自定义hook获取指纹信息 -const { - fingerprint, - loading, - error, - getFingerprint -} = useFingerprint(); +const { fingerprint, getFingerprint } = useFingerprint(); + +if (!mbStore.fingerprint) { + // 重新获取指纹 + getFingerprint(); + mbStore.setFingerprint(fingerprint) +} onMounted(() => { nextTick(() => { // 初始化主题样式 handleThemeStyle(useSettingsStore().theme) }) - - if (!mbStore.fingerprint) { - // 重新获取指纹 - getFingerprint(); - mbStore.setFingerprint(fingerprint) - } }) diff --git a/src/api/liswork/labItem/LabItemApi.ts b/src/api/liswork/labItem/LabItemApi.ts index eface31..ead6931 100644 --- a/src/api/liswork/labItem/LabItemApi.ts +++ b/src/api/liswork/labItem/LabItemApi.ts @@ -103,4 +103,14 @@ export function deleteXmInfoVs(query:any){ method: 'delete', params: query }) +} + + +//删除检验项目 +export function deleteXmInfoService(query:any){ + return request({ + url: '/xminfo/del', + method: 'delete', + params: query + }) } \ No newline at end of file diff --git a/src/api/liswork/micro/index.ts b/src/api/liswork/micro/index.ts index 0acd6c5..bc1ae45 100644 --- a/src/api/liswork/micro/index.ts +++ b/src/api/liswork/micro/index.ts @@ -19,6 +19,14 @@ export function wswsamplelistpage(query?: Object) { }) } // 获取微生物样本信息 +export function wswsampleinfo(query?: Object) { + return request({ + url: '/lisworkgerm/germsampleinfo', + method: 'get', + params: query + }) +} +// 获取微生物结果信息 export function sampleMedInfo(query?: Object) { return request({ url: '/lisworkgerm/getresultlist', diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 5331e82..709eab3 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -124,6 +124,7 @@ aside { //main-container全局样式 .app-container { padding: 10px 10px 0 10px; + min-height: calc(100vh - 84px); } .components-container { @@ -303,4 +304,8 @@ aside { color: #fff; cursor: pointer; } + + .next_btn { + margin-right: 0.2rem; + } } \ No newline at end of file diff --git a/src/assets/styles/ruoyi.scss b/src/assets/styles/ruoyi.scss index 7e7c07d..c69d1db 100644 --- a/src/assets/styles/ruoyi.scss +++ b/src/assets/styles/ruoyi.scss @@ -5,67 +5,67 @@ /** 基础通用 **/ .pt5 { - padding-top: 5px; + padding-top: .3125rem; } .pr5 { - padding-right: 5px; + padding-right: .3125rem; } .pb5 { - padding-bottom: 5px; + padding-bottom: .3125rem; } .mt5 { - margin-top: 5px; + margin-top: .3125rem; } .mr5 { - margin-right: 5px; + margin-right: .3125rem; } .mb5 { - margin-bottom: 5px; + margin-bottom: .3125rem; } .mb8 { - margin-bottom: 8px; + margin-bottom: .5rem; } .ml5 { - margin-left: 5px; + margin-left: .3125rem; } .mt10 { - margin-top: 10px; + margin-top: .625rem; } .mr10 { - margin-right: 10px; + margin-right: .625rem; } .mb10 { - margin-bottom: 10px; + margin-bottom: .625rem; } .ml10 { - margin-left: 10px; + margin-left: .625rem; } .mt20 { - margin-top: 20px; + margin-top: 1.25rem; } .mr20 { - margin-right: 20px; + margin-right: 1.25rem; } .mb20 { - margin-bottom: 20px; + margin-bottom: 1.25rem; } .ml20 { - margin-left: 20px; + margin-left: 1.25rem; } .cp { @@ -213,8 +213,8 @@ .el-table__body-wrapper .el-table-column--selection>.cell { padding: 0 !important; - height: 30px; - line-height: 30px; + height: 1.875rem; + line-height: 1.875rem; } .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell { @@ -224,8 +224,8 @@ .cell.el-tooltip { padding: 0 !important; - height: 30px; - line-height: 30px; + height: 1.875rem; + line-height: 1.875rem; } .el-table-header-cell .cell { @@ -241,8 +241,8 @@ .el-table__cell { padding: 0 !important; - height: 30px; - line-height: 30px; + height: 1.875rem; + line-height: 1.875rem; } .el-checkbox { diff --git a/src/components/vxeTable/index.vue b/src/components/vxeTable/index.vue index 9aea70d..a8a8980 100644 --- a/src/components/vxeTable/index.vue +++ b/src/components/vxeTable/index.vue @@ -13,10 +13,10 @@