From 98be7d210fcc1b73a34d0f1afa53e0f1a6c9798f Mon Sep 17 00:00:00 2001 From: wyuu Date: Fri, 21 Nov 2025 18:01:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E7=94=9F=E7=89=A9=E7=BB=88=E5=AE=A1?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/mitt.ts | 4 +- .../charge/index.vue | 0 .../clinical/index.vue | 1 + .../combination/index.vue | 20 +- .../history/index.vue | 0 .../others/index.vue | 0 .../reexamination/index.vue | 0 .../resultGraph/index.vue | 0 .../sample/index.vue | 0 .../sample/index2.vue | 0 src/views/liswork/micro/index.vue | 80 +- .../micro/labresult/{components => }/byj.vue | 0 .../labresult/{components => }/cbReport.vue | 0 .../labresult/components/combinedDialog.vue | 82 ++ .../micro/labresult/components/zbReport.vue | 11 - src/views/liswork/micro/labresult/index.vue | 500 ------------- .../labresult/{components => }/record.vue | 0 .../liswork/micro/labresult/zbReport.vue | 700 ++++++++++++++++++ .../liswork/work/components/labresult.vue | 4 +- src/views/liswork/work/index.vue | 16 +- 20 files changed, 881 insertions(+), 537 deletions(-) rename src/views/liswork/{conponents => components}/charge/index.vue (100%) rename src/views/liswork/{conponents => components}/clinical/index.vue (97%) rename src/views/liswork/{conponents => components}/combination/index.vue (88%) rename src/views/liswork/{conponents => components}/history/index.vue (100%) rename src/views/liswork/{conponents => components}/others/index.vue (100%) rename src/views/liswork/{conponents => components}/reexamination/index.vue (100%) rename src/views/liswork/{conponents => components}/resultGraph/index.vue (100%) rename src/views/liswork/{conponents => components}/sample/index.vue (100%) rename src/views/liswork/{conponents => components}/sample/index2.vue (100%) rename src/views/liswork/micro/labresult/{components => }/byj.vue (100%) rename src/views/liswork/micro/labresult/{components => }/cbReport.vue (100%) create mode 100644 src/views/liswork/micro/labresult/components/combinedDialog.vue delete mode 100644 src/views/liswork/micro/labresult/components/zbReport.vue delete mode 100644 src/views/liswork/micro/labresult/index.vue rename src/views/liswork/micro/labresult/{components => }/record.vue (100%) create mode 100644 src/views/liswork/micro/labresult/zbReport.vue diff --git a/src/utils/mitt.ts b/src/utils/mitt.ts index 5b14b6a..68f108e 100644 --- a/src/utils/mitt.ts +++ b/src/utils/mitt.ts @@ -3,8 +3,8 @@ import mitt, { Emitter, EventType } from "mitt" // 扩展原始Emitter类型,添加自定义方法 interface CustomEmitter extends Emitter> { - emitWithCache?: (eventName: string, data: any) => void - getCache?: (eventName: string) => any + emitWithCache: (eventName: string, data: any) => void + getCache: (eventName: string) => any } const emitter = mitt() as CustomEmitter diff --git a/src/views/liswork/conponents/charge/index.vue b/src/views/liswork/components/charge/index.vue similarity index 100% rename from src/views/liswork/conponents/charge/index.vue rename to src/views/liswork/components/charge/index.vue diff --git a/src/views/liswork/conponents/clinical/index.vue b/src/views/liswork/components/clinical/index.vue similarity index 97% rename from src/views/liswork/conponents/clinical/index.vue rename to src/views/liswork/components/clinical/index.vue index 6c49d62..06ea074 100644 --- a/src/views/liswork/conponents/clinical/index.vue +++ b/src/views/liswork/components/clinical/index.vue @@ -26,6 +26,7 @@ onMounted(() => { } emitter.on('refreshClinical', (data) => { + console.log('data==>', data); getClinicalInfo(data) }) }) diff --git a/src/views/liswork/conponents/combination/index.vue b/src/views/liswork/components/combination/index.vue similarity index 88% rename from src/views/liswork/conponents/combination/index.vue rename to src/views/liswork/components/combination/index.vue index 87b0cc1..f9684ee 100644 --- a/src/views/liswork/conponents/combination/index.vue +++ b/src/views/liswork/components/combination/index.vue @@ -27,7 +27,7 @@ const props = defineProps({ }) const mbStore = useCommonStore(); const { queryParams } = toRefs(props); -const tableData = ref([]) +const tableData: any = ref([]) const columns = ref([ { prop: 'mbmc', label: '批输入模板', visible: true, align: 'center', }, { prop: 'yblx', label: '标本类型', visible: true, align: 'center', width: 80 }, @@ -62,7 +62,6 @@ watch(() => props.queryParams.yq, (newValue) => { const changeLxsr = (row: any) => { const lxsrs = tableData.value.filter((item: any) => item.lxsr).map((item: any) => item.mbmc); - console.log('lxsrs==>', lxsrs); mbStore.setLxsrList(lxsrs); } @@ -70,6 +69,23 @@ const handleRowDblclick = (row: any) => { emitter.emit('dbMbHandle', row); } +const clearLxsr = () => { + tableData.value = tableData.value.map((item: any) => { + return { + ...item, + lxsr: false, + } + }) + mbStore.setLxsrList([]); +} + +onMounted(() => { + // 模板渲染清楚标记 + emitter.on('clearLxsrList', () => { + clearLxsr() + }) +}) + \ No newline at end of file diff --git a/src/views/liswork/micro/labresult/components/zbReport.vue b/src/views/liswork/micro/labresult/components/zbReport.vue deleted file mode 100644 index be189f3..0000000 --- a/src/views/liswork/micro/labresult/components/zbReport.vue +++ /dev/null @@ -1,11 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/liswork/micro/labresult/index.vue b/src/views/liswork/micro/labresult/index.vue deleted file mode 100644 index 226c3b4..0000000 --- a/src/views/liswork/micro/labresult/index.vue +++ /dev/null @@ -1,500 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/liswork/micro/labresult/components/record.vue b/src/views/liswork/micro/labresult/record.vue similarity index 100% rename from src/views/liswork/micro/labresult/components/record.vue rename to src/views/liswork/micro/labresult/record.vue diff --git a/src/views/liswork/micro/labresult/zbReport.vue b/src/views/liswork/micro/labresult/zbReport.vue new file mode 100644 index 0000000..bf72e15 --- /dev/null +++ b/src/views/liswork/micro/labresult/zbReport.vue @@ -0,0 +1,700 @@ + + + + + \ No newline at end of file diff --git a/src/views/liswork/work/components/labresult.vue b/src/views/liswork/work/components/labresult.vue index 6e332cf..e3345fd 100644 --- a/src/views/liswork/work/components/labresult.vue +++ b/src/views/liswork/work/components/labresult.vue @@ -7,7 +7,7 @@ 取消审核 新增 - 删除
@@ -335,6 +335,7 @@ watch(() => props.tableData, (newVal) => { existingNames.add(item.xmdh) } }) + emitter.emit('clearLxsrList') } }); }); @@ -1210,6 +1211,7 @@ onMounted(() => { } }) handleCsjgEnter(null) + emitter.emit('clearLxsrList') } }); }) diff --git a/src/views/liswork/work/index.vue b/src/views/liswork/work/index.vue index bb6b72f..8e8c52b 100644 --- a/src/views/liswork/work/index.vue +++ b/src/views/liswork/work/index.vue @@ -123,14 +123,14 @@ import { comDict } from '@/utils/dict' import { queryLabPatList, queryLabResults, loadDefault, queryLabPat, instrdconfig, delSample, getGroupInstrdList } from "@/api/liswork/work/LisWork"; import { getComDicts, queryComDictListService } from "@/api/liswork/dict/ComDict"; import { ElMessage, ElMessageBox } from "element-plus"; -import History from '../conponents/history/index.vue' -import Others from '../conponents/others/index.vue' -import Reexamination from '../conponents/reexamination/index.vue' -import Charge from '../conponents/charge/index.vue' -import Combination from '../conponents/combination/index.vue' -import Clinical from '../conponents/clinical/index.vue' -import Sample from '../conponents/sample/index.vue' -import ResultGraph from '../conponents/resultGraph/index.vue' +import History from '../components/history/index.vue' +import Others from '../components/others/index.vue' +import Reexamination from '../components/reexamination/index.vue' +import Charge from '../components/charge/index.vue' +import Combination from '../components/combination/index.vue' +import Clinical from '../components/clinical/index.vue' +import Sample from '../components/sample/index.vue' +import ResultGraph from '../components/resultGraph/index.vue' import { getNextNumber, getPreviousNumber } from "@/utils/getNextNumber"; import { useCommonStore } from '@/store/modules/commonStore'; import { classCom } from '@/utils/classCom';