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 ? '合格' : '不合格' }}