From 57af21500147d3e024853513b244fc0b7e7959c7 Mon Sep 17 00:00:00 2001 From: wuyy Date: Wed, 12 Aug 2026 18:04:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A4=E5=8F=89=E9=85=8D=E8=A1=80=E3=80=81?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=85=B6=E4=BB=96=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/blood/index.ts | 72 ++ src/api/common.ts | 8 + src/components/DropdownTableSelect/index.vue | 8 +- src/utils/dict.ts | 2 +- src/views/blood/acceptSample/index.vue | 8 +- src/views/blood/crossMatching/index.vue | 682 ++++++++++++++---- src/views/blood/recheck/index.vue | 31 +- src/views/blood/scan/index.vue | 4 +- .../application/component/reviewComments.vue | 7 +- src/views/doctor/application/index copy.vue | 4 +- src/views/doctor/application/index.vue | 6 +- src/views/doctor/assessment/index.vue | 28 +- src/views/doctor/historyBlood/index.vue | 2 +- src/views/doctor/review/index.vue | 12 +- src/views/nurses/sendSample/index.vue | 8 +- 15 files changed, 685 insertions(+), 197 deletions(-) diff --git a/src/api/blood/index.ts b/src/api/blood/index.ts index 19b75e2..1fabf00 100644 --- a/src/api/blood/index.ts +++ b/src/api/blood/index.ts @@ -128,4 +128,76 @@ export function queryOneInfo(query?: Object) { params: query }) } +// 获取交叉配血列表 +export function queryMatchBloodList(query?: Object) { + return request({ + url: '/bus/bloodbank/matchBlood/queryMatchBloodList', + method: 'get', + params: query + }) +} +// 获取待处理单据 +export function queryWaitInfo(query?: Object) { + return request({ + url: '/bus/bloodbank/matchBlood/queryWaitInfo', + method: 'get', + params: query + }) +} +// 获取申请单数据 +export function queryMatchOne(query?: Object) { + return request({ + url: '/bus/bloodbank/matchBlood/queryOne', + method: 'get', + params: query + }) +} +// 校验该血液是否已经存在配血数据 +export function checkBloodMatched(query?: Object) { + return request({ + url: '/bus/bloodbank/matchBlood/checkBloodMatched', + method: 'get', + params: query + }) +} +// 获取血液信息 +export function getBloodInfoMatch(query?: Object) { + return request({ + url: '/bus/bloodbank/matchBlood/getBloodInfoMatch', + method: 'get', + params: query + }) +} +// 保存交叉配血数据 +export function saveBloodData(query?: Object) { + return request({ + url: '/bus/bloodbank/matchBlood/saveData', + method: 'post', + data: query + }) +} +// 查询单条数据 +export function queryMatchApplyInfo(query?: Object) { + return request({ + url: '/bus/bloodbank/matchBlood/queryApplyInfo', + method: 'get', + params: query + }) +} +// 取消血液配血 +export function cancelBloodInfoMatch(query?: Object) { + return request({ + url: '/bus/bloodbank/matchBlood/cancelBloodInfoMatch', + method: 'get', + params: query + }) +} +// 作废配血单 +export function deleteBloodInfoMatch(query?: Object) { + return request({ + url: '/bus/bloodbank/matchBlood/deleteBloodInfoMatch', + method: 'get', + params: query + }) +} diff --git a/src/api/common.ts b/src/api/common.ts index 7b5dccc..58d78af 100644 --- a/src/api/common.ts +++ b/src/api/common.ts @@ -80,4 +80,12 @@ export function queryOperation(query?: Object) { method: 'get', params: query }) +} +// 根据血液流水号获取血液信息 bloodNo +export function queryBloodInfoByBloodNo(query?: Object) { + return request({ + url: '/bus/common/queryBloodInfoByBloodNo', + method: 'get', + params: query + }) } \ No newline at end of file diff --git a/src/components/DropdownTableSelect/index.vue b/src/components/DropdownTableSelect/index.vue index 4e0e4d0..0afc4d1 100644 --- a/src/components/DropdownTableSelect/index.vue +++ b/src/components/DropdownTableSelect/index.vue @@ -3,7 +3,7 @@
- @@ -106,8 +106,9 @@ const props = defineProps({ type: Boolean, default: true }, - // 是否只读 - readonly: { + + //禁用下拉箭头事件 + disabled: { type: Boolean, default: false } @@ -258,6 +259,7 @@ const handleInputEnter = (e: KeyboardEvent) => { // 切换下拉框 const toggleDropdown = () => { + if (props.disabled) return if (!dropdownRef.value) return showPanel.value = !showPanel.value if (showPanel.value) { diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 089fa84..8fda925 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -79,9 +79,9 @@ export function comDict(...args: string[]): Promise { dictType: dictType }).then((resp: any) => { const dictList = resp.data.map((p: any) => ({ + ...p, label: p.wordbook_name, value: p.wordbook_code, - remark: p.remark, })); res.value[dictType] = dictList; diff --git a/src/views/blood/acceptSample/index.vue b/src/views/blood/acceptSample/index.vue index 2557878..cde9ca2 100644 --- a/src/views/blood/acceptSample/index.vue +++ b/src/views/blood/acceptSample/index.vue @@ -163,16 +163,16 @@ \ No newline at end of file diff --git a/src/views/blood/recheck/index.vue b/src/views/blood/recheck/index.vue index f01c862..8c68d37 100644 --- a/src/views/blood/recheck/index.vue +++ b/src/views/blood/recheck/index.vue @@ -12,12 +12,12 @@ 检索 新增 删除 - 保存 打印 血型复核历史查询
- +
+ @search="onSearch" @change="onSearch" :disabled="!!(xkCheckBloodtype.bill_no)"> @@ -98,7 +98,7 @@ - + @@ -108,7 +108,7 @@ - + @@ -143,7 +143,7 @@ @@ -155,7 +155,7 @@ @@ -243,7 +243,7 @@ + :disabled="!!(xkCheckBloodtype.bill_no)" /> @@ -273,7 +273,7 @@ + :disabled="!!(xkCheckBloodtype.bill_no)" /> @@ -357,7 +357,7 @@ @@ -422,7 +422,7 @@ @@ -443,8 +443,7 @@ import { queryBloodOne, queryCheckBloodTypeInfo, saveData, jsqueryList, delCheck const { userList, getUserData, getServerTime, bloodBreed, getBloodList, } = useCommonDict() import useUserStore from '@/store/modules/user' -import { ElMessage } from 'element-plus' -import { ElMessageBox } from 'element-plus' +import { ElMessage, ElMessageBox } from 'element-plus' const userInfo = useUserStore() const xkCheckBloodtype = ref({ test_person: userInfo.name, @@ -608,8 +607,8 @@ const delApply = () => { } // 保存信息 const saveApplyInfo = () => { - saveLoading.value = true if (!form.value.bill_no) return ElMessage.error('请选择申请单信息') + saveLoading.value = true const flag = form.value.abo_type == xkCheckBloodtype.value.affirm_abo && form.value.rh_type == xkCheckBloodtype.value.check_rh const data = { flag: flag ? 1 : 0, @@ -620,6 +619,8 @@ const saveApplyInfo = () => { patient_name: form.value.patient_name, dept_id: form.value.dept_id, input_person: userInfo.name, + input_date: dayjs().format('YYYY-MM-DD HH:mm:ss'), + test_date: dayjs().format('YYYY-MM-DD HH:mm:ss'), bill_sort: 'C', bill_status: 'A' }, diff --git a/src/views/blood/scan/index.vue b/src/views/blood/scan/index.vue index e4c455c..46bab5d 100644 --- a/src/views/blood/scan/index.vue +++ b/src/views/blood/scan/index.vue @@ -166,10 +166,10 @@ {{ row.hgbz == 1 ? '合格' : '不合格' }}