diff --git a/src/api/liswork/micro/index.ts b/src/api/liswork/micro/index.ts index b2f4fe2..f0d50b4 100644 --- a/src/api/liswork/micro/index.ts +++ b/src/api/liswork/micro/index.ts @@ -123,4 +123,12 @@ export function deletemedresult(data?: Object) { method: 'post', data }) +} +//获取培养基记录 +export function getmediumList(data?: Object) { + return request({ + url: '/lisworkgerm/getmedium', + method: 'get', + params: data + }) } \ No newline at end of file diff --git a/src/assets/styles/ruoyi.scss b/src/assets/styles/ruoyi.scss index 2fe9c33..c8a4094 100644 --- a/src/assets/styles/ruoyi.scss +++ b/src/assets/styles/ruoyi.scss @@ -106,13 +106,63 @@ .el-dialog:not(.is-fullscreen) { margin-top: 6vh !important; + padding: 0; + // border-radius: 20px; + + .el-dialog__body { + padding: 10px; + } } .el-dialog.scrollbar .el-dialog__body { overflow: auto; overflow-x: hidden; max-height: 70vh; - padding: 10px 20px 0; + padding: 16px; + } + + .el-dialog__header { + background: linear-gradient(90deg, #0c1a97 0%, #1373d3 100%); + padding: 10px 20px; + position: relative; + font-family: SourceHanSansCN, SourceHanSansCN; + + &::before { + content: ''; + position: absolute; + left: 20px; + top: 50%; + transform: translateY(-50%); + width: 28px; + height: 28px; + background: url('@/assets/logo/logo.png') no-repeat center; + background-size: contain; + z-index: 1; + } + + // 标题文本样式 + .el-dialog__title { + color: #fff; + /* 标题文字颜色 */ + padding-left: 40px; + /* 给 Logo 留出空间 */ + font-size: 16px; + font-weight: 600; + } + + .el-dialog__headerbtn .el-dialog__close { + color: #fff; + /* 关闭按钮颜色 */ + font-size: 18px; + + &:hover { + color: #fff; + } + } + } + + .el-dialog__footer { + padding: 10px; } .el-table { @@ -125,7 +175,7 @@ word-break: break-word; background-color: #1F6DD3 !important; color: #FFF; - height: 1.875rem !important; + height: 1.6875rem !important; font-size: .8125rem; } } @@ -136,6 +186,11 @@ } } + .el-table__body td { + font-size: .8125rem; + + } + /* 表格最外层边框(可选) */ .el-table--border { @@ -177,10 +232,13 @@ padding: 0 !important; } - .el-table--default .cell { - padding: 0 !important; + .el-table--default { + .cell { + padding: 0 !important; + } } + .el-table__cell { padding: 0 !important; height: 30px; @@ -249,7 +307,7 @@ } .el-input.is-disabled .el-input__inner { - -webkit-text-fill-color: #4e4c4c + -webkit-text-fill-color: #4e4c4c; } diff --git a/src/utils/useFingerprint.js b/src/utils/useFingerprint.js index 87b0bae..8b86cfb 100644 --- a/src/utils/useFingerprint.js +++ b/src/utils/useFingerprint.js @@ -41,7 +41,7 @@ export function useFingerprint() { // 组件挂载时自动获取指纹 onMounted(() => { - getFingerprint(); + // getFingerprint(); }); return { diff --git a/src/views/liswork/components/combination/index.vue b/src/views/liswork/components/combination/index.vue index f9684ee..6b9e078 100644 --- a/src/views/liswork/components/combination/index.vue +++ b/src/views/liswork/components/combination/index.vue @@ -41,7 +41,7 @@ const columns = ref([ // 左侧表格配置 const tableConfig = ref({ border: true, // 边框 - height: '', // 高度 + height: '82vh', // 高度 highlightCurrentRow: true, // 高亮当前行 }) const getCombination = () => { diff --git a/src/views/liswork/micro/index.vue b/src/views/liswork/micro/index.vue index 840da0c..b737026 100644 --- a/src/views/liswork/micro/index.vue +++ b/src/views/liswork/micro/index.vue @@ -56,12 +56,11 @@ @previewHandle="previewHandle" /> - + - + @@ -195,7 +194,7 @@ const queryParams = ref({ }) -const activeName = ref('first') +const activeName = ref('second'); const total = ref(0) const ybs = ref(0) @@ -255,11 +254,6 @@ interface QueryParams { watch(() => labPat.value, (newValue) => { queryParams.value.ybh = newValue.ybh; - // if (newValue.jgbz == '2') { - // activeName.value = 'first' - // } else if (newValue.jgbz == '0' || newValue.jgbz == '3' || newValue.jgbz == '4') { - // activeName.value = 'second' - // } }, { deep: true }); // 模糊查询 @@ -279,8 +273,6 @@ const searchQuery = () => { } labPatList.value = filterMhList; - getTotals(); - if (filterMhList.length > 0) { highlightRowIndex.value = 0; const firstRow = filterMhList[0]; @@ -290,7 +282,6 @@ const searchQuery = () => { labPat.value = {}; labInfo.value = {}; zbLabResuts.value = []; - cbLabResuts.value = []; highlightRowIndex.value = -1; } }; @@ -320,8 +311,6 @@ const handleQueryResult = (params: QueryParams) => { labPatList.value = filteredList; - getTotals(); - if (filteredList.length > 0) { highlightRowIndex.value = 0; const firstRow = filteredList[0]; @@ -331,7 +320,6 @@ const handleQueryResult = (params: QueryParams) => { labPat.value = {}; labInfo.value = {}; zbLabResuts.value = []; - cbLabResuts.value = []; highlightRowIndex.value = -1; } }; @@ -339,7 +327,6 @@ const handleQueryResult = (params: QueryParams) => { // 处理重置 const handleReset = () => { labPatList.value = [...originalLabPatList.value]; - getTotals(); } const previewHandle = (url: string) => { if (!url) return ElMessage.warning('未查询到文件') @@ -348,14 +335,11 @@ const previewHandle = (url: string) => { } const handleinstrGroupChange = (val: any) => { queryParams.value.yq = '' - // labResuts.value = [] - // labPat.value = {} getYqConfig() } const mbStore = useCommonStore(); const yqHandleChange = (val: any) => { zbLabResuts.value = []; - cbLabResuts.value = []; labPat.value = {} labInfo.value = {} mbStore.setLxsrList([]); @@ -414,19 +398,10 @@ const selectJob = (job: any) => { highlightRowIndex.value = labPatList.value.findIndex((item: any) => item.ybh == labInfo.value.ybh); } const zbLabResuts = ref([]) -const cbLabResuts = ref([]) //载入样本结果表单(中间labresult.vue组件) const fetchLabResults = async () => { sampleMedInfo({ jyrq: labInfo.value.jyrq ? labInfo.value.jyrq : queryParams.value.jyrq, yq: labInfo.value.yq, ybh: labInfo.value.ybh }).then((response: any) => { zbLabResuts.value = response.data; - if (labPat.value.jgbz == '2') { - } - if (labPat.value.jgbz == '3') { - cbLabResuts.value = response.data; - } - - console.log(' zbLabResuts.value==>', zbLabResuts.value); - console.log(' cbLabResuts.value==>', cbLabResuts.value); }) } @@ -439,7 +414,6 @@ const fetchLabPat = () => { } queryLabPat(data).then((response: any) => { labPat.value = response.data; - labInfo.value = response.data; }) } @@ -487,7 +461,6 @@ const handleCreate = () => { labInfo.value = response.data; labPat.value.id = `temp_${Date.now()}_${Math.random().toString(36).substr(2, 8)}`; zbLabResuts.value = []; - cbLabResuts.value = []; labPatListRef.value?.clearCurrentRow(); fetchLabResults() } @@ -518,7 +491,6 @@ const delSampleHd = () => { if (res.code == 0) { ElMessage.success('删除成功') labPatList.value = labPatList.value.filter((item: any) => item.ybh != labInfo.value.ybh) - getTotals() // 删除跳当前页面下一个样本 // handleNext() if (highlightRowIndex.value > labPatList.value.length - 1) { @@ -636,7 +608,6 @@ const changeStatus = (updatedPat: any, flag: boolean) => { labPatListRef.value.setCurrentRow(labPat.value); }); }, 10) - getTotals() } } }); @@ -670,13 +641,8 @@ const fetchlabPatList = () => { loading.value = false; if (res.rows.length > 0) { highlightRowIndex.value = 0; - setTimeout(() => { labPatListRef.value.setCurrentRow(res.rows[0]); }, 100) + setTimeout(() => { labPatListRef.value.setCurrentRow(res.rows[0]) }, 10) selectJob(res.rows[0]) - getTotals() - } else { - ybs.value = 0 - ws.value = 0 - wjs.value = 0 } } }) @@ -708,12 +674,15 @@ interface DictData { const dictData = ref({}); const labInputcolList = ref([]) const resultConfig = ref([]) + +const instrdComOpt = ref({}) //仪器通用配置 // 获取参数配置 const getSysList = () => { instrdconfig({ yq: queryParams.value.yq }).then((res: any) => { if (res.code == 0) { labInputcolList.value = res.data.labInputcolList.filter((item: any) => item.mrts != "年龄单位" && item.mrts != "!") resultConfig.value = res.data.ResultConfig + instrdComOpt.value = res.data.instrdComOpt } }); mbStore.setLxsrList([]); @@ -742,13 +711,13 @@ onMounted(async () => { GMC: toRaw(dictRefs.GMC.value) || [], }; // 初始化Socket - // initSocket() + initSocket() }); const initSocket = () => { initWebSocket({ - // fullUrl: `ws://47.97.125.165:8904/ws/instr/${mbStore.fingerprint}`, - fullUrl: `ws://192.168.1.151:9801/ws/instr/${mbStore.fingerprint}`, + fullUrl: `ws://47.97.125.165:8904/ws/instr/${mbStore.fingerprint}`, + // fullUrl: `ws://192.168.1.151:9801/ws/instr/${mbStore.fingerprint}`, onOpen: () => { console.log('WebSocket连接成功'); }, diff --git a/src/views/liswork/micro/labresult/byj.vue b/src/views/liswork/micro/labresult/byj.vue index 0cd9db7..6df14c5 100644 --- a/src/views/liswork/micro/labresult/byj.vue +++ b/src/views/liswork/micro/labresult/byj.vue @@ -1,10 +1,72 @@ - 培养基接种 + + 打印培养基条码 + 自动打印培养基条码 + + + diff --git a/src/views/liswork/micro/labresult/cbReport.vue b/src/views/liswork/micro/labresult/cbReport.vue index ba3782e..5d842b6 100644 --- a/src/views/liswork/micro/labresult/cbReport.vue +++ b/src/views/liswork/micro/labresult/cbReport.vue @@ -1,16 +1,22 @@ - 初报人:{{ labPat.confirmer }} 报告时间:{{ labPat.confirmdt - }} + + + 初报人:{{ cbInfo?.confirmer }} 报告时间:{{ cbInfo?.confirmdt }} + + {{ cbInfo?.jgbz == '2' ? '已初报' : '' }} + - 初报审核 - 取消审核 - 新增 - 删除 - 组合项目 + 初报审核 + 取消审核 + 新增 + 删除 + 组合项目 @@ -18,31 +24,31 @@ 细菌/结果({{ tableData.length }})项 - + {{ row.od }} - + {{ row.csjg }} - + {{ formatJgbz(row.jgbz) }} - + {{ row.cutoff }} - + @@ -52,19 +58,94 @@ {{ formatDict(row.germclass, 'germclass') }} + + + + + 二报人:{{ erInfo?.confirmer }} 报告时间:{{ erInfo?.confirmdt }} + + {{ erInfo?.jgbz == '2' ? '已二报' : '' }} + + + 二报审核 + 取消审核 + 新增 + 删除 + 组合项目 + + + + 细菌/结果({{ tableData2.length }})项 + + + + {{ row.od }} + + + + {{ row.csjg }} + + + + + + + {{ formatJgbz(row.jgbz) }} + + + + {{ row.cutoff }} + + + + + + + {{ row.alarm_flag == 'H' ? '危急值' : '' }} + + + {{ formatDict(row.germclass, 'germclass') }} + + + + + + + + + + + +